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 |
|---|---|---|---|---|---|
abfc30186bb720fd1754a66412e6f4a77cdd5eec | 1,078 | // Copyright 2011 Palantir Technologies
//
// 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... | 32.666667 | 77 | 0.719852 |
8f12ce2a652e7a45955a27d2099a3ba0d25500de | 2,892 | package com.example.myapplication;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.Button;
import java.util.List;
import java.util.concurrent.... | 39.616438 | 145 | 0.650069 |
db26f86031ff108d70e7b91a2b8391552536dcbd | 937 | package frc.robot.commands;
import edu.wpi.first.wpilibj2.command.CommandBase;
import frc.robot.classes.Kinematics;
import frc.robot.classes.Position2D;
import frc.robot.subsystems.Drivetrain;
public class ResetKinematics extends CommandBase {
private Drivetrain m_drivetrain;
private Position2D m_resetPositi... | 24.025641 | 99 | 0.715048 |
caabae56cca291dccdef2deb27c8a8de1865f527 | 4,722 | package one.jodi.odi12.etl.impl;
import com.google.inject.Inject;
import one.jodi.etl.internalmodel.ComponentPrefixType;
import one.jodi.etl.internalmodel.Targetcolumn;
import one.jodi.etl.internalmodel.Transformation;
import one.jodi.odi.etl.OdiCommon;
import one.jodi.odi12.etl.DistinctBuilder;
import one.jodi.odi12.... | 46.294118 | 183 | 0.664761 |
3bebbbb3d712f887d5dd09c0d98243d0ef768a28 | 3,080 | /**
* Copyright 2018 Comcast Cable Communications Management, LLC
*
* <p>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
*
* <p>http://www.apache.org/licenses/LICENSE-2.0
*
* <p>Unless requ... | 23.875969 | 99 | 0.647078 |
54e22384ed6ba6b9cb69ca79b3d15dbc510d1ccf | 1,090 | package com.wj.Inner_class;
public class readme {
// 编译时常量:编译是能确定值的常量(不需要函数调用)
// 常量需要final修饰
public static final int a1 = 10; // 编译时常量
public static final int a2 = 10 * 20 + 3; // 编译时常量(简单计算,不调用方法)
public static final int a3 = a3(); // 非编译时常量(调用方法)
static int a3() {return 0;}
/// 嵌套类
// 严格来说,只有动态嵌套类才... | 26.585366 | 73 | 0.674312 |
68d60c803da0c37d3c11b28c4803c8c56ad874da | 3,594 | import net.runelite.mapping.Export;
import net.runelite.mapping.ObfuscatedGetter;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
@ObfuscatedName("jp")
public class class278 extends CacheableNode {
@ObfuscatedName("o")
@ObfuscatedSignature(
signature = "Ljf;"
... | 26.233577 | 104 | 0.568169 |
d4d70e71476be42304625f0ae9b55ee74d307a80 | 1,321 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.data.cosmos;
import com.azure.data.cosmos.internal.Conflict;
import com.azure.data.cosmos.internal.ResourceResponse;
public class CosmosConflictResponse extends CosmosResponse<CosmosConflictProperties> {
... | 31.452381 | 98 | 0.694171 |
e5ae8d3bad02602e591040d821b9ef509dd78c50 | 701 | package org.vafer.drift.generator;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
public final class FileCodeWriter implements CodeWriter {
private final File outputDir;
public FileCodeWriter( final File pOutputDir ) {
outputDir = pOutputDir;
}
public void write(String sourceNa... | 23.366667 | 80 | 0.666191 |
8c19bfe1fe87e2463aa855c70000f022a8aecd62 | 2,227 | /* $Id: 8c19bfe1fe87e2463aa855c70000f022a8aecd62 $
*
* Part of ZonMW project no. 50-53000-98-156
*
* @license
* 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.o... | 28.551282 | 80 | 0.734172 |
10697b517970893d89af8fab85bff54554201798 | 2,049 | package org.bluelight.lib.efficient.monitor;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/**
* assert in log for construct no bug software.
* Created by mikes on 15/7/25.
*/
public class Assert {
private static Log myLog = LogFactory.getLog(Assert.class);
private st... | 37.254545 | 91 | 0.645681 |
59d937ef7d8de2e09d0fa149abf7e5ac43a705e2 | 18,783 | /**
* 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 ma... | 38.489754 | 108 | 0.718149 |
78b902ce3cf1d6965d75601b0660330a602bf2b1 | 2,481 | package cz.cvut.fel.horovtom.jasl;
import cz.cvut.fel.horovtom.jasl.interpreter.ConsoleInterpreter;
import cz.cvut.fel.horovtom.jasl.interpreter.FileInterpreter;
import java.io.IOException;
import java.util.logging.*;
public class Main {
private static final Logger LOGGER = Logger.getLogger(Main.class.getName()... | 34.458333 | 102 | 0.618299 |
2ce62ac8c41a852d469d9d92d86c42e1aab89bf7 | 11,168 | package com.quickblox.q_municate_core.qb.helpers;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import com.connectycube.chat.ConnectycubeChatService;
import com.connectycube.chat.Signaling;
import com.connectycube.chat.WebRTCSignaling;
import com.... | 40.172662 | 128 | 0.68759 |
cf92e081a87b19a69e73e460d992bf228c9a5627 | 486 | import java.util.Scanner;
public class NumeroDecrescente {
public static void main(String[] args) {
Scanner teclado = new Scanner(System.in);
System.out.println("Insira o numero limite:");
int n = teclado.nextInt();
System.out.println("\nInicio da Contagem---\n");
imprimirEmOrdemDecrescente(n);
System.... | 24.3 | 55 | 0.676955 |
67814d2bd1617a1fd271d9c05534e87a61b37deb | 424 | package so.asch.sdk.codec;
/**
* Created by eagle on 17-7-16.
*/
public class DecodingException extends Exception{
private static final long serialVersionUID = 1L;
public DecodingException(String message, Throwable parent) {
super(message, parent);
}
public DecodingException(String message)... | 20.190476 | 64 | 0.665094 |
576d842cc30e2f115190f8907dc6f5734793fffb | 3,820 | /**
* Copyright 2011 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 applic... | 34.414414 | 103 | 0.682723 |
273472eaa042a901967bfb31bb9ae93268abc378 | 165 | package org.jsoftware.dbpatch.command;
/**
* Check if patch process ends with success.
*/
public interface CommandSuccessIndicator {
boolean isSuccess();
}
| 15 | 44 | 0.733333 |
87067d5de23d4154dbc5d3b59be607a106daca68 | 2,795 | package com.github.loki.afro.metallum.core.parser.site.helper.label;
import com.github.loki.afro.metallum.core.parser.site.LabelSiteParser;
import com.github.loki.afro.metallum.core.util.net.MetallumURL;
import com.github.loki.afro.metallum.entity.Band;
import com.github.loki.afro.metallum.entity.Disc;
import com.gith... | 37.266667 | 141 | 0.672987 |
73eaa167a5eef28c10ff7b0ffdce1ea22ece42c9 | 400 | package com.vysakhan.boot.demo.demobootapplication.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
@RequestMapping("/student")
public class StudentController {
//Create Student
public void createStudent(){
... | 19.047619 | 62 | 0.7175 |
e4a96997b098b87408d7602b41935646ce940a85 | 1,433 | /*
* Copyright (C) 2020 Dremio
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 30.489362 | 76 | 0.754361 |
2b53d7b6aa84515fd0a8cfb81339a2cdfc0a2484 | 2,848 | /**
* Copyright 2014 J. Patrick Meyer
* <p/>
* 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
* <p/>
* http://www.apache.org/licenses/LICENSE-2.0
* <p/>
* Unless required by applicable ... | 30.297872 | 79 | 0.639396 |
f842c18118fbb6ab0aaecc6aa4eb530b8683461b | 1,600 | package controllers.validation;
import domain.entity.Match;
import domain.repository.MatchRepository;
import domain.repository.PredictionRepository;
import domain.dto.PredictionDetails;
import javax.inject.Inject;
import javax.inject.Named;
/**
* Validator for {@link domain.dto.PredictionDetails} data.
* @author M... | 33.333333 | 178 | 0.696875 |
bfd97277885d36ab60805254c2583e610886f83a | 3,349 | package org.openntf.domino.demoApp.subpages.session;
/*
<!--
Copyright 2017 Paul Withers
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... | 42.935897 | 114 | 0.783517 |
a7cd6c0b023b8c3ae6b1105a6d81f90ad6a51781 | 2,757 | package course.addressbook.models;
public class ContactData {
private final String name;
private final String middleName;
private final String lastName;
private final String nickname;
private final String title;
private final String company;
private final String address;
private final S... | 22.598361 | 310 | 0.611172 |
eefb7b25e6d2fef5e8f087dad1a701de79cddf24 | 122 | package cn.regionsoft.one.enums;
public enum UserToDoAction {
NEED_TO_LOGIN,
ACCESS_FORBIDDEN,
VALID_ACCESS;
}
| 15.25 | 33 | 0.754098 |
63887cc8060d217dac6b557ed76184111fe9e019 | 6,715 | /*
* Copyright (C) 2020 Todd Neller
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distri... | 30.384615 | 135 | 0.680715 |
d713456fc036e71f3bbd033afeb38794a4c6f1da | 4,317 | /**
* Copyright 2008 West Virginia University
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 33.207692 | 172 | 0.663424 |
785d21d3192cbe33c11300aaad78405ce9046e9c | 4,002 | package nio2thread;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.ByteBuffer;
import java.nio.channels.SelectionKey;
import java.nio.channels.Selector;
import java.nio.channels.ServerSocketChannel;
import java.nio.channels.SocketChannel;
import java.nio.charset.Charset;
import java.uti... | 46 | 128 | 0.41979 |
d86fbfa52518035b5828d6dd382fa8d54b435ef1 | 11,590 | package com.samia.ruponti.calendar;
import android.annotation.SuppressLint;
import android.app.Dialog;
import android.content.Intent;
import android.content.ShadowAsyncQueryHandler;
import android.content.pm.ActivityInfo;
import android.content.pm.ResolveInfo;
import android.database.ContentObserver;
import android.os... | 37.147436 | 98 | 0.600777 |
321d1fd1e42cf9fe668110bbdf7c3bd65ae61b07 | 544 | package com.github.mzebib.common.util;
import org.junit.Test;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
/**
* @author mzebib
*/
public class BinarySearchTest {
@Test
public void testBinarySearch() {
int[] array = {0,10,20,30,40,50};
assertTrue(... | 23.652174 | 59 | 0.694853 |
b533ef320a05c4745edced3de7f32dd4a9e353f5 | 2,572 | package com.github.fmjsjx.entrepot.core.util;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;
import com.github.fmjsjx.entrepot.core.Constants;
import com.github.fmjsjx.entrepot.core.appender.policy.TimeBasedPolicy.RollingPeriod;
import lombok.AccessLevel;
import lombok.Getter;
imp... | 33.842105 | 102 | 0.651633 |
90b3029ff155722bde36e457957eb61847133f3c | 1,026 | package com.example.demo.JPA;
import com.example.demo.Entity.Ticket;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import javax.transaction.Transactional;
import java.sql.Timestamp;
... | 33.096774 | 74 | 0.737817 |
5223a3a1206a63aa209c4744603625b7acaf8c21 | 625 | package org.chenile.cache.init;
import java.util.Map;
import org.chenile.cache.model.CacheConfig;
import org.chenile.core.init.BaseInitializer;
import org.springframework.core.io.Resource;
public class CacheInitializer extends BaseInitializer<CacheConfig>{
public CacheInitializer(Resource[] resources) {
super(re... | 23.148148 | 71 | 0.7888 |
f5da11e184f5d3d855302f9e15d61836e212eb4d | 10,897 | package org.apache.hadoop.fs.test.unit;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.io.IOException;
import java.util.Random;
import org.apache.hadoop.fs.FSDataInputStream;
import org.apache.hadoop.fs.FSDataOutputStrea... | 33.021212 | 120 | 0.593925 |
c95aa06f001ce643c98c78e7c8bc4e3b9b6367c4 | 2,827 | package org.dbflute.erflute.db.impl.h2;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.dbflute.erflute.editor.model.dbimport.ImportFromDBManagerBase;
import org.dbflute.erflute.editor.model.diagram_contents.not_element.sequence.Sequence;
public class H2TableImp... | 27.990099 | 134 | 0.59427 |
a4239b13746b00d20a9ae2aaa1b27a5894b862e7 | 289 | package Util;
import android.app.Application;
import android.content.Context;
public class Constant extends Application {
public static final int NOTPLAYING=0;
public static final int PLAYING=10;
public static final int PAUSE=11;
public static final int PREPARE=12;
}
| 19.266667 | 43 | 0.754325 |
8af96af447a44566c0775946af80d9100c88c6ec | 2,955 | package com.xixi.sdk.utils.queue;
import java.util.LinkedList;
import com.xixi.sdk.app.LongLakeApplication;
import com.xixi.sdk.logger.Log;
import com.xixi.sdk.observer.KnockDetectObserver.CurrentVal;
import com.xixi.sdk.utils.mem.LLMemoryManager;
public class LLCalculateGravityQueue extends LLRawDataGravityQueue {
... | 28.413462 | 146 | 0.702538 |
1d1a26c06146c7826f790c8a0ac9b3cb453184d6 | 3,675 | package com.java.study.zuo.vedio.advanced.chapter6;
import com.alibaba.fastjson.JSONArray;
import lombok.Data;
import java.util.LinkedList;
import java.util.Stack;
/**
* <Description>
* 获取直方图中最大矩形面积
*
* @author hushiye
* @since 2020-09-21 22:01
*/
public class LargestRectangleInHistogram {
public static c... | 26.824818 | 77 | 0.484626 |
7fd5457b91a8786df1e9b79c50bf52c80059fc4f | 732 | package com.gonwan.springcloud.eureka;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;
import de.c... | 33.272727 | 120 | 0.82377 |
89d52ebd41fb12a37faa99858e9510dfed41d515 | 17,186 | /**
* Copyright 2018 Ricoh Company, Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 39.690531 | 123 | 0.602293 |
cf0e573ac1fa96462d169eed4538b790a269ec1c | 262 | package org.swdc.note.core.files;
import org.swdc.note.core.files.storages.AbstractArticleStorage;
import java.io.File;
public interface StorageFactory {
AbstractArticleStorage getTypeStorage();
String getName();
boolean support(File file);
}
| 16.375 | 64 | 0.759542 |
4f6e898c6c75ed2de6572ebcb3728609cfe5fe09 | 611 | package com.tremolosecurity.unison.k8s.mapping;
import com.tremolosecurity.provisioning.core.User;
import com.tremolosecurity.provisioning.mapping.CustomMapping;
import com.tremolosecurity.saml.Attribute;
/**
* Email2Uid
*/
public class Email2Uid implements CustomMapping {
@Override
public Attribute doMapp... | 27.772727 | 62 | 0.703764 |
d3c3c2f575278edab22c8bed434e6b684c990b69 | 1,589 | /*
* Copyright 2000-2001,2004 The Apache Software 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 requir... | 21.767123 | 75 | 0.603524 |
54f993956ebfe4acd391d2f742163c825ac7c510 | 2,061 | package org.ticparabien.hotelcovid19.integration;
import com.github.springtestdbunit.DbUnitTestExecutionListener;
import com.github.springtestdbunit.annotation.DatabaseSetup;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfi... | 38.886792 | 150 | 0.791849 |
dcbca6df80664b79c8885f87e7023fe7e4a9ef77 | 1,642 | package org.magic.gui;
import java.awt.BorderLayout;
import javax.swing.ImageIcon;
import javax.swing.JTabbedPane;
import org.magic.gui.abstracts.MTGUIComponent;
import org.magic.gui.components.shops.ContactsManagementPanel;
import org.magic.gui.components.shops.TransactionsPanel;
import org.magic.gui.components.sho... | 27.830508 | 101 | 0.787454 |
7d5cdf0287bb2060542a9b024f9d5efb40c544a1 | 1,886 | package blingclock.layout;
import javax.swing.JComponent;
public class BlingLayoutData {
BlingAttachment top;
BlingAttachment left;
BlingAttachment right;
BlingAttachment bottom;
public BlingLayoutData setTop(int percent) { return setTop(percent,0); }
public BlingLayoutData setLeft(int percent) { return se... | 30.918033 | 94 | 0.764581 |
ca56cfa2a8e7f3bbce9ab38003bd9417caca5f06 | 2,413 | package com.elex.oa.controller.eqptController;
import com.elex.oa.entity.Page;
import com.elex.oa.entity.eqpt.Repository;
import com.elex.oa.entity.restructure_hrentity.Hrdatadictionary;
import com.elex.oa.service.eqptImpl.PositionServiceImpl;
import com.github.pagehelper.PageInfo;
import org.springframework.stereoty... | 31.75 | 86 | 0.761707 |
b3ad42e91dba945e2543dc094132cb705a75c999 | 150 | package com.hc.tools.lib_nfc.nfc;
public interface OnNFCParseListener {
void hasCard(boolean hasCard);
void getCardNumber(String number);
}
| 18.75 | 38 | 0.76 |
80438d5d02fb2493408107982fe51475679e7453 | 130 | package org.seasar.doma.internal.apt.processor.entity;
import org.seasar.doma.Entity;
@Entity
public class NameUnsafeEntity_ {}
| 18.571429 | 54 | 0.807692 |
b8105c5d7ad0958c07030a891cfd669785195d11 | 723 | package com.mozz.htmlnative.script.lua;
import org.luaj.vm2.LuaString;
import org.luaj.vm2.LuaTable;
import org.luaj.vm2.LuaValue;
import org.luaj.vm2.lib.ZeroArgFunction;
/**
* @author Yang Tao, 17/5/31.
*/
abstract class LObject extends LuaTable {
LObject() {
super();
set("type", new Zer... | 23.322581 | 68 | 0.549101 |
3ac1177dad9759943e96ac45f30f8609fff1c6c3 | 9,455 | /*
MIT License
-----------
Copyright (c) 2019 Ivan Yurkov (MB "Stylo tymas" http://steel-team.net)
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 li... | 40.234043 | 196 | 0.53432 |
9925cb503dff261824eccd57818620e9b9a46f6e | 847 | package com.payam.learn.reservation.dto.mapper;
import com.payam.learn.reservation.dto.model.RoleDto;
import com.payam.learn.reservation.dto.model.UserDto;
import com.payam.learn.reservation.model.Role;
import com.payam.learn.reservation.model.User;
import org.modelmapper.ModelMapper;
import java.util.ArrayList;
impo... | 29.206897 | 89 | 0.642267 |
b68e012c1b75938feb35099d5845511c53b6e56d | 2,318 | package net.wapwag.authn.ui;
import com.google.gson.Gson;
import net.wapwag.authn.model.UserView;
import net.wapwag.authn.util.OSGIUtil;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.exception.ExceptionUtils;
import org.apache.oltu.oauth2.common.OAuth;
import org.slf4j.Logger;
import org... | 39.288136 | 121 | 0.658326 |
92564fc1d609d1dae0f24220082ac0095af42f09 | 3,498 | /***
* sum_k program implements the code to print all the subsets of the given array
* whose sum equals k.
*
* eg. arr = {1,2,3,4}
* k = 4;
*
* Subsets whose sum equals k are {4}, {1,3}
*/
import java.util.Scanner;
public class sum_k {
public static void main(String[] args) {
Scanner s = new Sca... | 24.985714 | 82 | 0.518868 |
0c85b90f403c06954559f2bce245ff46224503ad | 457 | package com.domo.sdk.users;
import com.domo.sdk.ExampleBase;
import com.domo.sdk.users.model.User;
import org.junit.Test;
import java.io.IOException;
public class RetrieveExample extends ExampleBase {
@Test
public void userClient_smokeTest() throws IOException {
UserClient userClient = client.userClient();
... | 19.869565 | 57 | 0.728665 |
d52cad6f2ba844699e71932f91b75a11ef186bff | 2,082 | package hah.htetaunghlaing.ted.activities;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.Recycle... | 30.173913 | 128 | 0.742075 |
49a771d5fdd962b41e049219395f7431e688c904 | 199,470 | /*
*AVISO LEGAL
© Copyright
*Este programa esta protegido por la ley de derechos de autor.
*La reproduccion o distribucion ilicita de este programa o de cualquiera de
*sus partes esta penado por la ley con severas sanciones civiles y penales,
*y seran objeto de todas las sanciones legales que correspondan.
*Su... | 53.983762 | 379 | 0.829378 |
f537e7d37789b02967d2794851ac4455f36673e6 | 131 | int findSet(int v) {
if (dsu[v] == v) {
return v;
}
int v1 = findSet(dsu[v]);
dsu[v] = v1;
return v1;
} | 16.375 | 29 | 0.442748 |
0e1da7df76fa78bf4558cc270fa306b62c7722d7 | 2,284 | // RobotBuilder Version: 2.0BB
//
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// Java from RobotBuilder. Do not put any code or make any change in
// th... | 32.169014 | 105 | 0.688704 |
4124139a81c367a3b72f88a457da8e906266545a | 2,612 | /*
* 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.314286 | 95 | 0.763783 |
1acfa27da2379bcee69a8a67dfdacb626ecc8ea4 | 2,723 | /*
* Copyright 2014 - 2021 Blazebit.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 34.910256 | 145 | 0.709144 |
7d0cd45831984cc6529f35f41ee878a87992655d | 1,249 | package xyz.mdou.quickstart.leetcode.lcof;
public class SubarraySumsDivisibleByK {
private static int[] A = {};
private static int K = 586;
public static void main(String[] args) {
SubarraySumsDivisibleByK task = new SubarraySumsDivisibleByK();
long l = System.currentTimeMillis();
... | 29.046512 | 71 | 0.430745 |
7854cf052fe9d57b7da03ed07ac65d5908e20327 | 3,532 | package de.slothsoft.mp4spliterator.testplan;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
import org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotShell;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotT... | 30.713043 | 112 | 0.712911 |
a2fe609a94b348752dc1ff000acb5be8dc03c9b5 | 1,298 | /**
* Created by mastermindzh on 12/14/15.
*/
public class Punt {
/**
*
*/
private char x;
/**
*
*/
private int y;
private final int laagsteNummer = 1;
private final int hoogsteNummer = 10;
/**
* Array van letters die gebruikt worden bij zeeslag
*/
pri... | 18.027778 | 87 | 0.46225 |
d32e4004ba2180aa5ba534b38488f85764931381 | 1,322 | /*******************************************************************************
* Copyright 2010-2011 Hannes Niederhausen, Topic Maps Lab
*
* 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 a... | 26.44 | 80 | 0.642965 |
bd671995dea98bb59bd6055380f9335c7f3e33dd | 1,230 | package visual;
import java.io.IOException;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.stage.Stage;
import model.CustomerManagement;
import model.product.ComponentManagement;
public class ControllerManager extends Applicat... | 27.954545 | 82 | 0.710569 |
44dccc40dc10c2384596a4df4efeaea837ebd87d | 3,157 | package ml.puredark.hviewer.helpers;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.ServiceConnection;
import android.os.IBinder;
import java.util.List;
import ml.puredark.hviewer.HViewerApplication;
import ml.puredark.hviewer.activities.Se... | 31.888889 | 168 | 0.702249 |
ef834c9cec57de43bd25a3582339040bcdf2f048 | 389 | package org.testcontainers.dockerclient;
/**
* Exception to indicate that a {@link DockerClientProviderStrategy} fails.
*/
public class InvalidConfigurationException extends RuntimeException {
public InvalidConfigurationException(String s) {
super(s);
}
public InvalidConfigurationException(Stri... | 25.933333 | 75 | 0.737789 |
6bcd82d83755322004d1228c39eb765d2f685048 | 11,198 | /**
*/
package pcmarchoptions.impl;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.impl.EFactoryImpl;
import org.eclipse.emf.ecore.plugin.EcorePlugin;
import pcmarchoptions.*;
/**
* <!-- begin-user-doc -->
* An imple... | 31.105556 | 145 | 0.743704 |
dfd6f8af5f560e370ce8d4e55b810811034a8994 | 4,391 | package com.redhat.iot.simulator.device;
import java.io.FileWriter;
import java.io.IOException;
import java.text.DecimalFormat;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.Exec... | 25.829412 | 122 | 0.642223 |
367be61168213a71722f28bce82e30916916520f | 15,353 | class UAWsb_xxf {
}
class n {
}
class MIAh2c {
public void[][][] f8zNIRFCPg (Zuc8yxhFNJ_E[][][][][] cyMxmV, c2_xdbb5Xx n0qr8am_j, ZZ9hR7F7Bi Z, void[][][] VlYiFC9uqZDHsr, int[] ukC, boolean[] yZ9idK_j9m) {
;
boolean Yen2aN = !16.b0fYQDT();
;
boolean gkh = NaRK()[ -!-new Elrm[ ... | 37.084541 | 187 | 0.492868 |
556d7217568408cc0a79ed458213b06588c356af | 284 | package com.smdev.structural.flyweight.example_1;
public class Country {
private String name;
public Country(String name) {
this.name = name;
}
@Override
public String toString() {
return super.toString().concat("(" + this.name + ")");
}
}
| 17.75 | 62 | 0.612676 |
04454644fc9e2c8c0933d02a0a755831d2865d3f | 1,209 | package com.instructure.canvasapi.model;
import android.os.Parcel;
import java.util.Date;
public class Domain extends CanvasModel<Domain> {
private String canvas_domain;
public String getCanvasDomain() {
return canvas_domain;
}
public void setCanvasDomain(String canvas_domain) {
t... | 19.5 | 73 | 0.620347 |
8c070c3f580c4147acd8d981f7c62a1f313f8385 | 1,363 | package com.codeprep.dao;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Query;
import javax.transaction.Transactional;
import com.codeprep.entities.Person;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.hibernate5.HibernateCallback;
import ... | 22.344262 | 74 | 0.747616 |
78dbeee4b62aec6dc34ef1c126b5d799ec46317c | 4,212 | /*
* This file is part of GumTree.
*
* GumTree is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GumTree is distribute... | 27.710526 | 78 | 0.582621 |
313d4f389161e794203e7f0d4c0703842cd232f8 | 11,939 | package org.springframework.samples.petclinic.web;
import java.util.Optional;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.samples.petclinic.model.Building;
import org.springframework.samples.petclinic.model.Employee;
import org.springframew... | 36.622699 | 112 | 0.669989 |
87fc2fd633f13b8da839f9a7e1cc1bff131a8857 | 25,638 | /*
* Copyright (c) 2015 IBM Corporation and others.
*
* 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... | 38.845455 | 165 | 0.609252 |
41c3989358cffddfb7015dc71f15fd7cc687c57b | 4,580 | package io.vertx.mysqlclient.impl;
import io.vertx.core.AsyncResult;
import io.vertx.core.Context;
import io.vertx.core.Future;
import io.vertx.core.Handler;
import io.vertx.core.Vertx;
import io.vertx.mysqlclient.MySQLConnectOptions;
import io.vertx.mysqlclient.MySQLConnection;
import io.vertx.mysqlclient.MySQLSetOpt... | 32.253521 | 151 | 0.727293 |
e5423de188ab16d4d5e480e6f710a96593c1228f | 635 | package ru.easydonate.easydonate4j.api.v3.response.gson;
import com.google.gson.annotations.SerializedName;
import lombok.Getter;
import org.jetbrains.annotations.NotNull;
import ru.easydonate.easydonate4j.api.v3.response.ApiResponse;
@Getter
public abstract class GsonApiResponse<T> implements ApiResponse<T> {
@... | 25.4 | 68 | 0.677165 |
d6d3faafc6c494c469e3c36a03a16f60ce1a2132 | 1,561 | package se.bjurr.springrestclient.parse.model;
import java.util.Optional;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.MediaType;
public class RequestDetails {
private final HttpMethod requestMethod;
private final String requestPath;
p... | 24.390625 | 46 | 0.695708 |
be49bdd8d674567a73d812dbbe3de5040f9e6460 | 1,201 | package es.madc.billing.response;
import java.util.List;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@ApiModel(description = "The bill generated")
public class BillResponse {
@ApiModelProperty(notes = "The items with the prices with taxes included")
private List<BillIt... | 20.706897 | 75 | 0.721066 |
cb3fa462674f3c88296a64dde1d68cc1255cada5 | 676 | package baseTypeDemo;
import org.junit.Test;
import java.text.DecimalFormat;
/** 保留两位小数测试
* Created by Administrator on 2018/12/12.
*/
public class KeepTwoPoint {
@Test
public void test(){
Double i = 123456.0;
Double k = 321.0;
Double point = i/k;
System.out.println(point)... | 20.484848 | 54 | 0.563609 |
a566c1c039f8dbb1d8da835eb4817542f925d5b5 | 4,128 | package semmieboy_yt.t3ml;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Random;
public class Main {
public static final byte[] board = new byte[9];
public static final byte none = 0, cross = 1, circle = 2;
public static volatile boolean gameOver, tie;
public static final byte[... | 30.352941 | 86 | 0.451308 |
ed67a0395924481568a895ada8f3a06e5baf1f0a | 175 | package se.snylt.witchcore;
public interface Logger {
void v(String message);
void d(String message);
void w(String message);
void e(String message);
}
| 11.666667 | 27 | 0.662857 |
1fa9e8400dbb0a4b96e95be38afbc99184ef626d | 294 |
package chat.util;
import java.util.Comparator;
public class IntegerCompare implements Comparator{
public int compare(Object obj1, Object obj2){
Integer int1 = (Integer) obj1;
Integer int2 = (Integer) obj2;
return int1 - int2;
}
}
| 17.294118 | 51 | 0.605442 |
4fdaf7b283da20f6ee9e682a71676bc55f33f81a | 4,072 | package com.jlfex.hermes.service.apiconfig;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Predicate;
import javax.persistence.criteria.Root;
import org.apache.commons.lang3... | 38.056075 | 168 | 0.764489 |
e38265dfa201e0c11ed8f6cf293ef0fa3415bfdf | 9,660 | /*
* 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.743363 | 114 | 0.640476 |
2576d0163493f3cbb467b4efb0ad8918e3261f78 | 892 | package com.cc.search.service;
import com.cc.search.dao.ArticleSearchDao;
import com.cc.search.pojo.Article;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.stereotype.Service;
im... | 22.3 | 82 | 0.7713 |
6b569a88d810b62f729ecaad66c3cee14c6b4a0b | 1,121 | package com.jsong.wiki.backend.config;
import com.jsong.wiki.backend.interceptor.CommonInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.w... | 30.297297 | 77 | 0.727921 |
d9d60c8eedd7348b0b1b16cb3d2cc794963bf9fd | 441 | package pers.guangjian.hadoken.infra.apilog.core.service;
import pers.guangjian.hadoken.infra.apilog.core.service.dto.ApiErrorLogDTO;
import javax.validation.Valid;
/**
* @author yanggj
* API 错误日志 接口
* @date 2022/03/02 9:28
* @version 1.0.0
*/
public interface ApiErrorLogFrameworkService {
/**
* 创建 A... | 19.173913 | 75 | 0.70068 |
d2c1ffcd1403da7789a769a5742ea39e42e5a4d4 | 1,909 | /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/
package com.microsoft.azure.management.appservice;
import com.microsoft.azure.management.resources.fluentcore.arm.Region;
import org.junit.*;
import ... | 38.18 | 128 | 0.667889 |
42bcc00537332e06af89baef46893fad4ec21555 | 10,134 | package iitb.CRF;
import java.util.Arrays;
import cern.colt.matrix.tdouble.DoubleMatrix1D;
public class PartialTrainer extends SparseTrainer {
protected DoubleMatrix1D constrained_alpha_Y, constrained_newAlpha_Y;
protected DoubleMatrix1D constrained_beta_Y[];
protected double constrainedExpF[], constrainedlZx;
... | 45.855204 | 201 | 0.566706 |
8525d05fa73637c45c54b05fdf56e9e201acb8ae | 1,607 | package com.example.ldy.weiyuweather.Adapters;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;
import com.example.ldy.weiyuweather.Gson.Weather;
import com.example.ldy.weiyuweather.Screens.DetailPagerFragment;
impo... | 27.706897 | 70 | 0.66397 |
6f491f99a8e8fa4490fb03f344df773e6bde8865 | 321 | package denominator;
import java.util.Iterator;
import denominator.model.Zone;
public interface ZoneApi extends Iterable<Zone> {
/**
* Iterates across all zones, returning their name and id (when present).
* Implementations are lazy when possible.
*/
@Override
Iterator<Zone> iterator();
}... | 20.0625 | 77 | 0.700935 |
f4e41db3653f3a3a80c60a436c7c888079b0d170 | 2,890 | package cn.binary.jerry.nio.server.api;
import cn.binary.jerry.nio.common.GsonUtils;
import cn.binary.jerry.nio.server.adapter.AbstractControllerAdapter;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.handler.codec.http.*;
import io.netty.util.CharsetUtil;
import lombok.Data;
import l... | 30.104167 | 106 | 0.648789 |
7dbaf8584dfb79ee79346fb74d7488beed602ec9 | 901 | package com.waiting.svc.impl;
import com.waiting.dao.UserRepo;
import com.waiting.entity.User;
import com.waiting.svc.UserSvc;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
/**
* Created b... | 24.351351 | 64 | 0.670366 |
bcd0c3b10e534b288a7dfba78f3aa7137c0bae5b | 156 | package com.energyxxer.commodore.module;
import java.util.Collection;
public interface ExportablePack {
Collection<Exportable> getAllExportables();
}
| 19.5 | 47 | 0.801282 |
8dedfdd6aeb8b3cf82d309348b805197a11b9d82 | 696 | package br.com.ft.crestaurant.repositories;
import java.util.Set;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.spring... | 34.8 | 93 | 0.816092 |
c1281e78fdad21a37d03e8b9fc2d256ee0b38f2a | 2,511 | package com.dkafetzi.kata;
import static org.junit.Assert.assertEquals;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestInfo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
class SolutionTest {
private final static Logger LOGGER = LoggerFacto... | 19.928571 | 82 | 0.604142 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.