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 |
|---|---|---|---|---|---|
4fc53ea81ab681cabbf499da440329323f512adf | 9,271 | /**
* Sencha GXT 4.0.1 - Sencha for GWT
* Copyright (c) 2006-2016, Sencha Inc.
*
* licensing@sencha.com
* http://www.sencha.com/products/gxt/license/
*
* ================================================================================
* Evaluation/Trial License
* ===============================================... | 36.356863 | 104 | 0.676302 |
6f53d84ea90aab88eda1e8db4e77bc94ecd7d9e2 | 958 | package io.luxus.api.adofai.action;
import org.json.simple.JSONObject;
import org.json.simple.parser.ParseException;
import io.luxus.api.adofai.type.EventType;
public class SetHitsound extends Action {
private String hitsound;
private Long hitsoundVolume;
public SetHitsound() {
super(EventType.SET_HITSOUND)... | 20.826087 | 59 | 0.736952 |
762cddeaa6bf208f5c942e5dc2e67adf2e01e5fe | 37,492 | /*
* Copyright 2016 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.172414 | 193 | 0.633335 |
5eb1bd40b425dc93ca506409708f102061f161fa | 686 |
package ee.taltech.cs.mbt.tdl.uppaal.uta_parser.structure.jaxb;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* An UPPAAL timed-automata system description.
*
* <p>J... | 21.4375 | 95 | 0.736152 |
1133717b38d57114a54f32a623654d13c3f7c654 | 3,282 | package cn.reactnative.httpcache;
import android.content.Intent;
import com.facebook.cache.disk.DiskStorageCache;
import com.facebook.cache.disk.FileCache;
import com.facebook.drawee.backends.pipeline.Fresco;
import com.facebook.imagepipeline.core.ImagePipelineFactory;
import com.facebook.react.bridge.Callback;
impor... | 31.864078 | 138 | 0.645948 |
aac56402a82c4620eed6ac58ab9b0fbef5ed9273 | 2,438 | /*
* This file is part of the Adafruit OLED Bonnet Toolkit: a Java toolkit for the Adafruit 128x64 OLED bonnet,
* with support for the screen, D-pad/buttons, UI layout, and task scheduling.
*
* Author: Luke Hutchison
*
* Hosted at: https://github.com/lukehutch/Adafruit-OLED-Bonnet-Toolkit
*
* This code is not ... | 39.322581 | 111 | 0.719442 |
993bc651c73491bb726c8107287f29ec21c79a19 | 4,499 | package com.examplehub.datastructures.linkedlist;
import java.util.StringJoiner;
class SinglyLinkedListWithHead<E> {
/** Head pointer of SinglyLinkedList. */
private Node<E> head;
/** Tail pointer of SinglyLinkedList. */
private Node<E> tail;
/** Size of SinglyLinkedList. */
private int size;
/** Co... | 21.322275 | 80 | 0.589909 |
d38e8dbe3207e7ff2e4ab3492614fe1892815fe9 | 499 | package nodes.queries;
import apis.ImmutableVisualCommand;
import nodes.CommandNode;
import turtle.Bale;
import java.util.List;
/**
* @author Anna Darwish
* @version 3/13/2019
*/
public class IsShowing extends CommandNode {
public IsShowing(String n){
super(n);
}
/**
* @return active turtle'... | 23.761905 | 88 | 0.693387 |
5a6cf590a32ab4417684f9d0df2e99f8d85c86ce | 3,121 | package com.example.www.bilx.Fragments.User;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.View;
import android.view.ViewGroup;
import com.alamkanak.mywe... | 30.300971 | 132 | 0.615187 |
f6d8f8c22fe0776f42db64cd6a6ea60b75664487 | 2,902 | /*
* 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 ... | 26.144144 | 111 | 0.639214 |
f995351084a627148fe296c4197e79fc94ca988b | 687 | package cn.wizzer.modules;
import cn.wizzer.common.view.VelocityViewMaker;
import cn.wizzer.core.UrlMappingSet;
import org.nutz.mvc.annotation.*;
import org.nutz.mvc.ioc.provider.ComboIocProvider;
import cn.wizzer.core.StartSetup;
/**
* 类描述:
* 创建人:Wizzer
* 联系方式:www.wizzer.cn
* 创建时间:2013-11-26 下午2:08:37
* @v... | 23.689655 | 68 | 0.749636 |
745edae76b5ae8b216d83376de138031dbafe12b | 730 | package de.mpg.mpdl.inge.pubman.web.util.vos;
import de.mpg.mpdl.inge.model.db.valueobjects.ItemVersionVO;
import de.mpg.mpdl.inge.model.valueobjects.RelationVO;
@SuppressWarnings("serial")
public class RelationVOPresentation extends RelationVO {
private ItemVersionVO sourceItem;
private ItemVersionVO targetItem;... | 23.548387 | 60 | 0.761644 |
38769ca0d33d95422a46e6c9a6e761285f83f4d2 | 1,816 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package juegodecartas21;
import java.util.Vector;
import javax.swing.ImageIcon;
import javax.swing.JOptionPane;
/**
*
* @author ~Antares~
*/
public class Apuesta {
private int efectivo;
private int apue... | 21.116279 | 79 | 0.572687 |
463e820e187a69e85231627653759cdb4065ece9 | 101 | /**
* @author andy.an
* @since 2018/12/7
*/
package com.andyadc.codeblocks.framework.kafka.pubsub; | 20.2 | 54 | 0.70297 |
9608201d8c38363c4d244e99b6be8acb9ea0b9c3 | 12,728 | package org.commcare.cases.instance;
import org.commcare.cases.model.StorageIndexedTreeElementModel;
import org.commcare.cases.query.QueryContext;
import org.commcare.cases.query.QuerySensitive;
import org.commcare.cases.query.ScopeLimitedReferenceRequestCache;
import org.commcare.modern.engine.cases.RecordObjectCache... | 40.535032 | 140 | 0.665462 |
390f3894803a011ce6ebe0745a33247258810fc1 | 2,034 | package sparkle.cms.domain;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.PersistenceConstructor;
import org.springframework.data.mongodb.core.mapping.Document;
import javax.validation.constraints.NotNull;
/**
* CmsHotspot
* Created by bazzoni on 08/07/2015.
*/
@Documen... | 22.6 | 81 | 0.653884 |
703ddb945ce064aa333df4ef98c968afa75d9b34 | 937 | package com.memoeslink.generator.spanish;
import com.memoeslink.generator.common.Database;
import com.memoeslink.generator.common.Gender;
public interface NameDefiner extends com.memoeslink.generator.common.NameDefiner {
default String getForename(Gender gender) {
gender = gender != null ? gender : Gende... | 25.324324 | 82 | 0.676628 |
cc67c22ce01a606eb0d8885da766661ed8aa1621 | 12,662 | /*
* Copyright (C) 2017 CenturyLink, 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 applicab... | 43.813149 | 116 | 0.615464 |
887282bb638c5d69e0ad04f90e72436bfbfebcb7 | 3,915 | package org.ninestar.crawling.pageanalyzer;
import com.google.common.base.Charsets;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.google.common.io.Resources;
import org.ninestar.crawling.data.HtmlAnalysisResult;
import org.junit.Ignore;
import org.junit.Test;
import java.ne... | 43.988764 | 166 | 0.696041 |
aa5a46afae20534adb4be1dfdca88284dc9497fc | 1,019 | package com.example.demo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.sprin... | 32.870968 | 91 | 0.754661 |
a2bf6c86cb3d0cf88a57ad1305a3acd73177973e | 1,269 | package org.ingrahamrobotics.robot2013.commands;
import org.ingrahamrobotics.robot2013.DisableNotifable;
import org.ingrahamrobotics.robot2013.RobotMain;
/**
* This Command runs the shooter push solenoid according to the input received
* from VstJ.getShooterSolenoidPushButtonValue().
*/
public class RunShooterSole... | 25.897959 | 82 | 0.676123 |
3654589c49136877f3e4da5471718b9d335b7a13 | 1,310 | /*
* Copyright 2012-2013 <strong>www.fyard.com</strong> Inc. All rights reserved.
*/
package org.bulkframework.util;
import org.apache.commons.codec.digest.Sha2Crypt;
import org.apache.commons.lang3.StringUtils;
/**
* 加密/解密工具类
*
* @author wiflish
* @since Mar 28, 2013
*/
public class CodecUtil {
private s... | 23.818182 | 90 | 0.60458 |
43f467de5bb7a8ff92be66b920dfe1205c8443fa | 1,352 | package test;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
public class ExecutorServiceExecutorSubmitDemo {
public static void main(String[]... | 34.666667 | 95 | 0.629438 |
afa3de64e15d9c74b0eb3f385865897c59a03008 | 9,645 | package me.limeice.common.function;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.Application;
import android.content.Context;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.graphics.Point;
import android.os.Build;
import android... | 27.795389 | 95 | 0.595334 |
12f635375b1992fe8b2afe2c7b51c5986bbea380 | 2,485 | /*
* Copyright 2013-2020 The OpenZipkin Authors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 36.544118 | 100 | 0.756539 |
fe6c068828abf3f771eb0c4bda61ece9fc055e73 | 1,071 | package circularLL_31th_dec;
/**
*
* @author Hariom Yadav | 31-Dec-2019
*
*/
class NodeC{
int data;
NodeC next;
public NodeC(int d) {
data = d;
}
}
class CLL_add_print{
NodeC head;
public void add(int k) {
NodeC nn = new NodeC(k);
nn.next = head;//1st link : adding at 1st place in CLL
if(... | 14.472973 | 58 | 0.563025 |
52d1e3794f6f8dbe03985ad4579a2075784af60a | 668 | package ru.stqa.pft.addressbook.lessons_60.tests;
import org.testng.annotations.Test;
public class ContactDeletionTests extends TestBase {
@Test(enabled = false)
public void testGroupDeletion() throws Exception {
app.contact().returnToHomePage();//переход на страницу контактов
//Проверка на наличие контак... | 37.111111 | 99 | 0.73503 |
e8bc5758d30a24e436c69c7d48ef0d34cc75a0b3 | 9,426 | package com.wdata.system.controller;
import com.wdata.base.controller.BaseController;
import com.wdata.base.util.*;
import com.wdata.system.service.DictionaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;... | 33.544484 | 139 | 0.616168 |
daf7c3e1c4bf99701dcdf1fa6ea64746ad62c27f | 981 | package com.epam.rft.atsy.service.converter;
/**
* Adapter class for {@link CustomConverter}, used for saving the source and target types.
* @see AbstractOneWayConverter
* @see AbstractTwoWayConverter
*/
public class ConverterAdapter {
private Class sourceClass;
private Class targetClass;
private CustomConv... | 25.153846 | 100 | 0.733945 |
8855ad03b3949904a12f08aa103d01a7e8bffc8a | 6,137 | /**
* 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 m... | 42.324138 | 134 | 0.783771 |
090c1fb5725af9b1878bc799adfcbd3186379868 | 1,418 | // ============================================================================
//
// Copyright (C) 2006-2021 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have receiv... | 30.826087 | 120 | 0.615656 |
66b84bd3ae95bd045d626d45ecd0fc9f3e81a0f2 | 816 | package de.dfki.nlp.dnorm;
import java.io.File;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.URL;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configur... | 19.902439 | 75 | 0.779412 |
a7d8e9e6ff11781d3fdb20bce5383ac67f0cf002 | 284 | package org.firstinspires.ftc.team6220_2020.ResourceClasses;
/**
Identifiers for boolean controls on controller
*/
public enum Button
{
A, B, X, Y,
LEFT_BUMPER, RIGHT_BUMPER, LEFT_STICK_PRESS, RIGHT_STICK_PRESS,
BACK, START, DPAD_UP, DPAD_DOWN, DPAD_LEFT, DPAD_RIGHT
} | 23.666667 | 67 | 0.757042 |
205c4f5bdba7d507549ec02c233ec619fc895ed9 | 35,608 | /*
* Copyright 2009-2016 Aarhus University
*
* 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... | 47.100529 | 288 | 0.667238 |
04c88853b9cbde489702082bb195f41e900425ae | 1,123 | package hackerRank;
import java.util.*;
public class ArrayRotation {
private static Scanner sc;
public static void main(String[] args) {
int n,k;
sc = new Scanner(System.in);
System.out.print("Enter the size of array: ");
n = sc.nextInt();
int[] a = new int[n];
System.out.print("Enter th... | 22.019608 | 70 | 0.548531 |
f04c6c772740eeb4eb23655af71818d5f3024313 | 51 | public enum DiceType {D4, D6, D8, D10, D12, D20}
| 12.75 | 48 | 0.647059 |
0d2041dfe35c67043586c29e7fbeda809f57ca16 | 2,017 | /*
* Copyright 2012 Roman Kashitsyn
*
* 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... | 32.015873 | 81 | 0.711453 |
00b437e8d575f2769e4cc3d29694c13c956a7178 | 1,333 | package org.jsets.shiro.listener;
import java.util.Date;
import javax.servlet.ServletRequest;
public interface AuthListener {
/**
* 登录成功
* @param request http请求
* @param account 账号
*/
void onLoginSuccess(ServletRequest request,String account);
/**
* 登录失败
* @param request http请求
* @p... | 19.895522 | 99 | 0.660915 |
f8ab0134b86cda751b1a4c1fa7393c76bfe3399f | 3,942 | // ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
pa... | 33.692308 | 152 | 0.667935 |
57b3acb63723af91800819dc3da965fae31c1088 | 2,062 | package de.xxschrandxx.awm;
import java.util.logging.Level;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
import de.xxschrandxx.api.minecraft.message.*;
import de.xxschrandxx.api.minecraft.*;
import de.xxschrandxx.awm.menus.*;
public class AsyncWorldManagerGUI extends JavaPlugin {
private s... | 24.843373 | 85 | 0.716295 |
31deac3f4ed6abcaf10aa588e13056fb85ee11e4 | 543 | package org.nico.cat.server.exception;
public class BaseRuntimeException extends RuntimeException{
private static final long serialVersionUID = 1L;
public BaseRuntimeException() {
super();
}
public BaseRuntimeException(String arg0, Throwable arg1, boolean arg2, boolean arg3) {
super(arg0, arg1, arg2, arg3);... | 18.724138 | 87 | 0.744015 |
8783cbd8c0d253146a05e5ae0bf3b5214cf32131 | 1,044 | package com.gitrust.fopexample;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import org.junit.Test;
import org.xml.sax.SAXException;
import javax.xml.transform.TransformerException;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.uti... | 26.769231 | 129 | 0.677203 |
df92c711b190538fce163a3ab11b6688f4f708a3 | 4,930 | /*
* Copyright 2010-2011 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "lice... | 42.136752 | 109 | 0.71643 |
44dcdb18f17f5fb78ceeb204442564540aa1e47a | 1,306 | package com.amazon.aws.freertosandroid;
import android.bluetooth.BluetoothDevice;
import java.util.Objects;
public class BleDevice {
String name;
String macAddr;
private BluetoothDevice mBluetoothDevice;
public BleDevice(String name, String macAddr, BluetoothDevice bluetoothDevice) {
this.na... | 23.321429 | 84 | 0.647014 |
6f56742cdd201330a57b82a6d6fc851e7c962afb | 6,012 | /*
* Copyright 2005 Joe Walker
*
* 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... | 31.978723 | 135 | 0.658683 |
3b2c77a4f333514d5c0538f743d1a202bc2bb00a | 438 | package com.jlfex.hermes.repository.asset;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;
import com.jlfex.hermes.model.yltx.Asset;
/**
* 理财产品
* @author Administrator
*
*/
@R... | 25.764706 | 104 | 0.812785 |
04de81b1f38a0c5d950e5368ae71145024ae9d8f | 4,172 | /*
* Copyright 2011-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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 29.8 | 111 | 0.619367 |
0cb7bfc9af72733468fc1aa72b8726aa3485fbc2 | 866 | package com.houarizegai.abstractfactory;
public class AbstractFactoryPatternDemo {
public static void main(String[] args) {
// Get shape factory
AbstractFactory shapeFactory = FactoryProducer.getFactory("shape");
// Get an object of shape circle
Shape shape1 = shapeFactory.getShape(... | 27.935484 | 75 | 0.635104 |
9e62908982bee4b959826d3a8847e249ab779467 | 16,755 | ///////////////////////////////////////////////////////////////////////////////
// Filename: $RCSfile: APropertyBFS.java,v $
// Purpose: Atom pair descriptor.
// Language: Java
// Compiler: JDK 1.4
// Authors: Joerg Kurt Wegner
// Version: $Revision: 1.10 $
// $Date: 2005/02/17 16:48:28 $
// ... | 32.34556 | 113 | 0.504029 |
e85b23183f4bb01210bf8fb3c5f40d88b44114af | 516 | package vip.incolor;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
/**
* @author JimLin
* @email leafyunjim@gmail.com
* @description
* @date 2018-03-18
* @time 14:26
*/
public class ServletInitializer extends SpringBoo... | 25.8 | 88 | 0.782946 |
71f741eb46354c9994847b251bca26fca0c46d80 | 34,435 | /*
* Developed by szczypiorofix on 09.09.18 00:04.
* Copyright (c) 2018. All rights reserved.
*
*/
package com.szczypiorofix.sweetrolls.game.main.states;
import com.szczypiorofix.sweetrolls.game.enums.CharacterRace;
import com.szczypiorofix.sweetrolls.game.enums.CharacterSex;
import com.szczypiorofix.sweetrolls.g... | 56.174551 | 204 | 0.524147 |
2e6ba8fceff69945cc12fd01e1157a289cb3be0c | 1,465 | package com.hclz.pojo;
import java.sql.Date;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
public class AuthorMsg {
private Integer authorId;
private String authorName;
private String authorPhoto;
@DateTimeFormat( pattern = "yyyy-M... | 22.19697 | 106 | 0.675768 |
1506724d753cd85d83c504279c7d9fd7c357d3fc | 5,254 | /**
* The MIT License
* Copyright (c) 2018 Estonian Information System Authority (RIA),
* Nordic Institute for Interoperability Solutions (NIIS), Population Register Centre (VRK)
* Copyright (c) 2015-2017 Estonian Information System Authority (RIA), Population Register Centre (VRK)
*
* Permission is hereby grante... | 33.679487 | 104 | 0.648458 |
009025655825cbfba00c54811a54cc3f259b0634 | 519 | package org.endeavourhealth.core.database.dal.datasharingmanager.models;
public class JsonOrganisationCCG {
private String odsCode = null;
private String ccgName = null;
public JsonOrganisationCCG() {
}
public String getOdsCode() {
return odsCode;
}
public void setOdsCode(String ... | 19.961538 | 72 | 0.653179 |
4c92e01a1cef4e2910151a4b8e8ba5aefd6919cb | 2,941 | package com.xiaojukeji.kafka.manager.bpm.common.entry.detail;
import com.xiaojukeji.kafka.manager.common.entity.ao.topic.TopicConnection;
import java.util.List;
/**
* @author zhongyuankai
* @date 20/5/19
*/
public class OrderDetailDeleteTopicDTO extends AbstractOrderDetailData {
private String appId;
pri... | 25.353448 | 75 | 0.642299 |
816e800c88d2b505f85b2aa775ab2d6b69616690 | 3,697 | package org.etg.nirc.net.event;
import org.etg.nirc.net.event.events.MOTDEvent;
import org.etg.nirc.net.event.events.KickEvent;
import org.etg.nirc.net.event.events.TopicEvent;
import org.etg.nirc.net.event.events.MessageEvent;
import org.etg.nirc.net.event.events.PartEvent;
import org.etg.nirc.net.event.events.ModeEv... | 27.589552 | 63 | 0.703002 |
6b56b9e66397652c4a734279071df063494540d0 | 708 | package gamePlayer;
import java.util.HashMap;
import javafx.scene.control.ProgressBar;
import javafx.scene.shape.Circle;
public class MapHolder {
private HashMap<Double, MapUnit> myImageMap;
private HashMap<Double, ProgressBar> myHealthMap;
private HashMap<Double, Circle> myTowerRangeMap;
public MapHolder(){
... | 22.83871 | 52 | 0.759887 |
145bf2db49c2942bbb3e66cdd522cc020f4471c0 | 6,248 | /*
* Copyright 2015 Adaptris Ltd.
*
* 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 agree... | 35.299435 | 127 | 0.721831 |
8a5f2625c26b49b89c2861284755fb1ee7711766 | 535 | package com.Alpaca.forum.service;
import java.util.List;
import com.Alpaca.forum.entities.DiscussionGroup;
import com.Alpaca.forum.entities.Post;
import com.Alpaca.forum.entities.User;
public interface PostService {
public List<Post> findAll();
public Post findById(int theId);
public void save(Post thePost)... | 18.448276 | 74 | 0.783178 |
ca230857ba7674f6c5b47fd141750ca620349b5d | 791 | package gameobject.basics;
import engine.physicsStrategies.NullVelocityStrategy;
import gameobject.Basics;
import gameobject.component.Animation;
import gameobject.component.Attack;
import gameobject.component.Generator;
import gameobject.component.type.ComponentTypes;
@SuppressWarnings("serial")
public class Weapon ... | 30.423077 | 98 | 0.777497 |
4011aa194c569128dd8b181dff48a6ee8c9c8a04 | 7,709 | package com.example.airdrop;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widg... | 36.885167 | 133 | 0.537424 |
07d7b5ae618cb97be528a979cb5b1d305f5fa225 | 6,063 | package com.eloquentbit.taskee.adapters;
import android.graphics.Paint;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CheckBox;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.wid... | 36.089286 | 102 | 0.634999 |
eb8ba04f0782a933a186fea95c5c29e79778e2d9 | 16,188 | package com.islandstudio.neon.Stable.New.features.iWaypoints;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.islandstudio.neon.Stable.New.features.GUI.Initialization.GUIUtilityHandler;
import com.islandstudio.neon.Stable.New.Initialization.FolderManager.FolderList;
import com.islandstudio.... | 41.19084 | 274 | 0.548493 |
1ef1ad919b85b6e8e88fc185fea84efc274ad9d7 | 1,142 | package GtsSoftware.actividad;
import java.util.Vector;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import GtsSoftware.general.CoAccion;
import GtsSoftware.general.CoException;
publ... | 31.722222 | 133 | 0.778459 |
786d60ecd043b8a97944020149826d0e3e9c4d80 | 421 | package cz.zcu.kiv.mobile.logger.utils;
import android.content.Context;
import android.widget.Toast;
public class AndroidUtils {
private AndroidUtils() {}
public static void toast(Context context, String text) {
Toast.makeText(context, text, Toast.LENGTH_LONG).show();
}
public static void toa... | 21.05 | 61 | 0.71734 |
006f7f507e68587d911f555a7fb758bdbaa4016f | 3,956 | package ovh.adiantek.hatari.mods;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.Serializable;
import java.util.ArrayList;
import javax.swing.JComponent;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
impo... | 27.664336 | 83 | 0.718908 |
c0160775a718c0b54c98af025609468783443a44 | 992 | /**
* Copyright (c) 2019-present Acrolinx GmbH
*/
package com.acrolinx.client.sdk.platform;
import java.util.List;
public class CustomFieldDescriptor
{
private String key;
private String displayName;
private String inputType;
private String type;
private List<String> possibleValues;
public... | 18.716981 | 95 | 0.628024 |
88a409dc0c2ccc445e2f18bd829f58e980d87135 | 1,388 | package com.york.sdp518;
import com.york.sdp518.service.MavenInvoker;
import org.mockito.Mock;
import org.neo4j.ogm.config.Configuration;
import org.springframework.boot.test.context.TestConfiguration;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.context.annotation.Bean;
impor... | 26.692308 | 77 | 0.697406 |
96622e754e27019bd5f890df9a4121fbee7f3d0d | 901 | package com.streaming.analytics.content.statistics.infrastructure.repository;
import com.streaming.analytics.content.datastream.domain.Datastream;
import com.streaming.analytics.content.statistics.domain.Statistics;
import com.streaming.analytics.content.statistics.infrastructure.repository.port.SearchStatisticsPort;
... | 34.653846 | 102 | 0.830189 |
fcfc44d3a527944dadd63f8b97c683c13d20f308 | 1,118 | package com.mopub.common;
import android.content.Context;
import android.net.Uri;
import com.mopub.common.util.Intents;
import com.mopub.exceptions.IntentNotResolvableException;
/* 'enum' access flag removed */
/* renamed from: com.mopub.common.D */
/* compiled from: UrlAction */
class C11223D extends UrlAction {
... | 39.928571 | 269 | 0.718247 |
14bb8fed3c20454788b0aaad82b193e4cf93a61c | 2,745 | package hszanne.mybatis.paging.utils;
import java.util.ArrayList;
import java.util.List;
import org.apache.ibatis.mapping.MappedStatement;
import org.apache.ibatis.mapping.ResultMap;
import org.apache.ibatis.mapping.ResultMapping;
import org.apache.ibatis.mapping.SqlSource;
public class MappedStatementUtil {
pri... | 36.6 | 114 | 0.618215 |
927fd9f93439b2dd2ab23837898b03d115e0e74d | 3,211 | package pl.sda.training.management.app.api.service;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.junit.jupiter.MockitoExtension;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework... | 33.447917 | 103 | 0.681408 |
0a33b892cc26d311ff5810bac3c100aa52cfd493 | 2,721 | /*
Copyright 2017-2021 IBM Corp 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 l... | 25.914286 | 187 | 0.653804 |
a23a5dc43893bd38d4dd2d6f1ed41136e0d9ffd4 | 19,409 | package me.lerch.alexa.morse.skill.utils;
import com.amazon.speech.slu.Intent;
import com.amazon.speech.speechlet.Session;
import com.amazon.speech.speechlet.SpeechletResponse;
import com.amazon.speech.ui.*;
import java.io.IOException;
import java.util.List;
import java.util.Random;
/**
* Created by Kay on 22.05.20... | 50.282383 | 199 | 0.695502 |
c03b1df1285ed93777c8ebb4cb4e7e1a5469156f | 5,329 | /*
* This file is part of the Joshua Machine Translation System.
*
* Joshua is free software; you can redistribute it and/or modify it under the terms of the GNU
* Lesser General Public License as published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version... | 33.942675 | 100 | 0.674986 |
9d325051441c7cf5c0d5080d4a9a0b1bacb2e5b4 | 230 | package slogo.frontend.buttons;
public class TurnRight extends ButtonSuper{
public TurnRight(String s) {
super(s);
}
@Override
public void setDesign() {
}
public void setID() {
ID = ButtonSuper.RIGHT;
}
}
| 14.375 | 43 | 0.665217 |
2e0eeec3e4ce212d4db2b200fbaeb109785f1338 | 2,108 | package de.dm.intellij.liferay.language.velocity;
import com.intellij.psi.PsiElement;
import com.intellij.velocity.psi.VtlLightVariable;
import com.intellij.velocity.psi.files.VtlFile;
import de.dm.intellij.liferay.util.Icons;
import org.jetbrains.annotations.NotNull;
import javax.swing.*;
import java.util.Comparator... | 30.550725 | 133 | 0.676945 |
69d918479d481127d2021f4207f534404248f656 | 728 | package co.astrnt.demosdk.dao;
public class VideoInfo {
private int width;
private int height;
private int bitrate;
public VideoInfo(int width, int height, int bitrate) {
this.width = width;
this.height = height;
this.bitrate = bitrate;
}
public VideoInfo() {
}
... | 17.333333 | 58 | 0.576923 |
129ad6511c193ae5d0aee375255f5afe5293c110 | 618 | package uz.com.journal.app.subject;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import uz.com.journal.core.NonDeletableService;
import uz.com.platform.app.users.User;
public interface SubjectService extends NonDeletableService<Subject> {
Page<Subject> findPage(Su... | 34.333333 | 110 | 0.807443 |
ac9eb8094cb79afd151627a8ff3a4c0e049c2661 | 4,831 | package com.rbkmoney.analytics.listener;
import com.rbkmoney.analytics.AnalyticsApplication;
import com.rbkmoney.analytics.dao.repository.postgres.PostgresBalanceChangesRepository;
import com.rbkmoney.analytics.utils.KafkaAbstractTest;
import com.rbkmoney.clickhouse.initializer.ChInitializer;
import com.rbkmoney.damse... | 42.008696 | 110 | 0.679155 |
8d6e54a322fb96ac1a13235b645c07949d3c9ec2 | 522 | package com.fincatto.documentofiscal.nfe400.transformers;
import com.fincatto.documentofiscal.nfe400.classes.nota.NFMeioPagamento;
import org.simpleframework.xml.transform.Transform;
public class NFMeioPagamentoTransformer implements Transform<NFMeioPagamento> {
@Override
public NFMeioPagamento read(final St... | 30.705882 | 79 | 0.779693 |
c79de881550edfdadf8e382588bb3a1400cf42b4 | 2,187 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 35.852459 | 90 | 0.718793 |
583055950f8609dea696743bd02856208344f4cd | 815 | /*
* Copyright (c) 2018-2021 Tobias Briones. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
* This file is part of Losnot in Paradise.
*
* This source code is licensed under the BSD-3-Clause License found in the
* LICENSE file in the root directory of this source tree or at
* https://opensour... | 22.027027 | 75 | 0.657669 |
2ed355ebac3968c2cd50ef3be50d16f478955240 | 6,353 | package com.xy.memo.cell;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.text.Spanned;
import android.text.TextUtils;
import android.text.style.ImageSpan;
import android.view.LayoutInflater;
... | 38.50303 | 140 | 0.612309 |
b8467b0f403b437a47cbaef1dc405770b82afcc8 | 1,029 | package com.apnidukaan.dbconnection;
import java.sql.Connection;
import java.sql.DriverManager;
public class DBConnection {
public static Connection getConnection()
{
Connection con = null;
try
{
// Class.forName("com.mysql.cj.jdbc.Driver");
Class.forName("com.mysql.jdbc.Driver");
c... | 23.386364 | 142 | 0.656948 |
6575d0296414a37d683334e54196640091484470 | 1,413 | /*
* This file is part of the Joshua Machine Translation System.
*
* Joshua is free software; you can redistribute it and/or modify it under the terms of the GNU
* Lesser General Public License as published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version... | 37.184211 | 100 | 0.731776 |
56df7df3f2965ef890dd02edd4c50ac0460ea1d4 | 6,957 | package com.ecrm.Controller;
import com.ecrm.DAO.Impl.ScheduleConfigDAOImpl;
import com.ecrm.Entity.TblScheduleConfigEntity;
import com.ecrm.Utils.Utils;
import org.apache.poi.hssf.usermodel.HSSFCellStyle;
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
import org.apache.poi.ss.usermodel.*;
... | 45.470588 | 183 | 0.602846 |
f8c7804624b799512f483fea1cc19df198d8b6f1 | 276 | package com.study.jpkc.mapper;
import com.study.jpkc.entity.Exam;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* Mapper 接口
* </p>
*
* @author isharlan.hu@gmail.com
* @since 2021-04-30
*/
public interface ExamMapper extends BaseMapper<Exam> {
}
| 16.235294 | 55 | 0.702899 |
0fc20c77e13bd8562d7662b978ff9409bb73a96a | 445 | package xyz.vsngamer.rocketboots;
import net.minecraftforge.fml.common.Mod;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import xyz.vsngamer.rocketboots.net.NetworkManager;
@Mod(RocketBoots.ID)
public class RocketBoots {
public static final String ID = "rocketboots";
pu... | 24.722222 | 63 | 0.755056 |
73396470a34798c707e31bf6a34d7898455e94e1 | 6,680 | //* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
// The HoconValue.java is a part of project utopia, under MIT License.
// See https://opensource.org/licenses/MIT for license information.
// Copyright (c) 2021 moe-org All rights reserved.
//* * * * * * * * * * * * * * * * * * * * * * * * * * ... | 27.717842 | 92 | 0.554192 |
1d1058e7dc056cb8e50f08105bdebbcaaae9ba17 | 885 | package org.geekbang.thinking.in.spring.annotation;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
/**
* spring 注解属性覆盖示例
*/
@MyComponentScan2(packages = "org.geekbang.thinking.in.spring.annotation")
public class AttributeOverridesDemo {
public static void main(String[] args) {
... | 28.548387 | 90 | 0.734463 |
95204506ad93bd95a3211fb4356b0cd8d0b195a2 | 4,815 | /**
*
* Copyright 2011 (C) Rainer Schneider,Roggenburg <schnurlei@googlemail.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.... | 41.869565 | 162 | 0.70675 |
0731c6a80089a625bd11a5253f0a220584e5c6df | 9,619 | package com.hearthsim.util.tree;
import com.hearthsim.card.Card;
import com.hearthsim.card.CharacterIndex;
import com.hearthsim.card.minion.*;
import com.hearthsim.model.BoardModel;
import com.hearthsim.model.PlayerSide;
import com.hearthsim.player.playercontroller.BoardScorer;
import com.hearthsim.util.HearthAction;
... | 32.829352 | 149 | 0.634473 |
6425df9f34174ab59c3e3d5cc0e79002e815d12e | 10,685 | /*
* 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 ... | 31.24269 | 173 | 0.641834 |
9253d7564c112a93f45123babbb9d137f3a50107 | 2,579 | /*
* 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
* "Lic... | 26.587629 | 96 | 0.669639 |
387ebd3a7947fcd6efb6e252f0951ed97b0a767e | 14,711 | /*
* JBoss, Home of Professional Open Source
* Copyright 2012, Red Hat Middleware LLC, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not us... | 38.611549 | 120 | 0.596017 |
495e883f4049f0a36c330a1f621a7bf2a623b4aa | 7,852 | package net.worldwizard.worldz;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Vector;
import net.worldwizard.io.ResourceStreamReader;
import net.worldwizard.worldz.world.Extension;
public class PluginRegistr... | 39.26 | 121 | 0.480387 |
043c9c342a978da4d243ad026be2ca458ea5a05d | 2,260 | package com.yumodev.arch.room;
import android.arch.persistence.room.Delete;
import android.util.Log;
import android.view.View;
import android.widget.AutoCompleteTextView;
import android.widget.EditText;
import com.yumo.demo.view.YmTestFragment;
import com.yumodev.arch.Define;
import com.yumodev.arch.R;
import java.u... | 30.540541 | 92 | 0.626549 |
9e0f85de9ea442d1f9ad26b386e3bab459b0ba83 | 2,746 | package dev.elexi.hugeblank.bagels_baking.compat.rei.fermenting;
import dev.architectury.utils.NbtType;
import dev.elexi.hugeblank.bagels_baking.compat.rei.Plugin;
import dev.elexi.hugeblank.bagels_baking.recipe.FermentingRecipe;
import me.shedaniel.rei.api.common.category.CategoryIdentifier;
import me.shedaniel.rei.a... | 36.613333 | 155 | 0.707939 |
652c750ac5a08ecb93ce3acdf1f75bad8479fa20 | 5,045 | package com.distkv.asyncclient;
import com.distkv.rpc.protobuf.generated.DistkvProtocol;
import com.distkv.rpc.protobuf.generated.DistkvProtocol.RequestType;
import com.distkv.rpc.protobuf.generated.ListProtocol;
import com.distkv.rpc.service.DistkvService;
import com.google.protobuf.Any;
import java.util.List;
impor... | 35.780142 | 98 | 0.724281 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.