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 |
|---|---|---|---|---|---|
babdaca53c99a6c86e01ce3bc73a29ac008e1d36 | 779 | package org.cinnamon.core.initWizard;
import org.cinnamon.core.config.InitWizardConfigurer;
import org.cinnamon.core.config.builder.WizardBuilder;
import org.springframework.stereotype.Component;
/**
*
* created at 2017. 1. 6.
* @author shin dongseong
*
*/
@Component
public class CoreInitWizardConfigurer implem... | 25.129032 | 71 | 0.749679 |
b35cc3c338748408912ef2195902c2bfeebf6821 | 570 | package org.zezutom.schematic.service.generator.json;
import org.junit.Test;
import org.zezutom.schematic.TestUtil;
import static org.junit.Assert.assertTrue;
public class IntegerGeneratorTest extends ValueGeneratorTestCase<Integer, IntegerGenerator> {
@Override
IntegerGenerator newInstance() {
retu... | 24.782609 | 93 | 0.722807 |
9e39820a5addbdcb4237181a4712d29ebd4fa2e6 | 2,087 | package systems.comodal.mustache;
import com.github.mustachejava.DefaultMustacheFactory;
import com.github.mustachejava.MustacheFactory;
import java.io.FileWriter;
import java.io.IOException;
import java.io.UncheckedIOException;
import java.security.Security;
import java.util.Collection;
import java.util.Comparator;
i... | 31.149254 | 91 | 0.728318 |
1a91deaa98c375b23902572350e26bd44baec759 | 393 | package layout;
import android.location.Location;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.location.LocationRequest;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.model.CameraPosition;
import com.google.android.gms.maps.model.LatLng;
/... | 20.684211 | 57 | 0.788804 |
fa232a365d88e55e4d717fe3940e195f215a6b77 | 2,260 | /*
* Copyright (C) 2019 Toshiba Corporation
* SPDX-License-Identifier: Apache-2.0
*/
package org.wcardinal.io.websocket;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.h... | 32.285714 | 87 | 0.777876 |
c78410b9a58aa4be138d377ea2a8a3ef2ef1ca56 | 222 | package dev.yukiho.springstrategypattern.exception;
public class BaseException extends RuntimeException {
protected BaseException(String message) {
super(message);
System.out.println(message);
}
}
| 24.666667 | 53 | 0.734234 |
5fe7c3616570ec9cf49cf37d950089b305582bd3 | 3,560 | package com.basic;
import java.io.IOException;
import java.io.Serializable;
import javax.faces.application.FacesMessage;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.context.FacesContext;
import javax.faces.event.AbortProcessingException;
import javax.faces.event.Actio... | 24.217687 | 119 | 0.643258 |
041dc1d846db16280a1fa4c254e88bd7d47b61a2 | 532 | package com.jamalam360.enchantments.armor;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.enchantment.EnchantmentTarget;
import net.minecraft.entity.EquipmentSlot;
public class SwiftEnchantment extends Enchantment {
public SwiftEnchantment() {
super(Rarity.VERY_RARE, EnchantmentTarget.... | 24.181818 | 103 | 0.725564 |
f65123a9069938e3adacaa2c3466e37c10cf0413 | 241 | /**
*
*/
package io.nettythrift.core;
/**
* 逻辑执行(时间)统计
*
* @author HouKx
*
*/
public interface LogicExecutionStatistics {
boolean shouldExecuteInIOThread(String method);
void saveExecutionMillTime(String method, int exeTime);
}
| 14.176471 | 56 | 0.709544 |
8560060f409ae678b7241afbeb2c8d45f1c6e453 | 4,468 | /*
* Copyright 2012 JBoss 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 ... | 39.539823 | 99 | 0.713966 |
a62f41d61c4f8012d5db05594d10ece36aace1aa | 1,264 | package cn.bootx.payment.core.paymodel.alipay.dao;
import cn.bootx.common.core.rest.param.PageParam;
import cn.bootx.common.mybatisplus.impl.BaseManager;
import cn.bootx.common.mybatisplus.util.MpUtils;
import cn.bootx.payment.core.paymodel.alipay.entity.AlipayConfig;
import cn.bootx.payment.param.paymodel.alipay.Alip... | 30.095238 | 87 | 0.747627 |
3117832d39402e00caf82a349b6b27cf58bdfaec | 3,649 | /*
* Copyright (C) 2018 Knot.x 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 applicable law or agr... | 40.098901 | 100 | 0.743491 |
076deb5f86e53c69f1df410f3a8e2d96807a5f17 | 1,626 | package everyos.bot.luwu.mongo.database;
import java.util.ArrayList;
import java.util.function.Consumer;
import org.bson.Document;
import everyos.bot.luwu.core.database.DBArray;
import everyos.bot.luwu.core.database.DBObject;
public class MongoDBArray implements DBArray {
protected ArrayList<Object> dat... | 24.268657 | 56 | 0.671587 |
a2f836d5f84a9530bd4a533770534eb556145302 | 2,352 | package foo.bar;
import java.util.ArrayList;
public class Clazz {
public void with_bad_method() {
System.out.print("foo");
System.out.print("foo");
System.out.print("foo");
System.out.print("foo");
System.out.print("foo");
System.out.print("foo");
System.ou... | 29.772152 | 52 | 0.521259 |
cfccd1c0fb1550c46bb50cea1a4a0f5fc627275a | 1,910 | package com.gaofan.mqreids.controller;
import com.alibaba.fastjson.JSON;
import com.gaofan.mqreids.entity.BookEntity;
import com.gaofan.mqreids.mapper.BookMapper;
import com.gaofan.mqreids.service.BookService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.s... | 33.508772 | 125 | 0.666492 |
4d98fae3b01281b02b7d76f7c6400c93578a544d | 2,462 | package com.solution.onequestionperday.june2021.oqpd494;
/**
* @ClassName Oqpd494
* @Description 494. Target Sum
* You are given an integer array nums and an integer target.
* <p>
* You want to build an expression out of nums by adding one of the symbols '+' and '-' before each integer in nums and then concatenat... | 24.137255 | 154 | 0.50528 |
42ab014093a193f30b623c0c85c3ef325d0b425b | 3,735 | package anki;
import de.adesso.anki.Vehicle;
import de.adesso.anki.messages.SetSpeedMessage;
import org.java_websocket.client.WebSocketClient;
import org.java_websocket.handshake.ServerHandshake;
import org.json.JSONException;
import org.json.JSONObject;
import java.net.URI;
import java.net.URISyntaxException;
public... | 32.478261 | 160 | 0.473896 |
7ef3bbb5e44028781e05e863a0ab852f1d5ff1be | 698 | package designpattern.adapter;
/**
* @author xindaqi
* @description 是脾气模式:电源适配器
* @since 2021-02-11 07:02:17
*/
public interface IPowerSupplyAdapter {
/**
* description: 5V电源
*
* @param
* @return 5V电压
* @since 2021-02-11 07:35:33
*/
default int fiveVoltage() {
return ... | 16.232558 | 43 | 0.524355 |
88d3a8ca2b7d3194985fd633f5ea1ac9d7ef14d8 | 176 | package Evidence;
public class getBiggerNum {
public static int getBiggerNum(int... nums){
Array.sort();
return nums(nums.length-1);
return nums.get(nums.size()-1);
}
}
| 14.666667 | 44 | 0.704545 |
553e70981a883e9a0d317474dff1896cfd3af629 | 1,757 | package ro.webdata.parser.xml.lido.core.leaf.resourceSource;
import ro.webdata.parser.xml.lido.core.attribute.LidoSortOrder;
import ro.webdata.parser.xml.lido.core.attribute.LidoType;
import ro.webdata.parser.xml.lido.core.complex.legalBodyRefComplexType.LegalBodyRefComplexType;
/**
* <link rel="stylesheet" t... | 29.283333 | 114 | 0.688674 |
d936140257df6b8463b0b2f19e1d39ce7465bd87 | 18,758 | // Copyright (c) 2016, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// This code is not run directly. It needs to be compiled to dex code.
// 'invoke.dex' is what is run.
pa... | 41.045952 | 100 | 0.594253 |
d660394b92f5839a98e8301e6759accd545abbfd | 2,869 | /*
* Copyright 2021 TiKV Project 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... | 37.75 | 100 | 0.749041 |
607a967e1d8839eaf1fab25a6529f5fbb4ada7c2 | 1,717 | package grid.text.participle;
import grid.common.Node;
import grid.common.TextUtils;
import grid.common.Tree;
import grid.text.dic.CnDictionary;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
* ChunkStream.java 2013-10-3 15:55:31
*
* @Author George Bourne
*/
public class Ch... | 24.183099 | 76 | 0.673267 |
37ab923667199944078087135ee347df55d61857 | 1,560 | package com.vinkel.remindmewheniamthere.views.home;
import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import android.support.v7.app.AppCompatActivity;
import com.vinkel.remindmewheniamthere.R;
import com.vinkel.remindmewheniamthere.RMWITApplication;
import com.vinkel.remindmewheniamthere.config.... | 27.368421 | 89 | 0.757051 |
ff8cb8156d6beaaf9d6bb5a54ffb7496ea590c1d | 909 | package com.gof.springcloud.model;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import io.swagger.annotations.ApiModel;
... | 32.464286 | 96 | 0.777778 |
71b00daebd4177ee1a6aae6873fff1872a754aea | 181 | package org.iot.raspberry.examples;
import org.iot.raspberry.grovepi.GrovePi;
public interface Example {
public void run(GrovePi grovePi, Monitor monitor) throws Exception;
}
| 18.1 | 69 | 0.790055 |
5f931ac2bf3d13877d78bf1da1de16b946d36639 | 1,363 | package com.blazemeter.jmeter.correlation.core;
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Before;
import org.junit.Test;
public class BaseCorrelationContextTest {
BaseCorrelationContext baseCorrelationContext;
@Before
public void setup() {
baseCorrelationContext = new Bas... | 29.630435 | 82 | 0.791636 |
9a900ee2c8f819724a49db78736646640f468cf5 | 9,336 | package com.app.bombill.Activities;
import android.Manifest;
import android.content.Intent;
import android.content.IntentSender;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.location.Address;
import android.location.Geocoder;
import android.os.Bundle;
import androi... | 45.764706 | 259 | 0.604542 |
8015b30720733663e333b183704b7b5c3642265f | 3,562 | /*
* 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... | 65.962963 | 138 | 0.841662 |
1e80bbc4266560a3a39b624ce30155cc4b87cc2b | 5,781 | package org.sagebionetworks.bridge;
import static org.sagebionetworks.bridge.RequestContext.NULL_INSTANCE;
import static org.sagebionetworks.bridge.Roles.DEVELOPER;
import static org.sagebionetworks.bridge.Roles.WORKER;
import static org.sagebionetworks.bridge.TestConstants.LANGUAGES;
import static org.sagebionetworks... | 48.579832 | 119 | 0.723577 |
38f6009dcaac36d542ef32652ca9d3248c393ff7 | 691 | package com.xxc.entity.enums;
/**
* @author xixincan
* 2020-03-10
* @version 1.0.0
*/
public enum IpPlanEnum {
ALL_ACCESS(0),
WHITE_ACCESS(1),
BLACK_DENIED(2);
private int strategy;
IpPlanEnum(int strategy) {
this.strategy = strategy;
}
public int getStrategy() {
ret... | 19.194444 | 54 | 0.531114 |
8e96ee010744d6ae5165f88628ee0e3762c61943 | 882 | package me.artspb.idea.jdk2trove.hashset;
import com.intellij.codeInspection.BaseJavaLocalInspectionTool;
import me.artspb.idea.jdk2trove.TroveTestCase;
/**
* @author Artem Khvastunov
*/
public class THashSetQuickFixTest extends TroveTestCase {
public void testTHashSet() throws Exception {
doAllTests("... | 26.727273 | 83 | 0.65873 |
6b861e006e1a0f0849a456747a8370877e9c8011 | 1,179 | package com.ahtsho.boot;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringB... | 36.84375 | 90 | 0.833757 |
0fca0c819ad972a15227d03722d9c8cd224b007c | 16,621 | /**
* Copyright (c) 2014-2015 Digi International Inc.,
* All rights not expressly granted are reserved.
*
* 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/.
*
* Dig... | 35.36383 | 164 | 0.692858 |
4a65ceb5f0eb1485e32311ddffa448be454c5d7a | 2,042 | package one.digitalinnovation.exercicios.e13map;
import java.util.HashMap;
import java.util.Map;
public class MainE13 {
public static void main(String[] args) {
Map<String, String> brasil = new HashMap<>();
brasil.put("ac", "acre");
brasil.put("al", "alagoas");
brasil.put("ap", "a... | 32.935484 | 84 | 0.558276 |
46c86d093efae3232dd694b54496853525c1e878 | 1,434 | /*
* Copyright 2019-2020 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... | 24.305085 | 75 | 0.746165 |
93b1c59379fb1986e190cc842d1884ae242fc3e0 | 135 | class A {
private Integer <caret>i = getByte();
static byte getByte() { return 0; }
void foo() {
i = 10;
}
}
| 13.5 | 41 | 0.496296 |
c78683d599faf61305e9fda2e094de4ab1ce48c4 | 5,939 | /**
*
* 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"); ... | 35.35119 | 117 | 0.652804 |
142b1afdd5721662fb758e957c4577e5b97ec88b | 2,441 | /*
* Copyright (c) 2017, GoMint, BlackyPaw and geNAZt
*
* This code is licensed under the BSD license found in the
* LICENSE file in the root directory of this source tree.
*/
package io.gomint.server.enchant;
import io.gomint.inventory.item.ItemType;
import io.gomint.server.inventory.item.ItemStack;
import io.g... | 36.432836 | 107 | 0.643998 |
6184f222afc45341e1f439ff682feffafdf373c0 | 3,966 | /* 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... | 48.365854 | 198 | 0.72113 |
c81cca755258d80bd320cb08e1ffeb92177afa1a | 3,039 | /*
* Selling Partner API for Direct Fulfillment Shipping
* The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data.
*
* OpenAPI spec version: v1
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://g... | 25.537815 | 135 | 0.708128 |
ad13cce93b8229b5025f8383153f137ec5091309 | 2,564 | /* ###
* IP: GHIDRA
*
* 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 writin... | 30.891566 | 86 | 0.722309 |
fbeebf1383978c283552562ea29bb0a78480a2bf | 520 | Write a class PrefixCheck with a main method. The method receives one command line argument. If the argument starts with en print it as it is, else prepend en and print the output.
These are examples for your understanding :
Cmd Args : bye
enbye
Cmd Args : entertainment
entertainment
package q11192;
public class P... | 16.774194 | 180 | 0.707692 |
fa618bbad39079e1decf9cb17e8377397f7df138 | 18,631 | /**
Copyright (c) 2010, Cisco Systems, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and t... | 34.501852 | 96 | 0.730771 |
8d4f21a2a8885cc80b860bfabc75a7d09c1c14a1 | 12,109 | /*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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
... | 39.832237 | 145 | 0.673962 |
0f4faf1589a96e9b4deab03d2ee338db5d653d40 | 482 | package com.me.webflux.request_n;
import org.junit.jupiter.api.Test;
import reactor.core.publisher.Flux;
import reactor.test.StepVerifier;
public class StepVerifierThenRequestAndThenCancelTest {
@Test
public void thenRequestAndThenCancelTest() {
Flux<String> flux = Flux.just("apple", "banana", "grape... | 25.368421 | 84 | 0.643154 |
ba5caba6eb3f050be196b6e5660bb65a1d61e707 | 1,814 | /*
* (C) Copyright 2018 PANTHEON.tech, s.r.o. and others.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 28.34375 | 104 | 0.692944 |
3bbe64c5dec58dd06c029de9a1a85ea57226e8a0 | 1,325 | package com.chao.cloud.admin.sys.dal.entity;
import java.io.Serializable;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import cn.hutool.core.date.DatePattern;
import lombok.D... | 15.588235 | 61 | 0.704906 |
122f3b3d0b8edb529f3b2e606a5b47d576cd47c0 | 429 | package ie.gmit.sw.sprite;
import ie.gmit.sw.Tile;
public class SpriteFactory {
/*
* factory class for character
*/
public enum Type {
player;
}
public static Tile create(Type type, int x, int y) {
switch (type) {
case player:
// return a standard type
return new SpriteBuilder().setType(Sprite... | 17.16 | 82 | 0.675991 |
27b5ecd4b8cbe4503018c9d652385734592e57de | 1,104 | package exer05;
/**
* 顧客データクラス<br>
* テキストボックスから入力された値を格納&<br>
* データベースから取得したデータ格納するためのクラスです。
*
* @see GakuseiList
*/
public class CustomerData {
private String classnum; // クラス番号
private String name; // 氏名
private String phone; // 携帯電話
private String hobby; // 趣味
public CustomerData(... | 12.988235 | 46 | 0.538949 |
0c877af07f2dd235b4179be033fe39f8cb7ecf56 | 333 | //14, 17, 14, 17 replaceAll == true, removeDeclaration == true
package p;
import static q.Consts.III;
import q.Consts;
public class A {
public static final int getCount() { return 42; }
public static final int getCount2() { return 42; }
int getIII() {
int i= q.Consts.III;
int ii= Consts.III;
return III + ... | 19.588235 | 63 | 0.660661 |
e254d2fbaf76eafd42a6f9017b40635fb796c215 | 457 | package org.wapache.security.oauth2.server.demo.dao;
import org.wapache.security.oauth2.server.demo.entity.Client;
import java.util.List;
public interface ClientDao {
Client createClient(Client client);
Client updateClient(Client client);
void deleteClient(Long clientId);
Client findOne(Long clie... | 19.041667 | 61 | 0.752735 |
d44a07b8eb9172f1968c58518c5332d683bedd52 | 504 | package com.jeffrey.change.web.controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* @author:jeffrey(jeffreyji@aliyun.com)
* @date: 2018/12/15 9:48
* @version:1.0.0
... | 21.913043 | 62 | 0.734127 |
6dc5cca2543b1eee63daf2a6bcf8bbee82dbbf1b | 3,423 | package org.firstinspires.ftc.teamcode.CVRec;
import org.opencv.core.Core;
import org.opencv.core.Mat;
import org.opencv.core.Point;
import org.opencv.core.Rect;
import org.opencv.core.Scalar;
import org.opencv.imgproc.Imgproc;
public class CVFrenzyPipeline extends CVPipelineBase {
private Mat region_Cb;
pr... | 33.558824 | 105 | 0.63979 |
596baadfab4251a3ac03893d1a4c1e2d63b9f2e9 | 1,044 | package com.lyghtningwither.honeyfunmods.util.compat.jei.compressor;
import com.lyghtningwither.honeyfunmods.util.Reference;
import mezz.jei.api.IGuiHelper;
import mezz.jei.api.gui.IDrawableAnimated;
import mezz.jei.api.gui.IDrawableStatic;
import mezz.jei.api.recipe.IRecipeCategory;
import mezz.jei.api.recip... | 40.153846 | 134 | 0.801724 |
82607d7c481b23e1124b44adc07013d13c79077e | 1,892 | package com.example.rest;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.core.NestedExceptionUtils;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.s... | 35.037037 | 112 | 0.742072 |
a59688f7d2f05ac19d84bbb73ef91a46874b5c6c | 1,027 | package it.vige.labs.gc.rest;
import static it.vige.labs.gc.messages.Severity.error;
import static it.vige.labs.gc.messages.Severity.message;
import static java.util.Arrays.asList;
import org.springframework.stereotype.Component;
import it.vige.labs.gc.bean.votingpapers.VotingPapers;
import it.vige.labs.gc.messages.... | 33.129032 | 88 | 0.774099 |
6cb86837c0a684ac573ee34d3bebaabdf3b2022b | 4,712 | package org.swellrt.beta.client.platform.web.editor.history;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.swellrt.beta.client.ServiceDeps;
import org.swellrt.beta.client.rest.ServiceOperation;
import org.swellrt.beta.client.rest.operations.GetDocDeltasOperation;
import o... | 31.837838 | 100 | 0.690789 |
39de8044a53654f29dbec310947595dfae7a4bf2 | 410 | package edu.summer.spring.elibrary.repository;
import edu.summer.spring.elibrary.model.Librarian;
import edu.summer.spring.elibrary.model.User;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.Optional;
public interface LibrarianRepository extends JpaRepository<Librarian,Long> {
Op... | 29.285714 | 76 | 0.817073 |
9d7911a87a9ddd23da919ec704dda5011b56ac77 | 1,378 | package com.chaseste.csv.core.model.types.common;
import java.util.List;
import com.chaseste.csv.core.reader.Fields;
import com.fasterxml.jackson.annotation.JsonProperty;
public class BasicPatient {
public static BasicPatient requiredBasicPatient(Fields fields) {
BasicPatient patient = new BasicPatient(... | 23.758621 | 71 | 0.6582 |
ba37e1d77670a72a722d3d4e369a4ac2661bbfd6 | 3,839 | package io.objectbox.tree;
import io.objectbox.BoxStore;
import io.objectbox.Cursor;
import io.objectbox.annotation.apihint.Internal;
import io.objectbox.internal.CursorFactory;
import io.objectbox.relation.ToOne;
// THIS CODE IS GENERATED BY ObjectBox, DO NOT EDIT.
/**
* ObjectBox generated Cursor implementation f... | 36.913462 | 124 | 0.659547 |
c99c55ed466ff3c66091bb340a4069c0687f7ced | 1,284 | package com.flightstats.hub.ws;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ArrayNode;
import lombok.extern.slf4j.Slf4j;
import javax.inject.Inject;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.P... | 29.181818 | 92 | 0.674455 |
8e6898e0e5ff8058b4d5b8dd61199e53ead311e6 | 854 | import java.util.*;
import java.io.*;
public class ExceptionHandling2
{
static Scanner input = new Scanner(System.in);
public static void main(String [] args)
{
int [] A = { 6, 7, 8, 9, 10, 11, 1, 3, 2, 4 };
boolean valueOK;
int index = 0;
do {
valueOK = true;
... | 27.548387 | 78 | 0.509368 |
2ad26708e82a93c66ed1edb8f71a2fac5e44a268 | 5,612 | package com.googlesource.gerrit.plugins.riskindicator;
import com.google.common.collect.ImmutableListMultimap;
import com.google.common.collect.ImmutableSetMultimap;
import com.google.common.collect.Maps;
import com.google.gerrit.extensions.restapi.Response;
import com.google.gerrit.extensions.restapi.RestReadVi... | 34.219512 | 130 | 0.694939 |
ecac093100337d9db9479f8620f5806eb1c4127f | 1,413 | package com.rahul.miner.algorithms;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import com.rahul.miner.opinion_word_extractors.OpinionWord;
import com.rahul.miner.polarity.PolarityGenerator;
import edu.stanford.nlp.trees.TypedDependency;
public class AdverbUtils {
... | 30.717391 | 111 | 0.66879 |
4edb9ca1435b537f29ed0d15177fa7a66c4daede | 828 | package org.twinnation.superassert;
import org.junit.Test;
import static org.junit.Assert.assertTrue;
public class IsTrueTest {
@Test
public void isTrue() {
assertTrue("Condition passed is true", SuperAssert.isTrue(true, "This should not throw an exception"));
}
@Test(expected = IllegalArgumentException.cl... | 24.352941 | 105 | 0.772947 |
72412369d01d48587ccd8f73d3ec3c0b7df28808 | 1,520 | package dhl.importJsonTest;
import dhl.businessLogic.leagueModel.interfaceModel.IGameConfig;
import dhl.businessLogicTest.leagueModelTests.factory.LeagueModelMockAbstractFactory;
import dhl.inputOutput.importJson.GeneralManagerPersonalityList;
import dhl.inputOutput.importJson.GeneralManagerPersonalityListAbstract;
im... | 38 | 110 | 0.800658 |
cfed0782790150fd5eea41ad6f891900d3fb8041 | 3,428 | /**
* Created by Kang Tae Jun on 2011.
*
* The MIT License
*
* Copyright (c) 2011 Kang Tae Jun (Nira)
*
* 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... | 28.566667 | 109 | 0.6972 |
d84f071bef29b6d7129810b8207e03ac3e8f1fe2 | 503 | package com.xttdr.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@TableName("account")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Account {
pr... | 22.863636 | 54 | 0.77336 |
b255dc2e4de2afe47d32f6be148ae6132158a335 | 734 | package com.github.sparkzxl.auth.api;
import com.github.sparkzxl.auth.api.dto.DictionaryItemDTO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.Map;
import java.util.Set;
/**
* description: 字典API
*
* @author zhouxinlei
* @d... | 25.310345 | 154 | 0.719346 |
7d1e22dab40f34c2fa7cae10c20e6eeda7342f56 | 1,914 | /**
* Copyright (C) FuseSource, Inc.
* http://fusesource.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... | 36.113208 | 113 | 0.702194 |
d0e38b5562ca7f8083261cf43a3fffab1c4c06c7 | 232 | package be.looorent.jflu.publisher.rabbitmq.quarkus;
public final class ProducerRecorder$$accessor {
private ProducerRecorder$$accessor() {}
public static Object construct() {
return new ProducerRecorder();
}
}
| 25.777778 | 52 | 0.724138 |
0d91170662b9518a6d7d5d912fa595b3b47d0d75 | 11,998 | /*
* Copyright 2007 Cordys R&D B.V.
*
* This file is part of the Cordys Generic LDAP Connector.
*
* 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/... | 35.708333 | 141 | 0.584181 |
9b51126bfe1594d0f9c9c3a8d1d083829c14c0e8 | 416 | public class Gun implements IWeapon {
private String _name;
public Gun(String _name) {
this._name = _name;
}
@Override
public void Fire() {
System.out.println(this._name + " fired a round, Attachments:");
}
@Override
public String GetName() {
return this._name;... | 18.086957 | 72 | 0.581731 |
142556ac839ecc5add77ba5c95b66f08776f8d32 | 5,074 | package com.choicely.imagecompare.util;
import android.util.Log;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
/**
* QuickLog
* Convenience static service for logging and toggling log visibility.
* <p/>
* Created by Tommy on 03/05/15.
*/
public class QLog {
private s... | 30.566265 | 116 | 0.465708 |
51c226ee64cea3a5be7ff833bdc5a92c749b9b59 | 1,828 | package com.defano.wyldcard.runtime.print;
import com.defano.wyldcard.WyldCard;
import com.defano.wyldcard.part.stack.StackPart;
import com.defano.wyldcard.runtime.ExecutionContext;
import java.awt.*;
import java.awt.print.PageFormat;
public class PrintStackAction extends PrintActionDelegate {
private int curre... | 37.306122 | 146 | 0.712254 |
48cdd3a7618d989ad0b4f1fb49cf675c759508cc | 4,582 | /*******************************************************************************
* 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... | 50.351648 | 519 | 0.617634 |
993b85b1f74f7ce94ef26b7d77c2a18b71e49ef3 | 3,239 | /*
* Copyright 1999-2018 Alibaba Group Holding 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... | 42.064935 | 101 | 0.71874 |
3767511e1cff1a67cdb70e9a149a01576924bd26 | 362 | package io.renren.modules.generator.dao;
import io.renren.modules.generator.entity.WcsUserEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 用户表
*
* @author yxq
* @email yxq@163.com
* @date 2019-12-27 12:11:11
*/
@Mapper
public interface WcsUserDa... | 20.111111 | 63 | 0.756906 |
23d64e75476aa681042d92da14fe732a8d9bb9c0 | 2,970 | package nl.knokko.entities.living;
import java.awt.Color;
import java.nio.ByteBuffer;
import nl.knokko.entities.tasks.TaskAttackEntity;
import nl.knokko.entities.tasks.TaskFollowEntity;
import nl.knokko.entities.util.SubModel;
import nl.knokko.items.Items;
import nl.knokko.main.Game;
import nl.knokko.render.model.Tex... | 30.306122 | 222 | 0.754545 |
49980015a90acba35209143820689ee979659bd6 | 7,584 | package io.fizz.chat.user.infrastructure.persistence;
import com.google.protobuf.ByteString;
import io.fizz.chat.user.domain.PushPlatform;
import io.fizz.client.hbase.HBaseClientModels;
import io.fizz.client.hbase.client.AbstractHBaseClient;
import io.fizz.common.LoggingService;
import io.fizz.common.Utils;
import io.... | 40.994595 | 121 | 0.659942 |
1676c671388b6da2e4463b7104264a4d6316a2fe | 2,457 | package com.user00.domjnate.generator;
import java.util.Map;
import com.user00.domjnate.generator.ast.ApiDefinition;
import com.user00.domjnate.generator.ast.InterfaceDefinition;
/**
* Goes through all interfaces and tries to merge static methods and properties
* with the instance version of the interfaces.
*/
pu... | 27.606742 | 94 | 0.608873 |
b74e89073b2b6a2fba72221da03efa0c3e26e908 | 1,588 | package com.jumbodinosaurs.webserver.post.auth;
import com.google.gson.JsonObject;
import com.jumbodinosaurs.devlib.util.objects.PostRequest;
import com.jumbodinosaurs.webserver.auth.util.AuthSession;
import com.jumbodinosaurs.webserver.netty.handler.http.util.HTTPResponse;
import com.jumbodinosaurs.webserver.netty.ha... | 30.538462 | 93 | 0.698992 |
89d040c6e19608a1ec5dfabd00a868f5addb7cc3 | 581 | package com.jmonkey.simplegeomloader.data;
import com.jme3.math.Quaternion;
/**
*
* @author Dmitry
*/
public class SglAnimationRotation {
private final float time;
private final Quaternion rotation;
public SglAnimationRotation(float time,Quaternion rotation) {
this.time = time;
this.r... | 18.15625 | 65 | 0.636833 |
a9d687d9275e007f9e85311c84c78114302360ce | 590 | package nl.quintor.akkastreams;
import akka.actor.ActorSystem;
import akka.stream.javadsl.Source;
import java.time.Duration;
public class StreamingNumbers {
public static void main(String[] args) {
final ActorSystem system = ActorSystem.create("QuickStart");
var numberSource = Source.range(1, 20);
var... | 22.692308 | 73 | 0.718644 |
32861b80545f9173dd05e156f15bbbc589d0240e | 359 | package data.lab.ongdb.model;
/*
*
* Data Lab - graph database organization.
*
*/
/**
* @author Yc-Ma
* @PACKAGE_NAME: data.lab.ongdb.model
* @Description: TODO
* @date 2020/5/31 14:58
*/
public enum ReturnType {
/**
* 返回节点
* **/
NODE,
/**
* 返回路径
* **/
PATH,
/**
... | 11.580645 | 42 | 0.493036 |
78a2f23451100a87df0090ec5105b7396cfa45ce | 2,584 | /*
* Copyright (C) 2022 The SINOBU Development Team
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/MIT
*/
package kiss.model;
import java.lan... | 27.2 | 129 | 0.545279 |
b374ee93115e0b36765b641ec27c259c0f00c3a4 | 305 | package your.basepackage;
public class Application {
public void sayHello() {
System.out.println("Hello");
}
public void deadCode() {
System.out.println("This is dead code");
}
public static void main(String[] args) {
new Application().sayHello();
}
}
| 16.944444 | 48 | 0.6 |
e58e6b05c054712e13fdefc1939317dcdff22b50 | 705 | package com.byeongukchoi.springdatarestexample.domain;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.CreationTimestamp;
import org.hibernate.annotations.UpdateTimestamp;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
impor... | 22.03125 | 54 | 0.801418 |
604985e59afa0342a0aa304c1070aa9e9e3f0ced | 2,620 | package eletrofisio.com.teste11.activity.Fes;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import com.google.android.gms.ads.AdRequest;
import com.google.android.gms.ads.AdView;
import eletrofisio.com... | 28.478261 | 90 | 0.626718 |
b893a9efdaf532c1f6bbeae4cc8b898983c2e016 | 1,879 | package theseinitiatives.atma.client;
import android.arch.lifecycle.LifecycleRegistry;
import android.arch.lifecycle.ViewModelStore;
import android.content.res.Resources;
import android.os.Handler;
import android.support.v4.app.FragmentController;
import android.support.v4.app.LoaderManager;
import android.support.v4.... | 25.739726 | 104 | 0.759979 |
f8b96d525d305ab7360c871f782564f68abe8acb | 4,758 | /*
* Copyright 2017-2020 Koordinierungsstelle für IT-Standards (KoSIT)
*
* 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 ... | 40.322034 | 135 | 0.73161 |
eaed7dea334d8dea387cf9d970919c37c4c8d6ac | 365 | package org.onehippo.forge.jcrshell.servlet;
public class Text {
private final String text;
private final Line.TextMode mode;
Text(Line.TextMode mode, String text) {
this.mode = mode;
this.text = text;
}
public String getText() {
return text;
}
public Line.TextMo... | 16.590909 | 44 | 0.605479 |
701ac814881a097d4b85ed2e7b50dab401bf78ec | 529 | package edu.slu.parks.healthwatch.health;
/**
* Created by okori on 08-Apr-17.
*/
public class Article {
private String title;
private String summary;
private String link;
public Article(String title, String summary, String link) {
this.title = title;
this.summary = summary;
... | 17.633333 | 63 | 0.599244 |
8ddcd2349a17feaf48a398e4160b6325176edf93 | 3,195 | package net.lab1024.smartadmin.common.domain;
import net.lab1024.smartadmin.common.constant.ResponseCodeConst;
/**
* 返回类
*
* @param <T>
* @author zhuoda
*/
public class ResponseDTO<T> {
protected Integer code;
protected String msg;
protected Boolean success;
protected T data;
public Respon... | 25.357143 | 117 | 0.623787 |
8d8a978f486672afa225b6467f6ab3b0b5b15c70 | 2,233 | /**
* Card Printer
*
* This card printer implements the Runnable interface and
* can be run in its own thread. It will try to read from
* the print queue and then print a card to the terminal,
* formatted at 40 characters wide and surrounded by a
* border.
*
* @author YOURID
*
*/
public class Printer imp... | 22.33 | 63 | 0.603672 |
03cd9a4e8fc2bab79e86083906e46576196f6701 | 310 | package io.katharsis.client.internal.proxy;
import io.katharsis.module.ModuleRegistry;
import io.katharsis.resource.list.DefaultResourceList;
public interface ClientProxyFactoryContext {
ModuleRegistry getModuleRegistry();
<T> DefaultResourceList<T> getCollection(Class<T> resourceClass, String url);
}
| 23.846154 | 78 | 0.822581 |
13d6727e330524d1f466bcf9c1fb7e0aea0e0d99 | 1,426 | package org.codingmatters.poom.services.domain.property.query.validation;
import org.codingmatters.poom.services.domain.property.query.parsers.PropertySortBaseVisitor;
import org.codingmatters.poom.services.domain.property.query.parsers.PropertySortParser;
import java.util.LinkedList;
import java.util.List;
import ja... | 37.526316 | 125 | 0.725806 |
62c9ecbd66f4395e5b6d20c314c52f086e68d199 | 71 | class TestResource {
// not parsable template for testing
...
} | 17.75 | 40 | 0.647887 |
66ae894f8505647ef874fa1c5aff23c2236619ab | 6,286 | package controllers;
import java.net.URL;
import java.util.ResourceBundle;
import com.jfoenix.controls.*;
import javafx.application.Platform;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import j... | 31.58794 | 192 | 0.580815 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.