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 |
|---|---|---|---|---|---|
3515a9c8562ab6f41f7536ac7d5531ab86a04486 | 10,216 | package com.hxjg.vpn.base;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.graphics.Color;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import... | 31.825545 | 147 | 0.665623 |
7e5a7f8d05ad04e655c918accc8d1d61394b7652 | 6,208 | import java.awt.*;
import java.awt.image.*;
import javax.imageio.*;
import java.io.*;
import java.util.zip.*;
public final class Cactus
{
final int width;
final int height;
final int supersample;
final int iterations;
final BufferedImage image;
final int[] brown = new int[]{0x1f, 0x14, 0x01};
... | 33.376344 | 125 | 0.464723 |
8dbde022be70a715f3ab908ca5d06ea80edd02db | 681 | package cn.navclub.fishpond.app.socket;
import cn.navclub.fishpond.protocol.api.APIECode;
import cn.navclub.fishpond.protocol.enums.ServiceCode;
import cn.navclub.fishpond.protocol.model.TProMessage;
import io.vertx.core.json.JsonObject;
public interface SocketHook {
/**
* 消息到达时候回调该函数
*/
default voi... | 21.967742 | 108 | 0.71072 |
22a5348a5bc5407bb5d7f7d3e032369ca81bf512 | 6,916 | /*
* Hotspot compile command annotations - http://compile-command-annotations.nicoulaj.net
* Copyright © 2014-2019 Hotspot compile command annotations contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtai... | 39.295455 | 121 | 0.66498 |
cc80dd31c827ce002f98e9c7da828a16973e5fb7 | 7,832 | package com.tvd12.ezydata.database.bean;
import java.lang.reflect.Method;
import java.util.Collection;
import java.util.concurrent.atomic.AtomicInteger;
import com.tvd12.ezydata.database.EzyDatabaseContext;
import com.tvd12.ezydata.database.EzyDatabaseContextAware;
import com.tvd12.ezydata.database.EzyDatabaseReposit... | 33.32766 | 118 | 0.767748 |
352535e38a77079eb27e0a1faff10bf3f4c8043c | 885 | package JavaOOP.Inheritance_7.Exercise.BookShop_2;
import java.security.InvalidParameterException;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String author = sc.nextLine();
String title = sc.nextLine();
... | 25.285714 | 57 | 0.548023 |
81cf16e600f12fdd82285d450caf130cc5f8cdc4 | 8,894 | package com.quantum.steps.api;
import static com.qmetry.qaf.automation.core.ConfigurationManager.getBundle;
import static com.qmetry.qaf.automation.util.Validator.assertThat;
import static org.testng.Assert.assertEquals;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.Hash... | 37.058333 | 120 | 0.731954 |
7ef8f1118483dda6a4b8db1524f596948d0857a1 | 1,956 | package uk.gov.companieshouse.confirmationstatementapi.service;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.junit.jupiter.MockitoExtension;
import uk.gov.companieshouse.api.model.common.Address;
import... | 37.615385 | 103 | 0.781697 |
36dc264644ea50bd5e89a5c75731d620b1dd35e9 | 329 | // "Replace method call on lambda with lambda body" "true"
import java.util.function.Predicate;
public class Test {
public static void main(String[] args) {
while(true) {
System.out.println("hello");
if (!Collections.singleton("abc").contains("ab")) break;
System.out.println("hello");
... | 25.307692 | 64 | 0.638298 |
3e96d089cd4e5d2fcb43611226697f6c25ea4ce7 | 1,802 | /*
* 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 ... | 32.178571 | 62 | 0.777469 |
c1280f3bb189e310e15c75d433b60aa2cd61cb3f | 234 | package com.ht.dev;
public class BackEndDTO {
String reponse;
public String getReponse() {
return reponse;
}
public void setReponse(String reponse) {
this.reponse = reponse;
}
}
| 15.6 | 45 | 0.576923 |
dc4ef9ccce3f7249d7583a7600023cd37a7a662e | 1,022 | package info.itsthesky.disky3.core.skript.properties.message;
import ch.njol.skript.doc.Description;
import ch.njol.skript.doc.Examples;
import ch.njol.skript.doc.Name;
import ch.njol.skript.doc.Since;
import info.itsthesky.disky3.api.messages.UpdatingMessage;
import info.itsthesky.disky3.api.skript.properties.Multipl... | 30.969697 | 82 | 0.707436 |
decd9c6bc8ff46bf1436f7a7ebb2ce5136f4de3b | 4,076 | package io.github.junxworks.ep.sys.entity;
import io.github.junxworks.ep.core.orm.annotations.Table;
import io.github.junxworks.ep.core.orm.annotations.PrimaryKey;
import io.github.junxworks.ep.core.orm.annotations.Column;
import java.util.Date;
/**
* <p>Entity Class</p>
* <p>Table: ep_s_org</p>
*
* @since 2021-2... | 26.993377 | 107 | 0.634691 |
b2702712870d28158317134b8ed883d463bb714b | 4,252 | package nyc.c4q.artsy4android.models;
public class Artist {
/**SLUG OR ID VALUE CAN BE USED AS RETROFIT @PARAM TO DIRECT TO INDIVIDUAL ENDPOINT
*/
String id;
String slug;
String created_at;
String updated_at;
String name;
String sortable_name;
String gender;
String biography;
... | 20.843137 | 87 | 0.519285 |
b9adedb4e033bed38ca72e1014d850c2f742a1b6 | 1,254 | package net.xdevelop.snowflake.utils;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
public class DateUtils {
/**
* Patterns
*/
public static final String DAY_PATTERN = "yyyy-MM-dd";
public static final String DATETIME_PATTERN = "yyyy-MM-dd ... | 25.08 | 73 | 0.599681 |
689a9a7b9f794dfae91071b7519064fe3c1042ba | 7,655 | /**
* Copyright 2013 Benjamin Lerer
*
* 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... | 40.289474 | 114 | 0.548008 |
51ad5d9c2e03d526897671c6d8c7ac95d7e10708 | 718 | package org.minimalj.example.openapiclient.page;
import org.minimalj.frontend.action.ActionGroup;
import org.minimalj.frontend.action.Separator;
import org.minimalj.metamodel.model.MjEntity;
import org.minimalj.metamodel.model.MjEntity.MjEntityType;
import org.minimalj.metamodel.model.MjModel;
public class EntityTabl... | 26.592593 | 58 | 0.743733 |
725bf4eb00da6418da6c8c5063a662b7cac268f2 | 53 | package com.ssdi;
public interface Create {
}
| 8.833333 | 26 | 0.660377 |
67de4a2794fd1452b536d1bb67b53e3b1be10ca6 | 66,413 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package math.matrix.expressParser;
import java.util.HashMap;
import java.util.InputMismatchException;
import java.util.List;
import java.util.Random;
import parser.CustomScanner;
import parser.Operator;
/**
*
* @auth... | 32.926624 | 173 | 0.497342 |
f8bdf34ddf5d66d7571db00b117d81f283adaa63 | 1,032 | package com.polybean.biosphere;
import java.util.Collection;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.polybean.biosphere.modal.ParsedSourceCodeDAO;
import com.polybean.biosphere.service.SourceCodeMapperService;
import com.polybean.biosphere.zip.Zip;
import org.apache.commons.io.IOUtils... | 33.290323 | 84 | 0.718992 |
b172c7a499b25a080bce935543a93d017cb20b11 | 708 | package com.ruoyi.task.domain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
* @Description:
* @author: liurunkai
* @Date: 2020/8/10 9:56
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
p... | 21.454545 | 53 | 0.757062 |
4409751c47c28be1ef359f9dd8a21fa38cf89716 | 632 | package top.one.jiemo.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.one.jiemo.mapper.UserMapper;
import top.one.jiemo.model.userEntity;
import top.one.jiemo.service.UpdatePhoneService;
@Service
public class UpdatePhoneServiceImpl... | 26.333333 | 67 | 0.767405 |
791e8317389138848a601de439b5343e2ce02304 | 674 | package com.apexmob.skink;
/**
* The Text class represents a node containing text within a document tree.
*
* <p>The Text class implements the flyweight pattern where a single instance can be reused by calling
* the clear method and re-populating the content StringBuilder.</p>
*/
public class Text ext... | 32.095238 | 103 | 0.722552 |
a4aa07ace1c21d4d82093bf2ac37fb90534aea03 | 2,136 | /*--------------------------------------------------------------------------
* Copyright 2007 Taro L. Saito
*
* 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.apach... | 20.342857 | 78 | 0.516386 |
f5788406561661474b01f2f6fab76d3bffcc2b2c | 14,458 | package com.jiuye.mcp.server.controller.meta;
import com.jiuye.mcp.exception.BizException;
import com.jiuye.mcp.exception.InvalidRequestException;
import com.jiuye.mcp.param.constants.SystemConstant;
import com.jiuye.mcp.param.enums.ApplicationErrorCode;
import com.jiuye.mcp.response.Response;
import com.jiuye.mcp.ser... | 45.322884 | 206 | 0.661641 |
fb4e8f2294023c57c63aee55f4e94ec5f2999aef | 2,836 | package org.apache.sis.desktop.about;
import java.awt.Desktop;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.util.ResourceBundle;
import java.util.function.Predicate;
import java.util.logging.Level;
import java.util.logging.Logger;
import javafx.f... | 31.511111 | 102 | 0.578279 |
da18b168d0467e284f5e03796cfd2aa72cac48d6 | 1,436 | /*
* Copyright 2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 26.109091 | 87 | 0.698468 |
1af0ac6f4ad9788843e477f8251911c9226f5a5c | 1,516 | package com.sforce.soap.partner;
/**
* Generated by ComplexTypeCodeGenerator.java. Please do not edit.
*/
public interface IExecuteListViewRequest {
/**
* element : developerNameOrId of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
publ... | 27.563636 | 86 | 0.629947 |
d5ded3e731e3aa338779d9acccb4e630fbcf0aaf | 3,467 | /**
* Copyright 2012 A24Group
*
* 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,... | 28.891667 | 75 | 0.623305 |
5e557386a4cc36db028fc93eacd325ba41747e7e | 457 | package com.ykuee.datamaintenance.model.system.role.converter;
import org.mapstruct.Mapper;
import com.ykuee.datamaintenance.common.base.beancopy.DtoEntityConverter;
import com.ykuee.datamaintenance.model.system.role.dto.SysUserRoleDTO;
import com.ykuee.datamaintenance.model.system.role.entity.SysUserRoleEntity;
@Ma... | 35.153846 | 101 | 0.849015 |
a5a18728c3dafce839c6c2d57e114fe7607d841c | 595 | package com.nishant.adapter;
import android.content.Context;
import android.view.ViewGroup;
import com.nishant.feedslibrary.adapter.FeedsAdapter;
public class CustomAdapter extends FeedsAdapter {
public CustomAdapter(Context context) {
super(context);
}
@Override
public FeedsAdapter.CustomV... | 24.791667 | 93 | 0.744538 |
1a4b385ba66d1826446e5406e8f8234d2da920c5 | 488 | package de.ust.skill.common.java.api;
import java.util.Collection;
/**
* Provides access to Strings in the pool.
*
* @note As it is the case with Strings in Java, Strings in SKilL are special
* objects that behave slightly different, because they are something in
* between numbers and objects.
* @a... | 24.4 | 78 | 0.690574 |
0f295b79f070465f60cd8f3b45a2c889e70d9ffb | 6,815 | package edu.stanford.nlp.process;
import edu.stanford.nlp.util.Function;
import edu.stanford.nlp.ling.BasicDocument;
import edu.stanford.nlp.ling.Document;
import edu.stanford.nlp.ling.HasWord;
import edu.stanford.nlp.ling.Word;
import java.io.File;
import java.net.URL;
import java.util.*;
/**
* Produces a new ... | 28.514644 | 138 | 0.589729 |
d84483d94edcfd7bab34a18fab364e4abfd5d7cc | 1,257 | package examples;
import pinnacle.api.Parameter;
import pinnacle.api.PinnacleAPI;
import pinnacle.api.PinnacleException;
import pinnacle.api.dataobjects.PlacedSpecialBet;
import pinnacle.api.enums.ODDS_FORMAT;
import pinnacle.api.enums.WIN_RISK_TYPE;
public class PlaceSpecialBet {
public static void main(String[] a... | 30.658537 | 128 | 0.75895 |
37fedc477e5c71c831543e228c2bf18be331a56d | 1,977 | package net.benmann.orm8.db;
/**
* TODO
* Executes an SQL BEGIN TRANSACTION; enclosing ORM8 commands then run in this context; executes an END TRANSACTION
* at the end of the block.
*
* Likely we will move on to a different pattern eventually though, such as:
*
* <pre>
* db.withTransaction(() -> {
* try... | 27.458333 | 123 | 0.635306 |
48771d03cfb900eaca61b6d6dda2035f9766905f | 2,272 | package jp.sf.amateras.jseditor.editors.additional;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import jp.sf.amateras.htmleditor.HTMLPlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IConfigurationElement;
import org.ec... | 29.128205 | 88 | 0.738556 |
df9b8cf9b9c18fcbd05526a7a8e1153068fb6ea5 | 1,887 | package uk.nhs.digital.nhsconnect.nhais.outbound.mapper;
import org.hl7.fhir.r4.model.Enumerations;
import org.hl7.fhir.r4.model.Parameters;
import org.hl7.fhir.r4.model.Patient;
import org.junit.jupiter.api.Test;
import uk.nhs.digital.nhsconnect.nhais.outbound.FhirValidationException;
import uk.nhs.digital.nhsconnect... | 34.944444 | 97 | 0.72867 |
391d069385a58d95575e96cecaa81db045319e9e | 555 | public class Launcher {
public static void main(String[] args) {
PseudoRandomGenerator prng = new PseudoRandomGenerator();
double value = 0.0;
for (int i = 0; i < 10; i++) {
value = prng.random();
System.out.println(value);
}
long myTime = System.nano... | 30.833333 | 83 | 0.527928 |
b030baa867959dba4e1747a5610bd72381760be5 | 2,675 | package rahnema.tumaj.bid.backend.services.user;
import org.springframework.stereotype.Service;
import rahnema.tumaj.bid.backend.controllers.SecurityController;
import rahnema.tumaj.bid.backend.domains.user.UserInputDTO;
import rahnema.tumaj.bid.backend.domains.user.UserOutputDTO;
import rahnema.tumaj.bid.backend.mode... | 36.148649 | 119 | 0.730467 |
e712b24bd81307313480a05bc7e99b320a725702 | 450 | package library.domain.model.item.bibliography;
/**
* 本の点数
* (本の種類の数)
*/
public class NumberOfBook {
int value;
public NumberOfBook(int value) {
this.value = value;
}
public static int MAX_TO_SHOW = 20;
public String show() {
String over = value > MAX_TO_SHOW ? "以上" : "";
... | 18 | 54 | 0.586667 |
a7ec69c1aa132e1f05ba9d7dac934311a1fe5c38 | 428 | package com.milulost.telegram_display.service;
import com.milulost.telegram_display.bean.Message;
import com.milulost.telegram_display.bean.User;
import java.util.List;
public interface MessageService {
List<Message> findAll(Integer userId, Integer chatUserId);
List<Integer> findChatByUserId(Integer userId)... | 28.533333 | 102 | 0.801402 |
322bb68f6a12219cd6fdcf9cd8ffd6452581c4e1 | 3,349 | /**
* apache2
*/
package com.metlingpot.model.transform;
import java.util.Map;
import java.util.List;
import com.amazonaws.SdkClientException;
import com.metlingpot.model.*;
import com.amazonaws.transform.Marshaller;
import com.amazonaws.util.BinaryUtils;
import com.amazonaws.util.StringUtils;
import com.amazonaws.... | 38.494253 | 103 | 0.636608 |
6e0b00537a1ff213aeaf65c5dfa93f784ac3cdd1 | 1,003 | package com.entfrm.biz.activiti.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.entfrm.biz.activiti.dto.ProcessDto;
import java.io.InputStream;
import java.util.Map;
/**
* @author entfrm
* @date 2020/3/23
*/
public interface ProcessService {
/**
* 分页流程列表
*
* @param par... | 17.293103 | 81 | 0.585244 |
8d08edc1937f8d65fa21434a187b88b96120fb68 | 1,943 | package com.epicodus.littlemonsters.models;
import com.epicodus.littlemonsters.R;
import java.util.ArrayList;
/**
* Created by Guest on 10/21/15.
*/
public class AlbumLib {
public ArrayList<Album> getAlbums() {
return mAlbums;
}
private ArrayList<Album> mAlbums;
public AlbumLib() {
... | 30.84127 | 214 | 0.567679 |
a09cee0cbf674203046683bf086ddb5fdf9edbb0 | 7,804 | package com.xia.imagewatch;
import android.app.Activity;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.view.WindowManager;
import android.widget.ImageView;
import and... | 27.00346 | 141 | 0.608534 |
0b1c6e572ceb36057bf58ca77013f68fddda43b8 | 5,942 | /*
* Copyright (c) 2006, Pierre Carion.
*
* 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... | 32.293478 | 80 | 0.562942 |
e6d0c2d6ed8142fa3d1932577fee45b2259e3bae | 185 | package kodlamaio.hrms.core.utilities.adapters;
public interface ValidationService {
boolean validateByMernis(long nationalId, String firstName, String lastName, int yearOfBirth);
}
| 26.428571 | 95 | 0.827027 |
85367743e479e6223b335752573dd5e4796dd0ee | 1,025 | package io.github.benas.randombeans.randomizers;
import io.github.benas.randombeans.api.Randomizer;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
import static java.lang.String.valueOf;
import static org.assertj... | 27.702703 | 78 | 0.766829 |
2b7dceb2ba74d5ca3300e85801441854419a8714 | 27,588 | package org.openplacereviews.opendb.service;
import static org.openplacereviews.opendb.ops.OpBlockChain.OP_CHANGE_DELETE;
import static org.openplacereviews.opendb.ops.de.ColumnDef.IndexType.INDEXED;
import static org.openplacereviews.opendb.ops.de.ColumnDef.IndexType.NOT_INDEXED;
import java.sql.ResultSet;
import j... | 39.924747 | 170 | 0.716036 |
8c55dc69f83612b6b6ce0137c23d5c4e37c63dfe | 6,504 | /*
* Copyright (c) 2012, The President and Fellows of Harvard College.
* All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above cop... | 33.875 | 93 | 0.676507 |
dc399a93a4f1d01f2c24f147738310e2801c0d44 | 4,723 | /*******************************************************************************
* Copyright 2019 Fabrizio Pastore, Leonardo Mariani
*
* 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 L... | 35.246269 | 81 | 0.666102 |
d7c957f0521d63bf7e4ccce401b6f05066cafaac | 5,028 | /*
* E: Ken@kenreid.co.uk
* Written by Ken Reid
*/
package uk.co.kenreid.dataobjects;
import java.util.HashMap;
import java.util.Map;
import uk.co.kenreid.evolutionaryruinandstochasticrecreate.Phase2EvolutionaryRuin.Operator;
/**
* The Class Context.
*/
public class Context {
/** The cooling rate. */
private... | 19.795276 | 153 | 0.67144 |
2268af00c8f607695c134903cbca4e2f1b6e61e7 | 431 | package net.waterfallflower.cursedinterpolatorplugin.api.ui;
import javax.swing.*;
import java.awt.*;
public class SmallButton extends JButton {
public SmallButton() {
super();
setPreferredSize(new Dimension(16, 16));
setBorderPainted(false);
}
@Override
protected void paintC... | 19.590909 | 60 | 0.635731 |
add7da794483807f2adcf264c026ee49f3e3881c | 1,982 | package com.fastdev.common.http;
import android.content.Context;
import com.bean.DataObject;
import com.bean.LoginReq;
import com.bean.LoginRes;
import com.blankj.utilcode.util.LogUtils;
import com.google.gson.Gson;
import com.lzy.okgo.OkGo;
import com.lzy.okgo.model.Response;
import com.lzy.okrx2.adapter.ObservableR... | 28.314286 | 122 | 0.612008 |
5a350ad769a34de0be1b652b825bb36056f82c18 | 4,834 | /*-
* #%L
* OfficeFrame
* %%
* Copyright (C) 2005 - 2020 Daniel Sagenschneider
* %%
* 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.... | 39.950413 | 111 | 0.655772 |
864b4426ccb0ffbfb3ff60a4281dbb1433bdad37 | 1,903 | /*
* Copyright 2017 Axway Software
*
* 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... | 33.982143 | 76 | 0.707304 |
1a61b75e0751197ae4abac3e61760099e525dd41 | 5,725 | /*
* 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")... | 35.339506 | 114 | 0.590568 |
c955d571146a47549278d5aa23d338ba58ff53b5 | 13,393 | package com.mashibing.activiti.l_case;
import com.mashibing.activiti.ApplicationTests;
import lombok.extern.slf4j.Slf4j;
import org.activiti.bpmn.model.*;
import org.activiti.engine.*;
import org.activiti.engine.history.HistoricActivityInstance;
import org.activiti.engine.history.HistoricProcessInstance;
import org.ac... | 41.722741 | 159 | 0.643545 |
e1cae44a432f393366cec620f05c6d249f23ea63 | 403 | package com.sap.mlt.xliff12.impl.attribute;
import com.sap.mlt.xliff12.api.attribute.MaxBytes;
import com.sap.mlt.xliff12.impl.base.XliffAttributeImpl;
import com.sap.mlt.xliff12.impl.util.Assert;
public class MaxBytesImpl extends XliffAttributeImpl implements MaxBytes {
public MaxBytesImpl(String maxBytes)... | 26.866667 | 75 | 0.764268 |
b8ec28473a5ef5f4ee17a0ff90d796b2a1741d0c | 2,528 | package com.java110.dto.activitiesRule;
import com.java110.dto.PageDto;
import java.io.Serializable;
import java.util.Date;
/**
* @ClassName FloorDto
* @Description 活动规则数据层封装
* @Author wuxw
* @Date 2019/4/24 8:52
* @Version 1.0
* add by wuxw 2019/4/24
**/
public class ActivitiesRuleDto extends PageDto impleme... | 19.151515 | 72 | 0.625791 |
2f1a2b86f6cfc3b7ed7099cbf110ab7074a1261e | 2,280 | import java.util.TimeZone;
import net.runelite.mapping.Export;
import net.runelite.mapping.Implements;
import net.runelite.mapping.ObfuscatedGetter;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
@ObfuscatedName("jf")
@Implements("Calendar")
public class Calendar {
@Obfus... | 35.076923 | 653 | 0.619737 |
357ef02b2fc64b6e7648fbdba8040c1bef6ca7a1 | 3,680 | package com.rmkrings.loader;
import android.annotation.SuppressLint;
import com.rmkrings.data.staff.StaffDictionary;
import com.rmkrings.helper.AppDefaults;
import com.rmkrings.helper.Cache;
import com.rmkrings.helper.Config;
import com.rmkrings.http.HttpResponseData;
import com.rmkrings.interfaces.HttpResponseCallba... | 34.074074 | 141 | 0.650543 |
8df2c00538a566d8b5efede6ed049778d71dc07f | 2,085 | package com.cip.crane.restlet.resource.impl;
import java.util.ArrayList;
import java.util.List;
import com.cip.crane.generated.module.PoolExample;
import com.cip.crane.restlet.resource.IPoolsResource;
import com.cip.crane.restlet.shared.PoolDTO;
import org.apache.commons.logging.Log;
import org.apache.commons.logging... | 31.590909 | 77 | 0.634053 |
541aa42f9ef153cb48a5b803cef588dca2e248a8 | 3,071 | /*
* Copyright (c) 2012-2014 Arne Schwabe
* Distributed under the GNU GPL v2. For full terms see the file doc/LICENSE.txt
*/
package de.blinkt.openvpn.fragments;
import android.app.Fragment;
import android.os.Build;
import android.os.Bundle;
import android.support.v7.widget.RecyclerView;
import android.support.v7.... | 37 | 117 | 0.649626 |
d4f9cebe10b84b16bea995dee9932ff32df28b64 | 1,157 | package cn.net.health.user.jvm;
/**
* @author xiyou
* @version 1.2
* @date 2020/1/13 10:19
*/
import org.openjdk.jmh.annotations.Benchmark;
/**
* @author buhao
* @version StringConnectBenchmark.java, v 0.1 2018-12-25 09:29 buhao
*/
public class StringConnectBenchmark2 {
/**
* 字符串拼接之 StringBuilder 基准测... | 19.283333 | 76 | 0.579948 |
dc99b7008c0f4625f3cd36ed76dc21b8fd21917c | 83 | /**
*
*/
/**
* @author smilesnake
*
*/
package github.com.smilesnake.builder; | 10.375 | 38 | 0.590361 |
1df9933d4d38aec11f4bb82659c4e3c55531a022 | 218 | package cn.bugstack.design;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
public class Singleton_00 {
public static Map<String, String> cache = new ConcurrentHashMap<String, String>();
}
| 19.818182 | 86 | 0.770642 |
b0e0948493654cd6faf5f308a056853883c73055 | 2,218 | package ua.com.fielden.platform.expression.lexer;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
import org.junit.Test;
import ua.com.fielden.platform.expression.automata.NoTransitionAvailable;
import ua.com.fielden.platform.expression.automata.SequenceRecognitionFailed;
import ua.... | 44.36 | 132 | 0.719116 |
61345b1d457d98504bb60aba730ae0d2cde72d82 | 8,776 | /**
* Copyright (C) 2013-2020 Vasilis Vryniotis <bbriniotis@datumbox.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unles... | 39.178571 | 156 | 0.634913 |
edabd126974c87f1269ba4dcd488236b2257df0f | 41,007 | package org.nypl.simplified.viewer.epub.readium1;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ApplicationInfo;
import android.content.res.Configuration;
import android.content.res.Resources;
import android... | 35.229381 | 122 | 0.725071 |
455e0c0cd1e6844592bd6d484815ebe9f6f070f3 | 3,462 |
package com.muhimbi.ws;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for ConverterSpecificSettings_PDF complex type.
*
* <p>The following schema fragmen... | 28.61157 | 182 | 0.655113 |
794d6d486476cef960b7a05d516433acd5ce0493 | 986 | /*
* Copyright MapStruct Authors.
*
* Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
*/
package org.mapstruct.ap.test.bugs._2213;
import java.util.Arrays;
import javax.annotation.Generated;
@Generated(
value = "org.mapstruct.ap.MappingProcessor",
dat... | 25.947368 | 105 | 0.610548 |
7ecc6eb671bc94a8a177d1fc1dc95185c1b84020 | 514 | package datastructures;
import org.junit.Test;
import java.util.EmptyStackException;
import static org.junit.Assert.assertEquals;
// The writer never had a test class for Stack.java
public class StackTest {
Stack stack = new Stack();
@Test
public void shouldPopData(){
stack.push(1);
i... | 17.724138 | 51 | 0.669261 |
8097c9c24ab7b0e7449c30a8bca38b8a58c80f98 | 1,022 | package com.github.sardine.ant.command;
import com.github.sardine.ant.Command;
/**
* A nice ant wrapper around sardine.exists(). Sets the property value to "true" if the resource at URL
* exists.
*
* @author Jon Stevens
*/
public class Exists extends Command
{
/** URL to check. */
private String url;
/** Pr... | 20.039216 | 103 | 0.677104 |
3ebef142c92d7b318e1800ad88de3d6f74d14568 | 601 | package com.codenotfound;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.dataflow.server.EnableDataFlowServer;
import org.springframework.cloud.deployer.spi.cloudfoundry.CloudFoundryDeployerAutoConfiguration;
@En... | 33.388889 | 97 | 0.836938 |
a0760938c14f6bd3e429a231b2c737362ca87a6c | 1,695 | /*******************************************************************************
* Copyright (c) 2006, 2013 Wind River Systems, Inc. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distrib... | 32.596154 | 82 | 0.658407 |
a3ee54c99697cbefe2a88283c5e7b717c0ee8317 | 360 | //
// InvalidArgumentException.java
// BWAVParser
//
// Created by Robert La Ferla on 1/24/06.
// Copyright 2006 Harvard University. All rights reserved.
//
package edu.harvard.hcl.hclaps.util;
/**
* @author Robert La Ferla
*/
public class InvalidArgumentException extends Exception {
public InvalidArgumentExc... | 18 | 59 | 0.725 |
55ef2902930f55cebe6084241bc49d82cd8fe0d6 | 1,968 | package com.fichajespi.specifications;
import java.time.LocalDate;
import java.time.LocalTime;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.stereotype.Component;
import com.fichajespi.entity.Permiso;
import com.fichajespi.specifications.common.CommonSpecificationImpl;
import c... | 31.741935 | 83 | 0.752541 |
0e3a35095b307d55639e8d6dd6ef8df48ddb3fd7 | 573 | package co.paystack.android;
import co.paystack.android.api.model.TransactionApiResponse;
public class Transaction {
private String id;
private String reference;
void loadFromResponse(TransactionApiResponse t) {
if (t.hasValidReferenceAndTrans()) {
this.reference = t.reference;
... | 19.758621 | 60 | 0.61082 |
a395cd0f889aeb4065e77795400098d2d50375bc | 2,478 | /*
* Copyright 2014 Realm 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 wr... | 22.324324 | 75 | 0.641646 |
1d94b1a90f75a11370e1f4424848b98fbe1dcfeb | 545 | package com.company;
import java.util.Scanner;
public class Question_22 {
public static void main(String[] args) {
System.out.print("Enter a value : ");
Scanner in = new Scanner(System.in);
int a = in.nextInt();
System.out.print("Enter b value : ");
int b = in.nextInt();
... | 27.25 | 56 | 0.47156 |
8130310a98f3e4f6430e234fdb6e382df2d15b8f | 1,200 | /*
* $Id: TreePanelListener.java,v 1.1 2004/03/25 18:39:54 edankert Exp $
*
* Copyright (C) 2002, Cladonia Ltd. All rights reserved.
*
* This software is the proprietary information of Cladonia Ltd.
* Use is subject to license terms.
*/
package com.cladonia.schema.viewer;
import java.awt.event.Mouse... | 27.272727 | 72 | 0.678333 |
a3df630e7be1981da3ef30160a78a5816818b477 | 2,253 | package de.presti.ree6.commands.impl.community;
import club.minnced.discord.webhook.send.WebhookEmbed;
import club.minnced.discord.webhook.send.WebhookEmbedBuilder;
import club.minnced.discord.webhook.send.WebhookMessageBuilder;
import de.presti.ree6.bot.BotInfo;
import de.presti.ree6.bot.Webhook;
import de.presti.ree... | 39.526316 | 206 | 0.697292 |
6123459bc0958d3f96911f661b17a2c0eccc2d08 | 8,817 | package de.triology.cas.services;
import de.triology.cas.oidc.services.CesOAuthServiceFactory;
import de.triology.cas.oidc.services.CesOIDCServiceFactory;
import de.triology.cas.services.dogu.CesDoguServiceFactory;
import de.triology.cas.services.dogu.CesServiceCreationException;
import org.apereo.cas.services.RegexRe... | 44.756345 | 150 | 0.699104 |
aba4d8b8d2cc9ca499e89cb91dc39b2a030e8641 | 2,874 | package cz.xtf.radanalytics.db.postgresdb;
import java.util.HashMap;
import java.util.Map;
import cz.xtf.openshift.OpenShiftUtil;
import cz.xtf.openshift.OpenShiftUtils;
import cz.xtf.radanalytics.configuration.RadanalyticsConfiguration;
import cz.xtf.radanalytics.db.BaseDBDeployment;
import cz.xtf.radanalytics.db.en... | 33.418605 | 121 | 0.789144 |
6909cdff60cf0051f09847de0f9f9298e1927c58 | 284 | package example.repo;
import example.model.Customer1116;
import java.util.List;
import org.springframework.data.repository.CrudRepository;
public interface Customer1116Repository extends CrudRepository<Customer1116, Long> {
List<Customer1116> findByLastName(String lastName);
}
| 21.846154 | 84 | 0.830986 |
40504a8fbbfa584fdbe9ac6aa91ca4cbe7faf6cd | 1,520 | package cn.edu.zucc.pb.servletbasic;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;
/**
* @au... | 38 | 122 | 0.702632 |
44fc1724b8e2bdd8274f8de4342d724b423e6500 | 695 | package com.xlaser4j.opening.modules.sys.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xlaser4j.opening.modules.sys.entity.SysRoleMenuDO;
import com.xlaser4j.opening.modules.sys.mapper.SysRoleMenuMapper;
import com.xlaser4j.opening.modules.sys.service.ISysRoleMenuService;... | 30.217391 | 122 | 0.791367 |
de2a635c70008509afd61b0cd9e5c3235948122b | 1,336 | /* CS-211-001
* -------------------------------------------------------------------------------
* Name: Michael Surbey / G#: G00495157 / Assignment: project #2 / Date: 12/5
* -------------------------------------------------------------------------------
* Honor Code Statement: I recieved no assistance on this ass... | 39.294118 | 82 | 0.402695 |
e9bb105dfd394332fdb8631bd950991359d20572 | 3,208 | /*
* Copyright 2012 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 agreed to in ... | 28.140351 | 80 | 0.613155 |
2df802f3b52ee3c005a5003fc1711025bbff068d | 256 | package com.bosssoft.hr.train.j2se.basic.example.socket;
/**
* @description: 负责 Socket 的初始化
* @author: lwh
* @create: 2020/11/5 14:46
* @version: v1.0
**/
public interface Starter {
/**
* socket 初始化工作 ip指定 端口分配 等
*/
void start();
}
| 17.066667 | 56 | 0.613281 |
12fd65b7481ef1f137536ec562948367852cd017 | 662 | package com.springbootlog;
import org.apache.logging.log4j.Level;
import org.apache.logging.log4j.core.Logger;
import org.apache.logging.log4j.core.LoggerContext;
import org.apache.logging.log4j.message.MessageFactory;
/**
* 自定义日志级别
* @author wxy
*/
public class CustomizeLogger extends Logger{
private static ... | 23.642857 | 98 | 0.712991 |
2e45993a5836e20e4d9a05bae90c9a1c75f46120 | 6,410 | /*
* MIT License
*
* Copyright (c) 2020 Igram, d.o.o.
*
* 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 us... | 29.539171 | 91 | 0.676287 |
e73ea6abb42f541075095546d30db7580f66fb79 | 2,918 | package com.pulsar.func.client;
import com.pulsar.func.constant.CommonConstant;
import org.apache.pulsar.client.api.*;
import org.apache.pulsar.client.impl.PulsarClientImpl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.concurrent.TimeUnit;
/**
* pulsar client builder
*
* @author pidan... | 26.288288 | 112 | 0.574023 |
14f25fdb5ae0d3b01661a9051e7f0547e0be3a8d | 131 | package org.spacehq.mc.protocol.data.game.values.window;
public enum CreativeGrabParam implements WindowActionParam {
GRAB;
}
| 14.555556 | 60 | 0.801527 |
d8f2748a35a29bf5a8c3a415689fed002f66f4cb | 1,628 | package org.leetcode.linklist.practice;
import org.leetcode.linklist.ListNode;
import org.leetcode.utils.Utils;
import org.leetcode.utils.NodeUtils;
import java.util.Arrays;
import java.util.List;
/**
* 快慢指针实现:https://blog.csdn.net/LiuBo_01/article/details/80341377
*/
public class RemoveLastKthNode {
public st... | 25.84127 | 96 | 0.552826 |
af5ecb6ec9e5826cd91c4cd06001d06f7ced01ce | 1,034 | package com.octoperf.kraken.git.storage.events.listener;
import com.octoperf.kraken.git.event.GitStatusUpdateEvent;
import com.octoperf.kraken.storage.entity.StorageWatcherEvent;
import com.octoperf.kraken.tools.event.bus.EventBus;
import com.octoperf.kraken.tools.event.bus.EventBusListener;
import lombok.AccessLevel;... | 33.354839 | 93 | 0.818182 |
ff79b7c06303c90d66a3d95b8f457ac034576045 | 21,309 | /*
// Licensed to DynamoBI Corporation (DynamoBI) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. DynamoBI licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may ... | 28.795946 | 80 | 0.565676 |
5647414b7d2280910ca2951f4a68a08bb3a61ae4 | 7,124 | package de.fraunhofer.sit.codescan.sootbridge;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.eclipse.core.runtime.IConfigura... | 36.346939 | 188 | 0.73498 |
69dd1586b7ec5f606d2980971bce155d9a80a5ea | 2,164 | package com.ruoyi.novel.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import com.fasterxml.j... | 18.184874 | 68 | 0.614603 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.