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 |
|---|---|---|---|---|---|
3aecc95f2df92e7918c190e4cc3ce1dcd98c60aa | 2,047 | package com.reactnativechat;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReactContextBaseJavaModule;
import com.facebook.react.bridge.ReactMethod;
import com.facebook.react.bridge.ReadableMap;
import com.google.android.gms.analytics.GoogleAnalytics;
import com.google.andr... | 29.666667 | 92 | 0.749389 |
0c41737bc23cd81f0332690ef61a09187e1c6c9f | 1,106 | package charbosses.relics;
import charbosses.bosses.AbstractCharBoss;
import com.megacrit.cardcrawl.actions.common.ApplyPowerAction;
import com.megacrit.cardcrawl.actions.common.RelicAboveCreatureAction;
import com.megacrit.cardcrawl.powers.StrengthPower;
import com.megacrit.cardcrawl.relics.AbstractRelic;
impo... | 31.6 | 139 | 0.708861 |
61ed0b279b0d9f9245f8621005574467746e9166 | 2,252 | package put.ci.cevo.experiments.reports;
import static java.lang.Integer.parseInt;
import static java.util.Collections.singletonList;
import static org.apache.commons.lang.StringUtils.isEmpty;
import static org.apache.commons.lang.StringUtils.split;
import static put.ci.cevo.experiments.ConfiguredExperiment.Config.RET... | 31.71831 | 115 | 0.732238 |
559524237a51cd723a039a30c46b5c8381e5acb6 | 126 | @Value.Style(depluralize = true)
package org.cloudfoundry.multiapps.controller.core.model;
import org.immutables.value.Value; | 31.5 | 57 | 0.825397 |
f9a1a8076455c36765cbb75797bd86ad33abe680 | 747 | package test;
import de.spraener.nxtgen.Cartridge;
import de.spraener.nxtgen.CodeGeneratorMapping;
import de.spraener.nxtgen.Transformation;
import de.spraener.nxtgen.model.Model;
import de.spraener.nxtgen.model.ModelElement;
import java.util.ArrayList;
import java.util.List;
public class GroovyCartridge implements ... | 21.970588 | 62 | 0.701473 |
9e223cef2a18b1c9e144c97b13b2752db9305268 | 2,211 | package highwin.zgs.contactindex.utils;
import android.content.Context;
import android.support.annotation.IntDef;
import android.view.Gravity;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
imp... | 28.346154 | 133 | 0.664405 |
febeda2bf69d08dc7579018161a72190f62b6091 | 1,311 | /* GENERATED SOURCE. DO NOT MODIFY. */
/*
* Copyright 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/LICEN... | 35.432432 | 100 | 0.763539 |
6e2de8fdceca38dfc7d5dec5e879c47cc8f75160 | 5,597 | // Automatically generated; do not edit
package com.mylife.test;
import org.json.*;
/**
* Construct objects of type sample_sum.
*/
public class SampleSum {
Tag t = null;
public SampleSum() {
}
public Tag tag() {
return t;
}
/**
* Define tags for sum type sample_sum.
*/
public enum Tag {
... | 25.440909 | 91 | 0.616044 |
8bb381100620162e2c2a19b4731e22726da8823a | 5,541 | /*
* Copyright (c) 2016, SICS, Swedish ICT AB.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list ... | 39.021127 | 108 | 0.645551 |
00385187702b8a3ae3d9f639e0e8c8c7ddbf5bd6 | 1,092 | package be.artisjaap.polyglot.core.action.translationloader;
import be.artisjaap.polyglot.core.model.verbs.TimeOfVerb;
import lombok.Builder;
import lombok.Getter;
import org.springframework.stereotype.Component;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class TagTense implements Transl... | 22.75 | 83 | 0.669414 |
9d3d04c22881f1f630a2c79e03d60f680fccaf25 | 378 | package com.google.android.gms.common.util;
import java.util.regex.Pattern;
/* renamed from: com.google.android.gms.common.util.o */
public class C1389o {
private static final Pattern f3234a;
static {
f3234a = Pattern.compile("\\$\\{(.*?)\\}");
}
public static boolean m4973a(String str) {
... | 22.235294 | 56 | 0.62963 |
9d81debb1ed427166f43e68a97daf05602143d72 | 2,272 | package org.nuclearfog.twidda.adapter.holder;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.cardview.widget.CardView;
import androidx.recyclerview.widget.RecyclerView;
import org.nuclearfog.twidda.R;
import org.nuclearfo... | 39.172414 | 86 | 0.709067 |
811f4c84193264c381069e1826a5038ff267c8f9 | 2,003 | /*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jitsi.impl.neomedia.codec.audio.silk;
/**
* R. Laroia, N. Phamdo and N. Farvardin, "Robust and Efficient Quantization of Speech LSP
* Parameters Using Struct... | 34.534483 | 108 | 0.49975 |
15d5d0a02af1d7c9e959f29755cdf004a7947f7b | 2,827 | package org.linuxlsx.algo.leetcode;
import java.util.HashMap;
import java.util.Map;
/**
* Solution of <a href="https://leetcode.com/problems/longest-substring-without-repeating-characters/">Longest Substring Without Repeating Characters</a>
*
* Created by linuxlsx on 16/9/9.
*/
public class LengthOfLongestSubstr... | 25.93578 | 226 | 0.534489 |
d0bb7d674159cf678c9e74a14b03224c65f5e49c | 4,145 | package com.testsigma.service;
import com.testsigma.config.AdditionalPropertiesConfig;
import com.testsigma.model.AuthUser;
import com.testsigma.model.AuthenticationType;
import lombok.RequiredArgsConstructor;
import lombok.Setter;
import lombok.extern.log4j.Log4j2;
import org.apache.commons.lang3.StringUtils;
import ... | 41.039604 | 106 | 0.75971 |
af5c41f033d37235da39718716fec4cb139964c4 | 4,112 | /**
* Copyright (C) 2016 LibRec
*
* This file is part of LibRec.
* LibRec 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 3 of the License, or
* (at your option) any later version.
*
* ... | 30.686567 | 117 | 0.735895 |
b375dbc26f945bfab3e404dac8fc23dffea4c23f | 3,849 | package mat.client.event;
import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;
/**
* The Class CQLLibrarySelectedEvent.
*/
public class CQLLibrarySelectedEvent extends GwtEvent<CQLLibrarySelectedEvent.Handler> {
/** The type. */
public static GwtEvent.Type<CQLLibrarySele... | 20.473404 | 220 | 0.717069 |
aae10e0300fe355b8e50d84cf39bd5490b5ded79 | 9,568 | package io.connectedhealth_idaas.eventbuilder.dataobjects.clinical.hl7;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
public class PRB {
private String PRB_1_ActionCode;
private String PRB_2_ActionDateTime;
private String PRB_3_ProblemID;
private String PRB_4_ProblemInstanceID;
... | 36.242424 | 148 | 0.783236 |
9324deb01cdfc49285b01570e3569b9dca02e8ad | 248 | package com.safety.service;
import java.util.List;
public interface IDetailService<T> {
public T getDetailById(int id);
public List<T> getAllDetail();
public void save(T detail);
public void update(T detail);
public void delete(T detail);
}
| 20.666667 | 36 | 0.75 |
57e89175d3dcef838a1508b91c5c2dc70dd829bb | 12,101 | /*
* 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 org.thespheres.betula.admin.database.configui;
import java.io.IOException;
import java.net.URI;
import java.text.Collator;
imp... | 35.591176 | 130 | 0.557061 |
307fbd8f75eb0bc4bddd6be9ec898bf633dc4051 | 102 | public class Hello {
private static final int a = 42;
public int getA() {
return a;
}
}
| 11.333333 | 34 | 0.588235 |
70273b77e9ee958bcb6cc018bdb76d78a40a3570 | 2,987 | package org.spongycastle.asn1.x509;
import org.spongycastle.asn1.ASN1EncodableVector;
import org.spongycastle.asn1.ASN1Object;
import org.spongycastle.asn1.ASN1ObjectIdentifier;
import org.spongycastle.asn1.ASN1Primitive;
import org.spongycastle.asn1.ASN1Sequence;
import org.spongycastle.asn1.DERSequence;
public clas... | 25.529915 | 91 | 0.586207 |
1db07d570b568a3d6f0c5a33b1eb864baae4b4dc | 455 | package com.bahadirmemis.springboot.dao;
import com.bahadirmemis.springboot.entity.ProductComment;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface ProductCommentDao extends JpaRepository<ProductCommen... | 22.75 | 79 | 0.826374 |
627590950b7896f8f5ed95180737d6b6084f9915 | 881 | package com.test.memento;
/**
* @Author: zhouguanya
* @Date: 2019/02/07
* @Description: 备忘录模式测试类
*/
public class MementoPatternDemo {
public static void main(String[] args) {
Original original = new Original();
StateKeeper keeper = new StateKeeper();
original.setState("State 1");
... | 31.464286 | 71 | 0.624291 |
1a4e49b658d31ae54904451bfa98ff1779ef6e30 | 496 | package io.github.scottleedavis.mattermost.remind.db;
import org.springframework.data.jpa.repository.JpaRepository;
import java.time.LocalDateTime;
import java.util.List;
public interface ReminderOccurrenceRepository extends JpaRepository<ReminderOccurrence, Long> {
List<ReminderOccurrence> findAllByOccurrence(L... | 33.066667 | 95 | 0.83871 |
dcbfbb72c6f3dcdcdf1d38f335eaa6e02aed0f61 | 1,126 | //generated by abstract-syntax-gen
package notquitejava.ast;
import java.util.*;
public interface NQJOperator extends NQJElement{
NQJElement getParent();
<T> T match(Matcher<T> s);
void match(MatcherVoid s);
public interface Matcher<T> {
T case_Minus(NQJMinus minus);
T case_Div(NQJDiv d... | 31.277778 | 83 | 0.674067 |
a840c4ca13e3035f1f9157ab21db464912f1d88c | 797 | package com.microsoft.appcenter.assets.exceptions;
/**
* General code push exception that has no specified sub type or occasion.
*/
public class AssetsGeneralException extends Exception {
/**
* Creates an instance of {@link AssetsGeneralException} with custom message and exception provided.
*
* @... | 29.518519 | 104 | 0.697616 |
11a7e99cb25c4e795cea8f8e9addb78db3a54c00 | 1,320 | package kg.apc.logging;
import org.apache.jorphan.logging.LoggingManager;
import org.apache.log.Logger;
import java.lang.reflect.Constructor;
public class LoggingUtils {
private static final Logger log = LoggingManager.getLoggerForClass();
public static void addLoggingConfig() {
if (isJMeter32orLate... | 31.428571 | 121 | 0.612879 |
5db3e44aafc8f8a173a7e76bb01c366f2e6ddfa6 | 1,699 | package com.google.android.gms.common;
import android.app.Dialog;
import android.app.DialogFragment;
import android.app.FragmentManager;
import android.content.DialogInterface;
import android.content.DialogInterface.OnCancelListener;
import android.os.Bundle;
import com.google.android.gms.common.internal.Preco... | 34.673469 | 102 | 0.694526 |
6db48e7c7e4c3b23da6cef8753709570203f9848 | 1,265 | package lab.spring.ResourceServerApplication;
import java.util.Arrays;
import org.springframework.context.annotation.Bean;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
import org.s... | 34.189189 | 101 | 0.783399 |
60618e7e7b77be59fd81a06f639246029c8006e8 | 5,980 | /*********************************************************************************
* Copyright 2016-present trivago GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
*
* http://www.a... | 31.640212 | 145 | 0.702341 |
302cb1077148c48170202d02fe0e9dbd350594c4 | 3,107 | package com.statful.collector;
import com.statful.client.StatfulMetricsOptions;
import com.statful.metric.PoolDataPoint;
import com.statful.sender.Sender;
import io.vertx.core.Vertx;
import io.vertx.core.spi.metrics.PoolMetrics;
import javax.annotation.Nonnull;
import java.util.concurrent.atomic.LongAdder;
/**
* Ha... | 28.245455 | 122 | 0.633408 |
048e197585f19359183cf3b3588f5a7d681fe216 | 216 | package com.gail.sps.dao;
import java.util.List;
import com.gail.sps.model.Product;
public interface ProductDao extends GenericDao<Product, Integer> {
public List<Integer> listHotProducts() throws Exception;
}
| 18 | 66 | 0.782407 |
473c73309a6bccf7884cfc252d12003fa56dc944 | 334 | package me.krizzdawg.ownerradius;
import org.bukkit.entity.Player;
public class Lang {
/*
* TODO Make this configurable in a lang.yml
*/
public static String INVALID_RADIUS = "&cInvalid radius '%input%'";
public static String RADIUS_TOO_LARGE = "&eThe radius your selected exceeded the maximum radius&l (%maxra... | 23.857143 | 114 | 0.736527 |
1e49a88e385d5154ac1bf89fa67613ee674656d1 | 4,370 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 34.409449 | 123 | 0.618078 |
0de4ff38baf1dea0c49d8cf778c0de710513ac3c | 2,226 | package matrixstudio.model;
import fr.minibilles.basics.model.ChangeRecorder;
import fr.minibilles.basics.serializer.Boost;
/**
* Parameter for simulation
*/
public class Parameter implements Named {
private Model model;
private String name;
private String formula = "";
public Parameter() {
... | 22.26 | 87 | 0.562444 |
893d30753184833ae083547666f1b927624c18a2 | 4,287 | package com.hbgc.springbootdemo.controller;
import com.hbgc.springbootdemo.domain.BookMessage;
import com.hbgc.springbootdemo.json.Json;
import com.hbgc.springbootdemo.service.BookMessageService;
import com.hbgc.springbootdemo.view.EbookView;
import com.hbgc.springbootdemo.view.NoEbookView;
import org.springframework.... | 28.019608 | 94 | 0.651038 |
1757cd79fb9bb37ea18994af6a61df0ba91ffd4f | 209,533 | /*
* This file was automatically generated by EvoSuite
* Thu Dec 17 17:54:10 GMT 2015
*/
package com.soops.CEN4010.JMCA.JParser;
import static org.junit.Assert.*;
import org.junit.Test;
import com.soops.CEN4010.JMCA.JParser.JavaCharStream;
import com.soops.CEN4010.JMCA.JParser.JavaParser;
import com.soops.CEN4010.... | 59.240317 | 164 | 0.733818 |
e484185e12d7eaf440487ec81d9dc31fb1aef498 | 7,173 | package co.edu.uniandes.csw.partyServices.resources;
import co.edu.uniandes.csw.partyServices.dtos.PagoDTO;
import co.edu.uniandes.csw.partyServices.ejb.PagoLogic;
import co.edu.uniandes.csw.partyServices.entities.PagoEntity;
import co.edu.uniandes.csw.partyServices.exceptions.BusinessLogicException;
import java.util.... | 41.947368 | 153 | 0.680608 |
09178a8bf8b1eef3f64fdeac1023d39d105b9683 | 2,273 | /*
* Agave
*
* This file was automatically generated for Agave Platform Client SDK by APIMATIC BETA v2.0 on 05/20/2016
*/
package org.agave.client.models;
import java.util.*;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonSetter;
public class Application... | 27.059524 | 107 | 0.622085 |
e00e204701ba6eece5ed73e0753b6c1a8f0188eb | 15,197 | /*
* Copyright (C) 2015 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... | 56.285185 | 116 | 0.574192 |
971719b997055102b90dba26d303f77dc52f2050 | 449 | package abstractclasses;
import java.util.ArrayList;
public class AbstractClasses {
public static void main(String[] args) {
// you can create an instance of an abstract class
// BankAccount account = new BankAccount("Eric");
ArrayList<BankAccount> accounts = new ArrayList<BankAccount>()... | 24.944444 | 71 | 0.670379 |
f2b1950fcc69b2d96becad2ee62aa2f9a14fa3d5 | 705 | // "Fix all 'Stream API call chain can be replaced with loop' problems in file" "true"
import java.util.*;
import static java.util.Arrays.asList;
public class Main {
public static boolean test(List<List<String>> list) {
return list.stream().filter(x -> x != null).flatMap(x -> x.stream()).anyMat<caret>ch(x -> x... | 35.25 | 113 | 0.653901 |
ddccf87c951d7fc30f06d52320620ea775e27219 | 61,206 | /*
* Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package com.sun.java.util.jar.pack;
import java.util.AbstractList;
import java.util.ArrayList;
import ... | 36.893309 | 116 | 0.520897 |
09e223dcbe7d450d114770773611a8fca352b396 | 559 | package br.com.sanchez.backend.java.repository;
import br.com.sanchez.backend.java.model.Shop;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.Date;
import java.util.List;
@Repository
public interface ShopRepository extends JpaRepositor... | 32.882353 | 85 | 0.815742 |
fedb7cd21b226a696316127b6f8b60f36a171738 | 173 | package com.github.jenya705.mcapi.inventory;
/**
* @author Jenya705
*/
public interface IdentifiedInventoryItemStack extends InventoryItemStack {
String getId();
}
| 15.727273 | 74 | 0.757225 |
29559ef19ffb2f04c1f2c842f45c37feb8958aae | 769 | package com.mashibing;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
public class HiveJdbcClient {
private static String driverName = "org.apache.hive.jdbc.HiveDriver";
public static void main(String[] args) throws SQ... | 26.517241 | 97 | 0.720416 |
394da3aa06a7abb8b9f09f6629ad63dd23712d86 | 626 | package academy.devdojo.maratonajava.javacore.Bintroducaometodos.dominio;
public class Pessoa {
private String nome;
private int idade;
public void setNome(String nome) {
this.nome = nome;
}
public String getNome() {
return nome;
}
public void setIdade(int idade) {
... | 18.411765 | 73 | 0.57508 |
cbeebc952f88991d5c367dc84128d350712e048a | 4,953 | /*
* MIT License
*
* Copyright (c) 2017-2019 nuls.io
*
* 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, mod... | 46.28972 | 143 | 0.756107 |
3a3ed41fd04e407369841df1caa2f6f3e448a918 | 523 | public class Test{
public static void main(String[] args) {
int[] a={39,48,57,62,40,51,43,50};
int[] b={9,36,17,5,28,30,24,19};
System.err.println("结果为:");
for (int i = 0; i < a.length; i++) {
for (int j = 0; j < b.length; j++) {
int sum = a[i] + b[j];
... | 32.6875 | 97 | 0.403442 |
bc75790a31bebd511ea16044a868513dc6b5c7d6 | 387 | package dev.codesoapbox.backity.core.logs.application.messages;
import dev.codesoapbox.backity.core.shared.infrastructure.config.openapi.IncludeInOpenApiDocs;
import lombok.Value;
import javax.validation.constraints.NotNull;
@IncludeInOpenApiDocs
@Value(staticConstructor = "of")
public class LogCreatedMessage {
... | 21.5 | 94 | 0.795866 |
a36714a48440743c173145efbef99663e654f560 | 9,980 | package com.googlecode.totallylazy;
import com.googlecode.totallylazy.annotations.multimethod;
import com.googlecode.totallylazy.annotations.tailrec;
import com.googlecode.totallylazy.functions.*;
import com.googlecode.totallylazy.comparators.Maximum;
import com.googlecode.totallylazy.comparators.Minimum;
import com.g... | 32.508143 | 112 | 0.67485 |
f6cbc705894b72ec263776d062b15ffae5a50715 | 2,343 | // Copyright 2020 dataFascia 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 agr... | 36.609375 | 89 | 0.755869 |
305016f1f52a0bf7c6fe909cf0d2c2f795f9267e | 347 | package br.com.abril.fera.dao;
import java.util.List;
import br.com.abril.fera.model.CreatePage;
public interface CreatePageDAO {
public List<CreatePage> list();
public CreatePage get(String id);
public void saveOrUpdate(CreatePage createpage);
public void delete(String id);
public List<CreatePage> listBy... | 17.35 | 53 | 0.766571 |
32b93711e6f4564764c9b06904ac6058d9d6da6a | 674 | package com.jira.client.web.model.webhook;
import com.alibaba.fastjson.annotation.JSONField;
import com.jira.client.web.model.webhook.isuue.IssueDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
/**
* @author XIAXINYU3
* @date 2020/11/27
*/
@Getter
@Sette... | 21.741935 | 56 | 0.762611 |
53d4e0ce537a4072efff844185882641e016a065 | 8,892 | package me.ningsk.common.gl;
import android.opengl.GLSurfaceView;
import android.util.Log;
import android.view.SurfaceView;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Set;
import static me.ningsk.co... | 42.14218 | 139 | 0.425551 |
590b2f4e95bff532c60a51827ad7d9388cea546d | 288 | package cn.kgc.kade2015.mycampus;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class Test {
private static final Logger log = LoggerFactory.getLogger(Test.class);
public static void main(String[] args) {
log.info("hello world");
log.debug("debug hello");
}
} | 22.153846 | 71 | 0.739583 |
939e4066a126770ad9e60ed696ab7f91d1fe605f | 1,200 | package com.ck.syscheck.model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
import java.util.Set;
/**
* 资源表
* Create by ck on 2019/6/17
*/
@Data
public class SysResource implements Serializable{
private static final long serialVer... | 15 | 70 | 0.553333 |
378e0c63c9df8b5a337e1591003bdc0c0ac40e95 | 2,113 | /*
* Copyright 2015 Ripple OSI
*
* 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... | 26.746835 | 78 | 0.699479 |
1c346bf3eeea53e58b4d50f7ce7f660446508421 | 303 | package br.com.zupedu.gui.mercado_livre.produto.pergunta;
public class ProdutoPerguntaResponse {
private String titulo;
public ProdutoPerguntaResponse(ProdutoPergunta pergunta) {
this.titulo = pergunta.getTitulo();
}
public String getTitulo() {
return titulo;
}
}
| 21.642857 | 62 | 0.706271 |
61fc7cf718754cc0351798de2c93a58b9df1dfe3 | 6,522 | package fr.free.nrw.commons.mwapi;
import org.apache.http.cookie.Cookie;
import org.apache.http.impl.client.AbstractHttpClient;
import org.apache.http.impl.cookie.BasicClientCookie;
import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Has... | 36.233333 | 211 | 0.621742 |
8bb1ab63ff26008c1c689cca426ce2efbcd22fea | 408 | package io.nuls.rpc.sdk.entity;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
/**
* @author: Charlie
* @date: 2018/3/28
*/
public class InputNa2NulsDto extends InputDto {
public InputNa2NulsDto(Map<String, Object> map) {
super(map);
}
@JsonProperty("value")
... | 18.545455 | 53 | 0.669118 |
46788571199ff3d3fb179afdc935486f346badbe | 5,504 | /*******************************************************************************
* Copyright (c) 2005, 2009 IBM Corporation and others.
* 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, an... | 34.616352 | 116 | 0.610465 |
9c05f3dce38a2e9713a84ccf9e6737a7f8a537dd | 47,351 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | 50.106878 | 358 | 0.677451 |
e29253e377a857ca4c38558e878e7c41d667d84c | 4,061 | package org.fan.teat.security;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonTypeInfo.As;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.JsonNode;
import co... | 27.62585 | 113 | 0.703521 |
f84035a6f3f46b946ce8289c6d44e9e88534d14c | 1,881 | /*
* 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")... | 30.33871 | 80 | 0.696438 |
668e0357e723252b9dacd140661d8dd91ba5b586 | 344 | package com.convious.pricingapi.events;
public class ProductRemoved implements InventoryEvent {
private final String productReference;
public ProductRemoved(String productReference) {
this.productReference = productReference;
}
public String productReference() {
return produ... | 24.571429 | 56 | 0.712209 |
3d47ab9b99b42fe4740a1016702953c605be7952 | 1,209 | package io.rheem.flink.plugin;
import io.rheem.core.api.Configuration;
import io.rheem.core.mapping.Mapping;
import io.rheem.core.optimizer.channels.ChannelConversion;
import io.rheem.core.platform.Platform;
import io.rheem.core.plugin.Plugin;
import io.rheem.flink.channels.ChannelConversions;
import io.rheem.flink.pl... | 30.225 | 98 | 0.750207 |
226d2f1f055e58b02bd4d1d0cd6257d80c5dd8b9 | 486 | public class Person {
private String name;
private String number;
public Person(String name, String number) {
this.name = name;
this.number = number;
}
public String getName() {
return name;
}
public String getNumber() {
return number;
}
public voi... | 18 | 47 | 0.569959 |
5bebc32a2ff89ba93679262166c99ad86ad4e7cf | 15,613 | /* Copyright 2004-2019 Jim Voris
*
* 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 o... | 40.765013 | 171 | 0.64536 |
0a204f84bd9f370525f49ed38416e0efa28d125d | 1,959 | package org.zstack.header.network.l3;
import org.springframework.http.HttpMethod;
import org.zstack.header.identity.Action;
import org.zstack.header.message.APIEvent;
import org.zstack.header.message.APIMessage;
import org.zstack.header.message.APIParam;
import org.zstack.header.notification.ApiNotification;
import or... | 27.985714 | 122 | 0.678918 |
0d6a9f3409df49b1c0b2ec8dba8388c92bb0ece6 | 650 | package com.lyh.flowers.service;
import java.util.List;
import com.lyh.flowers.pojo.Order;
import com.lyh.flowers.pojo.OrderItem;
import com.lyh.flowers.pojo.PageBean;
public interface IOrderService {
public PageBean<Order> myOrders(String uid, int pc);
public PageBean<Order> findAll(int pc);
public Order ... | 23.214286 | 65 | 0.776923 |
072dc412f23346371a00d52403d165a42ce77c16 | 894 | package net.minecraft.server;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException; // CraftBukkit
public class Packet3Chat extends Packet {
public String message;
public Packet3Chat() {}
public Packet3Chat(String s) {
/* CraftBukkit start - handle this l... | 22.35 | 88 | 0.637584 |
c940d9e1c27c7931d20d8fe6226c2856fb4c635d | 8,814 | /*
* Copyright (c) 2017, salesforce.com, inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided
* that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of cond... | 51.54386 | 191 | 0.709666 |
8d9104dbe148820b661b8c549346a2ab5de237e1 | 6,444 | /*
Derby - Class org.apache.derbyDemo.vtis.core.FlatFileVTI
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 Ap... | 28.767857 | 101 | 0.450341 |
7f254232a5745e0e357f48123fb067536b316d3d | 3,770 | package testCustomAnalyzer.typesystem;
/*Generated by MPS */
import jetbrains.mps.lang.typesystem.runtime.AbstractNonTypesystemRule_Runtime;
import jetbrains.mps.lang.typesystem.runtime.NonTypesystemRule_Runtime;
import org.jetbrains.mps.openapi.model.SNode;
import jetbrains.mps.typesystem.inference.TypeCheckingConte... | 53.098592 | 290 | 0.807692 |
e170631d7435072b4475d389dc0187e938b9dad2 | 1,031 | package powerapi.entity;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import powerapi.common.utils.DateFormatUtil;
import java.util.Date;
/**
* Created by Melon on 17/3/2.
*/
public class BaseEntity {
... | 20.215686 | 58 | 0.677013 |
d85ee9b694ef7ba1833a535330c4c66a93c0d181 | 1,844 | package com.azureip.ipspider.service;
import com.azureip.ipspider.mapper.ProxyIPMapper;
import com.azureip.ipspider.model.ProxyIP;
import com.azureip.ipspider.task.ProxyIPVerifyTask;
import org.apache.http.HttpStatus;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.jsoup.... | 31.254237 | 106 | 0.692516 |
e0656811b5a9d454df62548d06aeed622feafc5a | 3,878 | /*******************************************************************************
* Copyright 2014 United States Government as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you m... | 42.152174 | 95 | 0.792935 |
4cabdebff482f1b625fa85080ab2d5b33ac43aa6 | 4,115 | import java.util.*;
class Item
{
public int item_id;
public String description;
public int price_per_quantity;
public Item(int item_id, String description, int price_per_quantity)
{
this.item_id = item_id;
this.description = description;
this.price_per_quantity = price_per_quantity;
}
publi... | 26.548387 | 120 | 0.573026 |
965f844cfd5a49b6adf268e58cf9add1be4febdb | 1,386 | package en.sunny.inheritance.rest;
import java.time.Instant;
import java.util.List;
import org.springframework.data.rest.webmvc.PersistentEntityResource;
import org.springframework.data.rest.webmvc.PersistentEntityResourceAssembler;
import org.springframework.data.rest.webmvc.RepositoryRestController;
import org.spri... | 38.5 | 78 | 0.83189 |
e03ab7bbbf3d012e0c9bf769e36f194a4e3ec0d9 | 2,686 | /*
* 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 br.com.uechi.util;
import java.util.Date;
/**
*
* @author paulo.uechi
*/
public class configuracao {
private Bool... | 20.821705 | 79 | 0.656739 |
8a54dfa01f063acb868c0cd12e37a89aacbf5100 | 5,922 | /*
Foilen Infra UI
https://github.com/foilen/foilen-infra-ui
Copyright (c) 2017-2021 Foilen (https://foilen.com)
The MIT License
http://opensource.org/licenses/MIT
*/
package com.foilen.infra.ui.services;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import java.util.T... | 34.430233 | 159 | 0.629348 |
6155b7ba47d0b55a73e3ac831ec8c3aee6f4431a | 1,993 | package com.github.rmohr.cockpitj.core.channel;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
public class DbusCallBuilder {
... | 26.573333 | 83 | 0.663322 |
11c083b48da5e9de64539b60ccbf855d5bc6d8cf | 1,205 | package com.DebjoyBuiltIt.placemark;
import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;
public class MarkerModel extends RealmObject {
@PrimaryKey
private long id;
private String title;
private String emoji;
public long getId() {
return id;
}
public void setId... | 16.971831 | 48 | 0.606639 |
df000bcc4dfadfe91a58d4382856ba01baeb931d | 903 | package com.infotamia.cosmetics.filters;
import com.infotamia.cosmetics.rest.user.login.FacebookCustomerLoginResource;
import javax.ws.rs.core.UriBuilder;
import org.apache.commons.collections4.list.UnmodifiableList;
import java.util.ArrayList;
import java.util.List;
/**
* skip http requests from further processing... | 29.129032 | 111 | 0.739756 |
d11608ab5711dc267c5c6efbaba31d4bf38acb8d | 1,746 | package com.sunj.gankio.ui.fragment;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import com.sunj.gankio.ui.base.BaseMultiPagesFragment;
import com.sunj.gankio.util.ConstantUtils;
import java.util.ArrayList;
/**
* @Description:
* @Author: sunjing
* @Time: 2018/10/13 10:12 PM
*/
public cla... | 32.943396 | 100 | 0.67354 |
f0e9391d0b8b63b4a86d4dc5783eaadb6fd33874 | 234 | package com.revature.dao;
import java.util.List;
import com.banking.Application;
public interface ApplicationDao {
public void create(Application a);
public void update(Application a);
public List<Application> readAll();
}
| 15.6 | 36 | 0.764957 |
8139a3c8e782b7974aaebd20b9e75a8e4fc685f8 | 3,452 | package com.rpc.server.provider.app;
import com.rpc.server.provider.service.Calculator;
import com.rpc.server.provider.service.CalculatorImpl;
import com.rpc.server.rpcrequest.CalculateRpcRequest;
import com.rpc.server.rpcrequest.SendRpcRequest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.i... | 37.11828 | 114 | 0.550116 |
8b2766f4481a37caffee3e0fa3041cc95d913d73 | 780 | package com.pacgame.provider;
import com.pacgame.provider.alignment.*;
public class AlignmentProviderImpl implements AlignmentProvider {
@Override
public VerticalAlignmentProvidedObject getTop() {
return new Top();
}
@Override
public VerticalAlignmentProvidedObject getVCenter() {
... | 21.666667 | 65 | 0.678205 |
7ca94dc1020301021088bf279ab9cb42ee3f16da | 1,823 | package com.fishercoder.solutions;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.PriorityQueue;
public class _621 {
public static class Solution1 {
public int leastInterval(char[] tasks, int n) {
Map<Character, Integer> ma... | 30.898305 | 91 | 0.420735 |
04d3484105c8e58ecc012b54537d78614fc91a3c | 1,248 | package challenges.strings;
import java.util.HashMap;
/*
* A string is said to be a child of a another string if it can be formed by deleting 0 or more characters from the other string. Given two strings of equal length, what's the longest string that can be constructed such that it is a child of both?
For example,... | 32 | 259 | 0.553686 |
a8cbc30551d507c183582ba63782ce00954565cd | 2,889 | package com.coding.coupon.template.common;
import com.coding.coupon.common.DictDefinition;
import com.coding.coupon.common.JsonConverter;
import com.coding.coupon.common.vo.TemplateRule;
import javax.persistence.AttributeConverter;
/**
* 转换器集合类.
*
* <p>创建时间: <font style="color:#00FFFF">20191214 14:36</... | 32.1 | 99 | 0.656282 |
0b413362293379c87381f6349f3b29d3ddfcb89d | 3,156 | package com.activiti.common.utils;
import com.activiti.common.quartz.QuartzManager;
import com.activiti.mapper.ScheduleMapper;
import com.activiti.mapper.UserMapper;
import com.activiti.pojo.schedule.ScheduleDto;
import com.activiti.pojo.user.StudentWorkInfo;
import com.alibaba.fastjson.JSONArray;
import org.joda.time... | 45.085714 | 129 | 0.704373 |
63829c272d157a89799c37e58c2274561e3e4df8 | 2,085 | package org.prototype4fun.experimental.data;
import com.google.common.hash.HashFunction;
import com.google.common.hash.Hasher;
import com.google.common.hash.Hashing;
import org.apache.commons.lang3.RandomStringUtils;
import org.jetbrains.annotations.NotNull;
import org.openjdk.jmh.annotations.Level;
import org.openjdk... | 32.076923 | 83 | 0.696403 |
1398796fdb64fab733fbe86b90bbc4205dafb338 | 2,837 | package net.uoit.rmd.asm;
import lombok.Getter;
import org.objectweb.asm.Type;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
/**
* Represents a set of dependencies that class
* may have
*/
class DependencySet {
private final @Getter Set<String> dependencies =... | 27.019048 | 111 | 0.600282 |
81a2bb0151880a655f05a8295be87f2c85eedc69 | 922 | package com.saaavsaaa.client.zookeeper;
import com.saaavsaaa.client.zookeeper.section.ZookeeperListener;
import org.apache.zookeeper.WatchedEvent;
/**
* Created by aaa
*/
public class TestSupport {
public static final String AUTH = "digest";
public static final String SERVERS = "127.0.0.1:3333";
public ... | 34.148148 | 97 | 0.559653 |
69179cda64f812323156e91b9fe8f4e8ba6a7064 | 815 | package app;
import template.Fibonacci;
public class Solve {
public static void main(String[] args) {
int min = 0;
int max = 20;
try {
// Simple tests to verify user entry.
for (long n = min; n < max; n++) {
long userValue = Fibonacci.fibonacci(n)... | 25.46875 | 68 | 0.494479 |
aac51d3ac257d16e79bdddf7d111c26364141da8 | 26,989 | /*
* JBoss, Home of Professional Open Source.
* Copyright 2011, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* unde... | 46.855903 | 190 | 0.679758 |
e8f9dc2b57046b099b66b5d43363b7181ac02352 | 1,060 | package amu.zhcet.core.error;
import amu.zhcet.data.ItemNotFoundException;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;... | 34.193548 | 78 | 0.742453 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.