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 |
|---|---|---|---|---|---|
ae4a856640cdeb53f5df1dce79a48a172ce98ea6 | 618 | package com.seckillproject.mq;
import com.rabbitmq.client.AMQP;
import org.springframework.amqp.core.ExchangeBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class MqProducer {
//交换机的名称
public static final String EX_... | 30.9 | 91 | 0.765372 |
e447e1168929077fb7a6da99ee6edfe3a495764c | 1,768 | package com.tracv.settings;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.tracv.util.Constants;
import java.io.File;
import java.io.IOException;
public class SettingsIO {
private ObjectMapper mapper;
private Settings settings;
public SettingsIO(){
mapper = new ObjectMapper();
... | 23.573333 | 83 | 0.575792 |
920abd6271e51813e6f418fb767bd74eb2928384 | 3,582 | package com.udacity.jdnd.course3.critter.entity;
import com.udacity.jdnd.course3.critter.pet.PetType;
import org.hibernate.annotations.Nationalized;
import javax.persistence.*;
import java.time.LocalDate;
@Entity
public class Pet {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;... | 25.225352 | 103 | 0.570631 |
80fbe1fc2bcdd8d130a5098ca71b2eb1bb7107c9 | 9,577 | /*
* Copyright 2019 Orient Securities Co., Ltd.
* Copyright 2019 BoCloud 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
*
* Unle... | 34.952555 | 107 | 0.704396 |
dd5e8ad5685928b93f887ed5aa78ce3c162a76d9 | 2,672 | /**
* Copyright Sergey Olefir
*
* 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... | 27.546392 | 94 | 0.698728 |
1319eecdcf52032061635898a6117f8a5c825fcb | 1,462 | package org.cloudfoundry.multiapps.mta.resolvers.v3;
import static org.cloudfoundry.multiapps.mta.resolvers.ReferencePattern.FULLY_QUALIFIED;
import java.util.Map;
import org.cloudfoundry.multiapps.mta.handlers.v3.DescriptorHandler;
import org.cloudfoundry.multiapps.mta.model.DeploymentDescriptor;
import org.cloudfo... | 45.6875 | 131 | 0.762654 |
b3db5b3947ef1ff60857c11c60b677c9a1601389 | 404 | package org.programmers.reader;
import java.util.List;
public class CsvReader<T> {
private final BasicReader reader;
public CsvReader() {
//TODO here in the future make choose strategy as arg: SINGLE, THREADED, file lock, etc.
reader = new BasicReader();
}
public List<T> read(String... | 22.444444 | 96 | 0.668317 |
19b21fd5d63d4cceaa21d34dcc78be46c05c7927 | 95 |
package org.whispercomm.shout;
public enum ShoutType {
SHOUT, RESHOUT, COMMENT, RECOMMENT
}
| 13.571429 | 35 | 0.768421 |
d5003d2d49d306947515e5e324685d134ee79bff | 2,077 | /*
* Copyright 2012-2015, 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 a... | 41.54 | 158 | 0.800674 |
a49dbd4a1a7de712e1a7b8143b45a4270e5cd465 | 274 | package com.db.awmd.challenge.exception;
/**
* This exception represents duplicate account already exists in the data
*/
public class DuplicateAccountIdException extends RuntimeException {
public DuplicateAccountIdException(String message) {
super(message);
}
}
| 22.833333 | 73 | 0.781022 |
4c9ccf5b160a799ce83bd49fbb415567938f0acb | 1,127 | package featurescomparison.workingwithworkbook.fittoonepage.java;
import com.aspose.cells.PageSetup;
import com.aspose.cells.Workbook;
import com.aspose.cells.Worksheet;
import com.aspose.cells.WorksheetCollection;
public class AsposeFitSheetToOnePage
{
public static void main(String[] args) throws Exception
{
... | 31.305556 | 84 | 0.771074 |
c88a4dd467757ac728ceb56514f28aa5393f6c78 | 233 | package nameconflict_in;
public class TestFieldInType {
public void main() {
/*]*/
/*[*/
foo();
class T {
int x;
}
}
public void foo() {
int x = 10;
}
}
| 12.263158 | 30 | 0.403433 |
63995e62db5c20ad35a04f402c3f78a3a2710985 | 658 | package com.geek.newmanager.mvp.model.entity;
/**
* 服务器返回数据统一处理
* Created by LiuLi on 2018/9/4.
*/
public class BaseResult<T> {
/**
* result : 422
* msg : 密码错误
* data : null
*/
private int result;
private String msg;
private T data;
public int getResult() {
return... | 14.954545 | 45 | 0.539514 |
b46cf3622ae395857ce4e40757db468503a95999 | 1,304 | /*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. Camunda licenses this file to you under the Apache License,
* Version 2.0; y... | 33.435897 | 80 | 0.75 |
8fdf04d163e2d60ad93636513efe6c56a44f225e | 8,165 | /*
* Copyright 2000-2012 JetBrains s.r.o.
*
* 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... | 39.066986 | 182 | 0.751623 |
875ff24685a17f2ea1f475b96e0bdb56ec28afca | 721 | package SourceCode.FunctionInterface.code;
import java.util.Objects;
import java.util.function.BiConsumer;
/**
* @Description 接受两个参数,无返回值
* @Author bloodcolding
* @Date 2021/01/23 5:27 PM
*/
public class ImpBiConsumer<T, U> implements BiConsumer<T, U> {
/**
* 接受两个参数,无返回值
*
* @param t
* @pa... | 18.487179 | 77 | 0.554785 |
8dd00e7fe7884fab5a746e562144148d63306ba7 | 342 | /*
* Copyright (C) 2013-2018 Schlichtherle IT Services.
* All rights reserved. Use is subject to license terms.
*/
package global.namespace.archive.io.delta.dto;
import java.io.Serializable;
/** @author Christian Schlichtherle */
public final class EntryNameAndDigestValueDTO implements Serializable {
public S... | 24.428571 | 71 | 0.763158 |
881af3bfa0215cb22a581a41a381ef3b3096d8f3 | 3,147 | /*
* Copyright 2012-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 33.83871 | 81 | 0.783286 |
534fc1ee28eace27d3893f817b5c5c1f4c768538 | 1,468 | package com.mapbox.android.telemetry;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.junit.MockitoJUnitRunner;
import java.util.ArrayList;
import java.util.List;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mo... | 24.881356 | 67 | 0.720027 |
6f93a4edc67fdce2009d91d6293a0d568f8f88f4 | 4,283 | package io.github.hedehai.tftp.packet;
import io.github.hedehai.tftp.packet.enums.TftpOpcode;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import java.nio.charset.StandardCharsets;
/**
* 方向:Server -> Client
* 包结构如下:
* <pre>
* +-------+---~~---+---+---~~---+---+---~~---+---+---~~---+---+
* | ... | 26.76875 | 97 | 0.563157 |
229725401622daf3977a5181649cacc38ded12fb | 982 | package org.ovirt.engine.core.bll;
import static org.junit.Assert.assertEquals;
import java.util.List;
import org.ovirt.engine.core.common.errors.VdcBllMessages;
/** A utility class for common command assertions */
public class CommandAssertUtils {
public static void checkSucceeded(QueriesCommandBase<?> query, ... | 35.071429 | 86 | 0.704684 |
f817c7175070bab9b8522cc01e90e577d055d562 | 2,836 | /*
* Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) 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
*
* Unles... | 39.388889 | 99 | 0.684062 |
1154a9edb84dafea8f4a892be957148e762035e6 | 5,258 | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... | 35.288591 | 116 | 0.814949 |
56289b53b2161276246976daafc401c34a7417ba | 5,646 | /*
* Copyright 2016 ZuInnoTe (Jörn Franke) <zuinnote@gmail.com>
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* ... | 51.798165 | 275 | 0.804109 |
2131618e25d5570ed34f639c3c29299b227687a3 | 7,291 | package com.appsmith.server.solutions;
import com.appsmith.external.models.ClientDataDisplayType;
import com.appsmith.external.models.Datasource;
import com.appsmith.external.models.DatasourceStructure;
import com.appsmith.external.models.TriggerRequestDTO;
import com.appsmith.external.models.TriggerRequestType;
impor... | 43.39881 | 114 | 0.6268 |
7f3a44a42dc03c70a6a4d080535aa9d63c185955 | 1,569 | package com.me.string;
import java.util.HashSet;
/**
* 给定一个字符串 s ,请你找出其中不含有重复字符的 最长子串 的长度。
* 输入: s = "abcabcbb"
* 输出: 3
*
* @author qiankun
* @version 2021/12/24
*/
public class LengthOfLongestSubstring {
public static int lengthOfLongestSubstring(String s) {
if (s == null || "".equals(s)) return 0... | 25.721311 | 80 | 0.460803 |
ff7bbf85fb9157c466b641d0565f60e16a3746e7 | 2,231 | /*
* Copyright 2000-2014 JetBrains s.r.o.
*
* 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... | 34.323077 | 123 | 0.692515 |
f73db023edc791b2f1664962d0356c2fabac939f | 1,808 | package io.gomint.server.world.block;
import io.gomint.inventory.item.ItemPoisonousPotato;
import io.gomint.inventory.item.ItemPotato;
import io.gomint.inventory.item.ItemStack;
import io.gomint.server.registry.RegisterInfo;
import io.gomint.world.block.BlockPotato;
import io.gomint.world.block.BlockType;
import java... | 22.320988 | 89 | 0.60896 |
0e24e0c98143c8995c08090cfd4db61a0cab561d | 5,711 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 38.587838 | 100 | 0.724216 |
677e08bd04f64251ddaa01b029df3b2d75b86bfb | 941 | /**
* Definition for a binary tree node.
* public class Node {
* int val;
* Node left;
* Node right;
* Node random;
* Node() {}
* Node(int val) { this.val = val; }
* Node(int val, Node left, Node right, Node random) {
* this.val = val;
* this.left = left;
* ... | 27.676471 | 64 | 0.582359 |
a796f741932faef31feba8a9327e813ab0f87d32 | 109 | package com.revature.recursion;
public class MessageData {
public String msg;
public MessageData() {
}
} | 13.625 | 31 | 0.743119 |
00060586e63a1153116e2011c255860b197c62be | 600 | package com.sonar.vishal;
import com.sonar.vishal.ui.structure.LoginStructure;
import com.sonar.vishal.ui.util.UIConstant;
import com.vaadin.ui.Alignment;
import com.vaadin.ui.Panel;
public class LoginView extends MedicoView {
private static final long serialVersionUID = -4955808842847956150L;
public LoginView() ... | 24 | 73 | 0.78 |
d49ac830886fe905e7fda7e073e70cdcff1d78ee | 2,734 | package cn.iocoder.yudao.framework.mybatis.config;
import cn.hutool.core.util.StrUtil;
import cn.iocoder.yudao.framework.mybatis.core.handler.DefaultDBFieldHandler;
import com.baomidou.mybatisplus.annotation.DbType;
import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler;
import com.baomidou.mybatisplus.core.i... | 42.061538 | 116 | 0.740673 |
357fb67378566a82c772db763e7977b03e04910d | 6,936 | /**
* Copyright (c) 2013-2014 Oculus Info Inc.
* http://www.oculusinfo.com/
*
* Released under the MIT License.
*
* 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 restrictio... | 29.76824 | 121 | 0.721021 |
424e7e85f64263704176d01ae055ce8eea89fe30 | 1,275 | package com.example.notifyme.mapper;
import com.example.notifyme.entity.User;
import org.apache.ibatis.annotations.*;
@Mapper
public interface UserMapper {
@Select("select * from user where account = #{account}")
@Results(id="userMap", value = {
@Result(property = "userId", column = "user_id"),
... | 41.129032 | 119 | 0.66902 |
ae67eba39e962d037dc6e985a05542958eee9814 | 142 | package com.exx.dzj.entity.customer;
/**
* @Author
* @Date 2019/1/22 0022 14:27
* @Description
*/
public class SupplierForExcelModel {
}
| 14.2 | 36 | 0.690141 |
3b671921e3b73608dc27aeff5bc879979f79ec9d | 1,888 | /*
* Copyright 2011-2021 GatlingCorp (https://gatling.io)
*
* 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 appli... | 25.863014 | 75 | 0.716631 |
c7326e910d7073f2545a586f5b7c09bb8324eeda | 1,167 | package com.gabrielsilva.magazinservice.services;
import java.util.HashSet;
import java.util.Set;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import or... | 30.710526 | 67 | 0.797772 |
9946c50426ff1a02cf3d7ab6015dc330fa09ce15 | 4,241 | package org.example.javajunitmockito.service;
import org.example.javajunitmockito.dao.BookDao;
import org.example.javajunitmockito.exception.BookAlreadyExistsException;
import org.example.javajunitmockito.exception.BookNotFoundException;
import org.example.javajunitmockito.model.Book;
import org.example.javajunitmocki... | 33.928 | 104 | 0.653148 |
e91e408cb5fec3e2073f6721041148e4a15a1804 | 4,227 | package org.folio.marccat.dao.persistence;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.folio.marccat.business.cataloguing.bibliographic.VariableHeaderUsingItemEntity;
import org.folio.marccat.model.Subfield;
import org.folio.marccat.shared.CorrelationValues;
import o... | 39.877358 | 179 | 0.695056 |
36a06dc2d5fa74dcf16a36f93c244e4ac0e8450c | 781 | package com.bornium.security.oauth2openid.server;
import java.util.HashSet;
import java.util.Set;
/**
* Created by Xorpherion on 04.02.2017.
*/
public class SupportedClaims {
HashSet<String> claims;
public SupportedClaims(String... claims) {
this.claims = new HashSet<String>();
for (Strin... | 21.694444 | 59 | 0.609475 |
dbd0b60b1930f67dc44723c711064e626505104f | 1,889 | package com.lhw.sion.mvp.presenter;
import android.app.Dialog;
import android.widget.Toast;
import com.lhw.sion.mvp.contract.ContractLogin;
import com.lhw.sion.mvp.model.ModelLoginImp;
import com.lhw.sion.ui.dialog.ToastDialog;
import sion.my.jinxiu.bean.SelectUserBean;
import sion.my.jinxiu.listning.JinxiuListning;... | 30.467742 | 118 | 0.647433 |
7ded0e47e86c7dcacb48ddcbee1b3f0b4eca07ab | 345 | package com.kfyty.aop;
import org.aspectj.weaver.tools.ShadowMatch;
import java.lang.reflect.Method;
/**
* 描述: 方法匹配
*
* @author kfyty725
* @date 2021/7/29 11:21
* @email kfyty725@hotmail.com
*/
public interface MethodMatcher {
ShadowMatch getShadowMatch(Method method);
boolean matches(Method method, ... | 17.25 | 57 | 0.718841 |
abb1c3e14207db0d2c7bafb6b4684c7d2149b428 | 218 | package util.exception;
public class TeamNotFoundException extends Exception {
public TeamNotFoundException(String name) {
super("Team named " + '"' + name + '"' + "not found in the repository!");
}
}
| 27.25 | 81 | 0.669725 |
cbb02f5cb54950ee6b269f8ce76cc95f0140b1d3 | 1,771 | package com.tfar.ferroustry.tree;
import com.tfar.ferroustry.Ferroustry;
import com.tfar.ferroustry.feature.BigResourceTreeFeature;
import com.tfar.ferroustry.feature.ResourceTreeFeature;
import com.tfar.ferroustry.feature.Tall2x2ResourceTreeFeature;
import net.minecraft.block.LeavesBlock;
import net.minecraft.block.L... | 38.5 | 113 | 0.786561 |
d60d38d7dd30fcd51812730cd13be13c52e20631 | 4,156 | package monero.wallet.model;
import java.math.BigInteger;
import com.fasterxml.jackson.annotation.JsonProperty;
import common.utils.GenUtils;
import monero.utils.MoneroUtils;
/**
* Models an incoming transfer of funds to the wallet.
*/
public class MoneroIncomingTransfer extends MoneroTransfer {
private Intege... | 29.062937 | 109 | 0.70717 |
85d0ca30f0e16370f319e7d38d4de3a0752d9cef | 582 | package org.cnodejs.android.md.display.listener;
import android.webkit.JavascriptInterface;
import org.cnodejs.android.md.util.FormatUtils;
import org.joda.time.DateTime;
public final class FormatJavascriptInterface {
public static final FormatJavascriptInterface instance = new FormatJavascriptInterface();
... | 27.714286 | 93 | 0.785223 |
3bb46bd94774602ab12914d016bbb3da5cfc45f7 | 1,720 | package net.violet.mynabaztag.action;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import net.violet.mynabaztag.form.MyMessagesBiblioForm;
import net.violet.platform.datamodel.Lang;
import net.violet.platform.datamodel.factories.Fa... | 34.4 | 162 | 0.796512 |
cd9d24dffb1139804a0d41308a563a0536db2fb8 | 8,509 | /* Copyright 2017 Zutubi Pty 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 law or agreed to in... | 39.761682 | 161 | 0.658949 |
4aac297150b6193c99aacd97bee9055df4fa4daf | 2,588 | package suhockii.dev.weather;
import android.app.Application;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatDelegate;
import com.crashlytics.android.Crashlytics;
import com.evernote.android.job.JobManager;
import com.jakewharton.threetenabp.AndroidTh... | 30.093023 | 88 | 0.717929 |
eb157eda9dcd117553c9f990e14593f58178797b | 677 | package org.testng.internal;
import com.google.inject.Guice;
import com.google.inject.Injector;
import com.google.inject.Module;
import com.google.inject.Stage;
import javax.annotation.Nullable;
import org.testng.IInjectorFactory;
class GuiceBackedInjectorFactory implements IInjectorFactory {
@Deprecated
@Overrid... | 27.08 | 90 | 0.757755 |
ebbbb7317c6151ec686dccb2d69994d815364d64 | 692 | package com.markruler.datajpa.entity;
import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import javax.persistence.PrePersist;
import javax.persistence.PreUpdate;
import java.time.LocalDateTime;
/**
* @EnableJpaAuditing 을 사용하지 않고
* Auditing을 위해 직접 슈퍼 클래스 구현
*/
@MappedSuperclass
public class... | 21.625 | 48 | 0.708092 |
6e1506ab260800a3905e7a185769b0824df39c9e | 2,978 | /*
* 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.317073 | 121 | 0.762257 |
da8f52a7b3ca30a233c87b31322dabe023eab40f | 1,008 | package usbong.android.community;
import android.os.Parcel;
import android.os.Parcelable;
public class ScreenshotsInViewPager implements Parcelable {
private String KEY = "";
private String VAL = "";
ScreenshotsInViewPager(String KEY, String VAL) {
this.KEY = KEY;
this.VAL = VAL;
}
public String getKEY() ... | 21 | 124 | 0.728175 |
5a5af1209468c8f4ce205659c1c0452002af2522 | 4,695 | package com.liuqing.app.launcher.modules.launch;
import android.app.Application;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.os.IBinder;
import android.os.RemoteException;
import android.os.UserHandle;
imp... | 33.776978 | 98 | 0.674121 |
363ffcdf80cbc5dfdd39518d45064d009d5d4b38 | 5,562 | package it.unicam.dmr.doit.invito;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistenc... | 27.81 | 114 | 0.699569 |
8316e1496eec544ad0fa669fb9d9c604242f28a3 | 1,337 | package practicaltest01var04.eim.systems.cs.pub.ro.practicaltest01var04;
import java.util.Date;
import java.util.Random;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
public class ProcessingThread extends Thread {
private Context context = null;
private boolean isRunning... | 24.309091 | 95 | 0.732984 |
bbf820fa66706a1ed516c63e0a0bee52e1c02b5b | 140 | package designpattern.creational_pattern.factory_method_pattern.v3;
//日志记录器接口:抽象产品
public interface Logger {
public void writeLog();
}
| 20 | 67 | 0.8 |
99d925ede49abf76f04995f974d6c6fc6a384527 | 1,990 | package com.cmy.knowapi.mapper;
import com.cmy.knowapi.basemapper.MyMapper;
import com.cmy.knowapi.model.Role;
import com.cmy.knowapi.model.User;
import com.cmy.knowapi.model.UserInfo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
... | 64.193548 | 350 | 0.753266 |
d11fb36fc0f4753e35b643f78989b5c4bc515f97 | 257 | package battleodds.units;
import battleodds.main.RegularUnit;
public class WolfRider extends RegularUnit {
public WolfRider() {
super(20, 2, "Wolf Rider", 136);
setAmbush(20);
setForestTerrainAura(5);
setSwampTerrainAura(5);
}
}
| 17.133333 | 45 | 0.692607 |
1e9d7296df8946923fd92cd5ef61ebfbfe9c5396 | 1,634 | package com.cuong.lib_smsbackup;
/**
* Created by vcuon on 9/25/2015.
* Open Source: This source has been wrote by CuongNguyen
* Contact: vcuong11s@gmail.com or unme.rf@gmail.com
*/
public class MMSAddressEntity {
private String _id;
private String msg_id;
private String contact_id;
private String ... | 21.5 | 57 | 0.543452 |
85c6404768bbe3ee8545e29629b2896eb3afb548 | 5,470 | /*
* Copyright (c) 2020 James Surya Seputro.
* All rights reserved.
*/
package com.example.blessing;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.SystemClock;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import and... | 38.521127 | 145 | 0.634735 |
a4e4aa036aaff48c962f8377dd24118d74b3f78b | 3,340 | package net.kaunghtetlin.brupple.data.models;
import android.content.ContentValues;
import android.content.Context;
import android.util.Log;
import net.kaunghtetlin.brupple.BurppleApp;
import net.kaunghtetlin.brupple.data.vos.FeaturedVO;
import net.kaunghtetlin.brupple.events.RestApiEvents;
import net.kaunghtetlin.br... | 32.427184 | 134 | 0.697904 |
2d58d187caf6d0ef83729f6a4c767fb060de5a96 | 340 | package sasi.filters;
import java.nio.file.Path;
/**
* Class would cause hidden files not to be deleted.
*/
public class HiddenFilesFilter implements CleanFilter {
@Override
public boolean isPathCanBeCleaned(Path path) {
if(path.toFile().isHidden()) {
return false;
}
ret... | 17 | 55 | 0.635294 |
266058b25ad62d862338ec5aa7386f2419d4c9aa | 119 | package utils.readonly;
@SuppressWarnings({"unused"})
public class ObjectWithUpdatableField {
private String name;
}
| 17 | 39 | 0.789916 |
93fca1a3277200c0a0edba09d4d4b3cdf48b48bb | 1,707 | package com.leovandriel.reversible.misc;
import java.util.AbstractCollection;
import java.util.Iterator;
import java.util.NoSuchElementException;
public class SingleSlot<T> extends AbstractCollection<T> implements Slot<T> {
private T value;
public SingleSlot(T value) {
this.value = value;
}
public T get() {
... | 17.78125 | 77 | 0.641476 |
e0489cd01ce901620813858523e4dda2fada7a51 | 3,295 | /*
* Wegas
* http://wegas.albasim.ch
*
* Copyright (c) 2013 School of Business and Engineering Vaud, Comem
* Licensed under the MIT License
*/
package com.wegas.core.persistence.variable;
import com.wegas.core.persistence.game.GameModel;
import com.wegas.mcq.persistence.QuestionDescriptor;
import java... | 23.535714 | 148 | 0.602731 |
a28fdbafb11c341b8fb1b1c76295d903863bcc86 | 487 | package com.cttexpress.config;
import com.cttexpress.persistence.ApiClientItem;
import java.util.HashMap;
import java.util.Map;
public class UserTable {
protected static final HashMap<String , User> USERS_HM = new HashMap<String , User>() {{
put("admin", new User("admin", "changeit", "ADMINISTRATOR"));
... | 25.631579 | 92 | 0.671458 |
5ce56718cd5d2c73d82e92d5886d1575558b867f | 3,634 | package org.androidtown.bookprice;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Matrix;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.widget.ImageButton;
import android.... | 28.170543 | 76 | 0.600991 |
f38117a90953592c909e5a1e906589a1f1cf2f08 | 7,585 | package com.encryption.biz;
import android.text.TextUtils;
import android.util.Log;
import java.io.File;
/**
* Created by hsj on 2016/10/12.
*/
public class FolderBiz {
private static final String TAG = "FolderBiz";
/**
* 加密文件
*
* @param name
* @param callback
*/
public stati... | 26.336806 | 104 | 0.497034 |
818ad04e675306ebb0093ca043c50b22f15edb1d | 3,784 | package com.ttn.community.journal.poc;
import java.text.SimpleDateFormat;
import javax.jcr.RepositoryException;
import org.apache.commons.lang3.StringUtils;
import org.apache.sling.api.resource.Resource;
import org.apache.sling.api.resource.ResourceUtil;
import com.adobe.cq.social.commons.comments.listing.CommentSo... | 41.130435 | 111 | 0.798626 |
fc3331d9d3e5785abafdeee470b24f16a76579f5 | 13,871 | package com.lhd.tams.module.coursescheduling.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lhd.tams.common.consts.ErrorCodeEnum;
import com.lhd.tams.... | 50.809524 | 207 | 0.671761 |
52bfdd380caf06493c70f12ba293a04579cca0cb | 3,531 | /*
* dex2jar - Tools to work with android .dex and java .class files
* Copyright (c) 2009-2013 Panxiaobo
*
* 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.ap... | 40.586207 | 88 | 0.630133 |
228a5eaaf5ca496c143dffdf6fbcd9c7ac8f3299 | 3,642 | /*******************************************************************************
* Copyright (c) 2015-2018 Skymind, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
*... | 34.685714 | 100 | 0.652389 |
9ea8660d4773e34c34110961becb1e2d5b43fab6 | 1,123 | package leetcode.from901to1000;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
/**
* @Author: ZeromaXHe
* @Time: 2020/11/29 12:41
* @Description: 976. 三角形的最大周长 | 难度:简单 | 标签:排序、数学
* 给定由一些正数(代表长度)组成的数组 A,返回由其中三个长度组成的、面积不为零的三角形的最大周长。
* <p>
* 如果不能形成任何面积不为零的三角形,返回 0。
* <p>
* 示例... | 19.362069 | 65 | 0.525378 |
ab0c165684c6e9652cf9880c37f36b5cec420afc | 4,504 | package com.beemelon.physicsgame.cedric;
import com.badlogic.gdx.maps.tiled.TiledMap;
import com.badlogic.gdx.maps.tiled.TmxMapLoader;
import com.badlogic.gdx.maps.tiled.renderers.OrthogonalTiledMapRenderer;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.physics.box2d.Body;
import com.badlogic.gdx.physi... | 26.650888 | 82 | 0.646314 |
35f8c5577150bf69e1d4615d9b7247c82d9599b4 | 1,313 | package org.gnucash.android.export.qif;
import android.content.Context;
import org.gnucash.android.data.Account;
import org.gnucash.android.db.AccountsDbAdapter;
import org.gnucash.android.db.TransactionsDbAdapter;
import java.util.List;
/**
* @author Ngewi
*/
public class QifExporter {
boolean mExportAll;
... | 28.543478 | 115 | 0.691546 |
c55b534e18bd7a1123d327cbbe1c027ab18173f7 | 10,899 | package PlasticMetal.JMobileSuitLite.ObjectModel.Members;
import PlasticMetal.JMobileSuitLite.ObjectModel.Annotions.*;
import PlasticMetal.JMobileSuitLite.ObjectModel.DynamicParameter;
import PlasticMetal.JMobileSuitLite.ObjectModel.Executable;
import PlasticMetal.JMobileSuitLite.ObjectModel.InfoProvider;
import Plas... | 29.697548 | 139 | 0.545555 |
eabfde71c7dd1e527754e29b92107d4a76ad6691 | 183 | package importAnno;
/**
* @author yihuier
* @Date 2020/11/25 10:12
* @Description
*/
public interface ArticleDao {
@Select("select * from article")
void selectArticle();
}
| 14.076923 | 33 | 0.666667 |
591bbe7a01a633fbd23f1490ceef27d3facb5171 | 228 | package starter.search;
import net.serenitybdd.screenplay.targets.Target;
public class GcpaeTitle {
public static final Target GREETING = Target.the("Greeting").locatedBy("//*[@id=\"main\"]/div/div/div/div[2]/h1[1]");
}
| 25.333333 | 122 | 0.714912 |
98d77d9998e1e1d00e7b4f25bf4a7c3f6c5fc340 | 16,998 | /**
* Copyright 2014 Internet2
*
* 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... | 40.959036 | 181 | 0.707319 |
2f870e5d3cd3859e731838912ccc69cdd2a882e0 | 1,134 | package examples.pubhub.servlets;
import java.io.IOException;
import java.util.List;
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 examples.p... | 32.4 | 118 | 0.79806 |
c37ee57c4170e403ebc16870652f4f1b09570e91 | 729 | /**
*
*/
package com.dianwoda.usercenter.vera.piper;
import org.junit.Before;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.junit4.SpringRunner;
import java.io.File;
//@Ru... | 18.225 | 60 | 0.673525 |
d185282d4be64ee8fdc1d6107753c656be944174 | 676 | package com.rabbitshop.springbootadminserverconsul;
import de.codecentric.boot.admin.server.config.EnableAdminServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import... | 32.190476 | 76 | 0.856509 |
13590580b14faeed5dee09c288e8a631619351e2 | 3,027 | /*
* 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 ... | 43.869565 | 134 | 0.727783 |
ffd336422b3c6d3f9c248e47c099b2104a2a25fc | 2,131 | // Copyright (c) 2018 Vassili Bykov. Licensed under the Apache License, Version 2.0.
package com.github.vassilibykov.trifle.core;
import static com.github.vassilibykov.trifle.core.JvmType.BOOL;
import static com.github.vassilibykov.trifle.core.JvmType.INT;
import static com.github.vassilibykov.trifle.core.JvmType.REF... | 30.014085 | 84 | 0.631628 |
3126f7e0616520322482e09e2aa054bda637d207 | 3,536 | /*
Copyright 2017 Digital Learning Sciences (DLS) at the
University Corporation for Atmospheric Research (UCAR),
P.O. Box 3000, Boulder, CO 80307
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 a... | 28.516129 | 89 | 0.742647 |
dbfeb765381067ac97db6b950b971a07531df749 | 2,346 | /*
* 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 under t... | 43.444444 | 128 | 0.808184 |
16e57162a79efa137a44d9f13011a1c7dab088f4 | 575 | package com.mutants.exceptions.handlers;
import org.springframework.stereotype.Service;
import org.springframework.validation.Errors;
import org.springframework.validation.FieldError;
@Service
public class ControllerErrorHandler {
public String handleError (Errors errors){
String errorsInfo = "";
... | 26.136364 | 81 | 0.669565 |
67d7e375bede87fbff5c90e33ea14f7a13d20123 | 495 | package dec21;
import java.util.Scanner;
public class reverse {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner a=new Scanner(System.in);
int size=a.nextInt();
int[] arr=new int[size];
System.out.println("enter the length of array");
for(int i=0;i<size;i++)
{
Sys... | 19.8 | 77 | 0.634343 |
45df6db8eb829409d05102a03445589a4fcf3823 | 682 | package com.lathrum.VMF2OBJ.fileStructure;
import java.util.ArrayList;
public class Directory {
public static final String SEPARATOR = "/";
private String path;
private ArrayList<Entry> entries;
protected Directory(String path) {
this.path = path.trim();
this.entries = new ArrayList<Entry>();
}
public S... | 18.944444 | 65 | 0.717009 |
4c8e280b4f502a7bffc0710e876884622ad40bf2 | 615 | package com.mwd.training.section1.scope;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
public class Application {
public static void main(String[] args) {
AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);
if( context.getBea... | 29.285714 | 104 | 0.773984 |
52a4aed81252fab9efc5d384f2f09915b83697a9 | 1,403 | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.content.browser.input;
import org.chromium.base.metrics.RecordHistogram;
/**
* A class to record various input method UMAs.
*/
cl... | 38.972222 | 94 | 0.754098 |
225d040e6ade6752a265305ff1d4bfdc1ac47ff8 | 15,079 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * 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 ... | 13.770776 | 808 | 0.799589 |
88460b92b9611d6d247012c3bb180a903167c039 | 2,839 | package uk.co.mruoc.demo.adapter.camunda;
import org.camunda.bpm.engine.RuntimeService;
import org.camunda.bpm.engine.runtime.ProcessInstance;
import org.camunda.bpm.engine.runtime.ProcessInstanceQuery;
import org.junit.jupiter.api.Test;
import uk.co.mruoc.demo.domain.entity.Payment;
import uk.co.mruoc.demo.domain.ent... | 38.890411 | 103 | 0.748855 |
43038563072f09d123c0f89814f5c1f7a5f69963 | 1,373 | package com.rendiyu.dao.impl;
import com.rendiyu.dao.UserDao;
import com.rendiyu.domain.User;
import org.springframework.dao.DataAccessException;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.jdbc.core.JdbcTemplate;
import com.rendiyu.utils.JDBCUtilDruid;
/**
* @author 任地狱
*... | 28.604167 | 179 | 0.668609 |
fcfdc3da9bb1f5a3cef2dd2a1a3035de7689c479 | 5,277 | /**
* Copyright (c) 2009-2013, Lukas Eder, lukas.eder@gmail.com
* Christopher Deckers, chrriis@gmail.com
* All rights reserved.
*
* This software is licensed to you under the Apache License, Version 2.0
* (the "License"); You may obtain a copy of the License at
*
* http://www.... | 35.416107 | 101 | 0.515255 |
c6cac9c8989e9e17500fe223a4c0c3756507bb54 | 5,513 | /*
* Copyright (C) 2017, Rockwell Collins
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the 3-clause BSD license. See the LICENSE file for details.
*
*/
package fuzzm.value.instance;
import java.math.BigInteger;
import fuzzm.poly.PolyBool;
import fuzzm.value.h... | 24.721973 | 88 | 0.746962 |
8f5d3d7a5ab3ceac43664d1743f7121f54db3fb2 | 1,323 | package org.ihtsdo.changeanalyzer.model;
public class Relationship {
public Relationship(String rId, String active, String source,
String sourceId, String destination, String type, String charType) {
super();
this.rId = rId;
this.active = active;
this.term = source;
this.cId = sourceId;
this.destinatio... | 20.045455 | 71 | 0.705215 |
51972eeeb3714ba75dcfb039d6df91e418686ff7 | 6,053 | package com.sismics.docs.rest.util;
import com.google.common.io.Resources;
import com.sismics.util.filter.TokenBasedSecurityFilter;
import org.glassfish.jersey.media.multipart.FormDataMultiPart;
import org.glassfish.jersey.media.multipart.MultiPartFeature;
import org.glassfish.jersey.media.multipart.file.StreamDataBod... | 32.896739 | 119 | 0.594581 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.