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 |
|---|---|---|---|---|---|
f8e8d39e2f23c6134341c39bb80bf3a037755a5f | 514 | package com.allen.cap7.bean;
import org.springframework.stereotype.Component;
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
/**
* @author 周何圳 2020/4/5 新建
* @description
*/
@Component
public class Jeep {
public Jeep(){
System.out.println("Jeep...constructor...");
}
... | 17.724138 | 52 | 0.640078 |
84e660fb4ff6a3b453b846239ff6d7b639413324 | 807 | package saga.netflix.conductor.travelservice.controller;
import org.springframework.beans.factory.annotation.Qualifier;
import saga.netflix.conductor.travelservice.error.TravelException;
import saga.netflix.conductor.travelservice.model.RejectionReason;
import saga.netflix.conductor.travelservice.model.TripInformation... | 35.086957 | 91 | 0.831475 |
f35700d415201818cf1663b8aa23c1c182602105 | 1,550 | package net.miraclepvp.kitpvp.data.suffix;
import org.bukkit.Material;
import java.util.UUID;
public class Suffix {
private UUID uuid;
private String name;
private String suffix;
private Integer cost,sell;
private Material icon;
private Boolean buyable;
public Suffix(String name, String... | 17.41573 | 82 | 0.56129 |
3a6151de8d7e04f4a6f2ed649dccea6c60223466 | 6,495 | package nl.avans.sagrada.dao;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import nl.avans.sagrada.database.DBConnection;
import nl.avans.sagrada.database.Query;
import nl.avans.sagrada.database.QueryParameter;
import nl.avans.sagrada.model.Game;
import nl... | 43.590604 | 422 | 0.596151 |
cf0c6d20dc2ae5091e6cc4cdfd52464d09536cfa | 1,359 | import java.util.Random;
import javax.swing.*;
import java.awt.*;
public class particle {
Random random = new Random();
int x;
int y;
int h = 4;
int w = 4;
int speedX;
int speedY;
int border;
public particle (int _x, int _y) {
this.x = random.nextInt(_x);
this.y = random.nextInt(_y);
w... | 21.571429 | 89 | 0.573951 |
1c81cadc88efe276774398bf26fe4c8fcef631c2 | 4,357 | package net.snowflake.client.jdbc.telemetryV2;
import net.minidev.json.JSONArray;
import net.minidev.json.JSONObject;
import net.snowflake.client.core.SFException;
import net.snowflake.client.core.SessionUtilExternalBrowser;
import net.snowflake.common.core.ResourceBundleManager;
import java.io.PrintWriter;
import ja... | 24.071823 | 83 | 0.643103 |
7b4c9f3fcf69d3079268bf18e4d0b71b5c92b09e | 3,094 | package wavetech.facelocker.utils;
import android.content.Context;
import android.content.SharedPreferences;
import android.util.Log;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import java.util.HashMap;
import java.util.Map;
import wavetech.facelocker.CameraActivity;
public class ... | 26.444444 | 106 | 0.718487 |
25df2f190fb0f1e746529432bc300aee7137a255 | 4,916 | package com.beadwallet.common.utils.datasourceutil;
import com.beadwallet.common.entity.JdbcConnectionEntity;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.sql.*;
/**
* @ClassName DataSourceUtil
* @Description 操作数据源
* @Author kai wu
* @Date 2019/1/11 10:04
* @Version 1.0
*/
public class ... | 27.931818 | 98 | 0.527868 |
53c2cfeedec9251ac2f34432116f05d0d477c4a7 | 6,134 | package com.google.heartrate.wearos.app.gatt.heartrate.characteristics;
import android.os.Build;
import com.google.heartrate.wearos.app.gatt.GattException;
import org.jetbrains.annotations.NotNull;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.robolectric.RobolectricTest... | 42.303448 | 127 | 0.72416 |
f31e37ff6fa597effa7d209a965dd1d22d2893be | 4,483 | package com.plupload.controller;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Iterator;
import java.util.List;
import java... | 30.917241 | 120 | 0.633504 |
7c1ca60c79d19f92891a70e17498748e32979eb5 | 3,220 | /*
* All GTAS code is Copyright 2016, The Department of Homeland Security (DHS), U.S. Customs and Border Protection (CBP).
*
* Please see LICENSE.txt for details.
*/
package gov.gtas.parsers.util;
import static org.junit.Assert.assertEquals;
import java.nio.charset.StandardCharsets;
import java.util.List;
impor... | 32.857143 | 120 | 0.691925 |
e4865f620728cb0bd71494842aeb18bcfeb45895 | 3,108 | package com.tu.bzahov;
import com.tu.bzahov.competitions.FootballCompetition;
import com.tu.bzahov.exceptions.EmptySetException;
import com.tu.bzahov.exceptions.MyEventException;
import com.tu.bzahov.interfaces.ICompetition;
public class App {
private static final double MINIMUM_CHANCE_FOR_WIN = 1.1d;
publi... | 37.445783 | 119 | 0.652188 |
c7413849aac8230befe3306394aff0aece6a18b5 | 10,709 | package com.parse.starter;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import android.preference.PreferenceMa... | 36.927586 | 128 | 0.566066 |
faf221b26abbe5d3bf68548bb63d133312552fa9 | 576 | package xyz.devlxl.chaos.s1.infrastructure.repos.rediscustom;
import org.springframework.core.convert.converter.Converter;
import org.springframework.data.convert.ReadingConverter;
import xyz.devlxl.chaos.s1.domain.model.RedisEntityDemoId;
/**
* @author Liu Xiaolei
* @date 2018/09/05
*/
@ReadingConverter
public c... | 27.428571 | 96 | 0.784722 |
bd9cf85e11c86bb980abaebb9e96c54545d1f76d | 4,905 | package com.liuzhousteel.sbldemo.controller;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.liuzhousteel.sbldemo.domain.Want;
import com.liuzhousteel.sbldemo.model.ResultModel;
import com.liuzhousteel.sbldemo.service.WantService;
import io.swagger.annotations.Api... | 46.714286 | 215 | 0.637105 |
22f4bc8738e947df50528903fcd2d6c5ab2cc06d | 941 | /*-
* See the file LICENSE for redistribution information.
*
* Copyright (c) 2002-2010 Oracle. All rights reserved.
*
* $Id: DatabaseConfigTest.java,v 1.6 2010/01/04 15:51:04 cwl Exp $
*/
package com.sleepycat.je.rep.dual;
public class DatabaseConfigTest extends com.sleepycat.je.DatabaseConfigTest {
/* En... | 24.763158 | 77 | 0.675877 |
6bcae6c347adbfe1da0f0415ebdbc9fba2f0e0e9 | 1,828 | package io.alanda.base.service.impl;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import javax.annotation.PostConstruct;
import javax.ejb.Singleton;
import javax.enterprise.inject.Instance;
import javax.inject.Inject;
import org.slf4j.Logger;
import org.slf... | 29.967213 | 120 | 0.750547 |
c9ced417cd2e1b59440fc27ba0266c2475f6caaa | 770 | package de.toberkoe.pluto.extensions.integration.persistence;
import de.toberkoe.pluto.examples.integration.Person;
import de.toberkoe.pluto.examples.integration.PersonLocalBean;
import de.toberkoe.pluto.extensions.integration.persistence.config.InjectPersistence;
import org.junit.jupiter.api.Test;
import org.junit.ju... | 32.083333 | 85 | 0.780519 |
e31efa3c54a23176f5cbb02eef0278185b536b6f | 4,410 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 33.664122 | 122 | 0.653968 |
ef50cacb88732e424652df8a226b5b5d79245bbb | 738 | package org.demo.service.repository;
import org.demo.service.model.DomainName;
import org.springframework.data.repository.CrudRepository;
import javax.transaction.Transactional;
/**
* A DAO for the entity DomainName is simply created by extending the CrudRepository
* interface provided by Spring. The following me... | 32.086957 | 84 | 0.798103 |
3fee279d65565fc47e1be854c17f589845368dbd | 804 | package HeiMa;
/**
* @Author Miracle Liuce
* @Date 2021/10/24 13:44
* @Version 1.0
*
5.1方法注意事项;
●方法不能嵌套定义
●void表示无返回值,可以省略retum, 也可以单独的书写return,后面不加数据
●程序 读到 return 就会停止 不在继续向下执行
// 正确 可以省略retum
public class MethodDemo{
public static void Dome() {
/... | 16.75 | 49 | 0.492537 |
e3874f1f7edad39816c69785f2c28b4040d101d5 | 7,720 | /*
* 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.634921 | 118 | 0.615026 |
531f90585681dca61317b64c6b46990dbd7b1e50 | 1,846 | package Ejercicios.Ejercicio5;
import java.awt.Frame;
import java.awt.event.*;
public class Pantalla extends Frame implements MouseListener{
/**
*
*/
private static final long serialVersionUID = 1L;
public Pantalla() {
initComponents();
}
public void initComponents() {
... | 23.666667 | 61 | 0.593174 |
f5b3cb251805e43e0f635aeaaf4421023e171820 | 10,977 | /**
* Copyright 2009 Andreas Langegger, andreas@langegger.at, Austria
*
* 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... | 29.828804 | 132 | 0.726428 |
d6ee36f14d3f69e00ddfa333659c2f2fd91dc0eb | 7,111 | package com.maddog05.whatanime.util;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.net.Uri;
import android.provider.MediaStore;
import com.google.gson.JsonArray;
import com.google.gso... | 37.230366 | 120 | 0.638026 |
f6b031c4cccdf5b176ceddfdbce811e761b25d3b | 1,097 | package _01Logger.models;
import _01Logger.models.enums.ReportLevel;
import _01Logger.models.interfaces.Appender;
import _01Logger.models.interfaces.File;
import _01Logger.models.interfaces.Layout;
import java.math.BigInteger;
public class FileAppender extends AppenderImpl implements Appender {
private File lo... | 28.128205 | 109 | 0.672744 |
4277c34245a7b8e94f55b75d68a5f0da205af158 | 79 | package generic;
public interface Element {
void handleEvent(Event event);
}
| 13.166667 | 31 | 0.772152 |
753b13b1d476db8aebe8b179101cb5c0b5c74880 | 21,451 | package timeBench.data.io;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.HashMap;
import prefuse.data.Edge;
import prefuse.data.Node;
import prefuse.data.Table;
import prefuse.data.Tuple;
import prefuse.data.io.DataIOException;
import prefuse.data.io.... | 42.309665 | 224 | 0.611766 |
bdbc9eb3cdc8a6352bc368ff00d338d6179aa585 | 775 | // PublishFailedException.java
// ~~~~~~~~~
// This module implements the PublishFailedException exception.
// :authors: Konstantin Bokarius.
// :copyright: (c) 2015 by Fanout, Inc.
// :license: MIT, see LICENSE for more details.
package org.fanout.pubcontrol;
/**
This exce... | 22.794118 | 71 | 0.646452 |
b5e25452ae3bfb6516eb14ca51487ba10cae70db | 4,453 | package com.s24.redjob.worker;
import com.s24.redjob.channel.ChannelWorker;
import com.s24.redjob.worker.execution.ExecutionStrategy;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.beans.factory.InitializingBean;
import org.spr... | 21.004717 | 120 | 0.636874 |
4fec25e114a1c6f3b2fa0fdbeca22f56e457ee7f | 457 | package kr.co.iot.model.board.dao;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import kr.co.iot.model.board.dto.BoardVO;
@Mapper
public interface BoardDAO {
int getNewNum();
int writePro(BoardVO vo);
int getAllCount();
List<BoardVO> getArticles(BoardVO vo);
B... | 15.233333 | 45 | 0.693654 |
bfa25cadbd2f3cd36a7a7f1bce51a4f68c904853 | 2,392 | package io.cucumber.danilo;
import io.cucumber.java.en.Given;
import io.cucumber.java.en.Then;
import io.cucumber.java.en.When;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import java.util.concurrent.TimeUnit;
import org.junit.rules.ExpectedException;
import org.openqa.sele... | 33.690141 | 86 | 0.687709 |
8b0ebec1864cdaee02194aba6206c09f67e1b8a6 | 1,387 | /**
* TLS-Attacker - A Modular Penetration Testing Framework for TLS
*
* Copyright 2014-2017 Ruhr University Bochum / Hackmanit GmbH
*
* Licensed under Apache License 2.0
* http://www.apache.org/licenses/LICENSE-2.0
*/
package de.rub.nds.tlsattacker.attacks.padding;
import de.rub.nds.tlsattacker.attacks.padding... | 33.02381 | 101 | 0.677001 |
af171841c99ca6bd0902d5d1a86a9798beac0648 | 12,429 | package jp.sourceforge.ea2ddl.dao.cbean.cq.bs;
import java.util.Collection;
import org.seasar.dbflute.cbean.*;
import org.seasar.dbflute.cbean.ckey.*;
import org.seasar.dbflute.cbean.coption.*;
import org.seasar.dbflute.cbean.cvalue.ConditionValue;
import org.seasar.dbflute.cbean.sqlclause.SqlClause;
import ... | 38.479876 | 120 | 0.577681 |
a9178e9b2429c38807eb07a28846661b8863b77b | 202 | package net.nlacombe.authlib.jwt;
public enum JwtClaim
{
USER_ID("userId")
;
private String name;
JwtClaim(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
}
| 10.1 | 33 | 0.668317 |
9eb3c1b7ec65961137654a33eded0689742a5317 | 861 | package com.tifa.framework.web.controller;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tifa.framework.web.pojo.Productimage;
import com.tifa.framework.web.service.impl.ProductimageServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ui... | 35.875 | 130 | 0.794425 |
5bb442f2efca1833b89c3835ede69c82a769a342 | 3,193 | package org.zkoss.zss.model.impl;
import java.util.Collection;
import java.util.Collections;
import java.util.Map;
import java.util.Set;
import java.util.TreeMap;
import org.zkoss.zss.model.CellRegion;
import org.zkoss.zss.model.SAutoFilter;
import org.zkoss.zss.model.SBook;
import org.zkoss.zss.model.SSheet;
import ... | 29.564815 | 125 | 0.748199 |
091cdbe2b065bec39d3a421ccd5bf76d11d8dce3 | 3,084 | /**
* Copyright (C) 2014 JBoss 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 agree... | 28.82243 | 82 | 0.636835 |
016dc395fa5619fbb45cc9c6eb171715672dfdee | 8,539 | /*******************************************************************************
* Copyright 2012 Technology Blueprint 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://... | 37.61674 | 182 | 0.595269 |
91e868817c3df13518273fc2a1d4a25e9d7af7bc | 2,312 | package io.github.terra121.dataset.impl;
import java.io.BufferedInputStream;
import java.io.DataInputStream;
import java.io.IOException;
import java.io.InputStream;
public class Climate {
public static final int COLS = 720;
public static final int ROWS = 360;
private ClimateData[] data;
public Clima... | 31.671233 | 115 | 0.54801 |
0dec8ef83ad1b485a905b1b85bf2b3725c743cce | 2,705 |
package com.commonusage.locationpicker;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import android.app.IntentService;
import android.content.Intent;
import android.location.Address;
import android.location.Geocoder;
import android.location.Location;
import... | 30.393258 | 71 | 0.743068 |
7a1a66cdf630e5a07b66206ba9fc1583414ff1f8 | 467 | package com.apg.library.corehelper;
import android.app.Activity;
import android.content.Context;
import android.media.Ringtone;
import android.media.RingtoneManager;
import android.net.Uri;
/**
* Created by X-tivity on 3/21/2017 AD.
*/
public class ThreadHelper {
ThreadHelper() {
}
public void execu... | 18.68 | 71 | 0.687366 |
31a40e72bfe20ee8d05a81c5f07be065bbcb6bc6 | 4,458 | /*
* Copyright 2017-2020 original 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 agre... | 41.277778 | 174 | 0.670031 |
e660a63c8689f5ecbda55e9207c8e538509f7ff3 | 27,028 | package com.hold1.pagertabsindicator;
import android.content.Context;
import android.content.res.TypedArray;
import android.database.DataSetObserver;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Rect;
import android.graphics.RectF;
import android... | 36.475034 | 160 | 0.658613 |
62f1151cc37f83185e5535def4c6074c90933a52 | 1,610 | package org.netbeans.modules.regexplugin;
import java.awt.event.ActionEvent;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.swing.AbstractAction;
import javax.swing.ImageIcon;
import javax.swing.text.JTextComponent;
/**
*
* Action class to provide an action to convert a regular expres... | 27.758621 | 213 | 0.632298 |
0801386f7ba157c0b75388430e17c1add252758e | 4,206 | package de.uhh.lt.xpertfinder.finder;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import de.uhh.lt.xpertfinder.methods.ExpertFindingMethod;
import de.uhh.lt.xpertfinder.model.graph.GraphOptions;
import de.uhh.lt.xpertfinder.service.MethodService;
import java.io.Serializable;
import java.util.Arra... | 28.04 | 103 | 0.655017 |
d204d99dd75f48a22788371fdb68a0ca29d84ab2 | 2,063 | package com.infosupport.team2.model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.infosupport.team2.enums.Status;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.dat... | 31.257576 | 205 | 0.722249 |
c006176d672e9f5d1e37da46504bc328d38e552e | 3,540 | package moe.haruue.wadb.util;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.preference.PreferenceManager;
import android.support.v4.content.ContextCompat;
import android.support.v7... | 39.333333 | 163 | 0.703955 |
7b12179b2fe95260aa2c916ae57a027ca6a84fbf | 419 | package it.nextworks.nfvmano.catalogue.repos;
import it.nextworks.nfvmano.catalogue.auth.usermanagement.UserResource;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.Optional;
import java.util.UUID;
public interface UserRepository extends JpaRepository<UserResource, UUID> {
Option... | 27.933333 | 75 | 0.818616 |
0439a4a4e3068eec60bded4dbc203a7e463630e3 | 3,139 | /*
* 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 it.uniroma1.lcl.wikimid.mapping.mapper.text;
import it.uniroma1.lcl.wikimid.mapping.data.twitter.TwitterUser;
import it.unirom... | 30.77451 | 87 | 0.540618 |
46edb7e120e078f93db3aa377c6b0c61fa90a8f6 | 3,964 | package org.processmining.openslex;
/*
*
*/
import java.util.List;
// TODO: Auto-generated Javadoc
/**
* The Interface SLEXStorageDataModel.
*
* @author <a href="mailto:e.gonzalez@tue.nl">Eduardo Gonzalez Lopez de Murillas</a>
* @see <a href="https://www.win.tue.nl/~egonzale/projects/openslex/" target="_blank... | 20.328205 | 98 | 0.676842 |
122b47583c589bf3503b337e19bad3d1ff22781b | 550 | package de.ppi.fuwesta.thymeleaf.springboot;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import de.ppi.fuwesta.thymeleaf.mail.MailToDialect;
/**
* Auto-Configuration for spring boot.
*
* @author niels
*
*/
@Configuration
public class MailtoDi... | 19.642857 | 60 | 0.696364 |
bd4bf242bf53345b86f3512cfa0e9b6dd4bf8370 | 1,272 | package eveqt.operators.binary;
import java.util.HashMap;
import java.util.Random;
import eveqt.EquationNode;
public class RandomOperator extends BinaryOperator {
private Random random;
public RandomOperator(Random random, EquationNode left, EquationNode right) {
super(left, right);
this.random = ra... | 24.461538 | 117 | 0.678459 |
5b85db90d0bf910d7923de31839d2c56ada0b2b7 | 2,816 | package cn.nicolite.huthelper.receiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.content.LocalBroadcastManager;
import com.tencent.android.tpush.XGPushBaseReceiver;
import com.tencent.android.tpush.XGPushClickedResult;
import com.tencent.androi... | 30.608696 | 102 | 0.71946 |
9a39547b093d6cba9199e98ac438482db34a47d7 | 408 | package com.company;
import java.util.Comparator;
public class AgeComparator implements Comparator {
@Override
public int compare(Object o1, Object o2) {
Student student1= (Student)o1;
Student student2= (Student)o2;
if(student1.age==student2.age)
return 0;
if(stude... | 21.473684 | 50 | 0.602941 |
5ef3e6c8332b82665ca8123183eaa81e9b81f2d4 | 7,722 | /*
* Official Java client for Meilisearch
*/
package com.meilisearch.sdk;
import com.google.gson.Gson;
/** Meilisearch client */
public class Client {
public Config config;
public IndexesHandler indexesHandler;
public TasksHandler tasksHandler;
public KeysHandler keysHandler;
public Gson gson;
... | 31.390244 | 98 | 0.648537 |
4eb8cf3a0b6f24a33d1c936635b74c320b00eee0 | 3,868 | package com.smt.kata.distance;
import org.apache.commons.lang3.StringUtils;
/****************************************************************************
* <b>Title:</b> RailFenceCypher.java
* <b>Project:</b> SMT-Kata
* <b>Description:</b> Rail Fence Cypher
* Implement encoding and decoding for the rail fence cip... | 29.526718 | 90 | 0.492761 |
d6298b5b3e49b74cac90762270cc43818b910b3e | 680 | package info.xiaomo.gengine.ai.telegram;
/**
* 提供額外信息接口 in a Telegram of a given type to the newly registered {@link Telegraph}.
*
* @author avianey
*/
public interface TelegramProvider {
/**
* type.
*
* @param msg the message type to provide
* @param receiver the newly registered Telegraph... | 32.380952 | 91 | 0.698529 |
36162c8d002bccf1f71b321554f8c1ebe63053d7 | 4,726 | /*
* Copyright 2017-2019 original 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 applicable law or agr... | 35.268657 | 141 | 0.685992 |
1435ce620cc9e6dfad996ad388f4bccb0421e114 | 7,616 | /*
* Copyright (c) 2008-2018, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | 43.272727 | 136 | 0.677784 |
baac2990444870836ac844188e7d602582fe9cbc | 12,220 | package app.roam.se.ui.dialogs.browserconfigs;
import app.roam.se.App;
import app.roam.se.models.browser.BrowserConfig;
import app.roam.se.ui.common.UIUtil;
import app.roam.se.ui.misc.Icons;
import app.roam.se.utils.FilesUtil;
import com.intellij.uiDesigner.core.GridConstraints;
import com.intellij.uiDesigner.core.Gri... | 44.926471 | 305 | 0.647791 |
bb1618226b817dbb039e8991dba8a30363ae5dee | 2,807 | /**
* Licensed to Apereo under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Apereo licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in ... | 38.986111 | 124 | 0.747417 |
f431918e257c571911a1f15d9d62755b862c4dae | 855 | package com.devmaker.luizmatias.weatherapp_devmaker;
import java.io.IOException;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;
/**
* Created by Luiz Matias on 07/03/2018.
*/
public class Requests {
private static String API_KEY = "9c86c1dbd23759616d140286f15459c3... | 23.108108 | 72 | 0.60117 |
c6758c960fa70d22f7edbca23db2128922c1f5a6 | 267 | package com.imarcats.interfaces.client.v100.messages;
import java.io.Serializable;
/**
* Common Interface for Messages
* @author Adam
*/
public interface Message extends Serializable {
public static final Message NULL_MESSAGE = new NullMessage();
}
| 22.25 | 63 | 0.737828 |
0319648a814937748bf5d2d0e470c7b500cc5e7d | 3,177 | import java.util.*;
import javax.mail.*;
import javax.mail.internet.*;
import javax.mail.internet.MimeMessage;
public class EmailSender {
// This method checks to see if there is any room on the wait list, if so, return true, otherwise false
public static boolean checkWaitList(String wait){
if (wait.equa... | 40.730769 | 143 | 0.613787 |
e8556d30380eb1943f0a1e5a53efcb2572b0f391 | 1,003 | package com.yongsu.farm.service.product.impl;
import com.yongsu.farm.domain.product.Product;
import com.yongsu.farm.dto.product.ProductImageDto;
import com.yongsu.farm.mapper.product.ProductImageMapper;
import com.yongsu.farm.service.product.ProductImageService;
import lombok.RequiredArgsConstructor;
import org.spring... | 29.5 | 74 | 0.743769 |
70ee3f6f1e8a0b8ae1dce2601cb07e0008a8360a | 678 | package behavioral.chainOfResponsibility.entities;
import behavioral.chainOfResponsibility.enums.Operation;
public class Division implements ChainItem {
private ChainItem nextItem;
public Division() {
}
@Override
public void setNextIdem(ChainItem item) {
this.nextItem = item;
}
... | 23.37931 | 59 | 0.579646 |
c690f0d15ac3735347d150b1ec8bfcf6806f06af | 2,509 | /*
* 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... | 33.013158 | 93 | 0.640494 |
872fc43cfdfbfea60b6a9c41137de3319dc6577b | 1,824 | package org.coletivoJava.fw.projetos.integracao.implemetation.model.sistemaerpconfiavel;
import br.org.coletivoJava.fw.erp.implementacao.erpintegracao.model.SistemaERPConfiavel;
import br.org.coletivoJava.integracoes.restInterprestfull.api.FabIntApiRestIntegracaoERPRestfull;
import com.super_bits.modulosSB.SBCore.inte... | 43.428571 | 125 | 0.772478 |
7be9893c3f95fd1620fd41fe033ce6c3f8e0d4b9 | 1,357 | //1470 - 重新排列数组
//给你一个数组 nums ,数组中有 2n 个元素,按 [x1,x2,...,xn,y1,y2,...,yn] 的格式排列。
//
// 请你将数组按 [x1,y1,x2,y2,...,xn,yn] 格式重新排列,返回重排后的数组。
//
//
//
// 示例 1:
//
// 输入:nums = [2,5,1,3,4,7], n = 3
//输出:[2,3,5,4,1,7]
//解释:由于 x1=2, x2=5, x3=1, y1=3, y2=4, y3=7 ,所以答案为 [2,3,5,4,1,7]
//
//
// 示例 2:
//
// 输入:nums = [1,2,3,... | 20.876923 | 83 | 0.495947 |
22823b7253bb7bdc8845ba5cc4e81f86de43bfcf | 136 | package eu.com.example.text.spi;
/**
* Created by Radosław Osiński
*/
public interface TextAPI {
String getHelloWorldText();
}
| 12.363636 | 32 | 0.698529 |
31a921182ce56c418fef37bb9de682d007172006 | 455 | import java.util.Scanner;
public class Java_Substring {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String input = scanner.nextLine();
String [] numbers = scanner.nextLine().split("\\s+");
int a = Integer.parseInt(numbers[0]);
... | 30.333333 | 62 | 0.597802 |
0bd13cda4453b9ff0677ed4d9d1298118e50ebed | 1,097 | /*
* Copyright (c) Microsoft Corporation and Dapr Contributors.
* Licensed under the MIT License.
*/
package io.dapr.client.domain;
import java.util.Collections;
import java.util.Map;
/**
* A request to invoke binding.
*/
public class InvokeBindingRequest {
private final String name;
priv... | 19.945455 | 85 | 0.666363 |
aab6e08439533e36f9709e309b8e252b78330ecd | 368 | package com.istudio.carmackfx.interfaces;
import com.istudio.carmackfx.exceptions.ActorException;
import com.istudio.carmackfx.model.domain.User;
import com.istudio.carmackfx.model.request.ActorMessageData;
/**
* @author: ACA
* @create: 2017-12-3
**/
public interface ActorService {
void process(User user, Act... | 24.533333 | 76 | 0.785326 |
d0febcba8b8580c025d6df82136599d9a5e5f9cd | 2,427 | package com.hlytec.cloud.biz.device.model.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hlytec.cloud.common.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.... | 17.715328 | 68 | 0.609806 |
dcb1c96578f07ac3628b140baf7fed44b23a0005 | 3,417 | package org.uberfire.backend.server.io;
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.inject.Produces;
import javax.inject.Inject;
import javax.inject.Named;
import org.uberfire.backend.repositories.Repository;
imp... | 35.226804 | 124 | 0.744805 |
1db3be2e3bc747b39d988cb23f20737a69efa472 | 4,502 | /*
* 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... | 31.929078 | 125 | 0.729009 |
1a88c06553ec636ab46bf67ec9eb29432df57f22 | 2,395 | //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 u... | 32.364865 | 137 | 0.764509 |
c44fcd41fa63554d1d6d88a5d3f31fe777cd3b6c | 15,829 | /*
* Hibernate, Relational Persistence for Idiomatic Java
*
* Copyright (c) 2008, Red Hat Middleware LLC or third-party contributors as
* indicated by the @author tags or express copyright attribution
* statements applied by the authors. All third-party contributions are
* distributed under license by Red Hat Mi... | 39.972222 | 160 | 0.639017 |
ce6db571b96c10d99a396fbc2e6ab1bad5c795b5 | 2,001 | package com.google.security.fences.classpath;
import java.io.IOException;
import java.io.InputStream;
import org.objectweb.asm.ClassReader;
import org.objectweb.asm.ClassVisitor;
import com.google.common.base.Predicate;
/**
* Visits all the classes performing some operation.
*/
public abstract class AbstractClass... | 30.318182 | 73 | 0.653673 |
23eddbc7b90ba549eb5af2eb01b59eebb1a84b64 | 4,088 | package com.badugi.game.logic.model.utils.common;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.TreeMap;
import java.util.Map.Entry;
@SuppressWarnings({"unchecked","r... | 30.058824 | 105 | 0.666585 |
f60d2de1be0b85ecdc0431902d4cd6bf6d38ecb0 | 1,404 | package io.jessed.sqs.kafka.connect.test;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.kafka.connect.connector.ConnectorContext;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.powermock.api.easymock.PowerMock;
import io.jessed.sqs.kaf... | 25.071429 | 81 | 0.758547 |
b57bda5a3bf120abb3bb1b919a01079a4859eada | 7,406 | package grandroid.fancyview.zoomableimage;
import java.util.Observable;
import java.util.Observer;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.Rect;
import android.graphics.RectF;... | 34.446512 | 125 | 0.542938 |
44523046aefbcd88cc968d84a0458b250400dc66 | 1,570 | /*
* Copyright 2016 Huawei Technologies 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 applicable... | 22.112676 | 75 | 0.658599 |
cfdd0e3d8a8dc60e4daea525532deea9e290b8d5 | 1,317 | package sort.merge;
import java.lang.reflect.Array;
public class CountSort<T extends Number> {
private T[] array;
public CountSort(T[] array) {
this.array = array;
}
public void sort() {
int[] count = new int[array.length + 1];
for(T i : array){
int iv = i.intValue();
count[iv] ++;
}
for (int... | 26.34 | 73 | 0.472285 |
9a2dfb64cd9fa86eb011d79b416b1b66b8dc87f2 | 2,189 | package com.notes.blog.utils;
import com.notes.blog.exceptions.RequestNoPermissionException;
import org.springframework.util.CollectionUtils;
import org.springframework.web.reactive.function.server.ServerRequest;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
/**
* Creat... | 26.059524 | 80 | 0.549566 |
cffd9de2deb96ab377cfedf713253280c5c66e86 | 417 | package loon.build.packer;
import java.io.IOException;
import java.io.OutputStream;
public interface OutputArchiveEntry extends ArchiveEntry {
public void create(String name) throws IOException ;
public String getName();
public long getTime();
public long getSize();
public void setTime(long time)... | 26.0625 | 58 | 0.7506 |
1becc205b2c5251d6dcd05ec080e46073336942a | 904 | package com.smanga.system.mapper;
import java.util.List;
import com.smanga.system.domain.SysLogininfor;
/**
* System access log situation information Data layer
*
* @author Trong Hieu
*/
public interface SysLogininforMapper
{
/**
* Added system login log
*
* @param logininfor access log object... | 20.545455 | 78 | 0.649336 |
e959065b7224addc651a180c16c91fc465de93b2 | 246 | package com.dubbo.SPI_2.jetty;
import com.dubbo.SPI_2.HttpServer;
import org.apache.dubbo.common.URL;
public class JettyServer implements HttpServer {
@Override
public void start(URL url) {
System.out.println("jetty");
}
}
| 18.923077 | 48 | 0.711382 |
66cc66fda01b29d0cfa933383accded3bcb0cf8f | 4,162 | /*
* Copyright 2004-2012 the Seasar Foundation and the Others.
*
* 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 ... | 31.059701 | 77 | 0.631187 |
ca1c8665ef694fd8223f2c7db4186a02d21fb3a7 | 2,254 | package common.bolts.transactional.gs;
import combo.SINKCombo;
import common.param.mb.MicroEvent;
import db.DatabaseException;
import org.slf4j.Logger;
import transaction.context.TxnContext;
import static profiler.MeasureTools.*;
public abstract class GSBolt_LA extends GSBolt {
public GSBolt_LA(Logger log, int f... | 37.566667 | 94 | 0.642857 |
6184a3d13bd0e91c6ca2f2f81da7eb81bc3701f7 | 457 | package br.com.bootcamp.zup.proposta.cartao.carteiraDigital;
public class AssociaCarteiraDigitalRequestClient {
private final String email;
private final String carteira;
public AssociaCarteiraDigitalRequestClient(String email, String carteira) {
this.email = email;
this.carteira = carteir... | 22.85 | 79 | 0.689278 |
7f2ae9eee53dbcde21b6d5b159627371676c3969 | 133 | package com.coderZsq;
public class Cat3 extends Animal {
public void miao() {
System.out.println("Cat - miao");
}
}
| 16.625 | 41 | 0.62406 |
1e1fa4427683883789727c249968e8f6c5bd6405 | 1,124 | package section_17_exercicio_fixacao;
public class ProdutoEntity {
private String nome;
private Double valor;
private Integer quantidade;
public ProdutoEntity(String nome, Double valor, Integer quantidade) {
this.nome = nome;
this.valor = valor;
this.quantidade = qu... | 21.615385 | 74 | 0.535587 |
ffc39f6015291931ccf4a9628edff61c8638a3a1 | 911 | package com.handsome.banner.utils;
import android.content.Context;
import android.view.animation.Interpolator;
import android.widget.Scroller;
/**
* Created by handsomexu on 2017/12/3.
*/
public class BannerScroller extends Scroller {
private int mScrollerDuration = 2000;
public void setScrollerDuration(... | 25.305556 | 89 | 0.714599 |
62dc8f863f31d3f6593c6a02492e7f1c6ab34526 | 3,442 | /*
* Copyright (c) 2021. caoccao.com Sam Cao
* 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
*
* ... | 25.686567 | 91 | 0.618245 |
fa445651ee08e2f4fa38e653ff3ca08e8b42cca5 | 3,184 | package mehdi.sakout.aboutpage.sample;
import android.content.res.Configuration;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.app.AppCompatDelegate;
import android.view.Gravity;
import android.view.View;
import android.widget.Toast;
import java.util.Calendar;
i... | 38.829268 | 123 | 0.650126 |
a82cba502c8db42157645e64878b49f0f132b1af | 10,252 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.cloudogu.ces;
import com.cloudogu.ces.verification.Verifier;
import com.fasterxml.jackson.databind.JsonNode;
import com.th... | 36.226148 | 126 | 0.635291 |
0e9caf2dabddc25d56f34a7e370800563c8bc118 | 433 | package com.edoup.base.lock;
import java.util.concurrent.locks.ReentrantLock;
/**
* <p></p>
*
* @author edoup
* @date 2020/12/11 0:32
*/
public class Test1 {
public static void main(String[] args) {
ReentrantLock reentrantLock = new ReentrantLock();
try {
reentrantLock.lock();
... | 18.826087 | 58 | 0.579677 |
a12d30f6f57db23ff760ec9dee3204096d2b781f | 1,160 | package lc.common.configuration.xml;
import java.util.ArrayList;
/**
* A list of modules in a configuration file
*
* @author AfterLifeLochie
*
*/
public class ComponentConfigList extends ConfigNode {
/** A blank list */
public ComponentConfigList() {
super();
}
/**
* A list with one name
*
* @param... | 17.846154 | 80 | 0.642241 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.