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 |
|---|---|---|---|---|---|
415b0e2c5a9b7fa0be1459c0cf9fc7a56d411267 | 5,204 | /*
* 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... | 45.252174 | 222 | 0.780938 |
4795e85cec510d8a421336a6d9a1f1a03f0aeac0 | 1,227 | package two_pointer;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.StringTokenizer;
/**
*
* @author exponential-e
* 백준 2230번: 수 고르기
*
* @see https://www.acmicpc.net/problem/2230
*
*/
public class Boj2230 {
public static void main(String[] args) t... | 23.596154 | 81 | 0.559087 |
58dbc5a177d6fb1f33b86b723871d42d228e9639 | 1,350 | package uk.ac.soton.ecs.comp6237.utils;
import java.io.IOException;
import java.io.PipedInputStream;
import java.io.PipedOutputStream;
import java.util.List;
import jline.TerminalFactory;
import org.codehaus.groovy.tools.shell.AnsiDetector;
import org.fusesource.jansi.Ansi;
import org.fusesource.jansi.AnsiConsole;
i... | 21.774194 | 61 | 0.756296 |
9ff30222af397d429be7d9190522de7fc541c29d | 2,266 | package datasource;
import java.sql.Connection;
import java.sql.SQLException;
import cache.DataSourceProxy;
import cache.Scanner;
import db.Database;
import db.element.Row;
import db.element.Table;
import db.exception.MissingPKsException;
import db.instance.DatabaseInstance;
import db.instance.generic.wra... | 22.888889 | 81 | 0.659312 |
089f03dfca7fac0d9a45725001434e3fa7ff907f | 1,841 | package com.chenjie.financial.manager.error;
import org.springframework.boot.autoconfigure.web.BasicErrorController;
import org.springframework.boot.autoconfigure.web.ErrorAttributes;
import org.springframework.boot.autoconfigure.web.ErrorProperties;
import org.springframework.boot.autoconfigure.web.ErrorViewResolver;... | 36.82 | 140 | 0.719718 |
8db82103aa38ab5f478bcace148a82d14ca52072 | 186 | /**
*
*/
package com.ctrip.hermes.core.selector;
/**
* @author marsqing
*
* Jun 24, 2016 4:51:05 PM
*/
public interface ExpireTimeHolder {
long currentExpireTime();
}
| 11.625 | 39 | 0.61828 |
f42ac8fc55b9be6f126a06ebff8f8f2de3a125e3 | 1,361 | package ru.szhernovoy.mod;/**
* Created by szhernovoy on 15.12.2016.
*/
import com.mchange.v2.c3p0.ComboPooledDataSource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.beans.PropertyVetoException;
import java.io.FileInputStream;
import java.io.IOException;
import java.sql.Connection;
import j... | 26.686275 | 121 | 0.676708 |
ac8023e1dc61017e8d1bf89ce375b83a7e610761 | 8,801 | package sh.ajo.linkeye.linkeye.services.mysql;
import org.springframework.core.env.Environment;
import org.springframework.data.domain.*;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.stereotype.Service;
import sh.ajo.linkeye.linkeye.dto.AccountUpdateDTO;
import sh.ajo... | 32.596296 | 152 | 0.681968 |
5565851d69c9b3d146bf7df166433adbb4f8b54c | 598 | package io.renren.modules.hotel.dto;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;
/**
* 商家会员
*
* @author taoz
*
*/
@Data
public class HotelSellerMemberDto {
private Long userId;
private Long id;
private String img;
private String nick;
private String tel;
private String n... | 11.96 | 36 | 0.737458 |
3de4e9cd62a8acb4e0a743a94268fbd515b4e49c | 1,519 | package com.spj.demo.pojo;
public class PTest {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column p.id
*
* @mbggenerated
*/
private Integer id;
/**
* This field was generated by MyBatis Generator.
* This field correspond... | 22.671642 | 66 | 0.579329 |
0c5d96a516fefb32c2ba19dc4aaab0d9307a3f26 | 14,778 | /*
* Copyright 2020-2021 ADEAL Systems GmbH
*
* 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 o... | 40.487671 | 172 | 0.608743 |
3a4deab6d538e1296b1aacd78c59ab8a98e05c3d | 695 | package remote.ct.process;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import remote.ct.ssh.SshConnection;
public class ProcessGitCommand implements Process {
private static final Logger logger = LoggerFactory.getLogger(ProcessGitCommand.class);
@Override
public void execute(SshConnection sshConnec... | 21.060606 | 87 | 0.726619 |
309ce34dc87a6df3ad72385c56c5a289ed639bd6 | 40,775 | /*
* Copyright (C) 2011 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 30.820106 | 95 | 0.525788 |
b25f7e02858567c082bf4a99ae8fe5d15821eb43 | 970 | package org.liangjies.zhihu.service;
import org.liangjies.zhihu.entity.Zhihu;
import java.util.List;
/**
* (Zhihu)表服务接口
*
* @author liangjies
* @since 2020-03-30 00:30:54
*/
public interface ZhihuService {
/**
* 通过ID查询单条数据
*
* @param id 主键
* @return 实例对象
*/
Zhihu queryById(Intege... | 15.645161 | 55 | 0.530928 |
54f8c6afbdd12971594953e39aaafad81e132350 | 3,138 | package uiTest;
import com.app.flight.Main;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.RadioButton;
import javafx.stage.Stage;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.testfx.api.FxRob... | 30.764706 | 99 | 0.667304 |
40eec3deff9469cb5c1e75caf978a114918e3ace | 433 | package com.kelvem.crawler.test;
import com.kelvem.common.CrawlerUtil;
/**
* TestHttpGet
*
* @ClassName TestHttpGet
* @author kelvem
* @version 1.0
*/
public class TestHttpGet {
/**
* main
*
* @param args
* @return void
* @throws
*/
public static void main(String[] args) {
String content =... | 15.464286 | 93 | 0.660508 |
416ddc2e110130daeef5d9d2446eec946cb90520 | 599 | package com.mikufans.blog.infrastructure.repository.log;
import com.mikufans.blog.domain.aggregate.log.LogEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;
import java.util.List;
@Mapper
public interface LogRepository {
... | 18.71875 | 56 | 0.646077 |
3e0fc51de32174a8336ea5122b8ff5d129768d6e | 2,418 | /*
* 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 ... | 35.043478 | 99 | 0.710918 |
4e2aa4033b6802c21046c0b8c6edbf6b8ff0a97e | 679 | package model.statement;
public class ForkStatement extends Statement
{
private Statement program;
public ForkStatement(Statement program)
{
this.program = program;
}
/**
* Getter for property 'program'.
*
* @return Value for property 'program'.
*/
public Statement... | 16.975 | 61 | 0.565538 |
a575eb53704d696bc8cad0523ae586748173c66c | 10,793 | /*
* NativeCapableFactory.java
*
* Created on 23 de mayo de 2005, 17:31
*
* To change this template, choose Tools | Options and locate the template under
* the Source Creation and Management node. Right-click the template and choose
* Open. You can then make changes to the template in the Source Editor.
... | 37.346021 | 117 | 0.658946 |
3ab26382fe88b9b57444cc571e282e0e93d2287c | 441 | package rx.internal.util.unsafe;
/* compiled from: SpmcArrayQueue */
abstract class SpmcArrayQueueL1Pad<E> extends ConcurrentCircularArrayQueue<E> {
long p10;
long p11;
long p12;
long p13;
long p14;
long p15;
long p16;
long p30;
long p31;
long p32;
long p33;
long p34;
... | 17.64 | 79 | 0.62585 |
8ebc18573996310de50bb03a65190634a6f071e1 | 3,685 | package com.ruoyi.alipay.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 商户信息对象 t_merchant_info
*
* @author ruoyi
* @date 2020-03-18
*/
public c... | 21.934524 | 71 | 0.59213 |
c7d01fee66783be107f1447f51980cb85540acda | 1,877 | package cn.ibestcode.easiness.exception.handler;
import cn.ibestcode.easiness.exception.properties.EasinessExceptionTipsProperties;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.s... | 36.096154 | 115 | 0.797549 |
f38e6626345628f9e32ca593b4bb6a867085f06d | 759 | package com.cb.project.gracefulmovies.view.adapter;
import android.support.v7.widget.RecyclerView;
import android.util.SparseArray;
import android.view.View;
/**
* BaseRecyclerViewHolder
* <p/>
* Created by woxignxiao on 2017-01-25.
*/
public class BaseRecyclerViewHolder extends RecyclerView.ViewHolder {
pri... | 23.71875 | 69 | 0.620553 |
ffb858131e86341a17d48cf41b862d63d858140b | 1,950 | package io.objects.tl.api;
import io.objects.tl.TLObjectUtils;
import io.objects.tl.api.request.TLRequestChannelsCreateChannel;
import io.objects.tl.core.TLObject;
import org.junit.Ignore;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import java.io.IOException;
import java.nio.file.Files;... | 35.454545 | 94 | 0.714359 |
f7451c596b277a60d0b1cc1e343558246cbd89c3 | 2,465 | package demo.block;
import net.minestorm.server.instance.block.BlockHandler;
import net.minestorm.server.item.ItemStack;
import net.minestorm.server.item.Material;
import net.minestorm.server.tag.Tag;
import net.minestorm.server.tag.TagReadable;
import net.minestorm.server.tag.TagSerializer;
import net.minestorm.serve... | 35.724638 | 89 | 0.629615 |
ac7aa20fab3663c74d06f6ab020165895b4fff94 | 5,526 | /*
* Copyright 2019-2020 Zheng Jie
*
* 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... | 34.5375 | 108 | 0.767644 |
a2fb3854a214fd2dc3c447e6a7705d2ea317995e | 8,459 | /*
* Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Softwa... | 35.995745 | 118 | 0.597707 |
89dda0431490c37ae3b82063338dd70dcf317895 | 2,835 | package dev.alnat.moneykeeper.conf;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.dataformat.xml.XmlMapper;
import com.fasterxml.jackson.datatype.hibernate5.Hibernate5Module;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configurati... | 33.75 | 111 | 0.752028 |
29e9098822f907ee4d668ac4a1aebb44c384a112 | 391 | package application.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import application.model.Authentication;
@Repository
public interface AuthenticationRepository extends JpaRepository<Authentication, Long> {
public Authentication findByIdU... | 27.928571 | 87 | 0.851662 |
7414de36d577c2407cf7bd9ad423e71674b83499 | 2,495 | /*
* Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html... | 32.828947 | 113 | 0.757515 |
48a9034a08d99b46f1a60dda03b225ab8e1ea55d | 510 | class Solution {
public int countBalls(int lowLimit, int highLimit) {
Map<Integer,Integer> hashmap = new HashMap<>();
for(int i=lowLimit;i<=highLimit;i++){
int sum=0;
int n=i;
while(n>0){
sum += n%10;
n=n/10;
}
... | 26.842105 | 59 | 0.452941 |
3b9fbc3504099be8d4250da8827d6525d4933a69 | 4,440 | package com.jn.agileway.ssh.client.impl.synergy;
import com.jn.agileway.ssh.client.SshException;
import com.jn.agileway.ssh.client.channel.AbstarctSessionedChannel;
import com.jn.agileway.ssh.client.utils.PTYMode;
import com.jn.agileway.ssh.client.utils.Signal;
import com.jn.langx.util.collection.Collects;
import com.... | 31.048951 | 202 | 0.630405 |
072a92192adb04ba2fda5488376c7d5c23d4e507 | 575 | package fi.kapsi.janner.fmireader.query;
import org.junit.Test;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.*;
/**
* Created by janne on 17/05/17.
*/
public class SimpleQueryBuilderTest {
@Test
public void testGeoId() throws Exception {
SimpleQuery query = new SimpleQueryBui... | 21.296296 | 58 | 0.711304 |
fca549544703b5e2e22304dd0f07403722afcdf6 | 2,006 | package view;
import java.io.File;
import java.util.ArrayList;
import javafx.collections.FXCollections;
import javafx.fxml.FXML;
import javafx.scene.control.TableColumn;
import javafx.scene.control.TableView;
import javafx.scene.control.TextField;
import javafx.stage.DirectoryChooser;
import model.Dadosfile;
public ... | 23.057471 | 84 | 0.704387 |
a384d638f97a16d6b537e61ec007f5b9b8bb149f | 3,858 | package de.metas.impexp.config;
import java.util.Collection;
import java.util.Optional;
import org.adempiere.ad.dao.IQueryBL;
import org.adempiere.exceptions.AdempiereException;
import org.compiere.model.I_C_DataImport;
import org.springframework.stereotype.Repository;
import com.google.common.collect.ImmutableList;... | 32.420168 | 150 | 0.776568 |
dd013b677ff11716a7b10632b35b8e895221faaf | 2,550 | /*
* Copyright 2013 Luciano Resende
*
* 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... | 34.459459 | 110 | 0.723137 |
6288d262476ef3210bd9e520c38fc5a14ef43d34 | 175 | package org.zstack.header.network.service;
public class VirtualRouterHaCallbackStruct {
public String type;
public VirtualRouterHaCallbackInterface callback;
}
| 25 | 54 | 0.788571 |
ffcff78b58f627957d994885d2cd7bf537236e6b | 309 | package kg.nurtelecom.cashbackapi.repository;
import kg.nurtelecom.cashbackapi.entity.ClientEvent;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface ClientEventRepository extends JpaRepository<ClientEvent, Long> {
}
| 30.9 | 81 | 0.857605 |
1f980964f8aa55bca43e0604c1d58502ee5273c7 | 1,604 | package org.czw.flight.model;
import java.util.Date;
public class Admin {
private String username;
private Integer loginId;
private String name;
private String password;
private Date lastLoginTime;
private Integer type;
private Byte status;
private String photo;
public Stri... | 18.870588 | 66 | 0.602244 |
7a061a5ccbc8b8b83e5f82be969d6cc844ec50ad | 1,371 | package models.view.main;
import models.utils.infrastructurePackages.Paging;
import play.data.Form;
import java.util.ArrayList;
import java.util.List;
public class BasePagedFilterModel<T, F> {
public BasePagedFilterModel(List<T> list, int count, Paging paging, Form<F> form) {
this.list = list;
... | 29.170213 | 90 | 0.539023 |
adbb3b84835305d5e7f7389e6eb0c74b170e5fda | 1,479 | /*
* Copyright 2007 skynamics AG
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 24.245902 | 78 | 0.661258 |
0ee8865d47d5ba81060f39ca007ffd9b2b7f30a8 | 1,044 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package adg.red.controllers;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.util.ResourceBundle;
import java.util.logging.Level;
import java.util.logging.Logger;
import javafx.... | 22.212766 | 99 | 0.670498 |
85640640a24a70b68278c2d598998b063d866990 | 134 | package io.lunes.lunesJava;
public interface Account {
static byte MAINNET = (byte) '1';
static byte TESTNET = (byte) '0';
}
| 19.142857 | 37 | 0.664179 |
34fe46fef89827298398376b5042086a93db41e1 | 3,424 | package org.jenkinsci.plugins.sqlplus.script.runner.test;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Writer;
import java.util.Map;
import org.jenkinsci.plugins.sqlplus.script.... | 29.264957 | 177 | 0.72722 |
d9914583c559a8bafccf8ab54c0517ad13be3f53 | 4,289 | package example.util;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.index.DirectoryReader;
import org.apache.lucene.index.IndexWriter;
import org.apache.lucene.index.IndexWriterConfig;
import org.apache.lucene.index.IndexWriterConfig.OpenMode;
import org.apache.lucene.search.IndexSearcher;
impor... | 25.837349 | 93 | 0.574493 |
8807268bee342d6035ccd191dfa1eb8ed8e5b1e6 | 932 | package org.aidework.rpc.client.exception;
import org.aidework.rpc.core.helper.SystemLogger;
import java.util.ArrayList;
import java.util.List;
public class ExceptionDispatcher {
private List<ExceptionHandler> handlerList;
private static ExceptionDispatcher instance;
private ExceptionDispatcher(){
... | 25.888889 | 78 | 0.690987 |
90f4d382a25d7b79e67ca89f29b3f8fd2fcd4680 | 3,506 | package tfar.lostandfound;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.CompoundNBT;
import net.minecraft.nbt.INBT;
import net.minecraft.nbt.ListNBT;
import net.minecraft.world.World;
import net.minecraft.world.server.ServerWorld;
import net.minecraft.world.storage.WorldSavedData;
import net.minecraft... | 28.274194 | 165 | 0.642898 |
c5cbaae6e91d86b5b3944f03f8e7c41fd0275505 | 133 | package org.poem.heart;
/**
* @author Administrator
*/
public class Heartbeat {
public static final Long TIME = 3 * 1000L;
}
| 13.3 | 46 | 0.669173 |
3883f440d7dea449e34eed12274d14a4e8a4638d | 2,836 | package com.example.module.resource.model;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
@Data
public class ArchiveManageNew {
private String number = StringUtils.EMPTY; // 业绩编码 > 合同编号
private String sysNumber = String... | 48.067797 | 72 | 0.721791 |
601f5f1e42f17b538d9c60b7d7e11011c2770bb3 | 2,091 | package gerador.de.memes.meme.util;
import java.io.File;
import java.io.FileOutputStream;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.grap... | 29.041667 | 100 | 0.730751 |
b2cda008916a2974e818b19ae4120ebfb7d3c937 | 312 | package com.zup.academy.cartao.domain;
public enum StatusBloqueioCartao {
BLOQUEADO("BLOQUEADO"),
NAO_BLOQUEADO("NAO_BLOQUEADO");
private String value;
private StatusBloqueioCartao(String value){
this.value = value;
}
public String getValue() {
return value;
}
}
| 17.333333 | 47 | 0.663462 |
6be33f36e68934ce8373b250482a6c5b2bc5d250 | 4,697 | /**
* 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.077465 | 94 | 0.692357 |
63cfa1055be9fdb55915ba7c7c607b382197bccc | 4,604 | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.fileEditor.impl.text;
import com.intellij.openapi.editor.Document;
import com.intellij.openapi.fileEditor.FileEditorState;
import com.intellij.openap... | 33.122302 | 140 | 0.72437 |
7c3adda170d23c2d0b9d9aaef53d3c741e93d333 | 8,449 | /*-
* #%L
* LmdbJavaNative
* %%
* Copyright (C) 2016 - 2021 The LmdbJava Open Source Project
* %%
* 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/licen... | 28.257525 | 81 | 0.653924 |
9c8824588bf9994fa8f040c14ee37e4003a83589 | 4,037 | /*
* Copyright (c) 2018 Informatics Matters 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 ... | 36.369369 | 123 | 0.708447 |
613d7953b2c1a3a812a37bb19779727c249a0990 | 926 | package com.thoughtworks.twist.core.execution;
import com.thoughtworks.gauge.datastore.DataStoreFactory;
/**
* TwistSuiteDataStore is a wrapper for using suite level DataStore of Gauge.
*/
public class TwistSuiteDataStore{
public Object put(Object key, Object value) {
if (key == null) {
thro... | 28.9375 | 77 | 0.661987 |
f443400826e758f292551e3a3631f0d3bee6c44b | 1,878 | /*
* Copyright 2014 MOSPA(Ministry of Security and Public Administration).
*
* 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
*
* Unl... | 22.357143 | 85 | 0.677849 |
1b8fec9eb6db38aad31c40d333e18cc468559469 | 4,375 | /**
* Copyright (c) 2018 Gluon
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and t... | 45.572917 | 111 | 0.699657 |
3a175b37fddcfc09c7c661b57bd279d2e7fb68ae | 1,139 | package com.lxm.chapter_2.provider;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
/**
* Created by lxm on 17/2/8.
*/
public class DbOpenHelper extends SQLiteOpenHelper{
private static final String DB_NAME = "book_provider.db";
... | 27.780488 | 75 | 0.689201 |
acaabb0102db4b479ba354125933bc4f2e968c5c | 2,639 | /*
* 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 ... | 32.9875 | 114 | 0.681319 |
343cb24491db89013779e4020bbfa2278d9016ff | 1,302 | package com.redescooter.ses.service.mobile.b.service.base.impl;
import java.util.List;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.redescooter.ses.service.mobile.b.dao.base.CorExpressOrderTraceMapper;
import com.redescooter.ses.service... | 29.590909 | 155 | 0.777266 |
5aa1fd317479dabc0a7b31910e2bcf93b8f0462a | 1,775 | package com.github.raonigabriel.imdb.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.http.HttpMethod;
import org.springframework.security.authentication.ReactiveAuthenticationManager;
import org.springframework.securi... | 43.292683 | 119 | 0.830423 |
3045f9ddf4373de3075fb35a515fb86422a8e753 | 481 | package top.plgxs.common.core.api.menu;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* @author Stranger。
* @version 1.0
* @since 2021/6/9 11:31
*/
@Data
public class MenuInit implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 首页信息
*/
... | 15.516129 | 52 | 0.623701 |
a797e0b5712fc59c4987f0d4ccb19d05e5f4d399 | 643 | package com.ning.hfind.primary;
import com.ning.hfind.Find;
import com.ning.hfind.util.PushbackIterator;
import org.apache.commons.cli.Option;
public class OperandFactory
{
public static Operand operandFromOption(PushbackIterator<Option> iterator)
{
Option o = iterator.next();
if (o.getOpt().e... | 25.72 | 78 | 0.601866 |
d31a1a0c6572f0deb46d3555a00eac8fa406b9e8 | 2,194 | package com.ambrosoft.exercises;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.Collection;
import java.util.Collections;
import java.util.Map;
import java.util.function.Function;
import java.util.regex.Pattern;
import java.util.stream.Collectors;
import java.util.s... | 41.396226 | 125 | 0.617593 |
4c293b0a7d53221799c8fb70bb1494bca72b01e7 | 1,847 | /*
* 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 ... | 31.305085 | 79 | 0.693557 |
943201df98d5aca890b2561432e07f437670002e | 360 | package com.github.mustahsen.broadcastersample.dto;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
/**
* The type Inner object dto.
*/
@Data
@Builder
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class InnerObjectDto {
... | 18 | 51 | 0.802778 |
1df8e83d1b2a0ba70ececa119eb6b106805483d7 | 1,799 | /*
* 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 co.edu.uniandes.csw.gastronomia.entities;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.... | 19.769231 | 79 | 0.590884 |
b0a85d1af32bf89b9cc1085123d327959336b056 | 1,103 | package edu.gatech.gtri.trustmark.v1_0.impl.io.json;
import edu.gatech.gtri.trustmark.v1_0.impl.AbstractTest;
import edu.gatech.gtri.trustmark.v1_0.model.TrustmarkDefinition;
import org.apache.commons.io.FileUtils;
import org.junit.Test;
import java.io.File;
import static org.hamcrest.MatcherAssert.assertThat;
impor... | 31.514286 | 93 | 0.75884 |
b24de4d2915a6d84ec53fd30a0c55832d0fada3a | 1,048 | package com.huayue.role.controller;
import com.huayue.role.services.RoleService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.PathVariable;
import org.sprin... | 34.933333 | 112 | 0.764313 |
07a087e88e04b31c28c69d411512d942b8763da3 | 2,261 | package de.unidue.ltl.escrito.core.tc.stacking;
import java.io.File;
import java.util.Collections;
import java.util.List;
import java.util.Properties;
import org.dkpro.lab.storage.StorageService.AccessMode;
import org.dkpro.lab.storage.impl.PropertiesAdapter;
import org.dkpro.tc.core.Constants;
import org.dkpro.tc.ml... | 33.25 | 98 | 0.634675 |
fcd53c23b65cf355eb250f6a751666d7e0f4f635 | 9,749 | /*
* Copyright 2010-2020 Australian Signals Directorate
*
* 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 appl... | 48.98995 | 191 | 0.671556 |
4cd8ff0641a1948163a2d8b7f1ec83ae39f31450 | 4,582 | package com.gentics.mesh.core.rest.job;
import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.gentics.mesh.core.rest.admin.migration.MigrationStatus;
import com.gentics.mesh.core.rest.admin.migr... | 21.018349 | 114 | 0.713226 |
26fa8108ca0f84ce842463b5063eb6661b1c49f9 | 1,541 | /*********************************************************************
*
* Copyright (C) 2007 Andrew Khan
*
* This library 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 Foundation; either
* version 2.1 of th... | 25.262295 | 76 | 0.641142 |
7e14737825d6ed583bee66a4ff886b8de7b2355d | 865 | package org.shipstone.demo.cache.commons.web.validation;
import org.shipstone.demo.cache.commons.domain.IdentifiedObject;
import org.springframework.validation.BindingResult;
/**
* Projet commons Spring
*
* @author François Robert
* LICENCE Apache 2.0
*/
public interface ConsistencyUpdateProcessor extends Bindin... | 33.269231 | 183 | 0.797688 |
a69528bd68c0cee6e89d62512d756c733586e09e | 385 | package org.torpay.engine.workflow;
import org.torpay.engine.workflow.ErrorHandler;
import org.torpay.engine.workflow.WorkflowContext;
import org.torpay.engine.workflow.WorkflowException;
public interface Activity {
public void execute(WorkflowContext context) throws WorkflowException;
public ErrorHan... | 20.263158 | 72 | 0.774026 |
9e38b057080a1c633f5ef93b6c420dc5ba979144 | 2,926 | /*
* Copyright 2018 NAVER Corp.
*
* 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 w... | 40.638889 | 155 | 0.760424 |
b24dae6f97625d8b20fe864d7723016525514933 | 3,859 | package com.smartbit8.laravelstorm.ui;
import com.intellij.ide.browsers.BrowserSelector;
import com.intellij.ide.browsers.WebBrowser;
import com.intellij.openapi.options.ConfigurationException;
import com.intellij.openapi.options.SettingsEditor;
import com.intellij.openapi.project.Project;
import com.jetbrains.php.con... | 40.197917 | 104 | 0.728945 |
a49eb263ea2fcac07ee7b58642913da935128146 | 401 | package solvas.authentication.exceptions;
import solvas.authentication.jwt.token.RawAccessJwtToken;
/**
* This exception is thrown when a user attempts to pass an invalid (for example: self-signed) JWT
*/
public class InvalidJwt extends Exception {
/**
* @param token The invalid CAS token
*/
publi... | 25.0625 | 98 | 0.710723 |
dd8643daca953739d4e708cb228b9df1d5b26f6b | 15,483 | package com.tinkerpop.gremlin.structure;
import com.esotericsoftware.kryo.Kryo;
import com.esotericsoftware.kryo.io.Input;
import com.esotericsoftware.kryo.io.Output;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.tinkerpop.gremlin.AbstractGremlinTe... | 51.268212 | 157 | 0.636375 |
4b69058f34f732da10ee20a7862eb1e8482e1a24 | 239 | //Francine de Paula Nogueira Santos
public class Triangulo {
public static void main (String[] args) {
System.out.println("*");
System.out.println("**");
System.out.println("***");
System.out.println("****");
}
}
| 18.384615 | 43 | 0.598326 |
1a0c19719590eb6b73f2d4e4134cf8c38f792c78 | 1,873 | package com.vaadin.tests.elements.twincolselect;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import java.util.List;
import org.junit.Before;
import org.junit.Test;
import com.vaadin.testbench.elements.LabelElement;
import com.vaadin.testbench.elements.TwinColSelect... | 32.293103 | 76 | 0.695141 |
fdc1802c27130aa6e6e4226a10d56fd10c3864f5 | 727 | package org.mybatis.spring.cache;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* redis dao cache
* @author lindezhi
* 2015年12月4日 下午5:11:23
*/
@Target(ElementType.METHOD)
@Retention(RetentionPoli... | 14.254902 | 48 | 0.65337 |
30962d937942e545e8605ec1c87cf5ef5fba5a32 | 4,288 | /**
* Copyright 2020 Alibaba Group Holding Limited.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | 46.608696 | 95 | 0.713386 |
88491da0fc6b473ad92a6dfa3ef0f3d3076a5370 | 10,440 | /**
* This code was auto-generated by a Codezu.
*
* Changes to this file may cause incorrect behavior and will be lost if
* the code is regenerated.
*/
package com.mozu.api.clients.commerce.customer;
import java.util.List;
import java.util.ArrayList;
import com.mozu.api.MozuClient;
imp... | 50.434783 | 396 | 0.738602 |
78b31c48d01f79da5b19d45fdce4a707216771fd | 6,819 | /*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 35.701571 | 99 | 0.673119 |
35cf0f73976f03e20b69fd550a35d1837f000837 | 553 | package org.quickstart.example.algorithm.seek;
/**
* @author youngzil@163.com
* @description TODO
* @createTime 2019/12/5 22:31
*/
public class OrderSearch {
/**
* 顺序查找平均时间复杂度 O(n)
*
* @param searchKey 要查找的值
* @param array 数组(从这个数组中查找)
* @return 查找结果(数组的下标位置)
*/
public static int orderSearch... | 18.433333 | 61 | 0.56962 |
bb0e2f8d7a779a881547e4613f00af8ea60193c7 | 4,039 | package com.xbw.spring.boot.cache;
import com.xbw.spring.boot.project.controller.CacheController;
import com.xbw.spring.boot.project.model.Person;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory... | 42.968085 | 163 | 0.714038 |
582dce28bcfa78b5b3bfe994c35396d44f75a0ae | 169 | open module dev.dominion.ecs.engine.benchmarks {
requires dev.dominion.ecs.api;
requires dev.dominion.ecs.engine;
requires jmh.core;
requires jol.core;
} | 28.166667 | 48 | 0.727811 |
43f4a602cead7745eace8d75beb0d439cab2b88b | 1,768 | /**
* 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... | 34.666667 | 85 | 0.733597 |
d1914111789c50051671f57869ed8f0709878794 | 458 | package io.maphey.lock.zk.lock.annotation;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration({ "classpath:spring-con... | 20.818182 | 71 | 0.777293 |
e10153eaf29c1c1caab90a87e7118c403d36fc17 | 4,503 | /*
* Copyright 2015 Open Networking Laboratory
*
* 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 appl... | 27.968944 | 82 | 0.467466 |
0c0dc08f0ca8634bdcd8ccf11e405290233e723e | 1,562 | package com.trkj.framework.mybatisplus.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.trkj.framework.entity.mybatisplus.Card;
import com.trkj.framework.entity.mybatisplus.Leave;
import com.trkj.framework.vo.*;
import org.springframework.web.bind.annotation.PostMapping;
import java.util.List;... | 20.285714 | 77 | 0.642125 |
60d2da7e3aa517b017fef48c4a90eaf86be4c2a2 | 2,283 | package com.example.android.miwok;
import android.content.Context;
import android.support.v4.content.ContextCompat;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import j... | 34.074627 | 96 | 0.693824 |
fa09673f27c13fb0a1a17eb4bc865d394a44c791 | 486 | package pl.cwanix.opensun.authserver.packet.c2s.auth;
import pl.cwanix.opensun.authserver.packet.AuthServerPacketOPCode;
import pl.cwanix.opensun.commonserver.packets.Packet;
import pl.cwanix.opensun.commonserver.packets.annotations.IncomingPacket;
@IncomingPacket(category = AuthServerPacketOPCode.Auth.CATEGORY, oper... | 34.714286 | 118 | 0.82716 |
3ac8468afb5ad72614b16a4fd63d5d9c9bec051a | 820 | package catsrabbits;
import java.util.*;import javax.media.opengl.GL2;import javax.media.opengl.glu.GLU;
public class CatGroup implements CritterGroup{
private List<Cat>cats=new ArrayList<Cat>();
public CatGroup(GL2 gl,GLU glu){
// format: init x, init y, init z, init angle, speed, tRate, gl, glu
cats.... | 37.272727 | 84 | 0.668293 |
d6c3c9e39f2354b7619adb45dd1a2e2347271417 | 2,313 | package com.diguage.algorithm.leetcode;
/**
* = 378. Kth Smallest Element in a Sorted Matrix
*
* https://leetcode.com/problems/kth-smallest-element-in-a-sorted-matrix/[Kth Smallest Element in a Sorted Matrix - LeetCode]
*
* Given a n x n matrix where each of the rows and columns are sorted in ascending order, fin... | 30.84 | 197 | 0.543882 |
75146305c9a4de66a2fb7ccd283782ea72ba8b01 | 2,012 | package com.tazine.algorithm.playground;
import java.util.Arrays;
/**
* QuickSort Practice
*
* @author frank
* @since 1.0.0
*/
public class QuickSort {
public static void main(String[] args) {
int[] arr = {69, 62, 89, 37, 97, 17, 28, 49};
//quickSort(arr, 0, arr.length - 1);
sort(arr... | 24.839506 | 64 | 0.390656 |
19fc4b1237a5b2178ccccc67fdff7ab55c0c08d3 | 519 | package pr0x79.instrumentation.exception;
import pr0x79.instrumentation.accessor.IAccessor;
/**
* This exception is thrown when something goes wrong with
* an {@link IAccessor} during the registration or instrumentation
*/
public class InstrumentorException extends RuntimeException {
/**
*
*/
private static... | 22.565217 | 67 | 0.764933 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.