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 |
|---|---|---|---|---|---|
64833ad475dd72b27d7886b69833d3b59a477a37 | 3,506 | package core;
import core.interfaces.ManagerController;
import models.battleFields.BattleFieldImpl;
import models.battleFields.interfaces.Battlefield;
import models.cards.MagicCard;
import models.cards.TrapCard;
import models.cards.interfaces.Card;
import models.players.Advanced;
import models.players.Beginner;
import... | 31.872727 | 99 | 0.641187 |
23fce64a977c520cc25735f3696db0bb2350b73f | 229 | package com.github.spriet2000.vertx.httprouter;
import io.vertx.core.http.HttpServerRequest;
import java.util.Map;
public interface RouteHandler {
void handle(HttpServerRequest request, Map<String, String> parameters);
}
| 20.818182 | 75 | 0.79476 |
61d5ed1bff96bc9572ceb4a13acd81ed9f5bdc28 | 2,590 | /*
* JBoss, Home of Professional Open Source
* Copyright 2011 Red Hat Inc. and/or its affiliates and other contributors
* as indicated by the @authors tag. All rights reserved.
* See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This copyrighted material is made avail... | 37 | 105 | 0.696525 |
444d258763adf6b9980caa2f966524f23feeb97a | 7,339 | private void createHomeTab() {
Tabpanel homeTab = new Tabpanel();
windowContainer.addWindow(homeTab, Msg.getMsg(EnvWeb.getCtx(), "Home").replaceAll("&", ""), false);
Portallayout portalLayout = new Portallayout();
portalLayout.setWidth("100%");
portalLayout.setHeight("100%");... | 55.598485 | 296 | 0.512059 |
3cb47a634458eccff6b054f643f5c461ca6fee49 | 6,576 | package com.github.focus.util;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.CloseableHttpClient;
impo... | 32.88 | 132 | 0.588808 |
a4e852d9b534eede71679e5e383a3c8898bc57f8 | 10,819 | /*
* Copyright 2011 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 agreed to ... | 42.594488 | 100 | 0.694796 |
a3e3c32b92f38d7b1268dffa253310d7abc5386c | 1,157 | package com.condition.umzzal.activity;
import java.util.concurrent.TimeUnit;
import okhttp3.OkHttpClient;
import okhttp3.logging.HttpLoggingInterceptor;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
public class MyRetrofit2 {
public static final String URL = "http:///";
stat... | 27.547619 | 74 | 0.622299 |
bd66f267d9c75e131af2bd65f20a0107404280de | 1,056 | package com.ybsystem.tweethub.models.entities;
import com.ybsystem.tweethub.utils.ToastUtils;
public class AccountArray<T extends Account> extends EntityArray<T> {
public Account getCurrentAccount() {
int index = getCurrentAccountNum();
if (index == -1) {
return null;
} else {... | 23.466667 | 69 | 0.541667 |
ff37d009ef36691adea7c550ec6b33258af9a74f | 1,065 | package carry.ilearn.dao;
import carry.ilearn.dataobject.CommentDO;
import carry.ilearn.dataobject.CommentFirstLevelDO;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface CommentDao {
int deleteByPrimaryKey(Integer id);
int insert(CommentDO record);
... | 33.28125 | 121 | 0.707981 |
c944fc8df1660a8e79835073a11341ff38feb957 | 1,288 | package visualization.componentIcons;
import javafx.scene.Group;
import javafx.scene.shape.Shape;
public class BreakerIcon extends DeviceIcon {
// shapes that are energized when both nodes are energized and the device is closed
private final Group backFedOffNodeEnergyOutline = new Group();
public Breaker... | 35.777778 | 109 | 0.731366 |
7448027e7da394020ad4fc683432fb9e447580c8 | 431 | import java.util.Scanner;
public class book {
public static void main(String[] args)
{
Scanner input = new Scanner(System.in);
System.out.print("Enter the monthly saving amount:");
double m = input.nextDouble();
double sum = 0.0;
for(int i=0;i<6;i++)
sum = (m+... | 30.785714 | 84 | 0.577726 |
6326daa164e031d0e89dfde0c85e871bb12581b3 | 1,945 | package com.Da_Technomancer.essentials.blocks.redstone;
import com.Da_Technomancer.essentials.blocks.ESProperties;
import com.Da_Technomancer.essentials.tileentities.CircuitTileEntity;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.util.Direction;
import net.minecraft.uti... | 29.923077 | 110 | 0.7491 |
e09732338b6a7259f1d0ca6f5ede4b1e31556576 | 1,596 | package com.auth.config;
import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceBuilder;
import org.apache.ibatis.session.SqlSessionFactory;
import org.mybatis.spring.SqlSessionFactoryBean;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.jdbc.DataS... | 32.571429 | 98 | 0.753759 |
001321961fcd1938edc43d86893dcc0a243d3df8 | 4,359 | /*
* Copyright 2003-2011 JetBrains s.r.o.
*
* 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... | 27.074534 | 75 | 0.663455 |
32e232f0a21525fe89c04b4a70df3f823ceac164 | 4,214 | package com.oa.common.tool.page;
import java.util.List;
import org.apache.commons.lang.StringUtils;
/**
* @className:Page.java
* @classDescription:分页参数对象
* @author:linjiekai
* @createTime:2010-7-12
*/
public class PageQueryResult<T>
{
private PageSettings pageSetting;
// -- 分页参数 --//
protected int pageNo = 1... | 14.890459 | 70 | 0.620788 |
5bd3cea3be3f574af14ea31e491a384bff22b2ea | 69 | package software.engineering.upm.es.objetos;
class Registro {
}
| 13.8 | 45 | 0.73913 |
55c4a27d16ccfcaa304abcc1c9fe6e7aa6f9e23c | 482 | package dk.kea.trash_api.controllers;
import dk.kea.trash_api.SuperMarioCharacters;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class SuperMarioController {
static SuperMarioCharacters superMarioCharacters = new ... | 28.352941 | 82 | 0.802905 |
ccb5f149d04e31ef6c0a7be72cf1118cd4c2976c | 953 | package org.lintx.plugins.modules.command_helper.annotation;
/**
* 参数绑定的类型
*/
public enum CommandVariableType {
/**
* 默认类型,会尝试自动解析参数的类型和名称来绑定对应的参数,如:
* 参数类型为CommandSender时会绑定执行的CommandSender
* 参数类型为Command时会绑定执行的Command
* 参数类型为Plugin或插件主类时会绑定插件主类
* 参数类型为String且name为label且命令中没有绑定label变量时会... | 22.690476 | 90 | 0.729276 |
f70f16c9c3a2ac9c56fb0716baebb1cb26917e11 | 9,669 | /*
* Copyright (c) 2019 PonySDK
* Owners:
* Luciano Broussal <luciano.broussal AT gmail.com>
* Mathieu Barbier <mathieu.barbier AT gmail.com>
* Nicolas Ciaravola <nicolas.ciaravola.pro AT gmail.com>
*
* WebSite:
* http://code.google.com/p/pony-sdk/
*
* Licensed under the Apache License, Versi... | 43.358744 | 97 | 0.69004 |
d2d37369e41b1766169fd05035c082cb15f2c6a8 | 2,054 | package com.smartsheet.api.models;
/*
* #[license]
* Smartsheet SDK for Java
* %%
* Copyright (C) 2019 Smartsheet
* %%
* 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:/... | 25.675 | 82 | 0.659202 |
9b9c619cc80a7b3daf1a8eec45419a31c61ddc31 | 631 | package br.edu.usf;
import org.bson.Document;
import java.text.MessageFormat;
import java.util.List;
public class Main {
public static void main(String[] args) {
for (int i = 0; i < 10; i++) {
DBConnection.gi().insert(Randomizes.name(), Randomizes.address());
}
final List<Doc... | 27.434783 | 95 | 0.597464 |
a293cee007a28f74fdb8516725071c3321ca6ebc | 8,191 | package net.swofty.lobby.util.signgui;
import com.comphenix.protocol.PacketType;
import com.comphenix.protocol.ProtocolLibrary;
import com.comphenix.protocol.ProtocolManager;
import com.comphenix.protocol.events.PacketAdapter;
import com.comphenix.protocol.events.PacketEvent;
import com.comphenix.protocol.wrappers.Blo... | 41.790816 | 137 | 0.677085 |
322f4a32a798533e333abe76a6c3a821630e6f39 | 875 | package com.nuix.superutilities.reporting;
/***
* Encapsulates a Nuix query string and an associated name.
* @author Jason Wells
*
*/
public class NamedQuery {
private String name = "Name";
private String query = "Query";
public NamedQuery() {}
public NamedQuery(String name, String query) {
this.name = n... | 17.156863 | 59 | 0.657143 |
c500036bd2a19a313c46fda27d6fe47f04cc7ab2 | 172 | package com.designpattern.cases.structure.decorator.drinks;
public class HouseBlend implements Drink {
@Override
public double cost() {
return 3;
}
}
| 17.2 | 59 | 0.69186 |
ed6edfeb86bd84745485063db64bc75e451bd5fe | 4,856 | package edu.psu.compbio.seqcode.gse.tools.chipchip;
import java.util.*;
import edu.psu.compbio.seqcode.gse.datasets.binding.*;
import edu.psu.compbio.seqcode.gse.datasets.chipchip.*;
import edu.psu.compbio.seqcode.gse.datasets.general.*;
import edu.psu.compbio.seqcode.gse.datasets.species.*;
import edu.psu.compbio.seq... | 46.692308 | 156 | 0.562191 |
8f01665ba6c1f24a34bab5a5161f97f422ec60db | 784 | package com.ccffee.NotifyRobot.controller;
import com.ccffee.NotifyRobot.service.CqMessageEntryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.we... | 35.636364 | 76 | 0.82398 |
80c47e5061deb6af5ebdb66b5955ca79460b2e2f | 6,212 | /*
* The MIT License
*
* Copyright: Copyright (C) 2014 T2Ti.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 without limitation the rights
* to u... | 41.413333 | 199 | 0.670637 |
4bf0fd15d7aa8227d51f40817e54a84e7c152381 | 626 | package com.github.tifezh.kchart.model;
import com.github.tifezh.kchartlib.chart.rate.base.IRate;
import com.github.tifezh.kchartlib.chart.rate.base.IRateDraw;
import java.util.Date;
public class RateModel implements IRate {
public Date date;
public float value;
public String change;
public String pe... | 18.411765 | 61 | 0.654952 |
b5f57e9f7787498af925378fd577b3fd2952b3dc | 1,856 | /*-
* ============LICENSE_START=======================================================
* SDC
* ================================================================================
* Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
* ===================================================================... | 35.018868 | 85 | 0.61153 |
553d9d90cfbc224ab8c64bc0605cc3ae90eb36a0 | 2,349 | package dev.dhbw.testproject.vaadintest;
import javax.servlet.annotation.WebServlet;
import com.vaadin.annotations.Theme;
import com.vaadin.annotations.VaadinServletConfiguration;
import com.vaadin.server.VaadinRequest;
import com.vaadin.server.VaadinServlet;
import com.vaadin.ui.Button;
import com.vaadin.ui... | 30.907895 | 89 | 0.649212 |
dd5a1893d351e7e1fb55232b215dc11742b6b21c | 3,981 | package org.nesc.ecbd.config;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
/**
* @author:Truman.P.Du
* @createDate: 2018年3月21日 下午4:23:44
* @version:1.0
*... | 20.208122 | 76 | 0.693544 |
f6a64929a62d27ffd264502fe4c91da537a6e6ee | 5,528 | // ***************************************************************************************************************************
// * 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 regardi... | 64.27907 | 127 | 0.644899 |
6e76bfa768aff4e2bae40a0044bde6cbc0780b1f | 13,451 | package taskmgt;
/**
*
* @author Ray
*/
import taskmgt.Models.*;
import java.util.LinkedList;
import java.io.PrintWriter;
import java.io.File;
import java.io.IOException;
import java.awt.Desktop;
import java.util.Collections;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
public... | 35.304462 | 177 | 0.510371 |
c72a7a1bf862b6ddc15912f6702b36211f5adddc | 1,333 | /**
* Copyright 2005-2019 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
*
* Unless required by a... | 34.179487 | 103 | 0.747187 |
14595925c3354a0730a64ed175f4a939d10bbd60 | 11,758 | /*
* 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 ... | 35.522659 | 136 | 0.675965 |
6756a944a0a6c3b675fef7aa7a7be4951e028663 | 234 | package net.woggle;
public class ApiUrl {
String mUrl;
boolean mIsV2;
public ApiUrl(String url, boolean isV2)
{
mUrl = url; mIsV2 = isV2;
}
public String getUrl () { return mUrl; }
public boolean isV2() { return mIsV2; }
}
| 18 | 41 | 0.679487 |
e3defb22a63f6da3253438f0140ee30b39bba6cc | 3,724 | /*
* Copyright 2013-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 a... | 33.854545 | 88 | 0.772556 |
9824c57339670f22edf94b82dbef86492296447e | 711 | package com.parkinfo.entity.informationTotal;
import com.parkinfo.entity.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
import javax.persistence.Entity;
import javax.persistence.En... | 26.333333 | 74 | 0.818565 |
3ead1918781305d5eaaa84ed0dfcc037738f4621 | 32,116 | /**
* 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 m... | 47.720654 | 112 | 0.627195 |
0d749fc81081e8106e18369195fddc8b60ff667c | 3,013 | /*
* Copyright 2020 Nextworks s.r.l.
*
* 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... | 24.696721 | 80 | 0.645204 |
76d7f23f309d476f8b23629acfe18a16bfb2b8f5 | 5,738 | package net.minecraft.util.datafix.fixes;
import com.google.common.collect.Maps;
import com.mojang.datafixers.DataFix;
import com.mojang.datafixers.DataFixUtils;
import com.mojang.datafixers.TypeRewriteRule;
import com.mojang.datafixers.schemas.Schema;
import com.mojang.datafixers.types.Type;
import com.mojang.datafix... | 53.12963 | 200 | 0.696236 |
d19ace69ce74b79335ec7acafe4bad21efd9dd53 | 1,409 | package com.multi.thread.guide.core.chapter9;
import java.util.concurrent.Callable;
import java.util.concurrent.Executor;
/**
* @author dongzonglei
* @description
* @date 2019-01-31 11:57
*/
public abstract class AsyncTask<V> implements Runnable, Callable<V> {
protected final Executor executor;
public A... | 22.725806 | 69 | 0.498935 |
8e2558299bc74baf23001b6a7645bd6284b0c825 | 1,123 | /*
Copyright (c) Microsoft Open Technologies, Inc.
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. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* ... | 43.192308 | 119 | 0.813891 |
4a3efa1c32d29bb4fc3593693c44c6241b9184a0 | 1,176 | package com.twu.biblioteca.requester;
import com.twu.biblioteca.command.Command;
public class Keypad {
private Command listCommand;
private Command checkoutCommand;
private Command returnbackCommand;
private Command stopCommand;
private Command warnCommand;
public void setListCommand(Command ... | 22.615385 | 65 | 0.673469 |
b673a951056344a03181aafcb08c45756190933a | 3,076 | /*
* Copyright (c) 2017 Nova Ordis 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 agre... | 31.387755 | 120 | 0.473667 |
61b73e9947d8d3f5c59da17e1707c968b52f0723 | 678 | package cn.amap.service2.controller;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
i... | 22.6 | 62 | 0.733038 |
fbc6d09b10d8fbd015a9c0f6f01ce760671a7954 | 1,043 | package hr.from.ivantoplak.recipeappreactive.config;
import hr.from.ivantoplak.recipeappreactive.domain.Recipe;
import hr.from.ivantoplak.recipeappreactive.services.RecipeService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework... | 40.115385 | 85 | 0.756472 |
42c22957fb78cb497379efdcf0bd57c9d5950d38 | 3,003 | package xyz.tostring.cloud.errands.common.dto;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
@Data
public class BaseResult implements Serializable {
public static final String RESULT_OK = "ok";
public static final String RESULT_NOT_OK = "not_ok";
public static final String SUCC... | 21.919708 | 127 | 0.591409 |
0767331be6649a54bfc396e6d575df415e78269c | 6,298 | package com.mediatek.engineermode.hqanfc;
import android.app.Activity;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.os.... | 36.404624 | 92 | 0.616545 |
3db8aef58ee5930130763201b7111ec98b4de44e | 2,173 | package net.ozwolf.mongo.migrations;
import net.ozwolf.mongo.migrations.exception.InvalidMigrationNameException;
import org.apache.commons.lang.StringUtils;
import org.jongo.Jongo;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* <h1>Migration Command</h1>
*
* The command object all migration... | 32.432836 | 142 | 0.610676 |
91af46977d40c1eb0b60f0bc143b90fe368caea4 | 5,500 | package ${domain.namespace}.asset;
import com.amazonaws.AmazonClientException;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.ClientConfiguration;
import com.amazonaws.auth.AWSStaticCredentialsProvider;
import com.amazonaws.auth.BasicAWSCredentials;
import com.amazonaws.client.builder.AwsClientBuild... | 40.441176 | 131 | 0.696545 |
4de62d43c1cfe2ecbdd8b7877f7d167e9ab02d0a | 1,872 | package com.vk.api.sdk.queries.messages;
import com.vk.api.sdk.client.AbstractQueryBuilder;
import com.vk.api.sdk.client.VkApiClient;
import com.vk.api.sdk.client.actors.GroupActor;
import com.vk.api.sdk.objects.base.responses.OkResponse;
import java.util.Arrays;
import java.util.List;
/**
* Query for Messages.mark... | 32.275862 | 126 | 0.702457 |
1e4dd5cfc83943f4510d67ede90449898cb91a1a | 9,196 | package com.vondear.rxtools.activity;
import android.content.Intent;
import android.content.res.Configuration;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.WindowManager;
import android... | 37.382114 | 186 | 0.653545 |
f2e95ab75b955daad4b974247bed17cbdb32e4d2 | 1,079 | /*
* 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 persistencia;
import classesDados.Professor;
/**
*
* @author M
*/
public class OrdenarPorEscolaNome extends ProfessorPersi... | 30.828571 | 102 | 0.674699 |
0f08c0a400183f734e6b5905b2c77a8f70fc552d | 203 | package artrointel.designpattern.creational.factory_method;
public class NewyorkPizzaStore extends PizzaStore {
@Override
public Pizza createPizza() {
return new NewyorkPizza();
}
}
| 22.555556 | 59 | 0.738916 |
55611111a653dc2d7dc5514c5cf71340bc29297b | 3,874 | /*
* <p>Copyright (c) 2016, Authors</p>
*
* <p>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</p>
*
* <p>http://www.apache.org/licenses/LICENSE-2.0</p>
*
* <p>Unless required by applica... | 46.119048 | 182 | 0.72509 |
32c26c62d71bfb9c1b887ee573bfcca4a96b9906 | 1,329 | /**
* Copyright 2020 Alibaba Group Holding Limited.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | 37.971429 | 110 | 0.766742 |
c4b357499f08cc6929622e2fd428edafe4249e87 | 13,938 | /**
* Copyright (C) 2016 - present McLeod Moores Software Limited. All rights reserved.
*/
package com.mcleodmoores.starling.client.portfolio.fpml5_8;
import java.util.Map;
import java.util.NoSuchElementException;
import java.util.Set;
import org.joda.beans.Bean;
import org.joda.beans.BeanDefinition;
import org.jo... | 31.605442 | 138 | 0.628426 |
e3c1090e0821eef2833ada71dc753a11b4ef8c4e | 1,936 | package com.crowsofwar.avatar.common;
import com.crowsofwar.avatar.AvatarInfo;
import com.crowsofwar.avatar.common.analytics.AnalyticEvents;
import com.crowsofwar.avatar.common.analytics.AvatarAnalytics;
import com.crowsofwar.avatar.common.data.Bender;
import com.crowsofwar.avatar.common.entity.mob.EntityBender;
impor... | 29.333333 | 85 | 0.775826 |
e0750c028e7a04c9a34cf4f960dc096807b26d11 | 4,946 | class nkBHD3UuA {
public static void Q1JGf3A2YiwFz (String[] YkFGH6QAuSy_XB) throws D2au7 {
void mizy6IPc9;
return;
!yGO_NcDyGOS1u().ydmsTjx();
return -null.NzeU2MuJ1PYN;
int PNuzv = !new Oxr9KI382bn[ ( -95026.ZEkM()).aV2SWnoJZgkPC].zXKx() = !-033087788.QQUQE();
whi... | 34.347222 | 150 | 0.534169 |
5d2fe0a9805842997ed2b56f08a33cbcdf0242b0 | 264 | package network.warzone.warzoneapi.models;
import lombok.AllArgsConstructor;
/**
* Created by Jorge on 11/01/2019
*/
@AllArgsConstructor
public class PlayerTagsUpdateRequest {
private String tag;
public enum Action {
ADD, REMOVE, SET
}
}
| 15.529412 | 42 | 0.708333 |
ec75e03852b4a2bda53795adaee6a0439bcb9f7b | 207 | package org.tron.core.exception;
public class ZksnarkException extends TronException {
public ZksnarkException() {
super();
}
public ZksnarkException(String message) {
super(message);
}
}
| 15.923077 | 53 | 0.714976 |
a15d7fb28c04d6b270f408b652fb40da797cfa5c | 2,594 | /*******************************************************************************
* Copyright 2016 Antoine Nicolas SAMAHA
*
* 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
*
* ... | 41.174603 | 175 | 0.700848 |
7ba46a39be6a462f454c66865ec59be0a5f6badf | 1,000 | package com.mapp.demo.controller;
import com.mapp.shiro.entity.Authority;
import com.mapp.shiro.util.ShiroUtil;
import com.mapp.shiro.util.StaticData;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.HashMap;
import java.uti... | 26.315789 | 62 | 0.66 |
1d9312e08faa2a92d08957d4e3f92c92673bcc86 | 7,850 | package com.buahbatu.elderlywatch.adapter;
import android.content.Context;
import android.media.MediaPlayer;
import android.media.Ringtone;
import android.media.RingtoneManager;
import android.net.Uri;
import android.support.v4.content.ContextCompat;
import android.support.v7.widget.RecyclerView;
import android.text.T... | 35.36036 | 115 | 0.639873 |
a6d1c92fec148176794fd953c4b87a56e3fc6e4c | 2,445 | /*
* Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available.
*
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
*
* BK-BASE 蓝鲸基础平台 is licensed under the MIT License.
*
* License for BK-BASE 蓝鲸基础平台:
* ----------------------------------------------... | 47.941176 | 116 | 0.731697 |
8b8b90e75a0eeecaa2737ad8b1ae610e977e4ced | 1,050 | package test.socket.tcp;
import java.io.IOException;
import java.net.Socket;
/**
* 服务端
*/
public class SocketTCPClient {
public static void start(String host, int port, String name) {
while (true) {
Socket socket;
try {
socket = new Socket(host, port);
... | 30 | 100 | 0.478095 |
874fd0ac253beecad219c7faed518e18da5cd504 | 21,814 | package org.esupportail.portal.ws.server;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import org.jasig.portal.EntityIdentifier;
import org.jasig.portal.groups.GroupsException;
import org.jasig.portal.groups.IEntity;
import or... | 32.221566 | 96 | 0.686623 |
521b7351036c24db7947a4a16a1dfc62229c0489 | 1,495 | package com.satish.commandserver;
import java.io.*;
import java.net.*;
public class Application {
public static void main(String[] args) throws Exception{
System.out.println("Server Signing ON");
ServerSocket ss = new ServerSocket(9095);
Socket soc = ss.accept();
PrintWriter nos = ... | 33.222222 | 72 | 0.459532 |
226283c38b47f478ef4035d73b29f4aabc3ba36d | 5,531 | package org.tll.canyon.dao.hibernate;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.lang.StringEscapeUtils;
import org.hibernate.Criteria;
import org.hibernate.HibernateException;
import org.hibernate.Session;
import org.hibernate.criterion.Exampl... | 49.383929 | 168 | 0.653046 |
cf77d32eec667e05fe0413ce45479d9c0cb6df9f | 7,929 | package UserPackage;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.ResourceBundle;
import java.util.Set;
import cellpackage.Cell;
import cellpackage.CellHandler;
import cellpackage.FireCellHandler;... | 27.341379 | 164 | 0.732249 |
d189547b41bcdce8dde8562e982640d2324e036a | 2,163 | package entidade;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import java.util.UUID;
public class Cliente {
private String id;
private String nome;
private String cpf;
private Date dataNascimento;
private Date dataEmpresa;
private List<Endereco> endereco... | 21.205882 | 116 | 0.717522 |
98a9b43d0961674416240d5804065cae78d55c53 | 2,800 | package com.cloudberry.cloudberry.topology.model.mapping.useMetadata;
import com.cloudberry.cloudberry.kafka.event.generic.ComputationEvent;
import com.cloudberry.cloudberry.topology.model.mapping.MappingEvaluation;
import com.cloudberry.cloudberry.topology.model.mapping.MappingExpression;
import com.cloudberry.cloudb... | 49.122807 | 119 | 0.700714 |
6c5f18befa1b94ebf9160ea3df3f8c80c1896090 | 1,875 | package butterknife.internal;
import com.google.common.base.Joiner;
import com.google.testing.compile.JavaFileObjects;
import javax.tools.JavaFileObject;
import org.junit.Test;
import static butterknife.internal.ProcessorTestUtilities.butterknifeProcessors;
import static com.google.testing.compile.JavaSourceSubjectFa... | 37.5 | 98 | 0.6192 |
e8ac1e38db245be7200d9b805240a1d9887992f3 | 1,547 | package com.example.springboot;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import com.example.springboot.pojo.Student;
import org.springframework.util.CollectionUtils;
public class LambdaTest {
public static void ma... | 24.555556 | 83 | 0.559147 |
5d1bfc7558aedde3c9ef84a4ea9ca1830309b38d | 363 | package com.cupshe.data.access.common;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* 权限
* <p>Title: Permission</p>
* <p>Description: </p>
* @author zhoutaoping
* @date 2020年10月29日
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Permissi... | 16.5 | 39 | 0.699725 |
cff1a5f896d9fb3dd9e4a5d5769ac3db2c57c694 | 11,877 | package fr.bruju.rmeventreader.implementation.detectiondeformules.transformation;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import java.util.Stack;
import fr.bruju.rmeventreader.implementation.detectiondeformules.EtatInitial;
import fr.bruju.rmeventreader.implementation.detectiondeform... | 41.527972 | 118 | 0.752042 |
3d435f3fafe5f0f73afcd8c1b0671a9312d4e3b3 | 497 | package org.cthul.api4j.api1;
import groovy.lang.Closure;
/**
* Helper class to allow `generatedClass "Foo" { ... }` in Groovy scripts.
*/
public class GenerateTask {
private final String name;
private final Closure<?> closure;
public GenerateTask(String name, Closure<?> closure) {
this.na... | 19.115385 | 74 | 0.613682 |
aad59875c1668eaa6c7a29e47df86d3652c4cd69 | 1,311 | package com.okode.cordova.sightcall.events;
import android.util.Log;
import com.okode.cordova.sightcall.Constants;
import com.sightcall.universal.media.MediaSavedEvent;
import org.json.JSONException;
import org.json.JSONObject;
/**
* Created by rpanadero on 21/7/17.
*/
public class MediaSaved implements Event {
... | 28.5 | 90 | 0.687262 |
70b6755b2649e5c6d0110e6145c6b6220d6af9d8 | 3,168 | /*******************************************************************************
* Copyright 2012 Analog Devices, 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:/... | 27.547826 | 102 | 0.693813 |
009de216694425c901a9f3c542c37a5d4c51c6d5 | 5,621 | package org.firstinspires.ftc.teamcode.test;
import com.qualcomm.robotcore.eventloop.opmode.Disabled;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
import com.qualcomm.robotcore.hardware.Servo;
import com.qualcomm.robotcore.util.ElapsedTime;
import... | 34.697531 | 94 | 0.484611 |
88477cfe69745d29694597537f1b6df895436a7e | 1,031 | final class Solution {
private static boolean isKeithNumber(final int n)
{
final String digits = String.valueOf(n);
final int len = digits.length();
final java.util.Queue<Integer> terms = new java.util.ArrayDeque<>(len);
int acc = 0;
for (int i = 0; i !=... | 28.638889 | 79 | 0.483996 |
72796f006767c80246429a6c1b2e448d235a7bd0 | 441 | package com.antheminc.oss.nimbus.test.exclude.core;
import com.antheminc.oss.nimbus.domain.defn.Domain;
import com.antheminc.oss.nimbus.domain.defn.Domain.ListenerType;
import com.antheminc.oss.nimbus.domain.defn.Repo;
import lombok.Data;
@Domain(value = "sampleExcludeEntity", includeListeners = { ListenerType.webso... | 29.4 | 85 | 0.798186 |
9f956875b97cb1abf96cc094c17ec7a8d066b61b | 1,683 | package com.troycardozo.lib.config;
import java.io.File;
import java.io.IOException;
import com.troycardozo.lib.App;
import org.bukkit.configuration.InvalidConfigurationException;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.configuration.file.YamlConfiguration;
public class YmlConfig {... | 22.743243 | 68 | 0.588235 |
375706058a900dd7dcf49cf13cd275d24016178c | 2,769 | package com.token.jwt.jwt.security;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Date;
import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.auth0.jwt.JWT;
import com... | 41.328358 | 144 | 0.710365 |
1a5684ed713875a0e2a5648e07470cff7f4255da | 1,907 | package cn.hutool.poi.excel;
import java.util.ArrayList;
import java.util.List;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import cn.hutool.core.util.StrUtil;
import cn.hutool.poi.excel.cell.CellEditor;
import cn.hutool.poi.ex... | 22.174419 | 98 | 0.631883 |
dceebe8fbf9f6aa4df86c23e1a4e736838ea6bc4 | 1,607 | package org.bluedb.disk.segment;
import java.io.Serializable;
import java.nio.file.Path;
import java.util.List;
import org.bluedb.api.keys.BlueKey;
import org.bluedb.disk.segment.path.SegmentPathManager;
import org.bluedb.disk.segment.path.SegmentSizeConfiguration;
public abstract class ReadableSegmentMana... | 33.479167 | 122 | 0.779714 |
c758f1e86b23655754dc9de4487d18e116ff0e86 | 3,370 | /*
* traQ v3
* traQ v3 API
*
* The version of the OpenAPI document: 3.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.github.motoki317.traq4j.api;
import com.github.motoki317... | 23.082192 | 111 | 0.607715 |
7be03da487cca0c59ab0f7f9bc664be18a9e9598 | 62 | package com.example.datastructs;
public class BinaryTree {
}
| 12.4 | 32 | 0.790323 |
e88d91c9db63c0641b1031d78886a5108dd93a47 | 36,386 | package jetbrains.mps.lang.structure.behavior;
/*Generated by MPS */
import jetbrains.mps.core.aspects.behaviour.BaseBHDescriptor;
import org.jetbrains.mps.openapi.language.SAbstractConcept;
import jetbrains.mps.smodel.adapter.structure.MetaAdapterFactory;
import jetbrains.mps.core.aspects.behaviour.api.SMethod;
impo... | 76.121339 | 943 | 0.777085 |
e9f4b8aa8231e3e13bf48fcbc86d4a8de676ab73 | 6,815 | /*
************************************************************************************
* Copyright (C) 2001-2015 Openbravo S.L.U.
* Licensed under the Apache Software License version 2.0
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agr... | 32.922705 | 99 | 0.628907 |
fa0ce2d5c16ed85107a8ee4f119cffcfdba43af2 | 3,311 | package examples;
import javax.swing.*;
import java.awt.event.*;
import java.util.List;
import java.util.concurrent.*;
import java.lang.reflect.*;
public class Execl extends JFrame implements ActionListener {
int k = 0;
int n = 15;
JTextArea ta = new JTextArea(40,20);
Execl() {
add(new JScro... | 26.701613 | 78 | 0.536394 |
6aef4a2f1570aaa441993b4e2da6e29ef7b16b1e | 5,411 | package com.jcodes.jms.mq;
import java.util.ArrayList;
import java.util.Collection;
import javax.jms.BytesMessage;
import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.TextMessage;
import org.apache.log4j.Logger;
import com.ibm.mq.jms.MQConnection;
import com.ibm.mq.jms.MQMessageConsumer;
impor... | 24.484163 | 138 | 0.695805 |
f53fec5887f1d1ec4a2eac87138addef04a3a42a | 2,838 | package com.eva.core.servlet;
import javax.servlet.ReadListener;
import javax.servlet.ServletInputStream;
import java.io.*;
import java.nio.charset.Charset;
/**
* 包含副本的输入流
* @author Eva.Caesar Liu
* @date 2021/07/13 22:37
*/
public class ServletDuplicateInputStream extends ServletInputStream {
private Servle... | 26.036697 | 102 | 0.55814 |
dbdcc142ecdc18802ff032b14957a7d4061cfe2c | 2,269 | // Copyright 2015 Eivind Vegsundvåg
//
// 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 i... | 34.907692 | 85 | 0.709564 |
81c6eb867b4a716dc28b92dd2da10b6569503af2 | 4,671 | package demo.phone;
import demo.phone.dto.PhoneDTO;
import demo.phone.repository.PhoneRepository;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.SpringApplicationConfiguration;
import ... | 29.012422 | 75 | 0.54164 |
576e2077f704c19166a55ef0a55f2307a0f93b01 | 1,879 | /*
* Copyright (c) Kevin KDA 2019. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
* Morbi non lorem porttitor neque feugiat blandit. Ut vitae ipsum eget quam lacinia accumsan.
* Etiam sed turpis ac ipsum condimentum fringilla. Maecenas magna.
* Proin dapibus sapien vel ante. Aliquam erat volutpat. Pellent... | 36.134615 | 122 | 0.70942 |
6ee680acb4a69b9d876ad80710ccb7778bc9dd05 | 11,141 | package org.qrinvoice.core;
import javax.validation.constraints.Digits;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;
import java.util.Collections;
import java.util.Map;
import java.util.TreeMap;
import static org.qrinvoice.core.InvoiceAttributesC... | 21.63301 | 88 | 0.653712 |
4fbeb863355a094cc98cf959573414c244ac516d | 818 | package com.thoughtbot.expandablerecyclerview.sample.singlecheck;
import android.view.View;
import android.widget.Checkable;
import android.widget.CheckedTextView;
import com.thoughtbot.expandablecheckrecyclerview.viewholders.CheckableChildViewHolder;
import com.thoughtbot.expandablerecyclerview.sample.R;
public clas... | 29.214286 | 88 | 0.816626 |
af56e83637914f90668243fba9c99082f5f6ffda | 4,334 | /*
* Copyright 2015 Martin Bella
*
* 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... | 37.042735 | 77 | 0.636825 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.