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 |
|---|---|---|---|---|---|
61bea7882efdeb1a1d0c198fd106820e35e2e8e1 | 2,404 | /**
* Copyright (C) 2010 the original author or authors.
* See the notice.md file distributed with this work for additional
* information regarding copyright ownership.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 30.820513 | 120 | 0.685108 |
389f908a0c63c341ac50e44083d318d38d7101e4 | 2,777 | //
// $Id$
package com.threerings.bang.game.client.sprite;
import com.jme.image.Texture;
import com.jme.scene.state.TextureState;
import com.threerings.jme.sprite.Path;
import com.threerings.bang.util.BasicContext;
import com.threerings.bang.util.RenderUtil;
import com.threerings.bang.game.data.piece.Piece;
impor... | 25.245455 | 84 | 0.635578 |
6a58cc15ea2b38b94923f83c7b9110a25f7a724d | 855 | package com.ctrip.ferriswheel.core.action;
import com.ctrip.ferriswheel.common.action.Action;
import com.ctrip.ferriswheel.common.chart.Chart;
public class UpdateChart extends ChartAction implements Action {
private Chart chartData;
public UpdateChart() {
}
public UpdateChart(String sheetName, Strin... | 25.147059 | 77 | 0.609357 |
558f9df7a5412638398a7aaae75b30a2c4274120 | 562 | package io.basestar.expression.type;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
public class TestNumbers {
@Test
void testIsInteger() {
assertTrue(Numbers.isInteger(1));
assertTrue... | 21.615385 | 59 | 0.677936 |
b305828aa2466caf7ccdcafdf7da283fb4a1c831 | 8,545 | package com.ugcs.gprvisualizer.app;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.util.Arrays;
import java.util.List;
import java.util.function.Consumer;
import com.github.thecoldwine.sigrun.common.ext.Trace;
import com.ugcs.gprvisualizer.draw.SmthChangeListener;
... | 24.840116 | 88 | 0.665184 |
b39e13f56bf27f54f99d6091bae9af885ca9fee4 | 277 | package hantonik.atomiccore.items;
import net.minecraft.world.item.Item;
import java.util.function.Function;
public class BasicItem extends Item {
public BasicItem(Function<Properties, Properties> properties) {
super(properties.apply(new Properties()));
}
}
| 23.083333 | 67 | 0.750903 |
971c8bbcfa6992d2465aedd4f56f3567aca2ddb4 | 11,226 | package com.michaelfotiadis.deskalarm.views;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.os.Handler;
import android.support.v4.content.ContextCompat;
import android.util.AttributeSet;
import android.view.View;
... | 36.806557 | 130 | 0.663727 |
b2a3c7358b2900d363842cfd043848b1d8ccad14 | 2,449 | /*
* Copyright 2016 Christoph Brill <egore911@gmail.com>
*
* 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, ... | 24.009804 | 81 | 0.675786 |
def4fc9374813bb3a109f6f510bf5f29ca2324cb | 1,654 | package io.scalecube.config;
import java.util.Optional;
import java.util.concurrent.Executor;
import java.util.function.BiConsumer;
import java.util.function.Function;
import java.util.function.Predicate;
class MappedObjectConfigProperty<T> implements ObjectConfigProperty<T> {
private final StringConfigProperty co... | 27.114754 | 95 | 0.685006 |
6a66b83fe8c1df33de59857b1fe63b83cea7ac9e | 2,124 | package com.mayreh.intellij.plugin.tlaplus;
import java.util.Arrays;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import com.intellij.find.findUsages.FindUsagesHandler;
import com.intellij.find.findUsages.FindUsagesHandlerFactory;
import com.intellij.lang.findUsages.LanguageFi... | 38.618182 | 92 | 0.648776 |
ddfcacda2c118362b06b4658133bebdec318b288 | 972 | package net.thevpc.nuts.runtime.standalone.dependency.filter;
import net.thevpc.nuts.*;
public final class NutsDependencyFilterFalse extends AbstractDependencyFilter{
public NutsDependencyFilterFalse(NutsSession session) {
super(session, NutsFilterOp.FALSE);
}
@Override
public boolean accept... | 21.130435 | 98 | 0.600823 |
4fe420018a01f44a00178bd72ba0c93e5b44d7ba | 5,019 | package com.robrua.orianna.type.dto.summoner;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import com.robrua.orianna.type.dto.OriannaDto;
import com.robrua.orianna.type.dto.matchlist.MatchReference;
... | 25.348485 | 148 | 0.512054 |
e810d0ea65e1252e2df8771f70a2031b4d324ecc | 3,787 | package com.oa.core.bean.module;
import java.io.Serializable;
import java.sql.Timestamp;
/**
* @ClassName:Department
* @author:zxd
* @Date:2018/10/13
* @Time:下午 2:38
* @Version V1.0
* @Explain 部门表
*/
public class Department implements Serializable {
/**
* 部门编号
* */
private String deptId;
... | 19.723958 | 62 | 0.616847 |
9899fe4bf0565583b3079be61b3509e9a974c9ee | 3,292 | package org.netlib.lapack;
import org.netlib.blas.Sscal;
import org.netlib.blas.Stpmv;
import org.netlib.err.Xerbla;
import org.netlib.util.intW;
public final class Stptri
{
public static void stptri(String paramString1, String paramString2, int paramInt1, float[] paramArrayOfFloat, int paramInt2, intW paramintW)
... | 27.898305 | 159 | 0.477217 |
108f2ba6822001e6485e2f6917d087243914f6ad | 7,157 | package net.jarlehansen.proto2javame.io.protoinput.factory;
import com.google.inject.Inject;
import com.google.inject.name.Named;
import net.jarlehansen.proto2javame.domain.proto.ProtoFileInput;
import net.jarlehansen.proto2javame.io.exception.ProtoFileValidationException;
import net.jarlehansen.proto2javame.io.protoi... | 31.390351 | 133 | 0.638955 |
304dc3a107d7e2f35115b6ba1537f3c14154e178 | 2,557 | package chat.rocket.core.internal.model;
import com.squareup.moshi.JsonAdapter;
import com.squareup.moshi.JsonReader;
import com.squareup.moshi.JsonWriter;
import java.io.IOException;
import java.lang.NullPointerException;
import java.lang.Override;
import java.lang.String;
import java.lang.StringBuilder;
import se.an... | 25.57 | 94 | 0.602268 |
21369b27bb03bed577ae6cebafc46aeb39c47be7 | 2,440 | /*
* Copyright 2016 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 a... | 37.538462 | 100 | 0.784836 |
e2961059255009656efa322173f2ff21a740c5e6 | 3,072 | package net.minecraft.client.entity.player;
import com.mojang.authlib.GameProfile;
import java.util.UUID;
import net.minecraft.client.Minecraft;
import net.minecraft.client.world.ClientWorld;
import net.minecraft.util.DamageSource;
import net.minecraft.util.math.MathHelper;
import net.minecraft.util.text.ITextComponen... | 34.133333 | 150 | 0.652995 |
d4604f74a0690f059a8f1c39844e1c0943d889d0 | 1,733 | //,temp,KubernetesDeploymentsProducer.java,172,193,temp,KubernetesDeploymentsProducer.java,125,142
//,3
public class xxx {
protected void doScaleDeployment(Exchange exchange, String operation) throws Exception {
String deploymentName = exchange.getIn().getHeader(KubernetesConstants.KUBERNETES_DEPLOYMENT_NAM... | 64.185185 | 127 | 0.731679 |
40c5df034740e5b9ac23cdd95c625b52f7d3853b | 1,577 | package ab.Bytes.Gui.Menus;
import net.minecraft.src.*;
import ab.Bytes.*;
import ab.Bytes.Gui.*;
public class Base_Button extends Methods {
public Bytes bt = new Bytes();
public int id, positionX, positionY;
public String buttonString;
public boolean enabled;
public Base_Button(int ids, String buttonStr... | 26.728814 | 144 | 0.693088 |
354c78b1160812561b7fd779efe5aae33aac9b18 | 938 | /**
* Copyright Dingxuan. 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 applicable law or agreed to in wr... | 29.3125 | 79 | 0.772921 |
920ecaea4c87e8cf4e1c37ffafef937704c4d28d | 4,774 | package Data-Structures.linkedList;
public class LinkedList {
private Node h;
public LinkedList() {
h = null;
}
public boolean isEmpty() {
return h == null;
}
public String toString() {
String msg = "";
if (isEmpty()) {
return null;
} else... | 26.971751 | 74 | 0.441768 |
3b565a833f92df783fba2ed62023c5e1c48cfd3c | 1,357 | /*
* Copyright 2012-2014 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... | 30.840909 | 89 | 0.747973 |
2a513bbb9289fe0989936d0ceb3fcf26da089af3 | 3,465 | /**
* Copyright 2015 David Karnok and Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | 32.083333 | 112 | 0.527273 |
0c2ae54c76db56473a97be97555fded882cfae8e | 766 | package com.fun.ben.runeword.pojo.runes;
import com.fun.ben.runeword.pojo.Rune;
public class Lo {
private static Rune lo = new Rune();
static{
lo.setContainedRuneword(null);
lo.setCubed_into_count(2);
lo.setCubed_into_material("Chipped Topaz");
lo.setDescription("high rune");
lo.setEf... | 24.709677 | 56 | 0.640992 |
4bf4c02f569cb6c3d8ee3c2c65bcd46346bde666 | 7,374 | package me.salamander.morebundles.common.items;
import me.salamander.morebundles.common.ExtraBundleInfo;
import me.salamander.morebundles.mixin.MixinBundleItem;
import net.minecraft.block.Blocks;
import net.minecraft.client.item.BundleTooltipData;
import net.minecraft.client.item.TooltipData;
import net.minecraft.enti... | 34.457944 | 109 | 0.627882 |
f48cf22de0195c47087b6b86ebe6c5ac4c859210 | 28,521 | package com.app.solveme.puzzles;
import android.content.Context;
import com.app.solveme.moves.IMiddleMoves;
import com.app.solveme.scanner.Colours;
import com.app.solveme.scanner.ScannedConfig;
import java.util.ArrayList;
import java.util.Arrays;
public class Slimtower extends Puzzle implements IMiddleMoves {
... | 33.163953 | 136 | 0.52435 |
8c4107034c4a502206e404c1dc600fc29f9d7793 | 241 | package com.bfsi.mfi.dao;
import java.util.List;
import com.bfsi.mfi.entity.MfiMbsTxnLnrepayV;
public interface LoanRepaymentTxnDao extends MaintenanceDao<MfiMbsTxnLnrepayV>{
List<MfiMbsTxnLnrepayV> getchildLoan(String cbsAcRefNo);
}
| 20.083333 | 79 | 0.821577 |
3822a88e6f36764569c23151d1a46965bf948455 | 6,155 | package corpus;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import org.apache.logging.log4j.LogManager;
import org.apa... | 28.761682 | 113 | 0.697807 |
3714e4a26f2b7846e7bfb566eecbd27d90331b4e | 3,476 | package com.manan.dev.clubconnect.editEvent;
import android.content.Intent;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.AutoCompleteTextView;
import android.widget... | 37.782609 | 202 | 0.554661 |
bf5c6e6c4366342a731901d13fbf82648315d84f | 178 | package geektime.spring.jedis.repository;
import geektime.spring.jedis.model.CoffeeOrder;
public interface CoffeeOrderRepository extends BaseRepository<CoffeeOrder, Long> {
}
| 22.25 | 82 | 0.837079 |
c3213cf015ea1965c0eb775975448c5c1aa76f14 | 5,298 | package com.runetooncraft.plugins.CostDistanceTeleporter;
import java.util.HashMap;
import net.ess3.api.InvalidWorldException;
import net.milkbowl.vault.economy.EconomyResponse;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.buk... | 45.282051 | 218 | 0.680445 |
8a9992ddfad556788c6ea9acee476bbf306851fa | 796 | package com.didi.enums;
/**
* @Author: thought
* @Description :
* @Date : Create in 下午2:23 2017/5/2
* @Modified By :
*/
public enum IDUTIL {
USER(100, "用户"),
ORDER(200, "订单");
private int state;
private String stateInfo;
IDUTIL(int state, String stateInfo) {
this.state = state;
this.stateInfo... | 17.688889 | 53 | 0.643216 |
700cfb8a34e23698f73456fd2772ab74dcd9cdf1 | 768 | /*
* Copyright 2019 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing ... | 36.571429 | 95 | 0.75651 |
1c479ac8ab0821e694efb477581e97ab6b5654be | 7,967 | /*******************************************************************************
* Copyright (c) 2000, 2006 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... | 33.616034 | 133 | 0.762771 |
4863cda452a5ff894803dbd5799ad2a9abfe40ac | 507 | package com.fundynamic.d2tm.game.terrain;
import com.fundynamic.d2tm.game.entities.Entity;
import com.fundynamic.d2tm.game.map.MapEditor;
import org.newdawn.slick.Color;
import org.newdawn.slick.Image;
public interface Terrain {
Image getTileImage();
Terrain setFacing(MapEditor.TerrainFacing terrainFacing);... | 21.125 | 61 | 0.765286 |
14c7ee5cea18269415ffe55d33ac4ca5337a73d2 | 433 | /**
* Description: The interface of scratch search for achieve an trial state
*
* @ Author Create/Modi Note
* Xiaofeng Xie May 19, 2008
* Xiaofeng Xie Aug 21, 2008 MAOS M01.00.00
*
* @version M01.00.00
* @since M01.00.00
*/
package maosKernel.behavior.scratch;
import maosKern... | 22.789474 | 75 | 0.667436 |
149d4303f248f2974a6af26765ab34dc2d83dba1 | 3,663 | /*
* Copyright (c) 2016 SUGRA-SYM LLC (Nathan Wiehoff, Geoffrey Hibbert)
*
* 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
... | 37.762887 | 98 | 0.697789 |
c7fa0df0b44ae364fd49aeacf76d44fe3d152dda | 25,914 | /*******************************************************************************
* Copyright 2013 Ednovo d/b/a Gooru. All rights reserved.
*
* http://www.goorulearning.org/
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (... | 33.138107 | 215 | 0.734043 |
8348766d9b84d1a147c494051b5dccbd2c9002bd | 1,589 | package io.spring.cloud.samples.animalrescue.backend;
import java.util.Collection;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.core.convert.converter.Converter;
import org.springframework.security.authentication.AbstractAuthenticationToken;
import org.spr... | 37.833333 | 105 | 0.809314 |
09dcfa906ce6516f6a920dfa8c86e2f57c1ec98f | 404 | package net.glowstone.block.entity;
import net.glowstone.block.GlowBlock;
import org.bukkit.event.inventory.InventoryType;
public class TEDispenser extends TEContainer {
public TEDispenser(GlowBlock block) {
super(block, InventoryType.DISPENSER);
setSaveId("Trap");
}
protected TEDispense... | 22.444444 | 67 | 0.720297 |
5e6361b89907114606c248454cf297aad27b2b9a | 5,112 | package eim.systems.cs.pub.ro.practicaltest01;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.V... | 35.748252 | 111 | 0.634585 |
61eaf0915eb18949a0f7c3cc723033f004e38069 | 2,502 | package com.yourname.projectname.letnik_4.kocka;
import java.io.*;
import java.util.Arrays;
import java.util.Random;
public class Kocka {
private int min;
private int max;
private Random random;
private File file;
private int[] meti;
public Kocka(int min, int max) {
this.min = min;
... | 24.772277 | 77 | 0.483613 |
49af265f32b0363bb4c6d96f1fd61fa71d67b3ac | 1,803 | /*
* Copyright 2017 David Karnok
*
* 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... | 31.086207 | 100 | 0.608985 |
de6c3ce356830c5a4d69f37484acd6362397df50 | 227 | package tracker.simple;
public class Task extends Item {
public Task(String name, String description) {
this.name = name;
this.description = description;
}
public String showMustGoOn() {
return "showMustGoOn!!!";
}
} | 20.636364 | 47 | 0.718062 |
ce241c192e29d332b502bc002d827325dd6abb2d | 779 | package com.cts.training.model;
import java.util.Set;
import javax.persistence.Entity;
import javax.persistence.ManyToMany;
@Entity
public class Technology {
private long id;
private String language;
private String expertise;
@ManyToMany(mappedBy = "technology")
private Set<Developer> developer;
public long getId() ... | 19 | 52 | 0.762516 |
b667066923d415ad0ec431bb6da4a55b36518468 | 2,525 | package pl.bk.pizza.store.infrastructure.security.jwt;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.security.authentication.BadCredentialsException;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.GrantedAuthority;
import ... | 33.666667 | 101 | 0.587327 |
7b8327aba9acb31b15b6fbe7ea0bb5a08e52a132 | 8,441 | package com.wayne.gestureverify.view;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.PorterDuff;
import android.util.Log;
import android.util.Pair;
import android.view.MotionEvent;
imp... | 35.766949 | 101 | 0.592228 |
f042efb0c3620144a13c52f64d09f85959c071db | 2,212 | package io.ably.jmeter.gui;
import io.ably.jmeter.Constants;
import io.ably.jmeter.samplers.RealtimeSubGroupSampler;
import org.apache.jmeter.gui.util.VerticalPanel;
import org.apache.jmeter.samplers.gui.AbstractSamplerGui;
import org.apache.jmeter.testelement.TestElement;
import org.slf4j.Logger;
import org.slf4j.Log... | 26.650602 | 114 | 0.788879 |
719d416a59693bda2fe631012f233438d2d86481 | 195 | package org.cloudifysource.domain.statistics;
/**
*
* @author adaml
*
*/
public interface StatisticsCalculation extends InstancesStatisticsCalculation , TimeWindowStatisticsCalculation{
}
| 17.727273 | 112 | 0.794872 |
ba49de866c176fcc27a959fee471f5fc39fddc4a | 7,323 | package sepm.ss17.e1526280.gui.controller;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.fxml.FXML;
import javafx.scene.Node;
import javafx.scene.control.Button;
import javafx.scene.control.CheckBox;
import javafx.scene.control.ComboBox;
import javafx.scene.control.TextField;
import ... | 31.029661 | 136 | 0.651782 |
0b12eebf898cdab019309bb2bf4f1ffb224f3b65 | 2,785 | package com.feralgoon;
import java.util.Scanner;
import java.util.Stack;
public class EmergencyTracker
{
private Stack<String> emergencies = new Stack<>();
public void run()
{
Scanner scan = new Scanner(System.in);
String choice;
printHeader();
do
{
p... | 23.803419 | 85 | 0.529264 |
09b8316ef2fcecb62e3cb010c27ff929c4003e56 | 752 | package io.github.dunwu.tool.img;
import io.github.dunwu.tool.io.FileUtil;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
public class ImgTest {
@Test
@Disabled
public void cutTest1() {
Img.from(FileUtil.file("e:/pic/face.jpg")).cut(0, 0, 200).write(FileUtil.file("e:/pi... | 25.066667 | 112 | 0.638298 |
95fb75004548b2839ce7e719810b3365641bdf65 | 2,922 | package org.sdmlib.test.examples.helloworld.util;
import org.sdmlib.serialization.EntityFactory;
import org.sdmlib.test.examples.helloworld.Greeting;
import org.sdmlib.test.examples.helloworld.GreetingMessage;
import org.sdmlib.test.examples.helloworld.Person;
import de.uniks.networkparser.IdMap;
public class Greeti... | 23.007874 | 85 | 0.623888 |
3d7ba64d3e28a11d49411332b7abadbb6a6d1c9a | 2,956 | /*
* Copyright 2021 Red Hat, Inc. and/or 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 a... | 46.1875 | 160 | 0.763194 |
05a88b15fe8356cadd7fc6fa3bd29fab87e15958 | 294 | package com.example.sib.persistence;
import com.example.sib.model.FavoritesList;
import io.quarkus.hibernate.orm.panache.PanacheRepository;
import javax.enterprise.context.ApplicationScoped;
@ApplicationScoped
public class FavoritesRepository implements PanacheRepository<FavoritesList> {
}
| 26.727273 | 78 | 0.853741 |
41ad57f960606ee73442f3ab4f015a0a0dce8f46 | 362 | package io.github.intellij.dlanguage.psi;
import com.intellij.psi.PsiElement;
import org.jetbrains.annotations.Nullable;
public interface DLanguageArguments extends PsiElement {
@Nullable
public DLanguageArgumentList getArgumentList();
@Nullable
public PsiElement getOP_PAR_RIGHT();
@Nullable
... | 19.052632 | 56 | 0.770718 |
d3e47fcea163ae4044c10d0018fea01c378e9a7a | 21,212 | /*
* (C) Copyright 2018 VILMAA.
*
* 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... | 45.324786 | 145 | 0.656939 |
eac0d3303a6c5672070d977b9b3fd29ebe1d8862 | 2,665 | package com.stef.rh.model;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
public class CountriesTest {
public static final String COUNTRY_ID = "42";
public static final String COUNTRY_NAME = "Country Name";
public static final long REGION_ID = 123L;
publ... | 32.901235 | 144 | 0.697186 |
0ece2eee9e9fd24d6c86b539c36bab815ad93b0f | 13,157 | package com.after_sunrise.sx8000;
import com.beust.jcommander.JCommander;
import com.beust.jcommander.Parameter;
import com.opencsv.CSVWriter;
import org.apache.commons.codec.binary.Hex;
import org.apache.commons.compress.compressors.bzip2.BZip2CompressorOutputStream;
import org.apache.commons.compress.utils.CountingO... | 37.916427 | 211 | 0.686099 |
fdd04681dfcb675e61a50b2ab2fb11dbdcb00d57 | 1,456 | /**
* Project Name:java11_in_action File Name:TimeExample.java Package Name:luozix.start.java11
* Date:2021年3月2日下午6:17:10 Copyright (c) 2021, xiaoyulong07@outlook.com All Rights Reserved.
*/
/**
* @Title: TimeExample.java @Package luozix.start.java11 @Description: TODO(用一句话描述该文件做什么)
*
* @author xiao xiaoyulong07@... | 22.75 | 92 | 0.676511 |
851f29e62c8affb5fe349ee7acc0ec2df4ea6484 | 1,462 | package integration;
import com.google.inject.Guice;
import knn.api.KnowledgeNode;
import knn.api.KnowledgeNodeNetwork;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;
import prometheus.api.Prometheus;
import prometheus.guice.PrometheusModule;
i... | 29.24 | 107 | 0.692202 |
5c06d40fdce9abb10522e7a82e7f44c1daec2e71 | 381 | package com.avob.openadr.server.common.vtn.broker.rabbitmq;
public class BaseCheck {
private String username;
private String vhost;
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getVhost() {
return vhost;
}
pub... | 15.24 | 59 | 0.721785 |
e2ec97f1704bd8c08903adddaf38a6a27ed5099d | 4,789 | /*
* Copyright (c) 2013, Cloudera, Inc. All Rights Reserved.
*
* Cloudera, Inc. 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/LICE... | 35.213235 | 110 | 0.694299 |
5d629d7bfd6fedbb1bc2f0efe7472cc0bc99ca89 | 1,582 | package com.terraforged.core.world.heightmap;
import com.terraforged.core.cell.Cell;
import com.terraforged.core.world.GeneratorContext;
import com.terraforged.core.world.WorldDecorators;
import com.terraforged.core.world.WorldGeneratorFactory;
import com.terraforged.core.world.decorator.Decorator;
import com.terrafor... | 33.659574 | 103 | 0.678255 |
e29e2b5207dcf5882c95a646682ba651fc321145 | 511 | package agent.rlapproxagent;
import java.util.List;
import environnement.Action;
import environnement.Etat;
/**
* Interface pour calcul de l'ensemble des fonctions caracteristiques phi_i(s,a)
*
*
*
* @author laetitiamatignon
*
*/
public interface FeatureFunction {
/** @return le nombre de fonctions carac... | 18.925926 | 80 | 0.727984 |
479a3779662c44d76e184d0e4e79e693db35b951 | 3,678 | package com.wzlab.smartsecurity.activity.repair;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.design.widget.TabLayout;
import android.support.design.widget.TabLayout.Tab;
import android.support.v4.app.FragmentManager;
import android.support.v4.view.ViewPager;
import and... | 30.396694 | 102 | 0.676726 |
ba927fccf40161a6e7f35046d288e3426be55f2b | 4,557 | package com.mulgasoft.emacsplus.util;
import com.intellij.openapi.actionSystem.ActionManager;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.actionSystem.DataContext;
import com.intellij.openapi.actionSystem.KeyboardShortcut;
impor... | 30.38 | 116 | 0.685758 |
86da32b5ab2387975ab9c1c9d6580eb3c094df72 | 35,522 | /*
* Copyright 2012 Amazon Technologies, 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://aws.amazon.com/apache2.0
*
* This file is distributed on an "AS ... | 45.308673 | 155 | 0.617392 |
f2663bf4efb743c05d2f5fb92a55874f20a6c865 | 7,754 | /*
* 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 ... | 45.611765 | 171 | 0.626257 |
25679a58cdd2febb12d568d9956490dccf591dcf | 529 | granule gLowOverload(AbstractGenerator){
external double overload;
{
if(overload <= 0.8)
return true;
else
return false;
}
}
class AbstractGenerator within gLowOverload{
public void checkStatus(){
System.out.println("system overload is low, not use flow control in AbstractGenerator...");
seed.c... | 22.041667 | 98 | 0.708885 |
e6b29a076832b52e81b6421a5e628cd1e86bd8e1 | 2,453 | /*
* Copyright (c) 2021 gematik GmbH
*
* 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 agre... | 30.283951 | 98 | 0.690175 |
10baf9d6aa3c66f2f816e902668efe459f14c659 | 608 | package io.katharsis.rs.internal.parameterProvider.provider;
import com.fasterxml.jackson.databind.ObjectMapper;
import javax.ws.rs.container.ContainerRequestContext;
public class ContainerRequestContextProvider implements RequestContextParameterProvider {
@Override
public ContainerRequestContext provideVal... | 32 | 137 | 0.804276 |
6f14d9b097c50e458f54626978a6fb00cd4a9b7f | 1,108 | package jit.wxs.disruptor.demo.ringbuffer;
import com.lmax.disruptor.EventTranslatorThreeArg;
import com.lmax.disruptor.RingBuffer;
/**
* @author jitwxs
* @date 2020年03月14日 21:40
*/
public class UserEventTranslator {
private RingBuffer<UserEvent> ringBuffer;
public UserEventTranslator(RingBuff... | 35.741935 | 173 | 0.693141 |
527eb650f08b622e191c3daea5999ad142c093b0 | 1,460 | package de.n26.n26androidsamples.credit.data;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import com.google.auto.value.AutoValue;
import com.google.gson.Gson;
import com.google.gson.TypeAdapter;
@AutoValue
public abstract class CreditRepaymentInfoRaw {
@Nullable
ab... | 23.174603 | 93 | 0.731507 |
7822d4c3c642c232f98b9eaf6573a47ebf6bfc09 | 422 | package parsley.runtime;
public class Symbol {
protected String string;
public Symbol(String string) {
this.string = string;
}
public int hashCode() {
return string.hashCode();
}
public boolean equals(Object object) {
if (object instanceof Symbol) {
return ((Symbol) object).hashCode() == hashCode(... | 16.230769 | 53 | 0.665877 |
3fc1955a4534ede6c0acb1f80de9332c4e5fdd9a | 4,846 | package nl.rutgerkok.worldgeneratorapi.decoration;
import java.util.List;
import nl.rutgerkok.worldgeneratorapi.BaseChunkGenerator;
/**
* Without any decorations, a Minecraft world would just contain stone, air and
* water. Everything else is a decoration. This class can be used to add or
* remove decorations fro... | 32.306667 | 108 | 0.637433 |
799d0b1d00a0ea7b3b59edf8242323ff07935616 | 353 | package com.wy.jdk9.example;
/**
* JDK9接口中定义私有方法,并在default修饰的方法中调用
*
* @author 飞花梦影
* @date 2021-10-06 07:37:32
* @git {@link https://github.com/dreamFlyingFlower}
*/
public class MyInterface01Impl implements MyInterface01 {
public static void main(String[] args) {
MyInterface01Impl impl01 = new MyInterface... | 22.0625 | 57 | 0.72238 |
557bc3efeb11ef8d0e38a33da21423eb2a0765fa | 4,884 | package com.jsplec.wp.command;
import java.util.regex.Pattern;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import com.jsplec.wp.dao.UloginDao;
import com.jsplec.wp.dto.joinDto;
public class JoinCheckCommand implements... | 29.421687 | 128 | 0.648239 |
834535ecf3ece18ec9b699d9a0f59c8239c0a607 | 3,036 | package com.twilio.sdk.resource.list.trunking;
import com.twilio.sdk.TwilioRestException;
import com.twilio.sdk.TwilioRestResponse;
import com.twilio.sdk.TwilioTrunkingClient;
import com.twilio.sdk.resource.NextGenListResource;
import com.twilio.sdk.resource.factory.ResourceFactory;
import com.twilio.sdk.resource.inst... | 31.625 | 157 | 0.759881 |
5763bcbd118acd1a3979df1dfed47980891e69b1 | 2,980 | package org.proteored.miapeapi.xml.ge;
import java.util.List;
import java.util.Set;
import org.proteored.miapeapi.interfaces.Buffer;
import org.proteored.miapeapi.interfaces.Equipment;
import org.proteored.miapeapi.interfaces.ge.IndirectDetection;
import org.proteored.miapeapi.interfaces.ge.IndirectDetectionAgent;
im... | 32.747253 | 96 | 0.810738 |
0d357446c791e4a1547a4a610e96f4a3769a135e | 2,438 | /*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*/
package com.microsoft.embeddedsocial.ui.fragment;
import com.microsoft.embeddedsocial.base.utils.EnumUtils;
import com.microsoft.embeddedsocial.data.model.Top... | 36.38806 | 99 | 0.767842 |
c51e8ffbad98143f4e09de4caf189a97b82d21e3 | 1,129 | package org.springframework.samples.jpetstore.web.spring;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.samples.jpetstore.domain.logic.PetStoreFacade;
import org.springframework.web.serv... | 32.257143 | 112 | 0.781222 |
e98bf605d97b0cea8e030e2ef89d5b04e12c1128 | 866 | package com.example;
public class Box {
private String name;
private String color;
private String width;
private String height;
private String id;
public String getId(){
return this.id;
}
public String getName() {
return this.name;
}
public St... | 17.32 | 37 | 0.526559 |
454c3a89abebf2c6bf9afc7001ff6ecad1b517e4 | 359 | package de.ami.team1.preprocessing.services;
import de.ami.team1.preprocessing.crud.CrudService;
import de.ami.team1.preprocessing.entities.User;
import javax.enterprise.context.RequestScoped;
@RequestScoped
public class UserService extends CrudService<User> {
@Override
protected Class<User> getEntityClass(... | 22.4375 | 52 | 0.768802 |
2c23f188df93b6880c9ba667544718e13edeea0b | 252 | package emailtemplate.ex1.screen.user;
import io.jmix.ui.screen.*;
import emailtemplate.ex1.entity.User;
@UiController("User.edit")
@UiDescriptor("user-edit.xml")
@EditedEntityContainer("userDc")
public class UserEdit extends StandardEditor<User> {
} | 25.2 | 52 | 0.789683 |
01dcabac5b62d26e35da5df54a19c81fad70079f | 3,601 | /*******************************************************************************
* © 2018 Disney | ABC Television Group
*
* Licensed under the Apache License, Version 2.0 (the "Apache License")
* with the following modification; you may not use this file except in
* compliance with the Apache License and the follo... | 34.295238 | 118 | 0.655374 |
d6c91e709e6e4144c2f0ac31bc8d4ed81f0e0f0a | 4,682 | package com.lmj.vueblog.config.shiro;
import org.apache.shiro.mgt.SecurityManager;
import org.apache.shiro.realm.Realm;
import org.apache.shiro.session.mgt.SessionManager;
import org.apache.shiro.spring.web.ShiroFilterFactoryBean;
import org.apache.shiro.spring.web.config.DefaultShiroFilterChainDefinition;
import org.... | 37.15873 | 113 | 0.70141 |
9c38b0acb0629a2f15626602ce586b36a4dc751c | 2,127 | package draganddrop.studybuddy.logic.commands.edit;
import static java.util.Objects.requireNonNull;
import draganddrop.studybuddy.logic.commands.Command;
import draganddrop.studybuddy.logic.commands.CommandResult;
import draganddrop.studybuddy.logic.commands.exceptions.CommandException;
import draganddrop.studybuddy.... | 37.315789 | 92 | 0.659614 |
3094b255e21ddfcf9c29d4271289dfee71fb95d2 | 2,350 | package com.ruoyi.ecloud.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ecloud.mapper.ElectricityMeterMapper;
import com.ruoyi.ecloud.domain.ElectricityMeter;
im... | 24.479167 | 95 | 0.698723 |
c5225d6a72b440bcab424c95f802e9caf1103ed2 | 9,172 | package net.osmand.plus.mapcontextmenu.other;
import android.app.Activity;
import android.content.Context;
import android.os.Build;
import android.os.Bundle;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewTreeObserver;
i... | 34.742424 | 115 | 0.76341 |
b4f5912dc493084502511ee600018ae9cdb83db7 | 1,370 | package com.zundrel.ollivanders.client.keybindings;
import com.zundrel.ollivanders.Ollivanders;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.fabricmc.fabric.api.client.keybinding.FabricKeyBinding;
import net.fabricmc.fabric.api.client.keybinding.KeyBindingRegistry;
import net.minecr... | 36.052632 | 74 | 0.713869 |
9bb12019983a75b00b68a4186b4089756c1b485b | 3,492 | /*
* Copyright 2014 Ondrej Skopek
*
* 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 ... | 35.272727 | 114 | 0.685567 |
0d66a9636d85c797b99ff6446e0d0129b40730c5 | 591 | package ru.footmade.libnot;
public class DefaultNegationStrategy extends AbstractNegationStrategy {
@Override
public boolean not(boolean var) {
final Boolean varObj = Boolean.valueOf(var);
Boolean result;
if (varObj.equals(Constants.TRUE)) {
result = Boolean.valueOf(Constan... | 31.105263 | 71 | 0.642978 |
1ba67414da7c2304076fb0794242cae820c31061 | 2,190 | package view.Splashscreen.FirstSplashscreen;
import java.util.Map;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.VBox;
import view.Splashscreen.FirstSplashscreenAPI;
import view.Splashscreen.SelectionBox;
/**
* The FirstSplashscreen creates the language selection dropdown ... | 30 | 100 | 0.740639 |
da0101a1d389b71bde8191721fe773f47983d446 | 2,724 | package cat.buyaround.app.fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.lifecycle.ViewModelProvider;
import androidx.recyclerview.widget.DividerIt... | 36.810811 | 121 | 0.770191 |
ebba2333f042442c1e937a06df4026b9b183675f | 4,880 | /*
* #%L
* BroadleafCommerce Common Libraries
* %%
* Copyright (C) 2009 - 2016 Broadleaf Commerce
* %%
* Licensed under the Broadleaf Fair Use License Agreement, Version 1.0
* (the "Fair Use License" located at http://license.broadleafcommerce.org/fair_use_license-1.0.txt)
* unless the restrictions on use ther... | 50.833333 | 145 | 0.743443 |
69b35bdd03557706c62ce7c8f7e81caa7eb6baca | 10,825 | package com.spark.live.sdk.network.rtmp;
import com.spark.live.sdk.network.rtmp.amf.AMFBoolean;
import com.spark.live.sdk.network.rtmp.amf.AMFData;
import com.spark.live.sdk.network.rtmp.amf.AMFDate;
import com.spark.live.sdk.network.rtmp.amf.AMFECMAArray;
import com.spark.live.sdk.network.rtmp.amf.AMFLongString;
impo... | 41.316794 | 122 | 0.61552 |
9224efcb21899ad9fe54b879e5178ae98e079faa | 5,928 | /*
* Copyright 2000-2011 JetBrains s.r.o.
*
* 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 agre... | 44.238806 | 134 | 0.690958 |
dd91a2ed658061e892a979f228eff7a2ab7c22fa | 2,966 | package com.iplusplus.custopoly.app;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.iplusplus.custopoly.mode... | 33.325843 | 117 | 0.664869 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.