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 |
|---|---|---|---|---|---|
7af98325afb80121f781e8baec7cb088f85d9659 | 918 | package com.wjybxx.fastjgame.test;
import com.google.inject.Guice;
import com.google.inject.Injector;
import com.wjybxx.fastjgame.component.EGWorldCoreModule;
import com.wjybxx.fastjgame.module.CoreModule;
import com.wjybxx.fastjgame.module.NetModule;
import com.wjybxx.fastjgame.mrg.WorldInfoMrg;
/**
* @author wjybx... | 31.655172 | 77 | 0.729847 |
083eead2e73e09fb3be449d8a55ec63ee60f38ed | 616 | package net.floodlightcontroller.core;
import org.projectfloodlight.openflow.protocol.OFMessage;
/**
* Indicates that a message was passed to a switch driver's subhandshake
* handling code but the driver has already completed the sub-handshake
* @author gregor
*
*/
public class SwitchDriverSubHandshakeCompleted... | 29.333333 | 73 | 0.753247 |
7ef83a87c3f8f88d474cb605e5021ba6a44dce5b | 2,093 | package org.simpleframework.xml.util;
import java.util.Iterator;
import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.ElementList;
import org.simpleframework.xml.Root;
import org.simpleframework.xml.ValidationTestCase;
import org.simpleframework.xml.core.Per... | 25.216867 | 79 | 0.583373 |
1d1a19a6f42eedca96e45cee416df6973ef3aa8d | 2,288 | package ru.alfalab.cxf.starter;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.Singular;
import lombok.extern.slf4j.Slf4j;
import org.apache.cxf.configuration.jsse.TLSClientParameters;
import org.apache.cxf.transport.http.asyncclient.AsyncHTTPConduitFactory;
import... | 26.604651 | 116 | 0.739948 |
e7e75b4d3609e069c9052fa8e94796f43db0bcb0 | 418 | package dto;
import java.util.List;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
@ToString
@Getter
@Setter
@NoArgsConstructor
public class Response {
private String productType;
private String productName;
private String respCode;
private String respMessag... | 17.416667 | 53 | 0.811005 |
39e8084121ce8564d7f787b190d1a07c18a5770e | 6,319 | package at.ac.tuwien.inso.ticketline.client.service;
import at.ac.tuwien.inso.ticketline.client.exception.ServiceException;
import at.ac.tuwien.inso.ticketline.client.exception.ValidationException;
import at.ac.tuwien.inso.ticketline.client.gui.controller.SearchEventsOverviewController;
import at.ac.tuwien.inso.ticket... | 34.156757 | 103 | 0.69473 |
94bc8fbc3225853733b7b22bed161173bbfed9b7 | 4,440 | package com.virjar.echo.meta.server.controller;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.virjar.echo.meta.server.entity.CommonRes;
import com.virjar.echo.meta.server.entity.DownstreamServer;
import com.virjar.echo.meta.server.entity.Penetra... | 33.134328 | 113 | 0.683333 |
f70df43aa6d8c2541f4923ac85b7fcccb9a379fa | 1,067 | package io.github.encryptorcode.implementation.storage.jdbc.mappers;
import io.github.encryptorcode.entity.AUser;
import io.github.encryptorcode.service.AuthenticationConfiguration;
import org.jooq.Record;
import org.jooq.RecordMapper;
import static io.github.encryptorcode.implementation.storage.jdbc.tables.USERS.USE... | 34.419355 | 101 | 0.718838 |
32252fa64566a20e45e534e2c66bafd0fdbda9dd | 102 | public interface Versions {
String guava = "28.2-jre";
String springBoot = "2.2.6.RELEASE";
}
| 20.4 | 40 | 0.647059 |
dd5997206e578953447af601b7e64640c7ad2a10 | 1,171 | /*
* Copyright 2014 Christian Weber
*
* This file is build on Neo4j.
*
* Neo4j is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
... | 28.560976 | 71 | 0.722459 |
14c15fa8e0719d3ef293d5d123f79701bf478657 | 16,669 | /**
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 not use this ... | 32.748527 | 215 | 0.721759 |
e301cedd920c3ff084671802b43d04024ff74cc7 | 1,481 | package com.ruoyi.api.service;
import com.ruoyi.achieve.domain.AchAuthor;
import com.ruoyi.achieve.domain.AchPatent;
import com.ruoyi.achieve.mapper.AchAuthorMapper;
import com.ruoyi.achieve.mapper.AchPatentMapper;
import com.ruoyi.api.domain.AppClientinfo;
import com.ruoyi.api.mapper.AppClientinfoMapper;
import com.r... | 32.911111 | 90 | 0.814315 |
edbee3b21a213a319bd2a156cc1f01e41a813c7b | 1,207 | /*
* Copyright 2000-2002,2004 The Apache Software Foundation
*
* 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... | 26.23913 | 76 | 0.725766 |
ad51976609662228e3b566f42c86911daad62ffd | 1,148 | package beans;
import java.io.Serializable;
import javax.enterprise.inject.Produces;
import javax.faces.flow.Flow;
import javax.faces.flow.builder.FlowBuilder;
import javax.faces.flow.builder.FlowBuilderParameter;
import javax.faces.flow.builder.FlowDefinition;
/**
*
* @author Anghel Leonard
*/
publi... | 33.764706 | 98 | 0.688153 |
6d7d5950d382aeec521d923d44683e4d7ab35669 | 2,244 | package seedu.address.logic.parser;
import static seedu.address.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import static seedu.address.logic.commands.CommandTestUtil.PREAMBLE_WHITESPACE;
import static seedu.address.logic.parser.CommandParserTestUtil.assertParseFailure;
import static seedu.address.logic.pars... | 41.555556 | 97 | 0.797237 |
61d89b1ce829afae714c5a76b54bc02003e78786 | 2,801 | /*
* Copyright 2015-2017 zachard, 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 appli... | 26.67619 | 134 | 0.739022 |
5c7405b53a56198a7f4e72d7e79685a431db13a0 | 8,933 | package org.mirrentools.orion.controller;
import java.util.Map;
import org.mirrentools.orion.common.LoginSession;
import org.mirrentools.orion.common.LoginSessionStore;
import org.mirrentools.orion.entity.ProjectApi;
import org.mirrentools.orion.entity.ProjectApiGroup;
import org.mirrentools.orion.entity.Proj... | 37.220833 | 139 | 0.712303 |
a072c635486878fd6a29efcfadf8641718388819 | 7,503 | /*
* 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.060748 | 116 | 0.684926 |
7126bb919ea0c21bf30aff9b38d1cb5248bad049 | 515 | package de.idrinth.gods_and_heroes.interfaces;
import java.math.BigDecimal;
import javafx.collections.ObservableList;
public interface God extends Individual {
public BigDecimal getBelieve();
public ObservableList<Believer> getBelievers();
public void addBeliever();
public void addHero();
public v... | 30.294118 | 51 | 0.759223 |
f8b2a566711098fa86f1e50b1cd3271eec7a72fd | 3,943 | /**
*
* @author Terri Liebowitz Schwartz
*
*/
/**
SSHExecProcessRunner provides a simple way to run a remote command and wait for
it to complete. Or you can start it, send it data on it's stdin, and wait for it
yourself. You can retrieve the output and error text as strings and
get the exit code. For examp... | 26.823129 | 95 | 0.723814 |
318b6094167ec875aff44a62216ea8ff3a58163f | 2,380 | /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/
package com.microsoft.rest;
import com.microsoft.rest.protocol.SerializerAdapter;
import com.microsoft.rest.serializer.JacksonAdapter;
import okhttp3.... | 28.333333 | 111 | 0.662605 |
3d345f24dbe6cc6fe27c56db576e132d93c835e1 | 25,326 | /*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | 40.651685 | 140 | 0.629472 |
dee650c5d57ed93d6f29842f6bd73cb3c55ed894 | 1,091 | /*
* 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 dungeon.souls.modding.tool.utils;
import java.util.Objects;
/**
*
* @author Diogo
* @param <T>
* @param <V>
... | 22.729167 | 94 | 0.554537 |
5259237ec88a6d598974285a0029b1a882c24081 | 2,600 | package com.indianeagle.internal.form;
import com.indianeagle.internal.dto.Rebate;
import com.indianeagle.internal.form.vo.IncomeTaxSlabVO;
import com.indianeagle.internal.form.vo.RebateVO;
import org.springframework.stereotype.Component;
import java.util.List;
/**
* Form for FinancialYear
* <p>
* User: kalesha
... | 23.214286 | 182 | 0.635385 |
616797d18a77f11fdc25eaeb1e25cd36b6a10811 | 973 | package de.bonn.eis.models;
import org.springframework.http.HttpStatus;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
/**
* Created by korovin on 3/22/2017.
*/
@XmlRootElement(name = "response")
public class RestResponseMessage {
private String code;
private... | 20.702128 | 61 | 0.65776 |
1ee17fc36f8734974f940e46829d126c9aa9f0bb | 783 | package ru.job4j.array;
/**
* Test.
* @author Evgeny Shpytev (mailto:eshpytev@mail.ru)
* @version 1
* @since 0.1
*/
import java.util.Scanner;
public class ArrayStr {
/**
* The array takes words and prints them.
* @param args - arg.
*/
public static void main(String[] args) {
Sca... | 23.029412 | 62 | 0.533844 |
ec4396c8a0be9a36ba2979ba1722efee95c24d56 | 2,762 | /**
* Copyright Indra Soluciones Tecnologías de la Información, S.L.U.
* 2013-2019 SPAIN
*
* 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... | 35.410256 | 109 | 0.789283 |
fe7be04b24022153da0451f8d17b3cb8b94f7edf | 4,209 | package com.sourcegraph.langserver.langservice.workspace.standardlibs;
import com.google.common.collect.ImmutableSet;
import com.sourcegraph.langserver.langservice.compiler.CompilerOption;
import com.sourcegraph.langserver.langservice.javaconfigjson.Project;
import com.sourcegraph.lsp.domain.structures.PackageIde... | 37.918919 | 174 | 0.633642 |
6d3dbd59abf2cfb3cb37e4d0c756ad9c4cc15fd4 | 20,675 | package uk.ac.ebi.atlas.experimentpage;
import com.google.common.collect.ImmutableList;
import org.apache.commons.io.IOUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Controlle... | 56.02981 | 142 | 0.630859 |
817f06ec98e390681bf4362481f16fca8075de9d | 1,734 | /*
* Copyright 2019 StreamThoughts.
*
* 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, Vers... | 36.893617 | 113 | 0.737024 |
a27a1c1c2f82ecbfc14f36008a424eb0fa9b5f29 | 4,439 | package com.custom_computing_ic.dfe_snippets.blas;
import com.maxeler.maxcompiler.v2.kernelcompiler.KernelLib;
import com.maxeler.maxcompiler.v2.kernelcompiler.types.base.DFEVar;
import com.maxeler.maxcompiler.v2.kernelcompiler.types.composite.DFEVector;
import com.maxeler.maxcompiler.v2.kernelcompiler.stdlib.core.Cou... | 35.230159 | 97 | 0.692048 |
2e0df49df9bd3adeb742942da1792920db3290e8 | 527 | // 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.psi;
import com.intellij.lang.LanguageExtension;
/**
* @author Serega.Vasiliev
*/
public final class LanguageAnnotationSupport extends LanguageExtension<P... | 32.9375 | 140 | 0.787476 |
7f0fea2439d4f559f1cd4a46a1262d94ad61c50a | 981 | package space.samatov.mmatoday.Fragments;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import samatov.space.mmatoday.R;
import space.samatov.mmatoday.model.Yout... | 31.645161 | 157 | 0.779817 |
6059dd5fb673263bf7e1e2b4539c74905faffc2f | 556 | package com.oleh.chui.learning_platform.service;
import com.oleh.chui.learning_platform.entity.Question;
import com.oleh.chui.learning_platform.repository.QuestionRepository;
import org.springframework.stereotype.Service;
@Service
public class QuestionService {
private final QuestionRepository questionRepository... | 27.8 | 69 | 0.793165 |
db650ea65b7beba5b133133d94d25452b951a90c | 2,854 | /*
* Copyright 2013 Alex Lin.
*
* 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... | 21.298507 | 122 | 0.612824 |
58b6f911688383a2be82747c5909517310a0a6af | 24,064 | /*
TVA Open Source Agreement
THIS OPEN SOURCE AGREEMENT ("AGREEMENT") DEFINES THE RIGHTS OF USE,REPRODUCTION, DISTRIBUTION,
MODIFICATION AND REDISTRIBUTION OF CERTAIN COMPUTER SOFTWARE ORIGINALLY RELEASED BY THE
TENNESSEE VALLEY AUTHORITY, A CORPORATE AGENCY AND INSTRUMENTALITY OF THE UNITED STATES GOVERNMENT
("G... | 47.091977 | 198 | 0.753865 |
a679454b34f1ec3c84ec76930becdf34cf48768b | 593 | package com.fmall.content.service;
import com.fmall.common.pojo.EasyUIDataGridResult;
import com.fmall.common.pojo.FmResult;
import com.fmall.pojo.TbContent;
import java.util.List;
/**
* Created by jack.zhang
* email:57525101@qq.com
* 2017/5/3 18:11
*/
public interface ContentService {
FmResult addContent(Tb... | 21.962963 | 70 | 0.755481 |
a1af1e13467ee32e36a891817e0a328421a8167f | 1,040 | /*******************************************************************************
* Copyright (c) ArSysOp 2018-2022
*
* RGM Sources are publicly available only for
* informational, review, analysis and consulting purposes.
*
* Definitions, terms and conditions for using RGM Sources are stated by ArSysOp Source ... | 34.666667 | 108 | 0.632692 |
a9bb2bfde65ee14af7a6e16f4f955a368f415f8e | 500 | interface Inter{
void show();
}
class Outter {
public void method(){
// 把对象返回给 Inter 对象
Inter i = new Inter(){
@Override
public void show() {
System.out.println("匿名内部类");
}
};
for (int j = 0; j < 5; j++){
i.show();
... | 19.230769 | 44 | 0.454 |
009fe66a926e28a4480d8aa0bd33fd8410a2259a | 1,106 | package aga.android.luch.rssi;
import androidx.annotation.Nullable;
public final class ArmaFilter extends RssiFilter {
private final float armaSpeed;
private Byte filteredRssi = null;
private ArmaFilter(float armaSpeed) {
this.armaSpeed = armaSpeed;
}
@Override
public void addReadi... | 21.686275 | 87 | 0.609403 |
34b8c62da4b826e85e167b5f1a93012b3d608ea8 | 983 | package info.leadinglight.jdot.samples;
import info.leadinglight.jdot.*;
import info.leadinglight.jdot.enums.*;
public class Directed {
public static void main(String[] args) {
g().viewSvg();
}
public static Graph g() {
Graph g = new Graph("sample1").setType(GraphType.digraph);
N... | 35.107143 | 77 | 0.585961 |
8b1a8e3d5298acc2fa6b70db0e2939c1538bbd29 | 3,836 | package org.zp.tents.web;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springf... | 38.36 | 98 | 0.675443 |
fc51357b34d508cca36b2c9885b4676c278a1e78 | 2,242 | /*
* The Alluxio Open Foundation licenses this work under the Apache License, version 2.0
* (the "License"). You may not use this work except in compliance with the License, which is
* available at www.apache.org/licenses/LICENSE-2.0
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI... | 36.754098 | 98 | 0.760036 |
428231495ade485e63de2405ed3c3766b9d4adaa | 2,167 | /*
* Copyright (C) 2017 Jens Reimann <jreimann@redhat.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 appli... | 32.833333 | 106 | 0.757268 |
28f5ee74c2bf4307f7e720313bccd29bf85066fd | 1,584 | package com.example.vroch.hubuece.adapters;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.example.vroch.hubuece.R;
import com.example.vroch.hubuece.data.model.We... | 25.142857 | 108 | 0.715278 |
06bfae69c9bfecf9225ec1e63f244c91cabb74a4 | 54,774 | package apple.metalperformanceshaders;
import apple.NSObject;
import apple.foundation.NSArray;
import apple.foundation.NSCoder;
import apple.foundation.NSMethodSignature;
import apple.foundation.NSSet;
import apple.metal.protocol.MTLCommandBuffer;
import apple.metal.struct.MTLRegion;
import apple.metalperformanceshade... | 49.212938 | 166 | 0.664202 |
4b9332669b2c6977b107d867ac41353bb2f5a4b9 | 551 | package cn.ucloud.usms.model;
import cn.ucloud.common.pojo.BaseResponseResult;
import com.google.gson.annotations.SerializedName;
/**
* @author: codezhang
* @date: 2019/12/13 5:50 下午
* @describe:
**/
public class CreateUSMSTemplateResult extends BaseResponseResult {
/**
* 短信模板ID(短信模板申请时的工单ID)
*/
... | 20.407407 | 66 | 0.68784 |
4ec797ae02353afb11db6512e3a29e3aff189be4 | 7,056 | // Copyright 2017 The Lynx Authors. All rights reserved.
package com.lynx.ui.image;
import android.graphics.Bitmap;
import android.graphics.BitmapShader;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.RectF;
import com.lynx.base.Style;
import com... | 41.505882 | 98 | 0.547902 |
bb505b0ab9fe284c1177e8172d34da37e8196d8b | 1,619 | package com.oureda.thunder.pobooks.Data;
import java.util.List;
/**
* Created by thunder on 17-5-15.
*/
public class SearchResult
{
public List<Data> data;
public static class Data
{
private String book_id;
private String book_name;
private int chapter_num;
private Str... | 16.864583 | 40 | 0.490426 |
8c170da690f23e70e2f2ea90db02352ba550beb4 | 1,846 | package com.googlecode.totallylazy.matchers;
import org.hamcrest.Description;
import org.hamcrest.Matcher;
import org.hamcrest.StringDescription;
import org.junit.Test;
import static com.googlecode.totallylazy.functions.Callables.returns;
import static com.googlecode.totallylazy.matchers.LazyEqualsMatcher.lazyEqualTo... | 40.130435 | 148 | 0.754605 |
2a394a26b52f7f2c48c4ef9a7315535e09669d70 | 589 | package com.ppdai.stargate.service.flink.model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* Created by chenlang on 2020/6/11
**/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class FlinkJobArgs {
private String jarId;
pri... | 20.310345 | 49 | 0.741935 |
5f8535057d2f02c2301f682146aa2117d39d4a01 | 1,432 | package com.drawingmagic.helpers;
import android.annotation.TargetApi;
import android.hardware.Camera;
import android.hardware.Camera.CameraInfo;
@TargetApi(9)
public class CameraHelperGB implements CameraHelper.CameraHelperImpl {
@Override
public int getNumberOfCameras() {
return Camera.getNumberOf... | 25.571429 | 94 | 0.643156 |
f6e6ea58dd3b1bcb678bb2009f2fd4a62be3b5ff | 207 | package com.example.lib_lyn.volley;
import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
public interface VolleyLisener extends Listener<String>,ErrorListener{
}
| 23 | 70 | 0.835749 |
b10170c67c487d24ae914763aeaedff7808d9be4 | 42,273 | package com.jastermaster.controller;
import com.jastermaster.application.Main;
import com.jastermaster.application.Program;
import com.jastermaster.media.PlayingType;
import com.jastermaster.media.Playlist;
import com.jastermaster.media.Song;
import com.jastermaster.util.ContextMenuFactory;
import com.jastermaster.uti... | 50.931325 | 193 | 0.587112 |
7da631c60cba97b619d82c143e4c2edb668147cc | 2,145 | import java.util.ArrayList;
import java.util.Random;
/**
* load multiple files in min-max order and random order
* we compare loading time for hdd and ssd
*/
public class LoadMultiFile {
private static Random rnd = new Random();
public static void main(String[] args) throws Exception {
if (args.length != ... | 29.791667 | 103 | 0.657809 |
71760ae7bb7bd80b1920e47b302076072b8f5fcb | 704 | package victor.training.java8.voxxed;
import java.io.File;
import java.io.IOException;
import java.util.Arrays;
import org.jooq.lambda.Unchecked;
public class UncheckedAndLambdas {
public static void main(String[] args) {
File dir = new File(".");
Arrays.stream(dir.listFiles()).forEach(file -> {
try {
Sy... | 22.709677 | 69 | 0.684659 |
9fd6dcef27decb5b2ce73525d987183d5ff84815 | 936 | package com.bence.projector.server.backend.model;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import java.util.List;
@Entity
public class Chapter extends BaseEntity {
@OneToMany(fetch = FetchType.LAZY, mappedBy = "cha... | 26 | 60 | 0.675214 |
f09b64ffb1207c9213f52132e5419d37cb012981 | 401 | package rabbit.open.orm.common.exception;
/**
* <b>Description 非法的join fetch 操作</b>.
*/
@SuppressWarnings("serial")
public class InvalidJoinFetchOperationException extends RabbitDMLException {
public InvalidJoinFetchOperationException(Class<?> fetch, Class<?> target) {
super("invalid join fetch operatio... | 26.733333 | 78 | 0.688279 |
558566903e49d0c8db53b9170a8a589181944e38 | 472 | package net.bytebuddy.dynamic.loading;
import org.junit.Test;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.MatcherAssert.assertThat;
public class PackageTypeStrategyNoOpTest {
private static final String FOO = "foo", BAR = "bar";
@Test
public void testPackageNotDefined() throw... | 27.764706 | 129 | 0.752119 |
d1e1af9bd3af055ff2d24466dace8ed5f5d41c56 | 16,628 | package net.mtrop.doom.tools.doommake;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.nio.file.ClosedWatchServiceException;
import java.nio.file.FileSystems;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.StandardWatchEventKinds;
import java.ni... | 25.425076 | 144 | 0.692266 |
81bb32322045cf120878c7f96c858c2ccd3d03f7 | 431 | public class leetcode_54 {
public int result;
public int k;
public int kthLargest(TreeNode root, int k) {
this.k = k;
dfs(root);
return result;
}
public void dfs(TreeNode root){
if (root == null){
return;
}
dfs(root.right);
k--;
... | 19.590909 | 49 | 0.452436 |
30b5d17384ad9aa6c3c14c26f671900ab7b8acef | 272 | package com.asinkxcoswt.domain.behavior.setting_support;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.UUID;
public interface ApplicationSettingRepository extends JpaRepository<ApplicationSetting, UUID>, SettingQueryService {
}
| 30.222222 | 117 | 0.830882 |
7c1ad04dc3b50f6c3eac3b2ea397d2523d098d07 | 759 | public class Main {
public static <T> Stack<T> createStack(T... values) {
return createStack(values, 0, new EmptyStack<T>());
}
public static <T> Stack<T> createStack(T[] values, int current, Stack<T> stack) {
if (current == values.length)
return stack;
Stack<T> newStack... | 30.36 | 85 | 0.55863 |
eee6bc9c97662c7a109cb7e9dcbd52cb57ef5ac7 | 1,379 | package icfpc2021.actions;
import icfpc2021.ScoringUtils;
import icfpc2021.model.Figure;
import icfpc2021.viz.State;
public class WiggleAction implements Action {
private static final int MOVE_DELTA = 10;
@Override
public Figure apply(State state, Figure figure) {
// Check
if (ScoringUti... | 32.833333 | 104 | 0.567078 |
d112a735f363776bcdaf25ce257f2432c8087e0e | 13,500 | package org.povworld.sbb;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import org.junit.Assert;
import org.junit.Test;
import org.povworld.collection.common.Interval;
public class DensityMapTest {
private static final double EPS... | 26.679842 | 84 | 0.623111 |
cc70922ff330345335303d31fcaa728e129c3775 | 1,194 | /*
* Copyright 2015, TopicQuests
*
* 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 ... | 27.136364 | 77 | 0.747906 |
67a27a88ae02a164b3b70527115018cf3f2d468a | 12,460 | package net.datenstrudel.bulbs.core.domain.model.bulb;
import net.datenstrudel.bulbs.core.application.messaging.BulbsCoreEventProcessor;
import net.datenstrudel.bulbs.core.application.messaging.eventStore.DomainEventStore;
import net.datenstrudel.bulbs.core.domain.model.identity.BulbsContextUserId;
import net.datenstr... | 43.873239 | 116 | 0.669101 |
9f2889401cc877bade7579e47ee3476f68c401f3 | 4,464 | package com.fingerchar.api.web;
import java.io.IOException;
import java.io.InputStream;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.io.Resource;
import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
import org.... | 32.583942 | 131 | 0.664651 |
7ac4245a6e971b17e501f8fc552fac00db2fe517 | 437 | package de.flapdoodle.howto;
import javafx.scene.paint.Color;
import javafx.scene.shape.Polygon;
public class TriangleCell extends Cell {
public TriangleCell( String id) {
super( id);
double width = 50;
double height = 50;
Polygon view = new Polygon( width / 2, 0, width, height... | 18.208333 | 76 | 0.620137 |
e4ca7564cf1f2763d4f13dada2c0923b6b589e8d | 144 | package com.company.Bridge;
public class RedWatch implements Color {
@Override
public String toColor() {
return "red";
}
}
| 16 | 40 | 0.645833 |
1412661738730a7e5ce84efa3d21d176edcaba57 | 509 | package com.bikeshop.product.database.service;
import java.util.Collection;
import java.util.Map;
import com.bikeshop.database.dao.service.Service;
import com.bikeshop.product.database.entities.Address;
import com.bikeshop.product.database.entities.Manufacturer;
import com.bikeshop.product.database.entities.Person;
... | 29.941176 | 64 | 0.825147 |
1e052e7b591644ebf32cf1ff40c0838bfbfbbaa1 | 284 | package example.repo;
import example.model.Customer1545;
import java.util.List;
import org.springframework.data.repository.CrudRepository;
public interface Customer1545Repository extends CrudRepository<Customer1545, Long> {
List<Customer1545> findByLastName(String lastName);
}
| 21.846154 | 84 | 0.830986 |
7f28fe7626f9cc8697af9502d16f91d7233e2385 | 1,057 | package xyz.jecy.util.leetcode;
/**
* 122. 买卖股票的最佳时机 II 给定一个数组,它的第 i 个元素是一支给定股票第 i 天的价格。
*
* 设计一个算法来计算你所能获取的最大利润。你可以尽可能地完成更多的交易(多次买卖一支股票)。
*
* 注意:你不能同时参与多笔交易(你必须在再次购买前出售掉之前的股票)。
*
* 示例 1:
*
* 输入: [7,1,5,3,6,4] 输出: 7 解释: 在第 2 天(股票价格 = 1)的时候买入,在第 3 天(股票价格 = 5)的时候卖出, 这笔交易所能获得利润 = 5-1 = 4 。
* 随后,在第 4 天(股票价格 = 3)... | 24.022727 | 98 | 0.58562 |
64c6ec168e0f637cce9f040d17940f3da734790a | 1,739 | import java.lang.reflect.Field;
import org.aspectj.lang.reflect.*;
public aspect Instrumentation {
pointcut nofl() : !within(Instrumentation);
pointcut getField() : get(* *) && nofl() && !get(* System.out) ;
after() : getField() {
final FieldSignature signature = (FieldSignature) thisJoinPointStaticPart.get... | 34.098039 | 93 | 0.637723 |
770f6ad427c0bc431e0e06b0e66783e87f228cb9 | 705 | /*
* 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.ideiah.gerenciadorpampatec.util;
import com.ideiah.gerenciadorpampatec.model.Textocomentario;
import java.util.Comparator;... | 28.2 | 86 | 0.726241 |
5baadaf24cc87a752375f1c9cedd87183d0fd8bc | 1,021 | package com.example.application.views.person;
import com.example.application.person.Person;
import com.example.application.person.PersonRepository;
import com.example.application.views.MainLayout;
import com.vaadin.flow.component.grid.Grid;
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
import com.vaad... | 34.033333 | 82 | 0.750245 |
3fb57ac8c8b6850577134cd31a4ae627c3e233e6 | 368 | package net.collaud.fablab.manager.rest.v1.model;
/**
*
* @author Gaetan Collaud <gaetancollaud@gmail.com>
* @param <T>
*/
public class DataModel<T> extends BaseModel{
private T data;
public DataModel() {
}
public DataModel(T data) {
this.data = data;
}
public T getData() {
return data;
}
public ... | 13.62963 | 51 | 0.654891 |
060282aa147b8f632141c72329c887159e0cfed4 | 7,836 | package io.cattle.platform.servicediscovery.process;
import static io.cattle.platform.core.model.tables.ServiceTable.*;
import io.cattle.platform.core.addon.LbConfig;
import io.cattle.platform.core.addon.PortRule;
import io.cattle.platform.core.addon.ServiceLink;
import io.cattle.platform.core.constants.ServiceConstan... | 41.680851 | 131 | 0.625574 |
d289de2713045567c04e34f3036a166f740af2f8 | 15,832 | package lvlw.com.myvideolist.activity;
import android.Manifest;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.os.Environment;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
impo... | 42.55914 | 130 | 0.519265 |
1e4b55080227bb483e1b7e350977476ecde2b373 | 1,639 | /**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.analytics.financial.timeseries.filter;
import org.apache.commons.lang.ObjectUtils;
import org.apache.commons.lang.Validate;
import com.opengamma.util.timeser... | 27.779661 | 117 | 0.71446 |
046bd04bef7b4d75318d36e111f01c5e7c4b8fab | 836 | package com.zeuschan.littlefreshweather.prsentation.receiver;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Process;
import com.zeuschan.littlefreshweather.common.util.LogUtil;
import com.zeuschan.littlefreshweather.prsentation.service.Weath... | 30.962963 | 80 | 0.739234 |
d7abe0d0c3fcf81e4e1cf157530714110b7d2f96 | 5,508 | package util;
import java.io.*;
import java.net.SocketException;
import com.mysql.jdbc.log.LogFactory;
import org.apache.commons.net.ftp.FTP;
import org.apache.commons.net.ftp.FTPClient;
import org.apache.commons.net.ftp.FTPHTTPClient;
import org.apache.commons.net.ftp.FTPReply;
import org.apache.log4j.Logger;
publ... | 35.082803 | 183 | 0.595134 |
70be9bfc1e80ebb06e7d1f6684438d6b0490722f | 161 | package com.cloud.utils.component;
/**
* Marker interface to work with CGLIB based CloudStack legacy AOP
*/
public interface ComponentMethodInterceptable {
}
| 20.125 | 66 | 0.782609 |
2d8ffb73004e3ec93f69667bfd7a1860cd8a991c | 3,919 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/monitoring/dashboard/v1/dashboard.proto
package com.google.monitoring.dashboard.v1;
public final class DashboardsProto {
private DashboardsProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryL... | 48.382716 | 136 | 0.735392 |
747cea0106d0724cb386ccd7992023152ae2655d | 11,024 | // Copyright 2019 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 45.553719 | 99 | 0.751814 |
ee172f6e04e16bdc097a7ec834fd3aae7402b872 | 121 | package io.github.si1kn.lunartotecknixconverter.gson;
public class Option {
public Background background_clr_nr;
}
| 17.285714 | 53 | 0.801653 |
f80967325d4ee27f1c55fff9b8266477fd409438 | 34,062 | /*
* 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... | 38.27191 | 101 | 0.587488 |
6f4244b95c353f42622bb99745c0c27678a7ee7a | 3,195 | package com.ruoyi.business.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.sprin... | 32.938144 | 119 | 0.747105 |
a9187d422e2d87aff33e7785262ba35c8557e687 | 4,481 | /**
Copyright (c) 2011, 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... | 31.556338 | 84 | 0.737335 |
c97bac603670bb0fe54edbe3e3b601e25866a43e | 9,747 | /*
* 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... | 38.988 | 115 | 0.639068 |
1608fcb91cfe543442cac0d5c136a43da73ccfd1 | 597 | package io.jenkins.tools.pluginmanager.cli;
import java.text.MessageFormat;
import java.util.Locale;
import java.util.ResourceBundle;
import org.kohsuke.args4j.Localizable;
enum Messages implements Localizable {
INVALID_CREDENTIALS_VALUE;
public String formatWithLocale(Locale locale, Object... args) {
... | 29.85 | 94 | 0.747069 |
d32a2742d8910eb9564f1254b2e61d550d19824c | 18,977 | /*
* Copyright (c) 2006-, IPD Boehm, Universitaet Karlsruhe (TH) / KIT, by Guido Sautter
* 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... | 50.740642 | 544 | 0.756653 |
065189fefcd8175894bd40823766912a9ab447d7 | 4,569 | package io.github.jtsato.bookstore.exception.handler;
import java.time.LocalDateTime;
import java.util.Locale;
import java.util.Set;
import java.util.stream.Collector;
import java.util.stream.Collectors;
import javax.validation.ConstraintViolation;
import javax.validation.ConstraintViolationException;
import org.spr... | 48.606383 | 149 | 0.802583 |
e9843af933f485ddff6b60cdd0239ebfd19a1904 | 312 | package net.cpollet.unirest;
import com.mashape.unirest.request.GetRequest;
import net.cpollet.gallery.it.domain.Auth;
import org.checkerframework.checker.units.qual.A;
public final class NoAuth implements Auth {
@Override
public GetRequest update(GetRequest request) {
return request;
}
}
| 24 | 50 | 0.759615 |
c2b093d0a3a848e5110d84c1417bdeddf6df7bb4 | 261 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.divudi.data;
/**
*
* @author Buddhika
*/
public enum CssTextDecoration {
none,
underline,
line_through,
overline,
inherit,
}
| 14.5 | 52 | 0.651341 |
2e2b44b83406a50020374be1e8885dbe6cd9cc5f | 275 | /*aufg*
public class Falke extends Tier {
*aufg*/
//ml*
public class Falke extends Fliegend {
//*ml
public Falke( String pName ) {
super(pName);
}
public void sagWas() {
System.out.println("Ich bin ein Falke.");
super.sagWas();
}
}
| 15.277778 | 49 | 0.578182 |
c7aff5052e338e982a2838e63f5d6d37e143a6cb | 1,413 | package com.cabapp.deep.historyRecyclerView;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.cabapp.deep.R;
import java.util.List;
/**
* Created by Deep on 2/6/2018.
*/
public cl... | 29.4375 | 145 | 0.733192 |
f9b9094b6d11e1fc2973074385b3dad7140a17cd | 3,565 | package com.rn.tapdaq;
import com.facebook.react.bridge.Arguments;
import com.facebook.react.bridge.WritableMap;
import com.tapdaq.sdk.adnetworks.TDMediatedNativeAd;
import com.tapdaq.sdk.common.TMAdError;
import com.tapdaq.sdk.listeners.TMAdListener;
import com.tapdaq.sdk.model.rewards.TDReward;
public class RNTapda... | 28.293651 | 168 | 0.600561 |
422dcc8dfbe235aeabae5e480dc7313843680a9b | 1,365 | package com.xinra.reviewcommunity;
import com.xinra.nucleus.common.ContextHolder;
import com.xinra.reviewcommunity.rest.conf.MarketAgnostic;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Profile;
import org.springframework.http.HttpStatus;
import org.sprin... | 34.125 | 96 | 0.777289 |
4d67ffa1734bdb5268daecf3e3ede8ebd4825b13 | 133 | package cn.edu.sysu.workflow.resource.service;
/**
* @author Skye
* Created on 2020/3/14
*/
public interface WorkItemService {
}
| 14.777778 | 46 | 0.714286 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.