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 |
|---|---|---|---|---|---|
bbe1942de88885653b10afc6216a5e244baf31a9 | 1,387 | package com.alphasta.model;
import java.util.Date;
import com.alibaba.fastjson.JSON;
public class Activities {
private String id;
private String name;
private String topic;
private Integer type;
private String dept;
private String etime;
private Integer useable;
private String picture;
public String... | 14.913978 | 51 | 0.674117 |
ff94f89fc5f8dd9c754c96f428dcf6e1ffb69161 | 5,669 | /*
* 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 spectra.preprocess.filter.noise.implementation;
import com.compomics.util.experiment.massspectrometry.MSnSpectrum;
imp... | 41.379562 | 110 | 0.65426 |
d3bdce01358223591ab696e9e9a2dbf1331f4f48 | 3,844 | package org.hupo.psi.calimocho.tab.model;
import org.hupo.psi.calimocho.model.DefinitionException;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
/**
* TODO document this !
*
* @author Bruno Aranda (baranda@ebi.ac.uk)
* @version $Id$
* @since 1.0
*/
public class ColumnBasedDocume... | 35.266055 | 190 | 0.682102 |
3d0fecff01e01e03f4391c094828bc4124c01da1 | 7,048 | /*
* 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 ... | 43.239264 | 114 | 0.672247 |
5e69fa0d6006cbe5ecabc40f65ce92330185c8ab | 304 | package shouty;
public class Coordinate {
private final int x;
private final int y;
public Coordinate(int xCoord, int yCoord) {
x = xCoord;
y = yCoord;
}
public int distanceFrom(Coordinate other) {
return (int) Math.hypot(x - other.x, y - other.y);
}
}
| 19 | 58 | 0.598684 |
678acae2cc87234478f8398bd20fe62a37f01c17 | 18,183 | package edu.columbia.cs.psl.phosphor.control;
import edu.columbia.cs.psl.phosphor.Instrumenter;
import edu.columbia.cs.psl.phosphor.struct.harmony.util.HashSet;
import edu.columbia.cs.psl.phosphor.struct.harmony.util.LinkedList;
import edu.columbia.cs.psl.phosphor.struct.harmony.util.Set;
import org.objectweb.asm.Type... | 44.785714 | 129 | 0.61662 |
a22cd5201a286470f12e3203fbc2418085778bc8 | 382 | package com.ljc.testCase;
/**
* @Author Lijc
* @Description
* @Date 2019/5/23-9:56
**/
public class Test {
public static void main(String[] args) {
System.out.println(BX.c);
}
}
class AX {
static {
System.out.println("A");
}
}
class BX extends AX {
static {
System.out.... | 14.692308 | 44 | 0.560209 |
e690da7385004128498bbbf8a4ab08facb03c888 | 1,135 | package com.heterodain.mining.powercontroller.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* サービスの設定
*/
@Component
@ConfigurationPropert... | 21.415094 | 75 | 0.629956 |
59dafbdd54f56ee2758a199c039b72516905ba0f | 4,954 | package ggozlo.bbsCommunity.domain.board.service;
import ggozlo.bbsCommunity.domain.board.Board;
import ggozlo.bbsCommunity.domain.board.repository.BoardRepository;
import ggozlo.bbsCommunity.domain.member.Member;
import ggozlo.bbsCommunity.domain.member.authority.Authority;
import ggozlo.bbsCommunity.domain.member.au... | 38.107692 | 139 | 0.693783 |
c48678ce19f4c82761a031e153df0290dc1e9c15 | 1,114 | package js.net.client.fixture;
import java.net.HttpURLConnection;
import java.net.URL;
import js.net.client.ConnectionFactory;
/**
* Mock connection factory replaces HttpURLConnection with {@link MockHttpURLConnection}.
*
* @author Iulian Rotaru
*/
public class MockConnectionFactory extends Connecti... | 27.170732 | 90 | 0.774686 |
6ed79eb7b0d3b47961ff8bd4d50f383ba5e676ad | 330 | package org.sonatype.cs.metrics.repository;
import org.sonatype.cs.metrics.model.QuarantinedComponent;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface QuarantinedComponentRepository extends JpaRepository<QuarantinedComponent,... | 36.666667 | 100 | 0.863636 |
896fd30530fbf921dd62094cf82afc4d5359946e | 454 | package net.saliman.gradle.plugin.cobertura.testclient.calculator;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
/**
* Test the divide function. We expect it to run in the middle.
*
* @author Steven C. Saliman
*/
public class CalculatorDivideTest {
private Calculator calculator = new Calc... | 22.7 | 66 | 0.751101 |
d07f2ae03387ddf097398f0eeaf6189c51af94d6 | 7,127 | /*
* AA 2018-2019
* Introduction to Web Programming
* Healthcare Management System
* UniTN
*/
package it.unitn.disi.wp.project.hms.persistence.dao.jdbc;
import it.unitn.disi.wp.lab.commons.persistence.dao.exceptions.DAOException;
import it.unitn.disi.wp.project.hms.commons.persistence.dao.jdbc.JDBCDAOCustom;
impo... | 39.815642 | 102 | 0.629718 |
9ab35819b4052aad114bc36dc46d68b9d74f5536 | 963 | package com.example.lovestudy.utils;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
public class NetWorkUtil {
public static boolean isNetworkAvailable(Context ctx) {
try {
ConnectivityManager cm = (ConnectivityManager) ctx.getSystemService(Context.CONNE... | 26.75 | 102 | 0.72378 |
0c4fc21ea5172e05d2511367d57907012919a382 | 1,311 | /*
* JavaClassAsStructureImpl.java
*
* Created on 17 de junio de 2005, 9:17
*
* To change this template, choose Tools | Options and locate the template under
* the Source Creation and Management node. Right-click the template and choose
* Open. You can then make changes to the template in the Source Editor.
*/
... | 34.5 | 110 | 0.781846 |
72c01e3c1d7c8fbcc84ef6091bbf7642616af914 | 1,378 | package corpora;
import java.util.HashSet;
public class LemmaPos {
String lemma;
Character pos;
String depRel; //additional non compulsory fields which doesn't effect equality
public LemmaPos(String lemma, Character pos) {
this.lemma = lemma;
this.pos = pos;
}
public LemmaPos(String lemma, Charact... | 21.873016 | 80 | 0.658926 |
d363acc3b1e1353035f78161448c85d1acf3fdfe | 1,958 | package seedu.restaurant.logic.commands.ingredient;
import seedu.restaurant.commons.core.EventsCenter;
import seedu.restaurant.commons.core.Messages;
import seedu.restaurant.commons.events.ui.ingredient.DisplayIngredientListRequestEvent;
import seedu.restaurant.logic.CommandHistory;
import seedu.restaurant.logic.comma... | 42.565217 | 111 | 0.761491 |
28ff02d9ce0ed6ba8912d587c504e7193dd202b6 | 4,547 | package org.linlinjava.litemall.db.service;
import com.github.pagehelper.PageHelper;
import org.linlinjava.litemall.db.dao.LitemallQuestionMapper;
import org.linlinjava.litemall.db.domain.LitemallCircle;
import org.linlinjava.litemall.db.domain.LitemallCircleExample;
import org.linlinjava.litemall.db.domain.LitemallQu... | 37.270492 | 155 | 0.722234 |
7a295ae6f8d9e115a1911830287ab2ead540483d | 16,316 | /**
* 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... | 38.572104 | 140 | 0.695268 |
7d8be0cf1307da1137f801069e14e660be414d6f | 2,322 | package dev.vality.anapi.v2.converter.magista.response;
import dev.vality.anapi.v2.model.Chargeback;
import dev.vality.anapi.v2.model.ChargebackCategory;
import dev.vality.anapi.v2.model.ChargebackReason;
import dev.vality.anapi.v2.model.Content;
import dev.vality.damsel.domain.InvoicePaymentChargebackCategory;
import... | 46.44 | 104 | 0.663221 |
f6deee781784dca0f89676e7164d410dfe214a26 | 275 | class CtorComment {
public String myA;
/**
* This constructor is especially useful
*/
public CtorComment() {
myA = "str";
}
}
class CtorComment2 {
/**
* This constructor is especially useful
*/
public CtorComment2() {}
} | 15.277778 | 44 | 0.563636 |
2d11bff28a493ff8de130eb2fc22aa601be2a4b8 | 456 | package com.mg.bakingapp.utils;
public class BakingApi {
//https://d17h27t6h515a5.cloudfront.net/topher/2017/May/59121517_baking/baking.json
private static final String BASE_URL = "https://d17h27t6h515a5.cloudfront.net/";
static final String BAKING_PATH = "topher/2017/May/59121517_baking/baking.json";
... | 32.571429 | 87 | 0.756579 |
2afa386a5efb93ae2a48ab68e4794af4ddaf6c90 | 8,134 | /**
* Licensed to JumpMind Inc under one or more contributor
* license agreements. See the NOTICE file distributed
* with this work for additional information regarding
* copyright ownership. JumpMind Inc licenses this file
* to you under the GNU General Public License, version 3.0 (GPLv3)
* (the "License"); yo... | 51.481013 | 164 | 0.491394 |
ba7e1b844274b7607feacae306aedb938dfe0021 | 12,589 | package de.dlyt.yanndroid.oneui.sesl.swiperefreshlayout;
import android.animation.Animator;
import android.animation.ValueAnimator;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
import a... | 31.951777 | 198 | 0.629518 |
19cd1e1fd758ba1d02308ea021e44f27eeabdeb1 | 1,891 | package cn.javaer.snippets.ebean;
import cn.javaer.snippets.model.Page;
import cn.javaer.snippets.model.PageParam;
import cn.javaer.snippets.test.JsonAssert;
import cn.javaer.snippets.test.Log;
import io.ebean.DB;
import io.ebean.Database;
import io.ebean.annotation.WhenCreated;
import io.ebean.annotation.WhenModified... | 24.881579 | 94 | 0.680063 |
780ef0affabb541a66cb16fc72e0eae3a07e5bf3 | 1,066 | package com.whitecloak.cleancomponents.mvrp;
import com.whitecloak.cleancomponents.mvp.MvpBasePresenter;
import com.whitecloak.cleancomponents.mvp.MvpView;
public abstract class MvrpBasePresenter<V extends MvpView, R extends MvrpRouter> extends MvpBasePresenter<V> implements MvrpPresenter<V, R> {
private R mRout... | 24.790698 | 141 | 0.672608 |
77ff44f52dd6b766d1cd9fddeaa2f3036fa86111 | 7,908 | /*
* Copyright 2019 Arcus 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 applicable law or agreed to ... | 37.126761 | 161 | 0.776429 |
ba8ef50a888c2cd524d27d3eed5c50c072bdebbd | 4,714 | package commands;
import commands.types.ServerCommand;
import net.dv8tion.jda.api.EmbedBuilder;
import net.dv8tion.jda.api.Permission;
import net.dv8tion.jda.api.entities.Member;
import net.dv8tion.jda.api.entities.Message;
import net.dv8tion.jda.api.entities.TextChannel;
import net.dv8tion.jda.api.entities.User;
impo... | 29.647799 | 105 | 0.550276 |
16289660b3d9779c9ff008b5d5a6d39a32204355 | 7,955 | package com.example.path_02;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
... | 34.437229 | 117 | 0.605657 |
3654712ea0ace778191a0353a7147049e6e5e397 | 1,049 | /**
* Copyright 2017 Smart Society Services 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
*/
package org.opensmartgridplatform.ada... | 31.787879 | 172 | 0.752145 |
9cdb568226439c984adc944c499149f6b24a2aa9 | 1,706 | /*
* (C) Copyright Syd Logan 2017
* (C) Copyright Thousand Smiles Foundation 2017
*
* 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
*
* ... | 27.967213 | 78 | 0.674091 |
4f42931ab7e81f4a8515bedf7dea7437810db21c | 4,137 | class BinaryTreeByArray {
int [] arr;
int lastUsedIndex;
//Constructor for blank Tree
public BinaryTreeByArray(int size) {
arr = new int[size+1];
this.lastUsedIndex = 0;
System.out.println("Blank Tree of size " +size+ " has been created !\n");
}//end of method
//Check if array is full
boolean isTre... | 22.241935 | 76 | 0.64322 |
ed5f27e57e117d5a8726df7c689acbb97a472d81 | 2,173 | /*
* Copyright 2012, 2013, 2014 Decebal Suiu, Emmeran Seehuber
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with
* the License. You may obtain a copy of the License in the LICENSE file, or at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*... | 31.492754 | 118 | 0.744593 |
e03ab9b83542629bec01007f79f7bab312b91450 | 10,079 | /*
* 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 ... | 39.065891 | 175 | 0.686179 |
10e1ee71fd5e72e969eec33562e2a7e012f158b1 | 4,451 | /**
* OLAT - Online Learning and Training<br>
* http://www.olat.org
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); <br>
* you may not use this file except in compliance with the License.<br>
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unl... | 31.567376 | 98 | 0.743204 |
73e35a519dc4d7933654eeab777e27e6d256ba9d | 6,399 | package chickenmumani.com.allshelf;
import android.app.ProgressDialog;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.drawable.ShapeDrawable;
import android.graphics.drawable.shapes.OvalShape;
impor... | 35.353591 | 106 | 0.656353 |
505ab4692fc395483ccd21ec56834318638c2652 | 20,481 | package com.example.sept;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.provider.MediaStore;... | 36.058099 | 137 | 0.54221 |
f9dc00a47d6b6d3ef9ec237551c7ead1c598d514 | 16,154 | package org.realityforge.braincheck;
import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.attribute.PosixFilePermission;
import java.util.Collections;
import javax.annotation.N... | 37.567442 | 120 | 0.669803 |
d0270bffe323f017b211bfb1f0de2d27d943959f | 561 | package com.nativapps.arpia.model.dto;
/**
*
* @author Luis Alfonso Lenes Salas <luislenes02@gmail.com>
* @version 1.0
*/
public class EmailResponse extends EmailData{
private Boolean confirmed;
public EmailResponse() {
}
public EmailResponse(String address, Boolean confirmed) {
... | 20.035714 | 62 | 0.625668 |
96593ac72b652a5f71378aaa44dee421cdd8af80 | 927 | package com.ltnw.ltcloud.fragment;
import com.ltnw.ltcloud.R;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.View;
import android.view.ViewGroup;
public class PhotosFra... | 23.175 | 86 | 0.718447 |
6decfbf5eb7b87ba5136275e92f9dc190f6bf3aa | 2,092 | //package org.crucial.executor.k8s;
//
//import org.crucial.executor.ServerlessExecutorService;
//import io.kubernetes.client.ApiClient;
//import io.kubernetes.client.ApiException;
//import io.kubernetes.client.apis.BatchV1Api;
//import io.kubernetes.client.models.V1Job;
//import io.kubernetes.client.models.V1JobBuilde... | 31.69697 | 76 | 0.565966 |
9c4eb5be2ba946686547fd7354e55157b4a8cb61 | 185 | public class pizzaFromagesItalienne extends Pizza {
public String pizzaName()
{
return "Pizza Mozzarella";
}
public int prix()
{
return 11;
}
} | 15.416667 | 51 | 0.583784 |
7fb155b1e800849f1865b7e344cc2705f6ef6450 | 7,916 | package org.hope6537.note.tij.eighteen;
import java.io.*;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Scanner;
/**
* <p>Describe: 文本文件编码转换器</p>
* <p>Using: </p>
* <p>DevelopedTime: 2014年9月14日下午8:05:... | 27.296552 | 102 | 0.513896 |
966504e2281c572846fea546b3e9caa5e3c3f7f0 | 3,027 | package org.chzz.adapter.demo.engine;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.chzz.adapter.demo.mode.ChatModel;
import org.chzz.adapter.demo.mode.IndexModel;
import org.chzz.adapter.demo.ui.widget.CharacterParser;
import org.chzz.adapter.demo.ui.widget.PinyinCompara... | 35.197674 | 105 | 0.592005 |
489e9a45d12c789d51ccbb88d5791ee234d70c31 | 2,297 | package carbon.widget;
import android.content.Context;
import java.util.HashMap;
import java.util.Map;
/**
* Created by Marcin on 2014-11-07.
*/
public class Roboto {
public enum Style {
Black,
BlackItalic,
Bold,
BoldItalic,
Italic,
Light,
LightItalic,
... | 37.655738 | 104 | 0.676099 |
aad53691131c188a65c5d62636d6a162a01a2c07 | 3,338 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ma... | 26.283465 | 158 | 0.665968 |
1549f2f27de851583a93d764b88fd4a44738c405 | 4,263 | /*
* Copyright 2021 The Netstreamer Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 46.846154 | 138 | 0.735398 |
ade6b3e53d1590101e9ef41a975d959f90833854 | 2,046 | package ru.otus.cachehw;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.lang.ref.WeakReference;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.WeakHashMap;
/**
* @author sergey
* created on 14.12.18.
*/
public class MyCache<K, V> implements HwCache<K, ... | 24.95122 | 99 | 0.557185 |
b7df256fe9c5e4317d4de14daece9cc29a457e70 | 18,095 | package org.telegram.services;
import org.apache.http.HttpEntity;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.conn.ssl.NoopHostnameVerifier;
import org.apache.http.entity.BufferedHttpEntity;
import org.apache.http.impl.client.Closea... | 44.900744 | 135 | 0.623321 |
45ddc3bf9e2f0da7cc1cd6462638a0eb175decb8 | 175 | package ru.liahim.mist.world.biome;
public abstract class BiomeMistBorder extends BiomeMist {
public BiomeMistBorder(BiomeProperties properties) {
super(properties);
}
} | 21.875 | 57 | 0.8 |
e9d3637be6d260ef763ea76d2eacfc202bdd4318 | 939 | package com.guigu.gulimall.order.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* 订单配置信息
*
* @author mylovehaveadream
* @email mylovehaveadream@gmail.com
* @date 2020-0... | 17.716981 | 57 | 0.717785 |
06c1c0016243e9222e490a29877ea6f2876557b3 | 1,346 | package com.techelevator;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
public class VendingMachineTests {
private VendingMachine sut;
@Before
public vo... | 26.92 | 98 | 0.641902 |
e33c90fe6e7473cb883e5b965c46ad1bea1f1e70 | 6,147 | package com.imooc.run.newyear.Util;
import java.util.Date;
import java.util.Properties;
import javax.activation.CommandMap;
import javax.activation.MailcapCommandMap;
import javax.mail.BodyPart;
import javax.mail.Multipart;
import javax.mail.PasswordAuthentication;
import javax.mail.Session;
import javax.mail.Transpo... | 26.157447 | 142 | 0.602408 |
1a30608f8f2ba4dc1d5f0236474de71b0ac72e4c | 3,854 | package com.argentumjk.client.views.screens;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.scenes.scene2d.InputEvent;
import com.badlogic.gdx.scenes.scene2d.InputListener;
import com.badlogic.gdx.scenes.scene2d.ui.Table;
import com.kotcrab.v... | 43.303371 | 142 | 0.570835 |
3d1dcabca8b2e022d55bf00960a0628fb153d37f | 1,493 | package com.painter.entity;
import java.util.HashSet;
import java.util.Set;
/**
* Goodstype entity. @author MyEclipse Persistence Tools
*/
public class Goodstype implements java.io.Serializable {
// Fields
private Integer typeid;
private String name;
private String description;
private String coverimg;
pri... | 17.987952 | 67 | 0.71065 |
5b106bf3aadf227ba27b38e22c813d2a51ed076d | 265 | package jason.designpatterns.observer;
/**
* 观察者接口
* 抽象观察者,包含了一个更新自己的抽象方法,当接到具体主题的更改通知时被调用
*
* @author Jason Hou
*/
public interface ClickableObserver {
/**
* 通知被调用
*
* @param clickable 主题
*/
void clicked(Clickable clickable);
}
| 13.947368 | 40 | 0.641509 |
21a2ec2fc20b302dd8c5a65c955eaeb0d164edac | 624 |
import java.util.HashMap;
import java.util.Map;
public class TokenMapper {
private Map<String, Integer> TermToId = new HashMap<String, Integer>();
private Map<Integer,String> IdtoTerm= new HashMap<Integer, String>();
public void addValues(String key, int value){
TermToId.put(key, value);
IdtoTerm.put(valu... | 16.864865 | 72 | 0.698718 |
fde0c79c8eedde7b011772f2bd3caf23d44a9cdf | 264 | package com.ef.dao;
import com.ef.model.Result;
import java.util.List;
/**
*
* @author jdiaz86
*/
public interface ResultDao {
Result findOne(Long id);
List<Result> findAll();
void save(Result log);
Long update(Result log);
}
| 12.571429 | 28 | 0.621212 |
5b41bba2a7d860a4af8312813787ce5db7e2273b | 1,538 | // Licensed to Cloudera, Inc. under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. Cloudera, Inc. licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this f... | 35.767442 | 76 | 0.745124 |
393140ee1929f8b4ba41240ce446ca28b7adb5e2 | 2,094 | package io.github.alxiw.icq.geekbot.disp;
import io.github.alxiw.icq.geekbot.sys.AppLogger;
import ru.mail.im.botapi.BotApiClientController;
import ru.mail.im.botapi.api.entity.EditTextRequest;
import ru.mail.im.botapi.api.entity.InlineKeyboardButton;
import java.io.IOException;
import java.util.Collections;
import j... | 35.491525 | 127 | 0.647564 |
78ed20735c1595ac3ade5255b5cf85ada32f3e2d | 35,700 | /*-
* ===============LICENSE_START=======================================================
* Acumos
* ===================================================================================
* Copyright (C) 2017 AT&T Intellectual Property & Tech Mahindra. All rights reserved.
* ==========================================... | 40.293454 | 675 | 0.751457 |
2a4f546a8171dee6f41c4fbf4bfd58e0a35f82fc | 300 | package <%= package %>;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class <%= appName %> {
public static void main(String[] args) {
SpringApplication.run(<%= appName %>.class, args);
}
}
| 23.076923 | 68 | 0.753333 |
523fa4081293cbacdb8661fb1bfa2f6a7f54c0a3 | 5,192 | package ca.uhn.fhir.jpa.dao;
import static org.apache.commons.lang3.StringUtils.isNotBlank;
import java.util.*;
import org.hl7.fhir.instance.hapi.validation.IValidationSupport;
import org.hl7.fhir.instance.model.api.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.fa... | 36.307692 | 192 | 0.774461 |
9983f5c229a0618d7cb99804cf491e15c95c70de | 1,870 | /*
* 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.283019 | 127 | 0.711765 |
e63d9a2ca134ded087c4331d74a247111f431483 | 2,003 | package com.azuriom.azlink.common.scheduler;
import java.util.Objects;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.atomic.AtomicInteger;
/**
* Simple ThreadFactory builder implementation.
* Inspired by the Guava ThreadFactoryBuilder.
*/
public class... | 27.819444 | 149 | 0.67349 |
1a9fe8a6b03b2160685fa30f0b088b3c0e70597e | 1,113 |
package org.vanda.studio.core;
import java.awt.Rectangle;
import javax.swing.JComponent;
import javax.swing.JInternalFrame;
import javax.swing.event.InternalFrameEvent;
import org.vanda.studio.app.LayoutAssortment;
import org.vanda.studio.app.LayoutSelector;
@SuppressWarnings("serial")
class ToolFrame extends JInt... | 23.1875 | 66 | 0.760108 |
9e58691def8452681f0be0ebb296f6ed5cace268 | 333 | package co.aurasphere.botmill.kik.validator;
import co.aurasphere.botmill.kik.incoming.model.IncomingMessage;
public class TextMatchValidator extends BaseValidator {
@Override
public boolean validate(IncomingMessage incomingMessage) {
// run your validation, if this returns falses, the method reruns.
return ... | 23.785714 | 68 | 0.792793 |
cb23380e103c0cdd899bc7243d070e1abff891ad | 770 | package mappers;
import org.apache.hadoop.io.DoubleWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;
import java.io.IOException;
import java.util.Arrays;
import java.util.List;
public class SortMapper extends Mapper<Object, Text, DoubleWritable, Text> {
@Override
protect... | 28.518519 | 106 | 0.671429 |
01c5cedea8e0125f01eafbd6b58d13bd8fb6641b | 1,553 | /*
* Copyright: Almende B.V. (2014), Rotterdam, The Netherlands
* License: The Apache Software License, Version 2.0
*/
package com.almende.test.dht;
import java.io.IOException;
import java.net.URISyntaxException;
import junit.framework.TestCase;
import org.junit.Test;
import com.almende.eve.agent.AgentConfig;
im... | 27.245614 | 72 | 0.740502 |
1ddcb7740f95ccdc852fb88fe3cd336592d947e0 | 7,393 | /*
* Copyright (c) 2009-2020 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | 39.534759 | 120 | 0.695252 |
f05eef928c09a195abb225eb5f119b5e3833c650 | 1,715 | package com.github.ghrocs.zeebe.demo.base;
import io.zeebe.client.ZeebeClient;
import io.zeebe.client.api.response.DeploymentEvent;
import io.zeebe.client.api.response.Topology;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import or... | 30.087719 | 100 | 0.545773 |
bdc6333b40d633e7bc5b09c8b5ee64ff6f5b2b7a | 1,918 | package fr.univnantes.lina.uima.resources;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Scanner;
import org.apache.uima.resource.DataResource;
import org.apache.uima.... | 28.626866 | 128 | 0.703858 |
28191b20d9e884d69b737a2a4d15d3fb7ca58f13 | 10,207 | package br.com.gbvbahia.maker.factories;
import br.com.gbvbahia.i18n.I18N;
import br.com.gbvbahia.maker.factories.types.DefaultFactory;
import br.com.gbvbahia.maker.factories.types.EnumFactory;
import br.com.gbvbahia.maker.factories.types.FuturePastFactory;
import br.com.gbvbahia.maker.factories.types.MaxMinFact... | 32.714744 | 87 | 0.638973 |
6910b71dd04c0f7fe90ac0103f22e1645ec15ff8 | 11,235 | 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 licenses... | 13.973881 | 815 | 0.807833 |
f5ffd19f7c1ffe5542435415fdcd05b85790bd3c | 1,283 | package com.fesine.link.practice;
/**
* @description: 一个链表数据为1-4-3-8 --->反向输出为8-3-4-1
* @author: fesine
* @createTime:2020/3/19
* @update:修改内容
* @author: fesine
* @updateTime:2020/3/19
*/
public class ReverseLink {
/**
* 链表反向输出
* @param node
*/
public void solution(Node node){
if(... | 17.819444 | 48 | 0.516758 |
b9a0c69f5fcf19aef9df81b497ce976c9c938406 | 776 | package net.n2oapp.context;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.function.Supplier;
/**
* @author operehod
* @since 13.05.2015
*/
public class CacheTemplateByMap {
private volatile Map<List, Object> cache = new HashMap<>();
@Supp... | 22.171429 | 66 | 0.60567 |
6f86338da39e4192e6e8d90b92ff71cc60e1cebb | 1,988 | package br.com.zup.mercadolivre.product.util;
import org.springframework.core.io.Resource;
import org.springframework.core.io.UrlResource;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;
import java.io.IOException;
import java.net.MalformedURLException;
import ja... | 34.275862 | 80 | 0.6333 |
3bd801a8f2a1079ca1651553a31a34ffc3b126af | 320 | package com.oakraw.library;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
public interface OnTransformersScrollListener {
void onScrollStateChanged(@NonNull RecyclerView recyclerView, int newState);
void onScrolled(@NonNull RecyclerView recyclerView, int dx, int dy);
} | 32 | 80 | 0.81875 |
93f3934757a39a67b05d806b0052dd06440d12d4 | 311 | package com.wugui.datax.admin.util;
/**
* Copyright(C),datax-all
* Author: 凌云[heyf@yoozoo.com]
* Version: v1.0.0
* Date: 2020/4/14 11:07 上午
* Description: null.java
*/
public interface Alarm {
String receives = null;
String subject = null;
String content = null;
Boolean send();
}
| 19.4375 | 35 | 0.636656 |
2e367d171c65e0645f400d6cfcdfcc39de945d79 | 1,927 | // Copyright 2020 Goldman Sachs
//
// 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 ... | 27.927536 | 107 | 0.666321 |
3b562b7109089c43b160be5e53e50391e971753f | 5,339 | package com.lly835.bestpay.service.impl;
import com.lly835.bestpay.config.AliPayConfig;
import com.lly835.bestpay.config.SignType;
import com.lly835.bestpay.config.WxPayConfig;
import com.lly835.bestpay.enums.BestPayPlatformEnum;
import com.lly835.bestpay.model.*;
import com.lly835.bestpay.service.BestPayService;
impo... | 35.593333 | 101 | 0.676718 |
e5c35d037bef147a6d35515cb60ddcc616beb5cf | 1,979 | package game.content.miscellaneous;
import game.item.ItemAssistant;
import game.player.Player;
/**
* Monkey greegree.
*
* @author MGT Madness, Created on 05-01-2015.
*/
public class MonkeyGreeGree {
/**
* Choose the monkey type to transform to and wear the Monkey greegree.
*
* @param player The associated... | 35.339286 | 147 | 0.768065 |
430fb64732cbb0b949e5a8962cde756df9f25b8a | 1,616 | package com.example.nanews;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;
import com.bumptech.glide.Glide;
import com.example.nanews.auth... | 28.350877 | 86 | 0.680074 |
52b58ec8f3a9c94ad77ecbee705c09ff9c7602e6 | 241 | package com.jianli.business.dao;
import com.jianli.business.domain.Project;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.MySqlMapper;
public interface ProjectDao extends Mapper<Project>, MySqlMapper<Project> {
}
| 26.777778 | 75 | 0.817427 |
0c220466006584b7cfa45d1e803a9f41fc77c939 | 733 | package com.intel.oap.substrait.type;
import io.substrait.proto.Type;
import java.io.Serializable;
public class DateTypeNode implements TypeNode, Serializable {
private final Boolean nullable;
DateTypeNode(Boolean nullable) {
this.nullable = nullable;
}
@Override
public Type toProtobuf(... | 27.148148 | 78 | 0.673943 |
11ad240571e36b475c2b89b64e6c5db75fb9c477 | 1,984 | package mysh.cluster;
import org.junit.jupiter.api.Test;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
import java.rmi.AlreadyBoundException;
import java.rmi.NotBoundException;
import java.rmi.Remote;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import ... | 23.619048 | 96 | 0.703125 |
e9cce8be4d35f4505a053b500a957d5b9f24642f | 970 | package com.dcits.dcwlt.pay.api.domain.dcep.common;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
/**
* 业务处理状态
*
*
* @date 2020/12/28
*/
public enum ProcessStatusCodeEnum {
PR00("PR00", "成功"),
PR01("PR01", "失败");
public static final Set<String> enumSet = new HashSet<>(4... | 17.962963 | 94 | 0.61134 |
2658b9db50741d2594c8c2c68b0c21720e9a693d | 681 | package com.my.evc.type;
/**
* 描述留言类型。
*/
public enum MessageType {
QUESTION(1, "提问"),
SUGGESTION(2, "建议"),
COMPLAIN(3, "吐槽");
private int value;
private String name;
private MessageType(int value, String name) {
this.value = value;
this.name = name;
}
public String getName() {
return name;
}
... | 14.489362 | 49 | 0.621145 |
314c432329603f78a0279ed663091434b1040815 | 19,798 | package com.ifengxue.plugin.gui;
import com.ifengxue.plugin.Constants;
import com.ifengxue.plugin.Holder;
import com.ifengxue.plugin.action.JpaSupport;
import com.ifengxue.plugin.adapter.DriverDelegate;
import com.ifengxue.plugin.component.DatabaseSettings;
import com.ifengxue.plugin.entity.MybatisGeneratorTableSchema... | 42.94577 | 119 | 0.726892 |
c7d6207436ec5b98de4e346263797a67b21c5238 | 5,762 | /*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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
... | 32.189944 | 127 | 0.698195 |
47752dff606cc524538075d9fe864f594e6aae14 | 7,131 | /**
*
*/
package com.smatt.cc.auth;
import com.bitbucket.thinbus.srp6.js.SRP6JavascriptServerSessionSHA256;
import com.google.gson.Gson;
import com.nimbusds.srp6.SRP6CryptoParams;
import com.smatt.cc.util.Path;
import java.util.HashMap;
import org.jsoup.Jsoup;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory... | 34.955882 | 125 | 0.565419 |
752eba0fc38d55de12e6f27133d707c6e1d2740d | 1,562 | package com.febers.iuestc.entity;
public class BeanExam {
private String num = "";
private String name = "";
private String date = "";
private String time = "";
private String position = "";
private String seat = "";
private String status = "";
private String other = "";
private Boo... | 18.162791 | 46 | 0.560179 |
ee401d0488d15eab3503c6659ee7bcba324b3fac | 6,030 | /*
* Copyright (C) 2019 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... | 42.167832 | 135 | 0.748922 |
096ebe82ef403c33f2b8f7a08992c48c85f75978 | 240 | package com.dipasquale.ai.common.function.learning.rate;
@FunctionalInterface
public interface LearningRateFunction {
float calculate(float rate, int size); // https://github.com/wagenaartje/neataptic/blob/master/src/methods/rate.js
}
| 34.285714 | 118 | 0.8 |
4b41257c37a40bd433f8ee8f9f2a37fd0c8fc42a | 3,906 | package seedu.address.model;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static seedu.address.testutil.TypicalLocations.ELLE_LOCATION;
import static seedu.address.testutil.TypicalLocations.FIONA_LOCATION;
import static seedu.address.testutil.TypicalLocations.GEORGE_LOCATION;
import static seedu... | 42.923077 | 110 | 0.763185 |
ae005653a71b374e1fae621e5a915118b825596f | 5,526 | package com.flyme.app;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.EntityTransaction;
import javax.persistence.Persistence;
import javax.pers... | 30.530387 | 146 | 0.630112 |
14378c916f6576e5cbca09d4a14c9447fea5a734 | 3,919 | package com.qa.ims.persistence.domain;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import org.junit.Before;
import org.junit.Test;
import org... | 23.327381 | 66 | 0.713702 |
f86d48093a1a41bb9965a5afda9c25a8f2ba93d1 | 3,030 | /*******************************************************************************
* Copyright (c) 2000, 2012 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, an... | 27.545455 | 85 | 0.649835 |
3c07d0ac5cee785369c3490600bde339b98f1c43 | 1,712 | package com.github.louism33.chesscore;
import org.junit.Assert;
import static com.github.louism33.chesscore.BoardConstants.ALL_COLOUR_PIECES;
import static java.lang.Long.numberOfTrailingZeros;
final class MoveMakingUtilities {
static void removePieces(long[][] pieces, int[] pieceSquareTable, long sourceSquare,... | 33.568627 | 123 | 0.657126 |
07d67f79ebf79a71256c9b152c68056f611b9a9a | 1,671 | package top.linesoft.open2share;
import android.content.Intent;
import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
public class ReceiveOpenActivity extends AppCompatActivity {
@Override
protected void onDestroy() {
super.onDestroy();
... | 32.764706 | 99 | 0.685218 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.