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 |
|---|---|---|---|---|---|
7f026c47befad67d001163ddd8e50ab5d473a30a | 798 | package com.zzsong.device.edge.connect.resp;
import cn.idealframework.util.Asserts;
import lombok.Getter;
import lombok.Setter;
import javax.annotation.Nonnull;
/**
* @author 宋志宗 on 2022/4/7
*/
@Getter
@Setter
public class RegisterResp {
/** 第三方的设备id */
@Nonnull
private String oid;
/** 设备是否在线 */
privat... | 19.463415 | 59 | 0.695489 |
7d359d986fb6f7b62cc16af3ee4bbba3bbff3540 | 20,399 | /**
* Copyright (c) 2009-2010 TIBCO Software Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 34.516074 | 190 | 0.64111 |
fc3bb57f5a0ed58c08a80e5afa6489cf67f88337 | 5,182 | /*L
* Copyright Duke Comprehensive Cancer Center
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/catrip/LICENSE.txt for details.
*/
package edu.duke.cabig.catrip.gui.panels;
import edu.duke.cabig.catrip.gui.common.ClassBean;
import edu.duke.cabig.catrip.gui.components.C... | 31.791411 | 141 | 0.607102 |
c8d47f8e3d5cb45351080849a9b995307aadbda3 | 1,117 | package com.zoctan.api.service.impl;
import com.zoctan.api.core.service.AbstractService;
import com.zoctan.api.entity.ApiParams;
import com.zoctan.api.mapper.ApiParamsMapper;
import com.zoctan.api.service.ApiParamsService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation... | 28.641026 | 98 | 0.780662 |
6c12f85cdb6527af7dfbf73739ffbe29d43fc20f | 542 | package finalExam.p1;
public class Employee extends IndividualFiler {
public Employee(String taxID, ContactInfo contactInfo, Double earningsOfLastYear,
Double totalIncomeTax, Double mortgageInterest, Double propertyTax,
Double studentLoanAndTuition, Double retirementSaving, Double healthSaving,
Do... | 41.692308 | 96 | 0.802583 |
66a0d20ed718b124212def97b8921fe36d2e4474 | 2,737 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.quickclient.classes;
import java.awt.Component;
import java.awt.Cursor;
import javax.swing.JDesktopPane;
import javax.swing.table.DefaultTableModel;
import org.apache.log4j.Logger;
import org.quickclient.g... | 32.975904 | 171 | 0.614176 |
c32e999a8bd2adf694b6893aaedb77f136c8e2e0 | 5,355 | package game.gui.menu;
import com.intellij.uiDesigner.core.GridConstraints;
import com.intellij.uiDesigner.core.GridLayoutManager;
import com.intellij.uiDesigner.core.Spacer;
import game.gui.menu.AboutWindow;
import game.gui.menu.TitleWindow;
import game.gui.wizard.GameWizardWindow;
import javax.swing.*;
import java.... | 44.625 | 265 | 0.664613 |
913cba14209f68907cb4cb9f2c3d42884daa7e35 | 2,864 | package com.example.music;
import android.app.Service;
import android.content.Intent;
import android.media.MediaPlayer;
import android.os.Binder;
import android.os.Bundle;
import android.os.Environment;
import android.os.IBinder;
import android.os.Message;
import android.util.Log;
import java.io.File;
import java.io.... | 24.904348 | 93 | 0.581355 |
79f8dea6d8055621d1e5e33634f4e6f1dbfca74e | 4,820 | /*
* Copyright 2015, The Querydsl Team (http://www.querydsl.com/team)
*
* 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 ... | 28.862275 | 104 | 0.633402 |
4cc7e5522d93642315d310957e1e6eaae85a42e1 | 5,574 | package com.vector.onetodo;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnC... | 27.87 | 92 | 0.733764 |
5341771fc291bcf1c60025e0f5b690743efe8de6 | 3,166 | package eu.diversify.evoserv.model;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Hashtable;
import java.util.Set;
import sun.net.www.content.audio.aiff;
/**
*
* @author ffl
*/
public class SGHOptionSet {
public static SGHOptionSet createOptionSets(SGHVariationPoint variationPoint, Ar... | 31.979798 | 127 | 0.54801 |
7e76a016ddc4996399c0ad0e93086cfa2ef9c226 | 915 | package com.pointlion.mvc.common.utils;
import com.jfinal.kit.StrKit;
import com.jfinal.log.Log;
import javax.servlet.http.HttpServletRequest;
/**
* @author 丶Lion
* @mail 439645473@qq.com
* @qq 439635374
* @date 2019/3/30 17:52
*/
public class IPUtil {
public static String getClientIp(HttpServletRequest req... | 27.727273 | 78 | 0.578142 |
d2aa3843cb7507ad3533a2414f57c33e7575a8ec | 685 | package softuni.dto.Import;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.List;
@XmlRootElement(name="venues")
@XmlAccessorType(XmlAccessType.FIELD)
publi... | 28.541667 | 83 | 0.785401 |
93cb4204be22afdf629cadc7eec5611e9052b43d | 10,648 | package seedu.planner.model.programmes;
import java.util.ArrayList;
import java.util.Arrays;
import seedu.planner.model.Model;
import seedu.planner.model.graduation.AggregationType;
import seedu.planner.model.graduation.CompoundGraduationRequirement;
import seedu.planner.model.graduation.SingleGraduationRequirement;
... | 70.516556 | 115 | 0.453137 |
26ac755e15e464a4b6f650d1e7533be843d0e457 | 2,854 | /*
Copyright (c) 2005 Redstone Handelsbolag
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 the License, or (at your option) any later version.
This ... | 33.186047 | 129 | 0.675543 |
7c93b96659342a9a1db866484073fa6c80636199 | 1,748 | /**
* Copyright 2005 Nick Lothian
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | 33.615385 | 97 | 0.592677 |
c781491013fca5b2b48cd2ce1c91af0689e599b6 | 303 | package com.brownfield.pss.search.component;
import org.springframework.cloud.stream.annotation.Input;
import org.springframework.messaging.MessageChannel;
public interface SearchSink {
String INVENTORY_QUEUE = "InventoryQueue";
@Input(INVENTORY_QUEUE)
MessageChannel inventoryQueue();
}
| 25.25 | 57 | 0.80198 |
76c9647b4ebd3685ec0edd622a8627dc58121bee | 10,088 | package scratch.kevin;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Date;
import java.util.List;
import org.dom4j.DocumentException;
import org.opensha.commons.data.Site;
import org.opensha.commons.data.xyz.Abstr... | 37.088235 | 119 | 0.724227 |
a5697df4d26ba02a01ae1b94b37e19182dd55e90 | 2,788 | package org.openntf.domino.nsfdata.structs;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.nio.ByteBuffer;
import java.nio.CharBuffer;
import java.nio.charset.Charset;
import javolution.io.Struct.Unsigned8;
i... | 28.742268 | 78 | 0.663199 |
2dddb2dfaf4c7476641617217f285465e4734420 | 4,141 | // Targeted by JavaCPP version 1.5.8-SNAPSHOT: DO NOT EDIT THIS FILE
package org.bytedeco.bullet.BulletCollision;
import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;
import static org.bytedeco.javacpp.presets.javacpp.*;
import org.bytedeco.bullet.LinearMath.*;
import static or... | 37.645455 | 161 | 0.776383 |
21304de7d85bad628a84474537c7e54450d41587 | 884 | package com.eyeieye.melody.demo.web.action.login;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
public class ExtendedUser implements Serializable {
private static final long serialVersionUID = 1588580529927661192L;
public final static String NAME = "_extended_user";
privat... | 22.666667 | 70 | 0.677602 |
5be44ce204df4950cf8c61f330aa4e80dbf2fc71 | 3,121 | package com.example.soundroid.db;
import android.net.Uri;
import android.util.Log;
import java.util.Objects;
public class Track implements Tracklistable {
private final String hash;
private final String name;
private final String artist;
private final String album;
private final int diskNumber;
... | 24.193798 | 152 | 0.538609 |
4aaa8820b69dc9bb808851d57029d24f03a9b634 | 23,317 | package it.cnr.istc.pst.platinum.ai.deliberative.strategy;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.OutputStreamWriter;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.NoSuchElementException;... | 28.50489 | 155 | 0.640906 |
d4d4f416a30f733560e1804f6ef0e1a57a20841f | 507 | package cn.pbj2019.demo.sso_vue.domain;
public class CustomData {
private Integer id;
private String data;
public CustomData(Integer id, String data) {
this.id = id;
this.data = data;
}
public CustomData() {
}
public String getData() {
return data;
}
pu... | 15.363636 | 48 | 0.560158 |
50b9c79ce1637479fd239277e72d4cf113439fcf | 295 | package com.ibm.lab.order.adapter;
import java.util.List;
public interface RestAdapter {
void confirmAll(List<ParticipantLink> participantLinks);
void cancelAll(List<ParticipantLink> participantLinks);
public List<ParticipantLink> doTry(List<ParticipationRequest> participationRequests);
}
| 29.5 | 86 | 0.827119 |
22259df619887d0455629d3475e1ee546ceba80e | 314 | package com.baidu.mapp.bcd.dao;
import com.baidu.mapp.bcd.dao.base.BaseMapper;
import com.baidu.mapp.bcd.domain.Activity;
import com.baidu.mapp.bcd.domain.ActivityExample;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface ActivityMapper extends BaseMapper<Activity, Long, ActivityExample> {
} | 31.4 | 85 | 0.818471 |
3b5e5615b19bbc5a1bd4a14698122b54ae7b6209 | 1,919 | package rocks.inspectit.ui.rcp.details.generator.impl;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.forms.widgets.FormToolkit;
import rocks.inspectit.shared.all.communication.DefaultData;
import rocks.inspectit.shared.all.communication.data.SqlStatementData;
import rocks.inspectit.ui.rcp.details.De... | 39.979167 | 148 | 0.79729 |
314e88b23a183dfd8599e012c9a694dba8ba7bdb | 1,230 | package com.gs.testproject;
/*
1. Student实现上课接口,打印内容为准备笔记
2. 学生类有课时(double)、学分系数(double)两个属性
3. 学生A是数学系的,一共选修了40课时;学生B计算机系学生,一共选修了30课时;学生C金融系,选修了60课时。
4. 在Student类中实现一个参数为学生列表的静态方法,计算3位学生的学分总和,并通过测试类调用该静态方法输出学分总和结果。
*/
public class Student extends Person implements Lesson{
public double classTime;
publi... | 22.363636 | 95 | 0.613821 |
f2e69800824947ccba459211d5ac35eae285fac0 | 115 | package pl.kodokan.fcp.server.customer.exception;
public class RepeatedPeselException extends RuntimeException{
}
| 23 | 61 | 0.852174 |
b0cccc2efb9701d6c7c5c89451a949b5bf6f1791 | 6,826 | /*
* 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 ma... | 39.229885 | 84 | 0.690741 |
e8bb3a9fa30b1eb6eba20ca8cdb65cede8d26bc1 | 102 | package com.bookmarkanator.ui.interfaces;
public interface MenuInterface extends UIItemInterface
{
}
| 17 | 54 | 0.843137 |
a3351c2ab633836288924312676b4c526f7b1a87 | 413 | package com.colaborador;
public class Main {
public static void main(String[] args) {
Gerente gerente = new Gerente("Gerente",45,2500,5);
Supervisor supervisor = new Supervisor("Supervisor",35,2000,4);
Vendedor vendedor = new Vendedor("Vendedor",25,1900,3);
System.out.println(ger... | 25.8125 | 71 | 0.651332 |
af77225bd6eaf59db0a92e3ae509e910ef535761 | 2,569 | package com.example.web.framework.formatter;
import com.example.web.framework.response.StandardJsonResponse;
import com.example.web.framework.util.JsonUtil;
import org.springframework.core.MethodParameter;
import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
import org.springframewor... | 37.231884 | 192 | 0.710004 |
1171d9de247771824e2acaa7edbcfe93d44d79c7 | 4,332 | package com.eaglesakura.util;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
/**
* 乱数生成用Util
*/
public class RandomUtil {
/**
* ランダムな真偽値を生成する
*/
public static boolean randBool() {
return randInt8() % 2 == 0;
}
/**
... | 22.445596 | 109 | 0.516159 |
544e78a3bcd3e8579472996ea4a185c8ab2ac0da | 2,591 | package de.uni_hamburg.fs;
import collections.CollectionEnumeration;
public class NullObject extends NoFeatureNode implements JavaType {
/** The singleton NullObject wraps a java null value as a Type and
* at the same time as a node.
*/
public final static NullObject INSTANCE = new NullObject();
... | 23.770642 | 85 | 0.607873 |
cc036c786e0f629fc746210bea7e0a91df28a635 | 2,645 | package com.dianping.cat.home.group.transform;
import java.util.Stack;
import com.dianping.cat.home.group.IEntity;
import com.dianping.cat.home.group.IVisitor;
import com.dianping.cat.home.group.entity.Domain;
import com.dianping.cat.home.group.entity.DomainGroup;
import com.dianping.cat.home.group.entity.Group;
pub... | 24.266055 | 78 | 0.639319 |
d66cbfbb6675e57676bcac1ad132163cb10db920 | 2,189 | package itx.elastic.service.tests.it;
import itx.elastic.service.DataMappingException;
import itx.elastic.service.ElasticSearchService;
import itx.elastic.service.ElasticSearchServiceImpl;
import itx.elastic.service.dto.ClientConfig;
import itx.elastic.service.tests.it.dto.EventData;
import itx.elastic.service.tests.i... | 37.101695 | 137 | 0.761992 |
1ab4b9839cf23ae4dbc1b73b4c3e1d30f8a19e5e | 2,215 | package site.zido.coffee.mvc.exceptions;
/**
* 业务异常
*
* @author zido
*/
public class CommonBusinessException extends RuntimeException {
private static final long serialVersionUID = -8246671096687096493L;
/**
* 一般业务异常不建议使用500及以上http status
*/
private int httpStatus;
/**
* 补充错误码,请注意,当允... | 24.611111 | 75 | 0.576072 |
cb4697150918f58b80265244904c74db867e0bd4 | 416 | package org.egov.egf.master.web.requests;
import java.util.ArrayList;
import java.util.List;
import org.egov.common.contract.request.RequestInfo;
import org.egov.egf.master.web.contract.FiscalPeriodContract;
import lombok.Data;
public @Data class FiscalPeriodRequest {
private RequestInfo requestInfo = new RequestInf... | 34.666667 | 89 | 0.822115 |
70c43e7bd63c9445437c04065668e6d3dc1cd00e | 1,493 | package ca.ubc.ece.eece514.a2;
import soot.Main;
import soot.PackManager;
import soot.Transform;
import java.util.Set;
import java.util.HashSet;
/** The driver for ShiftAnalysis.
* Also implements a JUnit test for the analysis
*/
public class ShiftAnalysisMain {
/** The abbreviated name of the analysis */
... | 30.469388 | 99 | 0.671802 |
10065d0c7f6c9ccfcc3d6c3fa1d96ae78e64e243 | 6,159 | /**
* Copyright (C) 2004-2011 Jive Software. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | 32.415789 | 102 | 0.5824 |
c89e33b73aa6f1d24bad0a7dbf1c4323ca7b86bd | 1,604 | package org.qiunet.flash.handler.bootstrap;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.qiunet.flash.handler.bootstrap.error.DefaultErrorMessage;
import org.qiunet.flash.handler.bootstrap.hook.MyHook;
import org.qiunet.flash.handler.interceptor.DefaultTcpInterceptor;
import org.qiunet.flash.h... | 29.163636 | 89 | 0.759352 |
226691abb062d73082a4b77d88b174778eb1329b | 3,697 | package io.syndesis.connector.salesforce.springboot;
import javax.annotation.Generated;
/**
* Delete Salesforce SObject With External ID
*
* Generated by camel-package-maven-plugin - do not edit this file!
*/
@Generated("org.apache.camel.maven.connector.SpringBootAutoConfigurationMojo")
public class SalesforceDe... | 29.576 | 80 | 0.674872 |
4f1c28714267c4953a005d37248fac994999dd5b | 242 | package A;
@SuppressWarnings("WeakerAccess")
class AJava {
private int x;
public AJava(int x) {
this.x = x;
}
public int getX() {
return x;
}
public void setX(int x) {
this.x = x;
}
}
| 11.52381 | 33 | 0.504132 |
4d0fde872196848c6b4d7f2a63d8afc6fc20ab60 | 3,110 | /**
* Copyright 2011, 2012 Niall Gallagher
*
* 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 ... | 39.871795 | 120 | 0.728939 |
7a1182ea4811ef5546eb4c7eb94035ec99940e0e | 371 | package com.mashibing.aop.xml.service;
public interface Calculator {
public Integer add(Integer i,Integer j) throws NoSuchMethodException;
public Integer sub(Integer i,Integer j) throws NoSuchMethodException;
public Integer mul(Integer i,Integer j) throws NoSuchMethodException;
public Integer div(In... | 30.916667 | 73 | 0.789757 |
6d3baea3b2f23d82ecf23207ad356419de0a775d | 3,250 | package covid19.backend.Configuration;
import covid19.backend.Filter.ExceptionHandlerFilter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.c... | 43.918919 | 125 | 0.785538 |
e738445f98b12556f6b34a50b426837a58bf386e | 2,854 | package com.asiainfo.zookeeper.cluster;
import java.io.IOException;
import java.util.List;
import org.apache.zookeeper.CreateMode;
import org.apache.zookeeper.KeeperException;
import org.apache.zookeeper.WatchedEvent;
import org.apache.zookeeper.Watcher;
import org.apache.zookeeper.Watcher.Event.EventType;
... | 28.828283 | 104 | 0.661878 |
55d5bf9017c7f04a10de2bdb941244877486123b | 1,004 | package com.tvajjala.test;
import java.util.Random;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4C... | 28.685714 | 133 | 0.744024 |
fc2a318263eed0424d64f32ac92aa5589fa6caaa | 936 | package main;
import enums.ELibrary;
import enums.EMenu;
import file.Write;
import library.Library;
import library.Member;
/**
* member panel
* @author Amin Rafiei
*
*/
public class Console_Member{
Member member;
public Console_Member(Member member){
this.member = member;
}
/**
... | 17.333333 | 65 | 0.614316 |
9ccc7ea533b532be6dd6cb58644d4f208821b38a | 2,993 | /*
* 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... | 53.446429 | 185 | 0.800535 |
668c8562bb61c997e296c26e6822a56ce5441ce7 | 4,748 | package smbat.com.newsfeed.utils;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Build;
import android.support.annotation.NonNull;
import android.support.annotation.Requires... | 35.17037 | 93 | 0.653117 |
ccddf0299050a72430248e14445a3ab4192a6817 | 3,989 | package org.squiddev.plethora.core.capabilities;
import com.google.common.base.Preconditions;
import com.google.common.collect.MapMaker;
import dan200.computercraft.api.lua.LuaException;
import net.minecraftforge.fml.common.gameevent.TickEvent;
import org.squiddev.plethora.api.method.ICostHandler;
import org.squiddev.... | 29.548148 | 119 | 0.719479 |
7188491daa1ee8d64a5f4dce091376827f45788c | 4,506 | package io.jpom.permission;
import cn.hutool.core.io.FileUtil;
import cn.hutool.core.util.ClassUtil;
import cn.hutool.core.util.ReflectUtil;
import io.jpom.plugin.ClassFeature;
import io.jpom.plugin.Feature;
import io.jpom.plugin.MethodFeature;
import org.springframework.web.bind.annotation.RequestMapping;
import jav... | 33.132353 | 125 | 0.602086 |
0bd407474aabf0507f4b5e0252ef372c9b21cfc8 | 501 | package function.external.revel;
import global.Data;
/**
*
* @author nick
*/
public class RevelCommand {
public static boolean isListRevel = false;
public static boolean isIncludeRevel = false;
// filter option
public static float minRevel = Data.NO_FILTER;
public static boolean isMinRevelVa... | 19.269231 | 56 | 0.62475 |
762d0b24ed4618d5229b0431907640888045005d | 2,744 | /*
* 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 u... | 29.191489 | 118 | 0.760933 |
055f4651c0d78f465a065730911d980c51dc603e | 1,006 | package com.ferhatelmas.euler.page1;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;
public class Question22 {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(new File("names.txt"));
sc.useDelimi... | 17.344828 | 62 | 0.474155 |
33cfd87572d5f8d68488eb106450a5aba9de49ab | 2,165 | package org.apache.camel.demo;
import org.apache.camel.EndpointInject;
import org.apache.camel.Exchange;
import org.apache.camel.Predicate;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.mock.MockEndpoint;
import org.apache.camel.test.spring.CamelSpringTestSupport;
import org.junit.Tes... | 35.491803 | 118 | 0.692379 |
ed7cc758114d305a6468dfdd0733f3ebec3f6e46 | 2,595 | /**
* personium.io
* Copyright 2014 FUJITSU 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 applica... | 31.26506 | 99 | 0.697495 |
11bbc9a974bc8ed238f56798ab5c9961eca51584 | 205,483 | import com.jagex.oldscape.pub.OAuthApi;
import com.jagex.oldscape.pub.OtlTokenRequester;
import com.jagex.oldscape.pub.OtlTokenResponse;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.Socket;
import java.net.URL;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.C... | 33.669179 | 437 | 0.617092 |
c435c4c3bed17f34d28b037fdfb5c2d06371d755 | 253 | package com.eventstore.dbclient;
/**
* Specifies the direction of a read operation.
*/
public enum Direction {
/**
* Read in the forward direction.
*/
Forwards,
/**
* Read in the backward direction.
*/
Backwards
}
| 15.8125 | 47 | 0.600791 |
399aecd01f146ef14c9bc17cbdaa026900089855 | 1,549 | package EntityTest.RideRequestTest;
import Boundary.Account.AccountInteractorCommandBoundary;
import Entity.Boundary.Account.User.User;
import Entity.Boundary.RideRequest.RideRequest;
import Entity.Bounded.Account.CellPhoneFormat.BoundedCellPhoneFormat;
import Entity.Bounded.Account.User.BoundedUser;
import Entity.Bou... | 38.725 | 130 | 0.757908 |
df9c5c81be68fdfef60c25da84ada1095a620a19 | 1,961 | package application.models.role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userdetails.User;
import org.springframework.sec... | 34.403509 | 103 | 0.716981 |
6956c83c6970038be0574126d36c7aa2092649d3 | 1,066 | package com.abatra.android.wheelie.appUpdate;
public interface AppUpdateAvailabilityCriteria {
AppUpdateAvailabilityCriteria IS_UPDATE_AVAILABLE = AppUpdateAvailability::isUpdateAvailable;
static AppUpdateAvailabilityCriteria isAppUpdateAllowedOfType(AppUpdateType appUpdateType) {
return appUpdateAva... | 46.347826 | 108 | 0.814259 |
886e08d3f13e3ccaaf304a9427fca29861e9a1e9 | 1,148 | package com.codahale.dropwizard.cli;
import com.codahale.dropwizard.Configuration;
import com.codahale.dropwizard.Application;
import com.codahale.dropwizard.setup.Bootstrap;
import net.sourceforge.argparse4j.inf.Namespace;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class CheckCommand<T extends C... | 31.888889 | 94 | 0.713415 |
cea6dd13862b4beb5d2a4c0eab17a5a4a8cce742 | 3,973 | // SPDX-License-Identifier: MIT
package com.mercedesbenz.sechub.sharedkernel.validation;
import static org.junit.Assert.*;
import static org.mockito.ArgumentMatchers.*;
import static org.mockito.Mockito.*;
import org.junit.Before;
import org.junit.Test;
import com.mercedesbenz.sechub.sharedkernel.mapping.MappingData... | 31.531746 | 88 | 0.685376 |
be2da0537461230b0eb64d27159ea8a634bd4938 | 1,953 | /**
* Copyright 5AM Solutions Inc, ESAC, ScenPro & SAIC
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/caintegrator/LICENSE.txt for details.
*/
package gov.nih.nci.caintegrator.external.caarray;
import java.io.File;
/**
* A detail about the unparsed data file in c... | 24.111111 | 67 | 0.592422 |
3cf44f1903435a9b372cb292f7c9cc1d4c216b3b | 800 | package mswitalski.exercises.basickafkamongo.kafkaloader.producer.kafka;
import org.apache.kafka.clients.producer.KafkaProducer;
import org.apache.kafka.clients.producer.Producer;
import java.util.Objects;
import java.util.Properties;
/**
* Provides Kafka producer that can be used to interact with Kafka message bro... | 29.62963 | 87 | 0.7325 |
82d3a8894dbf1e83421619855b3e0d420ab7d208 | 37,795 | package com.ecochain.user.entity;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class AclUserExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public AclUserExample() {
oredCriteria =... | 33.41733 | 103 | 0.562217 |
400ae438b511775e62025bb10229e1ff9c419d89 | 14,511 | package com.vladsch.clionarduinoplugin.settings;
import com.intellij.openapi.Disposable;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.application.ModalityState;
import com.intellij.ui.DocumentAdapter;
import com.intellij.ui.TextFieldWithHistory;
import com.intellij.ui.compone... | 39.218919 | 177 | 0.632072 |
2060cf77bde9b331df4671ed1fb8ec8d9d5ade53 | 3,682 | package me.zpp0196.qqsimple.util;
import android.annotation.SuppressLint;
import android.content.Intent;
import android.os.Handler;
import android.os.Message;
import android.support.annotation.StringRes;
import android.widget.Toast;
import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.IOExce... | 28.992126 | 108 | 0.564639 |
a143f36ffa1531d1a7891608ef8098e0a6d2b47b | 6,303 | package com.liveramp.workflow.test;
import java.io.IOException;
import java.io.Serializable;
import java.util.List;
import java.util.Map;
import com.liveramp.commons.collections.nested_map.ThreeNestedMap;
import com.liveramp.commons.collections.nested_map.TwoNestedMap;
import com.liveramp.commons.state.TaskSummary;
i... | 29.316279 | 134 | 0.787086 |
13c56f8ef3ee193710a8a62330f994e588d07a3f | 657 | package cn.micro.biz.service.member.impl;
import cn.micro.biz.entity.member.PermissionEntity;
import cn.micro.biz.mapper.member.IPermissionMapper;
import cn.micro.biz.service.member.*;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.... | 31.285714 | 123 | 0.826484 |
726f57814ee72f1edc54ce1e6ad68ca23cecf23d | 7,181 | /*
* Copyright 2016-2022 Sweden Connect
*
* 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 ag... | 34.195238 | 137 | 0.7116 |
a8843f67b33968a7a6178090cf631d50f5a45e56 | 2,020 | /*Copyright 2017 Craig A. Stockton
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... | 32.580645 | 137 | 0.65 |
a5e5f7846015a6b1ecbdb9aa6dc84f2d9acbfac7 | 2,913 | package org.haobtc.onekey.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recy... | 32.366667 | 109 | 0.6931 |
82cc211a3075be15beaa339e0c35a6a32daec03f | 219 | package com.ipusoft.sip.iface;
/**
* author : GWFan
* time : 6/1/21 3:58 PM
* desc : SIP外呼弹屏拨号键盘点击事件的listener
*/
public interface OnSipWindowDialPanClickListener {
void onSipDialPanClick(String string);
}
| 18.25 | 50 | 0.712329 |
ea8d134e06144b6bafcb1e42eed03323bf4f456d | 3,428 | /*
* Copyright 2009 Denys Pavlov, Igor Azarnyi
*
* 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 b... | 39.860465 | 90 | 0.608518 |
72d81cb661339c5cd6c60b75359edfd5820c4d7d | 4,948 | /*
* Copyright 2015 Gerald Muecke, gerald.muecke@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 the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | 37.770992 | 120 | 0.660873 |
9317f275195f8ffb294d1139588ff613269ea629 | 3,247 | package cn.lwx.rlstg.view;
import cn.lwx.rlstg.GlobalManager;
import com.sun.org.apache.bcel.internal.generic.SWITCH;
import javax.swing.*;
import java.awt.*;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
/**
* Package: cn.lwx.rlstg.view
* Comments:
* Author: lwx
* Create Date: 2017/12/18
*... | 27.058333 | 72 | 0.598399 |
48eee1cb00e127a3766f3f925d73c4adea7203ac | 1,587 | package it.bitrock.service;
import it.bitrock.model.Player;
import java.util.*;
import java.util.stream.Collectors;
class Game {
static final int FINAL_SPACE = 63;
static final int THE_BRIDGE_START = 6;
static final int THE_BRIDGE_END = 12;
private static final int[] GOOSE_SPACES = { 5, 9, 14, 18, 23... | 26.898305 | 88 | 0.608066 |
8da678e753b8e5605da36e4f770170b6c9994217 | 2,226 | package com.example.intelligentalarmclock.db;
import org.litepal.crud.LitePalSupport;
/**
*存储创建的闹钟列表
*/
public class Alarm extends LitePalSupport {
private int id;
private boolean vality;
private int alarmID;
private String APm;
private int hour;
private String minute;//用int型,00不好存,所以用了strin... | 22.948454 | 51 | 0.629829 |
22be737ddba11f0b450f375796709af0e88cd4d7 | 3,791 | package com.intellij.util.indexing;
import com.intellij.openapi.application.AccessToken;
import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.application.ReadAction;
import com.intellij.openapi.util.Computable;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concur... | 30.572581 | 129 | 0.646267 |
8754c54186c6190f21f6b169069c54feffa28ab4 | 3,384 | package fr.utarwyn.endercontainers.storage.player;
import fr.utarwyn.endercontainers.EnderContainers;
import fr.utarwyn.endercontainers.enderchest.EnderChest;
import fr.utarwyn.endercontainers.enderchest.VanillaEnderChest;
import fr.utarwyn.endercontainers.storage.StorageWrapper;
import fr.utarwyn.endercontainers.stor... | 31.333333 | 97 | 0.656028 |
c9fdd6e6506afd2b97a74c0187bc2991685fe470 | 9,300 | import net.runelite.mapping.Export;
import net.runelite.mapping.Implements;
import net.runelite.mapping.ObfuscatedGetter;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
@ObfuscatedName("e")
@Implements("WorldMapLabelSize")
public class WorldMapLabelSize {
@ObfuscatedName(... | 29.52381 | 186 | 0.557634 |
181735e05e2627dab7a572e198f1092b223527d4 | 2,666 | package seedu.address.storage;
import static java.util.Objects.requireNonNull;
import java.io.IOException;
import java.nio.file.Path;
import java.util.Optional;
import java.util.logging.Logger;
import seedu.address.commons.core.LogsCenter;
import seedu.address.commons.exceptions.DataConversionException;
import seedu... | 32.91358 | 108 | 0.719805 |
314383e69a871045499cadc9b9440c1c1b530f09 | 2,466 | /*
* $Id: ComponentDefinitionsFactory.java 54929 2004-10-16 16:38:42Z germuska $
*
* Copyright 1999-2004 The Apache Software Foundation.
*
* 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 ... | 40.42623 | 173 | 0.76399 |
aa7e5b6542ce55471998c388902f9d6b591b14b9 | 7,311 | package b.l.a.c.f.e;
import android.os.Parcel;
import android.os.Parcelable;
import b.l.a.c.c.m.v.a;
public final class dl extends a implements bj<dl> {
public static final Parcelable.Creator<dl> CREATOR = new el();
/* renamed from: l reason: collision with root package name */
public static final Strin... | 38.888298 | 133 | 0.532485 |
d414a571b79b59e8ce7ce0fa6214aa23e0c927a1 | 2,170 | package entities;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.Rectangle;
import main.GameObject;
import main.Handler;
import main.ID;
public class PowerUp0 extends GameObject {
public static final int POWERUP_WIDTH = 36, POWERUP_HEIGHT = 36;
private String color = "yellow";
private Hand... | 23.586957 | 79 | 0.636866 |
b5fcdb352673a4a0afe89b5a620d1d265782fa34 | 9,017 | /*
* Copyright (C) 2016 Jecelyin Peng <jecelyin@gmail.com>
*
* This file is part of 920 Text Editor.
*
* 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/li... | 35.222656 | 144 | 0.645115 |
a62b24a1ed7bbfb1f56366ac711ba71f230190d2 | 2,100 | package cn.zhengcaiyun.idata.develop.condition.job;
/**
* @description:
* @author: yangjianhua
* @create: 2021-09-23 11:20
**/
public class JobPublishRecordCondition {
/**
* 作业id
*/
private Long jobId;
/**
* 作业内容id
*/
private Long jobContentId;
/**
* 作业内容版本号
*/
... | 18.584071 | 65 | 0.611429 |
23faf5c196208ff7920b786e259d5354ef66662f | 10,742 | /*
* Copyright (C) 1999-2011 University of Connecticut Health Center
*
* Licensed under the MIT License (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.opensource.org/licenses/mit-license.php
*/
package cbi... | 36.914089 | 128 | 0.739713 |
8f65e4960df2b1da720850afd87fe84eac66fea1 | 2,565 | package ultimategdbot.net.database.util;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import ultimategdbot.net.database.DatabaseConnection;
import ultimategdbot.util.AppTools;
/**
* Provides default methods to execute ... | 32.884615 | 95 | 0.690448 |
558e7a0f07937210fd17d3697973b0136f123a00 | 1,144 | package algo;
import java.util.Scanner;
import edu.princeton.cs.algs4.In;
import edu.princeton.cs.algs4.Queue;
import edu.princeton.cs.algs4.Stack;
import edu.princeton.cs.algs4.StdIn;
/**
* Created by Tikitoo on 2015/12/13.
*/
public class Topic13 {
// queue
public static int[] readInts(Scanner name) {
... | 22.88 | 53 | 0.527972 |
3decff2c3d9e931dd70bdb0360c07fdf5f8a0f44 | 228 | package com.Ejdzyn;
import com.Ejdzyn.GUI.DatabaseInterfaceFrame;
public class Main {
public static void main(String[] args) {
DatabaseInterfaceFrame databaseInterfaceFrame = new DatabaseInterfaceFrame();
}
}
| 20.727273 | 85 | 0.745614 |
5b43829631607a46f062a3cee4af180642636c2f | 5,975 | /*
* Copyright 2017 Adaptris 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... | 35.35503 | 127 | 0.746276 |
402956968e7e7d9f150fc1bcf93766e5a3ce2d6d | 4,829 | package com.lumchine.db.dao;
import com.lumchine.db.domain.LumchineCollect;
import com.lumchine.db.domain.LumchineCollectExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface LumchineCollectMapper {
/**
* This method was generated by MyBatis Generator.
* This metho... | 31.769737 | 159 | 0.692276 |
efa44096bcfc85e19926c72701ed2ff0868c9724 | 11,624 | package adamin90.com.qqd.view;
/**
* Created by LiTao on 2015-12-01-17:45.
* Company: QD24so
* Email: 14846869@qq.com
* WebSite: http://lixiaopeng.top
*/
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Path;
impo... | 30.832891 | 124 | 0.581813 |
57d0cf683e8f88110b32c31f7c1a5171717ccb12 | 11,483 | package me.shenfan.image.qiniu;
/**
* Created by Sun on 2016/6/23.
*/
public final class QiNiuImageMogr2UrlBuilder {
private static final String TAG = "imageMogr2";
private final String host;
boolean autoOrient;
boolean strip;
boolean interlace;
boolean hasOver;
String gravity;
Stri... | 29.825974 | 103 | 0.556126 |
6784b4aab84f61c6769fed6eb01fa84b4efb967e | 625 | package cpm.web.dao.bussiness;
import org.springframework.jdbc.core.namedparam.SqlParameterSource;
import java.util.Map;
public interface ExecuteQueryDao {
<T> T executeQueryFunction(String sql, Map parram, T clazz);
<T> T executeQuery(String viewSql,Map parram, T clazz);
<T> T executeQueryAll(String v... | 24.038462 | 69 | 0.6992 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.