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 |
|---|---|---|---|---|---|
7f894d49b11fab13d4e645c3b2add410d97d7274 | 3,840 | /*
* Copyright 2017 Crown Copyright
*
* 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 ... | 30 | 112 | 0.626302 |
8166ac53de3b665c2f84aaa0ece718dba2681cb3 | 3,976 | /*
* 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 ... | 34.877193 | 97 | 0.73164 |
04ad25e0ddf833d1efe605fd29270e6481136d20 | 3,629 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 29.745902 | 113 | 0.669882 |
506d118e5c3d34db952d576e713b3553cc51c51b | 874 | package asatsuki256.germplasm.core.network;
import asatsuki256.germplasm.core.tileentity.TileGeneticCrop;
import io.netty.buffer.ByteBuf;
import net.minecraftforge.fml.common.network.simpleimpl.IMessage;
public class MessageGeneticCrop implements IMessage {
public int x;
public int y;
public int z;
public int g... | 21.317073 | 65 | 0.720824 |
648c4e80badf8b230e35d0e4298d973d58bdcba7 | 2,111 | package de.hsrm.compiler.Klang.helper;
import java.util.Map;
import de.hsrm.compiler.Klang.nodes.StructDefinition;
import de.hsrm.compiler.Klang.types.Type;
public class Helper {
public static String getErrorPrefix(int line, int col) {
return "Error in line " + line + ":" + col + " ";
}
public static Type... | 31.984848 | 118 | 0.63856 |
703d405b9bcb67ef978c125d18acc2d18c0e0c73 | 2,067 | package com.aquaman.security.admin.handler.mybatisplus;
import com.aquaman.security.admin.entity.domain.User;
import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.apache.ibatis.reflection.MetaObject;
import org.spring... | 36.263158 | 112 | 0.728108 |
4fefb14d9fb19fdd0b2eaea53f3904a77e70e538 | 2,593 | /*
* Copyright 2013-2017 must-be.org
*
* 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... | 26.731959 | 148 | 0.762823 |
f8c38b3cbd9a5c37dfffeeec70f7a91a196fd500 | 2,785 | package com.blogspot.sontx.bottle.system.provider;
import android.content.Intent;
import android.util.Log;
import com.blogspot.sontx.bottle.App;
import com.blogspot.sontx.bottle.model.bean.LoginData;
import com.blogspot.sontx.bottle.model.service.SimpleCallback;
import com.facebook.CallbackManager;
import com.faceboo... | 35.253165 | 109 | 0.710952 |
fe39d2df17b71f65c526f9a32a9835a031c06880 | 1,238 | package com.uiguard.test.testcase;
import java.lang.reflect.Method;
import org.testng.annotations.Test;
import com.uiguard.entity.driver.extension.UGDriverExtension;
import com.uiguard.entity.testcase.imp.UGTest;
import com.uiguard.exception.UiGuardException;
import com.uiguard.test.page.Detail;
import com... | 25.791667 | 73 | 0.66559 |
f89eca0484d9c210103df6f1a1436521bfee49ac | 20,231 | /*
* 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 ma... | 30.699545 | 117 | 0.592507 |
243a5143e7762e5f6d0778f7295e848492b16fac | 3,597 | package no.mnemonic.messaging.requestsink.jms;
import com.thoughtworks.xstream.io.binary.BinaryStreamDriver;
import no.mnemonic.commons.container.ComponentContainer;
import no.mnemonic.messaging.requestsink.Message;
import no.mnemonic.messaging.requestsink.RequestContext;
import no.mnemonic.messaging.requestsink.Reque... | 33.305556 | 90 | 0.739227 |
85684a18b6d1a6901e5b969489216f56a71dcddd | 1,616 | package net.DeltaWings.Minecraft.ChatManager.Commands;
import net.DeltaWings.Minecraft.ChatManager.Api.API;
import net.DeltaWings.Minecraft.ChatManager.Custom.Config;
import org.bukkit.Bukkit;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import... | 38.47619 | 131 | 0.68255 |
6ac58057df8e02abf5d3d540f68cf2e91535d601 | 8,256 | /**
* <a href="http://www.openolat.org">
* OpenOLAT - Online Learning and Training</a><br>
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); <br>
* you may not use this file except in compliance with the License.<br>
* You may obtain a copy of the License at the
* <a href="http://www.apache... | 36.857143 | 129 | 0.757146 |
d9ae641cca283e57b8b083d0b2ba8bd739cafab1 | 3,664 | package blog.service;
import blog.bean.*;
import blog.mapper.BlogMapper;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
/**
* @author if
*/
@Service
public class BlogService implements BlogMapper {
@Resource
private BlogMapper blogMapper;
@Overri... | 26.171429 | 85 | 0.655022 |
f7a038c720445559be30cf6ffbae22e6acaea6d3 | 7,391 | package com.nflabs.zeppelin.rest;
import java.io.IOException;
import java.lang.ref.WeakReference;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import org.apache.commons.httpclient.HttpClient;
import org.apache.commons.httpclient.methods.Byte... | 30.795833 | 96 | 0.664727 |
109664dce45aae9999c29c93332e0b41bf183a3e | 12,382 | package com.jeecms.cms.action.member;
import static com.jeecms.cms.Constants.TPLDIR_MEMBER;
import static com.jeecms.common.page.SimplePage.cpn;
import java.util.List;
import java.util.Set;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang.St... | 33.464865 | 116 | 0.7309 |
3cf986c66537215cb615a06c64ca52bdafe83ab8 | 1,535 | package mn223dn_assign4.stack;
import java.util.*;
public class StackMain {
public static void main(String[] args) {
Stack s = new StackArray();
System.out.println("Is the stack empty: " + s.isEmpty() + "\n");
s.push(1);
s.push("A");
System.out.println("Stack size: " + s.size());
Sys... | 23.257576 | 67 | 0.596091 |
1c075976d94e19402bd9dc839ee3bf3e38e0109c | 1,886 | package com.example.transactionthread.base;
import com.example.transactionthread.core.InputParamCallable;
import com.example.transactionthread.core.InputParamRunnable;
import org.springframework.jdbc.datasource.DataSourceTransactionManager;
import org.springframework.transaction.TransactionDefinition;
import java.uti... | 22.188235 | 87 | 0.660127 |
3ef7745c080d717c23d603454347f89de7a1329c | 59,272 | /*
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*
* The Apereo Foundation licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may... | 45.947287 | 291 | 0.601987 |
8e9760a736925af13287ef5feb7467ddc5bdf716 | 24,940 | /*
* 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 ... | 33.431635 | 156 | 0.656696 |
d0b3ade0c2a1e716f59a27a693093340c045dc6c | 207 | package hugs.support;
import hugs.*;
public interface MoveGeneratorMaker {
public MoveGenerator makeGenerator (Mobilities Mobilities, Solution solution, SearchAdjuster searchAdjuster);
}
| 20.7 | 113 | 0.758454 |
aa17f4732097de22f596f062463400d55b6f8c33 | 2,792 | package ru.job4j.io.nio;
import java.io.File;
import java.net.URISyntaxException;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Objects;
/**
* Class Args.
*
* @author Yury Doronin (doronin.ltd@gmail.com)
* @version 1.0
* @since 06.09.2019
*/
public class Args {
/**
* The dire... | 23.863248 | 92 | 0.474212 |
0d5480b77c2ca346f1d009c332729fca2609ee31 | 4,205 | /**
* WRML - Web Resource Modeling Language
* __ __ ______ __ __ __
* /\ \ _ \ \ /\ == \ /\ "-./ \ /\ \
* \ \ \/ ".\ \\ \ __< \ \ \-./\ \\ \ \____
* \ \__/".~\_\\ \_\ \_\\ \_\ \ \_\\ \_____\
* \/_/ \/_/ \/_/ /_/ \/_/ \/_/ \/_____/
*
* http://www.wrml.org
*
* Copyright (C) 2011 - 2013 M... | 37.212389 | 119 | 0.67824 |
16679512556b42190b3f7a15095b89474eed4f41 | 1,306 | package models;
import java.time.LocalTime;
public class Settings {
private static LocalTime startday = LocalTime.of(8,00);
private static LocalTime startBar2 = LocalTime.of(11,0);
private static LocalTime startBar3 = LocalTime.of(14,0);
private static LocalTime startBar4 = LocalTime.of(17,0);
pri... | 46.642857 | 71 | 0.7366 |
70dbbb5e83e915a4faf9dcb45f0f7d704aeb3c2c | 2,933 | /*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... | 23.845528 | 76 | 0.680873 |
3090a213c98601f889ca286ad52ee7802b0f7e72 | 320 | package io.github.edwinmindcraft.apoli.api.power.configuration.power;
import io.github.edwinmindcraft.apoli.api.IDynamicFeatureConfiguration;
import io.github.apace100.apoli.util.HudRender;
public interface ICooldownPowerConfiguration extends IDynamicFeatureConfiguration {
int duration();
HudRender hudRender();
}
| 29.090909 | 83 | 0.84375 |
d0bdfe3ea3cf32a2aa2ba2695649973255b75398 | 6,287 | /**
* Copyright 2021 Shulie Technology, Co.Ltd
* Email: shulie@shulie.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/licenses/LICENSE-2.0
*
* Unless requi... | 36.552326 | 113 | 0.583108 |
c5b67d13f5fd466495aac453104d7f193ef4304c | 14,726 | /* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* gradle plugin from the resource data it found. It
* should not be modified by hand.
*/
package com.sothree.slidinguppanel.library;
public final class R {
private R() {}
public static final class attr {
pri... | 60.600823 | 204 | 0.74888 |
e5a1257fac85fbe212ae969c1bd41651c9f89a19 | 422 | public int XXX(String s) {
String maxStr="";
int maxL = 0;
char[] charArray = s.toCharArray();
for(char c:charArray){
if(maxStr.contains(c+"")){
int index = maxStr.indexOf(c);
maxStr = maxStr.substring(index+1, maxStr.length())+c;
}else{
maxStr = maxSt... | 26.375 | 66 | 0.528436 |
8fcb37a3157740a1746e234f5e44c1091616ac8a | 1,459 | package by.kraskovski.concurrency.concurrent.synchronizers.semaphore.parking;
import java.util.concurrent.Semaphore;
public class Car implements Runnable {
private static final int PARKING_PLACES_COUNT = 5;
private static final boolean[] PARKING_PLACES = new boolean[PARKING_PLACES_COUNT];
private static ... | 31.717391 | 101 | 0.5634 |
7e8ec1e29529bde32f5a32462db56b8572ea6a9b | 609 | package com.segmentfault.deep.in.java.modular;
import org.apache.commons.collections.MapUtils;
import org.apache.commons.lang.StringUtils;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import java.util.Collections;
... | 32.052632 | 90 | 0.781609 |
24fae2a6ead4286211009420c630ff80da552594 | 6,573 | /*-
* #%L
* ImgLib2: a general-purpose, multidimensional image processing library.
* %%
* Copyright (C) 2009 - 2020 Tobias Pietzsch, Stephan Preibisch, Stephan Saalfeld,
* John Bogovic, Albert Cardona, Barry DeZonia, Christian Dietz, Jan Funke,
* Aivar Grislis, Jonathan Hale, Grant Harris, Stefan Helfrich, Mark H... | 42.406452 | 172 | 0.724935 |
369a237d7315f9c9f7c4b5bd87ae8f33096c6344 | 2,845 | package data.lab.ongdb.etl.compose.pack;
/*
*
* Data Lab - graph database organization.
*
*/import data.lab.ongdb.etl.common.Labels;
import data.lab.ongdb.etl.model.Entity;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
/**
* @author Yc-Ma
* @PACKAGE_NAME: da... | 27.621359 | 132 | 0.565554 |
00785d16b77f31aef04b3d2ced5f985950478564 | 3,343 | package com.google.vr.activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.media.AudioManager;
import android.media.MediaPlayer;
import android.net.Uri;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.ActionBar;
import android.suppo... | 23.70922 | 71 | 0.689201 |
1916002c6c62db088137b41b2e871872276ff820 | 2,395 | package com.hololo.app.sample;
import android.os.Bundle;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Toast;
import com.hololo.library.photoviewer.PhotoViewer;
import java.util.ArrayList;
public class MainActivity extends ... | 41.293103 | 126 | 0.589979 |
c82f31e7f6918ef484d549d183088b7dae708e65 | 574 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.company.jsop;
/**
*
* @author jakob
*/
public class Configuration {
private String uri = "bolt://localhost:7687";
... | 19.793103 | 79 | 0.637631 |
c7e4b615d14d9f1e048670963a43344c68a5b5f8 | 823 | package com.poet.concurrent.pc;
import java.util.Queue;
/**
* Created by Administrator on 15-12-17.
*/
public class AbstractSharedObject {
final Queue<String> queue;
final Integer queueLimit;
final Integer produceCount;
public AbstractSharedObject(Queue<String> queue, Integer queueLimit, Integer p... | 20.073171 | 96 | 0.647631 |
fe533d813e7f7d0d0e2ea9cebd790fada9b88f2d | 800 | package uk.gov.hmcts.reform.hmc.validator;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import javax.validation.Constraint;
import javax.validation.Payload;
import static java.lang.annotation.RetentionPolicy... | 34.782609 | 97 | 0.77875 |
91ef16335a9480be983f3d2a8dc1f8e09ce9f8da | 2,251 | /*
* #%L
* FHIR Implementation
* %%
* Copyright (C) 2018 DataScience 9 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
*... | 38.152542 | 130 | 0.742337 |
05fa6ab2716f927d726b5522fe4b4cdc1ffd02b4 | 5,552 | /*
* This file is generated by jOOQ.
*/
package projektor.database.generated.tables;
import java.util.Arrays;
import java.util.List;
import org.jooq.Field;
import org.jooq.ForeignKey;
import org.jooq.Identity;
import org.jooq.Index;
import org.jooq.Name;
import org.jooq.Record;
import org.jooq.Row4;
import org.joo... | 31.01676 | 203 | 0.6875 |
d95ef45b66691c050fc7bdb53bdc36346c49c594 | 1,269 | package io.javabrains.coronavirustracker.Controller;
import io.javabrains.coronavirustracker.models.LocationStats;
import io.javabrains.coronavirustracker.services.CoronavirusDataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.... | 35.25 | 103 | 0.736013 |
eb44a661ff947b674dc2979eee9d80f59f398758 | 1,371 | package com.aaxis.microservice.training.demo1.service;
import com.aaxis.microservice.training.demo1.controller.PriceController;
import com.aaxis.microservice.training.demo1.domain.ItemPrice;
import io.restassured.module.mockmvc.RestAssuredMockMvc;
import org.junit.Before;
import org.junit.runner.RunWith;
import org.mo... | 27.979592 | 89 | 0.724289 |
bc24ffbd6a8b57a2e3b76900ab64b74c3c2c0126 | 383 | package org.ovirt.engine.ui.webadmin.widget.table.column;
import org.ovirt.engine.core.common.businessentities.VDS;
import com.google.gwt.user.cellview.client.Column;
public class HostStatusColumn extends Column<VDS, VDS> {
public HostStatusColumn() {
super(new HostStatusCell());
}
@Override
... | 20.157895 | 57 | 0.70235 |
24d079576f3bf806ba63f0868362574193c4ed66 | 1,155 | package com.boxiaoyun.msg.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.boxiaoyun.common.mybatis.base.service.impl.BaseServiceImpl;
import com.boxiaoyun.msg.client.model.entity.EmailTemplate;
import com.boxiaoyun.msg.mapper.EmailTemplateMapper;
import com.boxiaoyun.msg.se... | 31.216216 | 131 | 0.770563 |
6e288630eb8435116ef395d26544bc0ab890a8dc | 1,527 | /*
* Copyright (c) 2008-2018, Hazelcast, 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
*
* Unless required ... | 37.243902 | 102 | 0.769483 |
98a8aa9fd3333f082a08cf99c18f12f17cdb14b7 | 24,846 | /*
* Copyright 2013 Swedish E-identification Board (E-legitimationsnämnden)
*
* Licensed under the EUPL, Version 1.1 or ñ as soon they will be approved by the
* European Commission - subsequent versions of the EUPL (the "Licence");
* You may not use this work except in compliance with the Licence.
* ... | 40.598039 | 183 | 0.613459 |
216eba4fefe8e21ad062d826d22838f37b382a9b | 10,472 | package com.xiaojukeji.carrera.cproxy.actions.util;
import com.google.common.collect.Sets;
import com.xiaojukeji.carrera.config.v4.cproxy.UpstreamTopic;
import com.xiaojukeji.carrera.cproxy.consumer.limiter.LimiterMgr;
import com.xiaojukeji.carrera.cproxy.config.ConsumerGroupConfig;
import com.xiaojukeji.carrera.cprox... | 37.53405 | 155 | 0.565508 |
dd1d3f2303928c14072af884c96a43c6a090b12a | 2,417 | package net.minecraft.client.gui.inventory;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.resources.I18n;
import net.minecraft.entity.passive.EntityHorse;
import net.minecraft.inventory.ContainerHorseInventory;
import net.minecraft.inventory.IInventory;
impor... | 38.983871 | 115 | 0.775755 |
ce9db87687073177f270a9b66d29b57d3074fbf5 | 58,541 | /*
* Copyright 2021-2022 Aklivity Inc.
*
* Aklivity licenses this file to you 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... | 36.981049 | 119 | 0.523001 |
00d7ea72e0f31578c77c2ecf0aea55a827f17c2c | 1,087 | package com.wemirr.framework.storage.endpoint;
import com.google.common.collect.Maps;
import com.wemirr.framework.storage.AliYunStorageOperation;
import com.wemirr.framework.storage.properties.AliYunStorageProperties;
import org.springframework.boot.actuate.endpoint.annotation.Endpoint;
import org.springframework.boot... | 33.96875 | 85 | 0.75069 |
d106592532eb48a466cf422e39f1fa281c7482f0 | 5,423 | package com.thoughtworks.xstream.converters.reflection;
import java.lang.reflect.Field;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import com.thoughtworks.xstream.core.JVM;
import com.thoughtworks.xstream.core.util.OrderRetainingMap;
/**
* A field dictio... | 40.17037 | 137 | 0.556519 |
24effcc7e1c0c51805c3017fb1a7f90d2d5a3b98 | 5,930 | // Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 42.661871 | 100 | 0.701349 |
e81a517185fad77fa7dc138e41b60ec9eb0966a4 | 1,003 | /*
* @(#) MenuType.java 2018年11月27日 上午10:36:19
*
* Copyright 2018 Rockwell Automation, Inc. All rights reserved.
* Rockwell Automation PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/package com.rockwell.ramon.ui.entities;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
i... | 19.288462 | 81 | 0.690927 |
6874d1e38ab0fd0f9e4da9eca78c35147f70d843 | 3,365 | package com.randomappsinc.pokemonlocations_pokemongo.Adapters;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.randomappsinc.pokem... | 32.047619 | 107 | 0.690045 |
cad57f458b64cc7168eee8cd44ecebd2f8da68b3 | 1,375 | /*
* Copyright 2021-present the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... | 30.555556 | 95 | 0.696 |
8f2fcb03b95f586c007f1f425d1d482d4d671a85 | 53,265 | package it.unive.golisa.golang.util;
import it.unive.golisa.golang.api.signature.ConstGoLangApiSignature;
import it.unive.golisa.golang.api.signature.FuncGoLangApiSignature;
import it.unive.golisa.golang.api.signature.MethodGoLangApiSignature;
import it.unive.golisa.golang.api.signature.TypeGoLangApiSignature;
import ... | 64.878197 | 114 | 0.711574 |
cfa210737babdc646524a0591d6d272770d719a1 | 4,259 | /*
* 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 logica;
import clases.Cliente;
import clases.Cuenta;
import java.io.BufferedWriter;
import java.io.File;
import jav... | 33.801587 | 104 | 0.546607 |
aec89a6f2a24998f1f3e77dff75cb14984620570 | 500 | /*
* Copyright (c) Tarek Hosni El Alaoui 2017
*/
package de.dytanic.cloudnet.modules.exception;
/**
* Runtime exception that should be thrown when loading a {@link de.dytanic.cloudnet.modules.Module}.
*/
public class ModuleLoadException extends RuntimeException {
/**
* Constructs a new runtime exception... | 23.809524 | 101 | 0.694 |
6bf806a925a5829b4c2fbd76eb9301de200ab8e1 | 4,316 | package wstxtest.stream;
import javax.xml.stream.*;
import org.codehaus.stax2.XMLStreamProperties;
import com.ctc.wstx.api.WstxInputProperties;
/**
* Set of unit tests that check how Woodstox handles white space in
* prolog and/or epilog.
*/
public class TestConfig
extends BaseStreamTest
{
final static S... | 34.806452 | 119 | 0.643188 |
bc44dabfdca3577354f630fc77e2d331cc9e991e | 6,524 | //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// This file is a part of the 'coroutines' project.
// Copyright 2018 Elmar Sonnenschein, esoco GmbH, Flensburg, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance ... | 28.242424 | 78 | 0.603158 |
a87d80f1ef3117aeb8ab082f6965596fb94f94e1 | 2,284 | /**
* Represents a cheap Terrarium for CheapTerraSwarms
*/
public class CheapTerrarium implements Terrarium {
/**
* Dimension of the CheapTerrarium.
* Must be greater than 0
*/
private float length;
private float width;
private float height;
/**
* Constructor
... | 29.282051 | 85 | 0.605954 |
c0e2c193c6163ee0b5b56e44f8c6403da16d7cff | 2,741 | //,temp,NonBlockingConsumerRedeliveryTest.java,360,424,temp,NonBlockingConsumerRedeliveryTest.java,287,358
//,3
public class xxx {
@Test
public void testNonBlockingMessageDeleiveryWithRollbacks() throws Exception {
final LinkedHashSet<Message> received = new LinkedHashSet<Message>();
ActiveMQCo... | 35.597403 | 106 | 0.526815 |
5e83e423c7f26e81adeadff1dcddf31c1bf6aeef | 1,137 | /*
* Copyright 2017 Kaiserpfalz EDV-Service, Roland T. Lichti
*
* 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 b... | 32.485714 | 94 | 0.761653 |
ac90a3bc1835aad79de5c28b69372781d34955a2 | 1,924 | package th.in.ffc.app;
import android.content.Intent;
import android.support.v4.app.Fragment;
/* ***********************************************************************
* _ _ _
* ( _ _ |
*... | 29.6 | 78 | 0.433472 |
22b8c63cf569fa32553c5272afead005abf69baf | 517 | package com.redescooter.ses.service.mobile.b.service.base;
import com.baomidou.mybatisplus.extension.service.IService;
import com.redescooter.ses.service.mobile.b.dm.base.CorDriverRideStat;
import java.util.List;
public interface CorDriverRideStatService extends IService<CorDriverRideStat> {
int updateBatch(Li... | 23.5 | 79 | 0.806576 |
45b12b6d296b31ec98cd730dfe38b4c39afaf8af | 5,436 | package cn.datax.service.data.masterdata.controller;
import cn.datax.common.core.JsonPage;
import cn.datax.common.core.R;
import cn.datax.common.validate.ValidationGroups;
import cn.datax.service.data.masterdata.api.dto.ModelColumnDto;
import cn.datax.service.data.masterdata.api.entity.ModelColumnEntity;
import cn.dat... | 39.391304 | 153 | 0.710817 |
1c44b675498b7bb7aa52d11793af7c9a09189252 | 2,374 | package net.minecraft.client.gui;
import net.minecraft.client.Minecraft;
import net.minecraft.client.network.LanServerDetector;
import net.minecraft.client.resources.I18n;
public class ServerListEntryLanDetected implements GuiListExtended.IGuiListEntry
{
private final GuiMultiplayer field_148292_c;
protected ... | 34.911765 | 139 | 0.686605 |
adfa87a38845625df3742f96da3d1412449634ae | 1,771 | package us.kbase.kbasenetworks.core;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Hashtable;
import java.util.List;
import java.util.Map;
import java.util.Set;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.ann... | 20.593023 | 78 | 0.730096 |
5ac6976e5df9f79c0e7f1df99917efca858ddd59 | 5,369 | package rnk.bb.rest.hotel.staff;
import rnk.bb.domain.auth.Auth;
import rnk.bb.domain.hotel.approval.Approval;
import rnk.bb.domain.hotel.resource.Hotel;
import rnk.bb.domain.hotel.staff.Staff;
import rnk.bb.rest.auth.AuthController;
import rnk.bb.rest.blank.CustomController;
import rnk.bb.rest.hotel.resource.HotelCo... | 30.856322 | 88 | 0.67033 |
b2814acd5a7e0f97aadf611527ccb7b0c847fb83 | 848 | package dev.andersoncontreira.trainingddd.domain.enums;
public enum Timezones {
TZ_UTC("UTC"),
TZ_AMERICA_SAO_PAULO("America/Sao_Paulo"),
TZ_AMERICA_LOS_ANGELES("America/Los_Angeles");
private final String value;
Timezones(String zone) {
this.value = zone;
}
public String getValu... | 25.69697 | 94 | 0.616745 |
39d24443292192832ae5d4deadd1885454b2e074 | 2,310 | package ink.dvc.ezmybatis.core.mapper.provider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.Configuration;
import ink.dvc.ezmybatis.core.EzQuery;
import ink.dvc.ezmybatis.core.constant.EzMybatisConstant;
import ink.dvc.ezmybatis.core.sqlgenerate.SqlGenerateFactory;
import java.util.Li... | 51.333333 | 112 | 0.738961 |
c218f205948a412612ab74d9e1ba4aeddf4dbdcf | 3,058 | package com.macrowell.pipimy.bean;
import java.io.Serializable;
public class PrivateMessageBean implements Serializable {
private static final long serialVersionUID = 1L;
int privateMsgBoardId; // 私訊留言板編號
int itemno; // 商品編號
int buyerUid; // 買方會員編號
String buyerPicUrl; // 買方顯示圖路徑
int buyerPrice; // 買方最新出價紀錄(-1:... | 18.646341 | 59 | 0.720078 |
354a272724eeed2012e959de0acc7a7b576b06e8 | 3,534 | /**
* Copyright (c) 2007-2014 Kaazing Corporation. All rights reserved.
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this fil... | 36.8125 | 126 | 0.709111 |
166db7cc1d8592ef68a4d400faaacaff7acd7430 | 1,926 | package com.liyongquan.array;
/**
* 给定一个长度为 n 的非空整数数组,找到让数组所有元素相等的最小移动次数。每次移动将会使 n - 1 个元素增加 1。
* <p>
*
* <p>
* 示例:
* <p>
* 输入:
* [1,2,3]
* <p>
* 输出:
* 3
* <p>
* 解释:
* 只需要3次移动(注意每次移动会增加两个元素的值):
* <p>
* [1,2,3] => [2,3,3] => [3,4,3] => [4,4,4]
* <p>
* 来源:力扣(LeetCode)
* 链接:https://leetcode-cn.... | 22.928571 | 76 | 0.384216 |
6715181e331533cf119c5222a4e197630878b927 | 22,666 | package com.quarkdata.yunpan.api.controller.api;
import com.alibaba.fastjson.JSON;
import com.quarkdata.yunpan.api.aspect.isDelete.IsDelete;
import com.quarkdata.yunpan.api.aspect.isEnoughSpace.IsEnoughSpace;
import com.quarkdata.yunpan.api.aspect.isLock.IsLock;
import com.quarkdata.yunpan.api.controller.BaseControlle... | 40.402852 | 268 | 0.736963 |
52eedf6c543a5801d27453472ed62914645a980c | 6,948 | package pokecube.core.client.gui.watch.util;
import java.util.List;
import com.google.common.collect.Lists;
import net.minecraft.ChatFormatting;
import net.minecraft.client.gui.Font;
import net.minecraft.client.resources.language.I18n;
import net.minecraft.network.chat.ClickEvent;
import net.minecraft.network.chat.C... | 40.395349 | 120 | 0.591393 |
68f11f877930cbe657069df0e663695c699d4c06 | 3,988 | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.util.text;
import com.intellij.openapi.util.TextRange;
import org.jetbrains.annotations.NotNull;
import java.util.*;
public final class PlaceholderTextRang... | 34.08547 | 140 | 0.605065 |
ad603169729c573d5cee2df3f834ce934f9a85d3 | 574 | package io.github.anantharajuc.hibernate.interfaces.facade;
import io.github.anantharajuc.hibernate.domain.model.project.dto.InstructorDTO;
import io.github.anantharajuc.hibernate.domain.model.project.dto.PageDTO;
import java.util.List;
public interface InstructorFacade {
InstructorDTO getInstructorById(Long ins... | 33.764706 | 103 | 0.820557 |
0363ce360ca2a42a2267650d8e7a86943c01e6d4 | 1,659 | /*******************************************************************************
* Copyright (c) 1998, 2015 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
... | 41.475 | 99 | 0.544907 |
7cbd98c6a1ed021595eaab6cc2ad72ec097c5a20 | 1,742 | package controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframewor... | 30.561404 | 72 | 0.761194 |
64fa4ec1ebfcec32ae55d1988d11824d798d1f13 | 17,696 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 45.84456 | 175 | 0.616524 |
f678e4b454814dbb9a2ae22183288bc60f5bd7a5 | 524 | package sample;
import com.google.common.base.MoreObjects;
import java.util.Objects;
import javax.inject.Inject;
import sample.ApplicationComponent.AppSub1Component;
public class Sub1 {
@Inject
Sub1Foo sub1Foo;
@Inject
Planet planet;
@Override
public String toString () {
return MoreObjects.... | 20.153846 | 62 | 0.681298 |
7f77d7d2d83a6a4373cd463d8361ed29090cebcb | 12,802 | /*-
* #%L
* Spring Auto REST Docs Java Web MVC Example Project
* %%
* Copyright (C) 2015 - 2020 Scalable Capital GmbH
* %%
* 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
*
* htt... | 49.238462 | 115 | 0.632401 |
4fd31199b264cf2e22f2fe0c85c77dcfff6e4ebd | 2,718 | package org.liveontologies.protege.explanation.proof.editing;
/*-
* #%L
* Protege Proof-Based Explanation
* $Id:$
* $HeadURL:$
* %%
* Copyright (C) 2014 - 2016 Live Ontologies Project
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with t... | 30.2 | 81 | 0.764533 |
3dca65214e6e03318d04e4935fcbf99fda2e890b | 2,397 | /**
* Copyright (c) 2015-2016 Angelo ZERR.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributor... | 32.391892 | 111 | 0.700876 |
5400325ced944b39aea20735b8946bd043ef57b6 | 3,631 | package org.mvnsearch.http.protocol;
import org.mvnsearch.http.model.HttpRequest;
import org.springframework.messaging.simp.stomp.StompHeaders;
import java.net.URI;
import java.util.concurrent.CountDownLatch;
public interface BasePubSubExecutor extends BaseExecutor {
record UriAndSubject(String uri, String sub... | 37.43299 | 88 | 0.599009 |
895fdd9ce208026f6b605c68f66e3d6f30b47957 | 343 | package cn.mydoudou.factories.abstructfactory;
import cn.mydoudou.factories.simplefactory.Sender;
import cn.mydoudou.factories.simplefactory.SmsSender;
/**
* @author fut
* @description 工厂
* @create 2018-09-22
* @wiki
*/
public class SmsFactory implements Providor {
public Sender produce() {
return ne... | 20.176471 | 53 | 0.723032 |
89f40ef1b4087d79d501b479ec4d605ca2a8a395 | 1,010 | package de.ellpeck.naturesaura.items;
import de.ellpeck.naturesaura.blocks.BlockGoldenLeaves;
import de.ellpeck.naturesaura.reg.IColorProvidingItem;
import net.minecraft.client.renderer.color.IItemColor;
import net.minecraft.item.ItemStack;
import net.minecraft.item.ItemUseContext;
import net.minecraft.util.ActionResu... | 30.606061 | 78 | 0.70099 |
ffc4a16049226cba9f63fb6e46bc15f6cc80f762 | 2,398 | package se.resonantri.stargazerutil.utils.creativetab;
import com.google.common.base.Stopwatch;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import se.resonantri.stargazerutil.common.items.ModItems;
import se.resonantri.stargazerutil.utils.Constants;
i... | 31.142857 | 81 | 0.646789 |
8c4e783e84925bb986d4960c34627589d5b09764 | 280 | package com.svyat.sample.alienclock.skin;
import com.svyat.sample.alienclock.media.AudioDecorator;
/**
* Created by shromyak on 07.07.2016.
*
* interface to communicate with audio skin
*/
public interface AudioSkin {
int getSound(final AudioDecorator.SoundType type);
}
| 21.538462 | 56 | 0.760714 |
38b18b30ceb162103b716fa4a2b585cb289d4b25 | 1,355 | package model;
import java.io.FileWriter;
import java.io.IOException;
public class RuntimeTester {
public static void createRuntimeAnalysis(String filename, int startRectNum, int step, int stopRectNum){
try {
FileWriter fw = new FileWriter(filename, false);
// String out = new String();
fw... | 35.657895 | 137 | 0.647232 |
bbfb2e2023c610ff75367e326e7b4d5d8bdabc02 | 158 | package com.xf.color.color_pick.color_pick_view;
import io.flutter.embedding.android.FlutterActivity;
public class MainActivity extends FlutterActivity {
}
| 22.571429 | 52 | 0.841772 |
1260b148c18e1885b40e75fda188679cb1044e19 | 3,190 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | 44.305556 | 80 | 0.69906 |
c597e888c22d309d5c157a2b81028d37e234ac73 | 1,695 | package org.disges.thrift.plugin;
import org.disges.thrift.plugin.testdata.objects.included.package1.SimpleStruct;
import org.disges.thrift.plugin.testdata.objects.included.package2.SimpleStructPackage2;
import org.disges.thrift.plugin.testdata.pojo.package1.SimpleStructPojo;
import org.disges.thrift.plugin.testdata.... | 35.3125 | 113 | 0.709735 |
5bc1f67a0edfe8d829319c213fa4b4968e39acdb | 5,792 | package com.zhihu.matisse.ui;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.DisplayMetrics;
import android.... | 35.753086 | 142 | 0.667645 |
7e32342e2e8113f8e7ad51ec1627258c69795ac5 | 15,311 | package de.viktorreiser.toolbox.util;
import java.lang.reflect.Array;
import java.net.URL;
import java.util.LinkedList;
import java.util.List;
/**
* Static helper utilities for string operations (<b>Beta</b>).
*
* @author Viktor Reiser <<a href="mailto:viktorreiser@gmx.de">viktorreiser@gmx.de</a>>
*/
publi... | 26.720768 | 97 | 0.590948 |
c3721d21f77e6c24067e18805b255240105ec690 | 235 | package hellfrog.settings.db;
import java.util.List;
public interface BotOwnersDAO {
List<Long> getAll();
boolean isPresent(long userId);
boolean addToOwners(long userId);
boolean deleteFromOwners(long userId);
}
| 15.666667 | 42 | 0.72766 |
035a61a5294a1f96c984658c26942c6a00ed8c05 | 687 | package com.demo.widget.meis;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import com.demo.widget.R;
import com.demo.widget.utils.Eyes;
import com.meis.widget.particle.FireflyV... | 26.423077 | 66 | 0.765648 |
e24fc061167136d3038e1a5b6408433a46353031 | 121 | package com.hisaige.web.core.valid;
/**
* @author chenyj
* 2020/5/20 - 0:18.
**/
public interface AddOrSaveGroup {
}
| 13.444444 | 35 | 0.661157 |
bf9a2dad55f732f48ebb3953a5987cf49330a0ff | 3,932 | package org.interledger.encoding.asn.serializers.oer;
/*-
* ========================LICENSE_START=================================
* Interledger Codec Framework
* %%
* Copyright (C) 2017 - 2018 Hyperledger and its contributors
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not ... | 37.447619 | 119 | 0.717192 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.