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 |
|---|---|---|---|---|---|
b7a25f7c6b3c67525a2b08d3cdf34f18f4349991 | 6,447 | package com.fun.project.app.user.controller;
import java.util.List;
import com.fun.common.constant.Constants;
import com.fun.common.pagehelper.CommonPage;
import com.fun.common.utils.poi.ExcelUtil;
import com.fun.project.app.user.entity.AppUser;
import com.fun.project.app.user.service.IAppUserRoleService;
import com... | 32.396985 | 86 | 0.701567 |
f885d075c3e7659f2981d917a194622566e9595c | 981 | package it.av.youeat.web.components;
import javax.management.RuntimeErrorException;
import org.apache.wicket.markup.html.WebMarkupContainer;
import org.apache.wicket.model.IModel;
/**
* A WebMarkupContainer that has transparent resolving.
* <p>
* With this container one can add behavior to a specific HTML element... | 27.25 | 71 | 0.720693 |
de2be3b3ca0b3135737aeeb5dff1622f745239e8 | 11,499 | package net.sunniwell.georgeconversion.recyclerview;
import android.animation.ObjectAnimator;
import android.content.Context;
import android.graphics.Color;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.util.SparseArray;
import android.view.LayoutInflater;
import android.view.M... | 35.381538 | 132 | 0.573702 |
427c0454c978a1faa3feeffd8576a2b73ddf8eb8 | 3,131 | /*
* 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 ... | 42.890411 | 122 | 0.758224 |
f0d5aad40402eb0c8d6cb10bf9a7c21f79fbc727 | 88 | package l2f.gameserver.model.base;
public enum ClassType
{
Fighter,
Mystic,
Priest
} | 11 | 34 | 0.761364 |
401547aa9563442cb03c8c7a397369d469d37588 | 2,398 | package com.github.o5h.skynet.ur.rtde;
import java.io.*;
public class RTDEInputStream implements Closeable {
private final DataInputStream is;
public RTDEInputStream(InputStream is) {
this.is = new DataInputStream(is);
}
public int available() throws IOException {
retur... | 25.242105 | 61 | 0.54754 |
020fd6aba759536b3579cce6360b1c6b23c431a1 | 671 | package org.qcri.rheem.flink.compiler;
import org.apache.flink.api.common.functions.CoGroupFunction;
import org.apache.flink.util.Collector;
import org.qcri.rheem.basic.data.Tuple2;
/**
* Wrapper of {@Link CoGroupFunction} of Flink for use in Rheem
*/
public class FlinkCoGroupFunction<InputType0, InputType1, Output... | 37.277778 | 138 | 0.780924 |
1a8f75a65cf0433e007f91bbcc5a6a0d0c35fe19 | 579 | package com.tripletres.scrapperapp.data.datasource.remote;
import io.realm.RealmObject;
/**
* Created by Daniel on 20/07/2017.
*/
public class Embedded extends RealmObject {
public int width;
public String author_name;
public String author_url;
public String version;
public String provider_url;... | 23.16 | 58 | 0.73057 |
573b0c724f6be6bdc588f7bc68d1f8949309b4e7 | 3,352 | /*-
* ===============LICENSE_START=======================================================
* Acumos
* ===================================================================================
* Copyright (C) 2017 AT&T Intellectual Property & Tech Mahindra. All rights reserved.
* ==========================================... | 21.350318 | 102 | 0.584129 |
f8292276d3c474b349f15fa8217ec13794203458 | 2,104 | /*
* Copyright 2016 Flavien Charlon
*
* 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... | 32.875 | 109 | 0.67443 |
a98f79cb5369a5239e2ac2cbdb5fe0816945a656 | 9,953 | /*
* Copyright (C) 2017 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 app... | 35.294326 | 100 | 0.689139 |
746e3d0196a855af3ceee022149ef45a21b19ca5 | 601 | package com.nepxion.swing.style.button.flat;
/**
* <p>Title: Nepxion Swing</p>
* <p>Description: Nepxion Swing Repository</p>
* <p>Copyright: Copyright (c) 2010</p>
* <p>Company: Nepxion</p>
* @author Neptune
* @email 1394997@qq.com
* @version 1.0
*/
import java.awt.Color;
import com.nepxion.swing.style.butt... | 19.387097 | 51 | 0.687188 |
4b52ccc63f6d695de86a426954e5baa03a1e179d | 8,151 | /*
* Copyright 2020, Perfect Sense, 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 a... | 31.839844 | 133 | 0.665317 |
c19334cd4e1f149d663bfe0dd73df877c00401b1 | 1,889 | package com.fullstack.week.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annot... | 31.483333 | 73 | 0.814717 |
8840a37f9195d5f6b7eed1d311e7bcc0cb49acab | 3,391 | package com.lambdaschool.secretrecipe.controllers;
import com.lambdaschool.secretrecipe.models.Recipe;
import com.lambdaschool.secretrecipe.models.RecipeMinimal;
import com.lambdaschool.secretrecipe.models.User;
import com.lambdaschool.secretrecipe.repository.UserRepository;
import com.lambdaschool.secretrecipe.servic... | 37.677778 | 156 | 0.712769 |
926a7dc4d95743bd4667f83e9023f0439db61cac | 2,452 | /*
* Copyright 2018 The GraphicsFuzz Project 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 applic... | 25.541667 | 80 | 0.666395 |
2b1d2669ffec5aab46f99a32f12e116c7033f6c5 | 2,155 | package org.commcare.cases.query.queryset;
import org.javarosa.core.model.instance.TreeReference;
import org.javarosa.xpath.expr.XPathExpression;
/**
* A ModelQuerySetMatcher identifies from a provided XPathExpression or TreeReference that the
* expression/reference pattern is referring to a semantic concept that c... | 37.807018 | 98 | 0.733179 |
2f58f16ee5103c3048312fb14e3bd933c5beb336 | 3,812 | /*
* Copyright 2019 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 applica... | 47.061728 | 199 | 0.786988 |
3d5297b3dad4ba8d181e3098bbbf2dcc98a8f1be | 2,126 | package pt.ist.socialsoftware.edition.ldod.controller.api.microfrontend.dto;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
import pt.ist.socialsoftware.edition.ldod.domain.ExpertEdition;
import pt.ist.socialsoftware.edition.ldod.domain.LdoDUser;
import pt.ist.socialsoftware.edition.... | 36.655172 | 139 | 0.816557 |
cdd0784d74ce7715c318426ae1a26a34c6b9ce9b | 11,291 | package io.ucandoit.nobot.service;
import io.ucandoit.nobot.dto.CardInfo;
import io.ucandoit.nobot.http.HttpClient;
import io.ucandoit.nobot.model.Card;
import io.ucandoit.nobot.repository.AccountRepository;
import io.ucandoit.nobot.repository.CardRepository;
import io.ucandoit.nobot.util.HttpUtils;
import io.... | 43.09542 | 101 | 0.564609 |
b38c2ab173e86078a5a35c5597a0b4157843bc2f | 53,184 | /*
* Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 65.903346 | 116 | 0.53674 |
7e630c05409c7cc6e625040af977ab8120b113dc | 434 | package br.MagicToys.util;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class ConnectionFactory {
public static Connection getConnection() throws SQLException{
String url ="jdbc:mysql://localhost:3306/dbMagicToys";
String user="root";
String pass="";
Driver... | 24.111111 | 62 | 0.769585 |
2db1bb277ce1c5f5cdb65a4b88fec404ad84bc36 | 443 | package com.nao4j.subtrol.currencyrate.repository;
import com.nao4j.subtrol.currencyrate.document.CurrencyRates;
import org.springframework.data.mongodb.repository.MongoRepository;
import java.time.LocalDate;
import java.util.Optional;
public interface CurrencyRatesRepository extends MongoRepository<CurrencyRates, S... | 27.6875 | 89 | 0.835214 |
296661c8d3b184f190f50e95ab81b4daf52cd527 | 274 | package Kermen.models.items;
public class Device {
private double electricityCost;
public Device(double electricityCost) {
this.electricityCost = electricityCost;
}
public double getElectricityCost() {
return this.electricityCost;
}
}
| 19.571429 | 47 | 0.69708 |
25554ba0cc2f3acd7787725df299f9316f1147d5 | 4,914 | package org.uniprot.store.indexer.search.uniprot;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.collection.IsEmptyCollection.empty;
import static org.hamcrest.core.Is.is;
import static org.uniprot.store.indexer.search.uniprot.TestUtils.convertToUniProtEntry;
import java.io.IOExceptio... | 39.312 | 99 | 0.73606 |
69c2317321628de7710d6440c592641d21a376c8 | 969 | package com.cmic.GoAppiumTest.page.middlepage;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.support.PageFactory;
import com.cmic.GoAppiumTest.base.BaseAction;
import com.cmic.GoAppiumTest.base.BasePage;
import com.cmic.GoAppiumTest.helper.Tips;
import com.cmic.GoAppiumTest.page.SettingPage;
import... | 27.685714 | 89 | 0.79257 |
f7209c97cd515902e8cea66dee226717333207f0 | 561 | package yph.hprofanalysis;
import com.squareup.leakcanary.HeapAnalyzer;
public class Main {
public static void main(String[] args) {
if (args.length == 0)
System.err.println("Parameter error");
boolean findLeak = (args.length > 1 && args[1].equals("findLeak")) || (args.length > 2 && a... | 37.4 | 132 | 0.634581 |
37ebf5d50e2ce6d225c005a7a22613a1f8745e33 | 1,641 | package com.googlecode.blaisemath.graph;
/*
* #%L
* BlaiseGraphTheory
* --
* Copyright (C) 2009 - 2021 Elisha Peterson
* --
* 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
*
* ... | 32.82 | 119 | 0.715417 |
06dfa06d85e4ba7e7cd56c987bb8d15628b67045 | 1,101 | package dash.model.help;
import dash.ui.HelpCard;
/**
* Represents a HelpCommand in the help tab.
*/
public class HelpCommand {
private String header = "";
private String content = "";
/**
* Constructor for a HelpCommand object.
*
* @param header The command string.
* @param content... | 22.469388 | 63 | 0.587648 |
c9cec146d0bf442d7a80e576ed3a0406061242b1 | 7,062 | package com.hedera.services.bdd.suites.freeze;
import com.google.protobuf.ByteString;
import com.hedera.services.bdd.spec.HapiApiSpec;
import com.hedera.services.bdd.spec.transactions.TxnUtils;
import com.hedera.services.bdd.spec.utilops.UtilVerbs;
import com.hedera.services.bdd.suites.HapiApiSuite;
import com.hederah... | 31.110132 | 95 | 0.710847 |
8143184c045ea23df142fc543d7afe912af45e17 | 13,778 | package com.ruoyi.ruoyiforts.service.impl;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.ruoyiforts.domain.TokenApprovalProcesses;
import com.ruoyi.ruoyiforts.mapper.FortDetailedListMapper;
import com.ruoyi.ruoyiforts.service.FortD... | 48.858156 | 126 | 0.518726 |
f725582234dde6a1d9453da398f39301893297b8 | 2,187 | // 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 android.support.v7.media;
import java.util.ArrayList;
import java.util.List;
// Referenced classes of package android.support.v7.media:
// Medi... | 34.714286 | 132 | 0.566529 |
36363e0f3bbf102abcda6693aae45aad38251fc6 | 1,299 | package com.ysm0622.live;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.ExpandableListAdapter;
import android.widget.ExpandableListView;
import java.util.ArrayList;
public class MainActivity extends AppCompatActivity {
private static final String TAG = MainActi... | 36.083333 | 80 | 0.714396 |
a791194ee316f0b6e0debd133f9efd140d8c4806 | 2,519 | /*
* Copyright 2015 Lithium Technologies, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | 31.4875 | 100 | 0.78682 |
6d97a77bf8c48a6b1460f89e22661715edfd2d45 | 6,656 | package com.ita.edu.teachua.ui.pages.profile_page;
import com.ita.edu.teachua.ui.elements.custom_elements.Button;
import com.ita.edu.teachua.ui.elements.custom_elements.CheckBox;
import com.ita.edu.teachua.ui.elements.custom_elements.Input;
import com.ita.edu.teachua.ui.elements.custom_elements.Label;
import com.ita.... | 37.818182 | 112 | 0.736028 |
731d24581dd5a2d49f997c4ec9f9390fef049b10 | 430 | package cn.gjing.tools.excel.write.listener;
import cn.gjing.tools.excel.write.ExcelWriterContext;
/**
* Sheet lifecycle listener
*
* @author Gjing
**/
@FunctionalInterface
public interface ExcelWorkbookWriteListener extends ExcelWriteListener {
/**
* The data is written, but not flushed to an excel file... | 22.631579 | 72 | 0.725581 |
1e6d83b543145dd3e0d0309a09ab78b82021ef04 | 3,044 | package org.jabref.logic.integrity;
import java.util.Objects;
import java.util.Optional;
import java.util.function.Predicate;
import java.util.regex.Pattern;
import org.jabref.logic.l10n.Localization;
import org.jabref.model.database.BibDatabaseContext;
import org.jabref.model.strings.StringUtil;
import com.google.c... | 44.115942 | 120 | 0.677727 |
3268183bd38c903a20a32fbc4f60e57f7d9ca8b4 | 34,512 | /*
* Copyright (c) 2020 Oracle and/or its affiliates.
*
* 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... | 43.575758 | 115 | 0.601588 |
ea366612acd6d84dd6d273e865e9ffec1019dc65 | 423 | package de.bitnoise.sonferenz.web.component.state;
import de.bitnoise.sonferenz.web.app.KonferenzSession;
import de.bitnoise.sonferenz.web.component.navigation.VisibleChoice;
public class VisibleOnRights implements VisibleChoice
{
private String _rights;
public VisibleOnRights(String rights)
{
_rights = ri... | 20.142857 | 68 | 0.777778 |
76a1a7f63dca665e019193d0891d3ac4cd02f4f1 | 1,644 | import java.util.Arrays;
/**
* 基数排序(LSD 从低位开始)
*/
public class RadixSort {
/**
* 基数排序(LSD 从低位开始)
*
* 基数排序适用于:
* (1)数据范围较小,建议在小于1000
* (2)每个数值都要大于等于0
*
* ①. 取得数组中的最大数,并取得位数;
* ②. arr为原始数组,从最低位开始取每个位组成radix数组;
* ③. 对radix进行计数排序(利用计数排序适用于小范围数的特点);
* @param arr ... | 25.6875 | 67 | 0.448297 |
2121ef0fe93a4c0e09b3543d6de55ba1e47ce689 | 2,415 | package com.bitmovin.api.sdk.model;
import java.util.Objects;
import java.util.Arrays;
import com.bitmovin.api.sdk.model.EncodingStreamInputDetails;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import co... | 23.446602 | 82 | 0.67205 |
b886508d2a2956e7476ef29b3f80f294a22012e7 | 188 | package com.pahimar.ee3.api.exchange;
import java.util.List;
public final class RecipeRegistryProxy {
public static void addRecipe(Object recipeOutput, List<?> recipeInputList) {}
}
| 23.5 | 81 | 0.776596 |
d9cb78e6f53efa408c3b4e53560ebf8df81a0486 | 143 | public int find(int i) {
int ans = nodes[i];
if (ans < 0) {
return i;
} else {
return nodes[i] = find(ans);
}
} | 17.875 | 36 | 0.454545 |
8f3f0860e554ec81118a3583b95242efe1a1b1f7 | 873 | package io.github.nowind.uido;
import org.junit.Assert;
public class CapAssert extends Assert
{
public static void capAndLog()
{
UiContext.getBrowserEmulator().capture();
}
public static void fail(String message)
{
capAndLog();
Assert.fail(message);
}
public static void assertFalse(String... | 24.25 | 64 | 0.666667 |
22b275ae32257097385650ffb59c0001905eb3c8 | 25,246 | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.largeFilesEditor.search.searchResultsPanel;
import com.intellij.largeFilesEditor.GuiUtils;
import com.intellij.largeFilesEditor.Utils;
import com.intellij.la... | 35.112656 | 140 | 0.724788 |
114aba407d07d0df2239da10d3001f472a6e08c2 | 7,363 | /*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. Camunda licenses this file to you under the Apache License,
* Version 2.0; y... | 43.05848 | 167 | 0.768844 |
a41f3aaf55060ab36a375b6063895ca75ec5d417 | 4,235 | package com.example;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.actuate.health.Health;
import org.springfr... | 27.322581 | 76 | 0.797875 |
3c9fc79eb52356e11b64864abcb70052a8e0f4c0 | 182 | import java.util.Arrays;
public class KthLargestElementinanArray {
public int findKthLargest(int[] nums, int k) {
Arrays.sort(nums);
return nums[nums.length-k];
}
}
| 20.222222 | 47 | 0.692308 |
b01fa5bbe35dbaf53c793c10e5a4ee1ea76074df | 417 | package com.createchance.demo.model;
import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;
import java.util.List;
/**
* ${DESC}
*
* @author createchance
* @date 2018/8/19
*/
public class Template {
@SerializedName("scripts")
public List<String> scriptList;
public static Te... | 18.954545 | 57 | 0.697842 |
1209892223b818e2646fc40dc09dacf4808e611b | 3,082 |
package de.othr.blackcastle;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceException;
import javax.xml.ws.WebServiceFeature;
/**
* This c... | 32.442105 | 181 | 0.698572 |
9ffd729df0dc315e2088fa33beb42189b219ad3b | 1,046 | /* Partition of the QuickSort algortihm
* returns p such that p delimits 2 parts of the array:
* elements on the left side of p are stricly less than a[p]
* while elements on the right side of p are greater or equals
* to a[p]
*
* precondition: i<j and 0<=i,j<a.length
* postcondition:
* 0<=p<a.length and
*... | 22.255319 | 65 | 0.523901 |
a90f9a256b9b6abf3759927953cb2bc4b246b18e | 1,947 | /*
* Copyright (c) 2009-2010 David Grant
*
* 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 rights
* to use, copy, modify, merge, pu... | 40.5625 | 80 | 0.708783 |
cb335e8bb014fa87f2bbc15d8897aaff0447e37f | 801 | package com.sequenceiq.redbeams.controller.mapper;
import javax.ws.rs.core.Response.Status;
import org.springframework.stereotype.Component;
import com.sequenceiq.cloudbreak.auth.crn.CrnParseException;
import com.sequenceiq.cloudbreak.exception.mapper.BaseExceptionMapper;
@Component
public class CrnParseExceptionMa... | 28.607143 | 94 | 0.771536 |
1dfe27846805fa47043daec821fbfbcf2f1afc42 | 1,899 | package com.sakura.common.web.filter;
import com.sakura.common.web.wrapper.SQLInjectionHttpServletRequestWrapper;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
import javax.servlet... | 27.128571 | 129 | 0.694049 |
0d3001d1433c61f016cc74ceab144d1adfb155af | 205 | package hillbillies.part2.listener;
public class DefaultTerrainChangeListener implements TerrainChangeListener {
@Override
public void notifyTerrainChanged(int x, int y, int z) {
// do nothing
}
}
| 18.636364 | 76 | 0.780488 |
6e62eecb6e2003b5c8b0d15cc15d4e99cb58620b | 1,880 | /*
* Copyright 2017-present Open Networking Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | 27.647059 | 105 | 0.677128 |
8893059c29f895bb5fc22793919babe3b323bf7c | 1,131 | /*
* NativeStaticFieldMethodSignatureParserImpl.java
*
* Created on 18 de julio de 2005, 19:11
*
* To change this template, choose Tools | Options and locate the template under
* the Source Creation and Management node. Right-click the template and choose
* Open. You can then make changes to the template in the ... | 30.567568 | 100 | 0.768347 |
2d282a2e435db37f8a4639ea64008f7f89147dca | 1,688 | /**
* Copyright (C) Jerzy Błaszczyński, Marcin Szeląg
*
* 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... | 37.511111 | 133 | 0.752962 |
309f0565b2d5a18b5641dea91983891ee7337847 | 5,270 | /*
* Copyright (c) 2018, enoa (fewensa@enoa.io)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | 34.220779 | 118 | 0.671537 |
2b698d43a7fd01b084f403a857e21dc3519a8aa9 | 876 | package dev.alexengrig.myjdi.event;
import com.sun.jdi.Method;
import com.sun.jdi.Value;
import com.sun.jdi.event.MethodExitEvent;
import dev.alexengrig.myjdi.handle.YouthEventHandler;
public interface YouthMethodExitEvent extends YouthEvent, MethodExitEvent {
static YouthMethodExitEvent delegate(MethodExitEvent ... | 25.764706 | 75 | 0.670091 |
d956adb4502940b810b4c8b7b3a261dda92b4d62 | 1,114 | class Solution {
public String XXX(String s) {
if ( s == null || s.equals("") || s.length() == 1)
return s;
int n = s.length(),start=0,len=1;
boolean[][] isPalindromic = new boolean[n][n];
for ( int i = 0; i < n; i++ )
isPalindromic[i][i]=true;
for ( int i ... | 29.315789 | 139 | 0.395871 |
e9a564011296872a90cb8b7a841f0e3d98396156 | 2,799 | /*
* File name: MultiDimensionalArray.java
*
* Programmer : Jake Botka
*
* Date: Sep 4, 2020
*
*/
package main.org.botka.utility.api.data.structures.arrays;
import java.util.Vector;
import org.eclipse.jdt.annotation.NonNull;
/**
* <insert class description here>
*
* @author Jake Botka
*
*/
public class ... | 22.214286 | 110 | 0.634155 |
e04519c5243d5f9e558e99b048ae702db8fef920 | 2,863 | /*
* JasperReports - Free Java Reporting Library.
* Copyright (C) 2001 - 2019 TIBCO Software Inc. All rights reserved.
* http://www.jaspersoft.com
*
* Unless you have purchased a commercial license agreement from Jaspersoft,
* the following license terms apply:
*
* This program is part of JasperReports.
*
* J... | 31.811111 | 137 | 0.736291 |
90f098a1db8eb281225c084d0b1edb6d3586e876 | 972 | package com.yourtion.leetcode.medium.c0016;
import com.yourtion.leetcode.TestUtils;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.MethodSo... | 32.4 | 81 | 0.717078 |
506d59c34d7518c2246404b63647a7ac92894dd9 | 14,676 | package com.perchlive.broadcast.sdk.av;
import android.content.Context;
import android.support.annotation.NonNull;
import com.amazonaws.services.s3.model.ObjectMetadata;
import com.perchlive.broadcast.sdk.FileUtils;
import com.perchlive.broadcast.sdk.api.BroadcastApiClient;
import com.perchlive.broadcast.sdk.api.mode... | 39.031915 | 150 | 0.598733 |
db0c514787d71bf6b7611335cecd9959bb97a527 | 586 | package sa.com.ruhtlc.cloud.jira.forecasting.webworks.debugger;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.atlassian.jira.web.action.JiraWebActionSupport;
public class DebuggerAction extends JiraWebActionSupport
{
private static final Logger log = LoggerFactory.getLogger(DebuggerAction.cl... | 24.416667 | 84 | 0.716724 |
5a130b5a0e2cb78d162b87e75d63960de5d2c43e | 1,289 | package us.ihmc.atlas;
import org.junit.jupiter.api.Test;
import us.ihmc.avatar.drcRobot.DRCRobotModel;
import us.ihmc.avatar.drcRobot.RobotTarget;
import us.ihmc.avatar.obstacleCourseTests.DRCInverseDynamicsCalculatorTest;
import us.ihmc.simulationConstructionSetTools.bambooTools.BambooTools;
import us.ihmc.simulati... | 31.439024 | 135 | 0.81924 |
9be6515d8087f6dffda6d9c02da0dd8055d0beaa | 2,634 | package com.ikub.intern.forum.Quora.controller;
import com.ikub.intern.forum.Quora.dto.user.UserDto;
import com.ikub.intern.forum.Quora.dto.user.UserGroup;
import com.ikub.intern.forum.Quora.security.oauth.CustomOauth2User;
import com.ikub.intern.forum.Quora.service.UserService;
import com.ikub.intern.forum.Quora.util... | 43.180328 | 99 | 0.702733 |
3be663180959f231108b62917e2b57f3947c300a | 1,588 | package net.andreaskluth.elefantenstark.work;
import static java.util.Objects.requireNonNull;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
/** Provides a facility to store context data for a {@link WorkItem}. */
public class WorkItemDataMap {
private stat... | 23.352941 | 95 | 0.65932 |
8133706cb08d6694f186d93900980287416b0aa4 | 2,959 | /*
* The MIT License
*
* Copyright (c) 2009-2021 PrimeTek
*
* 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 rights
* to use, copy... | 29.009804 | 102 | 0.674214 |
7efa031e98cbd4d3a9fd03beedbcffc94adb20df | 3,618 | package com.clarkparsia.pellet.datatypes;
import static java.lang.String.format;
import java.util.logging.Logger;
import edu.javax.xml.bind.DatatypeConverter;
import org.mindswap.pellet.utils.ATermUtils;
import org.mindswap.pellet.utils.Namespaces;
import aterm.ATermAppl;
import com.clarkparsia.pellet.datatypes.e... | 25.659574 | 96 | 0.719458 |
9cf60dc7a26bf2e6e532be14e56bcf0301929ee4 | 352 | package in.workarounds.samples.bundler;
import org.parceler.Parcel;
import org.parceler.ParcelConstructor;
/**
* A demo object that uses @Parcel annotation from Parceler library to serialize as a Parcelable
*/
@Parcel
public class Author {
String name;
@ParcelConstructor
public Author(String name) {
... | 19.555556 | 96 | 0.71875 |
6ba89eca4cbb7b905ae4570a16b7eaa73390082b | 12,161 | /*******************************************************************************
* Copyright (c) 1998, 2015 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
... | 35.55848 | 87 | 0.659156 |
15b9b7524ec3903b3f6c2221f59f8d67b967e303 | 920 | package org.insightech.er.editor.controller.editpart.outline.trigger;
import java.util.List;
import org.insightech.er.ERDiagramActivator;
import org.insightech.er.ImageKey;
import org.insightech.er.ResourceString;
import org.insightech.er.editor.controller.editpart.outline.AbstractOutlineEditPart;
import org.insighte... | 27.058824 | 86 | 0.776087 |
7c76f6431bda3940db39b1731c6b9486ebcb3636 | 392 | package oo.naming;
import java.util.List;
public interface IBookManager {
List<BookData> selectBook(String id);
/**
* @return all books written by the specified author
*/
List<BookData> selectBooksBy(long authorId);
/**
* @param id Author ID
*/
void insertNewBook(long id, Bo... | 17.818182 | 56 | 0.660714 |
8d5aef2715e22bd5c678e9a4573ba657eddc589e | 1,352 | /*
* Copyright 2020, Yahoo Inc.
* Licensed under the Apache License, Version 2.0
* See LICENSE file in project root for terms.
*/
package com.yahoo.elide.datastores.aggregation.queryengines.sql.query;
import com.yahoo.elide.datastores.aggregation.query.ColumnProjection;
import com.yahoo.elide.datastores.aggregati... | 28.765957 | 90 | 0.727811 |
f40a8fdd00f61dee9825eb4f86b799a9d78e6c3a | 19,427 | /*
* Copyright 2017 James F. Bowring and CIRDLES.org.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | 40.388773 | 145 | 0.643023 |
8830c0eab43897244659c9a87d47ec9a02fb6efb | 1,638 | /*
* 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 ... | 34.125 | 93 | 0.727717 |
00d06199ae97c4ebc6b11cdf7327c58b1d47da8d | 3,419 | /**
* Copyright (c) 2017 Dell Inc., or its subsidiaries. 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
*/
pa... | 34.535354 | 106 | 0.64668 |
11fc4f62a53b7d39c03a7b566f8df7045c2dfd04 | 22,842 | package pb.ajneb97;
import java.util.ArrayList;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.entity.Player;
import ... | 51.100671 | 185 | 0.666535 |
1a38f6bc9f1e1851d20693195d5b76130d7d1b6e | 4,345 | /**
* 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... | 42.184466 | 142 | 0.704028 |
543fbb1e132636fd885880b47b9ee08898781c27 | 879 | package io.github.talelin.latticy.model;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
/**
* @author pedro@TaleL... | 22.538462 | 71 | 0.682594 |
2b7ee11589c45e7480e0877aa71dc5f97601990d | 15,872 | package com.structurizr.io.plantuml;
import com.structurizr.Workspace;
import com.structurizr.model.*;
import com.structurizr.util.StringUtils;
import com.structurizr.view.*;
import java.io.IOException;
import java.io.StringWriter;
import java.io.Writer;
import java.net.URI;
import java.util.*;
import static java.la... | 36.487356 | 195 | 0.605343 |
ee058c84569d4129278d7a03c3c0da748795d7b3 | 5,040 | package com.haoniu.zzx.app_ts.activity;
import android.content.Context;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.text.Editable;
import android.text.TextWatcher;
import a... | 33.825503 | 103 | 0.631548 |
0c4bc1901f4de93b19d56a9510a117d2634c1261 | 1,714 | /*
* 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.809524 | 117 | 0.745041 |
925b3227471c4c9569be70ec04be6692b807f8d7 | 687 | // Copyright (c) 2018, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package com.debughelper.tools.r8;
import com.debughelper.tools.r8.DataEntryResource;
import com.debughelpe... | 31.227273 | 77 | 0.793304 |
b4b1a6292f134f97cf821a61f26bcd800c3c85fc | 278 | package io.tvcalendar.repository;
import io.tvcalendar.domain.Serie;
import org.springframework.data.jpa.repository.*;
import java.util.List;
/**
* Spring Data JPA repository for the Serie entity.
*/
public interface SerieRepository extends JpaRepository<Serie,Long> {
}
| 18.533333 | 68 | 0.776978 |
f57314e09ba46ff1e4dacf632f03571c76bf2266 | 654 | package model;
// This source file is generated by Oracle tools.
// Contents may be subject to change.
// For reporting problems, use the following:
// Generated by Oracle JDeveloper 12c 12.2.1.3.0.0914
public class EnseignantFacadeBeanServicePortClient {
public static void main(String[] args) {
EnseignantF... | 38.470588 | 85 | 0.75841 |
de2402e436ba58bf40d7e806ab1f2d2f44a95eda | 1,109 | package com.example.lifecycle.viewmodel;
import android.app.Application;
import android.arch.lifecycle.AndroidViewModel;
import android.arch.lifecycle.LifecycleOwner;
import android.arch.lifecycle.LiveData;
import android.arch.lifecycle.MediatorLiveData;
import android.arch.lifecycle.Observer;
import com.example.life... | 34.65625 | 110 | 0.770965 |
b5d4c662005aaa275f0106a634d8f817321aa76d | 143 | // "Put arguments on separate lines" "true"
// break after lparen
class A {
void foo(int a1, int a2, int a3) {
foo(1, 2<caret>, 3)
}
} | 17.875 | 43 | 0.601399 |
235d8d1dadd6a189bb1fa05445610e4dc985210d | 739 | package com.scnu.peexamsystem.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
public class Admin {
private String adminID;
private String adminName;
private String password;
public String getAdminID() {
ret... | 19.972973 | 48 | 0.668471 |
094fc3cb7f545acc66ba8eb392e2dfe5b6942236 | 304 | package question3;
public class PersonRunner {
public static void main(String[] args) {
Dog rex= new Dog();
Person cathy= new Person("cathy", rex);
Dog tex=new Dog();
Person prakash= new Person(" ", tex);
cathy.tellPetToSpeak();
prakash.tellPetToSpeak();
}
}
| 16 | 42 | 0.611842 |
5ba76e00173154da2a3c18853bb2eec0faff3c58 | 3,208 | package com.iscolt.micm.business.controller;
import com.iscolt.micm.business.dto.RegParam;
import com.iscolt.micm.business.feign.RegFeign;
import com.iscolt.micm.commons.model.dto.ResponseCode;
import com.iscolt.micm.commons.dto.ResponseResult;
import com.iscolt.micm.provider.api.SysUserService;
import com.iscolt.micm... | 34.12766 | 108 | 0.677369 |
9bea463001d030829a4c556ad9ebc457517ba45f | 2,155 |
//
// This file is part of the CNC-C implementation and
// distributed under the Modified BSD License.
// See LICENSE for details.
//
// I AM A GENERATED FILE. PLEASE DO NOT CHANGE ME!!!
//
package CnCParser.Ast;
import lpg.runtime.*;
/**
*<b>
*<li>Rule 81: attribute_list_opt ::= $Empty
*<li>Rule 82: attribu... | 25.352941 | 98 | 0.585151 |
acd8f7c6af5c5ced09a0796f3379184f8a455fc6 | 2,239 | /*
* Copyright (c) 2007-2017 Xplenty, Inc. All Rights Reserved.
*
* Project and contact information: http://www.cascading.org/
*
* This file is part of the Cascading project.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*... | 26.975904 | 107 | 0.700759 |
40cb80b066d43e51cf62d25fe13edf113b98780e | 6,514 | /*
* Copyright 2018 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 i... | 34.834225 | 95 | 0.553116 |
0ceb99ee00b7da6292ac0e93c1ed43bdcf388af8 | 21,553 | /*
* Copyright (c) 2010-2015 Pivotal Software, Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License. You
* may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless req... | 40.285981 | 128 | 0.686123 |
1957af15667546f3b6e874f7aa35a652652a0b99 | 464 | package io.javabrains;
public class Greeter {
public void greet(MyAdd g) {
System.out.println(g.addFunction(5,6));
}
public static void main(String[] args) {
Greeter g = new Greeter();
MyLambda myLambdaFunction = () -> System.out.println("Hello World");
MyAdd addFunction = (int a, int b) -... | 17.846154 | 71 | 0.622845 |
b4d495a5fa15844fb5d642a434903cda81218ed9 | 4,259 | package com.dianping.cat.home.alert.summary.transform;
import static com.dianping.cat.home.alert.summary.Constants.ENTITY_ALERT;
import static com.dianping.cat.home.alert.summary.Constants.ENTITY_ALERT_SUMMARY;
import static com.dianping.cat.home.alert.summary.Constants.ENTITY_CATEGORY;
import java.io.IOException;
im... | 30.862319 | 115 | 0.65344 |
9212f9e4330ea60de5a2d82e9fe41c7c57f451bc | 1,017 | package com.hanyi.sharding.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hanyi.sharding.dao.DictMapper;
import com.hanyi.sharding.pojo.Dict;
import com.hanyi.sharding.service.DictService;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* <p>
... | 18.833333 | 91 | 0.630285 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.