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 |
|---|---|---|---|---|---|
0a1f38f65f5fd5134d422503f3d32eaed7b3ef17 | 11,788 | /*
* Copyright 2002-2016 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 ap... | 32.032609 | 124 | 0.736766 |
69ba2fb589ededb079c4a7fda1050fce37de7541 | 445 | package com.baidu.amis.validation;
/**
* 仿照 javax.validation 力度命名,但多了个字段名
*/
public class ConstraintViolation {
// 字段名
private String name;
// 违反信息
private String message;
public ConstraintViolation(String name, String message) {
this.name = name;
this.message = message;
}
... | 15.892857 | 61 | 0.613483 |
813ff2867f41280a74cd4448af34d31a5624652c | 436 | package top.itning.eurekaprovider2;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
@SpringBootApplication
@EnableEurekaClient
public class Eurekaprovider2Application {
publ... | 29.066667 | 70 | 0.823394 |
f8bb2b90c7671fbce4e31e52f6273b91ccb4687c | 18,091 | package br.com.ariane.fiora.app;
import br.com.ariane.fiora.modelo.Usuario;
import javax.swing.JOptionPane;
public class FrmAlterarUsuario extends javax.swing.JFrame {
Usuario usuario = new Usuario();
public FrmAlterarUsuario() {
initComponents();
//Torna os campos de alteração invis... | 53.365782 | 169 | 0.648168 |
e398123c057965781fcdd105ab5b4f4dc1923fb6 | 250 | package com.github.instagram4j.instagram4j.models.direct.item;
import com.github.instagram4j.instagram4j.models.media.thread.ThreadMedia;
import lombok.Data;
@Data
public class ThreadMediaItem extends ThreadItem {
private ThreadMedia media;
}
| 22.727273 | 74 | 0.82 |
c8ee30a4b627c5834bbb183bcca3148fd01be183 | 12,949 | package il.ac.technion.ie.experiments.service;
import com.google.common.collect.Multimap;
import com.univocity.parsers.csv.CsvParser;
import com.univocity.parsers.csv.CsvWriter;
import com.univocity.parsers.csv.CsvWriterSettings;
import il.ac.technion.ie.canopy.model.DuplicateReductionContext;
import il.ac.technion.ie... | 47.959259 | 131 | 0.693104 |
1267e0f792e8d2c3ae8a5b76895f1d1150f65468 | 27 | package com.simast.service; | 27 | 27 | 0.851852 |
0bce23af118f446312b8ec017750fc4020a77ef6 | 5,986 | package com.example.test.mytest.permission;
import android.content.ActivityNotFoundException;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.provider.Settings;
import android.support.annotation.Nullable;
import android.support.v7.... | 36.950617 | 146 | 0.631306 |
f067f4d72da63906c5906d8b3707d3559a7c2674 | 1,002 | package com.op1.util;
import com.op1.aiff.FormatVersionChunk;
import com.op1.iff.types.*;
public class Op1Constants {
public static final Extended SAMPLE_RATE_44100 = new Extended(new byte[]{
64, 14, -84, 68, 0, 0, 0, 0, 0, 0
});
public static final byte[] COMMON_CHUNK_DESCRIPTION = ")Signed... | 38.538462 | 114 | 0.709581 |
c1ad12c01feb92e37898e66f409788b12b643c27 | 92,028 | package org.iitk.brihaspati.modules.utils;
/*
* @(#)QuizMetaDataXmlWriter.java
*
* Copyright (c) 2010-2011,2013 DEI Agra, IITK, 2017 IITK.
* All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or
* without modification, are permitted provided that the following
* conditions ar... | 50.985042 | 332 | 0.64802 |
5d7afef871a5173bac7d6ec2bb6d76abbd7b2195 | 457 | package com.simplicity.maged.mccobjectdetection.components.contextManager;
import java.util.UUID;
public class EnvironmentContext {
public UUID providerUUID;
public double upBW3; // Cloud<-->Mobile_System
public double downBW3;
public double upBW4; // Cloud<-->Data_Provider
public double downBW4;
public double ... | 26.882353 | 74 | 0.789934 |
194a1175ac540a1306563dfc956ef098a6e65e0c | 36,289 | package com.gymnast.view.hotinfoactivity.activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.graphics.Rect;
import android.graphics.drawable.BitmapDraw... | 45.304619 | 191 | 0.595359 |
1c6d80fe5c159011c3c65f2c091f23a1ca1ca2e3 | 4,031 | package com.atul.mangatain.ui.setting;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import androidx.appcompat.app.AppCom... | 33.87395 | 108 | 0.69933 |
4becdbae77ac995c42d30d88f3ac1c6253096881 | 4,802 | // **********************************************************************
// This file was generated by a TAF parser!
// TAF version 3.0.0.34 by WSRD Tencent.
// Generated from `/usr/local/resin_system.mqq.com/webapps/communication/taf/upload/noahyang/connServiceInvalid.jce'
// *****************************************... | 23.890547 | 122 | 0.553936 |
2e4ecd404f41abf136b51cb3f6f00697c9bd21f4 | 2,677 | package com.fivium.scriptrunner2.script.parser;
import com.fivium.scriptrunner2.ex.ExInternal;
import com.fivium.scriptrunner2.ex.ExParser;
import com.fivium.scriptrunner2.script.parser.ScriptParser.EscapeDelimiter;
/**
* Segment of a SQL statement which is "escaped" in some way, i.e. part of a comment block or with... | 35.693333 | 123 | 0.732536 |
66fcdb4336280bce4ec6576e8b3855804de17e47 | 141 | package org.camunda.bpm.camel.spring.util;
public interface LogService {
public void debug(Object msg);
public void info(Object msg);
}
| 20.142857 | 42 | 0.758865 |
105c1b790c2518425081bdf3e719aa4531c8590a | 5,208 | package com.rei.ropeteam.discovery;
import static java.util.stream.Collectors.toList;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.io.IOException;
import java.net.InetAddress;
import java.net.ServerSocket;
import java.net.UnknownHostException;
import java.util.Ar... | 34.263158 | 102 | 0.615207 |
ba0b22e02b1add15fe0ff34848e3183050b9e34d | 6,618 | package org.ico.main;
import org.neo.smartcontract.framework.services.neo.TriggerType;
import org.neo.smartcontract.framework.services.system.ExecutionEngine;
import java.math.BigInteger;
import org.ico.token.NEP5Template;
import org.ico.token.TemplateToken;
import org.neo.smartcontract.framework.Helper;
import org.... | 32.441176 | 111 | 0.721064 |
1cfd75cfc25fc2119cc9e762f2c9cf65fde894b2 | 1,274 | /*
* ConnectionListener.java
* Created on 2011-08-24
*
* Copyright (c) Verax Systems 2011.
* All rights reserved.
*
* This software is furnished under a license. Use, duplication,
* disclosure and all other uses are restricted to the rights
* specified in the written license agreement.
*/
package ipmi.connec... | 31.073171 | 76 | 0.682104 |
f1c37af87468176cfe65bca8358f81d60b7118f2 | 1,767 | package org.bson.codecs.configuration;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.bson.codecs.Codec;
public final class CodecRegistries
{
public static CodecRegistry fromCodecs(Codec<?>... codecs)
{
return fromCodecs(Arrays.asList(code... | 11.78 | 86 | 0.678551 |
eef12d920ea2d54815d7d525ea56d6fe7e373497 | 490 | package com.zlsoft.pj.wx.api;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import tk.mybatis.spring.annotation.MapperScan;
/**
* 主启动类
* @author dp
* @version 1.0.0
* @date 2020-02-28 10:21
*/
@SpringBootApplication
@MapperScan("com.zlsoft... | 24.5 | 68 | 0.75102 |
97d13a5a923c16055d2f88bfc150a06c34ce5a7e | 775 | package com.uchicom.h2m;
import java.sql.SQLException;
import org.h2.tools.Server;
public class TcpServerMain {
private static Server tcpServer;
private static boolean alive ;
public static void main(String[] args) {
try {
tcpServer = Server.createTcpServer(args).start();
System.out.println("t... | 21.527778 | 53 | 0.646452 |
90dca48441c16998782e4c3a8fcc17292a303560 | 9,130 | /*
* Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved.
*
* OpenArkCompiler is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
*
* http://license.coscl.org.cn/MulanPSL2
*
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W... | 30.740741 | 150 | 0.571632 |
3d07a9a09078d9420f4e1d75badafe17802afcf6 | 109 | /**
*
*/
package org.geek.pipe.api;
/**
* @author haichuan
* 2012-2-2
*/
public enum RequestType {
}
| 8.384615 | 26 | 0.568807 |
46457afdc06b5104c533749674c7cb052a28ea3d | 972 | package com.felix.unbiz.json.rpc.server.bo;
import com.felix.unbiz.json.rpc.server.JsonRpcExporter;
/**
* ClassName: RpcRequest <br/>
* Function: JsonRpc请求逻辑对象
*
* @author wangxujin
*/
public class RpcRequest {
/**
* 服务接口以及实现定义
*/
private JsonRpcExporter exporter;
/**
... | 19.44 | 66 | 0.575103 |
ad37a53840a13b99c6ea353753bcb19a36ec6b99 | 835 | package Strategy;
import java.util.Random;
public class Penalty {
private Jogador jogador;
private int contagem = 0;
public Penalty(Jogador jogador) {
setStrategy(jogador);
}
public void setStrategy(Jogador jogador) {
this.jogador = jogador;
}
private int getLadoDefesa()... | 26.09375 | 88 | 0.621557 |
7191b0f45bc357252fb80de54dc3ed5d0b2e45a5 | 11,873 | package com.krupatek.courier.view.rate;
import com.krupatek.courier.model.Client;
import com.krupatek.courier.model.Courier;
import com.krupatek.courier.model.RateIntEntry;
import com.krupatek.courier.service.ClientService;
import com.krupatek.courier.service.CourierService;
import com.krupatek.courier.service.Network... | 39.70903 | 137 | 0.575676 |
928c6a6edec433481979334c951258e1d0c59d54 | 4,318 | package org.bouncycastle.crypto.generators;
import org.bouncycastle.crypto.AsymmetricCipherKeyPair;
import org.bouncycastle.crypto.AsymmetricCipherKeyPairGenerator;
import org.bouncycastle.crypto.KeyGenerationParameters;
import org.bouncycastle.crypto.params.RSAKeyGenerationParameters;
import org.bouncycastle.crypto.p... | 28.038961 | 100 | 0.54516 |
a156e2c852bf64bcdc2ac4e57c5d9d8850f8a1ca | 1,119 | package Utilities;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class DriverFactory {
public enum browserType {
FIREFOX,
CHROME,
IE, //not implemented
SAFARI //not implemented
... | 30.243243 | 92 | 0.593387 |
11f69acf541aa7a1d11353bf5a9cc1e738403c29 | 446 | package com.zeligsoft.base.zdl.staticapi.Constructs.impl;
import com.zeligsoft.base.zdl.staticapi.Constructs.DomainSpecialization;
public class DomainSpecializationImpl extends DomainNamedElementImpl implements
DomainSpecialization {
public DomainSpecializationImpl(org.eclipse.emf.ecore.EObject element) {
super(... | 27.875 | 79 | 0.804933 |
e3d8572a788046285f05c306706f798a4251630c | 6,404 | package uk.ac.ebi.subs.ena.action;
import org.apache.commons.io.IOUtils;
import org.apache.xmlbeans.XmlException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.oxm.Marshaller;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import uk.ac.ebi.ena.s... | 41.051282 | 168 | 0.686602 |
7a13893e436246e5d6ff9da02b4b1dd92cc615d2 | 2,781 | /*
* Copyright 2018 Timothy J Veil
*
* 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... | 29.903226 | 108 | 0.627472 |
c2e97960a43a9adc481987e8d6b506299ef50098 | 3,349 | /*
* Copyright 2014-present Facebook, 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... | 31.59434 | 96 | 0.741117 |
ce7ac32de73a893091cf7b922812e0c903d6f37e | 570 | package org.firstinspires.ftc.teamcode.robot.outreach;
import com.qualcomm.robotcore.hardware.DigitalChannel;
public class outreachTouchSensorCatapult {
private DigitalChannel catapultTouchSensor;
public outreachTouchSensorCatapult (DigitalChannel cTS) {
catapultTouchSensor = cTS;
catapultTo... | 24.782609 | 63 | 0.682456 |
c1c66b519f03b0de909de5ffdf4468b2e0a0173b | 2,359 | package org.iton.messenger.api;
import io.netty.buffer.ByteBuf;
import org.iton.messenger.core.TLContext;
import org.iton.messenger.core.TLObject;
import java.io.IOException;
import static org.iton.messenger.core.utils.StreamingUtils.*;
public class TLChatFull extends TLObject {
public static final int CLASS_ID... | 27.430233 | 116 | 0.676558 |
d3339eb3518f928b43c7bc9f85274ac84b5e07fe | 3,502 | package com.mobgen.halo.android.app.ui.chat;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Point;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.view.Display;
import android.view.SurfaceView;
import android.view.Window;
import android.view.Wind... | 28.942149 | 94 | 0.666191 |
5bd286ee86123fdebe6827d5744b5b930b3f8677 | 1,878 | package com.jcg.selenium;
import org.junit.Assert;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.MutableCapabilities;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeOptions;
public class GoogleSearchTest extends T... | 34.145455 | 100 | 0.683174 |
2d57c5b2ae9b7c9ce9fbb39d656dc907f7184b31 | 1,254 | package com.bx.erp.selenium.Promotion;
import static org.junit.Assert.*;
import static org.hamcrest.CoreMatchers.is;
import org.openqa.selenium.By;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
import com.bx.erp.selenium.BaseSeleniumTest;
public class Promotion_R2Test extends BaseSel... | 36.882353 | 140 | 0.745614 |
0ddff74600f77faa85f46538208d952e3831709d | 554 | package datas;
import java.text.ParseException;
import java.time.LocalDate;
import java.time.Month;
import java.time.Period;
public class ExercicioUm {
public static void main(String[] args) throws ParseException {
LocalDate a = LocalDate.now();
LocalDate b = LocalDate.of(a.getYear(), Month.of(9), 06);
Period... | 21.307692 | 70 | 0.68231 |
49bdd454d8b1192ef9aaf0c4c70a18e26e093553 | 6,426 | // The MIT License
//
// Copyright (c) 2004 Evren Sirin
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// rights to use, co... | 31.346341 | 106 | 0.620915 |
bc9a54888b3579b16f5655dbeaf18589efb43def | 2,001 | package com.chandrakanth.financesystem.entity;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import org.apache.commons.lang3.builder.ToStringBuilder;
/**
* This entity is the embeddable table having User Credentials
*/
@Embeddable
public class UserCredentialsId... | 23 | 84 | 0.712644 |
4ab6d2b366ef74f61b512e69465a52b6caf38db4 | 241 | package com.charles445.rltweaker.hook;
import java.util.concurrent.ConcurrentLinkedDeque;
public class HookMinecraft
{
public static <E> ConcurrentLinkedDeque<E> newConcurrentLinkedDeque()
{
return new ConcurrentLinkedDeque<E>();
}
}
| 20.083333 | 70 | 0.79668 |
dfa66327973eab6efa5ad667aef7a6dc7650820b | 4,550 | /*
* 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 ... | 40.265487 | 117 | 0.795165 |
c2dee87fb56fe7db02f7d53ad8e161ba00a2898e | 2,605 | package com.ongsat.blog.web.service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ongsat.blog.api.entity.vo.admin.blogroll.BlogrollSearchParamVO;
import com.ongsat.blog.api.response.Response;
import com.ongsat.blog.api... | 36.690141 | 82 | 0.723608 |
2b72c2b1cb7a80aac96b2fc656045509c974d66b | 478 | import ognl.MemberAccess;
import java.lang.reflect.Member;
import java.util.Map;
public class DefaultMemberAccess implements MemberAccess {
@Override
public Object setup(Map map, Object o, Member member, String s) {
return null;
}
@Override
public void restore(Map map, Object o, Member me... | 21.727273 | 80 | 0.679916 |
45d5c2817fa950fffdf09e49287b3f749f0acccf | 482 | package de.unistuttgart.iste.rss.oo.hamstersimulator.internal.model.territory.command.specification;
import de.unistuttgart.iste.rss.oo.hamstersimulator.datatypes.Location;
abstract class AbstractTerritoryTileCommandSpecification {
protected final Location location;
public AbstractTerritoryTileCommandSpecif... | 26.777778 | 100 | 0.759336 |
2f910e6f7f189ddd9df79c8ffa1697df83616b42 | 1,854 | package M10Robot.util;
import M10Robot.cardModifiers.OverclockModifier;
import M10Robot.cards.interfaces.CannotOverclock;
import basemod.helpers.CardModifierManager;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.evacipated.cardcrawl.modthespire.lib.SpirePatch;
imp... | 45.219512 | 246 | 0.747033 |
87bfe15b45d8391aa2b86bf6b34f8501ccde2976 | 425 | package com.citytechinc.cq.component.touchuidialog.widget.autocomplete.values;
import com.citytechinc.cq.component.touchuidialog.AbstractTouchUIDialogElement;
import com.citytechinc.cq.component.touchuidialog.TouchUIDialogElementParameters;
public class AutoCompleteValues extends AbstractTouchUIDialogElement {
p... | 35.416667 | 81 | 0.842353 |
99bdc291e4235a980a4dd4026e8e5f88cd92b923 | 5,089 | /*
* Copyright (c) 2016, 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.apache.org... | 48.932692 | 95 | 0.759285 |
304cbc91e410c7b08308378b12e36464fbd80e92 | 21,797 | package cn.com.king.web.action.log;
import java.util.List;
import java.util.Map;
import javax.sql.DataSource;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanNameAware;
import org.springframework.context.ApplicationContext;
import org.springframework.context.Ap... | 31.272597 | 193 | 0.52521 |
85647f3747aab50c586fb68a5b16118d34aaff63 | 2,467 | /**
* Licensed to jclouds, Inc. (jclouds) under one or more
* contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. jclouds licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use ... | 37.953846 | 117 | 0.736927 |
db8cb6a6d387b819375b326952ae99985dedf2fc | 914 | package com.freeter.modules.cart.service.impl;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.freeter.common.utils.PageUtils;
im... | 31.517241 | 94 | 0.754923 |
3bab80effd768b5ab40c25755a53dba4fb03a0cf | 572 | package com.fc.v2.course.dao;
import com.fc.v2.course.domain.WbCoursekindDO;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
/**
*
* @author whw
* @email 1992lcg@163.com
* @date 2021-06-01 01:02:54
*/
@Mapper
public interface WbCoursekindDao {
WbCoursekindDO get(Int... | 17.333333 | 51 | 0.730769 |
96d0269dfc64e7a6653d27c79417887af2306b0c | 1,374 | package steps;
import static org.junit.Assert.assertEquals;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import io.cucumber.java.pt.Então;
import io.cucumber.java.pt.Quando;
import setup.Configuracao;
public class CasoDeTesteDoisSteps {
WebElement conteudoDesejado;
String tituloDesej... | 27.48 | 98 | 0.766376 |
b2f004f8299608378a81970d4c85d178437b8ece | 268 | package cn.glogs.activeauth.iamcore.exception;
public class HTTP404Exception extends HTTPException {
public HTTP404Exception(Throwable cause) {
super(cause.getMessage(), cause);
}
public HTTP404Exception(String msg) {
super(msg);
}
}
| 22.333333 | 53 | 0.697761 |
bd3bbc8d9b9469441244ac479bd242436f19511d | 7,039 | package com.example.suyashl.WhenWeMeetAgain;
/**
* Created by Ranjan on 24-01-2015.
*/
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlit... | 31.850679 | 114 | 0.603921 |
bfe7b0249f8cc4ac04315332849a242166ee7f5d | 14,104 | package uk.gov.pay.api.resources.directdebit;
import com.google.common.collect.ImmutableMap;
import io.restassured.response.ValidatableResponse;
import junitparams.JUnitParamsRunner;
import junitparams.Parameters;
import org.apache.commons.lang3.RandomStringUtils;
import org.apache.http.HttpStatus;
import org.hamcrest... | 50.014184 | 193 | 0.608125 |
4bf353b7490b4a700458631719c6a9125531797d | 3,750 | package drzhark.mocreatures.entity.ambient;
import drzhark.mocreatures.MoCreatures;
import drzhark.mocreatures.entity.MoCEntityAmbient;
import drzhark.mocreatures.entity.ai.EntityAIWanderMoC2;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityCreature;
import net.minecraft.entity.EntityLivingBase;
i... | 26.408451 | 185 | 0.701333 |
ea68beca7048fa3cf2f7f35fbe89502b78d26845 | 1,220 | package ru.job4j.collections;
import org.junit.Test;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
public class NotifyAccountTest {
@Test
public void whenNoDups() {
HashSet<Account> setOfAccs = new Hash... | 29.756098 | 61 | 0.690984 |
b03299bf5b33c65a9ce616b9c0d7b078b87ce072 | 597 | package router.client.api2;
import java.util.Objects;
import javax.annotation.Nonnull;
class OnLeaveCallbackAsyncAdapter
implements OnLeaveCallbackAsync
{
private final OnLeaveCallback _callback;
OnLeaveCallbackAsyncAdapter( @Nonnull final OnLeaveCallback callback )
{
_callback = Objects.requireNonNull( ... | 23.88 | 72 | 0.708543 |
41e83d09d4c7f8c86f07e44fd38d100eff4ea823 | 3,048 | package com.ant.auto.core;
import java.io.File;
import java.util.HashMap;
import java.util.Map;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;
import org.openqa.selenium.firefox.FirefoxBinary;
import org.openqa.selenium.firefox.Fi... | 32.084211 | 106 | 0.688976 |
f4364e2fc92a45a0b4420d13732315d0fd1ce282 | 1,057 | package webserver.model.dao;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.... | 25.780488 | 68 | 0.733207 |
c6942fcb96b6c21949a07eaee1594ce4759b9dd0 | 5,539 | /*
* JTok
* A configurable tokenizer implemented in Java
*
* (C) 2003 - 2014 DFKI Language Technology Lab http://www.dfki.de/lt
* Author: Joerg Steffen, steffen@dfki.de
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Lice... | 22.608163 | 100 | 0.61058 |
4507b028f4c88d1e92e0319d3c3ccb265259b47f | 2,513 | package net.futureclient.asm.transformer.util;
import com.google.common.collect.ImmutableMap;
import org.objectweb.asm.Type;
import org.objectweb.asm.tree.AnnotationNode;
import org.objectweb.asm.tree.ClassNode;
import java.lang.annotation.Annotation;
import java.util.HashMap;
import java.util.Iterator;
import java.u... | 35.394366 | 134 | 0.651015 |
44467ab43cc8166dc38dfd8ba84d997d8223b3fe | 11,188 | package us.dot.its.jpo.ode.traveler;
import org.json.JSONObject;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ArrayNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import us.dot.its.jpo.ode.OdeProperties;
import us.dot.its.jpo.ode.context.AppContext;
import u... | 45.112903 | 139 | 0.698427 |
bb53d4040818afc1c23dff67acad38212214d8ca | 3,881 | package gov.hhs.cms.bluebutton.texttofhir;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
import java.nio.file.Path;
import java.time.ZonedDateTime;
import java.util.Arrays;
import java.util.List;
import org.hl7.fhir.dstu21.model.Bundle;
import org.hl7.fhir.dstu21.model... | 35.281818 | 104 | 0.719145 |
262f077b9014f03cc663cc8a81326a62f67f8eb3 | 1,708 | package com.VocetSoft.ChatApp;
import java.util.Scanner;
import com.VocetSoft.Client.Client;
import com.VocetSoft.Server.Server;
public class Main {
public static void main(String[] args)
{
String cmd = null;
Scanner scanner = new Scanner(System.in);
showMsg("Choose 'Server' or 'Client'");... | 25.878788 | 55 | 0.484192 |
fc8fc591c94d0c142462def1ac67e8c8bdbfe7db | 3,036 | package com.etuspace.firebase.example.fireeats.java.LabFragments;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View... | 29.192308 | 104 | 0.669631 |
fb1694b44d278b2093dd8990af737034cc18ebb7 | 1,281 | package org.songzxdev.leetcode.week05;
//你是一个专业的小偷,计划偷窃沿街的房屋。每间房内都藏有一定的现金,影响你偷窃的唯一制约因素就是相邻的房屋装有相互连通的防盗系统,如果两间相邻的房屋在同一晚上
//被小偷闯入,系统会自动报警。
//
// 给定一个代表每个房屋存放金额的非负整数数组,计算你在不触动警报装置的情况下,能够偷窃到的最高金额。
//
// 示例 1:
//
// 输入: [1,2,3,1]
//输出: 4
//解释: 偷窃 1 号房屋 (金额 = 1) ,然后偷窃 3 号房屋 (金额 = 3)。
// 偷窃到的最高金额 = 1 + 3 = 4 。
//
// 示例 2... | 26.142857 | 80 | 0.525371 |
cedf3d177331383ff92cee52e57fe5df9d82f097 | 1,931 | /**
* Copyright 2018 Nikita Koksharov
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 30.171875 | 75 | 0.593993 |
6ba37d3d93a40ad07a700d42e2a69fbbc24b695f | 10,796 | package org.infinispan.lock.singlelock;
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertTrue;
import static org.testng.Assert.fail;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
import javax.transaction.HeuristicMixedException;
import javax.transaction.... | 39.258182 | 153 | 0.733235 |
3b3ac7b3826cd08ee968ffd654a859377850edfe | 1,346 | package nl.altindag.ssl.trustmanager;
import javax.net.ssl.X509ExtendedTrustManager;
import javax.net.ssl.X509TrustManager;
import java.security.cert.CertificateException;
import java.util.ArrayList;
import java.util.List;
/**
* <strong>NOTE:</strong>
* Please don't use this class directly as it is part of the inte... | 34.512821 | 122 | 0.731798 |
ede3ed4fe10903f430da2c8cd885c5998d169f77 | 4,276 | package com.synectiks.procurement.business.service;
import static org.assertj.core.api.Assertions.assertThat;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Optional;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.junit.... | 28.697987 | 91 | 0.766137 |
b2c35f71119a6ab6fb27f7d4d366a77d66db6722 | 3,411 | package net.oschina.ecust.team.fragment;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import net.oschina.ecust.R;
import net.oschina.ecust.api.remote.OSChinaTeamApi;
import net.oschina.ecust.base.BaseListFragment;
import net.oschina.ecust.base.ListBaseAdapter;
import net.osch... | 30.455357 | 101 | 0.688068 |
2543bb64a55b151ecaf7ca05aa178cba0c53e0d6 | 1,404 | package io.dropwizard.metrics.jdbi;
import org.skife.jdbi.v2.StatementContext;
import org.skife.jdbi.v2.TimingCollector;
import io.dropwizard.metrics.jdbi.strategies.SmartNameStrategy;
import io.dropwizard.metrics.jdbi.strategies.StatementNameStrategy;
import io.dropwizard.metrics.MetricRegistry;
import io.dropwizar... | 33.428571 | 96 | 0.754274 |
7465755fd8b09b4dec10dea7562bb9ad97e93b48 | 457 | package it.unibz.inf.ontop.exception;
/**
* Thrown when loading the OBDA specification
*
* To be specialized
*
*/
public class OBDASpecificationException extends Exception {
protected OBDASpecificationException(String message) {
super(message);
}
protected OBDASpecificationException(Exceptio... | 19.869565 | 70 | 0.691466 |
ee8bb795b0459fea03c28507cbf967b057d793ff | 2,217 | /*
* Original author: Daniel Jaschob <djaschob .at. uw.edu>
*
* Copyright 2018 University of Washington - Seattle, WA
*
* 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
*
* ... | 23.83871 | 126 | 0.7023 |
90dd5dc0e9f8587006f83789aaacd794130f2274 | 8,261 | /*
* Copyright (C) 2014 Indeed 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 ... | 29.190813 | 119 | 0.579712 |
e8f13fdbedd66e8d697ac5f6f1ffc0cc8d435d3d | 1,218 | package net.gitsaibot.af;
import net.gitsaibot.af.AfProvider.AfWidgets;
import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import android.content.ComponentName;
import android.content.ContentUris;
import android.content.Context;
import android.content.Intent;
public class AfWidget ... | 29 | 73 | 0.770936 |
4a73e331ee37727903c453f9f9fd8eacfc639f34 | 400 | package com.teamwill.rmkpro.service.mapper;
import com.teamwill.rmkpro.domain.Vehicle;
import com.teamwill.rmkpro.service.dto.VehicleDTO;
import org.mapstruct.Mapper;
/**
* Mapper for the entity {@link Vehicle} and its DTO called {@link VehicleDTO}.
*/
@Mapper
public interface VehicleMapper {
VehicleDTO mapEnt... | 22.222222 | 79 | 0.7725 |
83bfc9fd211149b76f5ddd90577ad91c0b71f12c | 952 | package org.mlaptev.otus;
import static org.junit.jupiter.api.Assertions.assertThrows;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
public class SubListTest {
private MyArrayList<Integer> myArrayList;
@BeforeEach
void setup() {
myArrayList = new MyArrayList<>();
}
@Tes... | 24.410256 | 84 | 0.72479 |
bb976e6f879d506ad7c7692f5ec83d916251fa3c | 8,768 | package org.codehaus.groovy.tools;
import org.codehaus.groovy.classgen.BytecodeHelper;
import org.codehaus.groovy.reflection.CachedClass;
import org.codehaus.groovy.reflection.CachedMethod;
import org.codehaus.groovy.reflection.ReflectionCache;
import org.codehaus.groovy.runtime.DefaultGroovyMethods;
import org.object... | 43.192118 | 156 | 0.552806 |
31083521ed8804a291c67c4c23dcf4757de31fae | 2,078 | package com.github.tusharepro.core.entity;
import lombok.Data;
import com.github.tusharepro.core.bean.FundBasic;
import javax.persistence.*;
import java.time.LocalDate;
/**
* 公募基金列表
* https://tushare.pro/document/2?doc_id=19
*/
@Data
@Entity
@Table(name = "fund_basic")
public class FundBasicEntity implements Fund... | 46.177778 | 83 | 0.691049 |
bbd4eaef85f245ac0f48455b00d60c28a181ff41 | 3,939 | package com.google.speech.tools.voxetta.services;
import com.google.appengine.api.datastore.DatastoreFailureException;
import com.google.appengine.api.datastore.DatastoreService;
import com.google.appengine.api.datastore.Entity;
import com.google.appengine.api.datastore.FetchOptions;
import com.google.appengine.api.da... | 36.137615 | 106 | 0.741813 |
0974d4f1aa8744c5d84657fdad197f59fe73f4a9 | 5,106 | /*
* Copyright 2019 Johnny850807
*
* 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 l... | 37.544118 | 102 | 0.626714 |
e8264f6ac6e56ff0fa1f5d3e9cac3472712d1dbc | 4,443 | //Author: Timothy van der Graaff
package views;
import java.util.ArrayList;
import utilities.Find_and_replace;
public class Show_For_Sale_Items {
//global variables
public static ArrayList<String> for_sale_categories = new ArrayList<>();
public static ArrayList<ArrayList<String>> for_sale_i... | 35.544 | 159 | 0.453297 |
5938d070be22e55492dc67a84a4f98673752cd4d | 7,579 | package com.simon.core.animationtools.animator;
import android.animation.Keyframe;
import android.animation.ObjectAnimator;
import android.animation.PropertyValuesHolder;
import android.util.Log;
import android.util.Property;
import android.view.animation.Animation;
import android.view.animation.Interpolator;
import ... | 31.844538 | 99 | 0.643489 |
26e0af038698a4992716474de3b7cd6d1aa1ecac | 1,670 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See License.txt in the repository root.
/*
* This file was automatically generated by com.microsoft.tfs.core.ws.generator.Generator
* from the /complexType.vm template.
*/
package ms.tfs.versioncontrol.clientservices._03;
import c... | 24.202899 | 89 | 0.71497 |
79895aaaee23e0a6c6e27b7ca2d42f0cc26dc01a | 484 | package arcrow.contentium.blocks;
import arcrow.contentium.core.utils.Utils;
import arcrow.contentium.lib.Reference;
import net.minecraft.block.BlockBush;
import net.minecraft.creativetab.CreativeTabs;
public class LilyValley extends BlockBush {
public LilyValley() {
this.setHardness(0F);
this.setCreativeTab(... | 23.047619 | 69 | 0.799587 |
c19ec1447d3d039510e1ff4fbb88c83bd6d87f14 | 496 | package com.ianprime0509.jsonrecipe.server.data;
import org.apache.commons.math3.fraction.Fraction;
import org.bson.Document;
import org.springframework.core.convert.converter.Converter;
/** A converter to read {@link Fraction} objects from a Mongo document. */
public class FractionReadConverter implements Converter<... | 35.428571 | 90 | 0.788306 |
03194c897e8c3751e88c0453578fb7e3b833be78 | 14,008 | /**
* AvaFileForm.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.2.1 Jun 14, 2005 (09:15:57 EDT) WSDL2Java emitter.
*/
package com.avalara.avatax.services.account;
public class AvaFileForm implements java.io.Serializable {
private int avaFileFormId;
private java.lang.String formN... | 32.351039 | 125 | 0.611365 |
3c6b20f1e4718ded6027e72bc8c09d1082a11977 | 6,316 | /*
* 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.987654 | 98 | 0.70741 |
dda141eab4a3a36bf2c3567e155f6d10af7603de | 2,102 | /*
* Weblounge: Web Content Management System
* Copyright (c) 2003 - 2011 The Weblounge Team
* http://entwinemedia.com/weblounge
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundat... | 26.607595 | 83 | 0.693149 |
31092f4569a0d9c358a089c936bd2f1d03d4f18d | 1,718 |
package OctopusConsortium.DosService1_5;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for contactType.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>... | 23.534247 | 95 | 0.619907 |
9cd93898c42125e1413d9cb61481ea4c7a22bb7d | 1,249 | package com.vladsch.flexmark.ext.resizable.image;
import com.vladsch.flexmark.util.ast.DoNotDecorate;
import com.vladsch.flexmark.util.ast.Node;
import com.vladsch.flexmark.util.sequence.BasedSequence;
import org.jetbrains.annotations.NotNull;
public class ResizableImage extends Node implements DoNotDecorate {
pr... | 28.386364 | 112 | 0.69976 |
89bf3bc3d208f2c984fc50cf9c9a80514a22f8de | 5,405 | package io.cattle.platform.servicediscovery.deployment.impl;
import io.cattle.platform.core.constants.CommonStatesConstants;
import io.cattle.platform.core.constants.InstanceConstants;
import io.cattle.platform.core.model.Instance;
import io.cattle.platform.core.model.Service;
import io.cattle.platform.core.model.Serv... | 42.559055 | 123 | 0.701943 |
bef2a4c4bc4f146cb2750332d5ea5d0ce2ab243d | 2,338 | /*
* Copyright 2022 EPAM Systems.
*
* 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 t... | 43.296296 | 112 | 0.763901 |
6af3487d0b20219fa40cee716d4af16948381bec | 3,520 | /*
* Copyright 2015-2018 Canoo Engineering AG.
*
* 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 la... | 31.711712 | 188 | 0.724432 |
4f5b50e74b49340dd550142271b558c5a058b3c2 | 189 | package io.zhenyed;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface UserMapper extends BaseMapper<User> {
}
| 18.9 | 55 | 0.814815 |
7fc243f11b6449eb30a9641e095ee4eaedb52a24 | 1,258 | package com.github.swissquote.carnotzet.maven.plugin;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Res... | 33.105263 | 131 | 0.779809 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.