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 |
|---|---|---|---|---|---|
ad215105eec2955cc6bce3f77688dacb94d27b61 | 2,527 | package automation.pages;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import java.util.concurrent.TimeUnit;
import static org.junit.Assert.*;
public class Codility... | 31.5875 | 174 | 0.634745 |
db8c86cc7e5a552889bd39e3b0f3f6a7675a4f4b | 4,189 | package examples;
import java.util.Arrays;
import java.util.List;
import com.groupdocs.cloud.parser.api.StorageApi;
import com.groupdocs.cloud.parser.api.TemplateApi;
import com.groupdocs.cloud.parser.model.CreateTemplateOptions;
import com.groupdocs.cloud.parser.model.DetectorParameters;
import com.groupdocs.cloud.p... | 37.070796 | 91 | 0.709 |
71d3c5913546a05d98241066633933d0b6b6f8ed | 6,363 | /*
* Copyright (c) 2017 Zhang Hai <Dreaming.in.Code.ZH@Gmail.com>
* All Rights Reserved.
*/
package me.zhanghai.android.douya.util;
import android.os.Bundle;
import android.os.Parcelable;
import android.util.Pair;
import com.google.gson.Gson;
import com.google.gson.TypeAdapter;
import com.google.gson.TypeAdapterF... | 37.875 | 95 | 0.467704 |
e5197f4f29049e28ae3e982bcb5f71fe5ba283ab | 191 | package com.github.vicianm.stickyviewpager.demo.validation;
import java.util.Collection;
public interface ValidationCallback {
void validated(Collection<ValidationResult> results);
}
| 19.1 | 59 | 0.811518 |
75e4e45d11c17de480c54db6d17d304ceb6816f4 | 1,506 | package com.backend.carrental.dto;
import com.backend.carrental.domain.Car;
import com.backend.carrental.domain.FileDB;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import java.util.HashSet;
import java.util.Set;
@Setter
@Getter
@NoArgsConstructor
public class CarDTO {
private Lo... | 22.818182 | 68 | 0.644754 |
a2d57a0841b384013dc24b5df6a6915c525bf7cc | 420 | package cn.dustlight.datacenter.elasticsearch;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
@Getter
@Setter
@ConfigurationProperties(prefix = "dustlight.datacenter.elasticsearch")
public class DatacenterElasticsearchProperties {
private S... | 28 | 75 | 0.821429 |
afad55b4ae7a89abda1705abe73fed2bdd02f97f | 1,083 | package com.android_mvc.framework.ui.view;
import java.util.HashMap;
import android.content.Context;
import android.view.ViewGroup;
import android.widget.Button;
/**
* Buttonのラッパークラス。
* @author id:language_and_engineering
*
*/
public class MButton extends Button implements IFWView
{
publ... | 18.355932 | 75 | 0.614035 |
86ca894dfc601b17790eb1edc3a70c677dab9545 | 3,385 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/** * 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 license... | 18.396739 | 814 | 0.799705 |
f6f7efecd921fdca1828106be69ae1a5b149f0eb | 2,718 | package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 外部合作机构数据推送
*
* @author auto create
* @since 1.0, 2017-05-11 14:09:08
*/
public class MybankCreditLoanapplyDataUploadModel extends AlipayObject {
private static final long serialVersionUID =... | 22.46281 | 133 | 0.750552 |
a1936d78e7ed25d5fce6e1e04218bc270d29b067 | 6,097 | package no.uio.ifi.vizpub.peersim.pastry;
import java.math.BigInteger;
//__________________________________________________________________________________________________
/**
* Some utility and mathematical function to work with numbers and strings.
* <p>Title: MSPASTRY</p>
*
* <p>Description: MsPastry... | 31.921466 | 101 | 0.609316 |
6bfb4c462970a034a2ceac3ea1c09adc2ac9fd35 | 2,360 | package com.github.annasajkh;
import com.badlogic.gdx.ApplicationAdapter;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer;
import com.badlogic.gdx.math.MathUtils;
import java.util.ArrayList;
import java.... | 26.818182 | 118 | 0.583898 |
1cbf7955697b6a00277ddb53694ca2278dbc644a | 6,193 | /***********************************************************************
* Copyright (c) 2000-2004 The Apache Software Foundation. *
* All rights reserved. *
* ------------------------------------------------------------------- *
* Licensed under the Apache... | 36.005814 | 123 | 0.574843 |
db0ebff8ba4e698315cde9dd203c38759541cee5 | 5,397 | package org.adempiere.webui.apps.form;
import java.util.Vector;
import java.util.logging.Level;
import org.adempiere.webui.apps.AEnv;
import org.adempiere.webui.component.Checkbox;
import org.adempiere.webui.component.Grid;
import org.adempiere.webui.component.GridFactory;
import org.adempiere.webui.component.Label;
... | 27.395939 | 111 | 0.738373 |
4ffa9ef79d54efd2dbdc46a59d5cb3d76a3409cd | 615 | package com.flightbooking.ws.FlightBookingService.CancelBooking;
import java.sql.Connection;
import org.camunda.bpm.engine.delegate.DelegateExecution;
import org.camunda.bpm.engine.delegate.JavaDelegate;
import com.flightbooking.beans.Booking;
import com.flightbooking.conn.ConnectionUtils;
import com.flightbooking.u... | 29.285714 | 69 | 0.82439 |
aa0836fdae07fb8e4d8eee7ae1155bd572fbe460 | 10,928 | package com.tyutyutyu.oo4j.core.query;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.jdbc.core.namedparam.MapSqlParameterSource;
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
import java.util.Collection;
import java.util.HashMap;
impo... | 41.869732 | 159 | 0.559297 |
04411775f90827bd97db47f94c048d4e9ccea130 | 168 | package com.msc.node.distributednode;
public interface AbstractRequestHandler extends AbstractMessageHandler {
void sendRequest(MessageCreator channelMessage);
}
| 24 | 72 | 0.839286 |
2aa5a1f36a5c8e8974901b4107cc9ebe803dcac2 | 1,585 | package code;
/**
* @Author K
* @Description 面试题19. 正则表达式匹配
* @Mark 调试半天 bug一堆,真难,i j得分清,还有就是循环的次数要算准
* @Date 2022/2/4 14:31
* @EndTime 15.23
**/
public class JZ19 {
public boolean isMatch(String s, String p) {
char[] sArr = s.toCharArray();
char[] pArr = p.toCharArray();
boolean[][] ... | 33.723404 | 75 | 0.319243 |
9d9fbf90d38e46906851440ec612da54c11e6820 | 1,197 | package com.meti.feature.block.function;
import com.meti.feature.evaluate.process.Processable;
import com.meti.process.State;
import com.meti.feature.render.Field;
import com.meti.feature.render.Node;
import com.meti.stack.CallStack;
import java.util.List;
import java.util.Optional;
import java.util.stream.Collectors... | 29.925 | 83 | 0.730159 |
f31edf8019d2505fc1b310c76ca7515de4265192 | 625 | package p000_Lab_RPG.models;
import p000_Lab_RPG.enums.LogType;
import p000_Lab_RPG.interfaces.Handler;
import p000_Lab_RPG.interfaces.observer.ObservableTarget;
public class Warrior extends AbstractHero {
private static final String ATTACK_MESSAGE = "%s damages %s for %s";
public Warrior(String id, int dmg... | 27.173913 | 97 | 0.736 |
726e2c322911f8a4631e370d37e4f8d2a1ce9f11 | 2,053 | package com.ankushgrover.problems;
import java.util.Stack;
/**
* Imagine you are building a compiler. Before running any code, the compiler must check that the parentheses in the
* program are balanced. Every opening bracket must have a corresponding closing bracket. We can approximate this using
* strings.
*
* ... | 27.743243 | 119 | 0.446663 |
33a080d583e080cf4084f57ca4c47a0a568e3212 | 402 | package com.kailang.bubblechat.ui.person;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;
import com.kailang.bubblechat.network.client.MsgDataSource;
public class PersonViewModel extends ViewModel {
private MsgDataSource msgDataSource;
pub... | 25.125 | 59 | 0.798507 |
773d6c41a4264bd23ddc0412323d95666a12104d | 2,916 | /*
* 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... | 54 | 361 | 0.766461 |
767ba08d7d7c19625fd1dc28e4bc99a4a8aba507 | 377 | package Messages;
public class NullMessage extends Message {
private final String error;
NullMessage(String error) {
super();
this.error = error;
}
@Override
public String toString() {
return "NullMessage: " + this.error;
}
@Override
public Message process(Me... | 17.136364 | 56 | 0.615385 |
a7fd09c6110494c3507fda66509393cf21d7a0f8 | 416 | package com.bootdo.common.controller;
import org.springframework.stereotype.Controller;
import com.bootdo.common.utils.ShiroUtils;
import com.bootdo.system.domain.SysUserDO;
@Controller
public class BaseController {
public SysUserDO getUser() {
return ShiroUtils.getUser();
}
public Long getUserId() {
return ... | 19.809524 | 49 | 0.759615 |
6415053c70d30872ea2e74a5441bbcabb14a58a4 | 1,424 | package com.minminaya.library.util;
import android.text.TextUtils;
import android.util.Log;
/**
* Description: 通用的Log管理
* 开发阶段LOGLEVEL = 6
* 发布阶段LOGLEVEL = -1
*/
public class Logger {
private static int LOGLEVEL = 6;
private static int VERBOSE = 1;
private static int DEBUG = 2;
private static in... | 22.25 | 59 | 0.550562 |
e14e1f0b6f1a786094df44b396de45e0ec818f62 | 1,663 | package com.app.tbd.ui.Model.Receive;
import java.util.ArrayList;
import java.util.List;
public class NewsletterLanguageReceive {
private String Status;
private String Message;
private List<NewsletterLanguage> CultureList = new ArrayList<NewsletterLanguage>();
public class NewsletterLanguage {
... | 21.320513 | 87 | 0.622369 |
5eba042d0c328232f75dbdec05596fe2558bbdb8 | 1,657 | package com.omisoft.vitafu.utils.plugins.akkaGuice;
import static com.omisoft.vitafu.utils.plugins.akkaGuice.GuiceExtension.GuiceProvider;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import play.libs.Akka;
import akka.actor.Actor;
import akka.actor.Props;
/**
* Created by bkoprinski on 15-1... | 29.589286 | 103 | 0.67411 |
b64ef97a63c6cbd60e6267e4528413680e8ef7ee | 2,072 | /*
* Copyright (C) 2017 Dremio Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | 32.375 | 88 | 0.732143 |
402366af85258b6ce173bdf90a6f79df0cc43e0d | 594 | package ca.carsonbrown.android.runon;
import android.app.backup.BackupAgentHelper;
import android.app.backup.SharedPreferencesBackupHelper;
/**
* Created by carson on 2013-08-24.
*/
public class BackupAgent extends BackupAgentHelper {
static final String PREFS_DEFAULT = "ca.carsonbrown.android.runon_preference... | 28.285714 | 102 | 0.767677 |
c913932fb9d66ce986f50aa1b33f8ac453f5a138 | 8,860 | package nam.model.util;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import nam.model.Operation;
import nam.model.Parameter;
import org.apache.commons.lang.StringEscapeUtils;
import org.apache.com... | 31.642857 | 121 | 0.72912 |
f7bdc2f75f3ac628a072aeee0bdb6bd779edc02e | 1,856 | package com.example.scsidecar.grayrelease.config;
import com.example.scsidecar.grayrelease.loadbalance.RequestHolder;
import feign.RequestInterceptor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
import org.springframework.boot.autoconfigure.condition.Conditional... | 40.347826 | 98 | 0.702586 |
0ab2254d6a034b5086142dae3dc997f525160dc9 | 821 | package com.jvms.i18neditor.editor.menu;
import java.awt.Toolkit;
import java.awt.event.KeyEvent;
import javax.swing.JMenuItem;
import javax.swing.KeyStroke;
import com.jvms.i18neditor.editor.Editor;
import com.jvms.i18neditor.util.MessageBundle;
/**
* This class represents a menu item for renaming a translation k... | 31.576923 | 116 | 0.784409 |
d53af0a3b5ae6cfc25ddfc6b2560e2aca054fc38 | 11,823 | /*******************************************************************************
* Copyright (c) 2004 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is availabl... | 63.908108 | 124 | 0.782458 |
89103ecd9bf3c4556c59aac39a0852c92eea665c | 1,916 | package com.wxq.apsv.worker;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.Timer;
/**
* 保存各个抓取任务的定时器
*/
public final class ApsvTimerManager {
private static Map<String, Timer> timerMap = new HashMap<>();
public static void AddTimer(Timer timer, int taskId) {
... | 31.409836 | 97 | 0.557933 |
0f6a4ff482b3317139d1265b2db790717975f196 | 169 | public static boolean isSorted(int[] a) {
for(int i = 1; i < a.length; i++) {
if(a[i] < a[i - 1]) return false;
}
return true;
}
| 24.142857 | 45 | 0.449704 |
6ca8fe21c163d6f77607215097e1d2e720688f67 | 1,416 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package singletonPattern;
/**
*
* @author Steve
*/
public class Singleton {
// volatile ensure multiple threa... | 28.897959 | 80 | 0.587571 |
86c9f938d214b29f63ea7f3c85a088a74fe76081 | 15,742 | package com.example.rajan.coinprice;
import android.app.ActivityManager;
import android.content.ContentValues;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.net.Conne... | 46.85119 | 230 | 0.662686 |
ee5c06254d2871bc7500fb91770f12f0be177a24 | 1,574 | /**
* Copyright © 2019 hebelala (hebelala@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... | 21.861111 | 75 | 0.729352 |
c607768ca45ca32d6351b1544ec5b63d67d6f578 | 5,539 | package com.suchgame.stackz.gl.scenegraph.interaction;
import java.util.Stack;
import android.view.MotionEvent;
import com.suchgame.stackz.gl.RenderConfig;
import com.suchgame.stackz.gl.math.Vector;
/**
* InteractionEvents are used and generated when some interaction on
* the GL surface happens.
*
* @author Ma... | 24.50885 | 93 | 0.709153 |
3320fe4728740a70eb3aa33a2945c22dc8a43a97 | 1,565 | package com.company.sampler.web.screens;
import com.company.sampler.entity.*;
import com.haulmont.cuba.gui.model.CollectionContainer;
import com.haulmont.cuba.gui.screen.Screen;
import com.haulmont.cuba.gui.screen.Subscribe;
import com.haulmont.cuba.gui.screen.UiController;
import com.haulmont.cuba.gui.screen.UiDescri... | 34.777778 | 114 | 0.68115 |
cf315b6ed183bf433c717bfc8a694bf93c3600b0 | 3,293 | /*-
* #%L
* CosmosDB Persistence Testing
* %%
* Copyright (C) 2005 - 2021 Daniel Sagenschneider
* %%
* 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/li... | 31.361905 | 112 | 0.746128 |
fe1cebd8577f774aba197edaff7f25c272e1a580 | 1,352 | package org.devgateway.toolkit.forms.wicket.page.validator;
import org.apache.wicket.validation.IValidatable;
import org.apache.wicket.validation.IValidator;
import org.apache.wicket.validation.ValidationError;
import org.devgateway.toolkit.persistence.dao.FileMetadata;
import java.util.Set;
public class InputFileVa... | 35.578947 | 84 | 0.697485 |
e70ec087e4259ce35cd9f41af38592224e5e5120 | 1,293 | /*
* Created on Jan 3, 2005
*/
package com.fruits.netstle.aop.framework;
import com.fruits.netstle.aop.AroundAdvice;
/**
* @author TomHornson@hotmail.com
*/
public class AroundAdviceNode {
private AroundAdvice aroundAdvice;
private AroundAdviceNode nextNode;
public AroundAdviceNode() {
}
public AroundAdvic... | 20.854839 | 64 | 0.730085 |
d8ed675339162f213e37a8f97459e3776cf2e396 | 909 | package kr.msleague.mslibrary.customitem.impl.node;
import kr.msleague.mslibrary.customitem.api.ItemElement;
import kr.msleague.mslibrary.customitem.api.ItemNode;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
@RequiredArgsConstructor
public class MSLItemData implements kr.msleague.mslibrary.customitem.... | 27.545455 | 85 | 0.678768 |
edf00538c0c5834d1af1e2cb4fa9eb9d5c006421 | 2,688 | package ru.job4j.generic.container.array.simple;
import java.util.Iterator;
import java.util.NoSuchElementException;
/**
* Generic wrapper for container.
*/
public class SimpleArray<T> implements Iterable<T> {
/**
* Storing data.
*/
private Object[] data;
/**
* Current index position.
... | 21 | 64 | 0.508557 |
2371f2a6b2e6159d754c630315162eb22f2c95a2 | 1,187 | /*
* Copyright 2014, Armenak Grigoryan, and individual contributors as indicated
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public ... | 35.969697 | 84 | 0.764954 |
a568d4210081458a2754a950efca49126bb5f250 | 274 | package gov.nist.drmf.interpreter.common.cas;
import java.util.Collection;
/**
* @author Andre Greiner-Petter
*/
public class GenericCommandBuilder {
public static String makeListWithDelimiter(Collection<String> els) {
return String.join(", ", els);
}
}
| 21.076923 | 72 | 0.711679 |
8200b9c72ce0d4ce5040b030afa1622003a8cfbc | 1,113 | package org.pcsoft.plugins.intellij.iss.language.parser.psi.element;
import com.intellij.extapi.psi.PsiFileBase;
import com.intellij.openapi.fileTypes.FileType;
import com.intellij.psi.FileViewProvider;
import com.intellij.psi.util.PsiTreeUtil;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations... | 25.883721 | 69 | 0.727763 |
fb45b5dd325da59bba27880ead60f337ba10895f | 1,380 | package samebutdifferent.ecologics.data;
import com.google.common.collect.ImmutableList;
import com.mojang.datafixers.util.Pair;
import net.minecraft.data.DataGenerator;
import net.minecraft.data.loot.LootTableProvider;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.level.storage.loot.Loot... | 39.428571 | 218 | 0.805797 |
44429393b0c1a408cecad33338c0dd9489cf6067 | 3,958 | package com.obsidiandynamics.meteor;
import static org.junit.Assert.*;
import static org.junit.Assume.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.concurrent.atomic.*;
import java.util.stream.*;
import org.junit.*;
import com.hazelcast.config.*;
import com.hazelcast.core.*;
import com.haze... | 42.106383 | 130 | 0.660182 |
7e98304d8ab9bbe55d659875f7f0807327ed60a7 | 3,089 | package core;
import org.apache.commons.math3.stat.descriptive.SummaryStatistics;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
/**
* GroupStatistics computes statistics for multiple sets of data. It keeps track of values for multiple
* sets of values. The only thing requir... | 33.215054 | 109 | 0.64843 |
7bb43018047757cc4e5a81504a2871b77864d023 | 1,262 | /**
* Copyright © 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.thinkgem.jeesite.modules.library.service;
import java.util.List;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.... | 27.434783 | 108 | 0.770998 |
333a5c0e0f5076f747c9b0e52c96cbc2754cfd84 | 2,223 | package andexam.ver4_1.c21_actionbar;
import android.app.*;
import android.app.ActionBar.Tab;
import android.os.*;
import android.view.*;
import android.widget.*;
import andexam.ver4_1.*;
public class ActionTab extends Activity {
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInst... | 25.848837 | 81 | 0.692758 |
296b40cd16ba69ce4319457c889062cba3f14d72 | 9,812 | package com.smart.smarthome.activity;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.app.AlarmManager;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.PendingIntent;
import android.app.TimePickerDialog;
import android.content.Context;
... | 37.88417 | 113 | 0.618223 |
89b0c027fdcd24bef885817d975b4d3109fd6700 | 2,241 | /*
* Copyright 2017 Cycorp, 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 ... | 29.103896 | 102 | 0.719322 |
ce449a31343f710cac6e188fb88ccc086a44a51f | 1,553 | /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.datafactory.v2018_06_01;
import java.util.Collec... | 34.511111 | 98 | 0.750161 |
4d10d6463b92c4b5457ecb659d5f179dbcb01c36 | 503 | package com.example.deserialization.springdeserializationdemo.Models;
public class AdminUser extends User{
public AdminUser(String username, String avatarFileName) {
super(username, avatarFileName);
}
@Override
public String listStatistics(){
// Fetch all user statistics from Database
... | 31.4375 | 69 | 0.628231 |
e64ff1fa2d4e332a230694a7af872eeb22f15370 | 8,102 | /* The contents of this file are subject to the license and copyright terms
* detailed in the license directory at the root of the source tree (also
* available online at http://fedora-commons.org/license/).
*/
package org.fcrepo.server.utilities;
import java.io.IOException;
import java.io.InputStream;
import jav... | 36.995434 | 138 | 0.632807 |
8ea3e31b2b651343da840a3e1999e551704d4cdc | 1,619 | // -----------------------------------------------------------------------
// <copyright file="CustomerLicensesInsightsBase.java" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// -----------------------------------------------------------------------
package com... | 22.178082 | 106 | 0.572576 |
27c678a00f8d1c9804b2cc0969105e946cf00c31 | 2,370 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * 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... | 18.230769 | 813 | 0.789451 |
b8a39773f899b2126ed819372b83308315b7c16a | 11,586 | /*
Copyright 2012-2013, Polyvi Inc. (http://polyvi.github.io/openxface)
This program is distributed under the terms of the GNU General Public License.
This file is part of xFace.
xFace is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
th... | 27.850962 | 102 | 0.64086 |
2f1724a23bbf69acf855b91fa2f6453eebe4dda7 | 3,324 | package com.evil.devreminder.service.impl;
import com.evil.devreminder.domain.Word;
import com.evil.devreminder.service.DictionaryService;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.Require... | 43.168831 | 117 | 0.59657 |
11135084fcf2931bb569e4cbe6cc89fd94ff45f5 | 4,993 | /*
* Copyright 2017 LINE Corporation
*
* LINE Corporation licenses this file to you 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 re... | 37.541353 | 106 | 0.656719 |
397ee74fed7b4757277cf2c2eb0916c13cda79bd | 598 | package _02Blobs.core.commands;
import _02Blobs.core.BaseCommand;
import _02Blobs.interfaces.Blob;
public class AttackCommand extends BaseCommand {
@Override
public String execute() {
if (super.getRepository().findByName(super.getParams()[1]) != null &&
super.getRepository().findByName... | 29.9 | 83 | 0.647157 |
bc200ab0deb00a7671e1ab68af8dd4c264045736 | 997 | package ar.edu.itba.cep.api_gateway.security;
import org.springframework.security.authentication.AnonymousAuthenticationToken;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import java.util.List;
/**
* An extension of an {@link AnonymousAuthenticationToken}.
*/
public class AnonymousAc... | 24.925 | 84 | 0.685055 |
11cc6b2b33d222c803e706000ba2c0a5a18d9ca2 | 5,011 | package com.therandomlabs.randomportals;
import java.io.IOException;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import com.therandomlabs.randomlib.TRLUtils;
import com.therandomlabs.randomlib.config.ConfigManager;
import com.therandomlabs.randomportals.advancements.RPOCriteria... | 38.844961 | 92 | 0.796248 |
5e0dbb19e3f7c52347aa1ce8deb4a23066404ce7 | 1,211 | package LCTlang.CustomJava;
public class Value extends Throwable {
public static Value VOID = new Value(new Object());
final Object value;
public Value(Object value) {
this.value = value;
}
public Boolean asBoolean() {
return (Boolean)value;
}
public Double asDouble() {... | 19.222222 | 76 | 0.559042 |
8b49e488872b5023dfada5e0d8a8a12fb17d094f | 795 | package com.szyh.captcha.servlet;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.szyh.captcha.utils.CaptchaUtil;
/**
* 验证码servlet
*/
public class Captc... | 29.444444 | 119 | 0.792453 |
4d786fbf2ad231cfa9b319253c2498fd32b590e6 | 13,269 | /**
* This software is provided by NOAA for full, free and open release. It is
* understood by the recipient/user that NOAA assumes no liability for any
* errors contained in the code. Although this software is released without
* conditions or restrictions in its use, it is expected that appropriate
* credit be ... | 35.862162 | 185 | 0.593564 |
f4df008fa0e78f043909bfc6585785de165512f3 | 4,298 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.management.graphrbac;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.ann... | 33.061538 | 120 | 0.679153 |
f19801cfe4e9558cb28b4cffe21632eed23bdf92 | 3,809 | package com.example.hansheng.simplecard.widget;
import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import com.example.hansheng.simplecard.utils.Press;
import java.util.HashMap;
/**
* Created by hansheng... | 25.911565 | 99 | 0.599895 |
f8bcef323af0acc1b5b2f1af76e3dbee9b64f359 | 3,080 | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.vod20170321.models;
import com.aliyun.tea.*;
public class GetCategoriesResponse extends TeaModel {
@NameInMap("RequestId")
@Validation(required = true)
public String requestId;
@NameInMap("SubTotal")
@Validation(required = ... | 30.49505 | 119 | 0.668506 |
03de72d9e3f4084d92792867c07db23fd3661a8a | 8,138 | /*
* 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 ... | 39.31401 | 100 | 0.746867 |
216ec8c7cc2bf16c883ad549cad19a0b1dac6305 | 12,144 | /**
* Copyright (c) 2011 Martin M Reed
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 33 | 146 | 0.641057 |
c5927fb4b6a4c8779cd7ab6e19d2ee63735271eb | 3,454 | package madgik.exareme.master.engine.iterations.scheduler;
import madgik.exareme.master.engine.iterations.scheduler.events.algorithmCompletion.AlgorithmCompletionEventHandler;
import madgik.exareme.master.engine.iterations.scheduler.events.newAlgorithm.NewAlgorithmEventHandler;
import madgik.exareme.master.engine.iter... | 45.447368 | 116 | 0.750724 |
1aa7731355a21d1e03bcddfd6ea28ad4ecef0763 | 1,361 | /*
* Copyright (c) 2008-2016, GigaSpaces Technologies, 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
*
* Un... | 31.651163 | 96 | 0.720059 |
4c72301810fbb9b37f08b13ddc71730267814695 | 475 | package com.ywh.im.common.protocol.request;
import com.ywh.im.common.protocol.BasePacket;
import com.ywh.im.common.constant.Constant;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 查看群组成员请求协议包
*
* @author ywh
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class ListGroupMembersRequestPacket exte... | 19 | 63 | 0.749474 |
6496b40d2a8fc565dd982e98bae905a19e8af497 | 2,645 | package com.tiny.demo.firstlinecode.stetho.httphelper;
import com.facebook.stetho.okhttp3.StethoInterceptor;
import java.io.IOException;
import okhttp3.Interceptor;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;
/**
* Created by tiny on 17/2/22.
*/
public class OkHttpClientUtils {... | 30.056818 | 112 | 0.561437 |
874e6c8bcc4c80401b2c834d5ed9cbe84dab6659 | 1,757 | package io.growing.gateway.grpc;
import com.github.benmanes.caffeine.cache.CacheLoader;
import com.github.benmanes.caffeine.cache.Caffeine;
import com.github.benmanes.caffeine.cache.LoadingCache;
import io.growing.gateway.grpc.finder.TaggedChannel;
import io.growing.gateway.meta.ServerNode;
import io.growing.gateway.m... | 35.857143 | 103 | 0.697211 |
b54716b6809ad688db48004c83097d7864038b1b | 1,809 | /**
* TLS-Attacker - A Modular Penetration Testing Framework for TLS
*
* Copyright 2014-2021 Ruhr University Bochum, Paderborn University, Hackmanit GmbH
*
* Licensed under Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0.txt
*/
package de.rub.nds.tlsattacker.core.workflow.task;
import ... | 26.602941 | 83 | 0.681039 |
b677247a9ac51259162cef61bcaab65eb2f6647c | 506 | package com.zmlcoder.rpcx.events;
import java.util.HashMap;
import java.util.Map;
public class RpcxEvent {
private String type = "";
private Map<String, Object> params = new HashMap<>();
public RpcxEvent(String eventType) {
type = eventType;
}
public String getType() {
return type;
}
public void setType... | 16.322581 | 54 | 0.6917 |
de1028b0e839faf0c0b27258530753fa594c4a6f | 2,051 | /*
* Copyright (c) 2016. Matsuda, Akihit (akihito104)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 33.080645 | 95 | 0.734276 |
b7f95a16fdbe77608370b15b960260205141b4f7 | 2,378 | package com.uddernetworks.mspaint.code.languages.java;
import com.uddernetworks.code.lexer.java.Java9Lexer;
import com.uddernetworks.code.lexer.java.Java9Parser;
import com.uddernetworks.mspaint.code.languages.HighlightData;
import com.uddernetworks.mspaint.code.languages.Language;
import org.antlr.v4.runtime.CharStre... | 58 | 805 | 0.526913 |
f14282ecac7f97d91fb2183998127c18d410e832 | 18,152 | package client.controllers;
import client.HandleInput;
import client.Main;
import client.data.GroupAndChannel;
import client.data.User;
import com.jfoenix.controls.*;
import javafx.application.Platform;
import javafx.concurrent.Task;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.control.... | 39.036559 | 135 | 0.452292 |
7d60b634ed3a016822239ef77d28c1236866308c | 464 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package cn.com.fmsh.tsm.business.constants;
// Referenced classes of package cn.com.fmsh.tsm.business.constants:
// Constants
public static interface ... | 25.777778 | 68 | 0.75431 |
c24340f19c4fe1483533a95feffe5dd957cfecd0 | 2,464 | /*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 37.907692 | 98 | 0.702922 |
9d303dccb75b86208c48cb7c80bffef9b88d273e | 6,220 | package com.jaiwo99.cards.rest.api;
import com.jaiwo99.cards.AbstractControllerTest;
import com.jaiwo99.cards.domain.CardDeal;
import com.jaiwo99.cards.domain.Jiang;
import com.jaiwo99.cards.repository.CardDealRepository;
import com.jaiwo99.cards.repository.JiangRepository;
import com.jaiwo99.cards.util.EntityGenerato... | 39.871795 | 171 | 0.732476 |
9556922077ce1bd87336125226e0cdb04de693cf | 2,202 | package com.rms.reservationservice.service;
import com.rms.reservationservice.entity.ReservationEntity;
import com.rms.reservationservice.model.Reservation;
import com.rms.reservationservice.repository.ReservationRepository;
import org.springframework.stereotype.Service;
import static com.rms.reservationservice.utils... | 37.965517 | 101 | 0.743869 |
41d007c6ca2f6f539c4221ff638dc8466221c2bb | 5,196 | package org.infinispan.api;
import javax.transaction.TransactionManager;
import org.infinispan.Cache;
import org.infinispan.configuration.cache.CacheMode;
import org.infinispan.configuration.cache.ConfigurationBuilder;
import org.infinispan.context.Flag;
import org.infinispan.distribution.MagicKey;
import org.infinis... | 45.182609 | 112 | 0.72883 |
b2422ed9df2bf9f6b68437a72d2548a2aa658f18 | 152 | public class Main {
public static void main(String[] args) {
System.out.println("main starts");
C c = new C(1);
System.out.println("yeah~");
}
} | 21.714286 | 41 | 0.644737 |
57dc261b1d719176454dd68ba40a63299c4a6619 | 8,057 | package android.support.transition;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.support.p000v4.view.C0646w;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import androi... | 34.579399 | 143 | 0.545613 |
69b1c7b77e18265b8a81c93426f74da1ebd9a475 | 4,686 | package com.baidubce.services.bos.demo;
import com.baidubce.auth.DefaultBceCredentials;
import com.baidubce.services.bos.BosClient;
import com.baidubce.services.bos.BosClientConfiguration;
import com.baidubce.services.bos.model.*;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import jav... | 44.207547 | 149 | 0.681605 |
be68c211d9a418ea55b017a449991ea41b03c1d3 | 873 | package ExampleWithClient;
import com.xendit.exception.XenditException;
import com.xendit.model.FixedVirtualAccountPayment;
import com.xendit.XenditClient;
public class ExampleGetVAPayment {
public static void main(String[] args) {
//create xendit client which holds value of apikey
XenditClient xe... | 31.178571 | 132 | 0.658648 |
3d42a23a27819c98e04b14893637fa5351f3d9f8 | 3,329 | /*
* Copyright 2021 DataStax, 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 i... | 36.582418 | 111 | 0.626615 |
9e2d189860021a8e66639c8377d09b37f0aacfa8 | 7,767 | /*
* Copyright 2019 Red Hat, Inc, and individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 36.810427 | 114 | 0.68894 |
0eeefc56c0a90ed3c12e8bbfa8069655dbad322b | 52,964 | package com.jd.blockchain.tools.cli;
import com.jd.binaryproto.BinaryProtocol;
import com.jd.blockchain.ca.CertificateRole;
import com.jd.blockchain.ca.CertificateUtils;
import com.jd.blockchain.crypto.*;
import com.jd.blockchain.ledger.*;
import com.jd.blockchain.sdk.client.GatewayBlockchainServiceProxy;
import com.j... | 42.068308 | 191 | 0.610754 |
88974ff230ab0f4f2e532796622ebe34bfd04c68 | 144 | package validation.leaf.is.of.format.url;
final public class Code
{
public String value()
{
return "url-wrong-format";
}
}
| 14.4 | 41 | 0.631944 |
e0d1de633a31005998973accfb83ac84ed84ff7c | 912 | package com.aj.leetcode.q38;
/**
* @author zhangqingyue
* @date 2020/11/4
*/
public class Solution {
/**
* @param n
* @return
*/
public String countAndSay(int n) {
if (n <= 0) {
return "";
}
String[] seq = new String[n];
seq[0] = "1";
for (i... | 21.714286 | 77 | 0.417763 |
83a1b7ac11b445623273ef7bc523e5c828b3b079 | 5,248 | package br.com.jpo.dao.impl;
import java.math.BigDecimal;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import br.com.jpo.bean.DynamicBean;
import br.com.jpo.connection.impl.JdbcWrapper;
import br.com.jpo.dao.EntityDAO;
import br.com.jpo.dao.KeyGenerateEvent;
import br.com.jpo.dao.KeyGenerat... | 35.459459 | 136 | 0.745998 |
aa4cc04e48e21e08d3fd4315889c12c9a156bc51 | 631 | package org.endeavourhealth.imapi.workflow.repository;
import org.endeavourhealth.imapi.workflow.domain.FileUpload;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
@Component
public class FileUploadRepository {
private static final Logger LOG = LoggerFacto... | 27.434783 | 90 | 0.721078 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.