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 |
|---|---|---|---|---|---|
987dca7fa62f08dd032d5f0d835f597d70b1b6c4 | 1,958 | package io.bootique.tools.release.controller;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.bootique.tools.release.model.github.Organization;
import io.bootique.tools.release.model.github.Repository;
import io.bootique.tools.release.model.maven.Project;
import io.bootique.tools.release.service.content.... | 32.633333 | 95 | 0.73238 |
beb3fd2c801cd53a242795278d7153668ab521f3 | 23,178 | /*
The MIT License (MIT)
Copyright (c) 2021 Pierre Lindenbaum
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, me... | 33.688953 | 196 | 0.711666 |
086358c5ee9d5a4a3e21202b3485611db1fef60e | 916 | package com.amyliascarlet.jsontest.bvt.issue_1100;
import com.amyliascarlet.lib.json.JSON;
import com.amyliascarlet.lib.json.JSONObject;
import com.amyliascarlet.lib.json.JSONPath;
import com.amyliascarlet.lib.json.TypeReference;
import junit.framework.TestCase;
import java.util.List;
/**
* Created by wenshao on 05... | 30.533333 | 98 | 0.664847 |
5dde1259b5f356c676627770e6a558f6d4efd7dc | 7,867 | /*
* Copyright 2007 The Depan Project Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 31.594378 | 82 | 0.718571 |
bd3c2f6e8332470097f077998087cddc2c9ca7f1 | 4,212 | package seedu.address.logic.parser;
import static seedu.address.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import static seedu.address.logic.parser.CliSyntax.PREFIX_CASE_SENSITIVE;
import static seedu.address.logic.parser.CliSyntax.PREFIX_NAME;
import static seedu.address.logic.parser.CliSyntax.PREFIX_TAG;
... | 38.642202 | 111 | 0.665717 |
80df7676a636c2d41276ab2c9c7745c71fb9eaf4 | 11,716 | package com.knaus.sampleweatherapp;
import android.graphics.Typeface;
import android.os.Bundle;
import android.os.Handler;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Linear... | 45.587549 | 209 | 0.592352 |
82e65cde9de4316a315a1e5aab3684f5c742a48f | 4,073 | package com.shcem.database;
import com.alibaba.druid.pool.DruidDataSource;
import lombok.Getter;
import lombok.Setter;
import java.util.Properties;
@Setter
@Getter
public class DruidDataSourceProperties {
private String url;
private String username;
private String password;
private String driverClass... | 43.329787 | 124 | 0.733366 |
e14d52786875416b45353c43f8822b9fa7d2ba53 | 8,115 | package com.devsmart.ubjson;
import org.junit.Test;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.Random;
import static org.junit.Assert.*;
public class UBWriterTest {
@Test
public void testWriteNull() throws IOException {
U... | 28.573944 | 87 | 0.578312 |
32acc67eb669e6a3e4d0cc89ad0d1c2290e67732 | 2,351 |
package com.fitmgr.common.security.annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.springframework.cloud.openfeign.EnableFeignClients;
import... | 31.77027 | 84 | 0.671629 |
f35f825095883bc9cbe12c6221b1f0d4fc0c3a5b | 504 | /*
* 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 rs.etf.teststudent.utils;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lomb... | 21 | 79 | 0.781746 |
f4e3b563c155a43e45a0bbd8728c98ac42dec7cf | 181 | class Test {
void h(int i, String[] s, String[] t) {
<selection>System.out.println(t[i]);
final String s1 = s[t[i].length()];</selection>
System.out.println(s1);
}
} | 25.857143 | 51 | 0.596685 |
e5c2fbd87506b06eace2ae19893efffbd3f5bf72 | 1,593 | package org.fabiomsr.mitaller.module.receipt.add.adapter.holder;
import android.content.Context;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import org.fabiomsr.mitaller.R;
import org.fabiomsr.mitaller.app.base.adapter.BaseViewHolder;
import org.fabiomsr.mitaller.app.bas... | 34.630435 | 107 | 0.800377 |
3a98bb65e02f48d69fffb0ad8fb243dcadbb597c | 759 | package com.alibaba.alink.operator.batch.source;
import org.apache.flink.types.Row;
import com.alibaba.alink.testutil.AlinkTestBase;
import org.junit.Assert;
import org.junit.Test;
public class NumSeqSourceBatchOpTest extends AlinkTestBase {
@Test
public void testConstructorFromTo() {
NumSeqSourceBatchOp numSeq... | 28.111111 | 107 | 0.757576 |
2f0669e98c106b6587f1ad35dae5a6d4a8ec3105 | 1,520 | package pl.umk.mat.fastSDA.SDA;
import pl.umk.mat.fastSDA.image.Image;
import pl.umk.mat.fastSDA.image.Image2D;
import pl.umk.mat.fastSDA.image.Shape3D;
import pl.umk.mat.fastSDA.procesUtils.Messenger;
import pl.umk.mat.fastSDA.procesUtils.PikoProgress;
import pl.umk.mat.fastSDA.sdaUtils.ImageRewriters;
import pl.umk.... | 33.777778 | 98 | 0.628947 |
3d64d7ee1dbfbd8f499d9352c77ba00218dbebc4 | 2,108 | /**
* PSA7A.java
*
* Created by: Zac Bolick, Huy Ha
*
* Date: 04/23/18
*
*
*/
import java.util.Scanner;
import java.awt.Color;
public class PSA7A
{
public static void main(String[] args)
{
/* Connecting a Scanner object to the keyboard */
Scanner keyboard = new Scanner(System.in);
Color[] boxC... | 30.550725 | 105 | 0.586812 |
750129cbb0bf8ca783ba4ab881c654e077858d4f | 875 | package cn.eggnetech.eggnetechmybatis.dao.impl;
import cn.eggnetech.eggnetechmybatis.dao.UserDao;
import cn.eggnetech.eggnetechmybatis.pojo.User;
import org.apache.ibatis.session.SqlSessionFactory;
import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.beans.factory.annotation.Autowired;
im... | 29.166667 | 92 | 0.777143 |
38de8d3d1e907b29668387960e73be1aad47a255 | 5,047 | /*
* Copyright (c) 2009, Swedish Institute of Computer Science.
* 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
* n... | 31.742138 | 81 | 0.678027 |
15932f16fa436532661662647162b38aec20d51e | 3,274 | package com.moqi.data;
import com.moqi.tool.Tool;
/**
* @author moqi
* On 2/27/20 09:43
*/
public class Data {
public static final String TEXT_01_TXT = Tool.getStringFromFile("test01.txt");
public static final String TEXT_02_TXT = Tool.getStringFromFile("test02.txt");
public static final String TEXT_0... | 64.196078 | 82 | 0.76573 |
6bb84c9ce68faef87eba1f02f4b35d11e9f9996c | 748 | package connect.ui.activity.set.bean;
/**
* Created by Administrator on 2016/12/7.
*/
public class GcmBean {
private String iv;
private String aad;
private String tag;
private String ciphertext;
public String getIv() {
return iv;
}
public void setIv(String iv) {
this.iv ... | 17 | 50 | 0.580214 |
5b6b02cafc423c4517f5d5fa59596bf83d7fe74d | 1,658 | package com.bbn.serif.theories;
import com.google.common.base.Joiner;
import com.google.common.base.Splitter;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Lists;
import java.util.AbstractList;
import java.util.List;
import java.util.regex.Pattern;
import static com.google.common.b... | 27.633333 | 87 | 0.733414 |
9816e7bcbd08714617ae79282b0c5efc2daa10f7 | 1,062 | package br.com.zupacademy.armando.transaction.listeners.transaction;
import br.com.zupacademy.armando.transaction.entities.Transaction;
import br.com.zupacademy.armando.transaction.repositories.TransactionRepository;
import org.springframework.context.annotation.Bean;
import org.springframework.kafka.annotation.KafkaL... | 35.4 | 80 | 0.801318 |
f8474ba0c1ccb7a24a8b332082c33f11464560bf | 2,984 | /** LEGACY CODE
*
* This was salvaged in part or in whole from the Legacy System. It will be heavily refactored or removed.
*/
package gov.dot.its.jpo.sdcsdw.websocketsfragment.mongo;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import net.sf.json.JSONObject;
import net.sf.jso... | 34.697674 | 107 | 0.713807 |
941246be24aff99c4b6f28cbbaef8b943deb23cf | 68 | package me.swaro32;
public class Time {
public int unixtime;
}
| 11.333333 | 24 | 0.705882 |
c92d08238064d39818a5e21520346acd103654de | 2,834 | /*
* Copyright 2008 Stichting JoiningTracks, The Netherlands
* 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... | 32.574713 | 88 | 0.757234 |
448b39e137ab77011dd46593970f5129f1edfd3e | 1,924 | package com.work;
import java.awt.*;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
public class Work01 {
public static void main(String[] args) {
//1.先设置一个总窗口
Frame frame = new Frame("作业窗口");
//2.通过表格布局把总窗口分成上下两个面板
frame.setLayout(new GridLayout(2,1));
... | 26.356164 | 55 | 0.565489 |
e3222ed868050de1497d81100fa5202fd44b4514 | 5,964 | /*
* Licensed to GraphHopper and Peter Karich under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*
* GraphHopper licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you m... | 35.712575 | 147 | 0.642186 |
099a63314b460eadaa9dc3e553d0d9e78098e351 | 23,629 | /* Copyright 2018 Case Western Reserve University
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify,... | 36.074809 | 260 | 0.567354 |
4aa16c7bbe4cd6c2f2cdc1eee9da085256ab98bb | 1,549 | package org.example.compiler;
import javax.tools.*;
import java.util.Collections;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class StringSourceCompiler {
/** 使用Pattern 获取类名 */
private static Pattern CLASS_PATTERN = Pattern.compile("class\\s+([$_a-zA-Z][$_a-zA-Z0-9]*)\\s*... | 36.880952 | 104 | 0.641704 |
928d79f2aefbc0958030ce475094ed02f95616d7 | 1,401 | package com.samuelchowi.intercorpretail.custom;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Typeface;
import android.util.AttributeSet;
import com.samuelchowi.intercorpretail.R;
import com.samuelchowi.intercorpretail.common.TypeFontUtils;
import androidx.appcompat.w... | 31.133333 | 87 | 0.655246 |
375603538f2f11c42da7c5616c1cd674414a344f | 3,432 | public class Student_Runner_Boxcar {
public static void main(String[] args)
{
// Testing various required behaviors of the Boxcar constructor
System.out.println("Testing Boxcar constructors:");
Boxcar car1 = new Boxcar();
System.out.println("Printing Boxcar():\n" + car1 + "\n");... | 52.8 | 108 | 0.617716 |
61fefe583f268255805099ff4d1b6d7e84b5e0f7 | 311 | package vn.edu.uit.realestate.Relational.Repository;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
import vn.edu.uit.realestate.Relational.Model.Job;
public interface JobRepository extends JpaRepository<Job, Long>{
public Optional<Job> findByName(String name);
}
| 25.916667 | 64 | 0.819936 |
bf47d711483aa164dc5a2b79207ccd167edf308f | 476 | package no.sikt.oai.exception;
public class OaiException extends Exception {
private final String errorCode;
private final String errorText;
public OaiException(String errorCode, String errorText) {
super(errorCode + " " + errorText);
this.errorCode = errorCode;
this.errorText = ... | 19.833333 | 61 | 0.653361 |
63c7d484628eb7a7ce5d31c9edd7b899c7bebadd | 1,535 | package learners;
import main.InputRow;
/***
* Represents a decider with a percentage of confidence known that is not 0 or 1.
* This is used to distinguish a pair only.
*/
public class ConfidenceDecider extends LanguageDecision implements Decider {
private final String languageOne, languageTwo;
private fi... | 29.519231 | 108 | 0.662541 |
0f05fa60db73e3d3dd86122475ff42735d136580 | 872 | // Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.api.integration.aws;
import com.yahoo.config.provision.ApplicationId;
import com.yahoo.config.provision.HostName;
import com.yahoo.config.provision.zone.ZoneApi;
im... | 29.066667 | 112 | 0.737385 |
77f92fcc927d9904d73d36e662e0b01c50c20d07 | 1,564 | /**
* Copyright 2015 SPeCS.
*
* 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 writi... | 28.436364 | 118 | 0.673913 |
07ad68a0b01270408c41bee449c6062166f2fe8b | 13,932 | package tests.restapi.proddevsplit;
import java.io.IOException;
import org.apache.wink.json4j.JSONException;
import org.apache.wink.json4j.JSONObject;
import org.apache.wink.json4j.JSONArray;
import org.testng.Assert;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeClass;
im... | 54.210117 | 210 | 0.776342 |
d993de473db2bec54eb1d8d33bf6e4c2b275ae6b | 4,352 | package com.globaledgesoft.eventmanagerges;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import com.... | 28.821192 | 139 | 0.598116 |
2fa1e0f72bfdcbf254e4f2995ce711261b3711ec | 9,762 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. The ASF 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
*
* ... | 24.713924 | 112 | 0.605306 |
ad6452d0515f79c171c45383aff7ea938e0914e2 | 2,619 | package mod.noobulus.tetrapak.eidolon;
import mod.noobulus.tetrapak.loot.ReapingLootModifier;
import mod.noobulus.tetrapak.util.DamageBufferer;
import mod.noobulus.tetrapak.util.tetra_definitions.IHoloDescription;
import mod.noobulus.tetrapak.util.tetra_definitions.ILootModifier;
import mod.noobulus.tetrapak.uti... | 48.5 | 169 | 0.730431 |
88b6ed820e73f0fd09978931eaf57afa1cee2517 | 388 | package br.com.orangetalents.proposta.bloquearcartao.repository;
import br.com.orangetalents.proposta.vincularcartaoaproposta.model.Bloqueio;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface BloqueioRepository extends JpaRepos... | 35.272727 | 77 | 0.850515 |
abcb8f47262e4de27c45f419a154340ce3601512 | 7,026 | /*
* JBoss, Home of Professional Open Source.
* Copyright 2015 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* 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 Licen... | 37.174603 | 189 | 0.674495 |
12235077fddb9bacb52e881e934b166137888565 | 1,575 | /**
* Copyright (C) 2018-2019 Expedia, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 26.25 | 89 | 0.705397 |
9e2918b956f8e85fc586785eda81f518a8f68d39 | 665 | package org.apache.log4j.rewrite;
import org.apache.log4j.spi.LoggingEvent;
/**
* This interface is implemented to provide a rewrite
* strategy for RewriteAppender. RewriteAppender will
* call the rewrite method with a source logging event.
* The strategy may return that event, create a new event
* or return ... | 28.913043 | 62 | 0.726316 |
cbcea7735273661edb45780eafb660632d83f89b | 531 | package joshie.progression.criteria.conditions;
import joshie.progression.api.IPlayerTeam;
import joshie.progression.api.criteria.ProgressionRule;
import net.minecraft.entity.player.EntityPlayer;
@ProgressionRule(name="isSneaking", color=0xFFD96D00, meta="isSneaking")
public class ConditionSneaking extends ConditionB... | 31.235294 | 72 | 0.745763 |
cd7d774041a2e13881956a252d0756a1b6cbd233 | 12,758 | package com.nuriapp.activity;
import org.apache.commons.lang3.StringUtils;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.os.StrictMode;
import android.view.Vie... | 31.974937 | 82 | 0.679809 |
4384babe173bab02dab838e2ad27d557470b8f35 | 1,676 | package zedboardking.burgerqueenapp;
/**
* Created by Najib Arbaoui on 15-10-07.
* CLasse où tout les caractéristique des produits sont gérés.
* Très simple à utliser selon le modèle MVC
*/
public class ModelProducts {
private String productID;
private String productDesc;
private String productPrice;
... | 22.346667 | 172 | 0.685561 |
801284123dbfad980d6a41ca248a2b7cc1105579 | 1,097 | package it.unive.lisa.symbolic.types;
import it.unive.lisa.cfg.type.Type;
import it.unive.lisa.cfg.type.Untyped;
/**
* An internal implementation of the {@link it.unive.lisa.cfg.type.StringType}
* interface that can be used by domains that need a concrete instance of that
* interface.
*
* @author <a href="mailt... | 22.854167 | 78 | 0.725615 |
010aae37971c9396dbde1d5858e3c6100f93a87f | 2,808 | /*
* Copyright 2020 richard linsdale.
*
* 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.467532 | 93 | 0.668447 |
18e44d6d58591f5b83b78ff074701235ad575ca7 | 891 | package org.prosolo.web.util.pagination;
public class PaginationLink {
private int page;
private String linkOutput;
private boolean selected;
private boolean isLink;
public PaginationLink() {
}
public PaginationLink(int page, String linkOutput, boolean selected, boolean isLink) {
this.page = page;
this.... | 16.5 | 87 | 0.714927 |
4433dd00d4bd7e774e3d74484235280aeb75dd83 | 2,859 | package com.vechain.thorclient.utils;
import com.alibaba.fastjson.JSON;
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.JsonNode;
import com.mashape.unirest.http.Unirest;
import com.mashape.unirest.http.exceptions.UnirestException;
import com.mashape.unirest.request.GetRequest;
import com... | 41.434783 | 494 | 0.747114 |
bc990b482fb0c7efe98b6eeaabefccb0c5bae9d5 | 1,129 | package org.epnoi.storage.system.column.repository;
import org.epnoi.storage.system.column.domain.SourceColumn;
import org.epnoi.storage.system.column.domain.SourceColumn;
import org.springframework.data.cassandra.repository.Query;
/**
* Created by cbadenes on 21/12/15.
*/
public interface SourceColumnRepository ex... | 34.212121 | 84 | 0.746678 |
c3ef9d9194b6b31bf5774d65f8b276a4feafcf01 | 3,663 | /*
* Snow-Globe
*
* Copyright 2017 The Kroger Co.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | 26.737226 | 103 | 0.623533 |
0b9ce5c5cf8f4d554587100a09869afb9d68856d | 7,680 | /**
* Copyright CSIRO Australian e-Health Research Centre (http://aehrc.com).
* All rights reserved. Use is subject to license terms and conditions.
*/
package au.csiro.ontology.importer.rf2;
/**
* @author Alejandro Metke
*
*/
public class RelationshipRow implements Comparable<RelationshipRow> {
private fi... | 30.117647 | 77 | 0.542188 |
5292304548e0fc1f6daf03b9ffa5a4bbe1da2cd6 | 3,381 | package com.alipay.api.domain;
import java.util.Date;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 口碑订单商品凭证模型
*
* @author auto create
* @since 1.0, 2018-03-08 11:39:18
*/
public class KbOrderVoucherModel extends AlipayObject {
private static final l... | 19.32 | 68 | 0.683821 |
fcf2ed5e1bbdc169d2fa1fe51fac5b4df92ab66b | 2,117 | /*
* Copyright 2013-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | 24.616279 | 98 | 0.703826 |
d4560c22a92e90182eb1c47cb6cd816cba56aab1 | 673 | package net.covers1624.wt.api.workspace;
import net.covers1624.wt.api.dependency.Dependency;
import net.covers1624.wt.api.dependency.DependencyScope;
import java.nio.file.Path;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* Created by covers1624 on 3/9/19.
*/
public interface WorkspaceMod... | 18.189189 | 60 | 0.686478 |
836b354962db8e6a2dec84a5ba84defa746cc96e | 411 | package com.change.hippo.utils.kafka;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* User: change.long
* Date: 2017/12/8
* Time: 下午2:51
*/
public class DemoConsumer implements MessageConsumer {
private static final Logger LOGGER = LoggerFactory.getLogger(DemoConsumer.class);
@Override
... | 20.55 | 85 | 0.710462 |
ba4788fee469e7caf14f6a85d510bf88074cf48c | 1,385 | /*
* Copyright 2022 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 31.477273 | 92 | 0.764621 |
bed79b2beb541eea11a0873015dd4b1fe547f0b1 | 1,624 | package cn.codingblock.ipcclient;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import cn.codingblock.ipcclient.aidl.ContactMangerActivity;
import cn.codingblock.ipcclient.messenger.MessengerActivity;
i... | 38.666667 | 100 | 0.690887 |
b4b52ac09fa9931413ecde631660ce3874c0fe02 | 5,748 | package eu.ensup.myresto.service;
import java.util.ArrayList;
import java.util.List;
import eu.ensup.myresto.business.User;
import eu.ensup.myresto.dao.ExceptionDao;
import eu.ensup.myresto.dao.UserDao;
import eu.ensup.myresto.dto.UserDTO;
import eu.ensup.myresto.mapper.UserMapper;
/**
* The type Service person.
*... | 33.418605 | 125 | 0.628914 |
22193623260e2b83abb31ddf489b8566bac44092 | 3,329 | package uk.abdoul.co.fitit;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.Configuration;
import android.os.Build;
import android.os.Bundle;
import android.preference.PreferenceActivity;
import android.preference.PreferenceFragment;
import android.support.v7.app.Action... | 29.723214 | 97 | 0.658156 |
bd7067d4fb89cab69b48d159a7eba18b7766303b | 4,601 | package com.bt.openlink.smack.iq;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.Matchers.contains;
import static org.hamcrest.Matchers.empty;
import static org.junit.Assert.assertThat;
import static org.xmlunit.matchers.CompareMatcher.isIdenticalTo;
import org.jivesoftware.smack.packet.IQ;
im... | 39.663793 | 141 | 0.711802 |
e36bb18dfc33c774c9eecc7a48dbe241d371025b | 3,632 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/** * 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 license... | 28.155039 | 814 | 0.754956 |
fb65f451e7bf9bc55d78506ba5a5e4a3c325d483 | 4,073 | /*
* Copyright 2021 Haulmont.
*
* 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... | 49.670732 | 157 | 0.764793 |
7d46ca58f2841103a8bc459e531772e3c64a34ca | 250 | package com.alibaba.datax.plugin.reader.httpreader.enums;
/**
* <p>
* 数据接收格式 枚举
* </p>
*
* @author JupiterMouse 2020/8/5
* @since 1.0
*/
public enum FormatEnum {
/**
* JSON格式
*/
JSON,
/**
* XML格式
*/
SOAP
}
| 11.904762 | 57 | 0.516 |
c4741267d614e64334b041c19d4ec16cd4ac610a | 9,368 | package com.test.environment.alex.environmenttesttask002;
import android.app.Activity;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.v4.view.GestureDetectorCompat;
import android.support.wearable.view.DelayedConfirmationView;
import android.support.wearabl... | 33.819495 | 98 | 0.618595 |
326c55ef6c19e4b85325b83a540150a453be9ba0 | 1,390 | package am.foodi.popularmovies;
import android.content.Context;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.Arrays;
public class FetchMovieReviewsTask extends FetchTheMovieDbJSONTask {
private OnReviewsFetchCompleted listener;
public interface OnR... | 32.325581 | 99 | 0.692806 |
294c2c042d7a94bacd2fdfd8e8c7d99684033514 | 3,559 | /*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | 41.870588 | 114 | 0.650183 |
a76a6ea6881c9639259fb98990be7451cf960356 | 25,377 | package salsa.corpora.xmlparser;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;
import salsa.corpora.elements.Action;
import salsa.corpora.elements.Annotation;
import salsa.corpora.elements.Author;
import salsa.corpora.elements.Body;
import salsa.c... | 25.275896 | 83 | 0.680262 |
bf1cb53ffa994b389663eaf95f1a1d7fedfcd675 | 3,466 | class e {
public boolean RA0uDo;
public LjFYwkoZYDl3 H2CpmYFtczzIn () throws g4jdIWRz {
W[] S82iohsz5Tba = ( false[ 9738579.A3UWIghH9Akr0q()]).WwBEddxEIUTM();
C7dIThRtsn[] BCfuyd1 = !new O4RmA3WsX3().DiGgqPv();
}
public boolean[] yj3M7 (boolean UfX6Pg, int[][] L17bratvt, int R88I1G, in... | 42.790123 | 191 | 0.579342 |
294d060c5f3d16545f3e931b64e7aedfef4d968d | 4,166 | package com.edu.uni.augsburg.uniatron.domain.dao;
import android.arch.lifecycle.LiveData;
import android.arch.persistence.room.Room;
import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;
import com.edu.uni.augsburg.uniatron.domain.AppDat... | 35.305085 | 142 | 0.706193 |
85700ee6df8fda2cac816c7d9b469735184603fa | 1,535 | package com.dubbo.dev.plugin.loadbalance;
import com.alibaba.dubbo.common.utils.StringUtils;
import com.alibaba.dubbo.rpc.RpcContext;
/**
* @author 86180
* @Description: 当前请求
* @date 2020/6/19:22
*/
public class CurrRequest {
private static ThreadLocal<ReqMeta> metaThreadLocal = new ThreadLocal<ReqMeta>();
... | 33.369565 | 99 | 0.673616 |
92215426d0dac78089bc849aa8f7e9e549dd24d5 | 84 | package org.haobtc.onekey.event;
@Deprecated
public class HideWalletErrorEvent {
}
| 14 | 35 | 0.809524 |
de7d2ad950078cf9be24133e98916d68311c45e2 | 110 | package japicmp.test.semver100.d;
public class SemverTestee100dSuperclass {
public int fieldInSuperclass;
}
| 18.333333 | 41 | 0.827273 |
635b00dabaedf7092462506320df3f726721679d | 2,692 | /*
* Copyright 2015 - 2019 TU Dortmund
*
* 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... | 24.472727 | 75 | 0.660475 |
f788bc3145dfc873e01f036858ac6761df248c94 | 2,376 | /*
Copyright 1996-2008 Ariba, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | 36.553846 | 83 | 0.71633 |
8a9d137c7c84cd8972002c522cbdb5d3c0a3f66d | 534 | /*
* 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.apache.marmotta.ucuenca.wk.pubman.api;
/**
*
* @author cedia
*/
public interface DisambiguationService {
public St... | 19.777778 | 79 | 0.709738 |
7a512a45dfea67cd3796540b30bc90a21048d505 | 660 | package cn.stackflow.aums.domain.service;
import cn.stackflow.aums.common.bean.*;
import cn.stackflow.aums.domain.entity.User;
import java.util.List;
import java.util.Optional;
public interface UserService {
PageResult<UserDTO> list(PageResult page);
List<IdNameDTO> listSimpleUserByDeptId(String deptId);
... | 20.625 | 58 | 0.751515 |
534ac7e1dfbd197d5b6ded0cbc49542a902f7990 | 1,191 | package edu.matkosoric.execution.output.global.namescope;
/*
* Code examples for Oracle Certified Professional (OCP) Exam 1Z0-819
* Java 11 SE, 2021.
* Created by © Matko Soric.
*/
// #TAG1
public class GlobalNamescope {
// how to produce output "Global:namescope" ?
static String prefix = "Global:";
... | 32.189189 | 113 | 0.607893 |
a84e1ad04a1e0f063b02c25bc673cd2c46a306dd | 2,953 | package cn.zhengcaiyun.idata.develop.dal.dao.integration;
import java.sql.JDBCType;
import java.util.Date;
import javax.annotation.Generated;
import org.mybatis.dynamic.sql.SqlColumn;
import org.mybatis.dynamic.sql.SqlTable;
public final class DSEntityMappingDynamicSqlSupport {
@Generated(value="org.mybatis.gener... | 40.452055 | 129 | 0.729089 |
370536adc2f025b7b436affe6752daf7cea9d3b2 | 1,085 | package de.melanx.botanicalmachinery.network;
import io.github.noeppi_noeppi.libx.network.PacketSerializer;
import net.minecraft.network.PacketBuffer;
import net.minecraft.util.math.BlockPos;
public class ManaBatteryLockedSerializer implements PacketSerializer<ManaBatteryLockedSerializer.Message> {
@Override
... | 27.820513 | 107 | 0.685714 |
2106dcac74d0395c3c55ea54a2a2716f98d46d76 | 758 | package UI;
import javafx.application.Application;
import javafx.geometry.Rectangle2D;
import javafx.stage.Screen;
public abstract class AdaptableWindowApplication extends Application {
private static double getWidth(){
Rectangle2D rectangle2D = Screen.getPrimary().getVisualBounds();
return rectan... | 28.074074 | 72 | 0.712401 |
98e668da3eb19ef6c790ed5f8e0e3f9d947b45ba | 291 | package dw.cli.commands.itest;
import dw.cli.Output;
import dw.cli.itest.TestHelper;
public class Test_TitleGetter extends TestHelper {
@org.junit.Test
public void getTitle() throws Exception{
Output output = runWithArguments("getTitle");
assertSuccess("test xmlrpc", output);
}
}
| 20.785714 | 50 | 0.762887 |
f6c8d8cb717b6b44c9c18394987c0d405822fc8d | 4,994 | package java.lang;
import lejos.nxt.NXTEvent;
import java.util.ArrayList;
import lejos.util.Delay;
/**
* This is an internal system class that implements the system shutdown process.
* Classes which require some form of cleanup when the program is about to exit
* can register a system shutdown hook which will be r... | 32.219355 | 97 | 0.579696 |
44b9bdbc9057d387c79166bfd2a7e0b44b246af3 | 2,368 | package ShadowSiren.cards;
import IconsAddon.util.BlockModifierManager;
import ShadowSiren.ShadowSirenMod;
import ShadowSiren.blockTypes.IceBlock;
import ShadowSiren.cards.abstractCards.AbstractIceCard;
import ShadowSiren.cards.tempCards.IceShard;
import ShadowSiren.characters.Vivian;
import ShadowSiren.damageModifier... | 34.318841 | 113 | 0.733953 |
ee46650e7ef7123fa76c4a9ad163dc39a4a26a80 | 1,970 | package tonyusamples.block;
import tonyu.kernel.TGL;
import tonyu.kernel.TonyuPage;
import tonyu.kernel.TonyuSecretChar;
import tonyu.kernel.TonyuTextBitmap;
public class Monitor extends TonyuSecretChar {
int blc;
private int xx;
private int yy;
private int pa;
private int i;
private int loop = 0, loop2 = 0;
T... | 20.736842 | 68 | 0.600508 |
39ac2e9cd253999d926040d5d4e0e0d60df6ea51 | 3,076 | /*
* Copyright (C) 2015 Twitter, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 37.060241 | 88 | 0.71619 |
7adb06c6b48743eb6ff689245ae1b1ed8def918e | 589 | package com.encryptlang.v1.node;
import com.encryptlang.v1.env.Environment;
import java.util.ArrayList;
import java.util.List;
/**
* Created by jianjunwei on 2017/7/10.
*/
public class ListNode implements Node {
private List<Node> nodeList = new ArrayList<>();
public boolean addNode(Node n){
retur... | 19 | 53 | 0.640068 |
8d177f64c58c7122c35d03ac6a1d59435ac6f8ce | 2,085 | package akka.example.tcp;
import akka.actor.AbstractActor;
import akka.actor.ActorRef;
import akka.actor.Props;
import akka.event.Logging;
import akka.event.LoggingAdapter;
import akka.io.Tcp;
import akka.io.TcpMessage;
import java.net.InetSocketAddress;
public class ServerActor extends AbstractActor {
private f... | 39.339623 | 93 | 0.493525 |
cf07cb9fe046ff92f4214d114a10d984e7470c67 | 19,931 | package org.drools.base.evaluators;
/*
* Copyright 2005 JBoss Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | 43.708333 | 140 | 0.588681 |
3b6a0e94ce42fdc20d6a29129e5ede1d4f99e734 | 870 | package com.bluestream.app;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;
public class TabPagerAdapter extends FragmentStatePagerAdapter {
String [] tabarray =new String[]{"Home","Category"};
Integer tabnumber = 2;
... | 20.714286 | 64 | 0.606897 |
3e2a45281ed5850e87149ad0422229c9ef0752a5 | 4,608 | package org.autogui.swing.mapping;
import org.autogui.base.mapping.GuiMappingContext;
import org.autogui.base.mapping.GuiReprValue;
import org.autogui.base.type.GuiUpdatedValue;
import org.autogui.swing.util.SwingDeferredRunner;
import javax.swing.*;
import java.util.concurrent.Future;
import java.util.function.Consu... | 36.283465 | 139 | 0.610243 |
5912c12388af1581621c1a0fab4f7dff8a250475 | 633 | /*
* Created on 23.10.2006
*/
package jeliot.mcode;
import java.io.BufferedReader;
import java.io.PrintWriter;
/**
* It is made sure that all the registered MCodePreProcessors will execute their interpretation before
* the primary MCInterpreter is processing the same line of MCode thus the implementatio... | 25.32 | 109 | 0.71722 |
6266fe1f534e52ec5a02ab026644cc3ca5daaa12 | 1,520 | package nl.homeserver.energie.opgenomenvermogen;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import nl.homeserver.cache.DailyCacheWarmer;
import nl.homeserver.cache.InitialCacheWarmer;
import org.springframework.stereotype.Component;
import java.time.Clock;
import java.time.LocalDate;
imp... | 33.043478 | 97 | 0.774342 |
4ff5b9ba199a6807221e7401144d411db1c8a72b | 1,749 | package ThinkingInJava.zAssistant.javaiosystem;
import java.io.*;
import java.util.ArrayList;
import java.util.List;
import static ThinkingInJava.zUtils.Print.*;
class House implements Serializable { }
class Animal implements Serializable {
private String name;
private House preferredHouse;
Animal(String... | 38.021739 | 120 | 0.668382 |
15d12a2eb88c20c52b4e0a2234888201efb6ae90 | 992 | /*
* @(#)TestUrlUtils.java 1.0 Nov 2, 2016
* Copyright 2016 by GNU Lesser General Public License (LGPL). All rights reserved.
*/
package org.nlh4j.util;
import java.io.Serializable;
import org.junit.Test;
/**
* Test class {@link UrlUtils}
*
* @author Hai Nguyen (hainguyenjc@gmail.com)
*
*/
public final class... | 23.069767 | 83 | 0.573589 |
7743b76bcaed94833d791717789d4c72691b1313 | 3,048 | package org.omegabyte.gaboom.transforms;
import org.apache.beam.runners.dataflow.repackaged.com.google.common.collect.ImmutableList;
import org.apache.beam.sdk.transforms.DoFn;
import org.apache.beam.sdk.transforms.PTransform;
import org.apache.beam.sdk.transforms.ParDo;
import org.apache.beam.sdk.util.SerializableUti... | 39.076923 | 150 | 0.689304 |
771b9940ce213ab3dfcc73d31b34227df7563e07 | 33,160 | package com.kcchen.drawingpdf;
import android.Manifest;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.util.Log;
import com.artifex.mupdf.fitz.Document;
import com.artifex.mupdf.fitz.PDFDocument;
import com.artifex.mupdf.fitz.Page;
import com.artifex.mupdf.fitz.Rect;
import org.apac... | 43.92053 | 177 | 0.504524 |
a00e6eeb1632eb91567fcf90821b79f30f79e9f2 | 938 | package com.lfp.demo.pattern.behaviour.observer.jdk;
/**
* Title:
* Description:
* Project: lfp-pattern
* Date: 2017-12-19
* Copyright: Copyright (c) 2020
* Company: LFP
*
* @author ZhuTao
* @version 1.0
*/
public class Client {
public static void main(String[] args) {
MyObserver observer1 = new... | 24.051282 | 59 | 0.641791 |
0abf19eb3ea2a7fc86cb71223cb863f912ae4b11 | 1,076 | package practice.concurrency.five;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.Semaphore;
/**
* 有界的ArrayList
* 计数信号量(Counting Semaphore)用来控制同时访问某一个特定资源的操作数量,或者同时执行某个特定操作的数量
* 计数器信号量还可以实现某种资源池,或者对容器增加边界
* acquire()将阻塞直到获取一个许可信号量
* release()方法将返回一个许可... | 17.639344 | 64 | 0.683086 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.