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 |
|---|---|---|---|---|---|
29469ff70192173ed1ea09d494f8fd30c6782dbd | 2,793 | package life.catalogue.es.nu.suggest;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import org.elasticsearch.client.RestClient;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.google.common.annotations.VisibleForTesting;
... | 38.791667 | 111 | 0.7773 |
ce19356f8628cff9541153c149bdd1750d6fd450 | 9,607 | /*
* Copyright (c) 2016-2019 VMware, Inc. All Rights Reserved.
*
* This product is licensed to you under the Apache License, Version 2.0 (the "License").
* You may not use this product except in compliance with the License.
*
* This product may include a number of subcomponents with separate copyright notices
* ... | 40.535865 | 133 | 0.728427 |
020baa2f40b2801fa3e303e4ddfe658b34f0fe29 | 1,727 | package org.openntf.conference.graph;
import org.openntf.domino.graph2.annotations.AdjacencyUnique;
import org.openntf.domino.graph2.annotations.IncidenceUnique;
import org.openntf.domino.graph2.annotations.TypedProperty;
import org.openntf.domino.graph2.builtin.DEdgeFrame;
import org.openntf.domino.graph2.built... | 31.4 | 68 | 0.776491 |
7510369bda01652a8c4b843ba9ad0c66f552c422 | 6,230 | package com.cordys.uiunit.eastwind.designtime;
import org.junit.Test;
import com.cordys.cm.uiunit.elements.cordys.ITree;
import com.cordys.cm.uiunit.elements.cordys.ITreeItem;
import com.cordys.cm.uiunit.elements.html.IFrame;
import com.cordys.cm.uiunit.exceptions.UIUnitException;
import com.cordys.cm.uiunit.... | 54.649123 | 174 | 0.791011 |
00a8348ea6a13ed1eaa6c2e8db393f96a8708778 | 3,340 | /*
* Copyright 2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" ... | 35.531915 | 135 | 0.738623 |
3a885324b70c0d923e0e36724da9cce4f2a292e5 | 450 | package br.com.pandox.nursery;
import br.com.pandox.nursery.view.rest.Link;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import java.util.List;
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public abstract... | 22.5 | 61 | 0.788889 |
05e2cc621d98b2b9ba899495428688889c5d9626 | 4,338 | package com.fanaticaltest.datadriventest.models;
import java.util.ArrayList;
import java.util.List;
public class Scenario {
private Integer id;
private String name;
private String description;
private List<GherkinsTag> gherkinsTags;
private List<Step> steps;
private PythonDependencies pythonD... | 23.835165 | 79 | 0.568234 |
0382b8b545c33305060407052ffa31ee0b914cbc | 2,329 | package io.renren.modules.derive.controller;
import java.util.Arrays;
import java.util.Map;
import io.renren.common.validator.ValidatorUtils;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.Path... | 25.043011 | 62 | 0.689137 |
7b81ea96fd9ba22f7c4c738824436b27fac32e4f | 1,851 | package com.nhl.dflib.series;
import com.nhl.dflib.DoubleSeries;
import com.nhl.dflib.Series;
public class DoubleSingleValueSeries extends DoubleBaseSeries {
private final double value;
private final int size;
public DoubleSingleValueSeries(double value, int size) {
this.value = value;
t... | 21.776471 | 83 | 0.599136 |
051573f9250b734f28b4198096f3cf7ff1e3d667 | 8,765 | package actions;
import actions.commands.AddToFavoriteCommand;
import actions.commands.AddToSeenCommand;
import actions.commands.RateCommand;
import actions.queries.ActorQuery;
import actions.queries.MovieQuery;
import actions.queries.ShowQuery;
import actions.queries.UserQuery;
import actions.recommendations.BestUnse... | 37.297872 | 87 | 0.663662 |
86db1bea96facec28add666fec0c7736c428ff74 | 20,512 | /*******************************************************************************
* Copyright (c) 2000, 2010 IBM Corporation 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 distribution... | 36.112676 | 130 | 0.688768 |
a491f33fa3276d53a8407e67eef8ec683a1325b8 | 7,818 | /*
MIT License
https://opensource.org/licenses/MIT
Copyright 2020 Lukasz Machowski
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 ... | 57.911111 | 461 | 0.718214 |
3fab58b8c48c87e7652247b6e65536c6f6a3f134 | 360 | /**
* remove
*/
public class Testelimpa {
public static void main(String[] args) {
Genics<String> vetor = new Genics<String>();
vetor.adiciona("joão");
vetor.adiciona("maria");
vetor.adiciona("fred");
System.out.println(vetor);
vetor.limpa();
... | 20 | 52 | 0.536111 |
7cf99743a1d8609f6b189668c5cc058107294b5c | 395 | package com.p2pgate.vk_gate.service.gateways;
import com.p2pgate.lib.domain.PayAccept;
import com.p2pgate.vk_gate.rest.exception.PayApiException;
/**
*
* Created by Олег on 20.09.2019.
*/
public interface GateService {
String refillWalletConfirm(String md, String PaRes, String payment_id) throws PayApiExcep... | 23.235294 | 98 | 0.782278 |
0913c02b0f485730f23325186727e072eaa6d48c | 1,398 | package com.nmfzone.app.model;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
imp... | 17.259259 | 74 | 0.61588 |
287c953e82d8c95326b4bd9e1c6a37231db01992 | 1,043 | package com.vpr.server.security;
import javax.crypto.SecretKeyFactory;
import javax.crypto.spec.PBEKeySpec;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import java.security.spec.InvalidKeySpecException;
import java.security.spec.KeySpec;
public class Hasher {
public static b... | 35.965517 | 126 | 0.718121 |
23aaca61d9b519fdbbfd5f343ac0a9df1c4940b0 | 3,938 | /**
* Copyright (C) 2014 Karlsruhe Institute of Technology
*
*
* 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... | 43.755556 | 241 | 0.718385 |
214ccaaf350ab97af258fe7c7946a5d3adcc02ce | 3,824 | package com.bloomhousemc.thermus.common.items;
import com.bloomhousemc.thermus.common.blocks.boiler.BoilerBlock;
import com.bloomhousemc.thermus.common.blocks.boiler.BoilerBlockEntity;
import com.bloomhousemc.thermus.common.components.ITemperature;
import net.minecraft.block.BlockState;
import net.minecraft.client.ite... | 39.42268 | 115 | 0.644613 |
c8716b8c00c008d646b43a99ec35f9c0ce76a646 | 2,306 | package com.tesco.crypt.kmip.operation.model.messages.getattributes;
import com.tesco.crypt.kmip.operation.model.attributes.Attributes;
import com.tesco.crypt.kmip.operation.model.messages.ResponseBatchItem;
import com.tesco.crypt.kmip.ttlv.model.Structure;
import com.tesco.crypt.kmip.ttlv.model.TTLV;
import com.tesco... | 34.939394 | 96 | 0.649176 |
9b5beeff610d84eaf21d14e727592d23ddd3da56 | 4,186 | /*
* 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 view.animal;
import controller.AnimalController;
import controller.ClienteController;
import java.util.ArrayList;
import javax... | 37.044248 | 124 | 0.682991 |
3016bf5fe9d4e0363e28f2bc3c34f660aa83695c | 1,972 | package com.njqg.orchard.library_core.utils;
import android.content.Context;
import android.util.Log;
/**
* description:
* author: hans
* date: 2017/7/25
* e-mail: hxxx1992@163.com
*/
public class LogUtils {
public static void e(Context context, String log) {
if (LibConstant.IS_DEBUG_MODE) {
... | 23.47619 | 63 | 0.461968 |
a4abff4a809a28e348c4d86a2bbc38aa50ef3a3a | 271 | package contagionJVM.NWNX;
public class VariableType {
public static final int IntVar = 1;
public static final int FloatVar = 2;
public static final int StringVar = 3;
public static final int ObjectVar = 4;
public static final int LocationVar = 5;
}
| 27.1 | 44 | 0.715867 |
96f5254b496aa54c066c14cbcc59e337698a7491 | 2,226 | package collections.core.hierarchy;
import java.util.*;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.PriorityBlockingQueue;
public class Hierarchy {
public static void main(String[] args) {
// the super interface
Collecti... | 34.78125 | 168 | 0.701258 |
6075a7c627d52f3417ab978875be25b5c5172be1 | 11,075 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package se.semmi.midiassistant;
/*
* MidiInDump.java
*
* This file is part of jsresources.org
*/
/*
* Copyright (c) 1999 - 2001 by Matthias Pfisterer
* Copyright (c) 2003 by Florian Bomers
* All rights reserved.... | 30.935754 | 143 | 0.591061 |
98879909dfac413d7fe3bb191584ae146d8ae34a | 322 | package com.example.jpaexamples.example06.fetch.repository;
import com.example.jpaexamples.example06.fetch.entity.User06;
import com.example.jpaexamples.repository.BaseRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface User06Repository extends BaseRepository<User06, Integer> {
... | 32.2 | 75 | 0.854037 |
9b028f9e508435e6ecd8fe1a6ea72df1db6c2722 | 29,027 | package de.kaffeemitkoffein.tinyweatherforecastgermany;
/**
* IMPORTANT NOTE: this class is work in progress and not used yet. It will unify all the single ContentProviders.
*/
import android.content.*;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQL... | 51.01406 | 146 | 0.633927 |
d51561377fbfbdcd63ac751ab56fc3e77f20c8f9 | 201 | // extends Exception para que la clase NotaMal herede de Exception
public class NotaMal extends Exception{
public NotaMal() {
super("Excepcion definida por el usuario, nota incorrecta");
}
}
| 28.714286 | 67 | 0.741294 |
2d5a8af022658d85a7bfae5dee6a78bf0cc66f65 | 1,456 | package com.netease.yunxin.nertc.nertcvoiceroom.model.custom;
import com.netease.yunxin.nertc.nertcvoiceroom.util.JsonUtil;
import com.netease.nimlib.sdk.msg.attachment.MsgAttachment;
import com.netease.nimlib.sdk.msg.attachment.MsgAttachmentParser;
import org.json.JSONException;
import org.json.JSONObject;
public c... | 28.54902 | 65 | 0.622253 |
847bd8d3e875b9ba66ed88c2d11f43ce810da219 | 984 | package com.itgacl.magic4j.modules.sys.excel;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.itgacl.magic4j.libcom... | 24.6 | 76 | 0.760163 |
6210bbb9b4140c3ff1a511239a86a4dbb7ae9717 | 1,020 | package org.wickedsource.coderadar.score.rest.scoreprofile;
import com.github.springtestdbunit.annotation.DatabaseSetup;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.wickedsource.coderadar.testframework.category.ControllerTest;
import org.wickedsource.coderadar.testframework.tem... | 26.842105 | 99 | 0.766667 |
9e88bd111b64571f395c6f9ef69a94ee17d50205 | 2,464 | package net.fishtron.apps.cellplaza.v2;
import net.fishtron.gen.Gen;
import net.fishtron.eval.EvalLib;
import net.fishtron.trees.AppTree;
import net.fishtron.utils.AB;
import net.fishtron.utils.Checker;
import net.fishtron.utils.F;
import net.fishtron.utils.Log;
import org.json.JSONArray;
import org.json.JSONObject;
... | 32 | 99 | 0.652192 |
0e06a3e6eb308bcb07f3a3de38f496e0eac6424a | 12,541 | /**
* Xtreme Media Player a cross-platform media player.
* Copyright (C) 2005-2011 Besmir Beqiri
*
* This program 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 2
* of the License, or (... | 40.585761 | 122 | 0.709274 |
f142793e5c008899b598aefd5435da0fa9bce046 | 7,930 | package org.js4ms.io.channel;
/*
* #%L
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* MessageSource.java [org.js4ms.jsdk:io]
* %%
* Copyright (C) 2009 - 2014 Cisco Systems, Inc.
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compl... | 30.976563 | 90 | 0.564817 |
92d28b8dfe538bc9fbd3766002fa8ab2b8963214 | 2,549 | /* *******************************************************************************************************
Copyright (c) 2015 EXILANT Technologies Private Limited
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... | 45.517857 | 146 | 0.64339 |
822ac43ead698afe69629edf24920ea04234bd9a | 925 | /*
* Author: Stefan Andritoiu <stefan.andritoiu@intel.com>
* Copyright (c) 2015 Intel Corporation.
*
* This program and the accompanying materials are made available under the
* terms of the The MIT License which is available at
* https://opensource.org/licenses/MIT.
*
* SPDX-License-Identifier: MIT
*/
//NOT ... | 28.90625 | 76 | 0.71027 |
80076d268030f6b60b81a9b3f7578bf1d0cdf8fc | 1,348 | package com.example.demo.models;
public class WindSurfer {
private String mysails;
private double myweight;
private String experienceLevel;
private double location[];
private int sailOrBoard;
// Constructors
public WindSurfer() {}
public WindSurfer(double weight, St... | 18.465753 | 102 | 0.652077 |
40d0ea7853900e270af6a4b6d082dae8aa1ad463 | 383 | package uk.co.sleonard.unison;
/**
* The Interface UNISoNLogger.
*
* @author Stephen <github@leonarduk.com>
* @since v1.0.0
*
*/
public interface UNISoNLogger {
/**
* Alert.
*
* @param message
* the message
*/
public void alert(String message);
/**
* Log.
*
* @param message
* ... | 13.678571 | 41 | 0.579634 |
b5a572fa6b95541c275661573563e5cfaf673e94 | 1,886 | package com.zandgall.arvopia.utils;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Rectangle;
public class Chart {
double[] vals;
String[] components;
String name;
int x, y, width, height;
Slice[] slices;
public Chart(double[] vals, String[] components, Color[]... | 23.283951 | 117 | 0.635207 |
c16abf89157a7ca64ae63b7dfb0021c23a352491 | 410 | package com.data2.salmon.core.engine.intercept;
import lombok.extern.slf4j.Slf4j;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* @author data2
*/
@Slf4j
public class ParamsInterceptor implements CutPointInterceptor {
@Override
public void execute(Object obj) {
log.info("[{}] execu... | 20.5 | 108 | 0.709756 |
68dc393a6984f1f8fb9fd8404bef52b5db2b3bff | 62 | class List<T> {}
class Foo {
List<? extends <caret>>
} | 7.75 | 25 | 0.548387 |
4114b40df6885ba47d102af766537bcec56c97eb | 2,757 | package ch.yoursource.causationfinder.service;
import java.util.HashSet;
import java.util.Set;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.stereotype.Service;
import ch.yoursource.causation... | 31.329545 | 85 | 0.734857 |
aa134e8bb82e7d5ad340c63981e2d64801d7e325 | 291 | package com.example.designpattern.creationalpattern.factorypattern;
import android.util.Log;
public abstract class Plane {
protected double rate;
public abstract void getRate();
public void calculateBill(int units){
Log.i("Plane", String.valueOf(units*rate));
}
}
| 22.384615 | 67 | 0.725086 |
ba1955e4091c208dcadf06ebfc8c7a04f6842c7c | 566 | package cn.fxn.svm.core.ui.camera;
import com.yalantis.ucrop.UCrop;
/**
* @author:Matthew
* @date:2018/11/2
* @email:guocheng0816@163.com
* @func:请求码
*/
public class RequestCode {
/**
* 拍照
*/
public static final int TAKE_PHOTO=4;
/**
* 相册选择
*/
public static final int PICK_PHOT... | 16.171429 | 58 | 0.579505 |
9cf911f3bc657a18fe13e8e3ea01d9acbe50dbc4 | 756 | package network.exceptions;
/**
* Lost connection to server. Consistency cannot be maintained!
* This exception is thrown when a connection was previously successfully
* established but is now closed due to network partition or failure.
*
* @author CharlesXu
*/
public class SessionExpiredException extends Runt... | 25.2 | 80 | 0.727513 |
c8771b2da658070ed0c359bfb5a3bc68fa269905 | 4,982 | package info.bitrich.xchangestream.poloniex2;
import com.fasterxml.jackson.databind.ObjectMapper;
import info.bitrich.xchangestream.core.StreamingMarketDataService;
import info.bitrich.xchangestream.poloniex2.dto.*;
import info.bitrich.xchangestream.service.netty.StreamingObjectMapperHelper;
import io.reactivex.Observ... | 48.843137 | 125 | 0.650141 |
105977590c5534c91c66f51e65f6445dccf8b913 | 168 | package eu.midnightdust.visualoverhaul.util;
public class JukeboxPacketUpdate {
public static boolean invUpdate = true;
public static int playerUpdate = -1;
}
| 24 | 44 | 0.767857 |
6f0df04a8edcd39f505c664749876baa57b6d9c6 | 3,416 | package moe.langua.lab.melonpi;
import java.util.Properties;
import java.util.concurrent.atomic.AtomicInteger;
public class BootStrap {
static double result = 0D;
static AtomicInteger taskNumber = new AtomicInteger(0);
static final int CORES = Runtime.getRuntime().availableProcessors();
static final i... | 40.188235 | 123 | 0.636124 |
3daa7355998337ecbc8ebef4245cbdd1d9b36572 | 224 | package com.kbryant.quickcore.event;
import com.kbryant.quickcore.util.ApiException;
/**
* 返回结果回调接口
*
* @param <T>
*/
public interface RespEvent<T> {
void isOk(T t);
void isError(ApiException apiException);
}
| 14.933333 | 47 | 0.696429 |
5b28c27c9629e2904fca23bd6c40630991064b7c | 2,152 | package com.qtin.sexyvc.ui.fund.detail;
import com.jess.arms.di.scope.ActivityScope;
import com.jess.arms.mvp.BaseModel;
import com.qtin.sexyvc.mvp.model.api.cache.CacheManager;
import com.qtin.sexyvc.mvp.model.api.service.ServiceManager;
import com.qtin.sexyvc.ui.bean.BaseEntity;
import com.qtin.sexyvc.ui.bean.CodeEn... | 34.709677 | 145 | 0.734201 |
063b7ef0943844953a973d3a7a2daada8b20f931 | 123 | package com.raven.pattern.proxy.staticproxy;
public interface Human {
/**
* eat method
*/
void eat();
}
| 13.666667 | 44 | 0.601626 |
e7122936dedee278440c0eff04b653fabc60f40b | 6,045 | package de.eorg.cumulusgenius.client.View;
import com.google.gwt.user.client.ui.HTML;
import com.smartgwt.client.types.ListGridEditEvent;
import com.smartgwt.client.types.RowEndEditAction;
import com.smartgwt.client.widgets.Canvas;
import com.smartgwt.client.widgets.IButton;
import com.smartgwt.client.widgets.events.C... | 33.39779 | 168 | 0.75517 |
8d34478b52e8774d3d07c977e3273363e03eac00 | 46,774 | /**
* @author GHUANG
* @version 2019年12月28日 下午8:02:42
*
*/
package com.centricsoftware.commons.utils;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.regex.Matcher;... | 40.357204 | 166 | 0.401313 |
f82b297ab0283aab5e85cc9f8000edac57c303ac | 6,015 | /*
*
* * Copyright 2014 Orient Technologies LTD (info(at)orientechnologies.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.apa... | 33.049451 | 133 | 0.675312 |
216192a62cfc83ba504975092513c45360c3316b | 317 | package com.activeandroid.util;
import java.util.HashMap;
final class SQLiteUtils$1 extends HashMap<Class<?>, SQLiteUtils.SQLiteType>
{
}
/* Location: E:\Progs\Dev\Android\Decompile\apktool\zssq\zssq-dex2jar.jar
* Qualified Name: com.activeandroid.util.SQLiteUtils.1
* JD-Core Version: 0.6.0
*/ | 26.416667 | 83 | 0.722397 |
45d2c11386368f7d4707fe5c01efe47d637a04e4 | 231 | package com.funrep.lispinjava.errors;
import com.funrep.lispinjava.lispvalues.LispError;
public class ArgCountError extends LispError {
public ArgCountError() {
super("Argument count doesn't match the function.");
}
}
| 21 | 57 | 0.757576 |
8aea1d9d2e95b97f9464537fd11bb701fd48037e | 344 | package io.snice.networking.bundles.buffer;
import io.snice.buffer.Buffer;
import io.snice.buffer.Buffers;
import io.snice.networking.common.Connection;
public interface BufferConnection extends Connection<BufferEvent> {
void send(Buffer buffer);
default void send(final String buffer) {
send(Buffers... | 22.933333 | 67 | 0.752907 |
a79ae92a4af42830692250860aef44cfa881592e | 1,146 | package org.carlos_witek.back_to_the_future_iii;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
public class Application {
public static void main( String[] args ) {
printCurrentThreadName( "poin1" );
ExecutorService executorSe... | 25.466667 | 90 | 0.705934 |
86ccba52dc3226ad79b366331ddebb82a3c3cef4 | 4,054 | package org.jzy3d.emulgl.opengl;
import org.junit.Test;
import org.jzy3d.chart.Chart;
import org.jzy3d.chart.factories.EmulGLChartFactory;
import org.jzy3d.colors.Color;
import org.jzy3d.colors.ColorMapper;
import org.jzy3d.colors.colormaps.ColorMapRainbow;
import org.jzy3d.maths.Range;
import org.jzy3d.painters.IPain... | 30.02963 | 99 | 0.659102 |
18d04974ecef5041f18b567382587a6238935b9e | 2,392 | /*
* Copyright [2013-2021], Alibaba Group Holding Limited
*
* 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... | 37.375 | 121 | 0.61413 |
fcea561a042eb856e194448654217e55557339f2 | 779 | package com.tonels.temp.large;
import com.alibaba.excel.EasyExcel;
import com.tonels.core.large.LargeDataTest;
import org.junit.Ignore;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.FileInputStream;
/**
* @author Jiaju Zhuang
*/
@Ignore
public class TempLargeDataTes... | 28.851852 | 114 | 0.716303 |
0b48fcfcfb46b4400eb3fb478959ec92a1df0268 | 16,309 | /*
* Copyright (c) 2006-2017 DMDirc Developers
*
* 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, copy, modify, merge,... | 38.738717 | 119 | 0.694463 |
35a18c56246894fead2de6e47c9fc996033831b1 | 536 | //package org.launchcode.neighborgoods;
//@Configuration
//class WebApplicationConfig implements WebMvcConfigurer {
//
// // Create spring-managed object to allow the app to access our filter
// @Bean
// public AuthenticationFilter authenticationFilter() {
// return new AuthenticationFilter();
// }
... | 28.210526 | 75 | 0.69403 |
e822c92f6b7b99f9cda4056b14d04ab35df68bcc | 9,419 | package ru.job4j;
/**
* @author Sergey Volkov (rusobraz@mail.ru)
* @version $Id$
* @since 29.09.2018
*/
import ru.job4j.start.*;
import ru.job4j.models.Item;
import org.junit.Test;
import org.junit.Before;
import org.junit.After;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import static jav... | 54.445087 | 247 | 0.412252 |
fd6fcacdd8dd9b20cb7c8a8090690bef4b98a796 | 1,181 | package io.vertx.httpproxy.impl;
import io.vertx.core.MultiMap;
import io.vertx.core.buffer.Buffer;
import io.vertx.core.http.HttpHeaders;
import io.vertx.httpproxy.Body;
import io.vertx.httpproxy.ProxyResponse;
import java.util.Date;
class Resource {
final String absoluteUri;
final int statusCode;
final Mult... | 28.119048 | 107 | 0.740051 |
475b3b6f1bf4bf008f1b10f585e306952b009f41 | 2,694 | package com.kvtrades.simpleorderform;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclervie... | 32.853659 | 138 | 0.712695 |
d36cad2c1391b13a0fbc8ab9a944ca0adb040a9b | 5,642 | package user_interface;
import java.awt.Dimension;
import java.util.ArrayList;
import java.util.Map;
import java.util.Optional;
import java.util.ResourceBundle;
import cellsociety_team18.Simulation;
import cellsociety_team18.SimulationController;
import cellsociety_team18.State;
import graphic_elements.GraphicPolygon... | 28.639594 | 109 | 0.728111 |
a6469f9dcaa1db8daa9ff681aa905934daec1839 | 4,367 |
package com.github.sellersj.artifactchecker.model.owasp;
import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude... | 34.385827 | 120 | 0.627204 |
aaaf91129e3de74a1f25956fedad60c83255f733 | 1,389 | package testcases.junit;
import junit.framework.TestCase;
import org.junit.Test;
import java.util.*;
import testcases.*;
public class FieldTest extends TestCase {
RefField1<FieldTestClass> f1 = new RefField1<FieldTestClass>();
RefField2<FieldTestClass> f2 = new RefField2<FieldTestClass>();
@Test public v... | 24.368421 | 76 | 0.668107 |
8be70da347c7669203954758f050f98d9c9208d9 | 846 | package io.katharsis.core.internal.utils;
import io.katharsis.errorhandling.exception.KatharsisException;
/**
* Indicate an exception when accessing resource properties
*/
public class PropertyException extends KatharsisException {
private final Class<?> resourceClass;
private final String field;
publ... | 25.636364 | 85 | 0.686761 |
b46702652e5caee6b5dd746045425b9c8b59c384 | 2,627 | /*
* Copyright (c) 2014-2017 Neil Ellis
*
* 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 ... | 31.27381 | 126 | 0.65512 |
698246faea49043b7699ea90d21c0faef10bbf61 | 25,274 | /*******************************************************************************
* Copyright (c) 2000, 2013 IBM Corporation 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 distribution, an... | 29.839433 | 132 | 0.66701 |
b341f45a2da7638ef2627b3fa71c0df891fbc5d3 | 604 | package io.r3k.gamify9dotcom.services.challenge;
import io.r3k.gamify9dotcom.domain.ChallengeReponse;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
public abstract class AbstractChallenge {
protected final String name;
public AbstractChallenge(String name) {
thi... | 25.166667 | 87 | 0.778146 |
d9870df7ca3c1102c96f0849d62cf1467a0f8c4a | 3,128 | /*
* Copyright 2019 Patrik Karlström.
*
* 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... | 24.629921 | 114 | 0.606138 |
f90020d154765889100fbbf8522ab3b6637e9deb | 2,037 | package org.knowm.xchange.coinmarketcap.pro.v1.service.marketdata;
import static org.assertj.core.api.Assertions.assertThat;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import org.junit.Assume;
import org.junit.BeforeClass;
import org.junit.Test;
import org.knowm.xchange.Exchange;
import org... | 38.433962 | 94 | 0.796269 |
8ec68dfde771f25ae5bed2d61c18f9f12bd694c2 | 1,890 | package com.gfirem.elrosacruz;
import android.app.Application;
import android.util.Log;
import com.google.android.gms.analytics.GoogleAnalytics;
import com.google.android.gms.analytics.Tracker;
import org.acra.ACRA;
import org.acra.annotation.ReportsCrashes;
import uk.co.chrisjenx.calligraphy.CalligraphyConfig;
/*... | 30 | 116 | 0.655026 |
597834ddb06d48b08912ad301f7c707b26dceca4 | 302 | package com.reminiscence.reminiscence.error;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
@Controller
public class errorController {
@GetMapping("/error")
public String getError() {
return "error";
}
}
| 21.571429 | 59 | 0.715232 |
4232eacc7ee34a6b03091f16834d0381515177f6 | 3,173 | /*
* MIT License
*
* Copyright (c) 2020-present Cloudogu GmbH and Contributors
*
* 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 r... | 21.585034 | 81 | 0.595966 |
6cff9043de4a551659af27fb8ce55b1d1a4a3cd2 | 839 | /**
*
*/
package org.pjay.repository;
import org.pjay.entity.UserSecurityInfo;
import org.springframework.data.repository.CrudRepository;
/**
* @author vijayk
*
*/
public interface UserSecurityInfoRepository extends CrudRepository<UserSecurityInfo, Long> {
UserSecurityInfo getByUserName(String ... | 31.074074 | 173 | 0.733015 |
893cd048d27aefdcef0b0a614c138c5bbc286979 | 417 | package pl.altkom.asc.lab.micronaut.poc.policy.search.service.api.v1.queries.findpolicy.dto;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import java.time.LocalDate;
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class PolicyListItemDto {
private String number;
... | 23.166667 | 92 | 0.805755 |
861bbaed3c053d8fbec5228ab05aca3c27d8e901 | 1,117 | package upm.softwaredesign.finalproject.order;
import upm.softwaredesign.finalproject.model.Actor;
import upm.softwaredesign.finalproject.model.Product;
import java.util.Date;
import java.util.UUID;
public class Order {
private UUID id;
private UUID transactionGroupId;
private Actor sender;
priva... | 17.453125 | 64 | 0.648165 |
727fc5734dbfe17fa5df7f4d29636af87e28ccc4 | 1,992 | /*
* 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.888889 | 139 | 0.759036 |
350ef3e5bc351edc153a992866df65fda60f04eb | 2,325 | /*
* 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... | 23.019802 | 95 | 0.729892 |
b70c370906189b67869d54690023ac9673b63d95 | 2,982 | /*
* 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... | 30.121212 | 79 | 0.639168 |
ed12eb5a8e3fe4a7376b70edb1321e4c1f8c2494 | 2,460 | package cmps252.HW4_2.UnitTesting;
import static org.junit.jupiter.api.Assertions.*;
import java.io.FileNotFoundException;
import java.util.List;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import cmps252.HW4_2.... | 25.625 | 82 | 0.73252 |
51f025f1b5a3a56c93e923c9702296d6155e17aa | 3,020 | package com.boot.controller.lmcontroller;
import com.boot.constant.LexJSONResult;
import com.boot.pojo.Realcomment;
import com.boot.pojo.VideoComment;
import com.boot.service.VideoCommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import ja... | 39.220779 | 204 | 0.74702 |
b247b90fb41d92d680aee25dcb10204c6ff4bb48 | 945 | package com.yodiwo.plegma;
/**
* Created by ApiGenerator Tool (Java) on 28/08/2015 18:35:00.
*/
/**
* Active Port Keys Payload Informs Node of all currently active Ports (i.e. Ports that are connected and active in currently deployed graphs).
* Should be used to 1. supress events from inactive ports, allowing mor... | 27.794118 | 143 | 0.678307 |
2e5af66cee14fe89fdaf50f1a1a093a7c6a2e888 | 9,403 | /*
* Copyright (C) 2008 ZXing authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 28.843558 | 101 | 0.680634 |
2268c11fb4e7fa0a2414f2a80e8b64b55663e5c0 | 365 | package com.wfm.platform.dao;
import com.wfm.platform.entities.SysMenu;
public interface SysMenuMapper {
int deleteByPrimaryKey(String id);
int insert(SysMenu record);
int insertSelective(SysMenu record);
SysMenu selectByPrimaryKey(String id);
int updateByPrimaryKeySelective(SysMenu record);
... | 21.470588 | 52 | 0.764384 |
3e640af3613f6a74901ca85cd5b27cb629a42542 | 3,713 | package promise.app_base.databinding;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CheckedTextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.widget.AppCompatCheckBox;
import androidx.appcompa... | 36.762376 | 142 | 0.783194 |
215b6defc824c21d6e47d18057a3ee46fa602f4b | 2,367 | package seedu.knowitall.logic.commands;
import static seedu.knowitall.commons.core.Messages.MESSAGE_INVALID_COMMAND_OUTSIDE_FOLDER;
import static seedu.knowitall.logic.commands.CommandTestUtil.assertCommandFailure;
import static seedu.knowitall.logic.commands.CommandTestUtil.assertCommandSuccess;
import static seedu.k... | 45.519231 | 110 | 0.782847 |
1fe6089661232723bfd4046766f76042a756829f | 746 | package com.googlecode.yatspec.junit;
import static com.googlecode.yatspec.Creator.create;
import static java.lang.Class.forName;
import static java.lang.System.getProperty;
public class ParameterResolverFactory {
public static final String PARAMETER_RESOLVER = "yatspec.parameter.resolver";
public static vo... | 32.434783 | 110 | 0.731903 |
301c31c0da8b35dc350dfe8b9bbb43f62fcdb7cb | 551 | package io.github.u2ware.data.test.example06;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
@Entity
@Tabl... | 19.678571 | 54 | 0.767695 |
fc0389b8f501f98cdad1ac5c90e19019f5e9b0ec | 485 | package be.bitbox.traindelay.tracker.core.station;
import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
public class CountryTest {
@Test
public void translateFromBelgium() {
Country country = Country.translateFrom("be");
assertThat(country,... | 24.25 | 54 | 0.707216 |
c97dec38fdd6a1ff4b4e0dc52ab9ee10ba7903b3 | 5,946 | /*
* Copyright Debezium Authors.
*
* Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package io.debezium.relational.history;
import java.io.File;
import java.util.Map;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
impor... | 37.1625 | 114 | 0.628994 |
22aca6680936eb4ea031b431ae29a5d9fb2ef51f | 2,046 | // This file was generated by Mendix Studio Pro.
//
// WARNING: Only the following code will be retained when actions are regenerated:
// - the import list
// - the code between BEGIN USER CODE and END USER CODE
// - the code between BEGIN EXTRA CODE and END EXTRA CODE
// Other code you write will be lost the nex... | 34.1 | 139 | 0.756109 |
d40f1e84db6bd8601a1586962ce8d23fb94777bd | 382 | package com.kisin.product.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.kisin.product.entity.Product;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 产品 服务类
* </p>
*
* @author kisin
* @since 2019-11-21
*/
public interface ProductService extends IService<Produc... | 19.1 | 59 | 0.735602 |
cfca69fa6dba5fc895a134acb0a99b761550c632 | 956 | /**
*
*/
package com.strandls.species.pojo;
import java.util.List;
import com.strandls.traits.pojo.TraitsValuePair;
/**
* @author Abhishek Rudra
*
*
*/
public class SpeciesTrait {
private String CategoryName;
private List<TraitsValuePair> traitsValuePairList;
/**
*
*/
public SpeciesTrait() {
sup... | 17.703704 | 86 | 0.738494 |
75e36336eabbf67b48f5f31e8e435707a25dadbb | 3,943 | /*
* Copyright 2013-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 28.366906 | 84 | 0.73472 |
5b038920f9e9a54484cdab5edbb6abe1de5974a4 | 2,593 | package com.xiangzhurui.demo.drools.domain;
import java.io.Serializable;
import java.text.MessageFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.StringUtils;
import org.kie.api.io.ResourceType;
/**
* @author xiangzhurui
* @version 2018/... | 33.675325 | 144 | 0.705746 |
06c2a7b63dcc6cab04cc3eeff95ba52501a417fc | 752 | package cn.com.allunion.common.validation.bean.string;
import cn.com.allunion.common.validation.bean.AbstractValidation;
/**
* 字符串最小长度验证
* @author yang.jie
* @email yang.jie@all-union.com.cn
* @date 2016/5/26.
* @copyright <url>http://www.all-union.com.cn/</url>
*/
public class StringMinLength extends AbstractV... | 22.787879 | 77 | 0.630319 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.