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 |
|---|---|---|---|---|---|
322da2630c89d64ce9c586f8d7cbacdeff0f3620 | 3,153 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 31.217822 | 92 | 0.522994 |
bf47be4fefc6c67c76e483a1ef71a574366a9f35 | 629 | import java.util.*;
public class Demo71{
public static void main(String[]args){
ArrayList al = new ArrayList();
System.out.println(al);
System.out.println("al.size():"+al.size());
Clerk Liming = new Clerk("李明",32,10500);
al.add(Liming);
System.out.println(al);
System.out.println("al.get(0):"+(Clerk)al.ge... | 23.296296 | 73 | 0.672496 |
ff8e449f63118379ef865bd59cbf62b01f9bb90b | 13,615 | /*
* Copyright (C) 2015 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... | 36.897019 | 101 | 0.679985 |
ea0119940acb153ef47802ba43292d0095e0557d | 4,356 | /*
* MIT License
*
* Copyright (c) ReformCloud-Team
* Copyright (c) contributors
*
* 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 th... | 36.915254 | 144 | 0.707989 |
3b509a4e272c0f93448c9423b105c42328b018ef | 4,749 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package it.pm.jspellout.rules.handler.impl;
import it.pm.jspellout.model.EnglishSpellResult;
import it.pm.jspellout.model.OrdersOfMagnitude;
import it.pm.jspellout.model.SpellOutException;
import it.pm.jspellout.model.S... | 35.706767 | 82 | 0.612761 |
0772c5445110284461b614940c26eb3c3ed929d7 | 132 | package com.ms.silverking.cloud.dht.client.crypto;
public interface Encrypter {
public byte[] encrypt(byte[] bytesToStore);
}
| 18.857143 | 50 | 0.75 |
9425790173a8c36a4f6fcadc2dc7b3825f5654e3 | 2,661 | package net.glowstone.console;
import com.google.common.base.Optional;
import org.spongepowered.api.service.permission.Subject;
import org.spongepowered.api.service.permission.SubjectCollection;
import org.spongepowered.api.service.permission.SubjectData;
import org.spongepowered.api.service.permission.context.Context... | 22.550847 | 82 | 0.667794 |
eed6f97e5a9c37936f7e86ee2bd046ef54a8e46c | 4,291 | package com.uber.sdk.android.rides;
import org.junit.Before;
import org.junit.Test;
import org.robolectric.RuntimeEnvironment;
import static com.uber.sdk.android.rides.UberSdk.Region.CHINA;
import static com.uber.sdk.android.rides.UberSdk.Region.WORLD;
import static org.junit.Assert.assertEquals;
import static org.ju... | 30.006993 | 77 | 0.732696 |
07f506f6c067836515932279e2ab25927b4579f5 | 13,976 | /**
* Copyright (c) 2011, SOCIETIES Consortium (WATERFORD INSTITUTE OF TECHNOLOGY (TSSG), HERIOT-WATT UNIVERSITY (HWU), SOLUTA.NET
* (SN), GERMAN AEROSPACE CENTRE (Deutsches Zentrum fuer Luft- und Raumfahrt e.V.) (DLR), Zavod za varnostne tehnologije
* informacijske družbe in elektronsko poslovanje (SETCCE), INS... | 44.088328 | 168 | 0.74077 |
fa14230ee07d3c6ce27832ab2b891dbca6c3fad4 | 591 | package org.glavo.checksum.util;
import org.glavo.checksum.Hasher;
import java.nio.ByteBuffer;
import java.security.MessageDigest;
public final class HasherThread extends Thread {
private final ByteBuffer buffer = ByteBuffer.allocate(IOUtils.DEFAULT_BUFFER_SIZE);
private MessageDigest digest;
public Has... | 24.625 | 87 | 0.71912 |
8249a1a5de6d0ba5253f7f75611f14aecc81c8aa | 4,320 | /*
* 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 not ... | 33.488372 | 100 | 0.714352 |
62cd737fbdbccf550938ff50ffbb433b55ef4069 | 604 | package cn.hikyson.godeye.core.internal.modules.memory;
import androidx.annotation.Keep;
import java.io.Serializable;
@Keep
public class PssConfig implements Serializable {
public long intervalMillis;
public PssConfig(long intervalMillis) {
this.intervalMillis = intervalMillis;
}
public Ps... | 20.133333 | 55 | 0.639073 |
53578526ab51d3c972be32b0b69660f7e532b9c4 | 1,318 | package AEXEMPLOS.pilhaencadeada;
import java.io.*;
import javax.swing.JOptionPane;
class EstruturaDeDados{
public static void main(String[] args){
Pilha churrasco;
Carne car;
String resposta, tipo;
boolean cozido;
FileInputStream fi;
FileOutputStream fo;
ObjectInputStream oi;
ObjectOutputS... | 30.651163 | 92 | 0.682853 |
fe92104d1dc03d4bcd19c46c6853e39fcb0cc580 | 4,513 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | 31.124138 | 97 | 0.631287 |
5f8a0dabf72a5af902498ded9d01e6cb605a2f32 | 1,885 | /**
* Copyright 2022 Starwhale, Inc. All Rights Reserved.
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless requir... | 33.660714 | 86 | 0.633422 |
aa0b9b8b71090d9256e7de06ba12e188d09458c6 | 738 | package com.javarush.task.task19.task1923;
import java.io.*;
/*
Слова с цифрами
*/
public class Solution {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new FileReader(args[0]));
BufferedWriter writer = new BufferedWriter(new FileWriter(ar... | 22.363636 | 76 | 0.50542 |
2182d12cac9a513c71e7f0feb8250e3e562c2ceb | 2,465 | package net.andreinc.mockneat.unit.misc;
/**
* Copyright 2017, Andrei N. Ciobanu
Permission is hereby granted, free of charge, to any user 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 ... | 37.348485 | 125 | 0.709939 |
df8fe0fdd72e4afcd5a5b9a73b553e146356d371 | 5,688 | package org.metaworks;
import java.util.Hashtable;
/**
* DB의 한 Row를 저장할 수 있는 Class. 흔히 Database에서 쓰는 말로 "Record"와 같은 뜻으로 생각하면 됩니다.
* @author 장진영
* @version 1.0 2000/2/14
* @see com.pongsor.dosql.Tuple
*/
public class Instance extends AbstractTuple{
public Instance(){
this((Type)null);
}
/*... | 22.482213 | 136 | 0.627286 |
c9b1e5178397798387f1f03e60352b03710ca284 | 5,731 | /**
* Copyright (C) 2015 Valkyrie RCP
*
* 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... | 35.81875 | 106 | 0.744198 |
bc7704acd9265160c6d8d489e385855348332716 | 2,522 | /* $Id: bc7704acd9265160c6d8d489e385855348332716 $
* $URL: https://dev.almende.com/svn/abms/dsol-util/src/test/java/com/almende/dsol/example/datacenters/FederationModelSimulationTest.java $
*
* @license
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in complia... | 29.670588 | 139 | 0.735527 |
086145b7c82f13e0cff39ee77d2b6503398470df | 2,122 | package org.panda_lang.reposilite.stats;
import org.junit.jupiter.api.Test;
import org.panda_lang.reposilite.ReposiliteIntegrationTest;
import org.panda_lang.reposilite.ReposiliteWriter;
import java.util.Arrays;
import java.util.stream.IntStream;
import static org.junit.jupiter.api.Assertions.assertFalse;
import sta... | 30.753623 | 97 | 0.650801 |
3ab1c058b085073d763fec69f5644e8c02b3c4cf | 10,385 | /*****************************************************************************
* VideoListAdapter.java
*****************************************************************************
* Copyright © 2011-2012 VLC authors and VideoLAN
*
* This program is free software; you can redistribute it and/or modify
* it under ... | 35.934256 | 193 | 0.583727 |
31443f77c1060186b6422d0dff9b389c74d1a183 | 970 | package org.jaxws.stub2html.util;
import static org.junit.Assert.assertEquals;
import java.lang.reflect.Field;
import java.util.List;
import org.junit.Test;
/**
*
* @author chenjianjx
*
*/
public class GenericsUtilsTest {
@Test
public void getFieldGenericTypeTest() throws Exception{
asse... | 22.55814 | 97 | 0.734021 |
4a6e49d234f7ca2dc835723b4415a7a93995a7a5 | 1,444 | /*
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* The Apereo Foundation licenses this file to you under the Apache License,
* Version 2.0, (the "License"); you ma... | 36.1 | 100 | 0.779086 |
ed8b30f1335a5176d62de0aa077041875760fe8b | 1,539 | package atcoder.beginner_100_199.beginner_100;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.Scanner;
public final class D {
public static void main(String[] args) {
final Scanner in = new ... | 33.456522 | 93 | 0.472385 |
71ac27980cd262b097468d628a4e5332d2762451 | 218 | package com.bjsxt.test;
import com.bjsxt.biz.ScheduleBiz;
import com.bjsxt.biz.ScheduleBiz1;
public class Test {
public static void main(String[] args) {
ScheduleBiz1 sb= new ScheduleBiz1();
sb.mainMenu();
}
}
| 18.166667 | 41 | 0.733945 |
41659b3f64586acc9183431b2d8cfbed32e835ac | 274 | package com.jediterm.terminal.emulator.mouse;
/**
* @author traff
*/
public enum MouseMode {
MOUSE_REPORTING_NONE,
MOUSE_REPORTING_NORMAL,
MOUSE_REPORTING_HILITE,
MOUSE_REPORTING_BUTTON_MOTION,
MOUSE_REPORTING_ALL_MOTION,
MOUSE_REPORTING_FOCUS;
}
| 19.571429 | 45 | 0.762774 |
2c110adcaca399d9a3b77fc81f17a26d3c5875f8 | 1,350 | package ru.rus1f1kator.autoenum.sample;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import java.util.Arrays;
import java.util.List;
public class MainActivity extends AppCompatActivity {
@Override
protected voi... | 26.470588 | 88 | 0.622222 |
9cfb5f44cebd53268f283e606e3261f54a587829 | 1,300 | package com.github.rami_sabbagh.codeforces.api.objects;
import com.github.rami_sabbagh.codeforces.api.enums.ParticipantType;
/**
* Represents a party, participating in a contest.
*/
@SuppressWarnings("unused")
public class Party extends CFObject {
/**
* Can be absent. Id of the contest, in which party is ... | 26 | 127 | 0.66 |
e4bff771883cdc5febc66560df992d36fc653c9b | 48,242 | /* Generated By:JavaCC: Do not edit this line. CssParser.java */
package org.eclipse.birt.report.engine.executor.css;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
* Parses the style attribute of the HTML element according to the CSS2.0 grammar
*
*/
public class CssParser implements CssPa... | 31.346329 | 413 | 0.489345 |
2a3fea468d5dd751656d77a4a0352f17c92e96d6 | 1,976 | /**
* Copyright 2019 XEBIALABS
*
* 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, merge, publish, distribute, ... | 49.4 | 463 | 0.742409 |
704b2e0a02d2827b6cf35cfd37136a12ae138ad7 | 1,210 | /**
* Copyright 5AM Solutions Inc, ESAC, ScenPro & SAIC
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/caintegrator/LICENSE.txt for details.
*/
package gov.nih.nci.caintegrator.application.study;
import static org.junit.Assert.assertEquals;
import static org.junit.Ass... | 31.842105 | 118 | 0.745455 |
628b7713b2bc3e97a593e4cd3d02614ae2df75b0 | 398 | package br.com.server.northwind.models;
import lombok.Data;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
@Data
@Entity
@Table(name = "territories")
public class Territories {
@Id
@Column( nullable = false, updatable = false )
private String territoryid;
@NotNull
pri... | 17.304348 | 49 | 0.721106 |
6e752d08ce824e929b3eeaf003803a017a69c2bc | 239 | package br.com.pucminas.architeture.api.services;
import java.util.List;
public interface IService<T> {
List<T> findAll();
T findById(int id);
T newModel(T model);
T updateModel(int id, T model);
boolean deleteModel(int id);
}
| 14.058824 | 49 | 0.715481 |
c206ad4956007a1f5404f39f8cb0c9c6876d076c | 3,279 | package ch.epfl.bbp.uima.ae;
import static ch.epfl.bbp.MapUtils.keyOfHighestValue;
import static ch.epfl.bbp.MissingUtils.getOrElse;
import static ch.epfl.bbp.collections.DefaultHashMap.intDefaultMap;
import static ch.epfl.bbp.uima.BlueUima.RESOURCES_PATH;
import static ch.epfl.bbp.uima.CommonAnnotatorsHelper.COMMON_A... | 32.147059 | 79 | 0.756023 |
386e6e355d1c5d729e2c0d3ce594ca0cfcf43c2d | 3,943 | // Copyright 2017 The Bazel Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... | 35.522523 | 75 | 0.727872 |
a6d5414515f1537199c8de33af7bc0d62bdbe7c8 | 9,402 | package util;
import imagemessage.Image;
import imagemessage.ImageMessage;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import musicmessa... | 30.038339 | 110 | 0.742183 |
84b2bb0534e933818bc9b4de5cac43115ff59102 | 5,067 | /*
* Copyright 2015 Kevin Herron
*
* 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... | 45.241071 | 194 | 0.772449 |
e76fac183158e246960d23efe8c3a0095d8ac907 | 347 | package xyz.waiphyoag.padc_3_f_wpa_burpple_food_places.viewholders;
import android.support.v7.widget.RecyclerView;
import android.view.View;
/**
* Created by WaiPhyoAg on 1/5/18.
*/
public class InformationAreaViewHolder extends RecyclerView.ViewHolder {
public InformationAreaViewHolder(View itemView) {
... | 23.133333 | 72 | 0.772334 |
e2b0935c6056f107a719bf18f638bb5a690059cb | 2,083 | /*
* Copyright (c) 2014 Wroclaw University of Technology
*
* This file is part of the JGenerilo Thermal Emulation Tools.
*
* JGenerilo Thermal Emulation Tools are free software: you may redistribute it
* and/or modify it under the terms of the GNU General Public License
* as published by the Free Software Founda... | 32.046154 | 90 | 0.699952 |
aeeb51094309b44397ea95f31721124e2bd7053d | 778 | package org.reploop.parser.protobuf.tree;
import java.util.Objects;
/**
* What's this about?
*
* @author George Cao(georgecao@outlook.com)
* @since 2016-10-14 00
*/
public class FloatValue extends Value {
float value;
public FloatValue(float value) {
this.value = value;
}
public float g... | 19.45 | 53 | 0.609254 |
dcc0177c50c97b45dd7ce501a062e40b3fe849e5 | 2,109 | package com.github.sanctum.clans.util.events.command;
import com.github.sanctum.clans.util.events.ClanEventBuilder;
import java.util.Optional;
import org.bukkit.Bukkit;
import org.bukkit.command.ConsoleCommandSender;
/**
* Called to add custom console-side '/clan' subcommands.
*
* @author msanders5984
*/
public f... | 23.696629 | 70 | 0.638217 |
56a182a8c197483ed4e7fc5c8fd179cc36c3320a | 1,799 | package com.jamieadkins.motiontrackingsample;
/**
* Contains camera intrinsic information. Can be set manually or use some dummy values.
*/
public class Intrinsics {
private static final double DEFAULT_FOCAL_LENGTH = 3.5;
private static final double DEFAULT_SENSOR_WIDTH = 5.376;
private static final doub... | 32.709091 | 104 | 0.711506 |
e975388a58983bd188e5ae064a064b0ad75ded8a | 4,607 | package in.ankushs.dbip.repository;
import in.ankushs.dbip.api.GeoEntity;
import org.eclipse.collections.impl.tuple.ImmutableEntry;
import org.mapdb.BTreeMap;
import org.mapdb.DB;
import org.mapdb.DBMaker;
import org.mapdb.HTreeMap;
import org.mapdb.serializer.GroupSerializer;
import org.slf4j.Logger;
import org.slf4j... | 37.455285 | 151 | 0.673323 |
ad755425721fd0dbc7c5423cf8da2e153e082f97 | 5,823 | package com.kociszewski.moviekeeper.integration;
import com.kociszewski.moviekeeper.domain.commands.RefreshMovieCommand;
import com.kociszewski.moviekeeper.domain.events.MovieDeletedEvent;
import com.kociszewski.moviekeeper.domain.events.MoviesRefreshedEvent;
import com.kociszewski.moviekeeper.domain.events.MultipleMo... | 38.82 | 111 | 0.680749 |
ca95221066538b75779f647feb6e4c91f98b24da | 2,163 | package blue.http.internal.core.parser;
import blue.base.core.reflect.JavaBean;
import blue.http.core.annotation.Filter;
import blue.http.core.annotation.Http;
import blue.http.core.annotation.WebSocket;
import blue.http.internal.core.parser.parameter.ParamParserFactory;
import org.slf4j.Logger;
import org.slf4j.Logge... | 33.276923 | 115 | 0.776237 |
a21654564201f347d5e1b606043094576a052a38 | 860 | package ru.aserdyuchenko.controlQuestions;
import org.junit.Test;
import java.util.Arrays;
import java.util.List;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
/**
* @author Anton Serdyuchenko. anton415@gmail.com
*/
public class MyOwnLinkedListTest {
private MyOwnLinkedList... | 23.243243 | 68 | 0.636047 |
277f1baab7cdf99c349637983b54b2cd7a021f6b | 4,799 | /**
* 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... | 37.20155 | 110 | 0.695353 |
1e8c9d8c1b95379b11aa622c0cdeb8b27d072b8a | 720 | package se.mickelus.tetra.gui.impl.statbar;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import se.mickelus.tetra.gui.GuiAlignment;
import se.mickelus.tetra.gui.GuiElement;
public abstract class GuiStatBase extends GuiElement {
public GuiStatBase(int x, int y, int width, i... | 37.894737 | 141 | 0.786111 |
c129693e9baf1bb95e643b6cc21dcd772735055d | 1,187 | package io.datakernel.di.annotation;
import io.datakernel.di.Key;
import io.datakernel.di.Qualifiers;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* This is ... | 42.392857 | 143 | 0.786015 |
4fef53c2925382d7b3c037091dc770f3330b291b | 5,870 | package netflix.ocelli.retrys;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
import netflix.ocelli.functions.Metrics;
import netflix.ocelli.functions.Retrys;
import netflix.ocelli.functions.Stopwatches;
import netflix.ocelli.util.SingleMetric;
import netflix.ocelli.util.Stopw... | 36.234568 | 99 | 0.593015 |
782d4fb72aef4e8ea42963e61b13a5781f01bf29 | 20,941 | package org.anna;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Map.Entry;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.jocl.*;
import static org.jocl.CL.*;
/**
* A utility class p... | 45.822757 | 122 | 0.64314 |
ac75f549022fce43fbb65384b6195aacc36edb5b | 5,027 | import net.runelite.mapping.Export;
import net.runelite.mapping.Implements;
import net.runelite.mapping.ObfuscatedGetter;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
@ObfuscatedName("ke")
@Implements("FloorOverlayDefinition")
public class FloorOverlayDefinition extends ... | 23.712264 | 77 | 0.6296 |
f8d8d16be0aa7bece27f3bb3df9810763a266d8b | 276 | package org.loveyoupeng.raft.impl.command;
public interface VoteResponse extends Command {
String getAgentId();
long getCurrentTerm();
boolean isGranted();
@Override
default boolean accept(final CommandHandler handler) {
return handler.process(this);
}
}
| 17.25 | 56 | 0.742754 |
65cf65c338549419e0a39d287abb988d88742405 | 1,269 | package standard.jenkins.com;
import java.util.Map;
import javax.inject.Singleton;
@Singleton
public class InfraestructureBS implements IInfraestructure {
@Override
public String getStringValueFromEnvironmentVariable(String environmentVariable) throws Exception {
String currentEnvironmentValue = nul... | 28.2 | 102 | 0.583136 |
809ad088ad237b53ed95c8109953bcc6a319596c | 1,898 | package afirsraftgarrier.demoandroid.androidapi.content;
//Need the following import to get access to the app resources, since this
//class is in a sub-package.
import afirsraftgarrier.demoandroid.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import... | 32.724138 | 90 | 0.677555 |
1438636e899b6866b1967400a30a4d3f6b2a72ab | 3,316 | //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// This file is a part of the 'gewt-material' project.
// Copyright 2019 Elmar Sonnenschein, esoco GmbH, Flensburg, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in complian... | 26.741935 | 78 | 0.637817 |
e952ebacb4ebd66318165dd495e1167b24a43258 | 9,704 | 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 ... | 16.965035 | 810 | 0.816261 |
a13fae7b04a13463e0750cf4adcf0309a75716ac | 2,039 | /**
* Copyright (C) 2018 Mike Hummel (mh@mhus.de)
*
* 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... | 36.410714 | 100 | 0.753801 |
850c4c59b2a7bcc864b0f08245c1add940567274 | 4,559 | package baumkm.wardrobe.utils;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import org.jetbrains.annotations.Nullable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.... | 33.522059 | 185 | 0.585874 |
601ed96a30f5abca7a87a8e6d5302501b8e902e4 | 763 | package com.johnnyzhou.movieme.ui.person.detail;
import com.johnnyzhou.movieme.ui.person.Person;
import com.johnnyzhou.movieme.util.DateUtil;
public class DetailPerson extends Person {
private static final String PROFILE_BASE_PATH = "http://image.tmdb.org/t/p/h632";
private String biography;
private Stri... | 24.612903 | 85 | 0.682831 |
b65fbed4df3f107eaf7ade0c4e8fd17387d51ef0 | 2,835 | package duelistmod.patches;
import java.util.ArrayList;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.evacipated.cardcrawl.modthespire.lib.*;
import com.evacipated.cardcrawl.modthespire.patcher.PatchingException;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.helpers.Fo... | 43.615385 | 127 | 0.657848 |
9f8c1f7f9393c4faacca94510c9a1466b1de5d3c | 5,612 | package org.activiti.bdd.test.mailserver;
import static org.junit.Assert.assertTrue;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import javax.activation.DataHandler;
import javax.mail.BodyPart;
import javax.mail.Messa... | 36.206452 | 102 | 0.640057 |
fb3e9aae9d3f2cc600a372eb9d1f390dc2cf4901 | 1,455 | package com.stevesun.solutions;
import java.util.*;
/**
* Given a digit string, return all possible letter combinations that the number could represent.
A mapping of digit to letters (just like on the telephone buttons) is given below.
Input:Digit string "23"
Output: ["ad", "ae", "af", "bd", "be", "bf", "cd", "... | 33.837209 | 138 | 0.621993 |
e61a7e16ec9cfb449074fa3898d9fd72aa81277e | 5,714 |
import java.util.Random;
import java.math.BigDecimal;
public abstract class Creature implements Generic{
public Creature(String name, String race,
int level, int life, int spell,
int strenght, int agility, int skill,
int intelligence, int charisma) {
... | 26.826291 | 120 | 0.534827 |
045effdbc75f10c039927a4fb1b186207d53057f | 1,444 | package com.abin.lee.algorithm.special.basic.maze;
import com.abin.lee.algorithm.common.json.jackson.JsonUtil;
/**
* Created by abin on 2018/5/30 15:49.
* algorithm-svr
* com.abin.lee.algorithm.special.basic.maze
* 获取二维数组的相邻元素
* Java二维数组的概念和使用方法: https://www.cnblogs.com/zhouguanglin/p/7210129.html
*/
public cla... | 30.723404 | 101 | 0.524238 |
0b858d2a38de67bcfa2fe38ea34933a82d62057a | 15,322 | package com.codepig.common.util;
import android.Manifest;
import android.app.Activity;
import android.content.ActivityNotFoundException;
import android.content.ComponentName;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.Resolv... | 32.530786 | 236 | 0.61304 |
3ef98caa7b150153cd7ee6b12a567dece38050dc | 1,491 | package com.ticandroid.baley_labeye.utils;
import android.util.Log;
import java.text.ParseException;
import java.util.Arrays;
/**
* Util to cast classes to another.
*
* @author Labeye
*/
public final class Caster {
/**
* Splittable element.
**/
private static final String SPLITTER = ",";
... | 28.132075 | 111 | 0.608987 |
c2a4e57d2f3b34fa7bbc5f3db9b078e87ff03cbd | 757 | package m2rism.myappmeteo;
import android.content.ContentProvider;
import android.content.ContentResolver;
import android.content.UriMatcher;
import android.net.Uri;
import java.util.ArrayList;
import java.util.Locale;
/**
* Created by lyamsi on 22/10/15.
*/
public class Test {
public static void main(String[... | 24.419355 | 76 | 0.667107 |
356be5638597c74111932474bda290a88b545c27 | 33,157 | package game.item;
import it.unimi.dsi.fastutil.objects.*;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import static engine.graphics.Mesh.createMesh;
import static engine.graphics.Texture.creat... | 40.239078 | 217 | 0.559369 |
cecb2c6b64da7771071acd67b8580da4e086c5a3 | 845 | /*package ie.cit.caf.lc_assignment;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@JsonIgnoreProperties(ignoreUnknown = true)
public class Role {
private int role_id;
private String role_name;
private String role_display_name;
private String role_url;
public int getRole_id() {
return role... | 21.125 | 61 | 0.75858 |
c9548c98ae89a0e93fbbf02685343afb2b6c0c51 | 249 | package com.cactus.instagrama.common.model;
public class Feed extends Post {
private User publisher;
public User getPublisher() {
return publisher;
}
public void setPublisher(User publisher) {
this.publisher = publisher;
}
}
| 14.647059 | 44 | 0.710843 |
b4cd3ee765b7ec6c72249ec2fe9a8726de8accd1 | 7,857 | package com.tui.proof.ws.controller;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.tui.proof.exception.UnauthorizedException;
import com.tui.proof.service.AuthenticationService;
import com.tui.proof.service.BookingService;
import com.tui.proof.ws.controller.dto.booking.BookingDto;
import com.tui.proof... | 40.292308 | 126 | 0.673794 |
b91b7de6de682e5b86675e0dc554cd71fbf0449b | 7,885 | /*
* Copyright: (c) Mayo Foundation for Medical Education and
* Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the
* triple-shield Mayo logo are trademarks and service marks of MFMER.
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/lexevs-grid/LICENSE.txt f... | 29.980989 | 85 | 0.722131 |
bf56c6ed2fa768d1bf7fc8f6aaf701513fc79e72 | 465 | package br.ufc.insightlab.graphast.model.components;
import br.ufc.insightlab.graphast.model.Node;
import java.io.Serializable;
public abstract class NodeComponent implements Component, Serializable {
/**
*
*/
private static final long serialVersionUID = 7380836164433719107L;
private Node node = null;
... | 17.222222 | 72 | 0.724731 |
09b9aab7fd8179b3a8fa078f77738c112f14701b | 222 | package cn.qssq666.robot.constants;
import cn.qssq666.CoreLibrary0;
/**
* Created by qssq on 2017/6/8 qssq666@foxmail.com
*/
public interface Fields {
String FIELD_ACCOUNT="account";
String FIELD_NAME="name";
}
| 20.181818 | 50 | 0.72973 |
4b67246fd36eabcc8040d0e4ec3836e2428ef962 | 1,199 | package no.nav.foreldrepenger.regler.uttak.fastsetteperiode.betingelser;
import no.nav.foreldrepenger.regler.uttak.fastsetteperiode.FastsettePeriodeGrunnlag;
import no.nav.foreldrepenger.regler.uttak.felles.PerioderUtenHelgUtil;
import no.nav.fpsak.nare.doc.RuleDocumentation;
import no.nav.fpsak.nare.evaluation.Evalua... | 39.966667 | 132 | 0.753962 |
386ffaec751f2542aca01749a79012080f88ef9a | 14,283 | package jmethods;
import java.util.ArrayList;
import java.util.LinkedList;
import org.apache.jmeter.config.Argument;
import org.apache.jmeter.config.Arguments;
import org.apache.jmeter.config.CSVDataSet;
import org.apache.jmeter.config.ConfigTestElement;
import org.apache.jmeter.config.RandomVariableConfig;
import or... | 50.648936 | 151 | 0.761465 |
e5b8cd4b7a1f5c624b93940092bb32f7b9bb609c | 241 | package org.processmining.framework.packages.impl;
import org.xml.sax.SAXException;
public class CancelledException extends SAXException {
/**
*
*/
private static final long serialVersionUID = -1288614934031744810L;
}
| 18.538462 | 69 | 0.73444 |
b369d5744972a613cd821b361000c128aa21aa2b | 893 | package com.github.knextsunj.musicincstore.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframewo... | 35.72 | 93 | 0.860022 |
112ff2a913977efa851b53d473b625ee3533d3cf | 2,221 | package TomcatServer.server;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.Properties;
public class Server {
private ServerSocket server; //服务
private in... | 23.62766 | 102 | 0.533543 |
f20ab0739ba1ccd0e10dbbcd33406b29f0d8ec40 | 677 | package com.oneMap.module.common.global;
/**
* 页面跳转 常量
*/
public class ArouterConstants {
//Activity
public static final String TO_LOGINACTIVITY = "/module_login/Login";
public static final String TO_MAINACTIVITY = "/module_main/Main";
public static final String TO_BAIDUACTIVITY = "/module_baidu/Ba... | 28.208333 | 81 | 0.74003 |
650650a7d2c881b5b3662fd230df70e3283cc0bc | 1,159 | package org.gamegogo.AWT.FontSamples;
// Display Fonts
/*
<applet code="ShowFonts" width=550 height=60>
</applet>
*/
import java.applet.*;
import java.awt.*;
public class ShowFonts extends Applet {
public void paint(Graphics g) {
String msg = "";
String FontList[];
/*The GraphicsEnvironme... | 38.633333 | 111 | 0.69629 |
c14a4d29867299c1ba1551ffef0907859e6fd686 | 2,685 | package com.dcits.patchtools.svn.util;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.*;
import java.util.Properties;
public class VerUtil {
private static final Logger logger = LoggerFactory.getLogger(VerUtil.class);
public static String getVersionFile(String patchFolderName,Strin... | 34.423077 | 113 | 0.55121 |
13b89710304b936608c80970a5e9b3ab1e098b5d | 4,393 | package com.yangdb.fuse.generator;
import com.yangdb.fuse.generator.configuration.DataGenConfiguration;
import com.yangdb.fuse.generator.configuration.DragonConfiguration;
import com.yangdb.fuse.generator.data.generation.DragonsGraphGenerator;
import com.yangdb.fuse.generator.data.generation.entity.DragonGenerator;
im... | 45.28866 | 139 | 0.740269 |
d1d7b3606de368119e17643aabee1d5a680acda9 | 3,815 | package me.aurelion.x.utils;
import android.app.Activity;
import android.content.Context;
import android.content.pm.ActivityInfo;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.graphics.Point;
import android.os.Build;
import android.support.annotation.NonNull;
import and... | 26.310345 | 99 | 0.611009 |
d5aa92cc75fab3f73158dc71206cf3ea50872c56 | 1,319 | package com.maxranderson.network.enet;
import java.util.Objects;
public class ENetHeader {
int peerId;
int crcEnabled;
int commandCount;
long timestamp;
int challenge;
public ENetHeader(int peerId, int crcEnabled, int commandCount, long timestamp, int challenge) {
this.peerId = peerId... | 29.977273 | 169 | 0.591357 |
9abf4548a41c0103e762a4350e31e002b48700d8 | 3,616 | package com.ddmeng.helloretrofit;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.design.widget.BottomNavigationView;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v7.app.AppCompatActivity;
import android.view.M... | 37.666667 | 126 | 0.6474 |
12d61d5fd02b0fcf37b52b47cd7cc15ea7449d93 | 2,002 | /**
* The MIT License
*
* Copyright (C) 2015 Asterios Raptis
*
* 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, c... | 35.122807 | 75 | 0.752747 |
63c35bc3f1717aa68371ec7a814b161ada7e0014 | 1,483 | /*
* Copyright 2019 kiwipeach(1099501218@qq.com).
*
* 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 applicabl... | 27.462963 | 97 | 0.699933 |
a15bcefc67e025f20f9a079326041d1df210cc9a | 382 | package com.github.upthewaterspout.fates.core.threading.daemon;
import java.io.Serializable;
import java.util.concurrent.Callable;
/**
* Interface that combines serializable with callable. Created to make easier to use
* lamba expressions with {@link DaemonRunner#execute(SerializableCallable)}
*/
public interface ... | 31.833333 | 84 | 0.803665 |
22a77f1950721aebc61af7d4076e748a12c4f352 | 304 | package my.split_bean;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class PokemonDto {
private String name;
private List<PowerDto> powerDtos;
}
| 16.888889 | 37 | 0.799342 |
3d3bdf98270490f1312d0af2b750440a9df0777e | 4,413 | /*
* 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 services;
import java.util.List;
import model.TamTru;
import java.sql.Connection;
import java.sql.PreparedStatement;... | 38.710526 | 141 | 0.588035 |
6c48bc954664e513678376677cea7eba123ae103 | 2,263 | package com.sensoranalytics.inspectionmanager.facade;
import com.sensoranalytics.inspectionmanager.entity.BaseEntity;
import java.util.Collection;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.TypedQuery;
import javax.persistence.criteria.CriteriaQuery;
import javax.pe... | 26.940476 | 92 | 0.707468 |
d2029c9e927efb80d141e41fa8614d88bba2da42 | 675 | package company.tap.gosellapi.internal.api.models;
import android.support.annotation.Nullable;
import android.support.annotation.RestrictTo;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
@RestrictTo(RestrictTo.Scope.LIBRARY)
public class M... | 19.852941 | 50 | 0.671111 |
7dc60523093dc2e41afec7b54cc2d55894d6350e | 3,695 | package com.github.zhixingheyi0712.bilibiliplayer.util.json.user;;
public class Data {
private int mid;
private String name;
private String sex;
private String face;
private String sign;
private int rank;
private int level;
private int jointime;
private int moral;
private int s... | 21.358382 | 66 | 0.57456 |
17c3c565bbef0a1528f68df7c10a2002b849777b | 8,643 | /*
* (c) Copyright 2016 Palantir Technologies Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... | 46.718919 | 120 | 0.681014 |
e8f767ff68cc47b47ffd5ea3e755c48fab08c62b | 3,969 | package com.stylefeng.guns.modular.system.service.impl;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.stylefeng.guns.core.datascope.DataScope;
import com.stylefeng.guns.modular.system.dao.UserMapper;
import com.stylefeng.guns.modular.system.model.User;
import com.stylefeng.guns.modular.system.se... | 22.942197 | 134 | 0.677249 |
43fead63d9fb56573227bbd25e721e5b121f14d6 | 185 | package net.infinityrooms;
public class EndlessButton extends net.minecraft.block.StoneButtonBlock {
protected EndlessButton(Settings settings) {
super(settings);
}
}
| 20.555556 | 73 | 0.745946 |
83aa5047c623be06948dcbadf66ffbfce9f145a7 | 521 | package org.codavaj.javadoc.input;
public class ClassWithArrays {
private static final SubException PSF_FIELD2 = new SubException();
public ClassWithArrays() {
}
public ClassWithArrays( String[][] p1 ) throws SubException, java.lang.Exception {
}
public ClassWithArrays( ArrayRet... | 23.681818 | 101 | 0.662188 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.