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 |
|---|---|---|---|---|---|
acbd3fb84e6b1741bb8bc95c02ea35bca0676ea3 | 5,166 | /*
* 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 ... | 35.627586 | 112 | 0.660472 |
e82869bb504f49d9d5ef6378c4e7c7db3b7abaca | 413 | /**
* @author YZhi
* @date 2012-5-29
* @copyright 2012 haitian.com All rights reserved
* @since V1.0
*/
package dp.example.structure.facade.salary;
/**
* 奖金计算
* @author YZhi
* @since 1.0
*/
public class Bonus {
private Attendance atte = new Attendance();
public int getBonus() {
int workDays =... | 17.956522 | 50 | 0.612591 |
55b2fee363fac2153d30925fefe9f4fc49ebbea6 | 5,652 | /**
* Copyright © 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.thinkgem.jeesite.modules.studentattendance.web;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletReque... | 42.818182 | 135 | 0.761323 |
fbf407657658f1ab2995fe15d20c2ba4dc4e3246 | 15,300 |
import java.awt.*;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
//import b787b
/*
* To change this license header, choose License Headers in Proj... | 46.223565 | 206 | 0.587451 |
b9191f7f155f07f45bdeb2eee8ca631899284352 | 633 | package io.github.metteo.ws;
import javax.xml.bind.annotation.adapters.XmlAdapter;
public class Element1To2Adapter extends XmlAdapter<Element_1_0, Element_2_0> {
@Override
public Element_2_0 unmarshal(Element_1_0 v) throws Exception {
if (v == null) { return null; }
Element_2_0 result = new Element_2_0();
... | 21.1 | 78 | 0.71564 |
01d4ce09a0d5a562ab275ff41ea45f1492280d18 | 3,531 | package net.minecraft.server;
import java.util.Random;
import org.bukkit.BlockChangeDelegate; // CraftBukkit
public class WorldGenTaiga1 extends WorldGenerator {
public WorldGenTaiga1() {}
public boolean a(World world, Random random, int i, int j, int k) {
// CraftBukkit start
// sk: The id... | 34.281553 | 133 | 0.356839 |
b3b23faf3434feeeb04b5a6bed77bf66564aef33 | 5,286 | /*
* Copyright (c) 2015 Oracle and/or its affiliates. All rights reserved. This
* code is released under a tri EPL/GPL/LGPL license. You can use it,
* redistribute it and/or modify it under the terms of the:
*
* Eclipse Public License version 1.0
* GNU General Public License version 2
* GNU Lesser General Public... | 37.225352 | 104 | 0.667991 |
103635bfc546383f4679c6f0dfc97bf31ab237f0 | 390 | package FundamentalsJava.DataTypesAndVariablesLab;
import java.util.Scanner;
public class ConvertMetersToKilometers {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int meters = Integer.parseInt(scanner.nextLine());
double kilometers = meters * 1.0... | 22.941176 | 55 | 0.666667 |
1e19d05216d01dfd92492f517e8e63daf3a14f62 | 11,234 | package org.visallo.web;
import com.google.common.base.Joiner;
import org.visallo.core.config.Configuration;
import org.visallo.core.model.thumbnails.ThumbnailRepository;
import org.visallo.core.model.properties.VisalloProperties;
import org.visallo.core.model.properties.types.MetadataVisalloProperty;
import or... | 49.928889 | 150 | 0.710789 |
4bfbd1e660cf13cbe7920c950d191f147779b03f | 1,095 | package org.sag.gjfr;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public abstract class AbstractPattern {
private final String patternText;
private final Pattern pattern;
public AbstractPattern(String patternText) {
if (patternText == null)
throw new IllegalArgume... | 24.886364 | 80 | 0.635616 |
bbab0b69a349a4dd8fd94447eaf1c28e5e1b8a0f | 2,029 | package com.seu.magicfilter.filter.advance.common;
import android.content.Context;
import android.opengl.GLES20;
import com.show.tt.R;
import com.seu.magicfilter.filter.base.gpuimage.GPUImageFilter;
import com.seu.magicfilter.filter.helper.MagicFilterParam;
import com.seu.magicfilter.utils.OpenGLUtils;
pub... | 31.215385 | 99 | 0.675702 |
b3e5c5c9af8f11eca2dbff7eaf487503886f1fea | 1,950 | /*
* #%L
* joynr::java::messaging::bounceproxy::controlled-bounceproxy
* %%
* Copyright (C) 2011 - 2017 BMW Car IT 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
*
* h... | 30.46875 | 124 | 0.695385 |
b203eea431cd58a6f6217511454dfc4657eb04bd | 145 | package com.example.sqliteapp;
public interface TodoDataSource {
void getTodoNote(GetTodoNote callback);
void setData(TodoNote note);
}
| 20.714286 | 43 | 0.772414 |
88eedbf6f085fee61155adcfe815785029e6d2dd | 958 | package com.baeldung.spring.kafka.dto.document.full;
import com.baeldung.spring.kafka.dto.document.dal.ResolutionExecutionTask;
import com.baeldung.spring.kafka.dto.document.dal.ResolutionExecutionTaskCreateRequest;
import com.baeldung.spring.kafka.dto.document.full.ProlongationRequestAcceptTaskFull;
import com.baeldu... | 53.222222 | 93 | 0.882046 |
897476bc73b851c2506d8b730570230a4742a59d | 1,213 | package com.vaguehope.onosendai.notifications;
import java.util.List;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import com.vaguehope.onosendai.config.Column;
import com.vaguehope.onosendai.model.Tweet;
import com.vagueho... | 33.694444 | 105 | 0.781533 |
d39bc7918fcb67e9587c6b7bd508f8fb9ce22f69 | 2,641 | package com.digero.abcplayer.view;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.FontMetrics;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Rectangle;
import java.awt.font.GlyphVector;
import java.util.List;
import java.util.NavigableMap;
import java.util.Navigable... | 24.009091 | 115 | 0.672473 |
8d0769f0c551ed729a682b72d00ca24ff80e514c | 2,184 | package com.hui.SlidingWindow;
/**
* @author: shenhaizhilong
* @date: 2018/11/13 10:04
*
*
*
* 424. Longest Repeating Character Replacement
* DescriptionHintsSubmissionsDiscussSolution
* Given a string that consists of only uppercase English letters, you can replace any letter in the string with anot... | 25.103448 | 268 | 0.544414 |
a7b7405ae827542e0ae44a3629739060fdb5fdb8 | 687 | package com.d365lab.eatery.restaurantcustomerorchestrator.services;
import com.d365lab.eatery.restaurantcustomerorchestrator.dao.RestaurantLogin;
import org.javatuples.Pair;
import java.util.List;
public interface RestaurantOnboardingService {
String generateLogin(String userName, String userGivenPassword, Stri... | 45.8 | 201 | 0.847162 |
7a0f6500479c10cd281a8bce4831648def008003 | 1,692 | /*
* Copyright 2007 Yusuke Yamamoto
*
* 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 agree... | 22.864865 | 88 | 0.632388 |
715ac8bdab6670ce1cfe87f002a47be4a94e2851 | 4,052 | package de.hbz.introx.mf.benchmarks.stream.converter;
import de.hbz.introx.mf.stream.converter.JsonToElasticsearchBulkIdKeyOriginal;
import de.hbz.introx.mf.stream.converter.JsonToElasticsearchBulkIdKeyPointer;
import de.hbz.introx.mf.stream.converter.JsonToElasticsearchBulkIdPathFind;
import de.hbz.introx.mf.stream.c... | 33.213115 | 82 | 0.585637 |
42fd48fd0c2d62b8797852dd0df997b6a9293259 | 3,004 | package com.webank.wecross.stub.fabric;
import com.webank.wecross.common.FabricType;
import com.webank.wecross.stub.ResourceInfo;
import com.webank.wecross.utils.HashUtils;
import java.util.Collection;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.Set;
import org.hyperledger.fabric.sdk.Pee... | 28.339623 | 95 | 0.575233 |
bb63bef85a8466f96aa2bf1982fe8f585281a175 | 199 | package org.apache.spark.util.hooks;
/**
* @Description :
* @Author : 问天(章艺钟)
* @Date : 4:19 PM 2020/4/1
* @Modified :
*/
public interface PreJobExecuteHook {
void execute(String queue);
}
| 16.583333 | 36 | 0.648241 |
078a9f52a115bf1454bf3063814178356bd58ec5 | 161 | package com.senior_project.recipe_finder.data;
import lombok.Data;
import java.util.List;
@Data
public class SearchResults {
private List<Hit> hits;
}
| 11.5 | 46 | 0.751553 |
fce80f4d8f8008910265c30d98fe8df74899f402 | 5,064 | package zemberek.examples.classification;
import com.google.common.base.Splitter;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import org.antlr.v4.runtime.Token;
import zemberek.core.turkish.Tur... | 32.670968 | 98 | 0.649882 |
67919c64ffa720cc1efa7ea561ba02424404e5d5 | 4,486 | package com.vijaya.firebase;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.text.TextUtils;
import android.view.View;
import android.widget.AutoCompleteTextView;
import android.widget.EditText;
import a... | 35.888 | 124 | 0.642443 |
935acaa14b33021372ae2712632a3ae0be613321 | 3,737 | /* ===========================================================
* JFreeChart : a free chart library for the Java(tm) platform
* ===========================================================
*
* (C) Copyright 2000-2022, by David Gilbert and Contributors.
*
* Project Info: http://www.jfree.org/jfreechart/index.html
... | 33.366071 | 81 | 0.649719 |
513c3f16e7f63450bf7cc2d3c1c3f65618f2fc5c | 8,237 | /**
* This is free and unencumbered software released into the public domain.
*
* Anyone is free to copy, modify, publish, use, compile, sell, or
* distribute this software, either in source code form or as a compiled
* binary, for any purpose, commercial or non-commercial, and by any
* means.
*
* In jurisdicti... | 41.60101 | 112 | 0.624863 |
decbae841aa4e3c9b7360f72c6834265da50aedc | 740 | package DataStructureLinkedList;
public class DeleteNode_LL {
/*
* Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.
Supposed the linked list is 1 -> 2 -> 3 -> 4 and you are given the third node with value 3,
the linked list should be... | 32.173913 | 115 | 0.622973 |
73a4e1cbe6da4d8b69e9ce5780374dc53b300be9 | 3,181 | /*
* Copyright (C) 2016 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 ... | 34.576087 | 87 | 0.697265 |
07e7b5e707b7fd9733fb87d48bdedc8c90e597aa | 3,028 | /*
* 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 ... | 45.19403 | 100 | 0.727873 |
1e3b2a47b427cd6131ca6f4cb3d333a6fc09fde7 | 1,106 | package utitls;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
/**
* Created by liang on 2016/9/18.
*/
public class MD5Utils {
public static String encoder(String password){
StringBuffer buffer;
/**
* 1,信息摘要器
*/
MessageDigest digest... | 23.531915 | 61 | 0.486438 |
bd0a251706b840a445c94e2d13105800ae095537 | 2,676 | // Copyright 2015-present 650 Industries. All rights reserved.
package ghost;
import android.view.ViewGroup;
import com.facebook.react.bridge.ReadableArray;
import com.facebook.react.uimanager.ThemedReactContext;
import com.facebook.react.uimanager.ViewGroupManager;
import com.facebook.react.uimanager.annotations.Re... | 32.634146 | 107 | 0.721973 |
bdac1d8b72f611a44211f0dfa699085870050b50 | 3,966 | package com.hjwylde.whiley.rewrite_rules.evaluator;
import static com.google.common.collect.Sets.filter;
import com.hjwylde.whiley.rewrite_rules.evaluator.util.Result;
import com.google.common.base.Joiner;
import com.google.common.collect.ImmutableList;
import com.google.common.reflect.ClassPath;
import java.io.Buf... | 35.410714 | 100 | 0.624307 |
bbda1bc260becbb87611bf4167f31d130488ad77 | 4,685 | /*
* 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.782258 | 95 | 0.747065 |
0ca87d4f7dfc68c8abfcf5e76d292e529af7af2f | 4,712 | package ru.vas.resourceservice.integration.file;
import org.apache.commons.io.FileUtils;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.runner.RunWith;
import org.mockito.ArgumentCaptor;
import org.mockito.Mockito;
import org.springf... | 41.333333 | 106 | 0.72899 |
5b0f537457d49c3d2b3358a4ef93c5026acc2e79 | 11,052 | package fr.itris.glips.extension.jwidget.trends.runtime.view;
import java.text.*;
import java.util.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import fr.itris.glips.extension.jwidget.trends.runtime.*;
import fr.itris.glips.extension.jwidget.trends.runtime.configuration.*;
import fr.itris.glips... | 24.131004 | 91 | 0.722856 |
5a578acc17c5b4f3c8f31cc1a060016d4517e0bd | 370 | package in.hocg.boot.changelog.sample.service;
import lombok.RequiredArgsConstructor;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;
/**
* Created by hocgin on 2020/8/16
* email: hocgin@gmail.com
*
* @author hocgin
*/
@Service
@RequiredArgsConstructor(onConstru... | 20.555556 | 52 | 0.775676 |
d5a4e80c966d2235d28640468c985de0c5bea40c | 6,242 | package dao;
import model.Role;
import model.RoleTypeEnum;
import model.User;
import model.UserInfo;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
/**
* Created by xzinoviou
* 13/10/2018
*/
public class UserDao extends Dao implements DaoUtils <User,Long,String> {
public Use... | 23.73384 | 119 | 0.563121 |
8c6ac5444c602ce86aca69dc68d50a7e4917716c | 1,123 | package com.cm.understandingJvm;
import java.lang.invoke.MethodHandle;
import java.lang.invoke.MethodType;
import static java.lang.invoke.MethodHandles.lookup;
/**
* @author chengawu
* @date 1/11/2019 2:22 PM
*/
public class InvokeVirtualTest {
class GrandFather {
void thinking() {
System.... | 25.522727 | 102 | 0.573464 |
21ba62e82c18e8e71138faaf65cf100691b51bcd | 390 | package com.example.android.sampleapp;
import android.app.Application;
import roboguice.RoboGuice;
public class MySampleApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
RoboGuice.setBaseApplicationInjector(this, RoboGuice.DEFAULT_STAGE,
Ro... | 26 | 79 | 0.730769 |
88133ccfb04231a0f852c5cd98d5284c7449588a | 3,312 | /*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2015-2021 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/license... | 35.612903 | 142 | 0.67965 |
73ea0ea9ffce1d81fe61207daa9d46f5b04028e9 | 4,307 | package cosmos.commands.perworld;
import cosmos.Cosmos;
import cosmos.constants.PerWorldCommands;
import cosmos.statics.config.Config;
import ninja.leaping.configurate.ConfigurationNode;
import org.spongepowered.api.Sponge;
import org.spongepowered.api.text.format.TextColors;
import org.spongepowered.api.util.Tuple;
i... | 38.115044 | 135 | 0.560251 |
2b16f2c7eb532e453462e54da49dc7660153bbf4 | 2,445 | /*
* MinIO Java SDK for Amazon S3 Compatible Cloud Storage, (C) 2015 MinIO, 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
*
... | 20.375 | 87 | 0.677301 |
792c2b8c13c50c9490c1defce615cdcc5a80abde | 1,704 | /* ©Copyright 2011 Cameron Morris
*
* 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.77551 | 81 | 0.702465 |
52fa8ea8e0feef3e242a3775137df01511b60276 | 2,479 | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.HashSet;
public class ProblemB {
static long gcd(long a, long b) {
if (b == 0) return a;
else return gcd(b,a % b);
}
private static HashSet<Long> getFactors(long n) {
Hash... | 31.782051 | 93 | 0.394514 |
673d253ccccf1d68d88577f18b6441c2bc0cfc99 | 1,632 | import java.util.Scanner;
import depository.Depository;
import simulates.Pretense;
import static java.lang.System.out;
import static java.lang.System.in;
public class Chiral {
public fabricator.Promoter waffen = null;
public static synchronized void main(String[] rationalizations) {
java.lang.String bcl = "";... | 30.222222 | 99 | 0.641544 |
e58f046f35ac710e6ff9bb636eb916030d137525 | 1,263 | package com.igormascarenhas.amivulnerable.device;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@RestController
@R... | 28.704545 | 65 | 0.716548 |
904e12ce0f17b02b396ca544034ad52f9ca83948 | 2,939 | /*
* Copyright 2013 Nicolas Morel
*
* 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... | 40.819444 | 128 | 0.727458 |
121ec757ab66770c74617a4f8e2a537d1789feaa | 1,913 | package com.fy.sysadmin.dao;
import com.fy.sysadmin.model.SysUser;
import org.apache.ibatis.annotations.*;
import java.util.List;
@Mapper
public interface UserDao {
@Select("select * from sys_user t where t.username = #{username}")
SysUser getUser(String username);
@Select("select count(*) from sys_user t ")
L... | 40.702128 | 290 | 0.70988 |
3ef94333f2034bd116128c723047cbcc55b0a62b | 2,838 | package io.jpotts18.android_mvp.domain;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import com.orhanobut.logger.AndroidLogAdapter;
import com.orhanobut.logger.FormatStrat... | 27.553398 | 105 | 0.659972 |
2ab4a941a2e56cd2e98af9be49c8f0d85575d62b | 486 | package com.fandou.learning.netty.core.chapter5.rpc.consumer;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class RpcConsumerTest {
@Test
void sayHello() {
RpcConsumer consumer = new RpcConsumer();
consumer.sayHello();
}
@Test
void calc() {... | 23.142857 | 74 | 0.619342 |
86b2e86aa71a7dcd46625ba25e12cfc369e353a9 | 5,099 | /*****************************************************************
* 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
* ... | 32.069182 | 90 | 0.612865 |
2bc6bbf608ad5d3f94ab21532b4e178047580c41 | 11,216 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.resourcemanager.appservice.samples;
import com.azure.core.credential.TokenCredential;
import com.azure.core.http.policy.HttpLogDetailLevel;
import com.azure.core.management.AzureEnvironment;
import com.az... | 46.539419 | 164 | 0.595043 |
487348b031be0ad7d31267e4bf58e1589cb10d78 | 365 | package husacct.control.task.resources;
import java.util.HashMap;
import org.jdom2.Document;
public interface IResource {
public Document load(HashMap<String, Object> dataValues);
public boolean save(Document doc, HashMap<String, Object> dataValues,HashMap<String, Object> config);
public boolean save(Document d... | 24.333333 | 102 | 0.786301 |
e39d9f11ccc612ebb7b13f69b4a645d8277dd870 | 1,228 | package com.github.zzt93.syncer.health.export;
import com.github.zzt93.syncer.config.common.HttpConnection;
import com.github.zzt93.syncer.consumer.output.channel.http.HttpClientInitializer;
import com.github.zzt93.syncer.consumer.output.channel.http.NettyHttpClient;
import io.netty.handler.codec.http.HttpMethod;
impo... | 27.288889 | 95 | 0.724756 |
f6fbfa1d8989a3f79ced6e43a1546435f9ec9ce8 | 718 | package com.tjh.swivel.model.matchers;
import org.apache.http.client.methods.HttpUriRequest;
import org.junit.Test;
import java.net.URI;
import static com.tjh.swivel.model.matchers.RequestedURIPathMatcher.hasURIPath;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.junit.Assert.assertThat;
import s... | 31.217391 | 89 | 0.770195 |
34423b95a10e980db900d1787f134bccb0fcc47b | 1,145 | package com.sixrr.inspectjs.ui;
import com.intellij.openapi.ui.Messages;
import com.sixrr.inspectjs.InspectionJSBundle;
import javax.swing.*;
import java.text.ParseException;
public class RegExInputVerifier extends InputVerifier {
@Override
public boolean verify(JComponent input) {
return true;
}
... | 32.714286 | 131 | 0.59214 |
8038ab47174433b7685559337deec3b5a2cd3086 | 4,159 | package com.chikeandroid.debtmanager.features.iowe;
import com.google.common.collect.Lists;
import android.support.v4.app.LoaderManager;
import android.support.v4.content.Loader;
import com.chikeandroid.debtmanager.data.Debt;
import com.chikeandroid.debtmanager.data.Person;
import com.chikeandroid.debtmanager.data.P... | 33.007937 | 107 | 0.705458 |
e44e4e2a8e0f64e3077b842d23a0e2d9568e553f | 40,258 | /*
* Copyright (C) 2015 "IMIS-Athena R.C.",
* Institute for the Management of Information Systems, part of the "Athena"
* Research and Innovation Centre in Information, Communication and Knowledge Technologies.
* [http://www.imis.athena-innovation.gr/]
*
* This program is free software: you can redistribute it an... | 38.087039 | 151 | 0.4069 |
36d034333593f92e411097dbc3fe028fec4ea0a5 | 7,371 | package lu.uni.bicslab.greenbot.android.ui.activity.itemmain;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import android.wi... | 35.608696 | 173 | 0.763533 |
308b5486113fd499ec8ec545f7bbd9e5e3dd2061 | 3,946 | package com.yuqiong.college.service.edu.controller;
import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.vod.model.v20170321.GetVideoPlayAuthRequest;
import com.aliyuncs.vod.model.v20170321.GetVideoPlayAuthResponse;
import com.yuqiong.college.common.handler.GuliException;
import com.yuqiong.college.common.utils.... | 32.344262 | 134 | 0.674607 |
8003675384ba1594067eb818398a49ffbfe32874 | 8,299 | package org.corfudb.infrastructure;
import lombok.extern.slf4j.Slf4j;
import org.corfudb.runtime.CorfuRuntime;
import org.corfudb.runtime.clients.BaseClient;
import org.corfudb.runtime.clients.IClientRouter;
import org.corfudb.runtime.exceptions.WrongEpochException;
import org.corfudb.runtime.view.Layout;
import java... | 41.084158 | 112 | 0.590794 |
6ce99fdeacc314017b6a880dbbea5223f3b09ecd | 7,211 | /*
* Copyright © 2014-2016 NetApp, 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 require... | 37.170103 | 144 | 0.662321 |
5b7c99c0c47af2e4f6d412d5677377e903b36608 | 664 | package behavioural.observer;
public interface Subject {
/*
* Attach an observer to this subject.
* @param observer The observer to attach.
*/
void attach(Observer observer);
/*
* Detach an observer from this subject.
* @param observer The observer to detach.
*/
... | 20.121212 | 64 | 0.579819 |
d4e789b6b0580d4012c5f2b31a080cc73fc805cb | 1,094 | /**
* FinalDestinationDisabledGlobalhashOverlay.java
* Copyright (C)2009 Nicholas Killewald
*
* This file is distributed under the terms of the BSD license.
* The source package should have a LICENCE file at the toplevel.
*/
package net.exclaimindustries.geohashdroid;
import com.google.android.maps.GeoPoint;
im... | 31.257143 | 96 | 0.747715 |
c39edc963b2da49539c7d973bddfcbd86a3af275 | 4,720 | package ru.majordomo.hms.personmgr.manager.impl;
import lombok.RequiredArgsConstructor;
import org.springframework.data.mongodb.core.MongoOperations;
import org.springframework.data.mongodb.core.query.Criteria;
import org.springframework.data.mongodb.core.query.Query;
import org.springframework.stereotype.Component;
i... | 49.684211 | 183 | 0.797246 |
22bd6703ee4c98c2a3618bbe1ea1eb9c8e121519 | 2,856 | package org.innovateuk.ifs.thread.viewmodel;
import org.innovateuk.ifs.threads.resource.FinanceChecksSectionType;
import org.innovateuk.ifs.user.resource.Authority;
import org.innovateuk.ifs.user.resource.UserResource;
import java.time.ZonedDateTime;
import java.util.List;
import static org.innovateuk.ifs.thread.vie... | 27.728155 | 106 | 0.668768 |
9498c844292cef17964807160b76327727b4abf0 | 1,445 | package com.test.activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.widget.TextView;
import com.test.R;
import com.test.presenter.SecondActivityPresenter;
import com.test.presenter.SecondActivityView;
import org.greenrobot.eventbus.EventBus;
import org.greenrobot.eventbus.... | 22.936508 | 82 | 0.710727 |
94fcd5635a567f1e3d5050290681cb447990136c | 2,122 | /*
* 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 ... | 34.225806 | 94 | 0.709708 |
1a61912d70b9df34c91ded2ccb89b693e50c6434 | 1,205 | package com.github.vvv1559.algorithms.leetcode.lists;
/*
* Original text: https://leetcode.com/problems/remove-nth-node-from-end-of-list/#/description
*
* Given a linked list, remove the nth node from the end of list and return its head.
*
* For example,
*
* Given linked list: 1->2->3->4->5, and n = 2.
*
* Af... | 25.638298 | 94 | 0.66722 |
f259f8505ce0acc3c2f784b72200354f6a65d561 | 635 | package br.com.inteligenti.lavoutanovov2;
import android.app.Application;
import com.facebook.FacebookSdk;
import com.facebook.appevents.AppEventsLogger;
/**
* Created by fernando on 15/12/17.
*/
public class LoginFacebookApp extends Application {
// Location updates intervals
public static int UPDATE_IN... | 23.518519 | 59 | 0.713386 |
ede82a1f7e68c9d800ea43e962732e629d41130f | 745 | package com.wzw.ziweishopcity.coupon.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wzw.common.utils.PageUtils;
import com.wzw.ziweishopcity.coupon.entity.SeckillSessionEntity;
import com.wzw.ziweishopcity.coupon.entity.SeckillSkuRelationEntity;
import com.wzw.ziweishopcity.coupon.enti... | 27.592593 | 79 | 0.798658 |
2f96293264e40a1de0c5196c60c5e20fd792f7de | 7,170 | /*******************************************************************************
* Copyright 2013 EMBL-EBI
*
* 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/l... | 41.445087 | 142 | 0.696513 |
3016224213f49dcc5e88c8733b4e956f647bba5d | 979 | package com.dmall.bms.service.impl.menu.handler;
import com.dmall.common.model.swagger.SwaggerInfo;
import com.dmall.common.util.JsonUtil;
import com.fasterxml.jackson.core.type.TypeReference;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.Response... | 33.758621 | 115 | 0.748723 |
7dcc3ce06e2b02ffced744e8c3c802c0c7bfc7fa | 5,460 | /*
* 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 ... | 30 | 101 | 0.721245 |
a55ae5a07552a87f9d5342655cf21bebbd831191 | 6,476 | package ch.rasc.eds.starter.service;
import static ch.ralscha.extdirectspring.annotation.ExtDirectMethodType.STORE_MODIFY;
import static ch.ralscha.extdirectspring.annotation.ExtDirectMethodType.STORE_READ;
import java.util.List;
import java.util.Locale;
import javax.validation.Validator;
import org.springframework... | 35.977778 | 85 | 0.788141 |
8195cda0aaaef0dcfe812b84199c088b2fbc0363 | 2,581 | package com.xieke.admin.service;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.xieke.admin.mapper.TestResultMapper;
import com.xieke.admin.model.TestResult;
import org.springframework.stereotype.Service;
import ... | 26.070707 | 82 | 0.6358 |
a5842651274b11e5ddcc98532e061d7e7e9defda | 6,878 | package com.backendless.backendless_sdk;
import android.content.Context;
import androidx.annotation.NonNull;
import com.backendless.backendless_sdk.call_handlers.BackendlessCallHandler;
import com.backendless.backendless_sdk.call_handlers.CacheCallHandler;
import com.backendless.backendless_sdk.call_handlers.Commerc... | 47.434483 | 96 | 0.771009 |
be761fb94e7e4ffceb6115184d61d03b1d82fa96 | 2,540 | package uk.gov.hmcts.divorce.systemupdate.service.task;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import uk.gov.hmcts.ccd.sdk.api.CaseDetails;
import uk.gov.hmcts.ccd.sdk.type.Document;
import uk.gov.hmcts.divorce.d... | 39.6875 | 101 | 0.778346 |
5fd480b29259e8422fdcdf28c5e92071b2944a45 | 2,978 | package Application.Controllers;
import java.net.URL;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ResourceBundle;
import Application.Constants;
import Application.Model.Model;
import Application.UI.AlertPopUp;
import Application.UI.MainWindow;
import javafx.event... | 27.321101 | 88 | 0.722297 |
495053fc1d9dd33c3e58e996c52f575504cd59cc | 9,711 | /**
* Copyright (C) 2005-2008 Jive Software. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unle... | 31.631922 | 115 | 0.527752 |
6bcc0a1166cd354501f925d903430f2c406d4836 | 8,240 | package com.packt.cookbook.ch02_oop.g_objects;
import java.util.Arrays;
import java.util.Comparator;
import java.util.List;
import java.util.Objects;
import java.util.function.Supplier;
public class ObjectsDemo {
public static void main(String... args){
//compare();
//toStringWhenNull();
... | 34.476987 | 103 | 0.559951 |
f7604331692248da4eb6765dd47ab157b4417f7a | 3,912 | package com.thinkaurelius.titan.graphdb.vertices;
import com.google.common.base.Preconditions;
import com.google.common.base.Predicate;
import com.thinkaurelius.titan.diskstorage.Entry;
import com.thinkaurelius.titan.diskstorage.EntryList;
import com.thinkaurelius.titan.diskstorage.MyEntryList;
import com.thinkaureliu... | 34.619469 | 107 | 0.722393 |
e65df931e8ec1267bfa237fe9af27ca51866e88b | 14,647 | package com.platform.service;
import com.alibaba.fastjson.JSONObject;
import com.aliyun.oss.common.utils.DateUtil;
import com.platform.cache.J2CacheUtils;
import com.platform.dao.*;
import com.platform.entity.*;
import com.platform.util.CommonUtil;
import com.platform.utils.DateUtils;
import org.apache.commons.lang.S... | 35.811736 | 106 | 0.719192 |
f80dcb851d28861080f1831d62564b918f1d19a0 | 2,365 | package com.rivescript;/*
* Copyright (c) 2016 the original author or authors.
*
* 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... | 31.118421 | 81 | 0.711628 |
eb50c1abc182ca3035471f742e24897ac0bb7f95 | 4,305 | package com.valtanix.demo;
import com.timgroup.statsd.NonBlockingStatsDClient;
import com.timgroup.statsd.StatsDClient;
import io.netty.util.internal.StringUtil;
import io.vertx.core.AbstractVerticle;
import io.vertx.core.Future;
import io.vertx.core.http.HttpServerResponse;
import io.vertx.ext.web.Router;
import io.v... | 43.05 | 109 | 0.625087 |
9ef81ba8dbce5c148b0a55d14708c06ba1e05dd9 | 949 | package com.alertutil.dialog;
import android.app.Dialog;
import android.content.Context;
import android.view.View;
import android.view.Window;
/**
* This class used for the base class of all dialogs in the application.
*
* @author clickapps
*/
public class BaseDialog extends Dialog implements View.OnClickListene... | 18.98 | 72 | 0.622761 |
e7d72f9a5ab1b7179adb2d191a20a230b4a32925 | 3,042 | package zj.custom.mybatis;
import org.springframework.jdbc.core.RowMapper;
import org.springframework.jdbc.support.JdbcUtils;
import zj.custom.model.DynamicModel;
import zj.custom.model.Metadata;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.util.Map;
/**
*... | 32.361702 | 86 | 0.648915 |
6e176c53c7afb4d1c190d615eabc2ed00daf4c53 | 320 | package com.zxsong.mymall;
import android.app.Application;
import com.facebook.drawee.backends.pipeline.Fresco;
/**
* Created by zxsong on 2016/2/23.
*/
public class MyApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
Fresco.initialize(this);
}
}
| 16 | 52 | 0.684375 |
5f3082268143b955da8230d7ff79e5a0b6b31065 | 14,387 | package com.myth.shishi.activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.drawable.BitmapDrawable;
import android.os.Bundle;
import android.speech.tts.TextToSpeech;
import android.view.Gravity;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import andro... | 34.01182 | 243 | 0.521373 |
8474a1ee064c12aa847c8962c8047d38d03a5c27 | 249 | package com.lwkandroid.lib.core.imageloader.callback;
/**
* 下载通用回调
*
* @author LWK
*/
public interface ImageDownLoadCallBack<T>
{
void onImageDownloadStarted();
void onImageDownloadSuccess(T data);
void onImageDownloadFailed();
}
| 15.5625 | 53 | 0.722892 |
ef7e0559bc4f0e60f66e916804f78b1e659703e1 | 3,506 | package main.com.whitespell.peak.logic.endpoints.authentication;
import com.google.gson.Gson;
import main.com.whitespell.peak.Server;
import main.com.whitespell.peak.StaticRules;
import main.com.whitespell.peak.logic.EndpointHandler;
import main.com.whitespell.peak.logic.RequestObject;
import main.com.whitespell.peak.... | 34.372549 | 173 | 0.604107 |
8890d83fce643b07440e8be4b8a04309c063cea7 | 4,756 | /*
* Copyright 2015 SIB Visions 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... | 36.030303 | 109 | 0.75841 |
a50eacbd384626642d04bd3e0baae4ec7a54776c | 1,431 | package practice.sets;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class PossibleLists {
private int[] elements;
private int[] op;
private List<int[]> possibleList;
public PossibleLists(int[] elements) {
this.elements = elements;
generatePossibleL... | 20.442857 | 74 | 0.581412 |
be042f10a080588ed7af52ec6b2ce91a5f65b4c8 | 1,657 | package com.sargis_ohanyan.sargapps.controles;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.scenes.scene2d.p004ui.Skin;
import com.badlogic.gdx.scenes.scene2d.p004ui.Touchpad;
import com.badlogic.gdx.scenes.scene2d.p004ui.Touchpad.TouchpadStyle;
import com.sargis_ohany... | 32.490196 | 93 | 0.687387 |
87c249f1c9ead1a835ecfef0d9229bed04c42a06 | 2,273 | package ca.concordia.jsdeodorant.analysis.module.commonjs;
import java.util.List;
import java.util.Set;
import org.apache.log4j.Logger;
import com.google.javascript.jscomp.parsing.parser.trees.BinaryOperatorTree;
import com.google.javascript.jscomp.parsing.parser.trees.ExpressionStatementTree;
import com.google.java... | 42.092593 | 152 | 0.816982 |
7c0c8d60f433285b60e58cbd13e97266ea79c886 | 1,648 | /*
* Copyright 2018-2021, ranke (213539@qq.com).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 24.969697 | 75 | 0.732403 |
2c1c7153cb572f97b84cf71ab093415df87a8a7d | 789 | public double XXX(int[] nums1, int[] nums2) {
int[] merge = new int[nums1.length + nums2.length];
int i = 0, j = 0, k = 0;
while (i < nums1.length && j < nums2.length) {
if (nums1[i] <= nums2[j]) {
merge[k++] = nums1[i++];
} else {
merge[k... | 30.346154 | 83 | 0.404309 |
145f4459236ab38a0c99ebbc4c417a8c695a5243 | 877 | package easy;
import java.util.Scanner;
public class FirstUniqueCharacterInAString {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
String line = s.nextLine();
System.out.println(firstUniqChar(line));
}
public static int firstUniqChar(String s) {
... | 29.233333 | 76 | 0.542759 |
f0f2bf20de39e20c32c84ccf77f951f3929c8ed3 | 270 | package com.indigo.mesosprobe.mesos.beans;
public class MesosClientRequest {
public enum RequestType{
GET_METRICS,
GET_MASTER
}
private RequestType type;
public MesosClientRequest(RequestType type) {
this.type = type;
}
}
| 16.875 | 49 | 0.666667 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.