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 |
|---|---|---|---|---|---|
ca4d13d31e5066990aaae60d92743f702ab9ac29 | 205 | package com.atlassian.db.replica.internal;
import java.sql.Connection;
import java.sql.SQLException;
public interface ConnectionOperation {
void accept(Connection connection) throws SQLException;
}
| 20.5 | 59 | 0.809756 |
f873dc7ac89caccfb49b04c55f063c0847ead6ad | 897 | package edu.kit.scc.dem.wapsrv.service;
import org.mockito.Mockito;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import org.springframework.context.annotation.Profile;
/**
* Tests with ... | 26.382353 | 84 | 0.716834 |
3b37ca826938b10a658f1070a0bfa047fa97ea1a | 126 | package client.service;
public class Service {
public Service() {
// TODO Auto-generated constructor stub
}
}
| 12.6 | 42 | 0.65873 |
eca84dbdf8eefe2756aa73895d8938075793ddd0 | 6,283 | package xin.cymall.service.impl;
import com.alibaba.fastjson.JSON;
import com.aliyun.oss.common.utils.LogUtils;
import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.http.util.EntityUtils;
import... | 33.243386 | 110 | 0.769378 |
37868fa6c70c726d068a675b34fa4f864e151fd5 | 3,027 | /*******************************************************************************
* Copyright 2017 Capital One Services, LLC and Bitwise, Inc.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at... | 33.263736 | 81 | 0.737364 |
e2b39c58320da050e8b785950a9ad432819ec769 | 2,770 | import java.util.Scanner;
public class MyMain {
// Generates a random number between 10 and 20, inclusive
public static int randomTeen() {
int WillHarris = (int)(Math.random() * 11) + 10;
return WillHarris;
}
// Use your previous method to generate three random numbers between 10 and ... | 31.123596 | 94 | 0.606137 |
1301b34567ac49b1ef8f95421ff8cacb207bc236 | 1,344 | package com.example.alpha.tencentnewsclientdemo.JavaBean;
/**
* 新闻item实体类
* Created by Alpha on 2016/6/30.
*/
public class NewsItem {
private String title;
private String link;
private String author;
private int comments=0;
private String description;
private String date;
private String ... | 18.666667 | 57 | 0.606399 |
c0fe1086974a5d3614d2efac40a74538e2894298 | 143 | package Modele;
public class FantomeRouge extends Fantome{
public FantomeRouge(Salle salle ){
super.salle = salle;
}
}
| 17.875 | 43 | 0.65035 |
deccca1db26fa28130ef1165ac1f7a05e2b1bab0 | 7,728 | package com.mrbysco.structurevisualizer.keybinding;
import com.mrbysco.structurevisualizer.StructureVisualizer;
import com.mrbysco.structurevisualizer.render.RenderHandler;
import com.mrbysco.structurevisualizer.screen.TemplateSelectionScreen;
import com.mrbysco.structurevisualizer.util.StructureRenderHelper;
import n... | 40.25 | 190 | 0.760999 |
abc13a147946a2e484c68e5a4923e107b8136bc5 | 494 | package it.unive.golisa.cfg.expression.literal;
import it.unive.golisa.cfg.type.GoStringType;
import it.unive.lisa.program.SourceCodeLocation;
import it.unive.lisa.program.cfg.CFG;
import it.unive.lisa.program.cfg.statement.literal.Literal;
public class GoRune extends Literal<String> {
public GoRune(CFG cfg, Source... | 26 | 68 | 0.759109 |
c98bb4a840433fc21f7d60139092cde10659c64e | 6,981 | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
package org.elasticsearch.xpack.ilm;
import org.elasticsearch.action.admin.i... | 46.54 | 135 | 0.724968 |
773f38639a11cc34b2481d5b8d570be73cfc0604 | 140 | package com.luwei.rxbus;
/**
* Created by Tomey at 2018/6/19
*/
public interface IEvent{
int getFlag();
<T> T getContent();
}
| 10.769231 | 32 | 0.614286 |
e6cbb425fbfa6611fabec51bb34f04edbf63c758 | 343 | package org.mikolamb.framework.sub.taskmachine.queue.function;
import java.util.Optional;
/**
* @Author WangGang
* @Description //TODO 任务机队列接口$
* Created by WangGang on 2019/4/18 0018 15:12
**/
public interface MikoLambTaskQueueUnBlockOperation<M> {
/*入队*/
public boolean push(M m);
/*出队*/
public... | 19.055556 | 62 | 0.690962 |
703165954211966f6382f20e2bd9580d6f724d46 | 554 | package com.xmlmind.fo.converter.odt;
import com.xmlmind.fo.zip.ZipEntry;
public class OdtEntry extends ZipEntry {
public String type;
public OdtEntry(String var1, String var2) {
super(var1);
this.type = var2;
}
public OdtEntry(String var1, String var2, String var3) {
this(var1, var2);... | 20.518519 | 61 | 0.638989 |
13495e37d6995f8db546aa32f86e6d08e4a7081d | 1,274 | package com.im.imserver.convertor;
import com.im.imserver.domain.user.Role;
import com.im.imserver.domain.user.UserProfile;
import com.im.imserver.dto.clientobject.UserProfileCO;
import com.im.imserver.gatewayimpl.database.dataobject.UserProfileDO;
import org.springframework.beans.BeanUtils;
public class UserProfileC... | 36.4 | 80 | 0.758242 |
62b305aebc206993a1b9edf1c02130c135bb699b | 2,291 | package com.web.server.webserver.config;
import lombok.RequiredArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.info.BuildProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Con... | 38.183333 | 98 | 0.715408 |
82f8654edc3868ced744f5c727227430b3f81de6 | 169 | import java.util.List;
public class Course {
String userID;
String password;
String courseID;
String courseName;
List<Student>selectedStudent;
}
| 13 | 33 | 0.692308 |
f64114062cd2b58fae154bcba056a2954b782d91 | 144 | package com.scart.dao;
import com.scart.entity.Account;
public interface AccountDAO {
public Account findAccount(String userName );
} | 18 | 49 | 0.75 |
20dae8c8eab4f71225103093291956dd085b08d7 | 193 | package exceptions;
public class HttpRequestException extends Exception {
public HttpRequestException(final String message, final Throwable cause) {
super(message, cause);
}
}
| 24.125 | 78 | 0.746114 |
8e3dcefba66fd182d9cc8d601ebead183a749203 | 3,576 | package blackbird.core.impl;
import java.io.IOException;
import blackbird.core.ComponentImplementation;
import blackbird.core.DInterface;
import blackbird.core.Device;
import blackbird.core.exception.ImplementationFailedException;
import blackbird.core.ports.ParentDevicePort;
import static blackbird.core.avr.Digital... | 33.111111 | 124 | 0.595078 |
8dfaa9d1160b4bb4175501e8a7426ac72b14a803 | 9,261 | package general.common;
import com.fasterxml.jackson.databind.JsonNode;
import com.google.inject.Guice;
import com.google.inject.Injector;
import general.TestHelper;
import models.common.*;
import models.common.workers.Worker;
import org.apache.commons.lang3.tuple.Pair;
import org.junit.After;
import org.junit.Before;... | 41.529148 | 115 | 0.682648 |
f18908098fdd8bb82e6e2542486d7d0442a11c22 | 322 | package com.muhacha.bpm.demos.claims.delegates;
import org.camunda.bpm.engine.delegate.DelegateExecution;
import org.camunda.bpm.engine.delegate.JavaDelegate;
public class SendDeclinedEmail implements JavaDelegate {
@Override
public void execute(DelegateExecution delegateExecution) throws Exception {
}
... | 24.769231 | 79 | 0.804348 |
80c189d22528b8954e9a5d5fbcf712b1a855dbb6 | 411 | package coneforest.cli;
public class OptionDouble
extends OptionHolder<Double>
{
public OptionDouble(final String names)
{
super(names);
}
@Override
public Double parseArg(final String arg)
throws ProcessingException
{
try
{
return Double.parseDouble(arg);
}
catch(final NumberFormatException e)
... | 16.44 | 77 | 0.734793 |
ff3777f7ab4cb5cfab9591c60a17114c242386d7 | 1,305 | /*
Copyright [2013-2014] eBay 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 required by applicable law or agreed to i... | 22.894737 | 82 | 0.759387 |
d5a4b8ac968ca7c93bc52a6c6f316d906debaa18 | 11,088 | package uk.ac.ebi.gxa.loader.service;
import com.google.common.base.Joiner;
import com.google.common.base.Strings;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.google.common.collect.Sets;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import uk.ac.ebi.arrayexpress... | 42.320611 | 165 | 0.653229 |
3acf1e25f794688b1caeb78b0fd78ab30cabcee8 | 2,030 | package cn.quasar.blog.controller;
import cn.quasar.blog.domain.Categories;
import cn.quasar.blog.dto.MessageResult;
import cn.quasar.blog.dto.MessageStatus;
import cn.quasar.blog.service.CategoriesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
impor... | 39.038462 | 107 | 0.769951 |
2751a5279614c69ea0b42237be89832070abdec4 | 4,382 | /*
* Copyright (C) 2021 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... | 31.753623 | 91 | 0.686445 |
a0f5f51bde41f9fb0fc01e70836df9af57fe7c52 | 8,609 | package com.longbridge.greendemo.controller;
import java.util.Date;
import java.util.List;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframewo... | 36.948498 | 141 | 0.766756 |
f0fa15b7fffb42c1ef8de5aaaf7a972a4ab0e944 | 2,491 | package jr.dungeon.wishes;
import jr.dungeon.Dungeon;
import jr.dungeon.Level;
import jr.dungeon.entities.player.Player;
import jr.dungeon.tiles.Tile;
import jr.dungeon.tiles.TileFlag;
import jr.dungeon.tiles.TileType;
import jr.utils.Point;
import java.util.Arrays;
import java.util.concurrent.atomic.AtomicReference;... | 36.101449 | 91 | 0.529506 |
c7113ef56facd95fd245f34ae59c7492f9f70ce2 | 3,550 | package com.clock.systemui.activity;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import com.clock.systemui.R;
import com.clock.systemui.activity.bs.BottomSheetsDemoActivity;
import com.clock.systemui.activity.bt.BarTabDemoActivity... | 40.804598 | 85 | 0.706197 |
b6e048d6f5388ce5f063fce680673668c3935644 | 2,767 | package de.nevini.modules.util.unicode.obfuscate;
import org.apache.commons.lang3.ObjectUtils;
import java.util.HashMap;
import java.util.Map;
import java.util.Random;
public class Obfuscator {
private static final Map<Character, char[]> map;
private static final Map<Character, Character> pam;
static {... | 39.528571 | 106 | 0.437297 |
8edbd4c6b8793803e9b906407b10ffad254a4149 | 46,553 | package net.minecraft.server;
import com.google.common.collect.Lists;
import java.util.Arrays;
import java.util.Comparator;
import java.util.EnumSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.UUID;
import java.util.function.Predicate;
import jav... | 32.737693 | 533 | 0.556312 |
af32d0bff33778f5b11ad8547dab55ceb6d35a8e | 331 | package HeiMa.a161_MaoHeGou;
/**
* @Author Miracle Liuce
* @Date 2021/11/4 19:20
* @Version 1.0
*/
public class Dog extends Animal{
public Dog() {
}
public Dog(String name, int age) {
super(name, age);
}
public void lookDoor(){
System.out.println("狗狗会看门");
... | 15.045455 | 39 | 0.540785 |
1f56da62507ba731a56ee04198053f70d17c97a9 | 1,449 | /*
* #%L
* fujion
* %%
* Copyright (C) 2021 Fujion Framework
* %%
* 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 requ... | 22.640625 | 75 | 0.600414 |
d0d0d0ab0d5b3f5bd53640043ab4b4d2e7c569fb | 758 | package org.suggs.webapps.buildpipeline.concordion;
import org.suggs.webapps.buildpipeline.dsl.DSL;
import org.suggs.webapps.buildpipeline.pages.impl.SeleniumPages;
import org.agileinsider.concordion.junit.ConcordionPlus;
import org.junit.runner.RunWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
... | 28.074074 | 104 | 0.773087 |
d21832d7b70023dfc1bf6c0582454a9f6eb32134 | 6,042 | /*
* 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... | 32.836957 | 88 | 0.704734 |
17717b1c1652aef80aa37b35146ed868ee3ea947 | 2,123 | /*
*
* 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"); y... | 27.934211 | 88 | 0.704663 |
768f8bd052361dec96eae0ba09c19fbc517e65ae | 179 | package com.ttnn.business.cs.dbo;
import javax.inject.Named;
import com.ttnn.framework.support.CSDBOSupport;
@Named
/** 业务运行日志*/
public class CSSL01DBO extends CSDBOSupport
{
}
| 17.9 | 47 | 0.782123 |
965870a4419d0f73acb6bf39110369fb3c64e0a4 | 5,793 |
package it.polito.dp2.RNS.sol1.jaxb;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
i... | 24.54661 | 106 | 0.587778 |
ef707b4d119fd1e8b4e1cc0aef174965fc1df23f | 4,594 | /*
* Tencent is pleased to support the open source community by making BK-CI 蓝鲸持续集成平台 available.
*
* Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
*
* BK-CI 蓝鲸持续集成平台 is licensed under the MIT license.
*
* A copy of the MIT License is included in this file.
*
*
* Terms of the MIT... | 31.465753 | 129 | 0.579016 |
90635b237643a0b660172d81002fa7ce1b60fdcd | 1,188 | package org.javacs;
import static org.hamcrest.Matchers.*;
import static org.junit.Assert.*;
import java.net.URI;
import java.util.List;
import java.util.concurrent.ExecutionException;
import java.util.logging.Logger;
import org.eclipse.lsp4j.*;
import org.junit.Test;
public class FindReferencesTest {
private st... | 31.263158 | 99 | 0.695286 |
fc469065b2635aa7c89b684b71d32111776f57b2 | 94 | package com.volmit.react.util;
public class Ex
{
public static void t(Throwable e)
{
}
}
| 9.4 | 34 | 0.691489 |
9448a00a660ef0a6426a64599111acfc5dda495f | 1,069 | package uk.ac.ebi.pride.cluster.ws.modules.cluster.model;
import java.util.ArrayList;
import java.util.List;
/**
* Statistics
*
* @author Rui Wang
* @version $Id$
*/
public class SpectrumSimilarityStatistics {
// spectrum similarity to the consensus spectrum for the PSMs with the highest ratio peptide sequen... | 30.542857 | 120 | 0.751169 |
06aa5d32c04f9c1aed0513884fe7497a1f750db6 | 14,110 | package com.bx.erp.test.staff;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post;
import static org.springframework.test.web.servlet.result.MockMvcResultHandlers.print;
import static org.springfr... | 40.085227 | 222 | 0.719915 |
371c052500f54daa10c7995ace017bf58f62e011 | 892 | /*
* 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 com.javastore.dtos;
import java.io.Serializable;
/**
*
* @author
* Este objeto nos envia los datos del usuario o cliente ... | 19.822222 | 79 | 0.652466 |
f23a2335bf1a61811672b0f9393a0b9497992f54 | 528 | package p02_ferrari;
public class Ferrari implements Car{
private static String MODEL = "488-Spider";
private String driver;
public Ferrari(String driver) {
this.driver = driver;
}
@Override
public String toString() {
return String.format("%s/%s/%s/%s", MODEL, this.useBrakes()... | 20.307692 | 101 | 0.609848 |
42562193618f10a7210794aa1cb490f5f56170bd | 3,781 | /*
* 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 ... | 30.491935 | 101 | 0.697964 |
7d9dcb3afe91a703cfd7335cce6e94d583f7a049 | 1,765 | /*
* copyright 2012, gash
*
* Gash licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | 32.090909 | 113 | 0.699717 |
e1ce193296027950bdea0daa2ee6f2a7615fbd7b | 124 | package io.quarkus.it.mockbean;
public class SuffixServiceSingleton {
String getSuffix() {
return "";
}
}
| 13.777778 | 37 | 0.645161 |
334b53504506902b041f45f03b232139a44a6fd9 | 6,842 | /*
* Copyright (C) 2013 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 40.247059 | 124 | 0.607717 |
e864edccc6191dccffc5fd2b73a1438ddf0c84d6 | 671 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
package net.dot;
import android.app.AlertDialog;
import android.app.Activity;
import android.os.Bundle;
public class MainActivity extends Activity
{
@Override
protected voi... | 30.5 | 149 | 0.725782 |
1639d7b41832d1a578d0e4c648bc7f2705eaf311 | 220 | package com.kk.api.service;
import com.kk.api.entity.ClazzStudent;
import com.kk.api.core.service.Service;
/**
* @author kk
* @date 2021/05/02
*/
public interface ClazzStudentService extends Service<ClazzStudent> {
}
| 16.923077 | 68 | 0.754545 |
a87a06dcdabc5fc9755e37c92b82025f15659d06 | 2,027 | /*
* Copyright 1&1 Internet AG, https://github.com/1and1/
*
* 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 ap... | 28.957143 | 88 | 0.633942 |
7c6e765b18eb86dc64615ba93fe820e3890fa647 | 542 | package app.service.bags;
import java.util.List;
import org.springframework.stereotype.Service;
import app.dto.BagDto;
import app.model.Bag;
import app.model.User;
@Service
public interface BagsService {
public List<Bag> getAllBagsByColour(String colour);
public List<Bag> getAllBagInStock();
public List<Bag> ... | 18.689655 | 62 | 0.780443 |
07090f9f0467fc0445b786c1702efb67a23cb5ef | 443 | package com.ewem.generator.mapper;
import com.ewem.common.core.mybatisplus.BaseMapperPlus;
import com.ewem.generator.domain.GenTableColumn;
import java.util.List;
/**
* 业务据层
*
* @author ewem
*/
public interface GenTableColumnMapper extends BaseMapperPlus<GenTableColumn> {
/**
* 根据表名称查询列信息
*
*... | 18.458333 | 78 | 0.713318 |
dfe479c5afb460886fd39a21c8e0138496117a71 | 1,831 | /*
* 2007-2016 [PagSeguro Internet Ltda.]
*
* NOTICE OF 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.org/licenses/LICENSE-2.0
*
* Unless requir... | 23.779221 | 75 | 0.691972 |
bbc6e6dde1a06d24890fbee15f8de75720002837 | 1,698 | package com.baerdev.ad.SW04_2.BucketHashSet;
import java.util.Iterator;
public class SingleLinkedList<T> implements Iterable<T> {
private Node start;
private int size = 0;
public void add(T value) {
if (start == null) {
start = new Node(value);
} else {
... | 26.123077 | 61 | 0.393404 |
8514ae9b815853fb0d49772f0079fa11078281a5 | 722 | package de.thoughtgang.cloud;
import de.thoughtgang.cloud.customer.Customer;
import io.vertx.core.http.HttpServerRequest;
import org.jboss.logging.Logger;
import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
@Path("/customer")
... | 24.896552 | 89 | 0.725762 |
5a3e65ce93d54ff93d2d9bb1815f6f088d045b18 | 254 | /**
* Copyright (c) 2019 Yodlee, Inc. All Rights Reserved.
*
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
package com.yodlee.api.model.documents.enums;
public enum DocType {
STMT, TAX, EBILL
}
| 21.166667 | 96 | 0.724409 |
736e5a9506c4b3c9cbb502e8c8b67373ba4602fb | 1,540 | package com.google.sps.servlets;
import com.google.sps.data.BigFootSighting;
import com.google.gson.Gson;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Scanner;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servle... | 32.083333 | 99 | 0.69026 |
8112612917157cca90f42a8f1b56d0694d0df81f | 1,399 | package fi.fmi.avi.converter.tac.lexer;
import java.util.List;
import java.util.Optional;
/**
* Used for constructing {@link LexemeSequence}s one or more {@link Lexeme} at a time.
*
* An instance of this class can be created using {@link LexingFactory#createLexemeSequenceBuilder()}.
*
* @author Ilkka Rinne / Spa... | 23.711864 | 102 | 0.624017 |
493de5447a07573e1ca46dd213df4340b90e3cbd | 11,184 | package cc.duduhuo.simpler.base;
import android.content.Intent;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.... | 38.833333 | 134 | 0.494814 |
275dde5f219fb815a785155a901cadce144c1568 | 477 | package com.gpms20201.brasilemchamas.controllers;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
@RequestMapping("/mq")
public class MapaQueimadasController {
@RequestMapping(value = { "", "/index" ... | 23.85 | 62 | 0.740042 |
90b15b73c0ca35288548041fa9aa2af465343653 | 1,837 | package com.example.oasis_hackathon_app.methods.message.request;
import com.example.oasis_hackathon_app.methods.Query_manager;
import com.example.oasis_hackathon_app.methods.message.model.Message;
import org.json.JSONArray;
import org.json.JSONException;
import java.io.IOException;
import java.util.ArrayList;
publi... | 28.703125 | 100 | 0.63092 |
ffc49866e60b5fb0816144ed1d71a9a3f70861f7 | 16,785 | /*-
* ---license-start
* EU Digital Green Certificate Gateway Service / dgc-lib
* ---
* Copyright (C) 2021 T-Systems International GmbH and all other contributors
* ---
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ... | 43.597403 | 133 | 0.73804 |
922ada3f719620e669988a3c500e89493d72beef | 3,072 | /*
* MIT License
*
* Copyright (c) 2018-2021 Alexis Jehan
*
* 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... | 40.96 | 111 | 0.755534 |
cf5a397568641104fdc677291be1cbf51f7f2b10 | 2,438 | package com.example.codingtr.lolquery.Management;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import com.example.codingtr.lolquery.Activity.Login_Activity;
import com.example.codingtr.lolquery.Home_Activity;
import java.util.HashMap;
public class Session... | 32.506667 | 126 | 0.686628 |
f71de337620914e4851eec2e6e1fb6fd352abe2c | 221 | package com.si.jupiter.smart.client.example;
import io.netty.util.concurrent.Future;
import org.apache.thrift.TException;
public interface SIface {
public Future<String> helloString(String para) throws TException;
} | 27.625 | 69 | 0.800905 |
79fb33ea0826ae8ec2f7aa60ce6d20371b78456a | 1,903 | package org.osio.hdd.istio.com;
//import io.fabric8.kubernetes.api.model.v3_1.Pod;
//import io.fabric8.kubernetes.api.model.v3_1.Service;
//import io.fabric8.kubernetes.api.model.v3_1.apiextensions.CustomResourceDefinition;
import io.fabric8.kubernetes.clnt.v3_1.Config;
import io.fabric8.kubernetes.clnt.v3_1.Kubernete... | 37.313725 | 86 | 0.72412 |
810b3f4334cc2aa9e9856730bd5214287888debf | 3,369 | package io.luna.game.model.chunk;
import com.google.common.base.MoreObjects;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Maps;
import com.google.common.collect.Sets;
import io.luna.game.model.Entity;
import io.luna.game.model.EntityType;
import java.util.EnumMap;
import java.util.M... | 27.614754 | 115 | 0.614426 |
8e892e0f7b229bc8d98c65aa2544652119ab6611 | 4,231 | /*
* Copyright (c) 2008, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 28.782313 | 120 | 0.468684 |
1e72a6fed37dac3b684fd9dafde18114712339d6 | 80,778 | /*
* Copyright 2019 Web3 Labs 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 to in w... | 52.658409 | 570 | 0.516217 |
fae9fb2fc7d655c352f6c333a2ea764b93c5d846 | 10,988 | package com.example.android.sunshine.app;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
... | 38.152778 | 115 | 0.662905 |
bec088743623b070abe1e6fd9ff47a5f001658b1 | 6,120 | package adnascreen;
import static org.junit.Assert.*;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
public class FASTQHeaderTests {
@Rule
public ExpectedException thrown = ExpectedException.none();
@Test
public void identical(){
String header = "@NS500217:348:HTW2FBG... | 33.26087 | 154 | 0.715359 |
74adf3dbc759ac809a28fd78979d68ccdfd35527 | 1,180 | package conversion.engine;
import com.thoughtworks.xstream.converters.Converter;
import com.thoughtworks.xstream.converters.MarshallingContext;
import com.thoughtworks.xstream.converters.UnmarshallingContext;
import com.thoughtworks.xstream.io.HierarchicalStreamReader;
import com.thoughtworks.xstream.io.HierarchicalSt... | 33.714286 | 92 | 0.729661 |
f86b82bc9d59a861e237b774f847f205bb09d133 | 884 | package net.modificationstation.stationapi.mixin.render.client;
import net.minecraft.client.resource.ZippedTexturePack;
import net.modificationstation.stationapi.api.client.texture.atlas.ExpandableAtlas;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered... | 40.181818 | 122 | 0.783937 |
7f48f8912fa166836e41467c2e19a752f86bbf72 | 1,193 | package dev.vality.adapter.bank.spring.boot.starter.utils;
import dev.vality.adapter.common.utils.CardDataUtils;
import dev.vality.cds.storage.AuthData;
import dev.vality.cds.storage.CardSecurityCode;
import dev.vality.cds.storage.SessionData;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;... | 29.825 | 67 | 0.732607 |
b8bc13f8eb579ccf9cb7561e9d25a07e0683e70d | 2,039 | package com.s6.plugin.feign.adapter.tools;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;
public class ReplacementLibraryTest {
@Test
public void testEquals() {
{
ReplacementLibrary lib1 = new ReplacementLibrary();
... | 32.887097 | 63 | 0.544385 |
ce01a497b1796936337ac648182fb7e9e7da8592 | 3,502 | package com.github.kindrat.cassandra.client.ui.fx;
import com.datastax.driver.core.CodecRegistry;
import com.datastax.driver.core.DataType;
import com.datastax.driver.core.TypeCodec;
import javafx.beans.binding.DoubleBinding;
import javafx.beans.property.ReadOnlyDoubleProperty;
import javafx.beans.value.ObservableValu... | 43.234568 | 116 | 0.719589 |
a38b1a9a9980f6abe4689b25a3145aba955a3bc8 | 476 | package nl.quintor.studybits.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.Entity;
@Embeddable
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Transcript {
@Co... | 17 | 36 | 0.768908 |
c2ee9b6c53eb896eebffaab81437f285fcc331c2 | 2,061 | /**
* 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... | 29.869565 | 76 | 0.725376 |
fc10d1dbdaa250f036b68a1b17037cafeada0b53 | 526 | package org.odddev.githubsearcher.core.di;
import android.support.annotation.NonNull;
/**
* @author kenrube
* @since 01.12.16
*/
public class Injector {
private static AppComponent appComponent;
public static void init(@NonNull AppComponent appComponent) {
Injector.appComponent = appComponent;
... | 21.916667 | 98 | 0.705323 |
a4379103d84f03524331d1c2e832c448c6393779 | 7,451 | /*
* Copyright 2012-2015 MarkLogic 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... | 33.714932 | 113 | 0.745403 |
4ec7114543fb9d48c56289962494921c2208f550 | 10,307 | package com.demoncat.dcapp.network;
import android.annotation.SuppressLint;
import android.content.Context;
import android.util.Log;
import org.spongycastle.jce.provider.BouncyCastleProvider;
import org.spongycastle.jsse.provider.BouncyCastleJsseProvider;
import java.io.IOException;
import java.io.InputStream;
impor... | 37.209386 | 127 | 0.616959 |
00b16e66557aacf9ec27bea41f4776baa23af245 | 382 | package org.wso2.analytics.apim.rest.api.file;
import org.wso2.msf4j.formparam.FileInfo;
import org.wso2.msf4j.Request;
import java.io.InputStream;
import javax.ws.rs.core.Response;
public abstract class UsageApiService {
public abstract Response usageUploadFilePost(InputStream analyticsInputStream, FileInfo an... | 27.285714 | 107 | 0.82199 |
ff645894838af1cf456d4c85804258c10268117b | 5,739 | package org.ga4gh.cts.api.variants;
import org.apache.avro.AvroRemoteException;
import org.ga4gh.ctk.CtkLogs;
import org.ga4gh.ctk.transport.URLMAPPING;
import org.ga4gh.ctk.transport.protocols.Client;
import org.ga4gh.cts.api.TestData;
import org.ga4gh.cts.api.Utils;
import org.ga4gh.methods.GAException;
import org.g... | 42.198529 | 111 | 0.67503 |
e83c0512b915593b70de31a66ac11961bd11f579 | 919 | package com.dalefe.generator.util;
import org.yaml.snakeyaml.Yaml;
import java.io.InputStream;
import java.net.URL;
/**
* @author dalefe
* @version 2019/11/07
*/
public class ConfigUtil {
private static Configuration configuration;
static {
URL url = ConfigUtil.class.getClassLoader().getResource... | 28.71875 | 144 | 0.659412 |
e393ed0fdaa2265466889d0c6fff5032b6ebf1c8 | 1,386 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: grpc/table/table_master.proto
package alluxio.grpc.table;
public interface GetTableColumnStatisticsPRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:alluxio.grpc.table.GetTableColumnStatisticsPRequest)
com.google.prot... | 24.315789 | 102 | 0.65873 |
1c2af6e80d504ca4a1d65c28c7459665dc17afab | 1,033 | package com.fastjrun.web.filter;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;... | 29.514286 | 120 | 0.796709 |
680d3617153ea9d85d9e83b97ddee5e788cf14f3 | 12,451 | /*
* 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 ... | 41.503333 | 100 | 0.69392 |
5f1ae048532a7c2aa0cf6c58ac3f55aa209e439c | 1,674 | package leetcode141_150;
/**Sort a linked list using insertion sort.
* Created by eugene on 16/3/6.
*/
public class InsertionSortList {
public class ListNode {
int val;
ListNode next;
ListNode(int x) { val = x; }
}
//虽然简洁,但更tricky
public ListNode insertionSortList0(ListNode ... | 26.15625 | 59 | 0.44325 |
fc52b6b59836ba83d5e492de4af1cf260930ca84 | 2,052 | package org.n52.gfz.riesgos.functioninterfaces;
import java.io.IOException;
import java.io.Serializable;
/*
* Copyright (C) 2019 GFZ German Research Centre for Geosciences
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Y... | 38 | 78 | 0.697368 |
4b94c5e7b8c558c80e0060c89d539da1d7ee5dee | 3,200 | /* jcifs smb client library in Java
* Copyright (C) 2000 "Michael B. Allen" <jcifs at samba dot org>
*
* This library 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 2.1 of the ... | 26.890756 | 129 | 0.667188 |
f582eb8c879db6cdee826d9aa90ec5f92ffd03ea | 1,663 | /*
* Copyright 2019-2021 CloudNetService team & contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | 40.560976 | 119 | 0.794949 |
5a670444ff43f302d24fdd5f51c82c08ba6653a5 | 6,766 | // Dstl (c) Crown Copyright 2017
package uk.gov.dstl.baleen.consumers.csv;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import org.apache.uima.UimaContext;
import org.apache.uima.fit.descriptor.ConfigurationParameter;
import org.apac... | 32.373206 | 99 | 0.675732 |
1a940915a4d9f7ab68a53db1faba3f45066958d6 | 1,595 | package com.stefan.ypinmall.product.controller;
import com.stefan.common.utils.R;
import com.stefan.ypinmall.product.entity.CategoryEntity;
import com.stefan.ypinmall.product.service.CategoryService;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
* 商品... | 20.714286 | 81 | 0.652665 |
44d072178d97cf1913dc6abce11acfb034d22dad | 11,455 | package com.whut.getianao.walking_the_world_android.activity;
import android.Manifest;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFact... | 38.569024 | 141 | 0.559843 |
b5beed525fa337b3b3c0ab02d98ba0975878f499 | 3,447 | package com.niyongsheng.manager.controller;
import com.github.pagehelper.PageHelper;
import com.niyongsheng.common.enums.ResponseStatusEnum;
import com.niyongsheng.common.exception.ResponseException;
import com.niyongsheng.common.model.ResponseDto;
import com.niyongsheng.persistence.domain.Conversation;
import com.niy... | 42.555556 | 145 | 0.663475 |
cd89caafaa3fbc9755d5f7bf684c4c8225bea01f | 555 | package com.jeffersonaraujo.bakingapp.database;
import android.arch.lifecycle.LiveData;
import android.arch.persistence.room.Dao;
import android.arch.persistence.room.Insert;
import android.arch.persistence.room.Query;
import java.util.List;
@Dao
public interface RecipeDao {
@Insert
void insertRecipe(Recipe... | 22.2 | 55 | 0.74955 |
f87f1ff776c350301847d9d35b0818cf268251cb | 3,172 | package net.dzikoysk.funnyguilds.util;
import net.dzikoysk.funnyguilds.FunnyGuilds;
import net.dzikoysk.funnyguilds.util.commons.ChatUtils;
import org.apache.commons.lang3.StringUtils;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
public final class IntegerRange {... | 33.041667 | 153 | 0.56652 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.