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 |
|---|---|---|---|---|---|
57c72a51d1fc2625b5eab2594b48149c059a5c5a | 4,093 | package net.n2oapp.framework.config.reader.widget;
import net.n2oapp.framework.api.metadata.global.view.action.LabelType;
import net.n2oapp.framework.api.metadata.global.view.widget.table.ImageShape;
import net.n2oapp.framework.api.metadata.global.view.widget.table.N2oAbstractTable;
import net.n2oapp.framework.api.me... | 52.474359 | 146 | 0.698998 |
4bec20c63d62bf3d373660e7a0367da344cd0fa3 | 286 | /**
* Copyright MaDgIK Group 2010 - 2015.
*/
package madgik.exareme.utils.histogram.score;
import madgik.exareme.utils.histogram.Bucket;
import java.util.LinkedList;
/**
* @author herald
*/
public interface HistogramScore {
double getScore(LinkedList<Bucket> bucketList);
}
| 16.823529 | 51 | 0.737762 |
0b4b7179095bd21d1463657e0e742e40306dfaca | 3,518 | package com.redhat.rhoar.customer.service;
import java.util.List;
import java.util.Optional;
import java.util.stream.Collectors;
import com.google.inject.Inject;
import com.redhat.rhoar.customer.model.Customer;
import io.vertx.core.AsyncResult;
import io.vertx.core.Future;
import io.vertx.core.Handler;
import io.ver... | 37.031579 | 113 | 0.616828 |
617136efeaff9d14d63912dd5df35d628e956cb9 | 717 | /*Complete the code segment to swap two numbers using call by object reference.*/
import java.util.Scanner;
class Question { //Define a class Question with two elements e1 and e2.
Scanner sc = new Scanner(System.in);
int e1 = sc.nextInt(); //Read e1
int e2 = sc.nextInt(); //Read e2
}
public class Question5 {... | 24.724138 | 81 | 0.661088 |
1fde70902aa8cafda8425f3e88fd0305069dea01 | 153 | public class Aaaaaaa {
private final String aaa;
Aaaaaaa(Object aabbb) {
Xxx x = new Xx<caret>
}
}
class XxxImpl implements Xxx {} | 15.3 | 31 | 0.627451 |
11ecf38af6d4b88bc381e1857398e7b1a8068b64 | 1,955 | /*
* Copyright (c) 2012-2015 Savoir Technologies, 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 appl... | 35.545455 | 120 | 0.577494 |
e9b1a4d709887bd3bcc77d5e4ab1d7a32f244c1d | 311 | // Copyright 2015 Pants project contributors (see CONTRIBUTORS.md).
// Licensed under the Apache License, Version 2.0 (see LICENSE).
package org.pantsbuild.testproject.shadingdep;
/**
* Used to test shading support in tests/python/pants_test/java/jar/test_shader_integration.py
*/
public class SomeClass {}
| 31.1 | 94 | 0.778135 |
b1305e9d99456c6ea264fd8e774dc1ebb8a24b56 | 2,095 | package com.yipeipei.pprqs;
import java.util.EnumMap;
import java.util.EnumSet;
import java.util.Random;
import edu.princeton.cs.introcs.StdOut;
/**
* NodeFlag used to distinguish the real nodes and surrogate nodes.
* 0 for real nodes, 1 for surrogate nodes
* @author peipei
*
*/
public enum NodeFlag {
SURR... | 28.310811 | 94 | 0.595704 |
3e784c9f5825ffb7b30de7c51b348758f5fea5ea | 220 | package jcf.extproc.process;
import java.io.Serializable;
public interface LogFileKeepingPolicy extends Serializable {
boolean isOutdated(JobInstanceInfo jobInstanceInfo, JobInstanceInfo currentJobInstanceInfo);
}
| 20 | 93 | 0.845455 |
267741a6e59dc694f2ed27e3eccf64d22a74f2d0 | 6,981 | package com.ctrip.platform.dal.dao.sqlbuilder;
import com.ctrip.platform.dal.common.enums.DatabaseCategory;
import com.ctrip.platform.dal.dao.DalHints;
import org.junit.Test;
import java.sql.SQLException;
import static com.ctrip.platform.dal.dao.sqlbuilder.AbstractFreeSqlBuilder.text;
import static com.ctri... | 42.567073 | 193 | 0.676837 |
b6b7a547c138be33f62c68136bfccb655e33941b | 6,141 | /*
* Copyright (c) 2010-2015 Pivotal Software, Inc. 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 req... | 35.912281 | 109 | 0.756391 |
0762c926989bbb2db8493d3e7936c30d08a590b5 | 9,433 | /*
* Copyright 2014-2018 JKOOL, 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 applicable law or agreed to... | 34.680147 | 120 | 0.752359 |
7e7ce6b822e4849d6f59ef6b5e78f08f697661d9 | 3,126 | package ru.shemplo.hw.src.implementor;
import java.lang.reflect.Method;
import java.lang.reflect.Type;
import java.lang.reflect.TypeVariable;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Stream;
public class ImplementTree {
private final Node ROOT;
public ImplementTree ... | 29.214953 | 72 | 0.612284 |
be0ad40b5ebf5b17e2af778a54c270fce714e9f9 | 4,057 | /*
* Copyright 2012 JBoss 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 in ... | 42.260417 | 89 | 0.648509 |
f59a18e4abbf3c0fb837c3a8ba6093fa7695fe43 | 10,534 | /*
* 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 at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... | 41.148438 | 307 | 0.772261 |
47428e19112b7994d011fb915fe33c25df5764ad | 877 | package com.logicaldoc.util;
/**
* Encodings.java
* Copyright (c) 2012 by Dr. Herong Yang, herongyang.com
*/
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import java.util.SortedMap;
/**
* Utility class for workin... | 21.925 | 61 | 0.669327 |
a453f0b3ea82fe729da166e32a1685c2f8229c98 | 4,288 | package com.zimbra.qa.selenium.projects.ajax.tests.calendar.appointments.assistant;
import java.util.Calendar;
import org.testng.annotations.Test;
import com.zimbra.common.soap.Element;
import com.zimbra.qa.selenium.framework.core.Bugs;
import com.zimbra.qa.selenium.framework.ui.Button;
import com.zimbra.qa.selenium... | 38.981818 | 167 | 0.743004 |
94d20e856b9f8200c838cf8070170710e6f781ae | 1,480 | package com.naio.diagnostic.threads;
import java.io.IOException;
import java.nio.ByteBuffer;
import com.naio.diagnostic.utils.Config;
import com.naio.diagnostic.utils.MemoryBuffer;
import com.naio.net.NetClient;
public class SendSocketThread extends Thread {
private boolean stop;
private final Object lock1 = new ... | 19.733333 | 59 | 0.651351 |
ccf0d42a0303b46f3a081997caf74cbda9fe3f1a | 3,852 | /**
*
*/
package org.irods.jargon.core.query;
import java.io.IOException;
import java.io.InputStream;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
import org.irods.jargon.core.exception.JargonException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* @author Mike Co... | 26.565517 | 79 | 0.708982 |
79e7183e4a20a383d5651d3f047b7b89ff6d8896 | 11,906 | /*
* Copyright (C) 2017-2019 Dremio Corporation
*
* 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 l... | 35.120944 | 106 | 0.762893 |
c760fe2a82c158dadc5c175e62bcc79ba0619d63 | 5,751 | package com.dlgdev.teachers.helpbook.views.courses.fragments;
import android.content.Intent;
import android.support.test.espresso.intent.Intents;
import android.support.test.rule.ActivityTestRule;
import android.support.test.runner.AndroidJUnit4;
import com.dlgdev.teachers.helpbook.DatabaseUtils;
import com.dlgdev.te... | 39.122449 | 114 | 0.800556 |
c450bca49e5683d727b3ee4e4beb6ff0b1d165a5 | 604 | package demo.valueobject;
import java.io.Serializable;
public class ExpUfRelation implements Serializable {
private static final long serialVersionUID = 1L;
private Long friendid;
private Long userid;
public ExpUfRelation() {
}
public Long getFriendid() {
return friendid;
}
public void setFriendid(Long ... | 16.777778 | 70 | 0.706954 |
83d7016f4713c266edb3b3288e8a7657eb3a22fe | 1,164 | package xyz.proteanbear.muscida;
import org.springframework.core.annotation.AliasFor;
import org.springframework.stereotype.Component;
import java.lang.annotation.*;
/**
* Message related processing
*
* @author ProteanBear
* @version 1.0.0,2018/05/09
* @since jdk1.8
*/
public class Message
{
/**
* Mes... | 20.421053 | 76 | 0.594502 |
17468c4542c19df1feb12c2d2dada38671dd75e2 | 1,659 | /*
* Copyright 2019 Arcus 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 applicable law or agreed to ... | 25.921875 | 75 | 0.705847 |
a68438f88a82d16b291d6eb9d9b9a28ea6179cce | 777 | import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.DriverManager;
import java.sql.Connection;
import java.sql.Statement;
import java.sql.ResultSet;
public class logout extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response)
... | 27.75 | 80 | 0.709138 |
7f4bd2e8c17fecd0ad2f923e3c1d86ff150c42ee | 1,286 | package com.ztiany.module_b;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.app.AppCompatActivity;
import javax.inject.Inject;
import dagger.android.AndroidInjection;
import dagger.android.AndroidInjector;
import dagger.android.... | 29.906977 | 107 | 0.713064 |
e3045a3d191f7419f02fbacae08847493274ef56 | 387 | package com.telenor.connect.connectidexample;
import android.app.Application;
import com.telenor.connect.ConnectSdk;
import com.telenor.connect.id.IdProvider;
public class ExampleApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
ConnectSdk.sdkInitialize(ge... | 25.8 | 93 | 0.757106 |
6c3c7dcb8b7cc664a7ee249ab25ae34d4a9ba9c5 | 1,573 |
// A Naive recursive Java program to find minimum number
// operations to convert str1 to str2
class EDIST
{
static int min(int x,int y,int z)
{
if (x<=y && x<=z) return x;
if (y<=x && y<=z) return y;
else return z;
}
static int editDist(String str1 , String str2 , ... | 34.195652 | 85 | 0.55499 |
6a566ef2b4de01d8ed8b3a8c65b932d213a710c7 | 1,545 | package org.knowm.xchange.examples.upbit.account;
import java.io.IOException;
import java.util.Arrays;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.currency.Currency;
import org.knowm.xchange.dto.account.AccountInfo;
import org.knowm.xchange.examples.upbit.UpbitDemoUtils;
import org.knowm.xchange.servic... | 35.930233 | 91 | 0.707443 |
f33f7fcbd286c7422de2e2a7bf1cd7d8684ccddc | 3,264 | package org.timothyb89.lifx.net.packet;
import java.util.HashMap;
import java.util.Map;
import org.timothyb89.lifx.net.packet.response.*;
import org.timothyb89.lifx.net.packet.handler.*;
/**
* A static factory for registering packet types that may be received and
* dispatched to client cod * request types, like {@c... | 32.316832 | 107 | 0.733456 |
415b45c6d603b7ddadbb5c668e03ccc409813c79 | 7,706 | package com.SCHSRobotics.HAL9001.system.robot;
import android.util.Log;
import com.SCHSRobotics.HAL9001.util.control.AutoTransitioner;
import com.SCHSRobotics.HAL9001.util.math.units.HALTimeUnit;
import com.SCHSRobotics.HAL9001.util.misc.Timer;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.q... | 33.072961 | 162 | 0.600052 |
72188a3118ad2fb459c541c116371dd1af7df2d5 | 676 | package me.josephzhu.javaconcurrenttest.atomic;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import java.util.concurrent.TimeUnit;
@Slf4j
public class InterestingProblem {
int a = 1;
int b = 1;
void add() {
a++;
b++;
}
void compare() {
if (a < b)
... | 17.333333 | 52 | 0.486686 |
66dab1b34a9cdaa108d4bcc2079dcbf6aa37e2a1 | 753 | package com.teioh08.branchingout.UI.Main.Presenter;
import android.os.Bundle;
import com.teioh08.branchingout.UI.Main.View.Mapper.FIntroMap;
public class FIntroPresenterImpl implements FIntroPresenter{
final public static String TAG = FIntroPresenterImpl.class.getSimpleName();
public FIntroMap mFIntroMap;
... | 16.021277 | 79 | 0.675963 |
fc8a11ed187799db2dcf59008c5a2491503ad0c8 | 1,124 | package com.ontraport.mobileapp.main.record.asynctasks;
import com.ontraport.mobileapp.OntraportApplication;
import com.ontraport.mobileapp.AbstractAsyncTask;
import com.ontraport.mobileapp.main.record.RecordAdapter;
import com.ontraport.mobileapp.main.record.RecordInfo;
import com.ontraport.sdk.exceptions.RequiredPar... | 35.125 | 91 | 0.77669 |
a393597ff2e79b4b83d79101c3f78291c83dd19c | 2,065 | package com.spring.dao;
import java.util.List;
import org.hibernate.Criteria;
import org.hibernate.Hibernate;
import org.hibernate.criterion.Order;
import org.hibernate.criterion.Projections;
import org.hibernate.criterion.Restrictions;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframewo... | 28.287671 | 92 | 0.74431 |
5037ccea2bf87836643b1b2c5645931f7b6849b3 | 2,107 | import javax.swing.Icon;
import java.lang.String;
import java.io.*;
import javax.swing.ImageIcon;
import org.ncgr.isys.system.Service;
import org.ncgr.isys.system.ServiceProvider;
import org.ncgr.isys.system.DynamicViewerService;
import org.ncgr.isys.system.IsysObject;
import org.ncgr.isys.system.Client;
import org.n... | 21.947917 | 96 | 0.694352 |
5459224ee24ad0b96cfabd426893ad2ebeaf7739 | 494 | package com.helospark.tactview.core.timeline.effect.stabilize.impl;
import java.util.List;
import com.sun.jna.Structure;
public class StabilizationInitRequest extends Structure implements Structure.ByReference {
public int radius;
public int width;
public int height;
public String motionFile;
pub... | 26 | 90 | 0.728745 |
d5160c8cb9502bbdf75728315107b1733c4cd452 | 90 | package com.solution.clock;
public interface TimeUnit {
String display(int units);
}
| 15 | 30 | 0.744444 |
b6c7af26eace79fe55fd77f7edba016f601556fc | 2,281 | package com.livae.util.math;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class Vector3dTest {
@Test
public void testBasic() throws Exception {
Vector3d v = new Vector3d(1, 2, 3);
v.add(new Vector3d(4, 5, 6));
assertEquals(5, v.x, 0.00001);
assertEquals(7, v.y, 0.00001);
as... | 26.835294 | 47 | 0.652784 |
d1286f3b9e45295491d312b009ef631eba959972 | 179 | package useful;
import java.awt.Color;
/**
* @author Moses Muigai Gitau
*/
public interface ColorChangeListener {
public void colorChanged(Color color1, Color color2);
}
| 14.916667 | 57 | 0.731844 |
7709ba225cc6f57145f0d6f36d176f57151ca2a8 | 12,448 | package com.smart.sso.server.controller;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.smart.mvc.config.ConfigUtils;
import com.smart.mvc.model.Result;
import com.smart.mvc.util.StringUtils;
import com.smart.sso.server.common.HttpUtils;
import com.smart.sso.server.common.RequestUtils;
import com.smart... | 45.265455 | 206 | 0.620421 |
61aaa8985904ac1d060971fe828e8c4de1581b0a | 347 |
package stallone.api.mc;
import stallone.api.doubles.IDoubleArray;
/**
*
* @author cwehmeyer
*/
public interface IDeltaGDistribution
{
/**
* accepts or rejects a transition matrix sample
* @param stationary distribution, random number
* @return
*/
public boolean accept( IDoubleArray p... | 18.263158 | 66 | 0.691643 |
02292d5900c66bb60608d662756161e03d67dcb0 | 423 | package net.maunium.bukkit.Maussentials.Utils.ArenaMG;
import java.util.Set;
import org.bukkit.plugin.Plugin;
/**
* The AMG (Arena minigame) base. Not yet ready for usage.
*
* @author Tulir293
* @since 0.3
*/
public abstract class ArenaMG {
private Plugin plugin;
private int teamCount, playerCount, minPlayer... | 19.227273 | 58 | 0.728132 |
ddfa4440563386b4d20bf8d11981287eb617f301 | 616 | package ru.job4j.templates;
import org.junit.Test;
import java.util.HashMap;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.*;
public class TemplateTest {
@Test
public void whenGenereteStringWithTemplateAction() {
var template = new TemplateAction();
var templateStr =... | 26.782609 | 72 | 0.650974 |
e17a1496e599967b86936773600dbe9c6af102be | 886 | package java_integration.fixtures;
public class ArrayReceiver {
public static boolean[] callWithBoolean(boolean[] arg) {
return arg;
}
public static byte[] callWithByte(byte[] arg) {
return arg;
}
public static char[] callWithChar(char[] arg) {
return arg;
}
publi... | 20.136364 | 60 | 0.592551 |
c0dcf14eced2ac638ac5805d4c84627993929052 | 1,425 | /**
Copyright 2013 project Ardulink http://www.ardulink.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 applicable law or ... | 28.5 | 78 | 0.755789 |
4bd6e38fa0022eaf391addd43d10994e2473ca43 | 45,587 | package mekanism.common.util;
import com.mojang.authlib.GameProfile;
import ic2.api.energy.EnergyNet;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
import java.u... | 28.563283 | 243 | 0.710422 |
911c0ae5079f8ba0fa618cb0aa566241d567ff50 | 153 | package io.github.jokoframework.myproject.security;
import java.util.Map;
public interface AuthenticationDetail {
Map<String, Object> getCustom();
} | 17 | 51 | 0.79085 |
9568eaaed721b0d895c494e8a73d42256b2b1997 | 6,994 | package ru.stqa.pft.addressbook.appmanager;
import org.junit.Assert;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.Select;
import ru.stqa.pft.addressbook.model.ContactData;
import ru.stqa.pft.addressbook.model.Contacts;... | 40.195402 | 148 | 0.654704 |
34d4ffbd3aadc2fb9abf87661acd2435ed63cb87 | 1,937 | package com.classes;
import com.classes.model.Aluno;
import com.classes.model.AlunoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframe... | 29.348485 | 77 | 0.686629 |
a1fbf66e2abd43f8d99c257e7979e670ed9bb48e | 6,782 | package com.bluegosling.artificer.bridges;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertNotNull;
import com.bluegosling.artificer.bridges.TestAnnotation.TestEnum1;
import com.bluegosling.ar... | 44.326797 | 97 | 0.625479 |
b175e64631f73ba2a34981200309706e720be9c9 | 2,769 | package edu.tsatualdypov.app.services.network;
import edu.tsatualdypov.app.common.Constants;
import edu.tsatualdypov.app.common.Future;
import edu.tsatualdypov.app.models.ForecastData;
import edu.tsatualdypov.app.models.WeatherData;
import java.io.IOException;
import java.util.concurrent.ExecutionException;
import c... | 32.964286 | 165 | 0.694836 |
8a4573860f76ebab55c890acc60bbd7cd18cd82a | 35,765 | package org.ovirt.engine.ui.uicommonweb.models.vms;
import org.ovirt.engine.core.common.TimeZoneType;
import org.ovirt.engine.core.common.businessentities.ActionGroup;
import org.ovirt.engine.core.common.businessentities.Disk;
import org.ovirt.engine.core.common.businessentities.Disk.DiskStorageType;
import org.ovirt.... | 41.394676 | 189 | 0.579086 |
e8a993fa8e0cad15ccef4c923f36ab09ffa3b515 | 81 | package sistersart.model.entity;
public enum MainCategory {
OIL, HANDMADE
}
| 13.5 | 32 | 0.753086 |
4d3aedd8207a945dcacf1637dbd23c58aee1b294 | 521 | package single;
/**
* @author Mr.Q
* @date 2020/3/25 0:03
* desc:懒汉模式实现单例,线程安全,但效率不高
*/
public class SingleLH {
private static SingleLH mInstance;
private SingleLH() {
}
public static synchronized SingleLH getInstance() {
if (mInstance == null) {
mInstance = new SingleLH();
... | 17.965517 | 59 | 0.585413 |
243c90cf76cdf9eb0741c451dd22b8d06fa8d591 | 440 | package com.notronix.etsy.api.model;
import java.util.List;
import java.util.Map;
public interface CartListing
{
Long getListingId();
Integer getPurchaseQuantity();
String getPurchaseState();
Boolean getDigital();
String getFileData();
Long getListingCustomizationId();
Boolean... | 24.444444 | 55 | 0.704545 |
9a217878e4c80fbeae302485e7a0c2c6d6f759bc | 1,249 | import java.util.Stack;
public class EvaluateRPNExpressions {
/*
9.2
*/
public static Integer eval(String RPNExpression) {
Stack<Integer> stack = new Stack<>();
int a, b;
for (String s : RPNExpression.split(",")) {
if (s.length() > 1 &&
s.charAt... | 30.463415 | 99 | 0.355484 |
287b97bfaa1ad1c15151f3efb1a039c400193610 | 5,224 | package hongwei.leetcode.playground.other.jdbk;
import java.util.ArrayList;
import hongwei.leetcode.playground.other.jd.Formular;
import hongwei.leetcode.playground.other.jd.Result;
public class Algorithm2 {
private static final boolean isPrintInternalProcedure = false;
public Result run(int[] a) {
... | 32.65 | 93 | 0.488897 |
58a26cb3865558bd35e863a49b33729ad0fdb918 | 973 | package com.celeste.library.spigot.view.event;
import org.bukkit.Location;
public final class EventController {
/**
* Checks if it's the same chunk
*
* @param location Location
* @param target Location
* @return boolean
*/
public boolean isSameChunk(final Location location, final Location targe... | 23.731707 | 78 | 0.685509 |
d6fed23694a22fe1d0ee06295e0700f27334875c | 771 | package it.oltrenuovefrontiere.fluttercouch;
import org.json.JSONException;
import org.json.JSONTokener;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import org.json.JSONObject;
public class QueryJsonTest {
@Test
public void firstTest() {
String jsonString = "{\"selectDistinct... | 32.125 | 197 | 0.605707 |
a7b8681571247ab8868f9da0a72c3a81da2f159b | 3,243 | package bot.modules;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import bot.Module;
import bot.Bot;
import bot.util.Helpers;
public class OzbModule extends ... | 22.838028 | 77 | 0.632439 |
79def72d3d850eca9423024c6556286e646539e9 | 2,408 | package com.github.swamim.media.organizer.utils;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Future;
import java.util.conc... | 27.05618 | 164 | 0.694352 |
08c9d9997377744fb40c4da96109c3cd410bd0ec | 2,573 | /*
* Copyright 2016 Agapsys Tecnologia Ltda-ME.
*
* 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 ... | 30.630952 | 126 | 0.734162 |
7917354ec6dd10942e2318b05581468ee23245a7 | 2,460 | package io.github.tesla.ops.system.controller;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletResponse;
import org.apache.shiro.authz.annotat... | 33.243243 | 96 | 0.644715 |
bcaaee69090f5eabd8d4c09e76c3f899be95727a | 662 | package org.web.exception;
public class AutumnException extends RuntimeException {
/**
*
*/
private static final long serialVersionUID = 1L;
public AutumnException() {
super();
// TODO Auto-generated constructor stub
}
public AutumnException(String paramString, Throwable paramThrowable) ... | 21.354839 | 72 | 0.714502 |
75999e52592642b7c4bacf776f9a229ddbd98702 | 1,924 | package org.dew.fhir.model;
import java.io.Serializable;
/**
*
* This resource provides: the claim details; adjudication details from the processing of a Claim; and optionally account balance information, for informing the subscriber of the benefits provided.
*
* @see <a href="https://www.hl7.org/fhir">Explanatio... | 22.635294 | 197 | 0.709979 |
8700e318bc06d72a675d35ccc5aacf65d697a0c1 | 2,922 | /*
* 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 ... | 49.525424 | 114 | 0.761465 |
8112d70cb5af50358f0a2e26d91430577a718f89 | 788 | package io.rapidpro.surveyor.utils;
import java.io.File;
import java.io.IOException;
/**
* Misc utils
*/
public class SurveyUtils {
/**
* Creates a nested directory
*
* @param root the root directory
* @param folders the nested directory names
* @return the directory
* @throws I... | 26.266667 | 98 | 0.604061 |
b0ac42f4bfecf786bf2f76b895dc5471f7c1d15a | 3,214 | /*
* JBoss, Home of Professional Open Source
* Copyright 2013, Red Hat, Inc. and/or its affiliates, and individual
* contributors by the @authors tag. See the copyright.txt in the
* distribution for a full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* y... | 40.175 | 108 | 0.683261 |
a67f93b711201ee7c288aeb23eb9331649979ba8 | 283 | public class MyBlock {
public static void main(String [] args){
{
int i = 0;
System.out.println(i);
}
{
int i = 9;
System.out.println(i);
}
int i = 8;
System.out.println(i);
}
}
| 17.6875 | 44 | 0.402827 |
5fd7fcf63eb6f35209c382661cb8b2a69c180f43 | 123 | package com.headfirst.behavioral.observer.message;
public interface Observer {
void notifyUpdate(Message message);
}
| 17.571429 | 50 | 0.788618 |
9bfcd673b93ee863d9225f4a4ee4d8a1b6f10940 | 1,382 | package com.company;
import java.util.Scanner;
public class SunGlasses {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = Integer.parseInt(scanner.nextLine());
int rowLength = n * 4 + 1;
int firstRowStars = n *2;
int firstRowSpaces... | 30.043478 | 66 | 0.452243 |
8cf293ae3bc7793a7247ce64be9040e9dc045e38 | 4,100 | /*
* Copyright 2021 The University of Pennsylvania and Penn Medicine
*
* Originally created at the University of Pennsylvania and Penn Medicine by:
* Dr. David Asch; Dr. Lisa Bellini; Dr. Cecilia Livesey; Kelley Kugler; and Dr. Matthew Press.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* ... | 29.078014 | 106 | 0.78561 |
8daea226394c2babc7d79fafdc9028c9f21591d0 | 303 | package com.revature.dungeonsite.repositories;
import com.revature.dungeonsite.models.PhoneType;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface PhoneTypeRepository extends JpaRepository<PhoneType, Long> {
}
| 30.3 | 77 | 0.854785 |
1c98c2f696e611f9eabbb3a5776c2ade0f0f14ce | 17,961 | /*
* 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 smockify;
import com.mpatric.mp3agic.InvalidDataException;
import com.mpatric.mp3agic.Mp3File;
import com.mpatric.mp3agic.Uns... | 30.650171 | 177 | 0.535382 |
e14bcb4138385e085237e46f347d0e5da872d013 | 6,593 | /*
* Copyright 2017 Baidu, 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 in writ... | 40.20122 | 529 | 0.668891 |
46e7151fe279ef82f56bcd148a59cd9765906eb9 | 10,251 | /*
* Copyright 2015, 2016 Tagir Valeev
*
* 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... | 61.753012 | 245 | 0.741098 |
0f7f9cd6d6749964dcbc506e22bc90b04dd7bd59 | 578 | package ru.job4j.condition;
/**
*Class DummyBot.
*@author Sigaev Aleksandr (sigaev.aleksandr.v@yandex.ru)
*@version 1.0
*@since 26.01.2018
*/
public class DummyBot {
/**
* Отвечает на вопросы.
* @param question Вопрос от клиента.
* @return Ответ.
*/
public String answer(String question... | 23.12 | 57 | 0.567474 |
58c1762e8b303020c74df372e920a305e7981357 | 3,613 | package com.jgardella.app.frontend.controller;
import java.io.File;
import java.io.IOException;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.control.ComboBox;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import javafx.scene.layout.VBox;
import javafx.stage.D... | 24.578231 | 151 | 0.728757 |
8a6def7989be2cfea07ee93191e642d0178de005 | 4,883 |
package shiver.me.timbers.aws.msk;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
... | 30.141975 | 140 | 0.68462 |
86aac571f1407e008a205b2a2f763f1ea4388d83 | 670 | package com.ruoyi.flowable.domain.vo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Map;
/**
* <p>流程任务<p>
*
* @author XuanXuan
* @date 2021-04-03
*/
@Data
@ApiModel("工作流任务相关--请求参数")
public class FlowTaskVo {
@ApiModelProperty("任... | 18.108108 | 47 | 0.702985 |
54020422200129f5522cf6b69f673b9944f67552 | 2,577 | /*
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 34.36 | 95 | 0.733411 |
dc6b3a41b4655bcdf70c8a9abf3acc89f5a84a04 | 944 | package link.standen.michael.fatesheets.model;
import android.support.annotation.NonNull;
import java.io.Serializable;
/**
* A class for skill information.
*/
public class Skill implements Serializable, Comparable<Skill> {
private Integer value;
private String description;
public Skill(Integer value){
this(... | 19.666667 | 66 | 0.728814 |
db5c02f6104905491ed412570b7bd2f7675b88cf | 380 | package br.com.omniatechnology.pernavendas.pernavendas.Presenter;
import android.widget.ListView;
import android.widget.Spinner;
import android.widget.TextView;
public interface IUsuarioPresenter extends IModelPresenter{
void getDadosSpinnerPerfil(Spinner spinner);
void setSpinnerPerfil(Spinner spinner);
... | 23.75 | 65 | 0.815789 |
3663d70049f0d81265d92dcffb4f89624c56b757 | 4,674 | /*
* Copyright © 2015 Cask Data, 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 t... | 38.311475 | 117 | 0.700685 |
924960adfae1b7b70cdf798ebbeebca045b0d421 | 2,007 | package com.smartdevicelink.test.rpc.datatypes;
import com.smartdevicelink.proxy.rpc.SeekStreamingIndicator;
import com.smartdevicelink.proxy.rpc.enums.SeekIndicatorType;
import com.smartdevicelink.test.JsonUtils;
import com.smartdevicelink.test.TestValues;
import junit.framework.TestCase;
import org.json.JSONExcept... | 32.901639 | 151 | 0.689586 |
8e8c6c1ed702489c6e37a54af6be16163ef8e609 | 1,360 | /*
* Copyright 2018 ZJNU ACM.
*
* 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... | 29.565217 | 75 | 0.702941 |
a73e5aa7e53fc37d7e2f135c2b6e9d737e1a4f5a | 2,282 | package com.github.chen0040.zookeeper.clients;
import com.github.chen0040.zkcoordinator.models.NodeUri;
import com.github.chen0040.zkcoordinator.models.ZkConfig;
import com.github.chen0040.zkcoordinator.nodes.RequestNode;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import jav... | 32.6 | 157 | 0.683611 |
781c44a425e73814a926039157f962c860052ab3 | 3,292 | /*
* 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... | 31.352381 | 80 | 0.657351 |
653655914a0a2ad18762824eb8841118f386acf7 | 2,424 | /**
* Mirai Song Plugin
* Copyright (C) 2021 khjxiaogu
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.... | 31.480519 | 96 | 0.736386 |
1a1d671c3e7d9336f32dbe6c53420fa578f83b28 | 1,884 | package uk.gov.hmcts.reform.sandl.snlapi.config;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.springframework.boot.web.client.RestTemplateBuilder;
import org.springframework.http.HttpStatus;
import org.springframework.http.client.ClientHttpResponse;
import org.springframe... | 37.68 | 104 | 0.757962 |
31f55900115021620c34a6ae7b59cd5af9facb91 | 1,311 | package edu.udel.cis.vsl.abc.ast.value.common;
import edu.udel.cis.vsl.abc.ast.type.IF.IntegerType;
import edu.udel.cis.vsl.abc.ast.value.IF.CharacterValue;
import edu.udel.cis.vsl.abc.ast.value.IF.ValueFactory.Answer;
import edu.udel.cis.vsl.abc.token.IF.ExecutionCharacter;
public class CommonCharacterValue extends ... | 24.277778 | 81 | 0.748284 |
d5851d9a2e4dc09492742db8fc7ac09a3c4339ad | 2,522 | package ar.edu.itba.ss;
public class Particle {
private static int counter = 1;
private Coordinates position;
private Double radius;
private Double color;
private Velocity velocity;
private int ID;
public Particle(Coordinates position, double radius,double color, Velocity velocity) {
... | 25.734694 | 130 | 0.594766 |
bb4cd65be4563341e68a4a2c74d66e8a09f77f7c | 5,517 | package com.portalbot.main;
import com.portalbot.main.exceptions.BadLoggingException;
import java.text.SimpleDateFormat;
import java.util.*;
import java.util.stream.Collectors;
public class TaskListener {
private DataStream data;
private HttpConnection httpConnection;
private Serializer serializer;
p... | 42.114504 | 276 | 0.612833 |
e1f97feabab18c2d4548b762590052f4b7d16755 | 3,185 | /*
* Copyright 2021 dmfs GmbH
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 38.373494 | 150 | 0.605651 |
d2efcdc865d364d091083d6163dfb37a3f6d7aba | 2,066 | /*
* jmimeinfo is an implementation of shared mime info specification
* The MIT License (MIT)
*
* Copyright (c) 2014 Andy Hedges
*
* 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 wit... | 40.509804 | 80 | 0.742498 |
90e78e1634f855afb045eec21cb1dda893c70a38 | 46,577 | /**
* 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 m... | 37.351243 | 120 | 0.584301 |
3fdcca6e543c89c56762e90a8c9f7f3945f66fd8 | 909 |
package cz.it4i.fiji.hpc_workflow.core;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.function.Function;
import java.util.stream.Collectors;
import cz.it4i.fiji.hpc_client.SynchronizableFileType;
public class ComputationAccessorAdapter implements ComputationAcces... | 23.921053 | 76 | 0.749175 |
3ac85734e49bf79c3bb50c67a8692cbc2796fcdc | 301 | package mchorse.snb.utils;
import mchorse.mclib.utils.files.FileTree;
import mchorse.mclib.utils.files.entries.FolderImageEntry;
import java.io.File;
public class SnBTree extends FileTree
{
public SnBTree(File folder)
{
this.root = new FolderImageEntry("s&b", folder, null);
}
} | 21.5 | 62 | 0.730897 |
6b54cbca8eebf3377dbbfeea8d9922c6d4c5fbb0 | 227 | package jp.co.worksap.oss.findbugs.jpa;
import javax.persistence.Column;
public class GetterWithTooLongLength {
private String name;
@Column(length = 10000)
public String getName() {
return name;
}
}
| 17.461538 | 39 | 0.69163 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.