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 |
|---|---|---|---|---|---|
28ebc5cc9b9c07b9ffa01f075a9e5eaf1a77f6c0 | 263 | package com.football.fcbayern.mapper;
import com.football.fcbayern.model.ProfileAttachModel;
import java.util.List;
public interface ProfileAttachMapper {
int insert(ProfileAttachModel profileAttachModel);
List<ProfileAttachModel> getAttachList();
}
| 20.230769 | 54 | 0.806084 |
8a1bcc1d2d69a5862c0af71681844ec6e94b812b | 2,917 | package com.react.contabil.dao;
import com.react.contabil.dataobject.ValorDO;
import com.react.contabil.excecao.BancoDadosException;
import com.react.contabil.util.Util;
import org.slf4j.Logger;
import javax.ejb.Stateless;
import javax.inject.Inject;
import javax.persistence.Query;
import javax.validation.Valid;
impo... | 38.381579 | 84 | 0.602674 |
856b3219bc6decd4b139ebc4a940aecacc47a18f | 4,232 | /*
* BSD 3-Clause License
* Copyright (c) 2017, Leland McInnes, 2019 Tag.bio (Java port).
* See LICENSE.txt.
*/
package tagbio.umap;
import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.LineNumbe... | 30.666667 | 103 | 0.641541 |
49445c3f6a28690b25131aca3a203c16d20d9bff | 1,457 | package com.mitrichev.service.impl;
import com.mitrichev.exception.PlaneOrderException;
import com.mitrichev.service.PlaneOrderService;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
/**
* ... | 22.765625 | 74 | 0.679478 |
949222d697606df8ecc394311afa9c66f1dbaddc | 2,851 | package com.hbm.blocks.machine;
import com.hbm.tileentity.conductor.TileEntityCable;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.world.IBlockAccess;
import ne... | 34.349398 | 129 | 0.610663 |
b4973f3aa8bb839d4c7de57554a650520ded5026 | 3,301 | package joeltio.pulse;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.design.widget.BottomNavigationView;
import android.support.v7.app.AppCompatActivity;
import android.view.MenuItem;
import android.view.WindowManager;
import joeltio.pulse.F... | 33.683673 | 91 | 0.645865 |
39134a7c17960abd5ec5a15c3fa43fcf54c64318 | 244 | package pass.regular;
import pass.PassUtil;
import pass.model.AnAbstractPassModel;
public class ARegularPassModel extends AnAbstractPassModel{
@Override
public Boolean isPass() {
return PassUtil.regularPass(getTotalScore());
}
}
| 24.4 | 60 | 0.77459 |
15ba2e0d3a5c0c81c3b26b92c3647717c2685b30 | 1,282 | package bgp.core.messages.pathattributes;
import bgp.core.messages.NotificationMessage.UpdateMessageError;
import bgp.core.messages.notificationexceptions.UpdateMessageException;
public class Origin extends PathAttribute {
private final int originValue;
/**
*
* @param originValue
* The Origin attribute c... | 23.309091 | 81 | 0.727769 |
9c8fbbcc4fe6358ae09d4ea170980b5d56aef887 | 10,541 | /*
* Copyright 2013 MovingBlocks
*
* 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... | 47.269058 | 164 | 0.687601 |
228332cfd3a935a3d414dc6288f4e8f1b2ea1bcd | 4,538 | /*
* Copyright 2013-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 33.124088 | 94 | 0.760908 |
e21cd5ad7f84fc95de601cf66a2ddb7841ed67ea | 581 | package party.lemons.lklib.util.instrument;
import net.minecraft.block.BlockState;
import net.minecraft.sound.SoundEvent;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
public class BlockStateNoteInstrument extends NoteInstrument{
private final BlockState state;
public BlockStateN... | 27.666667 | 88 | 0.752151 |
27eb57782b73c0b6394ded83014e13f7ed9c47dc | 891 | package net.fabricmc.gauze.mixin;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityType;
import net.minecraft.entity.mob.PathAwareEntity;
import net.minecraft.util.math.Vec3d;
import net.minecraft.world.World;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
imp... | 31.821429 | 67 | 0.739618 |
a2b6244fd64a575a1a517a61511a1679dd0ce616 | 5,243 | /*
* This file is generated by jOOQ.
*/
package codes.foobar.wedapp.jooq.tables;
import codes.foobar.wedapp.jooq.DefaultSchema;
import codes.foobar.wedapp.jooq.Indexes;
import codes.foobar.wedapp.jooq.Keys;
import codes.foobar.wedapp.jooq.tables.records.AccommodationRecord;
import java.time.OffsetDateTime;
import j... | 27.025773 | 260 | 0.657448 |
9d779f9f547d38d80692cdfa2118d103e93c9e74 | 661 | package net.lainiao.dicom.scp.service;
import net.lainiao.dicom.scp.dao.SeriesMapper;
import net.lainiao.dicom.scp.entity.Series;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;
@Service
public class S... | 28.73913 | 62 | 0.765507 |
7984c173695dc53b32c40e986018ce34da5ccff7 | 4,692 | 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 ... | 18.4 | 810 | 0.821824 |
b770f5020119029b0fc74289436e0e5ff127be55 | 677 | package com.liumapp.demo.docker.webb.controller;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* Created by liumapp... | 26.038462 | 68 | 0.732644 |
cbc90f790c23b5575e075d887b3fdd4ed3106acd | 3,107 | /**
* Copyright 2014, 2015, Yahoo, Inc.
*
* 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 Licens... | 37.890244 | 104 | 0.710653 |
9d4a868f4a637dc0afa6ea77d1fdd701c76c6b89 | 1,960 | import java.util.Scanner;
public class SecretChat {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
StringBuilder message = new StringBuilder(scanner.nextLine());
String input = scanner.nextLine();
while (!input.equals("Reveal")) {
St... | 33.793103 | 93 | 0.531633 |
f8b712f57a0de28a612c96a76231113135d74913 | 872 | package plow.libraries.serializer;
import java.lang.reflect.Type;
import plow.model.Playlist;
import plow.model.Track;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonSerializationContext;
import com.google.gson.JsonSerializer;
publ... | 29.066667 | 113 | 0.770642 |
6b9bb0e71177939d1a970420d16f1faf567ec348 | 943 | package bwapi;
import org.junit.Test;
import java.lang.reflect.*;
import java.util.*;
import static org.junit.Assert.assertEquals;
/**
* Reads all arrays
*/
public class TechTypeTest {
@Test
public void testArraySizes() throws IllegalAccessException {
int expectedSize = 1 + Arrays.stream(TechTyp... | 26.942857 | 120 | 0.650053 |
aeee292095dc974712f9e783270a98b96f478e5c | 934 | package kerio.connect.admin.delivery;
public class Pop3Sorting {
String id;
boolean isActive;
String sortAddress;
String deliverTo;
String description;
public Pop3Sorting() {
}
public String getId() {
return id;
}
public void setId(String id) {
th... | 16.678571 | 50 | 0.653105 |
1498c8b0c1988fd48429053756eeadc658e5ec34 | 1,906 | /*
* 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... | 30.253968 | 75 | 0.701469 |
933031258cd8df627396f555f5c629b0a66dbe9b | 1,730 | /**
* Copyright 2013 Woutly
*
* 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... | 30.892857 | 103 | 0.73815 |
cc8063076929407e653d2e602e2a387582fb22bf | 515 | package com.tpay.common.aspect;
/**
* @author tuyong
* @version 1.0
* @desc 获取数据源
* @create 2018-03-26 9:10
**/
public class HandleDataSource {
private static final ThreadLocal<String> dataSourceHolder = new ThreadLocal<String>();
public static void putDataSource(String dataSource){
dataSourceHo... | 18.392857 | 90 | 0.667961 |
29e5a9580c98275540b16164e3ef5923fa9e3d13 | 1,871 | package me.hii488.volcanoRush.items;
import me.hii488.handlers.ContainerHandler;
import me.hii488.misc.Grid;
import me.hii488.misc.Settings;
import me.hii488.registries.EntityRegistry;
import me.hii488.volcanoRush.dataTypes.DeathCause;
import me.hii488.volcanoRush.objects.tiles.AirTile;
public class ItemHardHat exten... | 42.522727 | 243 | 0.761625 |
964606764dd85a0db68eb1bb0703964dd01005d2 | 1,290 | package org.dbhaskaran.dto;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
@Entity
public class Owner {
@Id
@GeneratedVal... | 18.695652 | 99 | 0.720155 |
0ef56f4af632830c44b53d94b1476dc6b4026497 | 6,988 | /*
* JavaSMT is an API wrapper for a collection of SMT solvers.
* This file is part of JavaSMT.
*
* Copyright (C) 2007-2016 Dirk Beyer
* 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 ... | 36.778947 | 105 | 0.755152 |
937377d33fd2ef4d60d9d6fc5eac53871d1a02df | 2,662 | package org.jolokia.detector;
/*
* Copyright 2009-2013 Roland Huss
*
* 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 re... | 40.953846 | 119 | 0.74305 |
90567def44b1bba005e1442626333f9e4167b73f | 1,377 | package com.exp.spike.service;
import com.exp.spike.dao.MiaoshaUserDao;
import com.exp.spike.domain.MiaoshaUser;
import com.exp.spike.redis.MiaoshaUserKey;
import com.exp.spike.util.RedisUtil;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annota... | 24.589286 | 89 | 0.705156 |
1c6c6055740fbc046b97e691b04ef0c4ad89f772 | 6,901 | /**
* Copyright (c) 2017, Wasiq Bhamla.
*
* 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... | 39.210227 | 88 | 0.729749 |
e9b0395c2c0c9425bf8c3b34c9e2c0bfd3f7e5ca | 13,742 | /*
* Copyright 2022 ViiSE
*
* 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 wri... | 30.202198 | 201 | 0.451172 |
f3e9c627bf1116859364fc45be503f43b978fbbd | 1,108 | package org.musicbrainz.filter;
import java.util.HashMap;
import java.util.Map;
public class DiscTocFilterWs2 implements FilterWs2
{
private String toc;
private Boolean cdStub=true;
public DiscTocFilterWs2() {
}
@Override
public Map<String, String> createParamete... | 18.163934 | 65 | 0.509025 |
aba9d976c32864c7b9597101c417f1725b4f017d | 5,249 | /**
* This class was created by <WireSegal>. It's distributed as
* part of the Quark Mod. Get the Source Code in github:
* https://github.com/Vazkii/Quark
* <p>
* Quark is Open Source and distributed under the
* CC-BY-NC-SA 3.0 License: https://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_GB
* <p>
* File C... | 31.059172 | 109 | 0.733854 |
87b60cd494a63c7a38ec36c42c582eac57960b42 | 9,425 | package de.rub.bi.inf.baclient.core.views.bcf;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.OutputStream;
import j... | 37.400794 | 115 | 0.655809 |
df68c67334f2d4703d013f229427c7cc27921c32 | 1,315 | package com.qr.scan.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qr.scan.entity.Camera;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframe... | 38.676471 | 102 | 0.714068 |
ac96f76388132e36d62187c519f48f38835e3d62 | 482 | package tech.kononenko.leetcode;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.*;
class ClimbingStairsTest {
private ClimbingStairs subject;
@BeforeEach
public void setUp() {
subject = new ClimbingStairs();
}
@... | 21.909091 | 56 | 0.697095 |
e35873a7c4fd65a1adc56496db2aa2cd45ec10e2 | 726 | package com.kirago.chapter24.entity;
public class RolePermisson {
private Long id;
private String url;
private String rolename;
private String desription;
public void setId(long id){
this.id = id;
}
public Long getId() {
return id;
}
public void setUrl(String url)... | 17.707317 | 49 | 0.603306 |
b7fe9b1a98c0477571151f9cda5914563a5efe44 | 186 | package seedu.address.model.game.exceptions;
/**
* Signals that the operation is unable to find the specified game.
*/
public class GameNotFoundException extends RuntimeException {
}
| 23.25 | 67 | 0.784946 |
2134995a8d6a0ae788ee29e617bcaa9797796866 | 5,493 | package net.christophe.genin.domain.monitor.addon.http;
import io.vertx.core.AsyncResult;
import io.vertx.core.Handler;
import io.vertx.core.Vertx;
import io.vertx.core.buffer.Buffer;
import io.vertx.core.eventbus.DeliveryOptions;
import io.vertx.core.eventbus.Message;
import io.vertx.core.json.JsonArray;
import io.ve... | 28.314433 | 120 | 0.574914 |
c182ed6502b73e60fa91e0cd126cf63bf353fffd | 7,380 | /*
* 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 ... | 44.191617 | 135 | 0.66206 |
9d62bc953ded6e16fc1eb2c61ae2485a240f2a62 | 5,979 | /*
* 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 Controller;
import model.List3;
import java.io.IOException;
import java.net.URL;
import java.sql.Connection;
import java.sql.P... | 28.471429 | 104 | 0.626192 |
9fd5368e993891c0b9677b5e605106ae5df84d0c | 5,149 | package PrivSyn_Demo.SynDataGeneration;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import PrivSyn_Demo.SynDataGeneration.Record;
/**
* @author Mingchen Li
* May 11, 2021
*... | 26.270408 | 108 | 0.641678 |
ad4c322feda3ff7c52515b1f5768a6a3cae6b342 | 6,367 | package com.example.tests;
public class ContactData implements Comparable<ContactData>{
public String id;
public String firstname;
public String lastname;
public String address;
public String homephone;
public String mobilephone;
public String workphone;
public String email1;
publi... | 23.494465 | 249 | 0.572169 |
9c32bcde8aa2cea2e97951480324fd53459e2e32 | 1,259 | package com.ternsip.glade.universe.parts.items;
import com.ternsip.glade.universe.entities.impl.EntityPlayerServer;
import com.ternsip.glade.universe.parts.tools.Schematic;
import lombok.Getter;
import lombok.Setter;
import org.joml.Vector3i;
import org.joml.Vector3ic;
import java.io.File;
@Getter
@Setter
public cla... | 29.27907 | 132 | 0.624305 |
dafb8ec51ba8e3ed2643c5ef33f5efaa9dca484f | 2,266 | package br.jus.trf2.siga.ex.api;
import com.crivano.swaggerservlet.PresentableUnloggedException;
import br.gov.jfrj.siga.dp.DpLotacao;
import br.gov.jfrj.siga.dp.DpPessoa;
import br.gov.jfrj.siga.ex.ExDocumento;
import br.gov.jfrj.siga.ex.ExMobil;
import br.gov.jfrj.siga.ex.bl.Ex;
import br.gov.jfrj.siga.persistencia... | 31.041096 | 70 | 0.718888 |
449267d191bb6f42fe44da87ac1399c22607c238 | 4,511 | /*
* Copyright 2017 EpochArch.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 applicable law or agreed t... | 37.907563 | 123 | 0.653957 |
c1ebaeba3536af72076d86d1f27e5ff9c2505f1d | 17,924 | package com.joestelmach.natty;
import junit.framework.Assert;
import org.apache.log4j.Level;
import org.junit.BeforeClass;
import org.junit.Test;
import java.text.DateFormat;
import java.util.*;
import java.util.Map.Entry;
/**
* Runs the parser through the various date formats
*
* @author Joe Stelmach
*/
publi... | 43.823961 | 113 | 0.658 |
051b1a435727f81cc8a96221bdb741620bb5d8ea | 874 | package com.accenture.spm.thread;
public class ThreadDownloader extends Thread {
private String url;
private String name;
public ThreadDownloader(String url, String name) {
this.url = url;
this.name = name;
}
@Override
public void run() {
WebDownloader wd = new WebDownloader();
wd.download(url, name)... | 28.193548 | 162 | 0.743707 |
65081f1b5e30e69980d32f409ca22ad524713058 | 2,876 | package org.hbird.core.xtce;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import java.net.URL;
import org.hbird.core.commons.tmtc.exceptions.UnknownParameterException;
import org.hbird.core.spacesystemmodel.SpaceSystemModel;
imp... | 33.835294 | 103 | 0.812239 |
8935ceec2ac0e6b1962c319c6f2067ac47a51d4c | 699 |
public class Kotka extends Bozaik {
@Override
public String toString() {
return "Kotka [superJump=" + superJump + ", Speed=" + Speed + ", getPoroda()=" + getPoroda() + ", getAge()="
+ getAge() + ", getSice()=" + getSice() + "]";
}
private String superJump;
private int Speed;
public Kotka(String... | 16.255814 | 110 | 0.652361 |
94586dd54aa705a8ec73b6fe34c8c53206f4fd3d | 1,757 | package ua.com.fielden.platform.web.menu.item.impl;
import ua.com.fielden.platform.web.centre.EntityCentre;
import ua.com.fielden.platform.web.custom_view.AbstractCustomView;
import ua.com.fielden.platform.web.menu.item.IModuleMenuConfig2WithDone;
import ua.com.fielden.platform.web.menu.item.IModuleMenuConfig3;
import... | 33.788462 | 102 | 0.752419 |
0b2ec57376eab80b82cdcacd059d0acb05c537cc | 1,818 | package gov.usdot.cv.subscription.datasink.dao;
import gov.usdot.cv.common.subscription.dao.SituationDataFilterDao;
import gov.usdot.cv.common.subscription.dao.SubscriberDao;
import javax.sql.DataSource;
public class DaoManager {
private static SubscriberDao SUBSCRIBER_DAO_INSTANCE;
private static Situati... | 33.666667 | 94 | 0.782728 |
b073bac7d4aabb1962ab8a9ccce0e3027fb3d5be | 1,869 | /*
* 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 com.smatt.cc.models;
import org.bson.types.ObjectId;
import org.mongodb.morphia.annotations.*;
/**
*
* @author smatt
*/
@E... | 18.50495 | 79 | 0.570894 |
25f901a555152404906332f55859f2657d11c8e4 | 59 | package com.warrencrasta.varo;
public class VaroTest {
}
| 9.833333 | 30 | 0.762712 |
7fd5909d1330c015d2fb9a06afba55ac343e4fb9 | 3,241 | package com.nerdcastle.nazmulhasan.calculator;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.EditText;
public class MainActivity extends ActionBarActivity {
public String str ="";
... | 22.506944 | 80 | 0.573588 |
5c0f0f98406cc28411028763b90c3b3cd1c70170 | 1,015 | package cn.mtianyan.file;
import java.io.File;
import java.io.IOException;
public class FileDemo {
public static void main(String[] args) throws IOException {
File directory = new File("");
String pathBase = directory.getAbsolutePath();
// 创建File对象
// File file1 = new File(pathBase+... | 28.194444 | 73 | 0.571429 |
d7e795adb79b7a42c1bd666202f94197be5a2938 | 1,010 | package floobits.dialogs;
import javax.swing.*;
import java.util.List;
public class ShareProjectForm {
private JComboBox orgsComboBox;
private JTextField workspaceNameTextField;
private JLabel JLabel;
private JPanel contentPanel;
private JLabel warningLabel;
public void setWorkSpaceName(Stri... | 24.047619 | 72 | 0.675248 |
23a9bff1cba79e34a5371f296948f6050986af91 | 2,758 | package es.uhu.mp.rpg;
import es.uhu.mp.rpg.character.Character;
import es.uhu.mp.rpg.character.ICharacter;
import es.uhu.mp.rpg.character.Weapon;
import es.uhu.mp.rpg.exception.GameException;
import es.uhu.mp.rpg.exception.SceneException;
import es.uhu.mp.rpg.scene.CombatScene;
import es.uhu.mp.rpg.scene.Option;
impo... | 37.27027 | 138 | 0.639956 |
7d66d7b226dc4d2b70632c29eb4bf464b93a429a | 511 | package javactor.annot;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import javactor.JavactorContext;
import javactor.JavactorContext.SupervisorDirective;
/**
* Marks methods that will handle exceptio... | 28.388889 | 91 | 0.812133 |
f41d49963cdc7d432747541115f5ca15c6fa3abf | 9,690 | /*
* Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) 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
*
* Unles... | 45.924171 | 114 | 0.691125 |
b5594c4fae0d6eecb56f80f9a3c30d55a1382752 | 8,221 | /*
* 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.283262 | 92 | 0.613186 |
5ed24180ae46122227401c4092e33e7e9ab7e728 | 1,635 | package org.cyclops.integrateddynamics.core.evaluate.variable;
import net.minecraft.util.EnumFacing;
import net.minecraftforge.fluids.capability.CapabilityFluidHandler;
import net.minecraftforge.fluids.capability.IFluidHandler;
import net.minecraftforge.fluids.capability.IFluidTankProperties;
import org.cyclops.cyclop... | 35.543478 | 167 | 0.742508 |
02ddba4d5f3f087e37bad5ccdb937e5ab4a6dc72 | 113 | package kz.api.json;
/**
* Created by baha on 6/17/15.
*/
public class RequestParameter {
String code;
}
| 11.3 | 31 | 0.646018 |
ddd8a8b5b437e9cc50463a5198ca4aa8520ecca4 | 6,791 |
package org.srs.datacat.shared;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonSetter;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import org.srs.datacat.model.dataset.DatasetVersionModel;
import java.sql.T... | 37.10929 | 120 | 0.66809 |
5d55a4ab7690b5ebbdad64f406f7a3d48bf08a1c | 8,202 | package commnet.model.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import commnet.model.beans.FileMS;
import commnet.model.db.Database;
import commnet.model.exce... | 27.616162 | 124 | 0.679956 |
8041acb583a68d1f1f09deadd5ca6a372d6d3dfe | 11,522 | package github.GYBATTF.main;
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Iterator;
import java.util.Scanner;
import github.GYBATTF.apiCaller.LastFM;
import github.GYBATTF.apiCaller.Subsonic;
import github.GYBATTF.tracks.Track;
import github.GYBATTF.tracks.T... | 27.830918 | 116 | 0.64737 |
9b44f352b8f7485f739aded9a7f88be3b023bfab | 4,270 | package lk.ultratech.agent.sys.controller;
import com.jfoenix.controls.JFXButton;
import com.jfoenix.controls.JFXComboBox;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.event.ActionEv... | 46.413043 | 184 | 0.749883 |
ba74801c6b1236357b6ab0cad788435f065c4010 | 563 | package com.example.shortener.model;
import org.springframework.stereotype.Component;
import java.util.concurrent.ThreadLocalRandom;
@Component
public class RandomKeyGen {
private char[] dictionary = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890".toCharArray();
public String generateKey(i... | 29.631579 | 112 | 0.714032 |
356a84cca870ee6c7d0f8382b456d01eece22b63 | 1,115 | package cn.settile.lzjyzq2.sqlbuilder.kit;
import cn.settile.lzjyzq2.sqlbuilder.lang3.StringUtils;
import cn.settile.lzjyzq2.sqlbuilder.middleware.SqlMiddleware;
import java.util.ArrayList;
import java.util.List;
/**
* 中间件工具
* @author Mr.cjd
*/
public class SqlMidKit {
public static List<SqlMiddleware> list(){
... | 29.342105 | 94 | 0.697758 |
6d66d655981bfaa23511e682183c20d6c8b59e55 | 4,455 | // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package com.google.dart.compiler.backend.js.ast;
import com.google.dart.compiler.backend.js.ast.JsVars... | 21.214286 | 85 | 0.621549 |
6b5cbe48516661afeb01f083f4992e7fa78794b9 | 863 | package fog.faca.enums;
import fog.faca.access_rules.AccessRuleType;
public enum ATTRIBUTE {
ROLE("Subject.Identity.Role", AccessRuleType.STRING),
USERNAME("Subject.Identity.Username", AccessRuleType.STRING),
AGE("Subject.Person.Age", AccessRuleType.NUMERIC),
ORGANIZATION("Subject.Work.Organization",... | 27.83871 | 72 | 0.717265 |
c301cf4b8dfc45e390f5f880b8952796dfbd7071 | 613 | package org.usfirst.frc.team219.robot.commands;
import org.usfirst.frc.team219.robot.Robot;
import org.usfirst.frc.team219.robot.RobotMap;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.command.Command;
public class Drive extends Command{
public Drive()
{
requires(Robot.driveTrain);
}
@Ove... | 15.325 | 48 | 0.730832 |
d3e8bbd14ec874d633be79f42bf42ec2bfc1665f | 6,023 | package org.ovirt.engine.api.restapi.resource;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.math.BigDecimal;
import java.util.List;
import javax.ws.rs.Path;
import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.UriInfo... | 42.415493 | 151 | 0.644031 |
175c07da3cf5c3f25d632e1e191a44b0296f9396 | 381 | package ca.demo.salestool;
/**
* Represent the sales data for a given period.
*/
public class CopyOfSalesData {
int data[] = {-1, 0, 4, 42, 84};
public void display() {
System.out.println("Data: ");
int sum = 0;
for (int i: data) {
System.out.println("Next value: " + data[i]);
sum += i... | 17.318182 | 49 | 0.553806 |
31a253886626069ac81fbeb754c6220e84d6e8fa | 2,587 | /*
* Copyright 2021 JoJo Wang , homepage: https://github.com/jojoti/jvm-mixed.
*
* 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
*
* Unle... | 42.409836 | 230 | 0.776575 |
f781eceb97c621e9409c7a09276e7bc08eb7ae8a | 1,623 | /*
* 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 us.guihouse.projector.forms.controllers;
import javafx.scene.image.ImageView;
import us.guihouse.projector.other.GraphicsFinde... | 28.473684 | 79 | 0.732594 |
55c29112606f2c1cdef2843c0637d85586b3a6c1 | 748 | package org.hope6537.note.design.factory.example;
/**
* <p>Describe: 抽象的产品类 </p>
* <p>Using: </p>
* <p>DevelopedTime: 2014年9月5日下午3:46:21</p>
* <p>Company: ChangChun Unviersity JiChuang Team</p>
*
* @author Hope6537
* @version 1.0
* @see
*/
public abstract class Product {
/**
* <p>Describe: 公共业务逻辑处理<... | 19.684211 | 53 | 0.534759 |
725c5e508c20d1e5a21b0b2c07cc8526b8d43fcd | 1,780 | package com.example.ligang.commonlibrary.base.adapter;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.util.SparseArray;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.exam... | 26.176471 | 148 | 0.666854 |
7144dc3636a88c6bd515d25ef76133617af0f1db | 1,100 | package com.example.myInventory.models;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;
@Entity
public class CompanyInventory {
@Id
@GeneratedValue
private int id;
@NotNull
@Size(min=3, max=15)
private ... | 18.032787 | 49 | 0.641818 |
d8c76e124567e3ab931fe7e5f071894ab0012616 | 6,485 | /*
* $RCSfile: SourcelessOpImage.java,v $
*
* Copyright (c) 2005 Sun Microsystems, Inc. All rights reserved.
*
* Use is subject to license terms.
*
* $Revision: 1.1 $
* $Date: 2005-02-11 04:57:21 $
* $State: Exp $
*/
package javax.media.jai;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.im... | 37.923977 | 76 | 0.626369 |
d5b58edd64fbf25c2b231a72f6ede4b500a89712 | 8,942 | /* JAI-Ext - OpenSource Java Advanced Image Extensions Library
* http://www.geo-solutions.it/
* Copyright 2018 GeoSolutions
*
* 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
* ... | 37.571429 | 99 | 0.61172 |
7cd033a8a8f342b5df01725dd87846d9c8b6b1ea | 3,205 | package com.blogspot.spartandeveloper.playlistmessagesforspotify.ui.main;
import android.content.res.Resources;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.Ima... | 32.373737 | 107 | 0.693604 |
2d7b4753b065bcc64f8619f29ed05624add95896 | 159 | package org.iitbact.cc.constants;
public enum QUARANTINE_TYPE {
HOME_QUARANTINE, INSTITUTIONAL_QUARANTINE, INSTITUTIONAL_NON_COVID_TREATMENT, RECOVERED
}
| 26.5 | 91 | 0.842767 |
cbb46aafd7fffa5894b51c44221fe21825f15179 | 1,678 | package org.ihtsdo.buildcloud.controller;
import org.ihtsdo.buildcloud.service.AuthenticationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.s... | 39.023256 | 112 | 0.806913 |
66c6b20fd80b60653ce67e148ff8bb5c57d7c117 | 365 | package com.dark.mode.demo.service;
import com.dark.mode.demo.model.Customer;
import java.util.Optional;
public interface CustomerService {
Iterable<Customer> getAllCustomers();
Iterable<Customer> getAllCustomersOrderByLastName();
Customer save(Customer c);
Optional<Customer> findById(Integer id);... | 20.277778 | 56 | 0.758904 |
6959156e0733daf9c80c7085ebf16e3637050692 | 3,548 | package com.cvicse.refactor.ast;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.atomic.AtomicInteger;
import org.eclipse.jdt.core.dom.ASTVisitor;
import org.eclipse.jdt.core.dom.CompilationUnit;
import org.eclipse.jdt.core.dom.EnhancedFor... | 31.963964 | 113 | 0.687993 |
ffc06cdd7ba4d732a403b4312f3c109864f69408 | 232 | package com.tentwenty.assignment.waseem.Constants;
public class Constants {
public static final String BASE_URL = "https://api.themoviedb.org/3/";
public final static String API_KEY = "a0c66b2a8f38e9b412a20aa78437b36e";
}
| 29 | 76 | 0.771552 |
757f253255433f08a34a389b3a29c5326eee34d4 | 54,339 | /* JEWEL, Java Environment With Enhanced Linkage
* Copyright (c) 1998-2004, Rodrigo Augusto Barbato Ferreira
*/
package jewel.arch.i386;
import jewel.core.bend.Addr;
import jewel.core.bend.Assembler;
import jewel.core.bend.FlowAssembler.InstructionStatement;
import jewel.core.bend.Imm;
import jewel.core.bend.Opc;
im... | 51.506161 | 76 | 0.716336 |
359c38f394e5989a5fe76cd61154df406b8c7e13 | 2,554 | package graphTheory.generators.steinLib;
import graphTheory.graph.Arc;
import graphTheory.instances.steiner.classic.SteinerUndirectedInstance;
import graphTheory.steinLib.STPTranslationException;
import graphTheory.steinLib.STPTranslator;
import graphTheory.utils.FileManager;
import java.io.File;
import java.util.Has... | 25.79798 | 74 | 0.662099 |
01e091df8bd4b7c0fb14792f2c9fda12254efea1 | 4,827 | /*
* This file is part of WoodPilings, licensed under the MIT License (MIT).
*
* Copyright (c) TechShroom Studios <https://techshroom.com>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Soft... | 44.284404 | 118 | 0.671639 |
6ff3882d92b9da4c7fc91abc4cc6c856cf52d0de | 3,344 | package com.jacudibu.utility;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.VertexAttributes.Usage;
import com.badlogic.gdx.graphics.g3d.Material;
import com.badlogic.gdx.graphics.g3d.Model;
import com.badlogic.gdx.graphics.g3d.ModelBatch;
import com.ba... | 30.4 | 123 | 0.636065 |
1484f379c9a4610a562cd93d622c615621ca646b | 2,222 | package com.andrehaueisen.fitx.client.firebase;
import android.app.Activity;
import android.support.annotation.NonNull;
import android.support.v4.app.Fragment;
import android.util.Log;
import com.andrehaueisen.fitx.utilities.Constants;
import com.google.android.gms.tasks.OnCompleteListener;
import com.google.android.... | 37.661017 | 114 | 0.719172 |
fcf648fad6e058c86b9de4bbde9023311858e397 | 502 | package org.bitcoin.authenticator.GcmUtil;
public class GcmUtilGlobal {
public static final String EXTRA_MESSAGE = "message";
public static final String PROPERTY_REG_ID = "registration_id";
public static final String PROPERTY_APP_VERSION = "appVersion";
public final static int PLAY_SERVICES_RESOLUTION_REQ... | 41.833333 | 75 | 0.784861 |
01fbf31d9724ebcff9356db9079613568121747c | 447 | /*
* Copyright (c) Huawei Technologies Co., Ltd. 2021-2021. All rights reserved.
*/
package com.huawei.flowre.mockserver.domain;
/**
* mock操作的枚举类 RETURN返回数据结果、SKIP跳过该方法的MOCK、THROWABLE该方法抛出异常
*
* @author luanwenfei
* @version 0.0.1
* @since 2021-02-03
*/
public enum MockAction {
/**
* 执行操作类型 返回返回数据结果
... | 15.964286 | 78 | 0.606264 |
2638246712d78ec9d6fe7cb6a4c2492bd6ebc896 | 1,129 | package com.hflores.demo.models;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@JsonIgnoreProperties(ignoreUnknown = true)
public class Post {
private int id;
private int userId;
private String title;
private String body;
/**
* @return the userId
*/
public int getUserId() {
return userI... | 14.474359 | 108 | 0.600531 |
664aad06900e24bbd2722f7e1a31dc9a92ef8c6b | 5,049 | /*
* Copyright (C) 2015 Keith M. Hughes
*
* 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... | 31.166667 | 100 | 0.734799 |
dbace88842c8dc4183628494aaad40b068fc2d8d | 464 | package org.fun4j.compiler;
import org.fun4j.Predicate;
/**
* Abstract base clase used by the compiler to generate {@link Predicate} instances.
* The compiler will also generate the apply method and the bridge method to handle the covariant
* signature of the {@link Predicate#apply(Object...)} method.
*/
public ... | 22.095238 | 98 | 0.734914 |
4e03df93a8308fb5ee3895a1e6edab8eeb2d73c8 | 3,597 | package io.choerodon.iam.api.controller.compatible;
import com.alibaba.fastjson.JSONObject;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.hzero.core.util.Results;
import org.hzero.iam.domain.repository.UserRepository;
import org.hzero.iam.domain.vo.UserVO;
import org.hzero.s... | 41.344828 | 226 | 0.740339 |
e29a210e1cd6ccf938fe79c4f2b841e83f04d265 | 3,780 | package com.xemplarsoft.dv.medium.server;
import com.xemplarsoft.dv.medium.CryptoHandler;
import java.math.BigDecimal;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.ArrayList;
public class DVServerHandler implements Runnable {
protected volatile ArrayList<DVClientHandler> clients;
pr... | 28.421053 | 106 | 0.521429 |
77cc2d66af2453bd628ff34b567093c041522c61 | 1,682 | package org.organet.michael.CommandLineInterface.Commands;
import org.organet.michael.CommandLineInterface.ReturnsResponse;
import org.organet.michael.CommandLineInterface.ScansForAdhocNetworks;
import java.util.*;
public class IwlistScan extends CommandBase implements ScansForAdhocNetworks, ReturnsResponse {
publ... | 31.735849 | 98 | 0.644471 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.