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 |
|---|---|---|---|---|---|
58bffce7b95d9b8358fcbf2dee49a0ee5d0e149f | 849 | package org.codelibs.elasticsearch.extension.analysis;
import org.apache.lucene.analysis.TokenStream;
import org.apache.lucene.analysis.miscellaneous.DisableGraphAttribute;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.env.Environment;
import org.elasticsearch.index.IndexSettings;
import ... | 36.913043 | 121 | 0.800942 |
60e1d353cb2775fff0f266d60c85bf3fe5e4ef19 | 5,510 | package io.ebeaninternal.server.deploy.parse;
import io.ebeaninternal.server.deploy.InheritInfo;
import java.lang.reflect.Modifier;
import javax.persistence.DiscriminatorType;
import java.sql.Types;
import java.util.ArrayList;
import java.util.List;
/**
* Represents a node in the Inheritance tree.
* Holds informat... | 21.778656 | 133 | 0.624319 |
1a8452fa18af3797d8b9a2ee79fb4be69e1e4e04 | 3,279 | /*
* Copyright (c) MuleSoft, 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 ... | 30.933962 | 131 | 0.616346 |
102358ffd30078040a3dd9c87f0369c1002726fc | 1,486 | package com.zupacademy.guidemira.desafiopropostas.propostas.detalhes;
import com.zupacademy.guidemira.desafiopropostas.propostas.EstadoProposta;
import com.zupacademy.guidemira.desafiopropostas.propostas.Proposta;
import javax.persistence.Column;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;... | 24.360656 | 83 | 0.683715 |
192bb113cd9bc9f9b54c1610feecf895cb20722c | 3,499 | package com.tools.entity;
import org.apache.commons.lang3.CharUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.text.WordUtils;
public class CreateUtils {
/**
* 根据表名(dx_picture_detail),返回对象名(DxPictureDetail)
* @param tableName 表名
* @return
*/
public static String getTab... | 32.100917 | 81 | 0.693913 |
0d5d8797dd506885fc0e86546944eaeaf8444cec | 27,467 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.devtestlabs.models;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.co... | 52.618774 | 120 | 0.726909 |
25051f6448007d5130c472c59757d8131ee212ac | 1,427 | package com.tinkerpop.rexster.gremlin;
import com.tinkerpop.gremlin.groovy.jsr223.GremlinGroovyScriptEngine;
import javax.script.Bindings;
import javax.script.ScriptContext;
import javax.script.ScriptEngine;
import javax.script.SimpleBindings;
import java.util.Map;
/**
* Builds Gremlin evaluators.
* <p/>
* Credit... | 29.729167 | 91 | 0.685354 |
22528ab380e5b97299fa13739948e7d3ae81e6b6 | 4,037 | package net.sourceforge.kolmafia;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import java.util.StringTokenizer;
import net.sourceforge.kolmafia.session.ContactManager;
import net.sourceforge.kolmafia.utilities.StringUtilities;
public class KoLMailMessage implements Comparable<Ko... | 29.467153 | 99 | 0.679465 |
52258e3c0f4ebe6cd7c0597700601939e24eeb88 | 15,302 | /**
* 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... | 47.083077 | 165 | 0.620442 |
ed6dc9053919bff13ef5f558ec0ccdbb9b9ce9af | 735 | package com.llc.android_coolview.kobe.bean.city;
import java.util.List;
public class CityList {
private String resultcode;
private String reason;
private List<City> result;
private String error_code;
public String getResultcode() {
return resultcode;
}
public void setResultcode(String resultcode) {
this.r... | 18.846154 | 48 | 0.729252 |
0b75998744f42db1d5b6589fdbe48faf624ef117 | 285 | package houtbecke.rs.when.robo.condition.event;
import android.app.Activity;
import houtbecke.rs.when.robo.event.ResumeEvent;
public class ActivityResume extends ActivityEvent implements ResumeEvent {
public ActivityResume(Activity activity) {
super(activity);
}
}
| 21.923077 | 74 | 0.77193 |
15a611b4e13c6957884b0b4861293297b478dc1b | 990 | package ru.otus.homework1;
import com.google.common.collect.ImmutableSet;
import org.apache.commons.text.StrSubstitutor;
import org.joda.time.DateTime;
import java.util.HashMap;
import java.util.Map;
/**
* Created by Антон Дементьев on 04.02.2018.
*/
public class Main {
public static void main(String[] args) {... | 29.117647 | 88 | 0.636364 |
8da892b2bea1d611f4b27a28b14fc771a53da7de | 986 | package com.amanitadesign.ane.functions;
import com.adobe.fre.FREContext;
import com.adobe.fre.FREFunction;
import com.adobe.fre.FREObject;
import com.amanitadesign.ane.NativeExtension;
public class AirGooglePlayGamesReportAchievementFunction implements FREFunction {
public AirGooglePlayGamesReportAchievementFuncti... | 23.47619 | 81 | 0.75355 |
6e1826e845f4212a807759cfa42f66e1084462f1 | 5,220 | /*
* Copyright 2020 TIVConsultancy.
*
* 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.117647 | 120 | 0.643295 |
0e17e6f54c0165d5492f0e196937c4223ae4eced | 689 | package com.oxygenxml.cmis.ui;
import java.util.List;
import com.oxygenxml.cmis.core.model.IResource;
/**
* Search interface for search resources that handles the shadow IFolder
*
* @see com.oxygenxml.cmis.core.model
* @author bluecc
*
*/
public interface SearchListener {
/**
* Installs the search resour... | 24.607143 | 102 | 0.712627 |
9cb0981afa15511236305e37d6f157c337e86d74 | 3,077 | package com.shashankbhat.graph;
import android.annotation.SuppressLint;
import android.content.res.Resources;
import android.graphics.*;
import android.graphics.drawable.BitmapDrawable;
import java.util.ArrayList;
public class DrawGraph {
private ArrayList<Point> points;
private Paint background,line,unitLin... | 27.972727 | 100 | 0.61716 |
68c080d9d81c71b75b7bd044cdedcdc7098eb4b5 | 221 | package uk.modl.model;
import java.util.List;
import lombok.NonNull;
import lombok.Value;
/**
* An object to match the ANTLR4 MODL grammar
*/
@Value
public class Modl {
@NonNull
List<ModlStructure> structures;
}
| 13.8125 | 45 | 0.728507 |
fd08ed9577f36d9d7c3af5f1d2740496717dd877 | 4,856 | package de.devmil.paperlaunch.storage;
import android.content.ContentProvider;
import android.content.ContentUris;
import android.content.ContentValues;
import android.content.UriMatcher;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.net.Uri;
import android.support.annot... | 31.947368 | 124 | 0.558896 |
ce3b2941cbdcd28d02f54d4164e91a9ee4ffdd86 | 7,121 | /**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.analytics.math.interpolation;
import java.util.ArrayList;
import java.util.List;
import com.opengamma.analytics.math.FunctionUtils;
import com.opengamma.analy... | 34.567961 | 135 | 0.596545 |
f740d8139e17120fccf94a2d1ca2cf26a331d3eb | 5,837 | /* Copyright 2012 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 in w... | 36.710692 | 79 | 0.62652 |
d00dcfdef5fc7e7eed92703395340a64be74bc76 | 2,882 | package io.wamsai.readagree;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.os.Build;
import android.os.LocaleList;
import java.util.Locale;
/**
* Created on 2019/11/21.
*
* @author WAMsAI (W... | 32.75 | 106 | 0.624566 |
7aec2dc1f72140da7c2af9f31c34cbf4cd1aab3b | 6,104 | /*
* 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
* "Lic... | 42.388889 | 130 | 0.658421 |
ed2e536bb592f657a9d10a4f00cc597805cdc253 | 432 | package com.github.fantasticlab.jdbc.executor.key;
import com.github.fantasticlab.jdbc.executor.Executor;
import com.github.fantasticlab.jdbc.executor.mapping.MappedStatement;
import java.sql.Statement;
public interface KeyGenerator {
void processBefore(Executor executor, MappedStatement ms, Statement stmt, Objec... | 28.8 | 94 | 0.821759 |
f187109eb8d4288bddb7ecfe534cd24e78543f50 | 15,032 | package com.example.foodordersupplier.Activities;
import android.Manifest;
import android.app.ProgressDialog;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Color;
import android.location.Location;
... | 40.408602 | 259 | 0.586083 |
5713286809ba43d3edfa1936fa796a74cfe95cca | 4,289 | /*
* Copyright(c) 2016 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 appl... | 32.740458 | 83 | 0.724411 |
bcda189588bf1b784ce8f6f15896a05d976b2e86 | 5,259 | package org.junit.tests.experimental.theories.runner;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.not;
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.junit.Assert.assertThat;
import static org.junit.experimental.results.PrintableResult.testResult;
import... | 28.581522 | 106 | 0.651074 |
f7fde088f3ba8eace092d5c1cc8ccf52a7bbfd09 | 642 | package Junit;
import domain.Employee;
import service.NameListService;
import service.TeamExpection;
public class NameListServiceTest {
public static void main(String[] args) {
NameListService service = new NameListService();
Employee[] employees = service.getAllEmployees();
for (int i = 0... | 27.913043 | 57 | 0.609034 |
f8c674a2651c893ec395ab633c191fafb99109f2 | 454 | package com.ketnoiso.media.grabber.controllers;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
/**
* The Class TestController.
*/
@Controller
public class TestController {
/**
* Execut... | 18.916667 | 62 | 0.744493 |
b617d2f33a58e1d63614c36a2c64e26f67fc5b4c | 5,885 | package com.hapis.customer.ui.view;
import android.arch.lifecycle.LifecycleOwner;
import android.arch.lifecycle.MutableLiveData;
import android.arch.lifecycle.Observer;
import android.support.annotation.Nullable;
import com.hapis.customer.HapisApplication;
import com.hapis.customer.R;
import com.hapis.customer.databa... | 50.732759 | 350 | 0.659133 |
ee66a690733acf093e644116765ffcaa527647a7 | 213 | package com.voidaspect.jgol.grid;
class NeighborCountingHashGridTest extends GridTest {
@Override
protected Grid grid(boolean[][] initial) {
return new NeighborCountingHashGrid(initial);
}
} | 21.3 | 53 | 0.7277 |
7da927ab23b620ebe749f329373b5da49f448c6c | 416 | package br.com.multitela.quiz.servidor.enums;
/**
* Created by arthurpereira on 9/25/17.
*/
public enum QuestionarioAvaliacaoEnum {
PESSIMA("Péssima"),
RUIM("Ruim"),
REGULAR("Regular"),
BOA("Boa"),
OTIMA("Ótima");
private String texto;
private QuestionarioAvaliacaoEnum(String texto) {
... | 17.333333 | 53 | 0.625 |
75fb68784fa21a7f65a218b14fa70e8fec06a6d0 | 1,531 | /*
* Copyright (C) 2018 Seoul National University
*
* 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... | 25.098361 | 75 | 0.680601 |
7228fe56dd6a0c858b5599acb5ea4ce03aace637 | 8,438 | package com.microsoft.cognitive.speakerrecognition;
import com.microsoft.cognitive.speakerrecognition.contract.CreateProfileException;
import com.microsoft.cognitive.speakerrecognition.contract.DeleteProfileException;
import com.microsoft.cognitive.speakerrecognition.contract.EnrollmentException;
import com.microsoft.... | 43.947917 | 125 | 0.687367 |
2ef169353c64d8fe2a3b34d4d62e41157fbc5691 | 1,510 | package com.d.androidorm.activity;
import android.support.v4.app.Fragment;
import com.d.androidorm.R;
import com.d.androidorm.fragment.GreenDaoFragment;
import com.d.androidorm.fragment.LitepalFragment;
import com.d.androidorm.fragment.OrmliteFragment;
import com.d.androidorm.fragment.RealmFragment;
import com.d.andr... | 30.2 | 84 | 0.601987 |
ec6f9fb3b5f8418475d4b418420badff95692a66 | 719 | package user;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
class UserTest {
@BeforeEach
void setUp() throws Exception {
}
@Test
void test() {
try {
UserModel userData;
UserInterface infs = new User();
userData = infs.createUSer("Pontiya", "pan@lms.com", "21232323", "Pa... | 23.966667 | 87 | 0.687065 |
f500b192679a4c22c68f96c63ba2db15cef3d45b | 1,355 | package net.minestom.server.instance.block.states;
import net.minestom.server.instance.block.Block;
import net.minestom.server.instance.block.BlockAlternative;
/**
* Completely internal. DO NOT USE. IF YOU ARE A USER AND FACE A PROBLEM WHILE USING THIS CODE, THAT'S ON YOU.
*/
@Deprecated(
since = "forever",... | 45.166667 | 119 | 0.706273 |
56d4d456a55302de1ea6ab651bba76a89c09e620 | 1,337 | package com.example.android.camera2basic.savehandlers;
import android.graphics.ImageFormat;
import android.media.ImageReader;
import android.os.Handler;
import android.util.Size;
import android.view.Surface;
import com.example.android.camera2basic.interfaces.ISaveHandler;
import java.io.File;
public class ImageSave... | 27.285714 | 93 | 0.703067 |
cfac3022d89fc88742ee2658476c9ef2b782e0c2 | 3,990 | package com.ruoyi.project.jiaowu.courseselcttime.controller;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.project.jiaowu.courseselcttime.domain.TbCourseSelectTime;
import com.ruoyi.project.jiaowu.courseselcttime.service.ITbCourseSelectTimeService;
import org.apache.shiro.authz.annotation.RequiresPermi... | 31.417323 | 115 | 0.731078 |
19c93307c73584752905ab48e5b5165adc487b07 | 7,380 | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package io.flutter.plugins.firebase.firestore;
import android.app.Activity;
import android.content.ActivityNotFoundException;
import android.util.SparseA... | 40.773481 | 97 | 0.607046 |
34e86a2667b2dd33bd191168b605e7e2035d8a4f | 3,630 | package app.service.impl;
import app.dto.WareTransactionDetailDto;
import app.exception.ResourceNotFoundException;
import app.model.Product;
import app.model.Shelf;
import app.model.WareTransaction;
import app.model.WareTransactionDetail;
import app.repository.ProductRepository;
import app.repository.ShelfRepository;
... | 37.040816 | 98 | 0.700275 |
533b50a4b926d3b122cad827a6f14688ddb3f83e | 2,256 | package bean;
/**
* Created by Vishal on 21/02/2017.
*/
public class Ngo_Details {
String ngoid,name,address,emailid,website,phone,logo,description,areaid,areaname,cityid,cityname,stateid,statename;
public String getNgoid() {
return ngoid;
}
public void setNgoid(String ngoid) {
this... | 18.644628 | 119 | 0.593085 |
a821b19447948846f5aebff1cbf38a7af4dfc22c | 1,443 | package net.xdclass.base_project.controller;
import java.time.Duration;
import net.xdclass.base_project.domain.User;
import net.xdclass.base_project.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.anno... | 19.767123 | 75 | 0.735967 |
fcdca6a921b336ade820a67afafbb05f07d40e25 | 1,989 | import java.lang.annotation.Annotation;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Collection;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/**
* @author yanming
*/
public class RandomObject {
publi... | 45.204545 | 119 | 0.631473 |
f4af7d8047c2bea695fc297edef476cf51083bb4 | 19,893 | /*
* 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 ... | 40.350913 | 120 | 0.591816 |
51d4e1e439ed5a5bb9d0da94b30643f924929ccb | 4,494 | package net.n2oapp.framework.config.factory;
import net.n2oapp.framework.api.metadata.Compiled;
import net.n2oapp.framework.api.metadata.aware.CompiledClassAware;
import net.n2oapp.framework.api.metadata.aware.ContextClassAware;
import net.n2oapp.framework.api.metadata.aware.SourceClassAware;
import net.n2oapp.framewo... | 46.8125 | 146 | 0.701157 |
66511899ff79bc0ba042f2ac548ed176c0bf386f | 53 | @Dsl
package fluent.dsl.bdd;
import fluent.dsl.Dsl;
| 10.6 | 23 | 0.754717 |
bd3761d0b72088043ef6a6706173ef34b432b5eb | 761 | package com.yjh.hotswap;
/**
* 热部署类加载器
*
* Created by yjh on 15-11-29.
*/
public class HotSwapClassLoader extends ClassLoader {
public HotSwapClassLoader() {
super(HotSwapClassLoader.class.getClassLoader());
}
/**
* 将ClassLoader的defineClass方法“公开”
*
* @param classByte
* @ret... | 19.512821 | 76 | 0.588699 |
048b2d963d6bfd47aeca9ae44b76733c76a3e8f5 | 6,831 | package org.apache.fulcrum.security;
/*
* 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... | 38.162011 | 114 | 0.680281 |
f14e5e9ad0bfc9582eca649943686abfe4028fbb | 4,642 |
package com.snowbunting.tvm;
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.Preference;
import android.util.AttributeSet;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
import com.android.volley.Request;
import com.android.vol... | 41.81982 | 122 | 0.475872 |
8c70abb9795446217be61cae367db24c735e1617 | 144 | package eventcenter.api;
/**
* 有关事件中心使用的过滤器接口和实现都应该要继承这个接口
*
* @author liumingjian
* @date 2016/11/17
*/
public interface EventFilter {
}
| 13.090909 | 30 | 0.715278 |
de3f7598f9e0170ca1bc54d17cecd7e6527d9153 | 2,809 | package mConcurrencyInJava.eDeadlocks;
public class Main {
public static final Object lock1 = new Object();
public static final Object lock2 = new Object();
public static void main(String[] args) {
final PolitePerson jane = new PolitePerson("Jane");
final PolitePerson john = new PolitePer... | 30.532609 | 103 | 0.50623 |
1fcb502a25bf813ddde09c035c21891274554d51 | 91 | package io.github.sskorol.model;
public enum TrainType {
INTERCITY,
GRANY_TRAIN
}
| 13 | 32 | 0.725275 |
9edca81639b430403e3f5c3715ac451bbddc714b | 676 | package com.rtejada.bank.v1.mapper;
import com.rtejada.bank.model.Transfer;
import com.rtejada.bank.v1.dto.TransferRequest;
import org.springframework.stereotype.Component;
@Component
public class TransferMapper {
public Transfer toEntity(TransferRequest request) {
if (request == null) {
throw new IllegalArgum... | 28.166667 | 74 | 0.778107 |
e22929694aeabf01e50113e3d6ee53fbd2b2a92c | 1,460 | package nl.futureedge.sonar.plugin.rci;
/**
* Issue weights.
*/
public final class RciWeights {
private final int blocker;
private final int critical;
private final int major;
private final int minor;
private final int info;
/**
* Constructor.
*
* @param blocker
* ... | 20.857143 | 105 | 0.532877 |
51a61c1abfb7fd97c4da9c96481be6629190bc83 | 946 | package mic.trade.bean;
import java.util.List;
public class MarketDepth {
private List<Unit> askUnits = null;
private List<Unit> bidUnits = null;
/**
* @param askUnits
* @param bidUnits
*/
public MarketDepth(List<Unit> askUnits, List<Unit> bidUnits) {
this.askUnits = askUnits;
this.bidUnits = bidUnits;... | 18.92 | 140 | 0.665962 |
39099fa17e3457f1da507ecabd4506ea9964d8b4 | 465 | package com.tomasky.framework.mc.support.consumer;
import io.netty.channel.ChannelHandlerContext;
/**
* @author frd
* 2016/6/28.
*/
public interface IConsumerHolder {
/**
* 注册一个消费者
* @param consumerId
* @param ctx
*/
void register(String consumerId, ChannelHandlerContext ctx);
... | 17.884615 | 66 | 0.636559 |
69c5e30eb9ac3cab5488b7eba04d7e1337b05193 | 1,628 | // Copyright (c) 2003-2012, Jodd Team (jodd.org). All Rights Reserved.
package jodd.datetime;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class AltJdTest {
@Test
public void testReduced() {
JDateTime jdt = new JDateTime(2454945.41707);
assertEquals(2454945.41707, jdt.getJulianD... | 27.59322 | 70 | 0.740172 |
ecae4ebdb719bb0741c62ac488ba1f6c74239d0c | 6,717 | /*
* The MIT License
*
* Copyright 2017 Kamnev Georgiy <nt.gocha@gmail.com>.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rig... | 29.590308 | 91 | 0.587911 |
23a1ccfd1c6379fde16c96a60ed152508fa419d1 | 517 | /**
* Class drawMain - Main class that starts the project by calling drawingTool Object.
*
* @author Arjun K Prasad
* @version 2016.12.2
*/
public class DrawMain{
public DrawMain()
{
// Nothing to declare .... //
}
/**
* Main method that starts the entire... | 23.5 | 86 | 0.5706 |
c03aa3b32dc889352a5eb13ed683441183373a8f | 282 | package com.caiyunworks.mangonote.repo;
import com.caiyunworks.mangonote.entity.Book;
import org.springframework.data.couchbase.repository.CouchbaseRepository;
/**
* Created by Tony Wang on 8/20/16.
*/
public interface BookRepository extends CouchbaseRepository<Book, Long> {
}
| 25.636364 | 73 | 0.801418 |
253fc3c7363e41972949ce2546f61532a13642b5 | 1,628 | package com.dyzcs.lcci;
/**
* Created by Administrator on 2020/11/2.
*
* @see <a href="https://leetcode-cn.com/problems/string-to-url-lcci/">面试题 01.03. URL化</a>
*/
public class LCCI_0103 {
public static void main(String[] args) {
String s1 = "Mr John Smith ";
int l1 = 13;
String s2 =... | 27.59322 | 90 | 0.492629 |
49f2fe2ac1177b7059e16c23bb2dd0f5564d2404 | 25,778 | package in.thefleet.cropme;
import android.animation.Animator;
import android.app.Activity;
import android.app.LoaderManager;
import android.app.ProgressDialog;
import android.app.SearchManager;
import android.content.ContentValues;
import android.content.Context;
import android.content.CursorLoader;
import android.co... | 41.577419 | 156 | 0.587323 |
b3a3a2512a5ff87ff23a62665f244fe559797546 | 12,455 | /*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | 43.701754 | 140 | 0.616379 |
54fd039929769da1c3d8e87dd55984ddabc4ea29 | 271 | package com.github.jiangxch.hasakei.config.manager;
import lombok.Data;
import java.io.Serializable;
/**
* @author: jiangxch
* @date: 2020/7/22 上午2:34
*/
@Data
public class AuthInfo implements Serializable {
private String username;
private String token;
}
| 16.9375 | 51 | 0.730627 |
98ce8ccd6207b8713966ecba450ecec236a27db7 | 638 | import java.util.Scanner;
public class LeapYear {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.println("Give a year:");
int num=Integer.valueOf(scan.nextLine());
if (num%4==0 && num%400==0) {
System.out.println("The year i... | 31.9 | 63 | 0.540752 |
09dfe35a7ae87902a9f908057391459fdff190ed | 1,156 | package org.pine.redisimpl;
import org.pine.api.PineLiker;
import org.pine.api.PineRuntime;
import redis.clients.jedis.Jedis;
public class PineRuntimeRedisImpl implements PineRuntime {
/**
* The Redis sync client.
*/
private Jedis redisClient;
@Override
public void shutdown() {
try ... | 24.083333 | 86 | 0.589965 |
1af92a55410c0482b4d9fca2640dc57995685c91 | 18,984 | package org.basex.qt3ts.fn;
import org.basex.tests.bxapi.*;
import org.basex.tests.qt3ts.*;
/**
.
*
* @author BaseX Team 2005-15, BSD License
* @author Leo Woerteler
*/
@SuppressWarnings("all")
public class FnCodepointEqual extends QT3TestSet {
/**
* Compare two values returned from fn:lower-case(). .
*... | 25.244681 | 126 | 0.567636 |
fcdb30ba858d0b4f8d0f753f59eef9981d263190 | 1,048 | package io.github.luizgrp.sectionedrecyclerviewadapter.testdoubles.stub;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import io.github.luizgrp.sectionedrecyclerviewadapter.Section;
import io.github.luizgrp.sectionedrecyclerviewadapter.SectionParameters;
/**
* A stub of Section with no he... | 24.952381 | 84 | 0.699427 |
51d19670eebc4052ba84aea951f5e9544d096f28 | 4,980 | /*
* Farsi Knowledge Graph Project
* Iran University of Science and Technology (Year 2017)
* Developed by Majid Asgari.
*/
package ir.ac.iust.dml.kg.raw.triple.extractor;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.reflect.TypeToken;
import ir.ac.iust.dml.kg.raw.tripl... | 38.015267 | 128 | 0.695582 |
de412113e048511741a5ebeb2300f27709e01599 | 1,296 | import java.util.Scanner;
public class MyMain {
// Given a String representing a binary number (e.g. "1010") as input,
// and returns the decimal value of that number.
// You can use Integer.parseInt() to convert a String into a **decimal** number.
// Ex. binaryToDecimal("1010") => 10 (ten)
// ... | 37.028571 | 90 | 0.635031 |
260b085df7406fb43cb89a4bc896cee89ade187f | 7,705 | package com.example.nogimusic;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.widget.DividerItemDecoration;
import android.s... | 39.512821 | 157 | 0.610383 |
c94b6a5178e08bbe9148d5a00206726377741729 | 334 | package com.example.multitouch;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class PDVActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(new PicDragView(th... | 22.266667 | 56 | 0.754491 |
5e652c0c1804d3363ecac70ea37ef8ab62060450 | 1,669 | // Copyright (C) 2013 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 ... | 39.738095 | 100 | 0.753146 |
ebb9b18e0a54e161a13c1c0f84a1e36a8d7d2acf | 1,084 | package question_651;
public class Q661_Image_Smoother {
public int[][] imageSmoother(int[][] M) {
// step 1, calculate new color and store in 8~15 bits
int row = M.length, col = M[0].length;
for(int r = 0; r<row; r++){
for(int c = 0; c<col; c++){
int newColor = ... | 27.1 | 71 | 0.400369 |
6c7440a7fddb1294c52769de390fbfc9145fc709 | 321 | package ru.sbtqa.tag.pagefactory.elements.hint;
import org.openqa.selenium.WebElement;
public interface Hint extends WebElement {
void open();
void close();
boolean isOpen();
<T extends WebElement> T getContent();
default <T extends WebElement> T getOpenButton(){
return (T) this;
};
}... | 21.4 | 53 | 0.679128 |
ffd63e597ff62c6dc8feb43c10e1df39f312f6ee | 995 | package com.wj.service;
import com.wj.pojo.Point1;
import com.wj.pojo.Point2;
import com.wj.pojo.Teacher;
import com.wj.pojo.Tk.Choice;
import com.wj.pojo.User;
import org.springframework.stereotype.Service;
import java.util.List;
public interface UserService {
/* 用户登录 */
User login(String username);
/... | 21.630435 | 46 | 0.645226 |
c147f96b8910dd218b8235cb0fe9635887533588 | 923 | package org.enricogiurin.codingchallenges.leetcode.challenge072020;
/*
The Hamming distance between two integers is the number of positions at which the corresponding bits are different.
Given two integers x and y, calculate the Hamming distance.
Note:
0 ≤ x, y < 231.
Example:
Input: x = 1, y = 4
Output: 2
Expla... | 20.977273 | 115 | 0.605634 |
7c4e2cf992500e3ad210a5519dd06f5ae17c9386 | 1,771 | /*
* Copyright [2013-2021], Alibaba Group Holding Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 27.246154 | 117 | 0.704122 |
9c6e0a14946a1699f70a147f7f00532b656ea8a8 | 1,464 | /*
* Copyright 2020 Avanza Bank AB
*
* 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... | 37.538462 | 119 | 0.75 |
2d3400ac8a13a0bd855df78567972bccbeb64264 | 562 | package cz.salmelu.contests.net;
import java.io.Serializable;
/**
* Used for sending contest field updates to server.
* @author salmelu
*/
public class PacketContest implements Serializable, Packet{
private static final long serialVersionUID = 4650829858344324359L;
/** Unique id of the contest; -1 is invalid, 0... | 23.416667 | 93 | 0.711744 |
39c408afd401e488135a9fdef452c44dde72786f | 477 | public class KeyListNode {
private int key;
private int data;
private KeyListNode next;
public int getKey() {
return key;
}
public void setKey(int key) {
this.key = key;
}
public int getData() {
return data;
}
public void setData(int data) {
this.d... | 20.73913 | 43 | 0.559748 |
6fd2b0089d9e290fbe0742a46178085e2d01c319 | 286 | package com.github.huifer.ews.domain.dto;
import com.github.huifer.ews.domain.db.Action;
import com.github.huifer.ews.domain.db.ActionParam;
import lombok.Data;
import java.util.List;
@Data
public class ActionFull {
private Action action;
private List<ActionParam> actionParams;
}
| 20.428571 | 51 | 0.793706 |
ba3cbd710a21fb78fb62b34c98f8412536825869 | 2,679 | package hr.fer.zemris.java.tecaj.hw5.db.conditionalExpressions;
import hr.fer.zemris.java.tecaj.hw5.db.StudentRecord;
import hr.fer.zemris.java.tecaj.hw5.db.comparison.IComparisonOperator;
import hr.fer.zemris.java.tecaj.hw5.db.valueGetters.IFieldValueGetter;
/**
* A simple conditional expression that can be used to... | 29.766667 | 79 | 0.704367 |
251e4ad39106fa511e5a1c8bbdf791a89f5f6ad9 | 4,399 | /*
* Copyright 2014-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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 31.647482 | 88 | 0.741532 |
70609830c606a4919820a444e31219e8f6fe4cd5 | 551 | package com.ibatis.common.logging.log4j;
import org.apache.log4j.Logger;
public class Log4jImpl implements com.ibatis.common.logging.Log {
private Logger log;
public Log4jImpl(Class clazz) {
log = Logger.getLogger(clazz);
}
public boolean isDebugEnabled() {
return log.isDebugEnabled();
}
publ... | 15.742857 | 65 | 0.656987 |
952765e5a8ef701356c5ffef91b08b30c6417650 | 17,833 | package ch.uzh.ifi.seal.soprafs20.service.move;
import ch.uzh.ifi.seal.soprafs20.constant.DevelopmentType;
import ch.uzh.ifi.seal.soprafs20.constant.GameConstants;
import ch.uzh.ifi.seal.soprafs20.constant.ResourceType;
import ch.uzh.ifi.seal.soprafs20.constant.TileType;
import ch.uzh.ifi.seal.soprafs20.entity.Game;
i... | 31.285965 | 110 | 0.667751 |
e1b14df90a4174c01a1ad242901655719931a3cf | 2,456 | /*
Copyright 2014 NOBUOKA Yu
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dist... | 37.784615 | 131 | 0.752036 |
fdca1468d1ae68d455acf60a318fcdf6be92bba1 | 2,291 | package joshie.harvest.knowledge.gui.stats.quests.page;
import joshie.harvest.api.quests.Quest;
import joshie.harvest.core.base.gui.BookPage;
import joshie.harvest.core.helpers.MCClientHelper;
import joshie.harvest.knowledge.gui.stats.GuiStats;
import joshie.harvest.knowledge.gui.stats.button.ButtonNext;
import joshie... | 38.830508 | 123 | 0.667831 |
ddb7186297795a749d0e6242cb69466516d4a4de | 33,301 | /*
* Copyright 2008-2009 Web Cohesion
*
* 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 applicable law or agree... | 39.502966 | 214 | 0.713012 |
dfde58e274b98ee1d84a1d0324a278f56b8d1d4d | 2,411 | package com.example.oauth2authorizationserver.auth;
import com.example.oauth2authorizationserver.dto.LoginBody;
import com.example.oauth2authorizationserver.dto.LoginResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.authentication.AuthenticationManager;
import... | 46.365385 | 127 | 0.800498 |
b03971d33f7b3a5d2ba3b5a1a37a9f2b63d50d68 | 574 | package com.sequenceiq.freeipa.flow.stack;
import com.sequenceiq.flow.core.PayloadConverter;
public class HealthCheckFailedToStackFailureEventConverter implements PayloadConverter<StackFailureEvent> {
@Override
public boolean canConvert(Class<?> sourceClass) {
return HealthCheckFailed.class.isAssignab... | 33.764706 | 107 | 0.768293 |
0c86c1ea4d220fe67c6eed57c8510dd039e70792 | 555 | /**
*
*/
package org.jefecomp.tree.entities.mapper;
import org.modelmapper.ModelMapper;
import org.modelmapper.convention.MatchingStrategies;
/**
* @author jefecomp
*
*/
public class TreeNodeModelMapper {
private ModelMapper modelMapper;
public TreeNodeModelMapper() {
this.modelMapper = new ModelMa... | 18.5 | 85 | 0.744144 |
7583aa060ef72f49e5518a3b623b3e0f25489275 | 2,590 | /*
* Copyright (c) 2018, salesforce.com, inc.
* All rights reserved.
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
package com.salesforce;
import io.prometheus.client.Gauge;
import org.apache.kafka.cli... | 43.166667 | 119 | 0.628958 |
81425be222346fd63a65178517c3bc62f0f97f46 | 2,170 | /*
* Copyright 1999-2018 Alibaba Group Holding 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 applica... | 35 | 112 | 0.737327 |
230dbba49548852f6103b6a920cd9a4480c93b15 | 441 | package com.midi_automator.view.windows.MainFrame;
/**
* Interface for a blinkable component
*
* @author aguelle
*
*/
public interface IBlinkable {
/**
* Start blinking the component. Call from here
* {@link IBlinkingStrategy#startBlinking()} .
*/
public void startBlinking();
/**
* Sets the blinkin... | 17.64 | 69 | 0.709751 |
008afd2485f232dfa89849c91af33044ce7ded32 | 6,048 | /*
* Copyright (c) 2018 Bixbit - Krzysztof Benedyczak All rights reserved.
* See LICENCE.txt file for licensing information.
*/
package pl.edu.icm.unity.composite.password;
import java.util.Arrays;
import java.util.List;
import java.util.Optional;
import com.fasterxml.jackson.databind.node.ObjectNode;
import pl.... | 30.39196 | 92 | 0.791667 |
7c20f389f3c582269f5387206789734015aaaa48 | 422 | package com.bigboiapps.brian.pingchecker;
import android.text.Spannable;
import java.util.ArrayList;
public class Wrapper
{
public String serverName;
public Spannable spannableText;
public String minPing;
public String maxPing;
public String avgPing;
public int pingsTransmitted;
public in... | 21.1 | 41 | 0.748815 |
05621d88b4277269fe11b32ef6e56bc9044bcbcd | 114 | package battleship;
public class Main {
public static void main(String[] args) {
Game.run();
}
}
| 14.25 | 44 | 0.605263 |
eec933d2ae9cfe7f9b1d0b3e9baff87bf155026f | 2,432 | package com.threathunter.nebula.onlineserver;
import com.threathunter.common.ShutdownHookManager;
import com.threathunter.config.CommonDynamicConfig;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.Arrays;
/**
* @author we... | 34.253521 | 95 | 0.5 |
3889866941437506da487b0fe17bd9d7fa152ca9 | 1,564 |
/*
Pratik was given an array of integers arr of n elements and an integer k that could be considered as
the threshold to divide each element of the array into the sum of different numbers.For example:
if k=3, 5 can be represented as (3+2) , 13 can be represented as (3+3+3+3+1) .
Pratik has to find the sum of c... | 24.825397 | 102 | 0.63491 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.