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 |
|---|---|---|---|---|---|
bdead8d1df4f729b1165e3342b6ce43ed78b8aba | 605 | package org.xmlet.htmlapi;
public class H4<Z extends Element> extends AbstractElement<H4<Z>, Z> implements CommonAttributeGroup<H4<Z>, Z>, PhrasingContentChoice<H4<Z>, Z> {
public H4() {
super("h4");
}
public H4(String name) {
super(name);
}
public H4(Z parent) {
super(parent, "h4");... | 18.90625 | 145 | 0.596694 |
9c6b83b2ac539611ada78715a10546102de2c0f7 | 3,869 | package ru.job4j.xmljdbc;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.sql.*;
import java.util.ArrayList;
import java.util.List;
/**
* После запуска приложение:
* Если таблица entry в БД отсутствует, то создает ее.
* вставляет в таблицу entry n записей со значениями 1..N. Если в таблице
*... | 31.455285 | 101 | 0.573275 |
d1fad0c552c4bf1e2c70cd8c00400406a67a8d19 | 833 | package io.kyligence.notebook.console.dao;
import io.kyligence.notebook.console.bean.entity.NotebookFolder;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import java.util.List;
public interface NotebookFolderRepository extends JpaRepository<Notebo... | 41.65 | 110 | 0.767107 |
476ce7fc5d7c0bfabc9927222745d6512d74e783 | 2,060 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 41.2 | 80 | 0.726699 |
4885386a6139e06c9964a0fd1850e339c007e5c6 | 1,885 | package org.teamsweq.dpzones;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
import org.bukkit.DyeColor;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.block.Block;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.even... | 27.318841 | 70 | 0.721485 |
10da768db88ef9d9265427d1442eabc26e46fa5f | 5,603 | package edu.rhit.groupalarm.groupalarm;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.media.AudioManager;
import android.media.Ringtone;
import android.media.RingtoneManager;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
im... | 40.021429 | 108 | 0.663752 |
1ca22be30e43a1e45263c0b440d793baefaa2ad8 | 3,537 | package com.urcodebin.security.configuration;
import com.urcodebin.backend.service.AccountDetailsService;
import com.urcodebin.security.CustomRequestCache;
import com.urcodebin.security.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
imp... | 39.741573 | 107 | 0.714447 |
dd868ef7262536b28ce32ab79b3f228eb3e84832 | 1,584 | package mchorse.blockbuster.commands;
import mchorse.blockbuster.utils.L10n;
import net.minecraft.command.CommandBase;
import net.minecraft.command.CommandException;
import net.minecraft.command.ICommandSender;
import net.minecraft.command.WrongUsageException;
import net.minecraft.server.MinecraftServer;
/**
* McHor... | 28.8 | 126 | 0.665404 |
ebfeb7d101ae16cf0071833b952f57a5d40820b8 | 48 | package domain;
public class Product {
}
| 8 | 23 | 0.645833 |
18226bdbeb6005a287f661bdd8d9984d970140cd | 2,397 | package com.piccollage.util;
import android.text.TextUtils;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
public class Json... | 33.291667 | 98 | 0.660409 |
0a100d4571ed6b509f3661a9a15a178c6dd9f397 | 314 | package com.hyh.prettyskin.utils.reflect;
public class RefClassWG<T> extends RefClass {
private Class<T> cls;
RefClassWG(Class<T> cls) {
super(cls);
this.cls = cls;
}
@Override
public RefConstructor<T> constructor() {
return new RefConstructor<>(cls, null);
}
} | 18.470588 | 47 | 0.621019 |
e761aeb67ca9c4d41faf59ba835bd996147d5122 | 989 | package strings.countvowels;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
/**
* Class SolutionTest.
* Tests countvowels.Solution.
*
* @author Mishin Yura (mishin.inbox@gmail.com)
* @since 27.06.2021
*/
class SolutionTest {
/**
* SOLUTION.
*/
pri... | 19.019231 | 60 | 0.57634 |
b205cd56e6e6b1856dbccd30c1ca9b61168c1eb6 | 3,562 | package com.challengeandresponse.imoperator.service;
import org.jivesoftware.smack.PacketListener;
import org.jivesoftware.smack.filter.PacketFilter;
import org.jivesoftware.smack.packet.*;
import com.challengeandresponse.eventlogger.EventLoggerI;
import com.challengeandresponse.imoperator.comm.SimpleXMPPConnection;
... | 31.803571 | 132 | 0.740034 |
16412d1659621103c8cac150780458c0ef25be2a | 2,445 | package com.fcgl.madrid.forum.security;
import com.fcgl.madrid.forum.config.AppProperties;
import com.fcgl.madrid.forum.security.model.JWTBody;
import com.fcgl.madrid.forum.security.model.Role;
import io.jsonwebtoken.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.security.core.A... | 33.958333 | 108 | 0.659305 |
d59675697f400a18330d1d1fac8a4eb0262822fa | 1,037 | /*
* Copyright (c) 2015. Qubole 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... | 26.589744 | 75 | 0.734812 |
7951b49b933ea59e6c236dec2d210de1b9610c1f | 27,373 | TOPIC:-Enum
--------
VIDEO NO=3
-----------
NUMBER OF PICTURES=NULL
------------------
VIDEO COMPLETED=YES
-----------------
17:17
36:51
IMPORTANT EXAMPLES:-
----------------->START OF EXAMPLES<---------------------------
Example=1
=========
NOTE:-
-----
PROGRAME=1
=========
EXPLANATION:-
=========... | 20.442868 | 175 | 0.398458 |
c9e65181cbbbc7baf5a44e61d9c12fa98576ea4b | 2,984 | package cn.shaojiel.logback;
import ch.qos.logback.classic.PatternLayout;
import ch.qos.logback.classic.spi.ILoggingEvent;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.stream.Collec... | 33.909091 | 113 | 0.588472 |
830c32f8f83faec4d10cc1b2b9a3ae6de800ed23 | 211 | package com.example.gminchev.weatherview.dataModel.helper_models;
public class GeneralInfo {
public String main;
public int id;
public String description;
public String icon;
}
| 21.1 | 65 | 0.691943 |
e725b04c0ed2d28c23f25b812231625806699933 | 5,252 | /**
* JHOVE2 - Next-generation architecture for format-aware characterization
*
* Copyright (c) 2009 by The Regents of the University of California,
* Ithaka Harbors, Inc., and The Board of Trustees of the Leland Stanford
* Junior University.
* All rights reserved.
*
* Redistribution and use in source a... | 37.514286 | 95 | 0.725628 |
d0075f4d7cd02b88bb7448ec3a43db00bb77c6b2 | 360 |
package app.logic.model;
import app.data.CategoryDao;
public class CategoryModel extends CategoryDao{
private CategoryModel() {
}
public static CategoryModel getInstance() {
return CategoryModelHolder.INSTANCE;
}
private static class CategoryModelHolder {
private static final CategoryMode... | 18 | 70 | 0.741667 |
bbd78badab625a8e073019468b41ff32fb8d78dc | 7,262 | /*********************************************************************************
* *
* The MIT License (MIT) *
* ... | 48.738255 | 120 | 0.510603 |
7a0d856280ee2b456bd0fe988636b142af12370a | 2,370 | package com.cruskit.finsight.analysis;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.time.temporal.ChronoUnit;
import java.util.*;
import static org.junit.Assert.*;
/**
* Created by paul on 26... | 30.384615 | 101 | 0.676793 |
c9200941574f1c3ea85eb76c9c0fdc173e13e1f3 | 6,244 | /*
* Copyright (c) 2002-2018 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This product is licensed to you under the Apache License, Version 2.0 (the "License").
* You may not use this product except in compliance with the License.
*
* This product may include a number ... | 39.025 | 168 | 0.642056 |
cafdca54aab88f446ff983eed977c47408951b44 | 3,446 | /*
* JFLAP - Formal Languages and Automata Package
*
*
* Susan H. Rodger
* Computer Science Department
* Duke University
* August 27, 2009
* Copyright (c) 2002-2009
* All rights reserved.
* JFLAP is open source software. Please see the LICENSE for terms.
*
*/
package edu.duke.cs.jflap.autom... | 26.305344 | 79 | 0.658735 |
442214aa8d9aeae4e1848b91e45afd94689d5300 | 3,697 | /**
*
* Copyright (c) 2006-2015, Speedment, 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 requ... | 31.598291 | 120 | 0.733297 |
23dd37b60795a9756471e8ba545ddce6a1d416af | 789 | package com.yuhuizhao.designPattern.structure.filter;
import java.util.List;
public class OrCriteria implements Criteria {
private Criteria criteria;
private Criteria otherCriteria;
public OrCriteria(Criteria criteria, Criteria otherCriteria) {
this.criteria = criteria;
this.otherCriteri... | 29.222222 | 79 | 0.680608 |
9e200e1a274b68ee8d99b8f87987ad5dd62382f6 | 126 | package com.wexflow;
enum ActionType {
Start,
Suspend,
Resume,
Stop,
Approve,
Disapprove
}
| 11.454545 | 21 | 0.555556 |
0d703045e8df3691a5083290e843a7aef5aa65ed | 1,129 | package org.darbots.corebotlib.hardware;
import org.darbots.corebotlib.hardware.typedef.instances.MotorTypeInstance;
public interface SimpleMotor {
MotorTypeInstance getMotorType();
/**
* Set current operation speed of the motor.
* @param power fraction and direction of speed the motor should opera... | 29.710526 | 103 | 0.675819 |
327d337fab39aa41b50bbacd62a5e049c483a0a0 | 2,936 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 38.631579 | 92 | 0.720368 |
5ddc36e0dff2e83a01945e532237fff4cd416d18 | 18,587 | // Copyright 2013 Viewfinder. All rights reserved.
// Author: Mike Purtell
package co.viewfinder;
import android.app.ActivityManager;
import android.content.Context;
import android.util.DisplayMetrics;
import android.view.WindowManager;
import android.app.Application;
import android.content.res.XmlResourceParser;
imp... | 36.952286 | 118 | 0.705547 |
5d9b46ab33ca798977792a109328e005a87e8129 | 749 | //,temp,sample_3953.java,2,12,temp,sample_3957.java,2,13
//,3
public class xxx {
protected void doCreateReplicationController(Exchange exchange, String operation) throws Exception {
ReplicationController rc = null;
String rcName = exchange.getIn().getHeader( KubernetesConstants.KUBERNETES_REPLICATION_CONTROLLER_NAME, S... | 46.8125 | 156 | 0.830441 |
fc0fa472b35f4e687b7d8f33612dec086b43e9a8 | 4,748 | import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
/**
* Code to test Project 5; you should definitely add more tests!
*/
public class ExpressionParserPartialTester {
private ExpressionParser _parser;
@Before
/*
*... | 36.806202 | 121 | 0.655223 |
13d5498c9d07abc284cad800e5416ef1b3342ee5 | 4,958 | package com.xruby.GeneratedMethods;
import com.xruby.runtime.lang.*;
import com.xruby.runtime.builtin.*;
import com.xruby.runtime.builtin.RubyHash;
public class RubyHash_Methods{
public static void initMethods( RubyClass klass){
klass.defineMethod( "fetch", new RubyVarArgMethod(){
protected RubyValue run(RubyValue r... | 45.072727 | 100 | 0.751916 |
4849fd487594e21a00ef6b28a2cca30388d772fb | 4,374 | package ua.com.kerriline.location;
import java.io.File;
import java.io.IOException;
import java.security.GeneralSecurityException;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import javax.mail.MessagingException;
import com.google.gdata.util.ServiceException;
import org.slf4j.Logger;
... | 30.375 | 130 | 0.733882 |
628a9aa554017a1d61ed6444c842bf71875bc829 | 784 | package org.nulldev.pluginjs;
import java.util.logging.Level;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
class ScriptCommandExecutor implements CommandExecutor {
private final PluginJS plugin;
private final CommandCallback callback;
... | 30.153846 | 95 | 0.705357 |
c2b61b868a98f0463e5092193eb5a6199f4af07a | 142 | package com.jeffmony.ffmpeglib.listener;
public interface IVideoTransformProgressListener {
void onTransformProgress(float progress);
}
| 20.285714 | 50 | 0.823944 |
de22895f99242e7d58e886e341e5ef1a974e50fb | 11,267 | package de.metas.fresh.model;
/** Generated Interface for C_BPartner_Allotment
* @author Adempiere (generated)
*/
@SuppressWarnings("javadoc")
public interface I_C_BPartner_Allotment
{
/** TableName=C_BPartner_Allotment */
public static final String Table_Name = "C_BPartner_Allotment";
/** AD_Table... | 33.433234 | 326 | 0.730896 |
6ccd9f1a334166e61e082b9be0bb97a008018792 | 413 | public class FizzBuzz{
public static void main (String args[]){
//commentaire pas utile
int max = (args.length > 0) ? Integer.parseInt(args[0]) : 200;
for (int i=1; i<=max; ++i){
if (i%15 == 0) System.out.println("FizzBuzz");
else if (i%3 == 0) System.out.println("Fizz");
else if (i%5 == 0) System.o... | 19.666667 | 64 | 0.595642 |
ed7a983f33e7033fdd483b991154c92f9d583920 | 5,589 | package com.helospark.site.core.it.list;
import static java.util.Collections.emptyList;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import static org.junit.jupiter.api.Assertions.assertAll;
import static org.springframework.test.context.jdbc.Sql.ExecutionPhase.AFTER_TEST_METH... | 41.4 | 150 | 0.712471 |
2732803084aa6e7aed89258179f961cca12737cd | 1,812 | package pl.marcinchwedczuk.elfviewer.elfreader.elf;
import pl.marcinchwedczuk.elfviewer.elfreader.meta.ElfApi;
import pl.marcinchwedczuk.elfviewer.elfreader.utils.IntPartialEnum;
import java.util.Collection;
import java.util.Map;
import java.util.concurrent.atomic.AtomicReference;
/**
* The value 1 signifies the or... | 31.241379 | 115 | 0.719647 |
3bf3b604d282379f998bda7bfb4f79c579776571 | 524 | package basics.exceptionHandling;
public class G
{
public static void main(String[] args)
{
int[] arr1={10,20,30,40,50,60,70,80};
int[] arr2={10,0,30,0,50};
for(int i=0;i<arr1.length;i++)
{
try
{
System.out.println(arr1[i]/arr2[i]);
}
catch(ArithmeticException e)
{
System.out.println(e... | 14.555556 | 42 | 0.625954 |
366c3339403f7c61734e53383da5d3687f860a89 | 879 | package com.andrascik.assignment.restapi.databaseinfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@ApiModel(description = "Information about database table")
public class TableInfoDto {
@ApiModelProperty(example = "connections")
private String tableName;
@ApiMo... | 23.756757 | 61 | 0.690557 |
441f00c3d97f6d2c86c69652bca8059f22adc7d3 | 3,620 | /**
* @author Virtusa
*/
package org.bian.service;
import java.util.List;
import org.springframework.stereotype.Service;
import org.bian.dto.*;
import org.bian.util.JsonReader;
import com.fasterxml.jackson.core.type.TypeReference;
@Service
public class LocationDataManagementApiServiceImpl implements LocationDataMa... | 44.691358 | 127 | 0.820994 |
e132465e0a6497534ef2dce8a7b7be6696758ac5 | 6,196 | package com.hyh.video.sample;
import android.app.Activity;
import android.graphics.Bitmap;
import android.media.MediaMetadataRetriever;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.widget.ImageView... | 25.393443 | 170 | 0.677211 |
fccf36d7ea2ec1207af497db2c489263694685e4 | 251 | package com.jivesoftware.os.tasmo.lib;
import com.jivesoftware.os.jive.utils.base.service.ServiceHandle;
/**
*
* @author jonathan.colt
* @param <S> Service
*/
public interface TasmoServiceHandle<S> extends ServiceHandle {
S getService();
}
| 17.928571 | 65 | 0.733068 |
16e8a6407592a8974e3f27a20f5e15b349711daf | 3,446 | package pl.dkobylarz.garage_system_api.car.domain;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import pl.dkobylarz.garage_system_api.car.constant.EngineType;
import pl.dkobylarz.garage_system_api.car.dto.CarBrandDto;
import pl.dkobylarz.garage_system_api.car.dto.CarDto;
import... | 38.288889 | 110 | 0.703134 |
7be5c613b209e3a6545edbc0facc95e83abb55a7 | 919 | package D20125299;
import processing.core.PApplet;
// This is an example of a visual that renders the waveform
// most unchanged from given example just added lerping
public class WaveForm
{
MyVisual mv;
float cy = 0;
float curr = 0;
float prev = 0;
int t = 0;
int r = 0;
public WaveForm... | 20.886364 | 72 | 0.479869 |
ed61194f345d4ccc822b531430973fd4f0dc9aaf | 1,523 | package net.sf.cram.encoding;
import java.io.InputStream;
import java.nio.ByteBuffer;
import java.util.Map;
import net.sf.cram.EncodingID;
import net.sf.cram.EncodingParams;
import net.sf.cram.io.ByteBufferUtils;
import net.sf.cram.io.ExposedByteArrayOutputStream;
public class BetaIntegerEncoding implements Encodin... | 24.564516 | 72 | 0.760998 |
314e7c995881134829513baea639dafc1756929e | 1,186 | package com.cc.apptroy.apimonitor;
import com.cc.apptroy.hook.HookParam;
import com.cc.apptroy.util.Logger;
import com.cc.apptroy.util.RefInvoke;
import java.lang.reflect.Method;
public class AccountManagerHook extends ApiMonitorHook {
@Override
public void startHook() {
Method getAccountsMethod = RefInvok... | 27.581395 | 85 | 0.736931 |
b0be09a082b67de4fcde021f26c090fa5b53fab0 | 735 | package dev.leonardosposina.decorator.usecase.impl;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Service;
import dev.leonardosposina.decorator.entrypoint.rest.main.dto.MessageDto;
import dev.leonardosposina.decorator.usecase.MessageUseCase;
import dev.leonardosposina.decorat... | 31.956522 | 112 | 0.789116 |
704135433645d173c2e0a3023bfcb86e71e90525 | 2,518 | /*
* Copyright Verizon Media, Licensed under the terms of the Apache License, Version 2.0. See LICENSE file in project root for terms.
*/
package com.yahoo.cubed.templating;
import com.yahoo.cubed.model.FunnelGroup;
import com.yahoo.cubed.model.Pipeline;
import com.yahoo.cubed.util.XmlJsonUtils;
import org.antlr.st... | 39.968254 | 171 | 0.703733 |
36c126ad3662e22426405b3d54c9130df0f1e7ac | 11,554 | package com.tracelink.appsec.module.eslint.designer;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import ... | 51.580357 | 107 | 0.740177 |
f7a77b73f47ca3c15b52407e45fde009838315d8 | 1,784 | package sortpom.wrapper.content;
import java.util.List;
import org.dom4j.Element;
import org.dom4j.Node;
import sortpom.parameter.DependencySortOrder;
/**
* A wrapper that contains a plugin element. The element is sorted according to a predetermined
* order.
*
* @author Bjorn Ekryd
*/
public class PluginSortedWr... | 32.436364 | 95 | 0.76009 |
981396c26def0247c090359fe994509d47973898 | 235 | package de.sranko_informatik.ibmi.iwsbuilder;
import java.io.IOException;
import com.fasterxml.jackson.databind.JsonNode;
public interface IWSSParserExtension {
IWSS read(String location) throws IOException;
}
| 19.583333 | 51 | 0.753191 |
65c43cfd5d107993d500c7063bdef3d712248773 | 790 | package net.mguenther.gtd;
import org.springframework.cloud.gateway.route.RouteLocator;
import org.springframework.cloud.gateway.route.builder.RouteLocatorBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.HttpMethod... | 37.619048 | 106 | 0.686076 |
dbde49e4a5a12d7da60b4b52bee3061257d876e0 | 1,741 | /**
* Licensed to Apereo under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Apereo licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in ... | 28.080645 | 76 | 0.697875 |
741f92d2ae475ba587e55ff41482253f27fdc301 | 28,832 | package de.ubt.ai7.csv_validator.library.impl;
import java.util.ArrayList;
import java.util.BitSet;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.ListIterator;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import com.google.gson.JsonO... | 30.542373 | 151 | 0.69683 |
ef19cc6f7e4c11cd1cc022785bb0366c424e5a64 | 1,010 | package frc.robot.commands.arm;
import edu.wpi.first.wpilibj.command.Command;
import frc.robot.subsystems.Arm;
public class SetStage extends Command {
private Arm arm = null;
int stage = 1;
boolean finished = false;
int timer = 0;
// execute() runs 50 times per second or every 20ms. So the command shou... | 18.703704 | 130 | 0.669307 |
62223cde1872368ec461c2507cc1f5833c59ba2d | 6,191 | package com.cb.platform.domain.query;
import com.cb.platform.domain.OffLineExportBusinessId;
import com.zw.platform.basic.service.UserService;
import com.zw.platform.domain.basicinfo.OfflineExportInfo;
import com.zw.platform.util.StrUtil;
import com.zw.platform.util.common.BaseQueryBean;
import com.zw.platform.util.co... | 30.2 | 116 | 0.638992 |
d739ff64bc5931a6b62ab0fdc55f75e7c84ecb22 | 466 | package wordcloud;
import bobthebuildtool.pojos.buildfile.Project;
import bobthebuildtool.pojos.error.VersionTooOld;
import static bobthebuildtool.services.Update.requireBobVersion;
import static wordcloud.WordCloudCommand.DESCRIPTION;
public enum BobPlugin {;
public static void installPlugin(final Project proj... | 27.411765 | 82 | 0.7897 |
54743c12384cc5f5cbe9b76ca86f7121e33da6da | 6,426 | /*
* Copyright 2012 ios-driver committers.
*
* 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 agr... | 33.46875 | 127 | 0.691877 |
1c9d691a0d032180a03f347de14dd93fc30b20d1 | 8,925 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
// 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: ... | 22.826087 | 127 | 0.507003 |
940e8554e6c5681c2fc553a187efa72580925a59 | 109 | package issues.subclassnullpermission;
import icp.core.External;
@External
public class ExternalParent {
}
| 13.625 | 38 | 0.816514 |
346c5c767dc33997fcfeb2027afa333dfce574dc | 1,905 | /*
* GIPO COPYRIGHT NOTICE, LICENSE AND DISCLAIMER.
*
* Copyright 2001 - 2003 by R.M.Simpson W.Zhao T.L.McCLuskey D Liu D. Kitchin
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose and without fee is hereby granted,
* provided that the above copyright notic... | 33.421053 | 77 | 0.730709 |
bb5e30990c37cb457c8cb16c413701afbe2abb1d | 1,494 | package util;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.boot.registry.StandardServiceRegistryBuilder;
import org.hibernate.cfg.Configuration;
import org.hibernate.service.ServiceRegistry;
public class HibernateUtil {
private static SessionFactory factory;
... | 36.439024 | 121 | 0.678046 |
0011449de030d8b62d4ac06470a3cf82e86c819e | 1,662 | /*
* Copyright 2013 serso aka se.solovyev
*
* 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... | 33.24 | 160 | 0.780987 |
f9a9245807be8dd651995b53a12f0d7783f7a501 | 355 | package vg.civcraft.mc.namelayer.core.requests;
public class RevokeInvite {
private RevokeInvite() {}
public static final String REQUEST_ID = "nl_req_revoke_invite";
public static final String REPLY_ID = "nl_ans_revoke_invite";
public enum FailureReason {
GROUP_DOES_NOT_EXIST, PLAYER_DOES_NOT_EXIST, RANK_D... | 25.357143 | 82 | 0.794366 |
4c436d7478c00fad8cfc49d2b435a4e28e093975 | 684 | package com.orb.domain.transactionscript.service;
import org.junit.Test;
import javax.annotation.Resource;
import java.math.BigDecimal;
import java.time.LocalDate;
/**
* RecognitionServiceTest
*
* @author tianya
* @date 2018/12/8
*/
public class RecognitionServiceTest {
@Resource
RecognitionService rec... | 20.727273 | 95 | 0.719298 |
23f7953aba96df72ae879c0c61086c73c68784a3 | 11,905 | package org.estatio.integtests.capex.document;
import java.io.IOException;
import java.util.List;
import javax.inject.Inject;
import com.google.common.io.Resources;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.apache.isis.applib.fixturescripts.FixtureScript;
import org.apache.... | 43.929889 | 164 | 0.742797 |
b77c03c581995da840a748362710b3051c16be2d | 5,904 | /*
* 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 ... | 37.132075 | 92 | 0.592818 |
2ecf99e74068626d02c766d0e91b89bf043a4e60 | 398 | package org.needle.bookingdiscount.server.data;
import java.util.ArrayList;
import java.util.List;
import lombok.Data;
@Data
public class DataPage {
private int count = 0;
private int currentPage;
private List<?> data = new ArrayList<Object>();
public DataPage(int currentPage, List<?> data) {
this.coun... | 16.583333 | 49 | 0.708543 |
d136b929083e0f370121170cf92934746a260c9a | 1,128 | package com.zw.platform.domain.basicinfo.form;
import com.zw.platform.util.common.BaseFormBean;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
/**
* @author Administrator
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class OBDManagerSettingForm extends BaseFormBean impleme... | 17.353846 | 81 | 0.601064 |
08ebf9c22d067837cb5d1ae49d636e93c7ab5859 | 2,230 | /*
* (C) Copyright IBM Corp. 2019
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.ibm.fhir.database.utils.common;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.logging.Level;
import java.util.logging.Logger;
import ... | 28.227848 | 94 | 0.660987 |
dc8239eb6374ec3b4cda5fa89b5abd684a4e1624 | 4,434 | /*
* Copyright 2013 David Tinker
*
* 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.472 | 121 | 0.651782 |
d970f9400257bd503703dedf79fcf13d7cc98278 | 3,373 | package com.google.common.collect;
/*
* #%L
* Matos
* $Id:$
* $HeadURL:$
* %%
* Copyright (C) 2010 - 2014 Orange SA
* %%
* 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
*
* h... | 27.422764 | 85 | 0.685147 |
be046c8a4c6d0d74ff794aa926404be4756b12ff | 2,753 | package com.andersenlab.crm.rest.facade;
import com.andersenlab.crm.convertservice.ConversionService;
import com.andersenlab.crm.model.entities.SocialNetworkContact;
import com.andersenlab.crm.rest.DtoResponse;
import com.andersenlab.crm.rest.dto.EmployeeDto;
import com.andersenlab.crm.rest.dto.SocialNetworkContactDto... | 41.712121 | 116 | 0.754813 |
8d3c4c18e7f200f04ffa3751e7e1c982d6b99a25 | 3,042 | package com.cisco.devnet.example.indicators;
import com.cisco.devnet.infracheck.InfraCheck;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.mashape.unirest.http.HttpResponse;
import com.ma... | 28.971429 | 99 | 0.649901 |
389942007abda411236dba2b8893f64181805df7 | 220 | package cn.cococode.cc150;
import static org.junit.Assert.*;
import org.junit.Test;
public class RobotTest {
@Test
public void test() {
Robot robot = new Robot();
assertEquals(35, robot.countWays(4, 5));
}
}
| 13.75 | 42 | 0.690909 |
7f8c9b4e89a03d3fe45f5dfe6518d4ed815e6133 | 230 | package data;
public class LoginForm {
public String username;
public String password;
public String getPassword() {
return password;
}
public String getUsername() {
return username;
}
}
| 15.333333 | 33 | 0.630435 |
5e05f5c9dfbdf5df2b84ed75ef91125bf585d149 | 5,206 | package jsp.sqlServer.util;
public class Signal {
public final static int COMMAND_INDEX_ADD=1;
public final static int COMMAND_INDEX_EDITINFO=2;
public final static int COMMAND_INDEX_DEL=3;
//////////////////////////////////////////////////////////
public final static int COMMAND_MENU_ADD=4;
public... | 19.210332 | 59 | 0.629274 |
85eae477f872794bf254eb450f5b2ef45aba5255 | 1,035 | package com.example.world.repository;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;
import com.example.world.entity.Country;
public interface CountryRepository {
String SELECT_DISTINCT_CONTINENTS = """
select distinct continent from country
""";
String SELECT_COUNTRIES_BY_C... | 28.75 | 101 | 0.781643 |
62fc35f5c54967228bf45f3591264f43ac8f3e06 | 6,611 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 35.352941 | 101 | 0.612162 |
1f92bd1ac12d26035c3c889d83d32cb337d12baf | 1,433 | package model;
/**
* Object containing the scores for a specific player. Used in database.
*/
public class HighScore implements Comparable<HighScore>{
private String playerName;
private int wins;
private int draws;
private int losses;
public HighScore(String playerName, int wins, int draws, int ... | 24.706897 | 84 | 0.565248 |
33bd9205cfd9e6f0ade8841c235c3e0b3bf7b03e | 6,735 | /*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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
... | 46.448276 | 129 | 0.708241 |
6bda0d3b3c6b8b51adca710b686fcc5dd0d0276b | 14,917 | /*
* Copyright (C) 2014 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 applicable ... | 37.106965 | 105 | 0.636254 |
9b573bfcd2882032e6de9826f716957533821e5b | 2,006 | package org.openmbee.mms.twc.config;
import org.openmbee.mms.twc.TeamworkCloud;
import org.openmbee.mms.twc.security.TwcAuthenticationProvider;
import org.openmbee.mms.twc.utilities.RestUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.Configuratio... | 27.861111 | 78 | 0.668495 |
40b0519961ed03a91838ebe491b4b474de74e61d | 3,024 | package main.java.zenit.filesystem;
import java.io.File;
import java.io.IOException;
/**
* Subclass of {@link File} with added methods for metadata, src, bin and lib.
* @author Alexander Libot
*
*/
public class ProjectFile extends File {
private static final long serialVersionUID = -9201755155887621850L;
priv... | 18 | 85 | 0.598876 |
7a956c3a3fd5d47acfaee4bdc37dd68a5ddee6ba | 3,399 | package spot.pages.registered;
import java.util.List;
import org.openqa.selenium.By;
import org.openqa.selenium.NoSuchElementException;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
im... | 32.371429 | 143 | 0.745808 |
2fc324049b37696dd9b7d0495e55845b09a1b9ea | 13,707 | package edu.ycp.cs.dh.acegwt.client.ace;
import com.google.gwt.core.client.JavaScriptObject;
/**
* Rules describing how editor runs this command (from keyboard,
* from command line or by {@link AceEditor#execCommand(String)} API calls).
*/
public class AceCommandDescription {
private final String name;
private ... | 33.513447 | 179 | 0.728095 |
efb689cef8a31fe4ed58c4ad437c145ddfc4aeef | 836 | package system;
public enum StatusCodes {
OK, // successful
TARGET_AGENT_DOES_NOT_EXIST, // caused by user
MESSAGE_LENGTH_EXCEEDED, // caused by user
BOTH_AGENT_QUOTAS_EXCEEDED, // caused by exceeded quota (causes both to logout)
SOURCE_AGENT_QUOTA_EXCEEDED... | 52.25 | 87 | 0.684211 |
9c44646b8a7393fc54ca1842082c581421fd65e6 | 289 | package com.ikub.intern.forum.Quora.utils;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
public class Filter {
private String category;
private String name;
}
| 18.0625 | 42 | 0.802768 |
491f57b575dd26351df4fdcb462fa56b357711a9 | 1,143 | package org.bricolages.streaming.table;
import org.bricolages.streaming.exception.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.orm.jpa.*;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.junit.Test;
import org.juni... | 38.1 | 99 | 0.741032 |
ddff83f32126aeda7e29ebced16db01ad5653535 | 1,118 | package cn.smart.util;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
/**
* Created by shu on 2017/3/27.
*/
public final class JsonUtil {
private final static Log... | 26 | 81 | 0.633274 |
dd72df5ed641cafd8e48655b1414637a2c56fe44 | 28,913 | /* $Id: XmiReaderImpl.java 19798 2011-12-12 17:07:41Z linus $
*****************************************************************************
* Copyright (c) 2005,2011 Contributors - see below
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public... | 38.653743 | 87 | 0.585619 |
131534d81b91f39afe84a89bde57c8a8fccc13cd | 401 | package com.ppdai.infrastructure.mq.biz.ui.dto.response;
import com.ppdai.infrastructure.mq.biz.dto.response.BaseUiResponse;
import java.util.Map;
/**
* @author: liujianjun02
* @date: 2019/3/4
*/
public class DbCheckResponse extends BaseUiResponse<Map<String,Object>> {
public DbCheckResponse() {
}
... | 18.227273 | 73 | 0.703242 |
844320ae8c78d4404c2ab1a8c33bc89aaf33ce52 | 85,371 | /**
* AdRuleServiceSoapBindingStub.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Mar 02, 2009 (07:08:06 PST) WSDL2Java emitter.
*/
package com.google.api.ads.dfp.axis.v201306;
public class AdRuleServiceSoapBindingStub extends org.apache.axis.client.Stub implements com.google.api.ads.df... | 55.471735 | 378 | 0.654613 |
78204995b4eb1803d011f66c9123a7b080d38ded | 870 | package apexam2016;
public class RandomStringChooser {
private String[] wordArray;
public RandomStringChooser() {
}
public RandomStringChooser(String[] wordArray) {
this.wordArray = wordArray;
}
public String getNext() {
if (wordArray.length == 0)
return "NONE";
int r = (int) (Math.random() * wordAr... | 21.219512 | 68 | 0.637931 |
69cc51fbc250d9f7a517c12008b1dcbe78e56b4c | 1,183 | package com.gong.url.filter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.tim... | 26.288889 | 146 | 0.737954 |
806c0d874efa6fc7d568918d8dfbcc7d70eba607 | 558 | /**
* This file is part of the Harmony package.
*
* (c) Mickael Gaillard <mickael.gaillard@tactfactory.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
package com.tactfactory.harmony.test.project;
import org.junit.runner.RunW... | 22.32 | 74 | 0.747312 |
c7e2040ee0f462d19e9f5dd0797cd8871716f381 | 1,447 | package com.example.starter.base.osgi;
import java.util.Hashtable;
import javax.servlet.Servlet;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import org.osgi.framework.BundleContext;
import org.osgi.service.component.annotations.Activate;
import org.osgi.service.component.annotations.Co... | 30.145833 | 80 | 0.710435 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.