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 |
|---|---|---|---|---|---|
0d6d11fba911307ff6a9f5385c026c1acf7391f6 | 389 | package com.orm.model;
import com.orm.annotation.Table;
@Table
public class NestedMixedBBModel {
private RelationshipMixedBModel nested;
private Long id;
public NestedMixedBBModel() {}
public NestedMixedBBModel(RelationshipMixedBModel nested) {
this.nested = nested;
}
public RelationshipMixedBModel getNest... | 16.208333 | 60 | 0.755784 |
74fd1092bf3a40408971a9e73d0d715a4ffb6424 | 445 | package org.learning;
import java.util.Comparator;
/**
* Created by Zdenca on 7/19/2017.
*/
public class StringLengthComparator implements Comparator<String> {
@Override
public int compare(String s1, String s2) {
int len1 = s1.length();
int len2 = s2.length();
if (len1 > len2) {
... | 19.347826 | 67 | 0.539326 |
d68c2f458a8e36cdc2f1ac017ce80b67cf58b111 | 4,340 | /*
* Spring JDBC Plus
*
* Copyright 2020-present 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... | 25.988024 | 105 | 0.732719 |
d6b3d42adc70ca266a413d3ed22a44fecd50ca06 | 49,588 | package net.minecraft.world.level;
import com.google.common.collect.Lists;
import com.mojang.serialization.Codec;
import java.io.IOException;
import java.util.Iterator;
import java.util.List;
import java.util.Objects;
import java.util.Random;
import java.util.function.Consumer;
import java.util.function.Predicate;
imp... | 41.705635 | 438 | 0.659474 |
dc14b985815fcf3c8bdcf02f04703d6101d79f7d | 6,721 | /*
* Copyright (C) 2017 Orange
*
* This software is distributed under the terms and conditions of the 'Apache-2.0'
* license which can be found in the file 'LICENSE.txt' in this package distribution
* or at 'http://www.apache.org/licenses/LICENSE-2.0'.
*/
package com.orange.common.logging.web;
import java.io.IOE... | 29.60793 | 129 | 0.690373 |
d1a612ca3b4e8bc02a2bffc37f654e42d463bb87 | 1,348 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.dadoco.cat.event;
import com.dadoco.cat.model.Contribuyente;
import java.util.ArrayList;
import java.util.List;
/**
*
*... | 24.962963 | 79 | 0.722552 |
4eed24d480f5a57b0ecaf9eef9fdf6ad507af95d | 7,095 | /*
* The MIT License (MIT)
*
* Copyright (c) 2017 Red Hat, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use... | 41.982249 | 154 | 0.684003 |
36d29f1109ecc8f09a8133860f77cfde72635131 | 6,430 | package tests;
import models.CampaignProduct;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.testng.annotations.Test;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.MatcherAssert... | 36.534091 | 122 | 0.706843 |
c1306711cf1590f9cc34ac0c059bb54a667905af | 502 | /*
Ex048 Faça um programa que calcule a soma entre todos os números impares que
são múltiplos de três e que se encontram no intervalo de 1 até 500.
*/
package ex048;
public class Ex048 {
public static void main(String[] args) {
int s = 0;
for (int c = 0; c <= 500; c+=3)
if(c % 2 == ... | 22.818182 | 115 | 0.559761 |
72fb5eb70b3da62ef4d2b04432c36e1bede5fdb9 | 4,770 | /*
* Mastercard Loyalty Connect Service
* Connecting payment and retail loyalty into a single checkout experience
*
* The version of the OpenAPI document: 2.2.1
* Contact: apisupport@mastercard.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-ge... | 30.774194 | 156 | 0.743187 |
43c46546a57d0fbedef9e10bcc68db0c5afeaf5e | 1,167 | package com.examples.game.tetris.shape;
import java.awt.Color;
import static com.examples.game.tetris.common.Constants.BG_COLOR;
public final class ZShape extends AbstractShape {
private static final Color COLOR = new Color(255, 0, 0);
public ZShape(Point rotationPoint, RotationState state) {
super(rotatio... | 24.829787 | 67 | 0.62982 |
af4e131e0252c4415f1d04deb61a1a185899a6fb | 203 | package gestione.pubblicazioni.service;
import java.util.List;
import gestione.pubblicazioni.entities.Fumetto;
public interface FumettoService {
List<Fumetto> getAll();
Fumetto add(Fumetto f);
}
| 15.615385 | 47 | 0.783251 |
8bdddc4ae6a41010ca5a182b4f7aaafd2857e178 | 545 | class org.junit.runners.ParentRunner$ClassRuleCollector implements org.junit.runners.model.MemberValueConsumer<org.junit.rules.TestRule> {
final java.util.List<org.junit.runners.RuleContainer$RuleEntry> entries;
public void accept(org.junit.runners.model.FrameworkMember<?>, org.junit.rules.TestRule);
public java.... | 68.125 | 138 | 0.816514 |
7d954b6c278a12d71c5468561ee3a7b9b3f164bf | 1,593 | package com.example.activitytest;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class Register extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {... | 34.630435 | 101 | 0.57941 |
82ac1b91c8ad40aaf5798b793a170a6779a840db | 394 |
package charj.translator;
public class LiteralType extends ClassSymbol implements Type {
public Type baseType;
public String literal;
public LiteralType(SymbolTable symtab, Type _baseType) {
super(symtab, _baseType.getTypeName());
baseType = _baseType;
}
public String getTypeName... | 23.176471 | 62 | 0.667513 |
d3ed75e584c0ec3c762e1a045ac014c230a51757 | 2,103 | package extracells.gridblock;
import appeng.api.networking.*;
import appeng.api.networking.storage.IStorageGrid;
import appeng.api.parts.PartItemStack;
import appeng.api.storage.IMEMonitor;
import appeng.api.storage.data.IAEFluidStack;
import appeng.api.util.AEColor;
import appeng.api.util.DimensionalCoord;
import ext... | 22.612903 | 69 | 0.763671 |
d0b9767a4d8301b48b8187064aed4bed685ed4f1 | 945 | package com.lt.hm.wovideo.utils;
import com.lt.hm.wovideo.interf.OnUpdateLocationListener;
import com.lt.hm.wovideo.interf.updateTagLister;
import java.util.ArrayList;
/**
* Created by xuchunhui on 16/8/17.
*/
public class UpdateRecommedMsg {
public ArrayList<updateTagLister> downloadListeners = new ArrayList... | 27 | 91 | 0.667725 |
a166fad39e86acabd12b4a8958b2cde80449b395 | 14,256 | /*
* 07/28/2008
*
* RtfGenerator.java - Generates RTF via a simple Java API.
*
* This library is distributed under a modified BSD license. See the included
* RSyntaxTextArea.License.txt file for details.
*/
package org.fife.ui.rsyntaxtextarea;
import java.awt.Color;
import java.awt.Font;
import java.awt.Toolki... | 29.576763 | 116 | 0.637065 |
b77ab72ca3453ae445c4a38171100a5b044e69f7 | 555 | package com.jeecms.cms.dao.assist;
import java.util.List;
import com.jeecms.cms.entity.assist.CmsWebservice;
import com.jeecms.common.hibernate4.Updater;
import com.jeecms.common.page.Pagination;
public interface CmsWebserviceDao {
public Pagination getPage(int pageNo, int pageSize);
public List<CmsWebservice> g... | 26.428571 | 70 | 0.812613 |
4be73495d97a3f99d4a17085681e988714552bc4 | 5,184 | // ============================================================================
//
// Copyright (C) 2006-2018 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have receiv... | 34.791946 | 131 | 0.656443 |
192f88ac5b39fd44f57620f4d9c4b680ef7e1b77 | 671 | package com.taoswork.tallycheck.descriptor.service.impl;
import com.taoswork.tallycheck.descriptor.metadata.processor.GeneralClassProcessor;
import com.taoswork.tallycheck.descriptor.metadata.processor.GeneralFieldProcessor;
import com.taoswork.tallycheck.descriptor.metadata.processor.IFieldProcessor;
/**
* Created ... | 33.55 | 83 | 0.736215 |
3a04343bce40caa648f311bdcced69f9ebf4192d | 3,355 | package io.github.ealenxie.dingtalk;
import io.github.ealenxie.dingtalk.message.DingRobotMessage;
import org.apache.commons.codec.binary.Base64;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEn... | 36.467391 | 183 | 0.705812 |
cc8bfd4e683787aeda79555b21d40e950658f9e4 | 1,763 | /*
* Copyright 2016-present 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 appli... | 27.123077 | 77 | 0.686897 |
40a85f85168a693542b5b70db0552887f18ed03d | 23,723 | package com.siberiadante.androidutil.util;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.ActivityManager;
import android.app.AppOpsManager;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ApplicationInfo;
import android.content.pm.Packa... | 32.058108 | 123 | 0.612149 |
69a59e65d27667ce9c1f9b6c58d4cb4e6d0ce244 | 327 | package com.north.base.service;
import java.io.Serializable;
/**
* 接口的描述
*
* @Author zhengxiangnan
* @Date 2018/6/25 14:40
*/
public interface RedisService {
void set(Serializable key, Object value);
void set(Serializable key, Object value, Long expireTime);
<T> T get(Serializable key,Class<T> cla... | 17.210526 | 62 | 0.69419 |
40e63d3f424a23e838b0ea3955e2d53c8e09554d | 506 | package com.lanshu.common.core.exceptions;
/**
* 公共异常
*
* @author Uncle Lan
* @date 2019/3/16 20:28
*/
public class CommonException extends RuntimeException {
private static final long serialVersionUID = 1L;
public CommonException() {
}
public CommonException(String msg) {
super(msg);
... | 17.448276 | 61 | 0.656126 |
955be0c9cab5880734eae4e7873940ab1209676c | 751 | package es.upm.oeg.camel.oaipmh.component;
import org.joda.time.DateTime;
import org.joda.time.DateTimeZone;
import org.joda.time.format.ISODateTimeFormat;
public class TimeUtils {
/**
* Current time (UTC)
* @return
*/
public static String current(){
String timezone = "Zulu";//UTC
... | 25.033333 | 87 | 0.69241 |
871f03da52a0b001358e299f0775af2763c52e0c | 423 | package com.wissen.e_commerce.pojo;
import java.util.List;
public class AddProductsBo extends BaseInventoryBo{
private List<ProductBo> products;
public List<ProductBo> getProducts() {
return products;
}
public void setProducts(List<ProductBo> products) {
this.products = products;
}
@Ove... | 17.625 | 54 | 0.687943 |
5d58f5147fc86e0110ab56afa13478854b4e7010 | 6,179 | /*
* Copyright (C) 2005 - 2014 TIBCO Software Inc. All rights reserved.
* http://www.jaspersoft.com.
*
* Unless you have purchased a commercial license agreement from Jaspersoft,
* the following license terms apply:
*
* This program is free software: you can redistribute it and/or modify
* it under the terms... | 30.141463 | 95 | 0.770999 |
e39dd0abd01d917b3e40d254d49b6f89bd8415d1 | 277 | package io.gitlab.mkjeldsen.crontention;
import nl.jqno.equalsverifier.EqualsVerifier;
import org.junit.jupiter.api.Test;
final class ContentionCacheKeyTest {
@Test
void equals_contract() {
EqualsVerifier.forClass(ContentionCacheKey.class).verify();
}
}
| 21.307692 | 67 | 0.754513 |
f8425a2af8ceef6f533f488ea349ea2819c1081e | 644 | package com.lx.hd.ui.activity;
import android.view.View;
import android.widget.LinearLayout;
import com.lx.hd.R;
import com.lx.hd.base.activity.BaseActivity;
/*
收费标准
*/
public class ChareStandardActivity extends BaseActivity {
private LinearLayout linear;
@Override
protected int getContentView() {
... | 22.206897 | 58 | 0.690994 |
99589a3eb06aed53f255281e33aabdff0d597b84 | 1,579 | package com.my;
/**
* 两两交换链表中的节点
* @author shanghang
*/
public class SwapPairs {
public static class ListNode {
int val;
ListNode next;
ListNode(int x) { val = x; }
}
public static ListNode swapPairs(ListNode head) {
//防止空节点或一个节点
if(head == null || head.next == n... | 25.885246 | 57 | 0.457251 |
c65aeb93e1ec83989e32e76e1eca788688dbb22b | 1,759 | /**
*/
package context.tests;
import context.ContextFactory;
import context.Focus;
import junit.framework.TestCase;
import junit.textui.TestRunner;
/**
* <!-- begin-user-doc -->
* A test case for the model object '<em><b>Focus</b></em>'.
* <!-- end-user-doc -->
* @generated
*/
public class Fo... | 19.544444 | 61 | 0.570779 |
350d8d2fcdeeea6016ed716142340a58d6bd52a2 | 13,452 | /*******************************************************************************
* Copyright (c) 2008 SAP AG.
* 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
* ... | 40.155224 | 122 | 0.5843 |
b012ddaccbabb2ad14ed9396b502a08ddfbfc61a | 8,280 | /*
* Copyright 2005-2014 The Kuali Foundation
*
* Licensed under the Educational Community 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.osedu.org/licenses/ECL-2.0
*
* Unless required by appli... | 40.788177 | 166 | 0.697947 |
e893f2b164b622abaaf7ea674c9999df3a1c8323 | 386 | package com.atguigu.gmall.ums.mapper;
import com.atguigu.gmall.ums.entity.UserLoginLogEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 用户登陆记录表
*
* @author Edmund
* @email jie100941@gmail.com
* @date 2021-05-14 00:29:52
*/
@Mapper
public interfac... | 21.444444 | 76 | 0.772021 |
2d1210fc06fd845c1fb71e8324c2cedd7e9565c8 | 623 | package marchsoft.modules.system.entity.dto;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import marchsoft.base.BaseDTO;
import java.io.Serializable;
/**
* description:JobDTO
*
* @author RenShiWei
* Date: 2020/11/24 17:26
*/
@EqualsAndHashCode(callSuper = true)
@Data
@No... | 18.323529 | 61 | 0.725522 |
b0b3e1008ad9f4a72111e4c9f3ad377f74dd6f94 | 1,539 | package com.drugbox.DAO;
import com.drugbox.Entity.UserInfo;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype... | 27 | 68 | 0.697206 |
b869c3c740cb1f64d475efca7c35596824edf6ab | 1,062 | package org.pcsoft.app.jimix.app.ui.dialog;
import de.saxsys.mvvmfx.FxmlView;
import de.saxsys.mvvmfx.InjectViewModel;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.TextField;
import org.pcsoft.app.jimix.app.ui.component.BlenderComboBox;
import org.pcsoft.framework.jfex.ui.comp... | 33.1875 | 111 | 0.788136 |
acde9125cba404f64fd6b07e87af17e6d1483125 | 1,382 | package stacks;
import org.hamcrest.core.Is;
import org.junit.Assert;
import org.junit.Test;
import static org.junit.Assert.*;
public class PriorityStackTest {
@Test
public void offerTest() {
PriorityStack<Integer> stack = new PriorityStack<>(Integer::compareTo);
stack.offer(1);
stac... | 25.592593 | 79 | 0.596237 |
524474c3c9e4a475f33ada206e09c824013237fe | 5,551 | package se.qxx.protodb.test;
import static org.junit.Assert.*;
import java.io.File;
import java.sql.SQLException;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
... | 29.37037 | 149 | 0.718249 |
c050b3858b34ba3cdb5cc2f873cfe1b43957d06b | 3,936 | package fi.riista.feature.permit.application;
import fi.riista.feature.account.user.UserRepository;
import fi.riista.feature.permit.application.archive.PermitApplicationArchiveDTO;
import fi.riista.feature.permit.application.archive.PermitApplicationArchiveService;
import fi.riista.feature.permit.application.email.Har... | 38.970297 | 118 | 0.756098 |
520f42e0fcadc9623e63e31f122bcfbf48569bb2 | 4,567 | /*
* Copyright (c) 2011-2017, Peter Abeles. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.org).
*
* 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... | 28.72327 | 100 | 0.706372 |
eb95de1ff42e42acfc0f9c3a7e02a5658d55b322 | 5,114 | package utils;
import models.es.Customer;
import org.apache.http.HttpHost;
import org.elasticsearch.action.search.SearchRequest;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.client.RequestOptions;
import org.elasticsearch.client.RestClient;
import org.elasticsearch.client.RestClientB... | 42.97479 | 102 | 0.694955 |
978f4f8ae91c0c39c2f7c85a4c64ca10f125bd49 | 2,457 | package org.redquark.onlinejudges.leetcode.stack;
import java.util.Stack;
/**
* @author Anirudh Sharma
*/
public class DecodeString {
public String decodeString(String s) {
// StringBuilder to store the decoded string
StringBuilder decodedString = new StringBuilder();
// Special case
... | 36.132353 | 82 | 0.502646 |
331f5a9c4051d6d5a6a3a5aa993ffe472594cb71 | 1,146 | /*
* This file is generated by jOOQ.
*/
package com.github.mahjong.main.repo.jdbc.generated;
import com.github.mahjong.main.repo.jdbc.generated.tables.Game;
import com.github.mahjong.main.repo.jdbc.generated.tables.Player;
import com.github.mahjong.main.repo.jdbc.generated.tables.SchemaVersion;
import javax.annotat... | 27.285714 | 135 | 0.697208 |
50f34ae3b75c57d6c50940767daf9e6026144f05 | 643 | package com.robert.kafka.kclient.boot;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* This annotation is used for a method which serve as an exception handle... | 24.730769 | 79 | 0.768274 |
fea2f2c08ccd21525f0d97b7a06d74e9712a9db7 | 2,641 | package org.motechproject.tasks.repository;
import org.ektorp.CouchDbConnector;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.motechproject.tasks.domain.TaskStatusMessage;
import org.motechproject.testing.utils.SpringIntegrationTest;
import org.springframework.beans.factory.annotation.Autowired;
i... | 35.689189 | 99 | 0.741386 |
8cc274b63d063b215c13fe7ec5dc80f4943a1994 | 616 | package com.milaboratory.core.alignment.blast;
import com.milaboratory.core.Range;
import com.milaboratory.core.alignment.Alignment;
import com.milaboratory.core.sequence.Sequence;
public class BlastHitExt<S extends Sequence<S>> extends BlastHit<S, String> {
public BlastHitExt(Alignment<S> alignment, double score... | 36.235294 | 153 | 0.743506 |
df5738ce2a8c3b68be5c2cbdcd3ed21c618f6e54 | 849 | package com.rvprg.sumi.transport;
import com.google.inject.Inject;
import com.rvprg.sumi.protocol.MessageConsumer;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.socket.SocketChannel;
public class ServerChannelInitializer extends ChannelInitializer<SocketChannel> {
private final MessageConsu... | 33.96 | 124 | 0.797409 |
89c733803e5a1a128b31c643f353df09d20f35a7 | 1,360 | import java.util.*;
public class BusinessCenter {
public static void main(String[] args) {
new BusinessCenter().run();
}
class Node {
int min, max, x;
Node(int Min, int Max, int X) { min=Min; max=Max; x=X; }
}
Scanner scn;
int n, m;
int u, d;
void run() {
... | 26.666667 | 76 | 0.416912 |
6a5a4efdce4ac6f437c8dd082e5e34f3e20b4209 | 1,883 | package shared.systems;
import java.util.List;
import org.joml.Vector3f;
import gameServer.components.ShipComponent;
import hecs.Entity;
import hecs.EntityManager;
import shared.components.AIBotComponent;
import shared.components.MovementComponent;
import shared.components.ObjectComponent;
public class... | 33.625 | 149 | 0.729687 |
90c9e5f4c6bec4f05258d2bd06fd229ba91de26e | 1,287 | package vo;
//주식 정보 담는 vo객체
public class StockInfoVO {
private String JongCd;
private String gettime;
private String janggubun;
private String DungRakrate_str;
private int dailystock_length;
private String[] Stockinfo = new String[17];
private String[][] Dailystock = new String[10][9];
public String getJongC... | 22.189655 | 58 | 0.737374 |
833c9ced79199eb067227bc56a18bcb2dbb51c9c | 5,603 | package PaDialogs;
import PaForms.PaImageTabModel;
import PaGlobal.*;
import java.awt.Color;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.WindowAdapter;
import java.awt.even... | 20.374545 | 94 | 0.681956 |
ab81faf716112fffdc9d5e528b2babefaddda0e4 | 527 | package if_programs;
public class triangle_possornot_type
{
void main(int a,int b,int c )
{
if(a==b&&b==c&&a+b>c&&b+c>a&&a+c>b)
System.out.println("triangle is possible and is equilateral");
else if(a==b||b==c||c==a&&a+b>c&&b+c>a&&a+c>b)
System.out.println("triangle is possible and is is... | 32.9375 | 67 | 0.590133 |
9ab4545125aebf8a141899b431e3a4d0570179df | 189 | package pt.ulisboa.forward.ewp.api.client.utils;
public class HttpConstants {
private HttpConstants() {}
public static final String HEADER_X_HAS_DATA_OBJECT = "X-Has-Data-Object";
}
| 21 | 76 | 0.767196 |
bad451c113b577174430dc6cc1fd8c86fd141722 | 6,176 | package kr.pe.codda.impl.task.server;
import static kr.pe.codda.jooq.tables.SbMemberTb.SB_MEMBER_TB;
import java.sql.Timestamp;
import org.jooq.DSLContext;
import org.jooq.Record2;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import kr.pe.codda.common.message.AbstractMessage;
import kr.pe.codda.impl.mes... | 42.888889 | 114 | 0.78967 |
a87b94fd15a76f5bf8d1ed584850f951125a7a6a | 33,898 | package com.ninchat.sdk.activities;
import android.Manifest;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.pm.ActivityInfo;
import android.... | 45.017264 | 227 | 0.656912 |
5763a76d84e32656acb0cf4241f294371ba8f891 | 1,811 | <#include "/macro.include">
<#assign className=table.className>
<#assign classNameLower=className?uncap_first>
package ${basepackage}.${modulepackage}.service.impl;
import org.springframework.stereotype.Service;
import ${basepackage}.${modulepackage}.dao.${className}Dao;
import ${basepackage}.${modulepackage}.model.$... | 30.694915 | 93 | 0.699613 |
7dc82bc39e3f78307f25516788cfc6011c917b6a | 679 | package com.yudong80.java.ch07;
import java.text.SimpleDateFormat;
import java.util.Date;
public class SimpleDateFormatExample {
public static void main(String[] args) {
//1. Date 클래스로 현재 시간 얻기
Date now = new Date();
//2. SimpleDateFormat 클래스로 형식 적용
SimpleDateFormat dateFormat1 = new SimpleDateFormat("yy... | 30.863636 | 68 | 0.718704 |
ce88b11727a3a9f2b7e1351684f3dfd88adedc19 | 5,814 | 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 license... | 18.225705 | 814 | 0.81149 |
bd0dec1c8257911f74e1913eb534c8bbb9b0e1fb | 748 | package com.wangjiegulu.rapidooo.library.compiler.part.impl;
import com.squareup.javapoet.MethodSpec;
import com.squareup.javapoet.TypeSpec;
import com.wangjiegulu.rapidooo.library.compiler.oooentry.OOOEntry;
import com.wangjiegulu.rapidooo.library.compiler.part.PartBrew;
import javax.lang.model.element.Modifier;
/*... | 35.619048 | 85 | 0.775401 |
b80a78669c750ca50b8c1cff6ae22afca9eeb3a7 | 23,955 | /*
* 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 ... | 42.100176 | 181 | 0.686036 |
0415264e9e5a275f2ff16bd677453579d516c4ea | 226 | package server;
public class WebsocketException extends Exception{
public WebsocketException(String message){
super(message);
}
public WebsocketException(String message, Throwable cause) {
super(message, cause);
}
}
| 18.833333 | 61 | 0.774336 |
38b0c773a5e9fd37aa826528a582f2f1a58d0a4d | 477 | package com.dumas.pedestal.framework.springboot.web.apicontrol.annotation;
import org.springframework.web.bind.annotation.Mapping;
import java.lang.annotation.*;
/**
* API 版本控制注解
*
* @author andaren
* @version V1.0
* @since 2020-05-12 16:33
*/
@Mapping
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({E... | 17.035714 | 74 | 0.691824 |
c32d0c01b9c1c767b90c1c0ed9031d79ef1c604e | 2,363 | /*
* Copyright 2016 Red Hat, Inc. and/or its affiliates.
*
* 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... | 38.112903 | 111 | 0.626746 |
38fac81e2a20899ed645a477a57c32ba7187d648 | 883 | package org.ghxiao.rxjava.intro;
import io.reactivex.rxjava3.core.Flowable;
import java.time.LocalDateTime;
import java.util.concurrent.TimeUnit;
public class RxMultiCast {
public static void main(String[] args) {
final Flowable<Long> feed = Flowable.interval(1, 1, TimeUnit.SECONDS).share();;
fee... | 27.59375 | 87 | 0.584371 |
c9bf180900c8aab3ffab311af69733231934f639 | 3,321 | package com.ngengs.android.cekinote.detailgame;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.view.ViewGroup;
import com.ngengs.android.cekinote.data.model.Game;
import com.ngengs.android.cekinote.detailgame.hi... | 36.9 | 254 | 0.661548 |
f4cc4abd9578ae6486e3e66cccb61112f55886a5 | 7,214 | package com.tomaskostadinov.openbeatz.fragment;
import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTabHost;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import c... | 34.682692 | 136 | 0.611173 |
f8a90de8e23e68485588bf630a5ca9eab370ea0a | 3,629 | package il.org.spartan;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Formatter;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import fluent.ly.Iterables;
import fluent.ly.idiomatic;
import il.org.spartan.... | 30.241667 | 95 | 0.65941 |
a67da5254ddf34308d40a20b24d05fd940098c38 | 473 | package org.pinae.simba.aop;
import java.lang.reflect.Method;
/**
* 判断方法或者类是否满足做为切入点的条件
*
* @author Huiyugeng
*
*/
public interface Pointcut {
/**
* 判断指定的方法是否满足做为切入点的条件
*
* @param method 需要切入的方法
* @param arg 方法的参数
* @return 是否满足做为切入点
*/
public boolean matcher(Method method, O... | 15.766667 | 54 | 0.617336 |
3d4a121c13bb54b7662245eaa68509d7c2cb3cf5 | 920 | package com.atexpose.api.data_types;
import io.schinzel.basicutils.FunnyChars;
import org.apache.commons.lang3.StringUtils;
import org.junit.Test;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
/**
*
* @author Schinzel
*/
public class StringDTTest {
@Test
public ... | 27.058824 | 77 | 0.68587 |
11cff4a225649373e630e66f4b3a1c6fb1653ce9 | 11,482 | package com.company.moviesapp;
import android.app.Activity;
import android.app.ProgressDialog;
import android.arch.lifecycle.Observer;
import android.arch.lifecycle.ViewModelProviders;
import android.content.Context;
import android.content.ContextWrapper;
import android.content.Intent;
import android.content.SharedPre... | 40.572438 | 125 | 0.606863 |
cd00d526785bd41a3f067e2fd44fa7f91f1c76f6 | 906 | package com.je_chen.collision;
import java.awt.*;
import java.util.ArrayList;
public class Main {
public static void main(String[] args) {
ArrayList objects = new ArrayList() ; //想要檢查碰撞的Object
QuadTree quad = new QuadTree(0, new Rectangle(0,0,600,600)); // 4 叉樹
quad.Clear();... | 28.3125 | 77 | 0.547461 |
c830e64c4cd2068c85bc53e3ba71812eb0ccb517 | 3,430 | /*
* Copyright 2011 CodeGist.org
*
* 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... | 33.960396 | 141 | 0.693878 |
3f9a70d0088a10d58b32d45e62568bdf908b4511 | 435 | package iota.client.gui.presenter;
import iota.client.UpdateAbleView;
import iota.client.model.EspDevice;
import java.util.List;
public interface IoTaPresenter {
public EspDevice getSelectedEspDevice();
public void setSelectedEspDevice(EspDevice devIn);
public List<EspDevice> getDeviceList();
publ... | 22.894737 | 60 | 0.790805 |
264bcfcd0028b166767f7cc02b01a801c67a15ea | 3,450 | package org.firstinspires.ftc.teamcode.RelicRecovery;
import com.qualcomm.robotcore.eventloop.opmode.Disabled;
import com.qualcomm.robotcore.eventloop.opmode.OpMode;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
import com.qualcomm.robotcore.util.ElapsedTime;
/**
* Created by MichaelL on 9/25/17.
*/
@Tele... | 35.9375 | 107 | 0.614783 |
05d19e119e506823ce7d81bbe00192a8b52bc7b6 | 9,203 | /*******************************************************************************
* Copyright 2017 Anindya Bandopadhyay (anindyabandopadhyay@gmail.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 t... | 34.339552 | 147 | 0.700315 |
537fd9975c3bbbc00cfe2fec46cfc904053039f0 | 1,112 | package chess;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import builder.ChessBuilderParts;
import debug.builder.DebugChessFactory;
import iterators.SquareIterator;
import layers.ColorBoard;
import layers.PosicionPiezaBoard;
import parsers.FENParser;
/**
* @author Mauricio Coria
*
*/
pu... | 21.384615 | 96 | 0.752698 |
b221f49d72dcd2d4c1be04ae80760ee12d980cb5 | 4,531 | /*******************************************************************************
* Copyright 2016 ContainX and OpenStack4j
*
* Licensed under the Apache License, Version 2.0 (the "License");... | 40.097345 | 99 | 0.577356 |
1ca4d580d07cddad6e25123f9f4a150d573aa606 | 611 | package org.example.demo.leetcode.twopointer;
import junit.framework.TestCase;
public class SolutionTest extends TestCase {
Solution solution;
@Override
protected void setUp() throws Exception {
super.setUp();
solution = new Solution();
}
public void testRemoveDuplicates() {
... | 21.821429 | 57 | 0.582651 |
64e78c0627b7421d9176a99e220fc54baabe19b1 | 558 | package com.jptangchina.jxcel;
import com.jptangchina.jxcel.bean.Student;
import org.junit.Assert;
import org.junit.Test;
import javax.swing.filechooser.FileSystemView;
import java.io.File;
import java.util.List;
public class JxcelParserTest {
@Test
public void testParseFromFile() {
String desktop =... | 26.571429 | 116 | 0.731183 |
1b6e6cd53b4bddd8ed3830c4c40fc8314f8c34ba | 2,186 | /*
* Copyright 2014 Groupon.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
*
* Unless required by applicable law or agreed to ... | 29.146667 | 102 | 0.642269 |
db4c8353d5c0006e404a0366de5b834585769b19 | 4,680 | package com.b2vnradarapi.b2vnradarapi.modules.radar.repository;
import com.b2vnradarapi.b2vnradarapi.modules.radar.dto.*;
import com.querydsl.core.types.Projections;
import com.querydsl.jpa.impl.JPAQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
... | 37.44 | 89 | 0.62094 |
87cebfe6a1284c1c77f23ecb3153f1628c8c9310 | 637 | package com.poliplanner.controller;
import com.poliplanner.data.MateriaRepository;
import com.poliplanner.domain.model.Materia;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@RestController
@CrossOrigin("*")
@RequestMapping(path = "/fpuna/materias", produces = "application/json")
public cl... | 26.541667 | 90 | 0.751962 |
4c6a2e75435a4d86f2be76837257821e75a78fce | 14,983 | /*
* 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 ... | 31.410901 | 184 | 0.724288 |
b7ade62794b1db510247fd9f1fe104bb88e8bfb7 | 916 | package org.fxmisc.richtext.model;
import javafx.beans.value.ObservableBooleanValue;
import org.fxmisc.undo.UndoManager;
import org.fxmisc.undo.UndoManagerFactory;
/**
* Undo/redo actions for {@link TextEditingArea}.
*/
public interface UndoActions {
/**
* Undo manager of this text area.
*/
Undo... | 31.586207 | 111 | 0.745633 |
addc3875b1cc759710c37b94b8cfdaf8a1ff7053 | 4,046 | /*
* Hydrogen Integration API
* The Hydrogen Integration API
*
* OpenAPI spec version: 1.2.1
* Contact: info@hydrogenplatform.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package co... | 27.52381 | 120 | 0.722689 |
0c7f2773d9dad32c1a0ce0e44c34dbd05604ce70 | 708 | import java.util.ArrayList;
import java.util.List;
public class Party extends Event{
private List<Event> eventList;
Party(String title, String date, String description) {
super(title, date, description);
this.eventList= new ArrayList<>();
}
public void addEvent(Event e){
List... | 24.413793 | 58 | 0.515537 |
7fcaafedcd502dd1b2abe8384470af476e925aa7 | 5,458 | /*
* Copyright 1&1 Internet AG, https://github.com/1and1/
*
* 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.212903 | 122 | 0.639062 |
908c06e804f8a8f81f01dec4ce9b3ee92f5549bf | 222 | package com.example.paging.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import com.example.paging.entity.Commit;
public interface CommitRepository extends JpaRepository<Commit, Integer> {
}
| 24.666667 | 74 | 0.833333 |
7e9a5c410c8729169b6bc9f28ee4b184b508ed02 | 1,947 | package com.gl.jxt.service.impl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.gl.jxt.common.dto.ResultModel;
import com.gl.jxt.dao.ICategoryDao;
import com.gl.jxt.dao.IDepartmentDao;
import com.gl.jxt.dao.IMemberDao;
import com.gl.jxt.domai... | 26.671233 | 84 | 0.672316 |
c5637a9586f494395bcafd32fd3863890cd514b4 | 2,869 | package jp.ac.kyushu_u.csce.modeltool.dictionary.dict.handler;
import java.io.File;
import java.text.MessageFormat;
import jp.ac.kyushu_u.csce.modeltool.dictionary.Messages;
import jp.ac.kyushu_u.csce.modeltool.dictionary.constant.DictionaryConstants;
import jp.ac.kyushu_u.csce.modeltool.dictionary.dict.Dictio... | 30.849462 | 113 | 0.735448 |
3e6364a9c5347147dbf56f764da3b433373f6094 | 1,342 | /*
* 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 lightsearch.server.timer;
import lightsearch.server.log.LoggerServer;
import lightsearch.server.thread.ThreadManager;
import l... | 31.952381 | 126 | 0.672131 |
0863a0a908aa8c80ef0e516c70947722fbaeb364 | 2,230 | package com.github.basking2.sdsai.net;
import org.junit.Test;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.SocketChannel;
import java.util.ArrayList;
import java.util.List;
import static org.junit.Assert.assertEquals;
/**
*/
public class TcpPoolTest {
@Test
public void ... | 27.195122 | 111 | 0.599552 |
08c8c3686fd7b655cb9aca0a92e61c4752447a9d | 6,672 | package gg.projecteden.nexus.features.events.y2020.halloween20;
import gg.projecteden.nexus.features.events.y2020.halloween20.models.ComboLockNumber;
import gg.projecteden.nexus.features.events.y2020.halloween20.models.Pumpkin;
import gg.projecteden.nexus.features.events.y2020.halloween20.models.QuestStage;
import gg.... | 36.861878 | 121 | 0.747302 |
d361f23f96f9a7c607227c5a939149b81d691d03 | 749 | package io.github.helvalius.fortune.client;
import io.github.helvalius.fortune.teller.IFortuneService;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.... | 41.611111 | 125 | 0.794393 |
7abf52f83138d83786d337d6a43a4e08f2c0304f | 4,534 | package com.ntk.ehcrawler.adapters;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.drawable.Drawable;
import android.support.v7.widget.RecyclerView;
import android.text.TextUtils;
import android.util.Log;
import and... | 40.482143 | 88 | 0.631672 |
d8eb96808188b2f483d36f5fa4e0301206736aca | 354 | package org.infinispan.server.core.configuration;
import org.infinispan.commons.configuration.Builder;
/**
* ProtocolServerConfigurationChildBuilder.
*
* @author Tristan Tarrant
* @since 5.3
*/
public interface SslConfigurationChildBuilder extends Builder<SslEngineConfiguration> {
SslEngineConfigurationBuild... | 22.125 | 87 | 0.80791 |
242086aa85ace5ee77111970bce2e8d760f24013 | 5,501 | /**
* Copyright (c) 2010, Sebastian Sdorra 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 copyright notice,
* this list of conditi... | 26.320574 | 94 | 0.64261 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.