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 |
|---|---|---|---|---|---|
9bc150100a934c89d28144a32756c1526731a329 | 15,225 | package com.xyoye.dandanplay.ui.activities;
import android.Manifest;
import android.annotation.SuppressLint;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.KeyEvent;
impor... | 36.25 | 188 | 0.623383 |
be71b611dd10e54adf380b580206ae6f5a35c9dd | 1,437 | package de.perdian.divelog.web.api.places;
import java.io.Serializable;
import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
public class PlacesSearchResult implements Serializable {
static final long serialVersionUID = 1L;
p... | 28.74 | 115 | 0.727209 |
3cb2036b891fbd3fa73a018f77a691007829fdff | 540 | package ma.glasnost.orika.test.unenhance.inheritance2;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import javax.persistence.OrderBy;
import java.util.Set;
/**
* @author Sergey Vasilyev
*/
@Entity
public class RoomEntity extends AbstractEntity {
private S... | 20.769231 | 54 | 0.774074 |
0e94f484c0e34bbae9430e57beab22390d88eeec | 440 | package io.easyb.domain;
import io.easyb.util.PreProcessorable;
public class SpecificationPreProcessor implements PreProcessorable {
public String process(String specification) {
return specification
.replaceAll("(\\{*\\s)as a([^\\}]*\\})", "$1as_a$2")
.replaceAll("(\\{*\\s... | 33.846154 | 75 | 0.55 |
ee45baf467a7c04f2df5c109511bcf5217b7f130 | 51,389 | package e.a.a.a.y0.a;
import androidx.core.app.NotificationCompat;
import androidx.renderscript.ScriptIntrinsicBLAS;
import e.a.a.a.y0.a.a;
import e.a.a.a.y0.a.o.b;
import e.a.a.a.y0.b.a1.h;
import e.a.a.a.y0.b.b0;
import e.a.a.a.y0.b.b1.a;
import e.a.a.a.y0.b.b1.c;
import e.a.a.a.y0.b.c1.a0;
import e.a.a.a.y0.b.f0;
i... | 28.142935 | 205 | 0.395396 |
83c6a3be17da2ef7e6ec4b3fcba429d8b2e5db18 | 5,443 | package shef.nlp.supple.prolog.cafe;
import jp.ac.kobe_u.cs.prolog.lang.*;
import jp.ac.kobe_u.cs.prolog.builtin.*;
/*
* *** Please do not edit ! ***
* @(#) PRED_add_default_values_2.java
* @procedure add_default_values/2 in compile_grammar.pl
*/
/*
* @version Prolog Cafe 0.8 November 2003
* @author Mutsunori B... | 31.830409 | 88 | 0.635495 |
f791d951f8026c0cb73e7fa8121b490253155370 | 12,054 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 35.875 | 150 | 0.686743 |
d99b801053ad21905781730014a0799a31c8d976 | 7,522 | package com.thinkgem.jeesite.modules.entrust.ExportUtil;
import freemarker.template.Configuration;
import freemarker.template.DefaultObjectWrapper;
import freemarker.template.Template;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;
import org.springframework.util.Str... | 34.663594 | 181 | 0.637862 |
3cc9c513f7274fcca3dc52344c64f38cba2bd102 | 5,907 | /**
* 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... | 31.92973 | 137 | 0.707296 |
1a3ecb6735c96e53172fe0e2a3c18135e074a7a9 | 4,836 | /*
* 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... | 31.815789 | 107 | 0.634822 |
76c44c39084b4867d5db4be9c2aeb85f97d4c407 | 381 | // Tests that type inference works inside a field declaration initializer.
// This is a regression test for a NullPointerException problem.
// See https://bitbucket.org/extendj/extendj/issues/212/nullpointerexception-in-type-inference
// .result: COMPILE_PASS
import java.util.Collections;
import java.util.List;
public... | 34.636364 | 94 | 0.779528 |
b9732dc6841e56c7d22388350bf8fe0bb7ed917b | 1,669 | package fi.nls.oskari.util;
import org.apache.commons.csv.CSVFormat;
import org.apache.commons.csv.CSVPrinter;
import java.io.IOException;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
import java.nio.charset.Charset;
import java.util.Map;
/**
* Created by TMIKKOLAINEN on 30.12.2014.
*/
public cl... | 29.803571 | 141 | 0.62852 |
817bc85129fd17612db7801b40446f0c1f6a8f82 | 1,871 | /**
* 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 m... | 33.410714 | 76 | 0.719401 |
89eaa22aef30845d2ab5f8a495b8c90b5f89432f | 4,722 | package com.alibaba.arthas.tunnel.client;
import java.net.URI;
import java.net.URISyntaxException;
import javax.net.ssl.SSLException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import io.netty.bootstrap.Bootstrap;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelFutureListener;
im... | 40.358974 | 121 | 0.663702 |
9e83b5531d53f7807d121e9df1148f0d9bdae970 | 192 | package com.threerings.honeybird;
/**
* Extends Dimensions and Metrics to expose all the builtin sources from one interface.
*/
public interface Sources
extends Dimensions, Metrics
{
}
| 19.2 | 87 | 0.760417 |
af56d1f7237f039fb185bd72ef23b1456305292d | 1,847 | package org.ships.movement.autopilot;
import org.core.source.viewer.CommandViewer;
import org.core.vector.type.Vector3;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
public class BasicFlightPath implements FlightPath {
protected Vector3<Integer> first;
protected Vector3<Integ... | 32.982143 | 237 | 0.701137 |
75cf9edb25a551715e6994f61ccbbe9906275b58 | 7,651 | /* GENERATED SOURCE. DO NOT MODIFY. */
/*
*******************************************************************************
* Copyright (C) 2007-2012, International Business Machines Corporation and *
* others. All Rights Reserved. *
*****************************... | 38.837563 | 120 | 0.50843 |
a979bba8abff746b7d6fea0ec1536c3cf6e16d55 | 1,180 | package io.subutai.common.environment;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.base.Preconditions;
import com.google.common.base.Strings;
import com.google.common.collect.Lists;
public class PeerTempla... | 22.692308 | 87 | 0.728814 |
de488da80b5b97f4fe6f50da2699160ba92dec34 | 1,469 | package org.stellar.anchor.platform.controller;
import java.io.IOException;
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import org.stellar.anchor.api.exception.SepNotFoundExcep... | 34.97619 | 84 | 0.773315 |
aa084bc4fd20fa4d40aa45225c8babdaa196ae05 | 1,566 | /*
* Copyright 2016 The Bazel Authors. 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 required by a... | 27.964286 | 75 | 0.736271 |
3caba4e4e113fb1bdf13ede4c6216a8487d72928 | 5,944 | package org.monet.core.model.mosaic;
import org.hamcrest.core.*;
import org.junit.*;
import org.monet.core.model.Account;
import org.monet.core.model.namespace.NamespaceId;
import org.monet.core.model.primitive.*;
import org.monet.core.test.Utils;
public class DefaultMosaicTransferFeeCalculatorTest {
private static ... | 34.964706 | 146 | 0.760767 |
3ed3a9ce9d5c6b8f5ad9464cac40f6499a119838 | 2,269 | /*
* Copyright (c) 2013 Oracle and/or its affiliates. All rights reserved. This
* code is released under a tri EPL/GPL/LGPL license. You can use it,
* redistribute it and/or modify it under the terms of the:
*
* Eclipse Public License version 1.0
* GNU General Public License version 2
* GNU Lesser General Public... | 32.884058 | 96 | 0.605553 |
ae9bf3d936e70f5fd812ddb0d3952e341b11627f | 9,995 | package ca.sait.vezorla.service;
import ca.sait.vezorla.controller.util.CustomerClientUtil;
import ca.sait.vezorla.exception.InvalidInputException;
import ca.sait.vezorla.model.Account;
import ca.sait.vezorla.model.Cart;
import ca.sait.vezorla.model.Invoice;
import ca.sait.vezorla.model.LineItem;
import ca.sait.vezorl... | 32.035256 | 133 | 0.645323 |
272caf7a0368f23181ce448f3c7dddf80d0ee266 | 4,251 | package io.rsocket.examples.transport.tcp.lease.advanced.common;
import java.util.concurrent.BlockingDeque;
import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicIntegerFieldUpdater;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
impor... | 29.317241 | 94 | 0.686427 |
ab3b2ae08e591b6120e56a488a921fa7037fbc77 | 2,152 | package org.namstorm.deltaforce.annotations.processors;
import javax.annotation.processing.ProcessingEnvironment;
import javax.tools.Diagnostic;
import org.namstorm.deltaforce.annotations.DeltaField;
import org.namstorm.deltaforce.annotations.processors.util.DFUtil;
import com.sun.tools.javac.code.Symbol;
/**
* Me... | 29.081081 | 113 | 0.687732 |
325caf71fc77d3ea9599f30e546d6657801fec05 | 5,313 | package io.whileaway.code.open.craft.core.gui.lwjgl;
import io.whileaway.code.open.craft.core.boot.ui.GUIController;
import io.whileaway.code.open.craft.core.gui.GameUIService;
import io.whileaway.code.open.craft.core.gui.lwjgl.util.Time;
import io.whileaway.code.open.craft.essential.modular.annontion.Inject;
import ... | 33.415094 | 102 | 0.623188 |
92bbbde03bb8767ab239a8aaacdb7f03ad7a47b8 | 510 | package com.google.android.gms.common.config;
import com.google.android.gms.common.config.GservicesValue;
/* compiled from: com.google.android.gms:play-services-basement@@17.3.0 */
final class zzd extends GservicesValue<Integer> {
zzd(String str, Integer num) {
super(str, num);
}
/* access modifi... | 30 | 74 | 0.682353 |
2af7fa99701977e171ace7fe1935cbb397f47d8c | 7,629 | //////////////////////////////////////////////////////////////////////////
// Copyright 2017-2019 eBay Inc.
// Author/Developer(s): Aravind Kannan, Scott Izu
//
// 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... | 42.149171 | 185 | 0.726308 |
9d4f9c6d4525d44905ae15ec37aaedd38a3fee99 | 1,991 | package com.michaeljordanr.androidroom_crud.person.viewmodel;
import android.app.Application;
import android.arch.lifecycle.LiveData;
import android.arch.lifecycle.ViewModel;
import android.arch.lifecycle.ViewModelProvider;
import android.support.annotation.NonNull;
import java.util.List;
import com.michaeljordanr.a... | 30.630769 | 91 | 0.709694 |
9fbd4ba9454dbd20f9acf3e95ec4ce47062193f2 | 12 | //PROBLEM:
| 4 | 10 | 0.583333 |
9448215e3baf25df905b4c99e05a45b4823083eb | 922 | package com.amandariu.tagger.demo.data.source;
import android.support.annotation.NonNull;
import com.amandariu.tagger.ITag;
import java.util.List;
/**
* @author amandariu (11/12/17)
*/
public interface ISourceBase {
/**
* Methods required for working with the TagsDataSource.
*/
interface ILoadTags... | 24.263158 | 63 | 0.630152 |
fee678805461d4a8a72bb05a5eeac65f037b19d4 | 3,986 | /**
* 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.964912 | 94 | 0.650025 |
3162a78a7226ff252772560488f4b5316ae55851 | 4,742 | package org.pitrecki.cipher.ciphtypes.substition.complex;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.pitrecki.cipher.ciphtypes.Cipher;
import org.pitrecki.cipher.ciphtypes.substition.complex.baconian.BaconianCipher;
import java.util.Arrays;
import java.util.List;
import ja... | 40.529915 | 107 | 0.708562 |
3539acb3b9554eab1430ea19882addda3ce875a3 | 740 | package org.openntf.domino.graph2.builtin;
import com.tinkerpop.frames.Adjacency;
import com.tinkerpop.frames.Incidence;
import com.tinkerpop.frames.VertexFrame;
public interface Editor extends VertexFrame {
@Incidence(label = Edits.LABEL_EDITS)
public Iterable<Edits> getEdits();
@Incidence(label = Edit... | 28.461538 | 49 | 0.77027 |
0c01be005d168e4cea9efea633dc425ecd8cded7 | 1,126 | package uk.org.webcompere.systemstubs.jupiter.examples;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import uk.org.webcompere.systemstubs.jupiter.SystemStub;
import uk.org.webcompere.systemstubs.jupiter.SystemStubsExtension;
import uk.org.webcompere.systemstubs.security.AbortEx... | 34.121212 | 89 | 0.763766 |
b9da3aaf3965260b506b44d85adcfa8777cd7dec | 563 | package com.github.sweetim;
import com.github.sweetim.model.EntryResultModel;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public cl... | 25.590909 | 81 | 0.68206 |
6c81b20d1dddd9eb003d46e2d7c70dee41732c06 | 8,461 | /**
* 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 m... | 40.483254 | 104 | 0.705236 |
a1e8ecd2ace597234237c1b979af13d02c341b2b | 464 | package org.erp.tarak.otherPayment;
import java.util.List;
public interface OtherPaymentItemService {
public void addOtherPaymentItem(OtherPaymentItem otherPaymentItem);
public List<OtherPaymentItem> listOtherPaymentItems();
public OtherPaymentItem getOtherPaymentItem(long otherPaymentItemId);
pub... | 25.777778 | 72 | 0.814655 |
3cc3c4a90eeeda5ca2f6ec731060ec77565c1816 | 1,736 | package com.tvd12.ezyfox.data.testing;
import static org.testng.Assert.assertEquals;
import java.util.Set;
import org.testng.annotations.Test;
import com.tvd12.ezyfox.collect.Sets;
import com.tvd12.ezyfox.data.EzyIndexedDataClassesFetcher;
import com.tvd12.ezyfox.data.EzySimpleIndexedDataClassesFetcher;
import com.... | 37.73913 | 98 | 0.785138 |
f3d36b96f4e91cc95482cd3884eeddb5cb75561f | 926 | import java.math.BigDecimal;
import java.math.RoundingMode;
public class Loader {
public static void main(String[] args) {
int b = Integer.parseInt("11", 8); // 11 в восьмеричной это
System.out.println(b); // 9 в десятичной
char cArr[] = {'a','b','c','d'};
String s = new String(c... | 31.931034 | 91 | 0.616631 |
dde5870ffdd949f9275df6ff62ef7f518fd00adf | 14,983 | /*
* 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 ... | 31.345188 | 117 | 0.605953 |
452cc205efc0b904deedb7a86b07aecdfd67164e | 719 | package com.alvarlagerlof.temadagarapp.RealmObject;
import io.realm.RealmList;
import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;
/**
* Created by alvar on 2017-06-25.
*/
public class DateRealmObject extends RealmObject {
@PrimaryKey
private int id;
private String date;
private Re... | 25.678571 | 92 | 0.719054 |
b6e35820ae8101c11850fe28c88fb8d2095f3015 | 2,339 | /*
* 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 n... | 44.132075 | 170 | 0.765284 |
cbda30f63b9c5d9c8de064542e5064274adc9c5f | 1,961 | /*
* Copyright (C) 2010 The Guava 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 applicable law or agre... | 33.810345 | 98 | 0.717491 |
242e23d235e96d4da87afe1753279d5d35dc9b00 | 4,814 | /*
* Created by Michael Carrara <michael.carrara@breadwallet.com> on 10/29/19.
* Copyright (c) 2019 Breadwinner AG. All right reserved.
*
* See the LICENSE file at the project root for license information.
* See the CONTRIBUTORS file at the project root for a list of contributors.
*/
package com.blockset.walletk... | 32.972603 | 118 | 0.670129 |
8eb7db9b75a9fb08a042df3d3997ab9a80b95239 | 2,040 | package com.onesait.edge.engine.zigbee.influxdb.json;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({ "initDate", "endDate", "arg... | 24 | 92 | 0.709804 |
8ce54b093eedeaef30cdb1e0df93006ae330ebc6 | 8,369 | package org.comroid.poste;
import org.comroid.api.ContextualProvider;
import org.comroid.mutatio.model.RefContainer;
import org.comroid.poste.entity.Domain;
import org.comroid.poste.entity.Inbox;
import org.comroid.poste.entity.PosteEntity;
import org.comroid.poste.rest.EndpointLibrary;
import org.comroid.poste.rest.E... | 44.280423 | 540 | 0.629346 |
d1626ef1fde2a8992b65ca6777a9c68387fdcc47 | 5,922 | package com.nepxion.discovery.console.desktop.workspace.topology;
/**
* <p>Title: Nepxion Discovery</p>
* <p>Description: Nepxion Discovery</p>
* <p>Copyright: Copyright (c) 2017-2050</p>
* <p>Company: Nepxion</p>
* @author Haojun Ren
* @version 1.0
*/
import java.awt.Point;
public class TopologyEntity {
... | 36.331288 | 111 | 0.554036 |
86cc90965beba322f83e347acda086d4f5cb0afd | 11,292 | package moze_intel.projecte.utils.text;
import moze_intel.projecte.PECore;
import net.minecraft.util.Util;
public enum PELang implements ILangEntry {
//Vanilla
UNKNOWN_TAG("arguments.item.tag.unknown"),
//Misc
PROJECTE("misc", "mod_name"),
SECONDS("misc", "seconds"),
EVERY_TICK("misc", "seconds.every_tick"),
H... | 46.661157 | 99 | 0.773734 |
e580f383fcca8c7c3c5cdf97293037c19e6f05ea | 1,747 | package com.json.chart.widget.chart;
import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.view.View;
import java.util.ArrayList;
import java.util.List;
import androidx.annotation.Nullable;
/**
* Created on 2020/10/21.
*
* @author json
*/
public abstrac... | 25.318841 | 108 | 0.688609 |
701b210d9be6b4dfa9c72a35902454c0985e8c8d | 4,907 | /*
* Copyright 2020 Aleksandr Dorogush
*
* 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... | 36.080882 | 96 | 0.702262 |
570f1db76d1050c764ce3d3da9184d43c31cd991 | 3,486 | /*
* Copyright (c) 2016, Alex Fawkes
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLA... | 34.176471 | 92 | 0.656913 |
48f4c335c5b2abf390d7864b6cce133c2e308ce7 | 10,172 | /*
* The MIT License
*
* Copyright 2015 Tim Boudreau.
*
* 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, mo... | 35.691228 | 114 | 0.618659 |
afadd85b2426973fbe4628df5c5342189d4b5922 | 141 | package com.enterprise.service;
import com.enterprise.entity.Contact;
/**
*/
public interface ContactService extends Services<Contact>{
}
| 15.666667 | 58 | 0.780142 |
6d8cc6fc42a9d3b9a93010ec894073613c201c82 | 12,603 |
package com.navercorp.pinpoint.profiler.plugin.xml.transformer;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.EnumSet;
import java.util.List;
import com.navercorp.pinpoint.bootstrap.config.ProfilerConfig;
import com.navercorp.pinpoint.bootstrap.context.TraceContext;
import com.navercorp.pinpo... | 42.722034 | 254 | 0.706895 |
83e0512820f653ea8f579c19c4177102c3f84bf5 | 15,456 | /*
* 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... | 48 | 122 | 0.64538 |
033dd791bd13ce65b2caaea5d0a12e8809cf75c0 | 5,855 | /**
* Copyright © 2013-2021 The OpenNTF Domino API Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | 28.285024 | 112 | 0.718873 |
a965f925c9c3d640298a10486d1a43ca5e2becce | 2,177 | package ch.frostnova.cli.idx.sync.console;
import static ch.frostnova.cli.idx.sync.console.AnsiEscape.*;
import static ch.frostnova.cli.idx.sync.console.Console.*;
public class ConsoleProgressBar {
private final ProgressBarStyle progressBarStyle;
public ConsoleProgressBar() {
this(ProgressBarStyle.a... | 39.581818 | 154 | 0.655489 |
9afd5e50ce8794ce13a699b64c598eb8e7d0664b | 1,793 | package com.chun.customer.rest;
import com.chun.customer.entity.Person;
import com.chun.customer.service.PersonRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.data.domain.Page;
import org.spri... | 38.978261 | 158 | 0.744562 |
6442cc5cde0a0dc1946e7843cfb94c22acc8584e | 862 | package com.maemresen.datamining.project.similarity.model;
/**
* The result of similarity comparison based on an algorithm of two strings...
*
* @author Emre Sen - Apr 2, 2019
* @contact maemresen07@gmail.com
*
*/
public class CheatDetectionResult {
private final String detectionAlgorithm;
private final Answ... | 20.52381 | 103 | 0.741299 |
0fc44874e99218a9b6b27c71877820fdf1fa1f15 | 3,064 | package com.wind.compress;
import com.wind.common.Constants;
import com.wind.common.IoUtil;
import java.io.*;
import java.util.zip.GZIPInputStream;
import java.util.zip.GZIPOutputStream;
/**
* @Title: GZipUtil
* @Package com.wind.compress
* @Description: GZIP压缩工具类
* @author wind
* @date 2018/10/12 17:47
* @vers... | 25.966102 | 78 | 0.545039 |
034634aa6da46537560526371b01bc897783ccb7 | 4,169 | /**
* Copyright (c) 2002-2013 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j 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 Foundati... | 35.939655 | 96 | 0.636843 |
e7c91b8a42607fb2ba1d7192e2a6bcbf5c3c4ed4 | 2,250 | /*
* 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
* distributed u... | 22.5 | 75 | 0.707556 |
02f1c87e6b43d61b0a1a7b4138bba2319f949317 | 709 | package de.adesso.wickedcharts.chartjs.jackson.serializer;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;
import de.adesso.wickedcharts.chartjs.ch... | 32.227273 | 100 | 0.834979 |
0f72da9bbc39e6555dab22849e1aa646b828869e | 1,623 | /*
* Copyright (c) 2020 shedaniel
*
* 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... | 40.575 | 108 | 0.775108 |
bd5a8ab2ca7b35fe399d6df4b69446458bc37242 | 252 | package com.canmeizhexue.javademo.designpattern.abstractfactory;
public class Factory implements IFactory {
public IProduct1 createProduct1() {
return new Product1();
}
public IProduct2 createProduct2() {
return new Product2();
}
}
| 15.75 | 64 | 0.738095 |
2ac428ba15128c516945d55b40d97c209a7d07d1 | 825 | package com.google.android.gms.internal.ads;
import java.util.concurrent.Executor;
public final class zzcej implements zzdti<zzbuz<zzbsr>> {
/* renamed from: a */
private final zzdtu<zzcep> f26482a;
/* renamed from: b */
private final zzdtu<Executor> f26483b;
private zzcej(zzdtu<zzcep> zzdtu, z... | 28.448276 | 91 | 0.649697 |
0e140fdd08a296c2283ced34676afe29b815e039 | 974 | package graph.implementation;
public class Vertex<T extends Comparable<T>> implements Comparable<Vertex<T>>{
private int id;
private T value;
private Vertex(){
}
public Vertex(T value) {
this.id = value.hashCode();
this.value = value;
}
public int getId() {
retu... | 17.392857 | 78 | 0.544148 |
07da725d0eec5678965e43f745062cd5e4f1667f | 4,277 | /* Copyright 2009-2020 David Hadka
*
* This file is part of the MOEA Framework.
*
* The MOEA Framework 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... | 38.1875 | 120 | 0.722703 |
35765882045d293493590e7e4ad4eceb70667105 | 1,220 | package com.edgar.core.exception;
/**
* 异常码.
*
* @author Edgar
*/
public enum BusinessCode implements ErrorCode {
/**
* 空指针异常.
*/
NULL(0),
/**
* SQL异常.
*/
SQL(10),
/**
* 数据过期
*/
EXPIRED(20),
/**
* 未登录用户
*/
UNLOGIN(30),
/**
* 密码错误次... | 11.84466 | 47 | 0.406557 |
2abe23db77bc88694234962efacd6a867d3f55fb | 2,205 | package com.cczyWyc.task.task_03.gateway.inbound;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.buffer.PooledByteBufAllocator;
import io.netty.channel.Channel;
import io.netty.channel.ChannelOption;
import io.netty.channel.epoll.EpollChannelOption;
import io.netty.channel.nio.NioEventLoopGroup;
import io.... | 37.372881 | 90 | 0.670748 |
2c28e8018e24571fc0973267bb4cf4981fa04692 | 8,487 | package com.laputa.laputa_sns.common;
import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.NotNull;
import java.util.*;
/**
* 索引列表,使用链表的形式,支持随机读写和位置变更
* @author JQH
* @since 下午 3:59 20/02/22
*/
public class IndexList {
public static final int LEFT = 1;
public static final int RIG... | 26.772871 | 102 | 0.514552 |
abd4158fd0452fdd60872644805cf14d8b3ff357 | 378 | package com.zhn.demo.mode.factory.simple;
public class PizzaFactory {
public static Pizza createPizza(String pizzaName){
if ("apple".equals(pizzaName)) {
return new ApplePizza();
} else if ("banana".equals(pizzaName)) {
return new BananaPizza();
} else {
... | 23.625 | 54 | 0.584656 |
aa4ee701c92e53cb4b0c578cb0fada6d721fa9a5 | 1,488 | package ctf.kafka.streams.test.drivers.ip;
import ctf.kafka.streams.common.kafka.Topics;
import ctf.kafka.streams.common.model.LoginRequestRaw;
import ctf.kafka.streams.test.utils.KafkaUtil;
import org.apache.kafka.clients.producer.KafkaProducer;
import org.apache.kafka.clients.producer.ProducerRecord;
import java.ti... | 35.428571 | 132 | 0.62836 |
fe165a4f281be1cc42eb411da61d56e10d0b7c56 | 3,802 | package burlap.behavior.singleagent.planning.deterministic.informed.astar;
import burlap.behavior.singleagent.planning.deterministic.informed.BestFirst;
import burlap.behavior.singleagent.planning.deterministic.informed.Heuristic;
import burlap.behavior.singleagent.planning.deterministic.informed.PrioritizedSearchNode... | 32.775862 | 136 | 0.761704 |
972509c7782471fe5d56fa41e010541baffb14ff | 495 | package tech.tagline.trevor.api.data;
import tech.tagline.trevor.api.instance.InstanceConfiguration;
import tech.tagline.trevor.api.database.DatabaseConfiguration;
import tech.tagline.trevor.api.network.event.EventProcessor;
public interface Platform {
boolean init();
InstanceConfiguration getInstanceConfigurat... | 23.571429 | 62 | 0.806061 |
f2944d0a735f8e47956dce798c5a072d963eec20 | 1,317 | /*
* Copyright 2016, Yahoo Inc.
* Licensed under the Apache License, Version 2.0
* See LICENSE file in project root for terms.
*/
package example;
import com.yahoo.elide.annotation.CreatePermission;
import com.yahoo.elide.annotation.Include;
import com.yahoo.elide.annotation.ReadPermission;
import javax.persisten... | 24.849057 | 72 | 0.722855 |
405b2fc570dc9863b92ca36f8882b37d546ad920 | 188 | package qqsrx.spring.boot.minidouban.service;
import qqsrx.spring.boot.minidouban.domain.Artist;
public interface ArtistService {
public Artist getArtistById(String imdbArtistId);
}
| 23.5 | 53 | 0.81383 |
184dbf33df9d5e16f25e57b6ffdcd92545fcd14a | 105 | package at.metalab.m68k.soup.http;
public interface SoupRequestBuilder<E> {
SoupRequest<E> create();
}
| 17.5 | 40 | 0.761905 |
b08483d0db92bc9b887397c656fad69fd80eeaf9 | 521 | package br.com.zup.propostarefatorada.cartao.integracao.vencimento;
import java.time.LocalDateTime;
public class VencimentoResponse {
private final String id;
private final Integer dia;
private final LocalDateTime dataDeCriacao;
public VencimentoResponse(String id, Integer dia, LocalDateTime dataDeCr... | 27.421053 | 84 | 0.712092 |
fff7e3bfd065daa3c87526b14bdc258078c01ceb | 1,391 | package com.embracesource.edh.hbase.table.create;
import java.io.IOException;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.HBaseConfiguration;
import org.apache.hadoop.hbase.HColumnDescriptor;
import org.apache.hadoop.hbase.HTableDescriptor;
import org.apache.hadoop.hbase.client.HBaseAdm... | 30.23913 | 79 | 0.728972 |
25394e6e926218479fc51274c76b24949b82efb3 | 3,584 | package com.learn2crack.nfc;
import android.app.DialogFragment;
import android.content.Context;
import android.nfc.FormatException;
import android.nfc.NdefMessage;
import android.nfc.tech.Ndef;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.util.Log;
import android.view.LayoutInfl... | 29.138211 | 132 | 0.660435 |
350b52919b2fa42b7d9922a485c7b3c12bbb7343 | 2,452 | /*
* Copyright © 2021 ProStore
*
* 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... | 36.058824 | 85 | 0.730832 |
c1867a3feec34ff543dccd6f8337b99ef3c2cfe8 | 788 |
package io.automatiko.engine.service.exception;
import java.util.HashMap;
import java.util.Map;
import javax.ws.rs.core.Response;
import javax.ws.rs.ext.ExceptionMapper;
import javax.ws.rs.ext.Provider;
import io.automatiko.engine.api.workflow.ProcessImageNotFoundException;
@Provider
public class ProcessImageNotFo... | 31.52 | 107 | 0.781726 |
71a82a37efb580958140546faec1f05169f8cf3f | 1,075 | package com.phicomm.product.manger.dao;
import com.phicomm.product.manger.model.ota.BalanceOtaStatus;
import com.phicomm.product.manger.model.ota.BalanceOtaInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* Ota版本信息处理
*
* @author wei.yan... | 22.395833 | 87 | 0.682791 |
015fbbbb1e8bba55544511df2a353630875a522e | 2,870 | package com.example.bikeshowcase;
import android.content.Intent;
import android.os.Bundle;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity;
import androidx.viewpager2.widget.ViewPager2;
public class DetailsActivity ex... | 39.315068 | 107 | 0.659582 |
a3bc08f7c6e885e5be79401659e12a9aa4706e82 | 865 | package org.tony.transaction.tcc.core.recovery;
import java.util.List;
import org.tony.transaction.tcc.core.AtomContext;
import org.tony.transaction.tcc.core.Composite;
import org.tony.transaction.tcc.core.CompositeTransaction;
import org.tony.transaction.tcc.core.PersistenceManager;
public class RecoveryExecutor {
... | 29.827586 | 122 | 0.737572 |
401b622a09f75bc7c7da07c88dc743c50d69acb4 | 2,182 | package com.craftmend.openaudiomc.generic.networking.rest;
import com.craftmend.openaudiomc.OpenAudioMc;
import com.craftmend.openaudiomc.generic.networking.addapter.GenericApiResponse;
import com.craftmend.openaudiomc.generic.state.states.IdleState;
import com.google.gson.Gson;
import java.io.IOException;
import jav... | 33.060606 | 119 | 0.630156 |
2c82a6d1989db0cbe049aaeca560711d29151694 | 1,327 | package sql;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
public class InitDatabase {
static final String JDBC_DRIVER = "com.mysql.jdbc.Driver";
static final String DB_URL = "jdbc:mysql://localhost:3306/";
static final String USER = "r... | 30.159091 | 69 | 0.545592 |
acb660298538ae6bc55ea186db46bbee4b34c617 | 10,922 | package kernitus.plugin.OldCombatMechanics.module;
import kernitus.plugin.OldCombatMechanics.OCMMain;
import kernitus.plugin.OldCombatMechanics.utilities.Messenger;
import org.bukkit.Bukkit;
import org.bukkit.GameMode;
import org.bukkit.Material;
import org.bukkit.NamespacedKey;
import org.bukkit.Statistic;
import org... | 38.730496 | 152 | 0.661784 |
e47f1fa56f55c097fc6706e7d6efec525f40db9b | 312 | package com.kociszewski.moviekeeper.domain.commands;
import com.kociszewski.moviekeeper.infrastructure.CastDTO;
import lombok.*;
import org.axonframework.modelling.command.TargetAggregateIdentifier;
@Value
public class SaveCastCommand {
@TargetAggregateIdentifier
String castId;
CastDTO castDTO;
}
| 24 | 69 | 0.817308 |
a99076a41aadb3dc9c52d4288a2d3607cf68df40 | 1,851 | /* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0 */
package io.github.mmm.nls;
import io.github.mmm.nls.argument.NlsArguments;
import io.github.mmm.nls.impl.NlsMessageFactoryImpl;
/**
* This is the interface for a factory used to create ins... | 43.046512 | 116 | 0.756888 |
6dabd11d9606a99b7c9b1a2f2b146581b1ebb5b6 | 641 | package ru.job4j.lsp.office;
import java.time.LocalDate;
import java.time.Month;
/**
* Второй контракт LSP.
*
* @author ViktorJava (gipsyscrew@gmail.com)
* @version 0.1
* @since 10.11.2021
*/
public class SecondRule {
public static void main(String[] args) {
WorkDays workDays = new WorkDays();
... | 26.708333 | 68 | 0.663027 |
7e0107c35526e2a4fc12a516416c73d2e0bc6a05 | 510 | package HeiMa.a233_ShuJuJIeGouZhiZhanHeDuiLie;
/**
* @author :LC
* @date : 2021/11/25 19:20
2.7常见数据结构之栈
数据进入栈模型的过程称为:压/进栈
数据离开栈模型的过程称为:弹/出栈
栈是一种数据先进后出的模型
栈顶元素 数据D
数据C
数据B
栈底元... | 17 | 47 | 0.458824 |
90661e6ed8f11dd5e0c2eaa6c97c835da1153b52 | 4,316 | package org.mybatis.spring.annotation;
import org.mybatis.spring.mapper.ClassPathMapperScanner;
import org.mybatis.spring.mapper.MapperFactoryBean;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.beans.factory.support.BeanN... | 38.19469 | 142 | 0.759963 |
d717fd8b30a3961245f8b41265d93862fad01bcd | 1,135 | package com.test.greeting;
import java.util.concurrent.atomic.AtomicLong;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;
@Controller
public class HelloWorldController {
private static final String template = "Hello, %s!";
... | 32.428571 | 120 | 0.718062 |
5291d325e6a32ed47cd6030a4a5bd502237ed1ab | 384 | package br.com.zupacademy.vinicius.proposalmicroservice.business.webclient.contas;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
@FeignClient(name = "cartoes", url = "${feign.client.contas.url}")
public interface CartaoWebClient {
@PostMap... | 32 | 82 | 0.799479 |
a071202bb5fc042794b2a0ca9cee2013370b49c4 | 622 | package org.vaadin.marcus.spring.config;
public class MessageConfigurator {
private static MessageConfigurator messageConfigurator = null;
private final MessagesInfoManager chatMessagesInfoManager = new MessagesInfoManager();
private MessageConfigurator() {
}
public static MessageConfi... | 28.272727 | 91 | 0.697749 |
ce192fe05c1c70800a98eba01ee529d34b933873 | 18,746 | /**
* Copyright 2008-2017 Qualogy Solutions B.V.
*
* 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... | 34.083636 | 198 | 0.700309 |
2277406136af56fe0170eb1e7bd9315df344d412 | 4,728 | package com.jetbrains.edu.coursecreator.handlers;
import com.intellij.ide.IdeView;
import com.intellij.ide.projectView.ProjectView;
import com.intellij.openapi.actionSystem.CommonDataKeys;
import com.intellij.openapi.actionSystem.DataContext;
import com.intellij.openapi.actionSystem.LangDataKeys;
import com.intellij.o... | 37.228346 | 116 | 0.728215 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.