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 |
|---|---|---|---|---|---|
71ad86ffdb100d1488412877005df17e40122bf3 | 5,576 | package com.fmi.bytecode.annotations.gui.businesslogic.model.searchfilters;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import com.fmi.bytecode.annotations.tool.element.AnnotationRecord;
import com.fmi.bytecode.annotations.tool.element.ClassInfo;
import com.fmi.bytecod... | 36.444444 | 98 | 0.594512 |
d475d11a3e26ba686a3161553fb8b31f2285b9a1 | 1,288 | package com.leo.juc.lock;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
/**
* 用于解决多线程安全问题的方式:
* 隐式锁
* 1. 同步代码块(synchronized)
* 2. 同步方法(synchronized)
* <p>
* JDK1.5 之后
* 3. 同步锁
* 这是一个显示锁:需要通过 lock() 方法上锁,必须通过 unlock() 方法进行释放锁
*
* @author justZero
* @since 2019/3/11... | 23.418182 | 71 | 0.47205 |
36dac176fe50fa346ceada8e9837f51a0ae3349f | 8,562 | package assimp.importer.raw;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.StringTokenizer;
import org.lwjgl.util.vector.Vector4f;
import assimp.common.AssUtil;
import assimp.common.AssimpConfig;
import assimp.com... | 29.626298 | 113 | 0.635366 |
d3e0c7a3c439a9df212168c46c075b6a14ded8b7 | 221 | package ru.job4j.professions;
public class Engineer extends Profession {
public Engineer(String name) {
super(name, "Engineer");
}
public House buildHouse(House home) {
return home;
}
}
| 17 | 42 | 0.642534 |
e24a66b935dcddcd476d763cdf6c99416356b654 | 398 | package com.gm.dscustomer.service;
import com.github.pagehelper.Page;
import com.gm.dscustomer.dto.out.ProductListOutDTO;
import com.gm.dscustomer.dto.out.ProductShowOutDTO;
import com.gm.dscustomer.po.Product;
public interface ProductService {
Product getById(Integer productId);
ProductShowOutDTO getShowByI... | 26.533333 | 53 | 0.80402 |
8d89ccdcfd4bd76c1293949b8b29f90712e3ea50 | 1,004 | package com.bitdubai.fermat_api.layer.all_definition.transaction_transference_protocol;
import com.bitdubai.fermat_api.layer.all_definition.exceptions.InvalidParameterException;
/**
* Created by eze on 09/06/15.
*/
public enum Action {
APPLY ("APP"),
REVERT ("REV");
private final String code;
Acti... | 27.888889 | 178 | 0.654382 |
4d86b32727ce9c5d3a1ff9630977a618703d3dfb | 634 | package org.springframework.social.instagram.api.impl;
import java.util.List;
import org.springframework.social.instagram.api.Subscription;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
@JsonIg... | 25.36 | 77 | 0.757098 |
485f2c7a7164052ea9a375e04955e90d714ae734 | 935 | package com.seahorse.youliao.constant;
/**
* @ProjectName: youliao
* @Package: com.seahorse.youliao.constant
* @ClassName: WeChatQueryConstants
* @Description: 微信支付查询结果
* 详细描述 见官网 https://pay.weixin.qq.com/wiki/doc/api/native.php?chapter=9_2
* @author:songqiang
* @Date:2020-03-24 10:30
**/
public class WeChatQ... | 18.333333 | 73 | 0.595722 |
dddc54aaa84a646faa082e67dfe2fea401718d86 | 918 | package com.talanlabs.bean.mybatis.cache;
import org.apache.ibatis.session.Configuration;
import java.util.HashMap;
import java.util.Map;
public class BeanCache extends AbstractBeanCache {
private final Map<Object, Object> cache = new HashMap<>();
public BeanCache(Configuration configuration, BeanCacheMana... | 20.863636 | 117 | 0.654684 |
c44cd5d7f74c864e090b4468e8790671a5768804 | 2,498 | package encoding;
import formatconversion.FormatConverter;
import java.util.ArrayList;
public class HammingCode {
public static String encode(String BCD) {
int BCDlength = BCD.length();
int parityCount = parityCountCalculator(BCD);
StringBuilder encodedString = new StringBuilder(BCD);
int codeLeng... | 26.294737 | 77 | 0.582866 |
425cf8c1e56ff4076d8307a6ebbcc2f87300421f | 1,249 | package io.orbi.ar.fragments;
import android.graphics.Color;
import android.util.Log;
/**
* Created by pc on 2018/1/11.
*/
public class FrameRate {
private static float mRealTimeFrame; //实时帧率
private static float mAverageFrame; //平均帧率
private static float mAllFrame;
private static int mFrameCoun... | 23.12963 | 62 | 0.559648 |
c33a22bb7bb56cd65d71a6a34c8c2ebe348f39af | 1,505 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package com.google.android.gms.internal;
import java.lang.ref.WeakReference;
// Referenced classes of package com.google.android.gms.internal:
// zzaal... | 27.363636 | 70 | 0.554153 |
fcda357e24635f0605c962af7af5e597fdb68676 | 3,125 | /*
Copyright (c) 2020 - for information on the respective copyright owner
see the NOTICE file and/or the repository at
https://github.com/hyperledger-labs/organizational-agent
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Yo... | 39.0625 | 117 | 0.7248 |
9ee8dd959b0fb17b461e7e91854f735db86f76c0 | 2,356 |
// RobotBuilder Version: 3.1
//
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// Java from RobotBuilder. Do not put any code or make any change in
// the block... | 27.08046 | 79 | 0.697368 |
f892a2b11a54df706060837d97528f8c52b6dcd9 | 340 | package yeelp.distinctdamagedescriptions.util;
import yeelp.distinctdamagedescriptions.api.DDDDamageType;
import yeelp.distinctdamagedescriptions.util.lib.NonNullMap;
public class DDDBaseMap<T> extends NonNullMap<DDDDamageType, T>
{
public DDDBaseMap(T defaultVal)
{
super(defaultVal);
// TODO Auto-generated co... | 24.285714 | 63 | 0.811765 |
c0b0c40772eb67c120a4373c6943e99fe5697bd0 | 1,593 | package net.kunmc.lab.spotbilledduck.game;
import lombok.Getter;
import org.bukkit.Material;
import org.bukkit.block.Block;
import org.bukkit.entity.Player;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
public class PlayerStateManager {
// <親プレイヤーのID, 歩いた地点>
... | 30.056604 | 105 | 0.658506 |
bb473e93fa1ebbde6c0b9bc4519709d1e5c1dbc1 | 724 | package me.boqin.jsrxbridge.api;
import java.util.HashMap;
import me.boqin.jsrxbridgelib.interfaces.IBToJsHandler;
import me.boqin.jsrxbridgelib.utils.JsonUtil;
/**
* 用于Native调用的JS方法。
* Created by Boqin on 2017/7/12.
* Modified by Boqin
* @Version
*/
@Deprecated
public class JSApi {
private IBToJsHandler m... | 21.294118 | 88 | 0.69337 |
aa2fd84962ce5a9e82e2aadf1fee65f4f05e5537 | 1,620 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.batchai.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.j... | 30 | 104 | 0.700617 |
ff4875751dd7755b17002372a3f622c86eafc2d1 | 149 | /**
* see https://docs.jboss.org/hibernate/validator/5.4/reference/en-US/html_single/
*/
package io.ddd.framework.sharedataobject.common.validator; | 37.25 | 82 | 0.771812 |
993a244890a89c5160cb11988b908f2c23c6cb00 | 1,260 | package jaredbgreat.arcade.ui.input;
import jaredbgreat.arcade.entity.IInputController;
/**
*
* @author jared
*/
public class InputAgregator {
private static InputAgregator in;
private int commands;
private final KeyInput KEYS;
private final MouseInput MOUSE;
private final IInputController... | 20.322581 | 65 | 0.592063 |
3835ee2433ee995f97e4473684d522ad199ffea4 | 648 | //$Id: Search.java 7772 2005-08-05 23:03:46Z oneovthafew $
package org.hibernate.test.sorted;
import java.util.SortedSet;
import java.util.TreeSet;
public class Search {
private String searchString;
private SortedSet searchResults = new TreeSet();
Search() {}
public Search(String string) {
searchString = str... | 22.344828 | 58 | 0.753086 |
2ee04d80624654a37da867dff53252fce695d83b | 16,105 | /*******************************************************************************
*
* Pentaho Mondrian Test Compatibility Kit
*
* Copyright (C) 2013-2014 by Pentaho : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Ve... | 47.647929 | 203 | 0.511704 |
7bd1f85d4d3d78fc1484e5b1056e1f008fa204e0 | 714 | import static java.lang.Thread.sleep;
import java.util.logging.Level;
import java.util.logging.Logger;
public class Consumidor implements Runnable{
private AreaComun area = null;
private int veces =0;
public Consumidor (int v, AreaComun a){
this.veces =v;
this.area =a;
}
@Overri... | 20.4 | 51 | 0.478992 |
b4280554a3ef894f1e85758f3e5695aa7c5579de | 4,761 | package com.andy.gsbc;
import com.andy.gsbc.autoconfigure.GrpcServerProperties;
import com.andy.gsbc.register.RpcRegister;
import com.andy.gsbc.register.ServiceInfo;
import com.google.common.net.HostAndPort;
import com.orbitz.consul.AgentClient;
import com.orbitz.consul.Consul;
import com.orbitz.consul.model.agent.Imm... | 40.692308 | 176 | 0.68683 |
a9822db77562ecbf54d4b467dfd4f04dd0805bfc | 101 | package io.github.wilson.order;
//package by domain, not by duty
public class OrderServiceImpl{
} | 12.625 | 32 | 0.762376 |
4326a11349248200abc3997a205840a99c4519cc | 1,708 | /*
* 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 control;
/**
*
* A continuacion se definen clases en relacion a las cliente
* Este codigo comparte la información... | 24.056338 | 106 | 0.627049 |
5e6cc01cec81852d0255d70d1effb068db446c5b | 1,980 | /**********************************************************************
Copyright (c) 2014 HubSpot 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
U... | 31.428571 | 72 | 0.637374 |
0ac9ef226cbad02b136102086944eea59a7cf54e | 2,950 | /*
Copyright (C) 2013-2019 Expedia 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 in wri... | 39.864865 | 170 | 0.744746 |
5d4b587921d867d32aff5f51e474f0b58691a5d7 | 91 | package com.andrei1058.spigot.multiversioneventhandler;
public interface WrappedEvent {
}
| 18.2 | 55 | 0.846154 |
6d6cc132d1b1de0f11b290bbdb1df9726cab9c23 | 32,258 | /*
* Copyright (C) 2006 The Android Open Source 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 app... | 36.408578 | 115 | 0.570122 |
1daaca32cca035cf5c6f8d3be18522411d583cc5 | 1,643 | /*
* Copyright (c) 2016. Samsung Electronics Co., 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 applicab... | 24.522388 | 75 | 0.647596 |
46798d46309439159e23b64761033f127ef0acd1 | 1,009 | package com.maybe.live.repositories;
import com.maybe.live.domain.User;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;
import org.springfra... | 34.793103 | 96 | 0.742319 |
82bfb2c0dc5ec87ad9b18450bd9a5e72c659848f | 1,594 | package com.cnec5.it.selfservice.commons;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.http.SessionCreationPolicy;
import org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurerAdapter;
import o... | 33.914894 | 112 | 0.606023 |
8338aa90aad3faa75172cd7d54a5355cb10a146f | 13,954 | package com.qh.basic.service.impl;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qh.basic.domain.ScMoveAccOther;
import com.qh.basic.api.domain.ScStaffInfo;
import com.qh.basic.domain.vo.PushMoveStaff;
import com.qh.basic.enums.AccTy... | 34.885 | 145 | 0.618246 |
c4c620dceb83c05aec9e792fb63303985557d527 | 11,664 | package com.accessibility.stamp.controller;
import com.accessibility.stamp.entity.*;
import com.accessibility.stamp.repository.*;
import org.json.JSONArray;
import org.json.JSONException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.json.J... | 41.956835 | 147 | 0.622171 |
844611c87b44af644e1ec8df55041f17f76858e2 | 606 | package br.com.siqueira.javacore.introducaometodos2.classes;
public class Conta {
public int numero;
public String titular;
public double saldo;
public boolean saca(double quantidade){
if(this.saldo < quantidade){
return false;
}else{
this.saldo = this.saldo - q... | 23.307692 | 60 | 0.608911 |
aa86beed228a1ddf312b9a006dd5e5afedc6acc0 | 410 | package org.frankframework.frankdoc.testtarget.simple;
public class ListenerParent extends AbstractGrandParent {
protected void setChildAttribute(String value) {
}
public void setParentAttribute(String value) {
}
public String getParentAttribute() {
return null;
}
public void setInheritedAttribute(String v... | 19.52381 | 59 | 0.785366 |
7c939b45330a2e579578175ddbbb53cc97edec1c | 477 | package com.platform.canal.constant;
/**
* @author wlhbdp
* @ClassName: DmlConstant
* @Description: dml常量
*/
public class DmlConstant {
/**
* INSERT
*/
public static final String DML_INSERT = "INSERT";
/**
* UPDATE
*/
public static final String DML_UPDATE = "UPDATE";
/**... | 14.454545 | 53 | 0.570231 |
4988b254b200bbc1dbf7af9c8cb74a3d0fd53719 | 2,613 | package com.djunderworld.stm.regioncategory.web;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMetho... | 27.797872 | 109 | 0.749713 |
7f76855fcb0b39c3e1b5d1356923fbaa23b5e9a4 | 6,785 |
package com.prowidesoftware.swift.model.mx.dic;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang... | 27.693878 | 317 | 0.643036 |
c8221a41192c5bd9e87441c449e1fcff5f3a461b | 7,398 | /*
* Copyright 2017 Netflix, 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 i... | 35.567308 | 123 | 0.63017 |
54ac85fb57a37bedb144fe748d1596bbe5f0eeac | 802 | package org.to2mbn.jmccc.test;
import static org.junit.Assert.*;
import org.junit.Test;
import org.to2mbn.jmccc.option.WindowSize;
public class WindowSizeTest {
@Test
public void testEqualsFullscreenSameSize() {
assertTrue(WindowSize.fullscreen().equals(WindowSize.fullscreen()));
}
@Test
public void testEqua... | 22.914286 | 71 | 0.750623 |
1be7006302c6321eef67509af298a8e83ffdf425 | 1,936 | package DepthFirst;
import DataStructures.Graph.Graph;
import DataStructures.LinkedList.Node;
import org.junit.Test;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import static org.junit.Assert.*;
public class DepthFirstTest {
@Test
public void traverseTest() {
Graph t... | 28.895522 | 85 | 0.591426 |
8a48e72850043714e6ff6b450abaf167844d01ea | 6,801 | package co.gov.ideamredd.servlets;
import java.io.IOException;
import javax.ejb.EJB;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import co.gov.ideamredd.reportes.AnalisisResultadosWPSBiomasa... | 31.632558 | 89 | 0.688722 |
b05f9e4df5b09720f1acacb10894ed507f963283 | 11,341 | /**
* 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... | 40.216312 | 125 | 0.630897 |
fef0112d4202979118ab519506f1bf1cb5da5ed1 | 3,496 | package com.project.convertedCode.includes.vendor.nesbot.carbon.src.Carbon.Lang;
import com.runtimeconverter.runtime.RuntimeStack;
import com.runtimeconverter.runtime.interfaces.ContextConstants;
import com.runtimeconverter.runtime.includes.RuntimeIncludable;
import com.runtimeconverter.runtime.includes.IncludeEventEx... | 47.890411 | 100 | 0.602403 |
d918b6ab499afef1402986105acb27900853e8c7 | 5,058 | /*******************************************************************************
* Copyright (c) 2008, 2014 IBM Wind River Systems, Inc. and others.
* 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 dis... | 27.639344 | 92 | 0.715105 |
74b57aa37271f67bbe10a05723b80191012ba68e | 2,721 |
package cpptools;
import java.util.ArrayList;
import java.util.Collection;
import junit.framework.TestCase;
import junit.framework.TestResult;
/**
* Test case for EasyMockTestCase.
*
* @author Mathieu Champlon
* @version $Revision: 1064 $ $Date: 2005-08-27 03:11:01 +0900 (sam., 27 août 2005) $
*/
... | 24.963303 | 86 | 0.5362 |
5083f83104dab4f9836cbb7a7dd06710d86e94c4 | 1,498 | package org.clever.graaljs.fast.api.dto.request;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;
import org.clever.graaljs.fast.api.entity.EnumConstant;
import org.clever.graaljs.spring.core.utils.validator.annotation.ValidStringStatus;
import javax.validation.constraints.NotBlank;
import javax.valid... | 28.807692 | 83 | 0.678905 |
37dfb15cbc37c804cff2ecea6c564aa357153ed7 | 5,764 | package gorev.yerservis.com.gorevgo;
import android.app.Activity;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Build;
import android.support.v4.view.PagerAdapter;
import android.support.v7.app.AlertDialog;
import android.view.LayoutInflater;
import android.view.View;
import ... | 31.497268 | 109 | 0.533657 |
cdb92a397d628f8dd5b138bb9a4d362676e8f6fe | 3,092 | /*******************************************************************************
* 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 f... | 38.65 | 107 | 0.726067 |
2d07a95aabf786b5e5c4b6469258dcd6d5af7bde | 887 | package br.com.zup.gabrielli.propostas.cartao;
import java.time.LocalDateTime;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.validation.constraints.NotEmpty;
import org.h... | 18.479167 | 73 | 0.784667 |
9cfbd0908e00b1976481c476bafbb1789d2fbebd | 101,009 | /*
* This class is based on the C# open source freeware library Clipper:
* http://www.angusj.com/delphi/clipper.php
* The original classes were distributed under the Boost Software License:
*
* Freeware for both open source and commercial applications
* Copyright 2010-2014 Angus Johnson
* Boost Software License ... | 36.82428 | 171 | 0.460791 |
739886088fe74de8c2ede894a7b7ad84e6ef2536 | 269 | package banker;
/*
* Vadesiz hesap türü için oluşturulan sınıf
*/
public class Current extends Account{
int faiz=1;
public Current(int ID){
super(ID);
}
@Override
public int Benefit() {
return (int)(faiz*Balance);
}
}
| 14.157895 | 45 | 0.587361 |
d56b7fe60d0744a5af9d3c8eb57c2ed26d19784b | 356,185 | // Generated from TSqlLexer.g4 by ANTLR 4.7.1
package gen.antlr.sql.exprs;
import org.antlr.v4.runtime.Lexer;
import org.antlr.v4.runtime.CharStream;
import org.antlr.v4.runtime.Token;
import org.antlr.v4.runtime.TokenStream;
import org.antlr.v4.runtime.*;
import org.antlr.v4.runtime.atn.*;
import org.antlr.v4.runtime.... | 75.880912 | 101 | 0.671522 |
656f534f2fa1fb881d69b54b173a6f2708d676a3 | 1,928 |
package org.spdx.library.model;
/**
* Sometimes a set of license terms apply except under special circumstances. In this case, use the binary "WITH" operator to construct a new license expression to represent the special exception situation. A valid <license-expression> is where the left operand is a <simp... | 31.606557 | 405 | 0.680498 |
29f1eebc91e848e738585054408fb6350d9efbc3 | 1,244 | package com.sen.netty.study.simple.im;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelPipeline;
import io.netty.channel.socket.SocketChannel;
import io.netty.handler.codec.DelimiterBasedFrameDecoder;
import io.netty.handler.codec.Delimiters;
import io.netty.handler.codec.string.StringDecode... | 36.588235 | 100 | 0.747588 |
1f86ae0cff4e44a8295f70a5ffad7600b207c5d6 | 2,170 | package solutions.leetcode;
import static org.junit.Assert.assertEquals;
import base.Solution;
import base.TestCases;
import mappers.ListNodeMapper;
import structures.ListNode;
import testcases.leetcode.MergeKListsTestCases;
/*
*
https://leetcode.com/problems/merge-k-sorted-lists/#/description
Merge k sorted link... | 27.125 | 93 | 0.610599 |
3cc14c64d6d799a9403ea8d9afdc786aeb5d46fd | 305 | package com.winway.comic.mapper;
import com.winway.comic.entity.CartoonType;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 漫画类别对应表,漫画类别多对多关系 Mapper 接口
* </p>
*
* @author sam.feng
* @since 2020-06-15
*/
public interface CartoonTypeMapper extends BaseMapper<CartoonType> {
}
| 17.941176 | 68 | 0.734426 |
4172ef333acdd61b19399ce8ae35647027758f71 | 4,837 | package po;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;
import javax.persistence.*;
/**
* Created on 2017/10/21
*
* @author 巽
*
*/
@Entity
@Embeddable
@Table(name = "goods")
public class GoodsPO implements Serializable {
private static final long serialVersio... | 21.59375 | 120 | 0.67087 |
b77775ee27f478f7c2fcc69d8c7b20d84ceb6662 | 6,176 | /*
* $Id$
*/
/*
Copyright (c) 2000-2003 Board of Trustees of Leland Stanford Jr. University,
all rights reserved.
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... | 36.761905 | 78 | 0.64524 |
c3c3713fff79fe0f4080d2f341b0b822eda55f29 | 3,483 | /*
* Copyright (C) 2011 Eiichiro Uchiumi. 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 re... | 31.663636 | 96 | 0.726098 |
24b4255f9898698f56827f57f9cd4b5d2d493dc1 | 3,202 | /*
* 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... | 36.386364 | 100 | 0.656777 |
fef0688e36e48ede6099259f1654e6fd65da7a02 | 2,947 | package frc.robot;
import edu.wpi.first.wpilibj.GenericHID;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.XboxController;
import edu.wpi.first.wpilibj2.command.Command;
import edu.wpi.first.wpilibj2.command.button.JoystickButton;
import frc.robot.subsystems.drivetrain.SwerveDrive;
import frc.robo... | 33.488636 | 124 | 0.66678 |
2f066a5bfb03810311011c5e8c5c504507fefa5e | 6,569 | package top.nowandfuture.gamebrowser;
import com.mojang.blaze3d.matrix.MatrixStack;
import com.mojang.blaze3d.systems.RenderSystem;
import it.unimi.dsi.fastutil.ints.Int2ReferenceMap;
import net.minecraft.client.renderer.IRenderTypeBuffer;
import net.minecraft.client.renderer.culling.ClippingHelper;
import net.minecra... | 37.752874 | 200 | 0.627188 |
1502c88275a18f88d464174dff5c918247704395 | 27,230 | /*
* 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... | 47.77193 | 327 | 0.687734 |
be31f5543ff599377e71d7d685d3a364ff3c6f7d | 3,222 | /*
* Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. 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.apach... | 32.877551 | 119 | 0.612353 |
dd775b8663d207b0661624d0e410fb4724c3c0d4 | 6,232 | /*
* 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 ... | 42.684932 | 100 | 0.71181 |
e3d8197f4f73e8d3d0b94ae25b6e78a203043de9 | 1,624 | /*
* Copyright (c) 2010-2012 LinkedIn, 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 ... | 26.193548 | 80 | 0.653325 |
5d3405a27d931706a90293c543c4c7b07f948f60 | 4,947 | /* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
/*
Copyright (c) 2001 Lapo Luchini.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice... | 29.801205 | 91 | 0.599151 |
143e35aec2e50d192b229c9ef5932d0578a91b98 | 1,542 | package com.fabriccommunity.spookytime.world.dimension;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.client.MinecraftClient;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Vec3d;
import net.minecraf... | 33.521739 | 100 | 0.728275 |
7f9ac7039dd1f95549d569c894a7bbc74f586a58 | 4,919 | /**
* Copyright 2005-2014 The Kuali Foundation
*
* Licensed under the Educational Community License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.opensource.org/licenses/ecl2.php
*
* Unless required by a... | 33.691781 | 133 | 0.697296 |
275af8dcfb5216b89ebe289e56a8941b2df89d93 | 1,372 | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server... | 39.2 | 90 | 0.689504 |
9bd8394253bf4855d37b5be789a54e8e641cec12 | 32,697 | // Made with Model Converter by Globox_Z
// Generate all required imports
// Made with Blockbench 3.7.5
// Exported for Minecraft version 1.15
// Paste this class into your mod and generate all required imports
package dev.mrsterner.besmirchment.client.model;
import dev.mrsterner.besmirchment.common.entity.BeelzebubEn... | 86.044737 | 373 | 0.665933 |
92320fde470687fe285e020545d0956b47c9633a | 362 | package com.lknmproduction.messengerrest.domain.redis;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.redis.core.RedisHash;
import java.io.Serializable;
@Data
@RedisHash("Device")
public class DeviceConfirmRedis implements Serializable {
@Id
private String... | 20.111111 | 57 | 0.792818 |
146ed144489a76760e39259ab161e233901b3ace | 835 | package com.platzi.market.persistence.entity;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import javax.persistence.*;
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "compras_productos")
public class PurchasesProductEntit... | 21.410256 | 76 | 0.732934 |
8e004e02abcebe1abe8c56d157451a6625a39940 | 4,901 | /*
* Copyright (c) 2014
* Mikol Faro <mikol.faro@gmail.com>
* Simone Mangano <simone.mangano@ieee.org>
* Mattia Tortorelli <mattia.tortorelli@gmail.com>
*
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (t... | 39.524194 | 91 | 0.771475 |
f6d77a823435bfe010a5b2f4a6c11a76e54e5c14 | 9,661 | package io.quarkus.it.keycloak;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import org.keycloak.representations.AccessTokenResponse;
import org.keycloak.r... | 40.936441 | 126 | 0.657075 |
17057e4d02057f18c1ca30a3349bba3bbec438ce | 664 | package common;
import java.nio.ByteBuffer;
import java.util.UUID;
import com.google.protobuf.ByteString;
public class UuidUtils {
public static UUID asUuid(byte[] bytes) {
ByteBuffer bb = ByteBuffer.wrap(bytes);
long firstLong = bb.getLong();
long secondLong = bb.getLong();
return new UUID(firstLo... | 25.538462 | 52 | 0.712349 |
fc240c6994e4e721ef7c77ec6e30cf86d13ec8d0 | 5,371 | package flink.benchmark;
import org.apache.flink.api.java.utils.ParameterTool;
import org.yaml.snakeyaml.Yaml;
import org.yaml.snakeyaml.constructor.SafeConstructor;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.Serializable;
import java.util.List;
import java.util.Map;
import j... | 31.226744 | 133 | 0.7062 |
c6e3e532094dde6c982189d9e47a94801d8871c8 | 2,268 | package org.tianxiduo.game2048;
import java.awt.Color;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import javax.swing.JFrame;
@SuppressWarnings("serial")
public class GameWindow extends JFrame {
private GameContentConfig gameContentConfig = new GameContentConfig();
public void buildGameC... | 34.363636 | 140 | 0.729718 |
d40670ee928977c039ed2b2d9204bf3b59e88ddd | 620 | package datos;
import datos.Actividad;
import javax.annotation.Generated;
import javax.persistence.metamodel.ListAttribute;
import javax.persistence.metamodel.SingularAttribute;
import javax.persistence.metamodel.StaticMetamodel;
@Generated(value="EclipseLink-2.5.0.v20130507-rNA", date="2014-07-07T19:23:36")
@StaticM... | 36.470588 | 82 | 0.824194 |
075bd3ceddce7b229b03956840971a241bf0c327 | 1,122 | package vip.gadfly.chakkispring.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import vip.gadfly.chakkispring.common.mybatis.Page;
import vip.gadfly.chakki... | 40.071429 | 111 | 0.707665 |
8b9ac160f6f0620d50426201653ee72d833f8ec9 | 2,460 | package io.rtdi.bigdata.pipelinetest;
import java.io.IOException;
import java.util.List;
import io.rtdi.bigdata.connector.pipeline.foundation.ConsumerSession;
import io.rtdi.bigdata.connector.pipeline.foundation.IPipelineBase;
import io.rtdi.bigdata.connector.pipeline.foundation.IProcessFetchedRow;
import io.rtdi.big... | 34.647887 | 153 | 0.771545 |
16d7b56f7cde091b713404e319bcbe3463c4e396 | 4,216 | import java.util.NoSuchElementException;
/** Linked List Lab
* Made by Toby Patterson 5/29/2020
* For CS165 at CSU
*/
public class MyLinkedList implements MiniList<Integer>{
/* Private member variables that you need to declare:
** The head pointer
** The tail pointer
*/
private Node head;
... | 22.425532 | 62 | 0.468691 |
c17d0368ad5d38a1b584c20752c4024e6b8e71ab | 2,835 | package org.geekbang.thinking.in.spring.denpendency;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.NoSuchBeanDefinitionException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframe... | 38.310811 | 165 | 0.770723 |
95c36fd873badb3ba003a96f2f5db690433a70a9 | 3,309 | /*
* Copyright 2013 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
*
* Unless required by applica... | 28.282051 | 85 | 0.737081 |
8b11be5f5a09d7b34efac700abec879d67116b05 | 500 | package spectacular.backend.github.graphql;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
public class ResponseData {
private final RepositoryWithPullRequests repository;
@JsonCreator(mode = JsonCreator.Mode.PROPERTIES)
public ResponseData(@JsonPrope... | 29.411765 | 90 | 0.806 |
3c6a8fb869ebf7aa9eb771359d05c8e5415c2057 | 423 | package com.salmon.oss.core.usermgr;
import com.salmon.oss.core.usermgr.model.UserInfo;
public interface UserService {
boolean addUser(UserInfo userInfo);
boolean updateUserInfo(String userId, String password, String detail);
boolean deleteUser(String userId);
UserInfo getUserInfo(String userId);
UserI... | 22.263158 | 72 | 0.791962 |
ca8334075978eb3d60b0dcbe8d08bf571c4a82a0 | 3,242 | package moxproxy.webservice.controllers;
import moxproxy.consts.MoxProxyRoutes;
import moxproxy.interfaces.MoxProxyService;
import moxproxy.model.MoxProxySessionIdMatchingStrategy;
import moxproxy.webservice.consts.ControllerConsts;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.be... | 48.38806 | 147 | 0.741518 |
0a42d8b56f6cbef3bd67aabd8edeb78ef45aced3 | 67,699 | /*
* Copyright 2015 Goldman Sachs.
*
* 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 ... | 35.113589 | 190 | 0.587143 |
bf0fa3e4bd285e92e9c95cbf89a2b584f94e1179 | 3,986 | package jetbrains.mps.samples.componentDependencies.typesystem;
/*Generated by MPS */
import jetbrains.mps.lang.typesystem.runtime.AbstractNonTypesystemRule_Runtime;
import jetbrains.mps.lang.typesystem.runtime.NonTypesystemRule_Runtime;
import org.jetbrains.mps.openapi.model.SNode;
import jetbrains.mps.typesystem.in... | 54.60274 | 258 | 0.793527 |
2aff409b1c6d8573e7ec73089844685f2f946ecf | 1,461 | package com.jet.eacloud.demo.springboot.eforms.api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Sort;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.an... | 32.466667 | 75 | 0.785079 |
757291f3e3962e89dca75c653bee640a498718e6 | 7,366 | /**
* Copyright 2017 Alfa Laboratory
* 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 writi... | 41.382022 | 182 | 0.684225 |
fdfd6fd02911f50a45d3d022a6276897be456871 | 15,378 | class krDlDw5OVP7Z6 {
}
class xpPoI {
}
class y3AzlTJG_3Lcf {
}
class Uj5cgs75CLmne {
public int[][] pkeOTjNCTREP1Q (boolean w, void O6M_13zQj1j) {
boolean LWOB1NJ6LS5;
int VNqXVTX0J5Aa;
{
G8Bqq4Kh[] VZGBHZYP;
_RUFo5Naz8Kf j0pLMakV;
boolean[][][] O3... | 34.791855 | 202 | 0.469697 |
35d9237b3f4f815075cc54488d46d9177e6dc390 | 648 | package testcode.cookie;
import javax.servlet.ServletException;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
public class CookieUsage extends HttpServlet {
@Overrid... | 28.173913 | 113 | 0.712963 |
60b54ec31fb3d4d730cdc7693b757647819f3632 | 3,176 | package tk.sciwhiz12.basedefense.client.render;
import com.mojang.blaze3d.vertex.PoseStack;
import com.mojang.blaze3d.vertex.VertexConsumer;
import com.mojang.math.Vector3f;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.BlockEntityWithoutLevelRenderer;
import net.minecraft.client.renderer... | 48.861538 | 115 | 0.690176 |
f6e86d22503e8295a291c1240756dc34f2c5e28e | 1,348 | package tests;
import org.testng.Assert;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
public class RegistrationTest extends TestBase {
@BeforeMethod
public void preCondition(){
if(app.getUser().isLogged()){
app.getUser().logout();
}
}
@T... | 29.304348 | 69 | 0.636499 |
2bf83c87fc6703c4a80125dd1047f855d4309e6d | 343 |
package com.ahmedaziz.android.popularmoviesapp.network;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
import java.util.List;
public class Reviews {
@SerializedName("results")
private List<Review> reviews = new ArrayList<>();
public List<Review> getReviews() {
r... | 19.055556 | 55 | 0.723032 |
0e7a05c3adca6052505ba8aad407fd116e97f876 | 2,284 | /*
* The MIT License (MIT)
*
* Copyright 2021 Crown Copyright (Health Education England)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
* associated documentation files (the "Software"), to deal in the Software without restriction,
* including without limita... | 43.923077 | 100 | 0.773643 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.