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 |
|---|---|---|---|---|---|
a68f66e2b9cfad2e00028b1a6fa28deaf3571988 | 603 | package org.simpleflatmapper.reflect.test.asm.sample;
import org.simpleflatmapper.reflect.Setter;
import org.simpleflatmapper.reflect.primitive.IntSetter;
import org.simpleflatmapper.test.beans.DbPrimitiveObjectFields;
public class PrimitiveIntFieldSetter implements Setter<DbPrimitiveObjectFields, Integer>, IntSetter... | 30.15 | 126 | 0.819237 |
373e06dd2b9bd665a21bef1ece683e5b78186cca | 265 | package com.yeungeek.router;
import com.yeungeek.router.annotation.RouterUri;
/**
* @author yangjian
* @date 2018/11/16
*/
public interface RouterService {
@RouterUri(value = "router://com.yeungeek.router.firstactivity")
void startFirstActivity();
}
| 17.666667 | 68 | 0.724528 |
4241558ddc19e84147d4540d924fa8397e0b2fda | 8,881 | package com.kaidongyuan.app.kdydriver.adapter;
import android.content.Intent;
import android.support.v7.widget.CardView;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widg... | 48.266304 | 131 | 0.663777 |
b5a6b4dee692fb2566453f419fc40a419912a36c | 8,187 | package com.lyz.code.infinity.s2shc.verb;
import java.util.ArrayList;
import java.util.List;
import com.lyz.code.infinity.core.Verb;
import com.lyz.code.infinity.core.Writeable;
import com.lyz.code.infinity.domain.Domain;
import com.lyz.code.infinity.domain.Method;
import com.lyz.code.infinity.domain.Signatu... | 42.863874 | 242 | 0.771956 |
076ad26d363cb7102dab0542c5974d8b4ef43e65 | 139 | package com.ab.worldcup.match;
public enum KnockoutMatchCode {
ROS1,ROS2,ROS3,ROS4,ROS5,ROS6,ROS7,ROS8,QF1,QF2,QF3,QF4,SF1,SF2,TP,F
}
| 23.166667 | 72 | 0.755396 |
8dc348032ad954746d914405bfdc7f4e0e529aeb | 2,938 | /*
* Copyright 2021 Kato Shinya.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | 28.524272 | 100 | 0.698434 |
44c3665b79697c868ecaa2de4fd1aa414623731a | 693 | package de.heinerkuecker.coroutine.stmt.simple.exc;
import de.heinerkuecker.coroutine.stmt.CoroStmt;
/**
* Exception
*/
public class StmtVariableIsNullException
extends RuntimeException
{
/**
* Generated by Eclipse.
*/
private static final long serialVersionUID = -31395849829839911L;
... | 23.1 | 70 | 0.556999 |
def43eae130754709755df7bef7f6d384935c616 | 3,248 | package org.thunlp.io;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.util.zip.GZIPOutputStream;
import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream;
import org... | 30.35514 | 96 | 0.736453 |
8fdafd5b054d23ccbc47ad9fb048054c57b0356b | 1,433 | package com.infinityraider.agricraft.render.particles;
import net.minecraft.client.Minecraft;
import net.minecraft.client.particle.SpriteTexturedParticle;
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
import net.minecraft.client.world.ClientWorld;
import net.minecraft.inventory.container.PlayerConta... | 40.942857 | 148 | 0.73552 |
e351e7ab39be81403c1ad889cd176c0cf3609f3c | 46,085 | /*
* Copyright 2013 Real Logic 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 ... | 38.244813 | 129 | 0.531106 |
10b614c309176226d9b8f5be51978b4a30411955 | 5,376 | package com.stanfy.enroscar.net;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.URL;
import java.net.URLConnection;
import java.util.List;
import java.util.Map;
/**
* URL connection wrapper.
* Delegates all the method calls to the wrapped instance.
*/
public ab... | 28 | 134 | 0.726004 |
9bf8ca6cb44c95a71a48298847d9ee05efa76117 | 2,115 | package io.github.forezp.modules.activiti.controller;
import io.github.forezp.common.dto.PageResultsDTO;
import io.github.forezp.common.dto.RespDTO;
import io.github.forezp.common.exception.AriesException;
import io.github.forezp.common.exception.ErrorCode;
import io.github.forezp.common.util.PageUtils;
import io.git... | 35.847458 | 134 | 0.733806 |
e4e349d40b6582b109855365bfaca9ae4d59ccfe | 6,748 | /**
* Copyright 2009 Humboldt-Universität zu Berlin.
*
* 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... | 32.442308 | 85 | 0.664641 |
f86281d468e1ece0acd65d04faca81c4cd43b7e0 | 871 | package CORBA.Network;
/**
* CORBA.Network/AppointmentListHolder.java .
* Generated by the IDL-to-Java compiler (portable), version "3.2"
* from Response.idl
* Saturday, November 23, 2019 4:09:19 o'clock PM EST
*/
public final class AppointmentListHolder implements org.omg.CORBA.portable.Streamable
{
public CORBA.... | 21.775 | 85 | 0.724455 |
0b809e19a9d7edf27967575a210119b613a3a1b5 | 4,273 | /*
* Copyright (C) 2007 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... | 34.459677 | 95 | 0.635385 |
29b994e00eaf5ac8d344d401853c478dc94a9692 | 2,128 | /*
* Copyright 2016-2017 Axioma srl.
*
* 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... | 33.777778 | 108 | 0.761748 |
f76df7b7f4a1d24f881507e65f65401147690085 | 359 | package com.mercadopago.android.px.model;
public class TicketPayer extends Payer {
public TicketPayer(final Identification identification, final String email, final String firstName,
final String lastName) {
setIdentification(identification);
setEmail(email);
setFirstName(firstName);... | 35.9 | 103 | 0.718663 |
fbee77011c56401361b1322c5a297668904d69a8 | 7,196 | /*
* Copyright 2012 Shared Learning Collaborative, LLC
*
* 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 applicabl... | 50.321678 | 139 | 0.646609 |
58ca8cef3946502d35dd71eb9a64bb544e3038a1 | 165 | package eu.cloudopting.tosca.nodes;
import java.util.HashMap;
public interface CloudOptingNode {
public abstract String prepare(HashMap<String, String> data);
} | 18.333333 | 62 | 0.793939 |
f4f8c8029a7c44bee88639807bb1b36999355199 | 9,055 | /*
* Copyright (C) 2022 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... | 42.511737 | 100 | 0.740917 |
c73f9f7ff82ffea42acb59a63dd3cf6bddec319c | 13,460 | package edu.rhit.groupalarm.groupalarm.Fragments;
import android.app.Activity;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.RequiresAp... | 41.671827 | 135 | 0.613373 |
5eb7b0afcfbca7978668866931f3995c448d2090 | 786 | package ar.com.javacuriosities.networking.tcp.handler;
public class ServerSocketInputHandler {
public String processInput(String currentInput) {
String output = "Welcome - Waiting commands";
if (currentInput != null) {
if ("Greetings".equalsIgnoreCase(currentInput)) {
... | 35.727273 | 65 | 0.536896 |
9d25d5afaf161ef925ed0bda2a34ae6fc098f14b | 3,804 | /*
* ictk - Internet Chess ToolKit
* More information is available at http://jvarsoke.github.io/ictk
* Copyright (c) 1997-2014 J. Varsoke <ictk.jvarsoke [at] neverbox.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "... | 35.886792 | 80 | 0.559674 |
f78333fcd384c91554179bb36211a39f2b47d593 | 16,317 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See License.txt in the project root.
package com.microsoft.alm.plugin.operations;
import com.google.common.util.concurrent.SettableFuture;
import com.microsoft.alm.build.webapi.BuildHttpClient;
import com.microsoft.alm.build.webapi.mo... | 50.206154 | 125 | 0.702641 |
9155ee7e1efac5101d027e317fb646e9bcd5c35b | 868 | import layout.FileConfig;
import utils.Constant;
import javax.swing.*;
import java.io.File;
import java.text.SimpleDateFormat;
import java.util.Date;
public class LotteryMain {
public static void main(String[] args) {
SimpleDateFormat sd=new SimpleDateFormat("yyyy-MM-dd HH:mm");
JOptionPane.sho... | 31 | 152 | 0.657834 |
c13d515113003b1a4773aec20a56099f9d446e3b | 560 | package segTree;
public class Solution303 {
class NumArray {
private int sum[];
public NumArray(int[] nums) {
sum=new int[nums.length+1];
sum[0]=0;
for (int i = 1; i <sum.length ; i++) {
sum[i]=sum[i-1]+nums[i-1];
}
}
... | 20.740741 | 64 | 0.503571 |
78a42c5e8c3fbdfc6ac56f349e1ffb23fb8a3408 | 6,366 | /*
* Copyright (C) 2018 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... | 44.517483 | 102 | 0.714577 |
38e12c26b214cd79c8ac96ccb47c7e2278e1ac65 | 3,537 | /*
* Copyright 2019-2022 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 41.611765 | 110 | 0.816511 |
f791b217bb3ed1692b47e3eec6f404bdbec42ac7 | 160 | package service.generator;
public class TaskIdGenerator {
private static Integer id = 0;
public static Integer getId() {
return id++;
}
}
| 16 | 35 | 0.65 |
da125c0fbb6f6ab6a3239f2517d340b1b46f883c | 3,252 | package io.miti.shortstop.util;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
public final class ContentTypeCache {
/** The single instance of this class. */
private static final ContentTypeCache cache;
/** The map of file extension to MIME type. */
private Map<String, String>... | 29.563636 | 84 | 0.618389 |
9eec41684b9cab26326b62532fcf9f2671761147 | 3,388 | /*
* Copyright 2019 Jonas Yang
*
* 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 i... | 31.663551 | 75 | 0.68536 |
d686d292c9c2f2e2242e2168ba94869b4ab63a8a | 315 | package zg2pro.controller;
import com.github.zg2pro.spring.rest.basis.exceptions.Zg2proRestServerExceptionsHandler;
import org.springframework.web.bind.annotation.ControllerAdvice;
/**
*
* @author MosesMeyer
*/
@ControllerAdvice
public class ServerExampleAdvisor extends Zg2proRestServerExceptionsHandler {
}
| 22.5 | 88 | 0.831746 |
bbb8fce878a43db2f12e53e4cb9712db59e6a40c | 483 | /*
Problem Name: 1450. Number of Students Doing Homework at a Given Time
Problem Link: https://leetcode.com/problems/number-of-students-doing-homework-at-a-given-time/
*/
class Solution {
public int busyStudent(int[] startTime, int[] endTime, int queryTime) {
int cnt = 0;
int n = startTime.length;
... | 30.1875 | 94 | 0.592133 |
5782e80435d756e622a60babcf31e1622584ab0e | 1,662 | /**
* Copyright 2015 Palantir Technologies
*
* Licensed under the BSD-3 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://opensource.org/licenses/BSD-3-Clause
*
* Unless required by applicable law or agreed to in wri... | 33.24 | 82 | 0.712996 |
e305c87f30d00d043f8be368a82f400bef92e6b8 | 5,891 | package com.simonenfp.me.widget;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.BitmapShader;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.CornerPathEffect;
import android.graphics.DashPathEffect;
... | 33.095506 | 166 | 0.642845 |
2a63a549f89ab792d58867289fe0d829078297a8 | 2,098 | package org.nypl.simplified.books.core;
/**
* The main interface to carry out operations relating to accounts.
*/
public interface AccountsControllerType
{
/**
* @return {@code true} if the user is currently logged into an account.
*/
boolean accountIsLoggedIn();
/**
* Get login details delivering ... | 21.854167 | 87 | 0.692088 |
3174c05d376f72691fee825cf44a9efbcd79cbed | 96 | package com.nocmok.orp.api.controller.god_api.dto;
public class GetActiveRequestIdsRequest {
}
| 19.2 | 50 | 0.822917 |
e6ca5b8e8f32fc65bf4c3c48548b8ab5e1d4063e | 1,792 |
package uk.me.mjt.ch;
import java.util.Collection;
import java.util.HashSet;
/**
* Generates UML you can feed into PlantUML http://plantuml.com/ to generate
* abstract diagrams of the graph. Useful for debugging access only / barrier
* code where there are multiple nodes in the same place, and zero-length links.... | 30.372881 | 109 | 0.550781 |
1833d403f0084af6a13b36c83563e390798524f6 | 7,319 | // --------------------------------------------------------------------------------
// Copyright 2002-2022 Echo Three, LLC
//
// 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:/... | 44.628049 | 131 | 0.692991 |
6ca4fe0df02f45f95164db65957927cccc458fb6 | 472 | package sample;
import java.awt.*;
public class colorUtil {
public static Color fxToAwt(javafx.scene.paint.Color color){
return new Color((float)color.getRed(), (float)color.getGreen(), (float)color.getBlue(), (float)color.getOpacity());
}
public static javafx.scene.paint.Color awtToFx(Color col... | 29.5 | 137 | 0.690678 |
9ab641b5715a20bbd81ba24f37dcc08c13052a0c | 4,092 | package com.paulyung.pyphoto.activity;
import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import android.support.v7.view.menu.MenuBuilder;
import android.support.v7.widget.Toolbar;
import android.view.Menu;
import android.view.MenuItem;
import com.paulyung.pyphoto.BundleTag;
import com.paulyung.... | 29.652174 | 104 | 0.663001 |
1a7314e28f89978e81928ed33c5792857ccf750f | 5,005 | /*
* 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 ... | 27.651934 | 95 | 0.721279 |
d801bb008b93e0ceef9492d75d7e0b3386c3d5db | 2,372 | /*
* Copyright 2018 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 applic... | 33.885714 | 130 | 0.765177 |
a52316d31bd911f2fe44537cb751ee008da208b1 | 28,193 | /*
* Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. All rights reserved
*
* 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 limitatio... | 40.68254 | 119 | 0.71046 |
d7c572c0a412cc3d30a71430b7a77f1b19f38818 | 1,723 | package com.hhn.vs.centerapp.scraper;
import java.time.LocalDateTime;
import com.hhn.vs.centerapp.model.Canteen;
/**
* Canteen Manager Class
* @author Felix Edel
*
*/
public class CanteenPlanManager {
private static CanteenPlanManager single_instance = null;
private Canteen singleCanteen = null;
private C... | 22.376623 | 86 | 0.699362 |
8d40ecb0e639e5686288d1a8ff1d84ba98e3177d | 45 | public class TestSubclass<T> extends Test {
} | 22.5 | 43 | 0.777778 |
7481bb9ad555c28a1372f753eb106a13e147c018 | 2,714 | package com.googlecode.lucene.gae.datastore.file;
import java.util.ArrayList;
import java.util.List;
public class DataStoreFile {
private final String name;
private final List<DataStoreFilePart> parts = new ArrayList<DataStoreFilePart>();
private long lastModified = System.currentTimeMill... | 17.855263 | 88 | 0.622329 |
fbacde08ff1101eb7512452016d5f841ca47f250 | 5,944 | package edu.gemini.ui.gface;
import java.awt.Component;
import java.awt.Point;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
import javax.swing.DefaultListCellRenderer;
import javax.swing.DefaultListModel;
import javax.swing.JLab... | 30.172589 | 137 | 0.6107 |
e398c93b863be06283e30f3b847dcd7fb3daf255 | 1,588 | // Copyright 2000-2021 Nokia
//
// Licensed under the Apache License 2.0
// SPDX-License-Identifier: Apache-2.0
//
package com.alcatel.as.service.concurrent.impl;
import java.util.Hashtable;
import java.util.Properties;
import org.apache.log4j.PropertyConfigurator;
import com.alcatel.as.service.concurrent.PlatformE... | 29.962264 | 102 | 0.766373 |
a53869cdaf6b6a33a2355bd657cfe7610025ef90 | 1,108 | package com.atguigu.tx.component.dao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;
@Repository
public class BookShopDaoImpl implements BookShopDao{
@Autowired
private JdbcTemplate jdbcTe... | 26.380952 | 73 | 0.731949 |
10a8748e557630dbb1bfe3d5b733b0cbb05cc85b | 1,205 | /**
* Created by glenc on Dec 2020
**/
public class StackArray {
private int maxSize;
private double[] stackArray;
private int top;
public StackArray(int size){
maxSize = size;
stackArray = new double[maxSize];
top = -1;
}
public void push(double j){
stackAr... | 20.775862 | 65 | 0.545228 |
5800d293c772deac8eff291b0608f17ac425f3c7 | 1,732 | package org.xm.xmnlp.demo;
import org.xm.xmnlp.Xmnlp;
import org.xm.xmnlp.seg.CRFSegment;
import org.xm.xmnlp.seg.Segment;
/**
* 演示多线程并行分词
* 由于任何分词器都是线程安全的,所以用户只需调用一个配置接口就可以启用任何分词器的并行化
*
*/
public class DemoMultithreadingSegment {
public static void main(String[] args) {
Segment segment = new CRFSegm... | 32.074074 | 82 | 0.630485 |
ed3c5926c28b031f4f046239160a48b0a77b57db | 2,485 | /*******************************************************************************
* Copyright (c) 2005, 2008 BEA Systems, Inc.
* 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 avail... | 38.828125 | 87 | 0.685714 |
b99d3408ba2c49a9719c7060c93cb63492ade203 | 1,965 | /*
* Copyright 2020 Verizon Media
*
* 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... | 30.703125 | 108 | 0.671756 |
463d830c4394b9922b36887b5bfe6dc2d9c7249d | 1,297 | package org.itsnat.droid.impl.xmlinflater.layout.attr.widget;
import android.view.View;
import org.itsnat.droid.impl.dom.DOMAttr;
import org.itsnat.droid.impl.xmlinflater.MethodContainer;
import org.itsnat.droid.impl.xmlinflater.layout.AttrLayoutContext;
import org.itsnat.droid.impl.xmlinflater.layout.classtre... | 39.30303 | 157 | 0.767926 |
f68351939176f1fdeb5f8dd74d936fdc84f7bcbb | 8,225 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 36.393805 | 120 | 0.671489 |
4ece97124a3a443935744197ed8b7e5b450ead95 | 2,433 | package areality.game;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.Arrays;
import java.util.HashSet;... | 34.267606 | 91 | 0.715577 |
f12de39cd2505d8a1bd399b2313a01579daafcef | 1,272 |
package com.novicehacks.autobot.config;
/**
* Property definitions and default values for the Autobot application.
*
* @author Sharath Chand Bhaskara for NoviceHacks!
*
*/
public enum ConfigurationProperty {
ResourceFolder ("ResourceFolder", "."),
CommandFileName ("CommandFileName", "commands.txt"),
ServerFi... | 27.06383 | 71 | 0.740566 |
dcf2b2977b83c20f8574d4bdde29429bfc1e598f | 18,725 | /**
*/
package questions;
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
/**
* <!-- begin-user-doc -->
* The <b>Package</b> for the model.
* It contains accessors for the meta objects to represent
* <ul... | 27.536765 | 127 | 0.624673 |
fcefab86d1a762e45871bc95381da13e6fdc271a | 1,043 | package com.active4j.service.func.timer.service;
import com.active4j.entity.func.timer.entity.QuartzJobLogEntity;
import com.active4j.entity.func.timer.model.QuartzJobLogModel;
import com.baomidou.mybatisplus.extension.service.IService;
/**
*
* @title QuartzJobLogService.java
* @description
* @time 2... | 19.679245 | 76 | 0.641419 |
4dd8346f293a18049f88a2fcc50fcbb303d2d7ae | 6,973 | package com.xd.pre.modules.sys.controller;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.StrUtil;
import com.xd.pre.common.exception.ValidateCodeException;
import com.xd.pre.modules.security.code.img.CaptchaUtil;
import com.xd.pre.modules.security.code.sms.SmsCo... | 34.014634 | 250 | 0.692959 |
c92cf537f6a0d782c107f83b2854d5baa7002139 | 3,454 | /*******************************************************************************
* Copyright (c) 1998, 2015 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
... | 42.121951 | 169 | 0.700926 |
9f7528a1c5b5d13ea42ed12690f53e25b9351c27 | 1,024 | package com.netease.music.leetcode;
import java.util.ArrayList;
import java.util.List;
/**
* Created by dezhonger on 2019/3/28
*/
public class Leetcode0969 {
public static void main(String[] args) {
System.out.println(new Leetcode0969().pancakeSort(new int[]{3,2,4,1}));
}
public List<Integer> p... | 27.675676 | 79 | 0.431641 |
b0a0e3087730e99bf2192c279efe7366fb1ed7be | 275 | package Factory;
public class Vanilla_Cake implements Cake
{
private int ID = 0;
public Vanilla_Cake()
{
ID++;
}
@Override
public void CakeType()
{
System.out.println("Vanilla Cake"+"("+ID+")");
}
} | 16.176471 | 55 | 0.505455 |
31a3fdeb600f054e5d98ed9eb387463165a22ef0 | 2,149 | package mockit;
import java.applet.*;
import java.awt.*;
import org.junit.*;
import org.junit.rules.*;
import static org.junit.Assert.*;
public final class MisusedFakingAPITest
{
@Rule public final ExpectedException thrown = ExpectedException.none();
@Test
public void fakeSameMethodTwiceWithReentrantFakesF... | 27.551282 | 83 | 0.641228 |
6dba7a9c75b8dab604adcda97ad16d2d425a6d8e | 1,434 | package quick.pager.shop.response;
import com.github.pagehelper.PageInfo;
import java.util.List;
import lombok.Data;
import quick.pager.shop.constants.ResponseStatus;
import java.io.Serializable;
/**
* 数据响应类
*
* @param <T>
* @author siguiyang
*/
@Data
public class Response<T> implements Serializable {
priv... | 21.088235 | 78 | 0.615063 |
1df14bd2de493ae352f0e9d749607bab19bbc3c4 | 643 | public class Solution
{
int N;
int[] S;
int L;
int[] cur;
ArrayList<ArrayList<Integer>> subList;
void search (int idx)
{
if (idx == N)
{
ArrayList<Integer> sub = new ArrayList<Integer>();
for (int i = 0; i < L; ++i)
sub.add(cur[i]);
subList.add(sub);
return;
... | 15.682927 | 56 | 0.51633 |
fdd01aac4fd30e5c0ccd80881dfc9dac35ae03bd | 1,411 | /**
*
*/
package com.github.maumay.jenjinn.integrationtests;
import static org.junit.jupiter.api.Assertions.fail;
import java.io.BufferedReader;
import java.io.IOException;
import org.junit.jupiter.api.Test;
import com.github.maumay.jenjinn.base.FileUtils;
import com.github.maumay.jenjinn.boardstate.BoardState;
... | 26.12963 | 71 | 0.734231 |
9dd51394f6a7f43a471a0c9252fd23500276402e | 1,436 | package com.example;
import java.lang.reflect.Method;
import org.junit.jupiter.api.extension.AfterAllCallback;
import org.junit.jupiter.api.extension.BeforeAllCallback;
import org.junit.jupiter.api.extension.ExtensionContext;
import org.junit.jupiter.api.extension.InvocationInterceptor;
import org.junit.jupiter.api.e... | 31.911111 | 119 | 0.68454 |
7c4caa425228ca93bb41537900735e0f2da3df7c | 495 | package sg.edu.nus.comp.nsynth;
import sg.edu.nus.comp.nsynth.ast.Expression;
import sg.edu.nus.comp.nsynth.ast.Type;
import java.util.ArrayList;
import java.util.List;
/**
* Created by Sergey Mechtaev on 18/7/2016.
*/
public abstract class Shape {
protected List<Expression> forbidden = new ArrayList<>();
... | 20.625 | 61 | 0.692929 |
ec0ebabe626e1ccdf8985adaad47aa1c4f7bdb02 | 544 | package com.mopub.network;
import android.graphics.Bitmap;
import p002b.p003c.p053g.p061f.C1260i;
/* renamed from: com.mopub.network.k */
/* compiled from: Networking */
class C11678k extends C1260i<String, Bitmap> {
C11678k(int x0) {
super(x0);
}
/* access modifiers changed from: protected */
... | 24.727273 | 59 | 0.628676 |
bbe4900fb95f7a0a79f591f08694b868ef5d2273 | 2,252 | package org.eclipse.birt.report.engine.emitter.csv;
import org.eclipse.birt.report.engine.api.IRenderOption;
import org.eclipse.birt.report.engine.api.RenderOption;
public class CSVRenderOption extends RenderOption implements ICSVRenderOption{
public static final String CSV = "CSV";
public CSVRenderOption( )
... | 18.016 | 78 | 0.703819 |
416d3285290742b5e7669936656f5f4de3f38b1b | 3,431 | package com.peregrine.it.admin;
import com.fasterxml.jackson.core.JsonFactory;
import com.fasterxml.jackson.core.JsonGenerator;
import com.peregrine.commons.test.AbstractTest;
import org.apache.sling.testing.clients.ClientException;
import org.apache.sling.testing.clients.SlingClient;
import org.apache.sling.testing.j... | 39.895349 | 97 | 0.75255 |
b936469eb3fdf7c446f282cb9baa4fd06b563333 | 751 | package com.techelevator.util;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.PrintWriter;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
public class BasicLogger {
private static PrintWriter pw = null;
public static v... | 25.896552 | 95 | 0.732357 |
902fa5ea7b1d58336ba6d55449ab8491633af5ca | 1,284 | import java.util.Arrays;
public class Solution3 {
/**
* @param inorder 中序遍历序列
* @param postorder 后序遍历序列
* @return
*/
public TreeNode buildTree(int[] inorder, int[] postorder) {
int inlen = inorder.length;
int postlen = postorder.length;
assert inlen == postlen;
... | 27.913043 | 145 | 0.558411 |
d96c2a335c5b74e59f993418b1cf7ec84e9496b1 | 712 | package com.controller.admin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import com.service.admin.AdminOrderService;
@Controller
@RequestMapping("/... | 29.666667 | 62 | 0.827247 |
869d69ad7a8776f4a66fa7947906ef0ebad56909 | 1,651 | /*
* Copyright 2010, Mysema Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in... | 27.983051 | 79 | 0.639612 |
4352c3499d7bdc7ddc9db406e693e754a14742e3 | 257 | package server;
import javax.swing.JFrame;
public class ServerTest {
public static void main(String[] args) {
Server Host = new Server();
Host.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Host.startRunning();
}
}
| 13.526316 | 55 | 0.653696 |
37a3387691d0e74e2111ac07b61b0112bc1ea69e | 3,122 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2016.02.... | 31.22 | 140 | 0.68706 |
8ec97037a8a26dff4f1d923fe49c667e94ed4217 | 15,265 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 38.1625 | 134 | 0.792008 |
d1b96ce85d7e919991d2a3e53efd2c093de7aeae | 3,201 | package ru.stqa.pft.addressbook.tests;
import org.openqa.selenium.remote.BrowserType;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.AfterSuite;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.BeforeSuite;
impo... | 38.566265 | 159 | 0.619494 |
6c035d3c9585511aaa87ef2bd5d57f155700a6ce | 1,341 | /**
* Copyright 2015 Kamran Zafar
*
* 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 ... | 33.525 | 96 | 0.767338 |
adb035c10ae9b75675baa9cdf71882a22f0f0088 | 1,028 | package frc.robot.subsystems;
import java.util.ArrayList;
public class SafetyOverrideRegistry {
private static SafetyOverrideRegistry instance;
public static SafetyOverrideRegistry getInstance(){
if(instance == null){
instance = new SafetyOverrideRegistry();
}
return instan... | 24.47619 | 83 | 0.64786 |
ca7dfee403355af650ab8dab32f1889b841f7406 | 649 | package com.dbms.triplehao.service.impl;
import com.dbms.triplehao.dao.RegionStoreDao;
import com.dbms.triplehao.entity.RegionStore;
import com.dbms.triplehao.service.RegionStoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframe... | 28.217391 | 67 | 0.810478 |
3e8a72107ab24a7c45006ba6d606c0240b93c74e | 5,294 | package org.ndextools.morphcx.writers;
import java.io.*;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.csv.CSVFormat;
import org.apache.commons.csv.CSVPrinter;
import org.junit.*;
/**
* Unit tests for TableToCSV class when the output target is a file.
*/
public class TableToCSVAsFileT... | 36.763889 | 86 | 0.605402 |
51086fead4198c7d9e77084f2828e3e5b5a1e2f3 | 1,874 | /**
* This file is part of ftp4che.
* 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... | 26.027778 | 77 | 0.590715 |
3637f454fa2f3447f5eb354fd9755cbde5977fa4 | 80 | package ru.job4j.pooh;
public interface Service {
Resp process(Req req);
}
| 13.333333 | 26 | 0.7125 |
8e8089745a9e5937f19e2a14975225af3861e395 | 1,529 | package com.example.map;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
/**
* Created by riven_chris on 15/7/24.
*/
public class MapBehavior {
public static void printKeys(Map<Integer, String> map) {
System.out.println("Size = " + map.size() + ",");
System.out.print("keys:")... | 29.403846 | 99 | 0.593198 |
65043737ff56f24f61ec0a588734eda986c0a8de | 5,871 | /*-
* #%L
* PropertiesFramework :: Core
* %%
* Copyright (C) 2017 LeanFrameworks
* %%
* 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,... | 28.639024 | 114 | 0.652189 |
cc733936e623e136328d874ee0611b67f22f5970 | 2,029 | /*
* #%L
* ACS AEM Commons Bundle
* %%
* Copyright (C) 2019 Adobe
* %%
* 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... | 38.283019 | 116 | 0.73928 |
49c0e1ce978e27b23a410734d00d1d2245a6b512 | 591 | package com.example.warehouse.delivery;
import com.example.warehouse.Report;
import com.example.warehouse.export.ExportType;
public class NoReportDelivery extends AbstractReportDelivery {
public NoReportDelivery() {
super("No report delivery");
}
@Override
protected void beforeDoDeliver() {
... | 21.888889 | 91 | 0.671743 |
f6bb615a92b2171159573f26c38d6133968e26e7 | 5,149 | /*
* Copyright 2019 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 a... | 33.875 | 121 | 0.651389 |
081fa0dd110ae9d63018dc7fb73fbfd99afa33cc | 670 | package com.kapcb.framework.optimus.parser;
import com.kapcb.framework.optimus.limit.Limiter;
import com.kapcb.framework.optimus.operation.LimiterOperation;
import java.lang.reflect.Method;
import java.util.Collection;
/**
* <a>Title: LimiterAnnotationParser </a>
* <a>Author: Kapcb <a>
* <a>Description: LimiterAn... | 25.769231 | 92 | 0.756716 |
42e18ecc4345e187fa3bf0d07e00f02267eaf5db | 11,923 | /* Copyright (c) 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 37.376176 | 94 | 0.735721 |
f400300d5becd573ef39c352bdf7b5d4be2f8539 | 1,791 | package com.artemis;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertTrue;
import java.util.ArrayList;
import java.util.List;
import org.junit.Before;
import org.junit.Test;
import com.artemis.component.Packed;
public class PackedComp... | 24.875 | 72 | 0.720268 |
077c215721cf5b811b31bfe7d001bf4b05c83be7 | 158 | package progra2.pkg2_lab4_dennischirinos_daviddiaz;
public class Plataforma extends Almacen {
public char[] antirrobo() {
return null;
}
}
| 15.8 | 51 | 0.708861 |
973a152f2e87e49c6cac82d7b2e9feb6b98ce761 | 915 | package com.udacity.jdnd.course3.critter.service;
import com.udacity.jdnd.course3.critter.model.entity.Customer;
import com.udacity.jdnd.course3.critter.model.entity.Pet;
import com.udacity.jdnd.course3.critter.repository.CusRepository;
import com.udacity.jdnd.course3.critter.repository.PetRepository;
import org.sprin... | 27.727273 | 65 | 0.761749 |
efe8c0eb7852d02d09d657c3b824c693d74bbc38 | 1,368 | package org.col.api.model;
import java.util.Objects;
import com.google.common.base.Preconditions;
import org.col.api.vocab.TaxonomicStatus;
/**
* A taxonomic synonym, linking a name to potentially multiple taxa.
* Can be used for both homo-and heterotypic synonyms as well as misapplied names.
*/
public class Syno... | 25.811321 | 95 | 0.693713 |
b3c5e6c9564c61659a100228f59a2e0795eacfea | 612 | package galamadriabuyak.util;
public enum Target {
SELF("self"),
ENEMY("enemy"),
BASIC_ATTACK("basicAttack");
private String name;
Target(String name) {
if (name == null) {
throw new AssertionError();
}
this.name = name;
}
public String toS... | 20.4 | 48 | 0.503268 |
77fa16c658df066747285f6d7dd21b6568174880 | 244 | package com.questionnaire.ssm.module.login.mapper;
import java.util.Set;
public interface SysUserMapper {
Set<String> listUserRole(String userTel) throws Exception;
Set<String> listUserPermission(String userTel) throws Exception;
} | 22.181818 | 68 | 0.786885 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.