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 |
|---|---|---|---|---|---|
05483fc224ee2b9f8295aa00438b7add648f0e42 | 2,205 | package cn.edu.nju.software.pinpoint.statistics.controller;
import cn.edu.nju.software.pinpoint.statistics.entity.common.JSONResult;
import cn.edu.nju.software.pinpoint.statistics.utils.FileUtil;
import cn.edu.nju.software.pinpoint.statistics.utils.cors.CorsConfigure;
import io.swagger.annotations.Api;
import io.swagg... | 31.956522 | 80 | 0.685261 |
c9268bb72060d7e3eea09f1c5271d3abdad51a16 | 2,033 | /*
* Copyright (c) 2018 AITIA International Inc.
*
* This work is part of the Productive 4.0 innovation project, which receives grants from the
* European Commissions H2020 research and innovation programme, ECSEL Joint Undertaking
* (project no. 737459), the free state of Saxony, the German Federal Ministry o... | 44.195652 | 144 | 0.735366 |
bb2aee63f806ac42c2127cfcfa67eb0674173c52 | 1,075 | package org.knowm.xchange.bittrex.dto.marketdata;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.ArrayList;
public class BittrexMarketSummariesResponse {
private final boolean success;
private final String message;
private final ArrayList<BittrexMarketSummary> marketSummaries;
public... | 21.5 | 71 | 0.693953 |
6b9a912b5c5a683e84fb8ab4f1dc133e147d9f5d | 269 | package gaia3d.persistence;
import org.springframework.stereotype.Repository;
/**
* 공통 처리
* @author jeongdae
*
*/
@Repository
public interface CommonMapper {
/**
* 테이블 존재 유무 체크
* @param tableName
* @return
*/
Boolean isTableExist(String tableName);
}
| 12.809524 | 49 | 0.69145 |
0af1de251059b309abbcbbc888b5a7db6dd46714 | 5,595 | package com.tzutalin.dlibtest;
import android.Manifest;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.os.Build;
import android.os.Bundle;
import android.os.Environment;
im... | 33.502994 | 120 | 0.687578 |
a7768d0ae3f745c4380601dfcab35e7df9919457 | 12,564 | /*
* Copyright 2013 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 agreed t... | 44.871429 | 100 | 0.611748 |
ca19a072bd9f484e5b202cf68facd2c206f05a61 | 1,553 | package org.langxf.javalab.collection;
import org.openjdk.jmh.annotations.*;
import org.openjdk.jmh.infra.Blackhole;
import org.openjdk.jmh.runner.Runner;
import org.openjdk.jmh.runner.RunnerException;
import org.openjdk.jmh.runner.options.Options;
import org.openjdk.jmh.runner.options.OptionsBuilder;
import java.uti... | 26.322034 | 67 | 0.643271 |
82d211eeea98d2f46ef509ae89daf780f52eda20 | 689 | package com.stackDigest.stackDigest.beans.database;
import javax.persistence.*;
@Entity(name = "userd_seen")
@Table(indexes =
{
@Index(columnList = "id,seen",name = "user_id_seen")
})
public class UserD_seen {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private ... | 19.138889 | 68 | 0.597968 |
b14598fae56c888a8cbad184ed7c63aa8827d12a | 32,926 | package com.matrixdev.game.apimanagerlib.web;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.AsyncTask;
import android.util.Log;
import android.widget.Toast;
import... | 35.102345 | 174 | 0.52533 |
6f3e23ea632fc2895c5be6d37478aee2dbaa3b54 | 3,262 | package powercraft.transport;
import java.util.Random;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.nbt.NBTTagCompound;
import powercraft.api.network.PC_IPacketHandler;
import powercraft.api.tileentity.PC_TileEntity;
import powercraft.api.utils.PC_VecI;
import powercraft.api.utils.PC... | 27.183333 | 100 | 0.713979 |
016ffa4a2ea069961c24fb8b3f3ce50213726ca4 | 1,590 | /* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class provides IDs to access resources declared in the URS file.
* It was automatically generated by NeoMAD and should not be modified by hand.
*/
package com.neomades.jsonexample;
public final class Res {
public static final class id {
public static final int D... | 35.333333 | 79 | 0.769182 |
86e23f4dada390940cba17670aef7549fabb002f | 147 | package combining.observer;
public interface QuackObservable {
public void registerObserver(Observer observer);
public void notifyObservers();
} | 24.5 | 49 | 0.823129 |
b44867708f9cb31af01e35a0d0e61de8c8873a7a | 5,037 | package com.leichui.shortviedeo.utils;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
public class DateUtils {
// String->String
public static String getDate(String time, String format) {
try {
Long lt;
i... | 28.948276 | 101 | 0.515188 |
f287add6ca04fe297889654373f0a98ea7d63462 | 356 | package ast.comment;
import token.Token;
public class NoteComment extends Comment {
private final Token note;
public NoteComment(Token note) {
this.note = note;
}
public Token getNote() {
return note;
}
@Override
public <R> R accept(CommentVisitor<R> visitor) {
... | 16.181818 | 52 | 0.623596 |
25b5a1dbdc2a907267df9d31b67fa9c3cda7040d | 855 | package fr.zom.testmod.init;
import fr.zom.testmod.TestMod;
import fr.zom.testmod.tileentity.TestTileEntity;
import fr.zom.zapi.utils.TileEntityUtils;
import net.minecraft.tileentity.TileEntityType;
import net.minecraftforge.event.RegistryEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecra... | 32.884615 | 126 | 0.818713 |
be4a4f757a43a2b7d83521ac6f40db11b6cc96a5 | 3,257 | /*
* Copyright 2015 Allette Systems (Australia)
* http://www.allette.com.au
*
* 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... | 26.479675 | 96 | 0.671477 |
9e46aeaa8f06c9134140cc10c0ff990b0601513f | 1,207 | /*
Get All Entries From Zip File Example.
This Java example shows how to get enumeration of all entries
(i.e. files or directories) using entries method of
Java ZipFile class.
*/
import java.io.IOException;
import java.util.Enumeration;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;
public class... | 20.457627 | 63 | 0.628832 |
3603f2195d1d973f74b0d8bede4199ebf3085f94 | 872 | package net.ddns.zimportant.lovingpeople.service.persistence;
import android.graphics.Color;
import java.util.ArrayList;
public class HomePostsData extends FixturesData {
public static final int NUM_POST = 100;
private static ArrayList<String> colors = getColors();
public static ArrayList<String> getHomePosts()... | 24.222222 | 64 | 0.713303 |
1c6e00a8497c4d832ab48f18d0ba1dba71fad4ed | 5,093 | package tech.jaya.currencytransaction.core.model;
import org.junit.jupiter.api.Test;
import tech.jaya.currencytransaction.core.exception.BaseBusinessException;
import tech.jaya.currencytransaction.core.exception.ErrorMessage;
import tech.jaya.currencytransaction.fixture.FixtureConversionTransaction;
import java.math.... | 40.102362 | 120 | 0.679757 |
2f998a12101f819210d8164f5dbae2485c97af18 | 1,855 | package org.parallaxsecond.parsec.protocol.operations_protobuf;
import com.google.protobuf.InvalidProtocolBufferException;
import org.parallaxsecond.parsec.protobuf.psa_generate_key.PsaGenerateKey;
import org.parallaxsecond.parsec.protocol.operations.NativeOperation;
import org.parallaxsecond.parsec.protocol.operation... | 40.326087 | 95 | 0.78814 |
b838613bd740a63eda59ff7eb14e634b883b8c74 | 818 | package com.vimukti.accounter.web.client.ui;
import java.util.ArrayList;
import java.util.List;
public class Menu extends MenuItem {
List<MenuItem> menuItems;
public Menu(String title) {
super(title);
menuItems = new ArrayList<MenuItem>();
}
public List<MenuItem> getMenuItems() {
return me... | 20.45 | 72 | 0.689487 |
fdae7aac3385c5a2b61b6c6a1df7f474e2ae3e62 | 2,359 | package de.crysxd.ownfx;
import java.awt.AWTException;
import java.awt.Desktop;
import java.awt.Dimension;
import java.awt.Image;
import java.awt.Menu;
import java.awt.MenuItem;
import java.awt.PopupMenu;
import java.awt.SystemTray;
import java.awt.TrayIcon;
import java.awt.event.ActionEvent;
import java.awt.event.Act... | 25.095745 | 80 | 0.701992 |
71f8121b01f07b98b7e0a19c774bc581074c8135 | 352 | package br.com.zupacademy.henriquecesar.mercadolivre.repository;
import java.util.Optional;
import org.springframework.data.repository.CrudRepository;
import br.com.zupacademy.henriquecesar.mercadolivre.modelo.Usuario;
public interface UsuarioRepository extends CrudRepository<Usuario, Long> {
Optional<Usuario>... | 25.142857 | 74 | 0.829545 |
a56c2ba3e366763ef71de06cfafbc58de37a8ae3 | 250 | package com.breadcrumbdata.anchor_service.repository;
import com.breadcrumbdata.anchor_service.dataobject.Level;
import org.springframework.data.jpa.repository.JpaRepository;
public interface LevelRepository extends JpaRepository<Level,Integer>{
}
| 31.25 | 70 | 0.864 |
200471954d8120accdc156c8c18ee3d326d09dcb | 778 | package de.geolykt.starloader.api.event.empire;
import org.jetbrains.annotations.NotNull;
import de.geolykt.starloader.api.empire.ActiveEmpire;
/**
* Event that is fired whenever the technology level of an empire decreases by
* one. This is the usual natural progression that decreases the technology
* level and u... | 31.12 | 78 | 0.749357 |
9dc5f911024cf6ba9a611da76133bc9526f7b04f | 3,208 | /*
* Copyright (c) 2010-2013 the original author or authors
*
* 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, cop... | 36.454545 | 112 | 0.712594 |
a7fec01100818dd8e93869e0ced023eb99388dce | 1,228 | /*
* Copyright (C) 2011 Google 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 to i... | 39.612903 | 114 | 0.785016 |
652e9be3d80ba67dd9f837a07e41635cd8aa0479 | 417 | package ru.job4j.oop;
/**
* @author madrabit on 05.08.2019
* @version 1$
* @since 0.1
*/
public class BallStory {
public static void main(String[] args) {
Ball ball = new Ball();
Hare hare = new Hare();
Wolf wolf = new Wolf();
Fox fox = new Fox();
hare.tryEat(ball);
... | 19.857143 | 44 | 0.522782 |
3fd586c17393ab4754873fa26b0f7b02aaa90d51 | 336 | package com.lidong.consumer;
import org.springframework.stereotype.Component;
@Component
public class HelloServiceFallback implements HelloService {
@Override
public String callSayHello(String name) {
return "Error----"+name;
}
@Override
public String test(String name) {
return "... | 17.684211 | 59 | 0.684524 |
b016a1c3b7322f1523763c26db171020359ff16d | 12,659 | /**
* SpectralType.java
*
* Copyright (c) 2017, Samuel Penn.
* See the file LICENSE at the root of the project.
*/
package uk.org.glendale.worldgen.astro.stars;
import uk.org.glendale.worldgen.web.Server;
/**
* Defines the spectral type of the star, using the Hertzsprung-Russell diagram.
* This is a measure of... | 31.179803 | 100 | 0.432894 |
fdb783df0fc4327f7bffd37b4aeee6c1e8436bbc | 2,431 | package main.java.jce.compiling.utils;
import com.google.gson.Gson;
import com.google.gson.stream.JsonReader;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import java.io.*;
import java.util.List;
import java.util.Objects;
/**
* FileScriptCreator is a Tool which is u... | 31.166667 | 128 | 0.66557 |
6482d3342e4acaf8a19bcef7228b1bd52a5cce18 | 99 | package com.panosen.collections;
public final class Should<TValue> extends Conditions<TValue> {
}
| 19.8 | 62 | 0.79798 |
428c628c6af7fe6b4ed022ea9ff16309bd538a7c | 980 | package com.jimmy.model;
/**
* 门户展示结果对象
*
* @author zhour
*/
public class AdminRevealResultModel extends BaseModel {
private BarChartPluginListEntity barChartResult;
private LineChartPluginListEntity lineChartResult;
private SmallChartPluginEntity smallChartResult;
public BarChartPluginListEntity... | 25.789474 | 79 | 0.747959 |
67b6b131f2c34f53b3c467509f23788698677416 | 5,691 | package be.unamur.info.b314.compiler.pils.declarations;
import be.unamur.info.b314.compiler.GrammarParser;
import be.unamur.info.b314.compiler.listeners.Context;
import be.unamur.info.b314.compiler.mappers.SpaceRequirement;
import be.unamur.info.b314.compiler.nbc.symbols.Identifier;
import be.unamur.info.b314.compiler... | 32.895954 | 149 | 0.640309 |
a5982e2106f400970a316e2719891cd9df8b10e3 | 2,515 | /**
* Copyright 2005-2014 Red Hat, Inc.
*
* Red Hat 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 r... | 29.244186 | 127 | 0.673161 |
0da77c9eecafebd07be52a5758d2e295ae16b25a | 2,831 | /*
* 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 ... | 22.648 | 82 | 0.628753 |
f359d194257209856b1bd7d5689c5e8f24e770ea | 163 | package signature;
import java.io.File;
public class TestStandardTypes {
void signature() {
TestStandardTypes a= null;
String s= null;
File f= null;
}
}
| 13.583333 | 32 | 0.705521 |
4312f5611f5a22030f27db6452268bcafbd83482 | 4,845 | package fi.nls.oskari.control.layer;
import fi.nls.oskari.control.ActionConstants;
import fi.nls.oskari.control.ActionDeniedException;
import fi.nls.oskari.control.ActionException;
import fi.nls.oskari.control.ActionParameters;
import fi.nls.oskari.domain.map.OskariLayer;
import fi.nls.oskari.map.layer.OskariLayerServ... | 38.452381 | 119 | 0.715583 |
2bb8a935f632c19da7dd2acabf44ca482eab764b | 1,922 | package com.ymy.xxb.migrat.module.comyany.controller;
//import org.redisson.api.RLock;
//import org.redisson.api.RedissonClient;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestMapping... | 30.03125 | 138 | 0.707076 |
221538417b76899fe30551da0da851153ab8063a | 900 | package com.pugz.bloomful.common.world.gen.feature;
import com.mojang.datafixers.Dynamic;
import com.pugz.bloomful.core.util.BiomeFeatures;
import net.minecraft.world.biome.Biome;
import net.minecraft.world.biome.Biomes;
import net.minecraft.world.gen.feature.DoublePlantConfig;
import net.minecraft.world.gen.feature.D... | 32.142857 | 89 | 0.753333 |
aff4868ab5dc72fabdc16997a32b81afee301bae | 6,717 | /*
* 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")... | 31.834123 | 174 | 0.71922 |
e861c7e1c6949ee3dfca6521cd2cea49fde840c0 | 6,357 | package com.griddelta.lyza.spark;
import static com.datastax.spark.connector.japi.CassandraJavaUtil.javaFunctions;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.lang.NotImplementedException;
import org.apache.spark.SparkConf;
import org.apache.spark.api.jav... | 49.27907 | 137 | 0.673588 |
6bd42bd3fcfa84b6b67cc9596ba69321a38f869c | 246 | package io.singularitynet.sdk.ethereum;
/**
* Entity which has an Ethereum address.
*/
public interface WithAddress {
/**
* Return Ethereum address of the entity.
* @return Ethereum address.
*/
Address getAddress();
}
| 16.4 | 45 | 0.654472 |
aa1ff6b35e2070bebd645e5816262a5fa9ac0743 | 573 | package com.sharkman.nodetree.aspect;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* <p> Description:节点树配置</p>
* <p> CreationTime: 2021/8/27 16:21
* <br>Email: <a href="mailto:yanpengyu@thunisoft.com">yanpengyu@thunisoft.com</a></p>
*
* @aut... | 20.464286 | 86 | 0.668412 |
367c0575e1d6321fd27eafa5bb03328a2749066f | 526 | package de.pxlab.pxl.display.editor;
/**
* The vision demonstrations version of the PXLab display editor.
*
* @version 0.2.0
*/
/*
*
* 2006/11/22
*/
public class VisionDemonstrations {
// ---------------------------------------------------------------
// Application entry point
// -----------... | 23.909091 | 68 | 0.477186 |
f72f7c7abe529bb4667edefd798fd0ee7e0eba56 | 1,718 | package me.andrew.silentbackground.mixin;
import me.andrew.silentbackground.SilentBackgroundMod;
import net.minecraft.client.option.GameOptions;
import net.minecraft.client.sound.SoundSystem;
import net.minecraft.sound.SoundCategory;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injectio... | 37.347826 | 124 | 0.672293 |
da3883a871d6da3d6eace87a0187b8b52ed26722 | 972 | package com.patrykkosieradzki.quizletify.api.google;
import org.junit.Test;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.nullValue;
public class LanguageTest {
@Test
public void whenLanguagePolishThenAbbreviationIsGiven() {
... | 26.27027 | 70 | 0.717078 |
144f91e9eca8a91245ff188b87d81375c00ba7ac | 7,913 |
package jam.io;
import java.io.File;
import java.io.IOException;
import jam.app.JamLogger;
import jam.lang.JamException;
import jam.util.RegexUtil;
/**
* Provides utility methods for operating on files and file names.
*
* <p>All methods wrap checked exceptions ({@code IOException}s) in
* runtime exceptions.
*/... | 28.879562 | 106 | 0.620119 |
066ffa6e5a21eff6d987f2e3788a112d38f8a8e0 | 680 | /********************************************************************************
* Copyright (c) 2011-2017 Red Hat Inc. and/or its affiliates and others
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* http://www.apach... | 40 | 82 | 0.588235 |
9e74f7345c28646145752045164485c15f3d9f4b | 21,274 | /*
* Copyright 2006-2011 The Virtual Laboratory for e-Science (VL-e)
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* For details, see the LICENCE.txt file location in the root directory of this
* distribution or obtain ... | 30.787265 | 109 | 0.611827 |
232bf7ff60650168c76bd261cf93fe9e9a7e663d | 735 | package com.company.model;
public class HexadecimalNumber extends Number {
private String number;
/**
* Constructor for HexadecimalNumber
* @param number String
*/
public HexadecimalNumber(String number) {
this.number = number;
}
/**
* Returns number associated with t... | 18.375 | 48 | 0.583673 |
77a8c82127747daced1ef223047189566d248384 | 413 | package net.jahhan.jedis;
import lombok.Data;
import lombok.EqualsAndHashCode;
import redis.clients.jedis.Jedis;
@Data
@EqualsAndHashCode(callSuper=false)
public class WriteJedis extends BaseJedis {
public WriteJedis(Jedis jedis) {
this.jedis = jedis;
this.client = jedis.getClient();
... | 18.772727 | 44 | 0.646489 |
84b31787f92513363307d3f0906225aa064fd460 | 4,031 | package com.taig.dna;
import static com.taig.dna.Nucleotide.Purine.Adenine;
import static com.taig.dna.Nucleotide.Purine.Guanine;
import static com.taig.dna.Nucleotide.Pyrimidine.Cytosine;
import static com.taig.dna.Nucleotide.Pyrimidine.Thymine;
/**
* Representation of <a href="https://en.wikipedia.org/wiki/Nucleot... | 21.55615 | 114 | 0.685934 |
adea4e232f6a8afda10fa6a98bee273c56352d34 | 3,810 | package com.morpho.demo.customs;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import com.morpho.demo.R;
import java.util.Random... | 28.432836 | 128 | 0.571916 |
899959ca64c3530050dfa284c22ac582dd762f21 | 1,219 | package org.nrocn.user.utils;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.RandomUtil;
import cn.hutool.crypto.digest.DigestUtil;
import org.nrocn.user.entity.AccountEntity;
import org.nrocn.user.model.AccountDomain;
import java.util.Date;
import java.util.UUID;
public abstract class AccountUtils... | 32.078947 | 109 | 0.712059 |
8de9d3fe1bb466d122f09d6abbbcc96bb1c9eca9 | 443 | package com.aias.polar.im.server.DTO;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import java.io.Serializable;
/**
* @author liuhy
*/
@Data
@AllArgsConstructor
@Builder
public class UserDTO implements Serializable {
private static final long serialVersionUID = 16778590577672955... | 17.038462 | 70 | 0.760722 |
dfa5ad991bd2f17c09dfa9148265093764672853 | 7,250 | package acw.setm.perplexity;
import java.io.BufferedReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import acw.common.utils.collection.StringIdDualDict;
import acw.common.utils.file.FileIOUtils;
import acw.setm.files.SETMFile_Params;
import acw.setm.fi... | 35.365854 | 155 | 0.705241 |
430b1d182807100c38b7d0d887bcb481123ae27b | 334 | package com.fillmore_labs.kafka.sensors.serde.ion.serialization;
import org.immutables.value.Value;
@Value.Immutable
public interface StateDurationIon {
static ImmutableStateDurationIon.Builder builder() {
return ImmutableStateDurationIon.builder();
}
String getId();
ReadingIon getReading();
long get... | 19.647059 | 64 | 0.775449 |
d4f4a242427e3bfc223bc148cf74e16d896dd51a | 544 | package de.paulomart.ioc.examples;
import de.paulomart.ioc.Container;
public class TestClass {
public static void main(String[] args) throws Exception {
Container container = new Container();
container.autoRegister(ClassLoader.getSystemClassLoader(), "de.paulomart.ioc.examples");
// or register all class ma... | 27.2 | 90 | 0.753676 |
1c64223673fe350240d6dff30e1b824dc2acdd6a | 5,919 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.labservices.implementation;
import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.re... | 30.668394 | 120 | 0.658895 |
046cda2a7162f2cd062bcbdd33ab433f5dba9b17 | 1,560 | import java.util.Arrays;
public class JumpSearch {
private static final int NOT_FOUND = -1;
/**
* Performs the Jump Search (also called Block Search)
*
* @param array
* The input array of ints
* @param key
* The int to look for
* @return The index of the k... | 29.433962 | 82 | 0.530128 |
1871e91548a0dabf5484d16c9364aadd1da6f35c | 2,242 | package net.daergoth.coreapi.rule;
import java.io.Serializable;
import java.util.List;
/**
* Represents {@code Rule} entities in the Core API.
* If all of the {@code Condition}s for a {@code Rule} are met
* the rule's {@code Action}s will be executed.
*
* @see net.daergoth.coreapi.rule.ConditionDTO
* @see net... | 20.568807 | 68 | 0.662801 |
e4c556cf8faa39c1a391084e68a24bafcd205673 | 6,270 | /*
* Copyright 2018-2021 the original author or 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 ap... | 43.846154 | 108 | 0.714514 |
0905eb901707070d56412919dac3b46df78ad296 | 787 | package qunar.tc.qconfig.admin.support;
/**
* @author zhenyu.nie created on 2015 2015/10/21 20:11
*/
public class AdminConstants {
public static final String PROPERTY_FILE_SUFFIX = ".properties";
public static final int MAX_FILE_SIZE_IN_K = 512;
public static final int MAX_DESC_LENGTH = 150;
publ... | 28.107143 | 77 | 0.754765 |
fcdef17139e446b9b5195a0623c32d7ad98ec455 | 3,235 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 38.975904 | 91 | 0.742504 |
6a0c40eba55fc8b6bf04857a25f684c0e51d604f | 1,328 | package Java_Array_String;
/**
Palindrome
Astrologist believes that having a palindromic name is very auspicious .
As we all know, a palindrome is a word that can be read the same way in either direction.
condition1 - There should not be a space or any special character in the word entered.
condition2 - If ye... | 22.508475 | 125 | 0.680723 |
585f83532490f8de471227bd6b320afa0965534e | 722 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package com.microsoft.azure.sdk.iot.service.transport;
public class TransportUtils
{
/** Version identifier key */
public static final String versionIdentifier... | 31.391304 | 105 | 0.736842 |
abaee2d0affba765a859695ad175d91a982392c4 | 744 | package com.tenhawks.auth.bean;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
/**
* This class has utilities related to user's object
* @author Mukhtiar Ahmed
*
*/
@Data
public class UserDTO {
... | 18.146341 | 55 | 0.771505 |
3b734bf57ba17d760562398eb09937f420039bd5 | 663 | package com.moonpi.swiftnotes.ColorPicker;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;
import com.moonpi.swiftnotes.R;
public class DecryptedList extends AppCompatActivity {
TextView tv;
int i;
@Override
protected void onCreate(Bundle sa... | 24.555556 | 61 | 0.689291 |
c1386a00b9decdd3c7e301e5856c71ed2ad4f39e | 520 | /**
*
*/
package jframe.pay.domain;
/**
* @author dzh
* @date Aug 1, 2014 7:10:47 PM
* @since 1.0
*/
public enum PayType {
/**
* 银联支付
*/
Y(1, "UPMP"),
/**
* 微信支付 APP
*/
W(2, "WEPAY"),
/**
* 支付宝
*/
A(3, "ALIPAY"),
;
public final int type;
public ... | 13.684211 | 44 | 0.473077 |
cb95dfa3c86a0d3b70cbd55687aa50b923b1fc81 | 4,432 | /*
* Copyright 2013 the original author or 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 applica... | 27.190184 | 126 | 0.693366 |
d74fb994ba080a2684301cac48af90387eb040c3 | 572 | package com.purbon.kafka.topology.model;
import java.util.Map;
public class User {
private String principal;
private Map<String, String> metadata;
public User() {
this("");
}
public User(String principal) {
this.principal = principal;
}
public String getPrincipal() {
return principal;
... | 16.823529 | 57 | 0.676573 |
dacadc650dc00bef98d9846d07ef9c2090e1da04 | 3,149 | /*
* Copyright 2019 OST.com 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
*/
package com.ost.ostwallet.entity;
impor... | 31.178218 | 137 | 0.668149 |
dcfa398aa3f78070e4eb6ee8015ec6bc8484fc41 | 1,703 |
package com.example.android.quakereport;
import java.text.SimpleDateFormat;
import java.util.Date;
public class earthquake {
/** Magnitude of the earthquake */
private double mMagnitude;
/* Location of the earthquake */
private String mLocation;
/* date of the earthquake occured */
... | 19.574713 | 83 | 0.635937 |
1fba3128e3648302c65dce8f3f9aea5ab942ac73 | 4,823 | package change;
import java.util.Date;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.TimeUnit;
/**
* Created by wm on 16/12/3.
*/
public class MyThreadFactoryMain {
public static void main(String[] arg... | 26.211957 | 94 | 0.545926 |
2ec1e986e2c2b1c4ab50dbf4d53dadb67323de5c | 10,990 | /**
* Dianping.com Inc.
* Copyright (c) 2003-2013 All Rights Reserved.
*/
package com.dianping.pigeon.remoting.common.config;
import com.dianping.pigeon.config.ConfigManagerLoader;
import com.dianping.pigeon.log.Logger;
import com.dianping.pigeon.log.LoggerLoader;
import com.dianping.pigeon.remoting.Servic... | 40.25641 | 123 | 0.718289 |
945e7d66782b198fa95a33f286686edd92b2bb64 | 1,940 | /*
*
*/
package org.inventivetalent.advancedslabs;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.block.data.BlockData;
import org.inventivetalent.advancedslabs.entity.IEntitySpawner;
import org.inventivetalent.advancedslabs.entity.ISlabFallingBlock;
import org.inventivetalent.reflection.... | 33.448276 | 144 | 0.796392 |
2f95473696021e0d87c7008f868a015e715180f0 | 3,850 | /*
* Process Services Enterprise API
* Provides access to the complete features provided by Alfresco Process Services powered by Activiti. You can use this API to integrate Alfresco Process Services with external applications.
*
* OpenAPI spec version: 1.0
*
*
* NOTE: This class is auto generated by the swagge... | 28.10219 | 191 | 0.678961 |
c6c91bce5afaa8b604e9848da06008c11238789e | 3,463 | package mekanism.generators.client.render;
import javax.annotation.ParametersAreNonnullByDefault;
import mekanism.api.text.EnumColor;
import mekanism.client.MekanismClient;
import mekanism.client.model.ModelEnergyCube.ModelEnergyCore;
import mekanism.client.render.MekanismRenderer;
import mekanism.client.render.tileen... | 48.097222 | 166 | 0.732024 |
bef5b3957c4bf3a5814ddbb6be5cc491500e4910 | 25,177 | package io.ably.lib.test.realtime;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import io.ably.lib.realtime.AblyRealtime;
import io.ably.lib.realtime.Channel;
import io.ably.lib.realtime.Channel... | 38.496942 | 150 | 0.727052 |
9d0bdb99ce885025e369b3bda59bf2a4205ba159 | 522 | module frogger {
exports frogger;
exports frogger.constant;
exports frogger.controller;
exports frogger.model.actor.staticActor;
exports frogger.model;
exports frogger.view;
exports frogger.service;
exports frogger.model.actor.movableActor;
exports frogger.model.actor;
opens frogger.controller to javafx.fxm... | 24.857143 | 42 | 0.808429 |
c9d9739b4cf54c706acbb02b627623f0f77efc6e | 7,026 | package com.github.nagyesta.abortmission.strongback.h2.repository;
import com.github.nagyesta.abortmission.core.healthcheck.StageStatisticsSnapshot;
import com.github.nagyesta.abortmission.core.healthcheck.impl.DefaultStageStatisticsSnapshot;
import com.github.nagyesta.abortmission.core.telemetry.StageTimeMeasurement;... | 44.751592 | 112 | 0.628523 |
904a3adf85464ee069ded3ff0ba680668dfa4a58 | 150 | package com.xiaohuzhou.server.handler;
/**
* @Auther: ZhouXiaoHu
* @Date: 2019/5/26
* @Description:
*/
public class MichiProtocServerHandler {
}
| 15 | 39 | 0.706667 |
330b8287fdccc538556297ec4b2375f0edf8fd42 | 2,474 | package com.sakila.entities;
// Generated Nov 10, 2017 10:25:35 AM by Hibernate Tools 4.3.5.Final
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue... | 24.49505 | 82 | 0.711803 |
d198e7ac298d645816bcede40843fb37638f0625 | 1,966 | package org.txazo.java.concurrency.thread;
import org.junit.Test;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
public class ThreadLocalTest {
/**
* VM Args: -server -verbose:gc -Xms100M -Xmx100M
*/
@Test
public void test() {
for (int i = 0; i < 10... | 23.129412 | 67 | 0.546287 |
c489a66d15465483a53336cefdb4b0083ab035b3 | 697 | import javax.swing.JOptionPane;
public class LoteDeTerra {
public static void main (String [] args) {
String recebe = "";
float largura,comprimento,area;
try{
recebe = JOptionPane.showInputDialog("Informe o valor da largura :");
largura = Float.parseFloat(recebe);
recebe = JOptionPane.showInputDialog("Inf... | 31.681818 | 116 | 0.728838 |
b421165252dfa089f0b7241602c8b4f2348c8b28 | 1,180 | package amu.zhcet.firebase.messaging.token;
import amu.zhcet.data.user.fcm.UserFcmTokenRepository;
import amu.zhcet.firebase.messaging.FirebaseErrorParsingUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.lang.NonNull;
import org.springframework.stereotype.Service;
@Slf4j
@Service
public class Messa... | 36.875 | 124 | 0.710169 |
1436b5f8c8672c08445fefcc9c2c793d3be3437f | 4,193 | package org.hadatac.hasneto.loader;
import java.util.HashMap;
import java.util.Map;
public class Loader {
private static boolean clean = false;
private static boolean showHelp = false;
private static boolean loadOntology = false;
private static boolean loadXls = false;
private static boolean verbose = false;... | 29.118056 | 130 | 0.591223 |
3b0f304ec98ea85dadea3c5ef92389faf3f587bc | 301 | package warmup;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
class SimpleArraySumTest {
@Test
void simpleArraySum() {
// 1 2 3 4 10 11
int[] testArray = {1, 2, 3, 4, 10, 11};
Assertions.assertEquals(SimpleArraySum.simpleArraySum(testArray), 31);
}
} | 21.5 | 74 | 0.694352 |
08cc752c5b9419ad5be47f4fd955677374bd3187 | 6,887 | package com.android.deskclock;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.FrameLayout;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.TextView;
/**
* This class adjusts the locations of children buttons and text of this view grou... | 43.866242 | 111 | 0.553652 |
6d04ced2f2dc4e16d5f1e72997c0cd0bb4107d7f | 1,356 | package org.constantgatherer;
import org.constantgatherer.model.Gatherer;
import org.constantgatherer.model.GathererFragment;
import org.constantgatherer.model.GathererType;
import org.constantgatherer.model.webdriver.Command;
import org.constantgatherer.model.webdriver.CommandType;
/**
* User: ggomes
* D... | 34.769231 | 83 | 0.69174 |
5bb789ef4e02be368ab358580d18b464c537ec2e | 9,091 | /****************************************************************************************************************
* Developer: Minhas Kamal(BSSE-0509, IIT, DU) *
* Date: 04-Jan-2014 *
* Modified: 01-Jan-2015 *
*************************************************... | 36.219124 | 120 | 0.676933 |
3051a3c285b90ad63b17ac968ab6a673f48e3c4f | 3,533 | package ui.client.controllers;
import javafx.application.Platform;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.geometry.Insets;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.HBox;
import javafx.sce... | 32.412844 | 87 | 0.652703 |
daaa80334ef870e070f062cc25e2480f0cb3b06d | 7,402 | package org.aion.harness.tests.integ.multikernel;
import java.io.File;
import java.io.IOException;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.concurrent.TimeUnit;
import org.aion.harness... | 38.957895 | 120 | 0.633613 |
613fe339c1b15c6e6f15025465c86145e442f592 | 8,006 | package TicTacToe.build1;
import processing.core.PApplet;
public class TicTacToeApp extends PApplet
{
Grid[][] grid = new Grid[3][3];
int size = 600; // Universal Size :) 600 is default.
int gridSize = size / 3 - 1;
boolean xTurn; // X always starts first.
int gameScreen = 0; /... | 35.114035 | 182 | 0.434424 |
a259d34cc0eafacaa90d7d63437a10fe79f96562 | 9,647 | /*
* Copyright 2002-2019 the original author or 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 41.581897 | 191 | 0.805743 |
50ba7852886d66040967ebfea091ea8fedd7417e | 11,323 | package ch.dvbern.util.doctemplate.validator;
import java.awt.Desktop;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.URISyntaxException;
import java.net.URL;
import java.... | 29.875989 | 103 | 0.700344 |
c128ec7fd2ddff4d4fbed7cc6fd3ea1a7ba63af9 | 5,359 | /*
* Copyright (C) 2005-2020 Gregory Hedlund & Yvan Rose
*
* 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 applica... | 29.607735 | 116 | 0.724949 |
7076d03729c4edf34861a741a0ecb21788017c71 | 4,377 | // snippet-comment:[These are tags for the AWS doc team's sample catalog. Do not remove.]
// snippet-sourcedescription:[PutFile.java demonstrates how to upload a file to a branch.]
//snippet-keyword:[AWS SDK for Java v2]
//snippet-keyword:[Code Sample]
// snippet-service:[AWS CodeCommit]
// snippet-sourcetype:[ful... | 41.292453 | 153 | 0.586018 |
c98cdb051a1235e8be2ef43887969cef51072efb | 2,574 | /* (c) https://github.com/MontiCore/monticore */
package de.monticore.symbols.oosymbols._symboltable;
import com.google.common.collect.Lists;
import de.monticore.symbols.basicsymbols._symboltable.FunctionSymbol;
import de.monticore.symbols.basicsymbols._symboltable.TypeVarSymbol;
import de.monticore.symbols.basicsymbo... | 26.536082 | 69 | 0.714452 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.