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 |
|---|---|---|---|---|---|
5772b2a52f9d105178604cf1021d6d180a2d98fa | 493 | package org.endeavourhealth.transform.tpp.xml.transforms;
import org.endeavourhealth.transform.tpp.xml.schema.Event;
import org.endeavourhealth.transform.tpp.xml.schema.Relationship;
import org.hl7.fhir.instance.model.Encounter;
import org.hl7.fhir.instance.model.Resource;
import java.util.List;
public class Relatio... | 29 | 142 | 0.813387 |
2e689814a2f8d6a96526b779c08365ce24bb8d7a | 1,511 | package br.gov.sp.fatec.saloon.model.repository.regi;
import java.util.List;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import br.gov.sp.fatec.saloon.model.entity.regi... | 33.577778 | 99 | 0.735936 |
2163bb7570d8adc7cf5be86c1c8e77fe5e1761c6 | 2,246 | package com.avaje.ebeaninternal.server.deploy;
import java.lang.reflect.Method;
import com.avaje.ebeaninternal.server.deploy.meta.DeployBeanProperty;
import com.avaje.ebeaninternal.server.reflect.BeanReflectGetter;
/**
* For abstract classes that hold the id property we need to
* use reflection to get the... | 26.116279 | 71 | 0.679875 |
01d938318869c680d96b2cc8aba9bafb641b1cbd | 3,897 | /**
*
*/
package br.com.swconsultoria.efd.icms.registros.blocoB;
import java.util.ArrayList;
import java.util.List;
/**
* @author Sidnei Klein
*/
public class RegistroB001 {
private final String reg = "B001";
private String ind_dad;
private RegistroB020 registroB020;
private List<RegistroB030> r... | 22.268571 | 66 | 0.602258 |
39963a55945184b089e630a9d16b31b09d0c98ca | 1,496 | package com.github.frimtec.android.pikettassist.ui.alerts;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNul... | 34 | 102 | 0.782086 |
58425ee6af1877a070c78aefd4334f257f130664 | 2,812 |
package com.linkb.jstx.component;
import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import com.linkb.jstx.network.model.SNSMomentVideo;
import com.linkb.jstx.app.LvxinApplication;
import com.linkb.jstx.bean.User;
impor... | 36.519481 | 131 | 0.696657 |
bf64b9fc3edf1af7efaef2afb95c2e98da0a247c | 2,059 | package enginecrafter77.survivalinc.stats;
import java.io.Serializable;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.ResourceLocation;
/**
* StatProvider serves as a descriptor of a stat.
* StatProvider's main job is providing the stat's
* ID, creating new {@link StatRecord}, and upd... | 34.898305 | 79 | 0.73628 |
98a155f473c8978fd1fc87d5dca162c7fc60516f | 810 | package Predicates;
import java.util.ArrayList;
import java.util.List;
public class Main {
public static void main(String[] args) {
List<Person> persons = new ArrayList<>();
persons.add(new Person("lola", 10));
persons.add(new Person("olga", 20));
persons.add(new Person("oleg", 100... | 31.153846 | 73 | 0.550617 |
2659e5325b719ea722787fe2e95b23054c5dbe30 | 1,638 | package org.apache.zeppelin.interpreter.recovery;
import org.apache.zeppelin.conf.ZeppelinConfiguration;
import org.apache.zeppelin.interpreter.InterpreterSettingManager;
import org.apache.zeppelin.interpreter.launcher.InterpreterClient;
import org.apache.zeppelin.util.ReflectionUtils;
import org.slf4j.Logger;
import ... | 39 | 107 | 0.761294 |
52a2c2be5f905c23df70119fdfa893d97d1e06af | 479 | package com.supanadit.restsuite.model;
public class BodyTypeModel {
protected String name;
public BodyTypeModel(String name) {
this.name = name;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public static Bo... | 18.423077 | 41 | 0.611691 |
1e812a575f69da9e629a5f489f9e3288b0b75cf2 | 466 | package com.manywho.sdk.services.controllers;
import com.manywho.sdk.api.run.elements.type.ObjectDataRequest;
import com.manywho.sdk.api.run.elements.type.ObjectDataResponse;
public interface DataController {
ObjectDataResponse delete(ObjectDataRequest objectDataRequest) throws Exception;
ObjectDataResponse ... | 35.846154 | 84 | 0.841202 |
9db291ded146fa7f097aea446c08d89d1e60e999 | 2,885 | package com.yxf.bookshop.model;
/**
* 订单详情实体类
* @author 余晓枫,0410190109
*
* */
public class Orderitems {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column orderitems.order_id
*
* @mbg.generated Mon May 24 18:37:14 CST 2021
*/
... | 27.216981 | 81 | 0.632929 |
100a17a09e15db8d75b7016bfce1198202f42349 | 979 | package org.unclesky4.webflux.demo_2;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.reactive.function.BodyInserters;
import org.springframework.web.reactive.function.server.RequestPredicates;
import org.springframework.we... | 31.580645 | 74 | 0.787538 |
f04136e22eba8904c6179394a3163b5dc2585d33 | 1,871 | package org.frekele.fiscal.focus.nfe.client.enumeration;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;
import java.util.Arrays;
impor... | 23.098765 | 70 | 0.612507 |
a0bf61985a75dce30c3abd024268fd14a5cf1181 | 672 | package akkaTipsAndTricks;
import java.io.File;
import akka.NotUsed;
import akka.stream.javadsl.FileIO;
import akka.stream.javadsl.Flow;
import akka.stream.javadsl.Framing;
import akka.util.ByteString;
public class FlatmapExample {
static int maxLineSize = 1024;
static final ByteString delim = ByteString.fromStr... | 11.016393 | 73 | 0.645833 |
ca00ebe87f1f9e14e8ba92672aa1c128d5877dd0 | 3,550 | /*
* 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 userinterface.SystemAdminWorkArea;
import java.awt.CardLayout;
import javax.swing.JPanel;
import org.jfree.chart.ChartPanel;
... | 39.010989 | 136 | 0.661972 |
933f86b8b212f6ec48900be79803b319a09b4a63 | 1,651 | package ice.ui;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;
import javax.swing.JFileChooser;
import javax.swing.JOptionPane;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
public class CodeDialog ext... | 21.723684 | 72 | 0.69473 |
2921d17160e8681a7a608bbd875a89ac9e3122a0 | 227 | package com.comandulli.data.file;
public class DataFileException extends RuntimeException {
private static final long serialVersionUID = -687274114294508334L;
public DataFileException(String error) {
super(error);
}
}
| 18.916667 | 67 | 0.792952 |
41573ae5c4d3de823a9023b80ce5cc44cb46e494 | 6,814 | import java.sql.*;
import java.util.InputMismatchException;
import java.util.Scanner;
public class Main
{
private final static String url ="jdbc:postgresql://localhost:5432/mini-project";
private final static String user="student";
private final static String password="C0d3Cr3w";
//function to make con... | 42.322981 | 162 | 0.570296 |
a664b9f8ffd467d47576b99bf998e768ee24ef0a | 1,946 | /* detect-lines, extract lines and their width from images.
Copyright (C) 1996-1998 Carsten Steger
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option... | 34.75 | 97 | 0.720452 |
2d8a235febbd274f3e331cbcc903efb357f84416 | 1,801 | package com.enderio.core.client;
import java.lang.reflect.Field;
import com.enderio.core.common.util.Log;
import net.minecraft.client.particle.Particle;
import net.minecraftforge.fml.common.ObfuscationReflectionHelper;
public class ClientUtil {
private static final Field MOTION_X;
private static fina... | 25.013889 | 99 | 0.618545 |
1c4ebdeb821332626edf0718f9fb365dfac15a4e | 13,251 | package omicsdatalab.bioliner.utils;
import omicsdatalab.bioliner.Module;
import org.w3c.dom.*;
import org.xml.sax.SAXException;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import java.io.File;
import java.io.IOExcep... | 45.380137 | 121 | 0.625538 |
2efe8f48bc64f934e32b91874a28c8583109ee8e | 1,345 | package com.yeskery.filter;
/**
* 和值过滤器
*
* @author yeskery
* @date 2018-07-26 12:23
*/
public class SumFilter extends AbstractFilter {
private int[] all;
private int[] data;
/**
* 和值过滤器
* @param star 星级
* @param retain true 代表保留,false 代表删除
* @param data 需要过滤的数据数组
*/
public ... | 20.378788 | 60 | 0.594052 |
fd5b0279a9c8f639780fd0a5cdc6c681423fe4de | 1,124 | package jmx;
import javax.management.*;
import java.lang.management.ManagementFactory;
/**
* @author vision8
*/
public class AppStart {
/**
* Startup of the class and JMX setup.
* @param args Command line startup arguments.
*/
public static void main(String... args) {
// ------- ini... | 24.434783 | 72 | 0.535587 |
0ba53ea0d2efc57b4b3b20350350268628cc7376 | 10,791 | /*
* Copyright 2020 The FATE 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... | 53.157635 | 213 | 0.720322 |
c0ed4c3d281935337b077e480c3a4f671bec3d7c | 511 | /**
* Copyright (C) 2018 WeBank, Inc. All Rights Reserved.
*/
package com.webank.webasebee.parser.generated.bo.method;
import com.webank.webasebee.common.bo.data.MethodBO;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
@Data
@Accessors(chain = true)
@EqualsAndHashCode(cal... | 24.333333 | 61 | 0.794521 |
eccbbb606608e3924c5d78e19981b47287d5f848 | 239 | package org.apache.hadoop.hive.ql.exec.tez.monitoring;
import org.apache.hadoop.hive.common.log.InPlaceUpdate;
public interface Constants {
String SEPARATOR = new String(new char[InPlaceUpdate.MIN_TERMINAL_WIDTH]).replace("\0", "-");
} | 34.142857 | 95 | 0.778243 |
2cb062851ddac66f6fa3bcc47b80c52d261f357b | 2,241 | package com.o3dr.services.android.lib.drone.companion.solo.tlv;
import android.os.Parcel;
import com.o3dr.services.android.lib.coordinate.LatLongAlt;
import java.nio.ByteBuffer;
/**
* Send the app our cable cam waypoint when it’s recorded.
* Deprecated since shotmanager 2.0
*/
public class SoloCableCamWaypoint... | 28.0125 | 115 | 0.673806 |
c0da65fb1c52a0dfc419130e3b0f6506c3caf689 | 3,556 | /*
Part of the Androrat project - https://github.com/RobinDavid/androrat
Copyright (c) 2012 Robin David
This library 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, version 3.
This library is... | 26.537313 | 117 | 0.691507 |
3dce1a17c0d68677ffe9dd8ebe5a908f85bace55 | 1,063 | import java.awt.Graphics;
import java.awt.image.BufferedImage;
import javax.swing.JFrame;
public class Menu extends JFrame{
//Attributes
private static final long serialVersionUID = 9221558304803846443L;
private BufferedImage title, btnPlay, btnScore, btnQuit, scoreTable, instructions;
//Render Method
public... | 28.72973 | 83 | 0.706491 |
7b98e2cef8dc33b7b3414965a73edc04ef07ea03 | 1,494 | package today.flux.utility;
public class AnimationTimer {
private final int delay;
private int bottom;
private int top;
private int timer;
private boolean wasRising;
private DelayTimer helpertimer = new DelayTimer();
public AnimationTimer(int delay) {
this.delay = delay;
t... | 25.758621 | 212 | 0.481928 |
c96b23289bbb1dd47ca12a8dc880aef75e954153 | 3,719 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 31.252101 | 109 | 0.710137 |
bbf0df19e78a8ce0051617be8c20f953ea730566 | 15,229 | package noear.weed;
import noear.weed.cache.CacheUsing;
import noear.weed.cache.ICacheService;
import noear.weed.ext.Act1;
import noear.weed.ext.Act2;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
/**
* Created by yuety on 14/11/12.
*
* # //不加表空间(table(xxx) : 默认加表空间)
* $... | 24.802932 | 122 | 0.487622 |
889c81c004858b842680674ebf62fb4d24dfbcd9 | 864 | public class Main {
static Long sum = 0l;
public static void main(String[] args) {
int value = 123;
int k = 0;
long newValue = getNewValue(value, k);
System.out.println(getSuperDigit(newValue));
}
private static long getNewValue(int n, int k) {
if ((n > -10 &&... | 22.153846 | 69 | 0.509259 |
187258936d24b8523db0ea504ce4017fac5dca40 | 11,909 | package org.cosette;
import com.google.common.collect.ImmutableList;
import org.apache.calcite.adapter.java.JavaTypeFactory;
import org.apache.calcite.avatica.util.Quoting;
import org.apache.calcite.config.CalciteConnectionConfig;
import org.apache.calcite.config.CalciteConnectionConfigImpl;
import org.apache.calcite.... | 42.838129 | 130 | 0.683013 |
0cab5b39fa46e9a7ef633afca7bffcf5b4e1ca5c | 1,312 | /*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.test.criteria;
import java.util.Collections;
import java.uti... | 23.017544 | 94 | 0.737043 |
77b83986a1fca04a243bb693a914df1ba474ce31 | 1,879 | package rocks.process.acrm.data.domain;
/*
* Copyright (c) 2020. University of Applied Sciences and Arts Northwestern Switzerland FHNW.
* All rights reserved.
*/
import com.fasterxml.jackson.annotation.JsonProperty;
import rocks.process.acrm.data.domain.Job;
import javax.persistence.*;
import javax.validation.co... | 21.11236 | 99 | 0.642363 |
1ad452980cd678d2522e80f554cbb2e897d06e37 | 1,485 | package goveed20.LiteraryAssociationApplication.services;
import org.camunda.bpm.model.bpmn.Bpmn;
import org.camunda.bpm.model.bpmn.BpmnModelException;
import org.camunda.bpm.model.bpmn.BpmnModelInstance;
import org.camunda.bpm.model.bpmn.instance.UserTask;
import org.camunda.bpm.model.bpmn.instance.camunda.CamundaPro... | 38.076923 | 117 | 0.721886 |
2b5fe1d8f0f195dec0ad74795242d6711887b4db | 7,102 | /**
* Logback: the reliable, generic, fast and flexible logging framework.
* Copyright (C) 1999-2015, QOS.ch. All rights reserved.
*
* This program and the accompanying materials are dual-licensed under
* either the terms of the Eclipse Public License v1.0 as published by
* the Eclipse Foundation
*
* ... | 31.564444 | 106 | 0.661645 |
9b0e7180666931f4ca7aae90f6032cb7eb9169e4 | 1,202 | package net.ignissak.discoverareas.events.worldguard;
import com.sk89q.worldguard.protection.regions.ProtectedRegion;
import org.bukkit.entity.Player;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
import org.bukkit.event.player.PlayerEvent;
public abstract class RegionEvent extends PlayerEvent {... | 25.041667 | 123 | 0.705491 |
c2c6fb678aa728f186d30de467e388af8a634bbf | 989 | package chapter7classes;
public class Rectangle {
private int length;
private int width;
private String color;
// constructor method - name must match the class, no return type
public Rectangle(){
length = 0;
width = 0;
color = ""; // this avoid the string being null
... | 18.660377 | 69 | 0.512639 |
bdab50160b6994703b5df648488da9cf41f91a9b | 3,351 | package us.rjks.gui;
import us.rjks.utils.MorseCodierung;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
/**
* Copyright Ⓒ Robert J. Kratz 2021
* Created: 01.09.2021 / 17:50
* Contact: https://link.rjks.us/support
*/
public class Formatter exten... | 29.654867 | 135 | 0.583408 |
16a796b3bcdf858176dc2a2a538cd5dc41a4cbaf | 1,573 | /*
* Copyright (c) 2005-2010, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 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.o... | 24.968254 | 80 | 0.689765 |
5818ca79013a87b130c9dfe641ea031e9b72c952 | 4,627 | package org.mybatis.pagination.helpers;
/**
* <p>
* Help class by String.
* </p>
*
* @author mumu@yfyang
* @version 1.0 2013-09-09 11:26 AM
* @since JDK 1.5
*/
public final class StringHelper {
/** The empty String {@code ""}. */
public static final String EMPTY = "";
/** The dot String {@code ",... | 31.910345 | 109 | 0.5697 |
ed7703d0c8c21bd4ab7f93fddd19c74e418a95e4 | 1,041 | package com.document.domain;
import java.io.Serializable;
import javax.persistence.Entity;
public class SearchCriteria implements Serializable
{
/**
*
*/
private static final long serialVersionUID = 5474704433187825976L;
private String authorFirstName;
private String authorLastName;
private S... | 22.630435 | 68 | 0.742555 |
d65a92b89987e779a57eb5ec89fea8e5f9f00e7c | 8,002 | /*
* Copyright 2011-2016 B2i Healthcare Pte Ltd, http://b2i.sg
*
* 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 require... | 45.465909 | 144 | 0.776056 |
614b059dab34cdd2c2851340bd7bbcbc78a5a1e9 | 1,151 | package leetcode.editor.cn;
//给定一个整数数组 nums 和一个目标值 target,请你在该数组中找出和为目标值的那 两个 整数,并返回他们的数组下标。
//
// 你可以假设每种输入只会对应一个答案。但是,数组中同一个元素不能使用两遍。
//
//
//
// 示例:
//
// 给定 nums = [2, 7, 11, 15], target = 9
//
//因为 nums[0] + nums[1] = 2 + 7 = 9
//所以返回 [0, 1]
//
// Related Topics 数组 哈希表
// 👍 9824 👎 0
import java.util.HashM... | 25.577778 | 70 | 0.5404 |
b7ebbcecc1f192db2ebbb83b6f9d1dc2d485a09b | 11,690 | package dentaira.cobaco.server.file.infra;
import com.github.database.rider.core.api.dataset.DataSet;
import com.github.database.rider.core.api.dataset.ExpectedDataSet;
import dentaira.cobaco.server.file.DataSize;
import dentaira.cobaco.server.file.FileType;
import dentaira.cobaco.server.file.Owner;
import dentaira.co... | 41.899642 | 148 | 0.648674 |
11f180bae5d1561f8928a0abaff910132893af5d | 4,830 | /*
* Copyright 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 36.315789 | 98 | 0.694824 |
486fc925d8327830aa38ded5c499ff8ee835bf57 | 3,195 | /*
* 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 ... | 33.631579 | 93 | 0.710172 |
586920d834a2dbc9d6a20bb20facf8a7cb72a701 | 1,039 | package storage;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import simulator.system.ships.StorageShip;
/**
Stores all ship data loaded from DB. Provides static access to all stored data
*/
public class ShipStorage {
private static Map<Integer, StorageShip> sStorageShips = ne... | 24.738095 | 79 | 0.715111 |
54b58bd06e691a153ec7ab7c07277015904b83a2 | 113 | package com.asodc.camel.contentenricher;
public class ContentEnricherPollEnrich {
// TODO: implementation
}
| 18.833333 | 40 | 0.787611 |
4985cfda01de4e6f27926c3b43130a97e52857b7 | 20,213 | package com.yilian.luckypurchase.activity;
import android.Manifest;
import android.content.ComponentName;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.database.Cursor;
import android.graphics.drawable.ColorDrawable;
import android.net.Uri;
import android.os.Bundle;
import and... | 39.478516 | 158 | 0.584525 |
74eae3007b83c44638adc7786fa27f273606efc8 | 5,429 | package com.example.zhansha.testandroid;
import android.media.AudioFormat;
import android.media.AudioRecord;
import android.media.MediaRecorder;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.widget.Button;
import android.widget.ImageView;
import andr... | 33.512346 | 148 | 0.516117 |
6f697b0051551bc4eb68434b2a5d9e038d3caf0a | 699 | package com.iyzipay.google.cloud.vision.model;
public class Color {
private Double red;
private Double green;
private Double blue;
private Double alpha;
public Double getRed() {
return red;
}
public void setRed(Double red) {
this.red = red;
}
public Double getGre... | 16.642857 | 46 | 0.575107 |
e367db20b1bb1cd7ecc2a887548a5bcb55964d6f | 1,003 | package custom.gateway.configuration;
import custom.gateway.configuration.swagger.*;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.swagger.web.SwaggerResourcesProvider;
/**
* @author zack <br>
* @create 2021-06-27<br>
... | 24.463415 | 68 | 0.727817 |
778840ed0e05c46ebb2c812979683ba8d112edc3 | 562 | package examples.pubhub.model;
public class BookTag {
String isbn13;
String tagName;
public BookTag(String isbn, String tag) {
this.isbn13 = isbn;
this.tagName = tag;
}
// Default constructor
public BookTag() {
this.isbn13 = null;
this.tagName = null;
}
public String getIsbn13() {
return isbn13;
}
public void s... | 16.057143 | 41 | 0.72242 |
318b8a018ae9b4e91ac837173b52552e000c5372 | 1,072 | package domain.model;
import java.util.*;
import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import lombok.Data;
@Data
@Entity
@Table(name ="FridgeItem")
public class FridgeItem implements Serializable{
private static final... | 20.226415 | 79 | 0.741604 |
661476010cbe99c926901c60169c73f439f6d3a5 | 560 | package com.helospark.tactview.core.timeline.clipfactory.sequence;
import java.io.File;
public class FileHolder implements Comparable<FileHolder> {
File file;
int frameIndex;
public FileHolder(File file, int frameIndex) {
this.file = file;
this.frameIndex = frameIndex;
}
@Overrid... | 20.740741 | 66 | 0.660714 |
a3c162fc9bd201d6fe8a0f09a31ee5c46e01863c | 3,543 | package com.redhat.service.smartevents.processor.actions.webhook;
import java.net.MalformedURLException;
import java.net.URL;
import javax.enterprise.context.ApplicationScoped;
import com.redhat.service.smartevents.infra.models.gateways.Action;
import com.redhat.service.smartevents.infra.validations.ValidationResult... | 48.534247 | 154 | 0.727632 |
ab675a8d46901d0c275e293cb7b3c83b185684a0 | 1,780 | package com.norswap.autumn.extensions.cluster.syntax;
import com.norswap.autumn.capture.ParseTree;
import com.norswap.autumn.extensions.SyntaxExtension;
import com.norswap.autumn.extensions.cluster.ClusterSyntax;
import com.norswap.autumn.extensions.cluster.expressions.Filter;
import com.norswap.autumn.support.Grammar... | 34.230769 | 100 | 0.588202 |
06caa23d3ce0447cc206a7cc0a9f7d9cc28ef15d | 634 | package com.u8.server.sdk.jianpan;
/**
* Created by lvxinmin on 2016/11/10.
*/
public class VerifyResponse {
private String status;
private String msg;
private String userId;
public String getStatus() {
return status;
}
public void setStatus(String status) {
t... | 18.114286 | 43 | 0.561514 |
0ffe9c9157d30fd141f82992bfee48e8944559b4 | 2,300 | package com.aldebaran.demo.picture;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Frame;
import java.awt.Graphics;
import java.awt.Label;
import java.awt.Panel;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.awt.image.BufferedImage;
import ... | 25.555556 | 58 | 0.726957 |
70d56b20e8b86748ef1f3458dee95090a09dff76 | 187 | package com.gof.observer.vers2;
public class ErrObserver implements Observer {
@Override
public void notify(Event event) {
System.err.println(event.getClass());
}
}
| 18.7 | 46 | 0.68984 |
d6c6bbdcb621467e8cf41406f0bbd41dd3c0876e | 475 | package com.realdolmen.realjobs.mappers;
import com.realdolmen.realjobs.models.Vacancy;
import com.realdolmen.realjobs.dto.VacancyDTO;
import org.mapstruct.MapperConfig;
import org.mapstruct.MappingTarget;
@MapperConfig(componentModel = "spring")
public interface VacancyMapperConfig {
abstract VacancyDTO toVacanc... | 36.538462 | 92 | 0.831579 |
db111d2d82818681f61b5d144c65c15f9dc2fef2 | 3,729 | package software.amazon.smithy.aws.go.codegen.customization;
import java.util.Map;
import java.util.Optional;
import java.util.Set;
import java.util.logging.Logger;
import software.amazon.smithy.codegen.core.CodegenException;
import software.amazon.smithy.go.codegen.GoSettings;
import software.amazon.smithy.go.codegen... | 41.898876 | 122 | 0.652722 |
28031aae6e2b8c71b2c2e5adbb56affe9fb6f611 | 6,393 | package org.andengine.input.touch.detector;
import android.view.MotionEvent;
import org.andengine.input.touch.TouchEvent;
import org.andengine.util.math.MathUtils;
/**
* (c) 2010 Nicolas Gramlich
* (c) 2011 Zynga Inc.
*
* @author Nicolas Gramlich
* @author Yarolav Havrylovych
*/
public class PinchZoomDetector ... | 38.981707 | 159 | 0.536994 |
db4f430cb3f458c14afa0bd9b8997ed08329344f | 6,114 | /*
* Copyright 2019 Qameta Software 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 ... | 22.152174 | 96 | 0.585868 |
6347111e965ee9e34c28748e5829a74fc7b3351a | 8,132 | import Commands.ExportCommand;
import Commands.IndexNowCommand;
import Enums.OutputMode;
import Exceptions.IncorrectParameterException;
import Executors.Executor;
import Factories.CommandFactory;
import Interfaces.Command;
import Interfaces.Query;
import Utils.ExportStatus;
import Utils.StringsMapping;
import Utils.Uti... | 33.327869 | 174 | 0.594934 |
31b169235cb2bb4ed6a1de2c854dd787d89d6b62 | 1,006 | package com.matera.repository;
import java.util.List;
import com.matera.exceptions.UserNotFoundException;
import com.matera.model.User;
/**
* Database access to manage user document.
* @author Lucas
*/
public interface UserRepository {
/**
* Saves a user.
* @param user User to be saved.
* @return ... | 20.958333 | 73 | 0.639165 |
41c3d5745f5bbcb47768e7c6e3f326c5adce4de0 | 1,851 | /**
* Copyright 2015 - 2016 KeepSafe Software, 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... | 31.372881 | 78 | 0.675851 |
153e904c48c354dd0f86f3a6499463abfa351520 | 7,223 | /*
* Copyright 2016 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
* applicable law or agr... | 30.73617 | 123 | 0.703724 |
5f22d5cf1f08b6bb5bdec776ca047be6ade68e56 | 965 | package io.rocketbase.commons.model.converter;
import com.google.common.base.Joiner;
import com.google.common.base.Splitter;
import com.google.common.collect.Lists;
import org.springframework.util.StringUtils;
import javax.persistence.AttributeConverter;
import javax.persistence.Convert;
import java.util.ArrayList;
i... | 28.382353 | 86 | 0.693264 |
4cd19483eb8e6353e433321a2d95b2e30022b360 | 3,983 | /*
* AsTeRICS - Assistive Technology Rapid Integration and Construction Set
*
*
* d8888 88888888888 8888888b. 8888888 .d8888b. .d8888b.
* d88888 888 888 Y88b 888 d88P Y88b d88P Y88b
* d88P888 888 888 888 888 888 888 Y88b. ... | 34.042735 | 160 | 0.699473 |
22920f750d9ec76a8e044ea192f9dc992bd6c8e8 | 3,296 | package de.ellpeck.prettypipes.pipe.modules.extraction;
import de.ellpeck.prettypipes.Registry;
import de.ellpeck.prettypipes.items.IModule;
import de.ellpeck.prettypipes.items.ModuleItem;
import de.ellpeck.prettypipes.items.ModuleTier;
import de.ellpeck.prettypipes.misc.ItemFilter;
import de.ellpeck.prettypipes.netwo... | 37.454545 | 162 | 0.678095 |
6a84e5dca753ce3ff33c369aab7101de98abbf7b | 956 | package cn.fanrunqi.materiallogin.bmob;
import android.content.Context;
import cn.bmob.v3.Bmob;
import cn.bmob.v3.BmobConfig;
import cn.fanrunqi.materiallogin.config.Config;
/**
* Created by Wengdada on 2017/2/28.
*/
public class Mybmob {
public static void initBmob(Context initContext){
//提供以下两种方式进... | 23.9 | 76 | 0.604603 |
befc4a8ea410bc03dbabc7406d436b9805233ad0 | 4,414 | package ch.squix.extraleague.rest.ranking;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import ch.squix.extraleague.model.ranking.EternalRanking;
import ch.squix.extraleague.model.ranking.PlayerRanking;
import ch.squix.extraleague.model.ranking.Ranking;
public class RankingDtoMapper {
... | 44.585859 | 98 | 0.791119 |
d5a547c1e415b5cb566aa4ba3e0dc8c56fe9ed2e | 866 | package sample;
import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import java.io.IOException;
@WebFilter(filterName = "TimeOfDayFilter", urlPatterns = {"/resources/sample"})
public class SampleFilter implements Filter {
@Override
public void init(FilterConfig filterConfig) throws ServletExce... | 28.866667 | 132 | 0.720554 |
a3ad0e814afbde02222027bd094a040ddc124367 | 342 | package com.piggybank.com.coins;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class CoinsApplication
{
public static void main(String[] args)
{
SpringApplication.run(CoinsApplication.class,
... | 20.117647 | 68 | 0.751462 |
bed7caccd2350ee3bcdca9a41acea071ce56897d | 282 | package de.zalando.sprocwrapper.proxy;
import de.zalando.sprocwrapper.sharding.VirtualShardKeyStrategy;
/**
* @author Soroosh Sarabadani
*/
public class HellVirtualShardKeyStrategy extends VirtualShardKeyStrategy {
public HellVirtualShardKeyStrategy(String dummy) {
}
}
| 23.5 | 74 | 0.801418 |
714a99548a60c28e0e31c805424ec10536603a69 | 1,224 | package com.helpfooter.magicmainland.Classes.MenuExtendes;
import java.util.ArrayList;
import java.util.Dictionary;
import java.util.Enumeration;
import com.helpfooter.magicmainland.Common.StaticObject;
import com.helpfooter.magicmainland.Classes.SceneBuilder;
import com.helpfooter.magicmainland.Classes.Dia... | 30.6 | 75 | 0.788399 |
8b5698634715f10771dc0b07e3d6944d8ea123c4 | 4,336 | /*
* Hibernate, Relational Persistence for Idiomatic Java
*
* Copyright (c) 2008-2011, Red Hat Inc. or third-party contributors as
* indicated by the @author tags or express copyright attribution
* statements applied by the authors. All third-party contributions are
* distributed under license by Red Hat Inc.
*... | 31.42029 | 128 | 0.736162 |
4bfeaa92502264b9c4e608eaa4ec3d186121ac5b | 854 | package brige;
/**
* @author : CodeWater
* @create :2022-05-10-16:12
* @Function Description :
*/
public class Client {
public static void main(String[] args) {
//获取折叠式手机 (样式 + 品牌 )
Phone phone1 = new FoldedPhone(new XiaoMi());
phone1.open();
phone1.call();
phone1.close();
... | 26.6875 | 61 | 0.517564 |
9088be45fc51a2f5ad6d7edcf0912dd05b593196 | 64 | /**
* 画面オンライン処理方式の主要APIを収めたパッケージ。
*/
package nablarch.fw.web;
| 12.8 | 30 | 0.71875 |
07d2ff927c2ee52b5daec5f29925916289773732 | 2,221 | /*
* ******************************************************************************
* Copyright 2011-2015 CovertJaguar
*
* This work (the API) is licensed under the "MIT" License, see LICENSE.md for details.
* ***************************************************************************
*/
package mods.railcraft.... | 26.129412 | 89 | 0.584421 |
50beac07025dcc7c5a0e6170a6ece483ff8e5f95 | 3,160 | package com.yapp18.retrospect.service;
import com.yapp18.retrospect.domain.user.User;
import com.yapp18.retrospect.domain.user.UserRepository;
import com.yapp18.retrospect.exception.OAuth2AuthenticationProcessingException;
import com.yapp18.retrospect.security.UserPrincipal;
import com.yapp18.retrospect.security.oauth... | 44.507042 | 124 | 0.738291 |
12b444a60f6209c74abfc08cbfc2dca0db44e566 | 6,530 | /*
* 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 co.edu.uniandes.csw.escarabajos.resources;
import co.edu.uniandes.csw.escarabajos.dtos.ListaDeseosDetailDTO;
import co... | 36.480447 | 156 | 0.684227 |
8d77cf06c450b93ad5081890a7463610998c5065 | 372 | package org.svgroz.vacationdb.datastore.api.model.table;
import org.svgroz.vacationdb.datastore.api.model.row.Row;
/**
* @author Simon Grozovsky svgroz@outlook.com
*/
public interface MutableTable extends Table {
/**
* @param row supposed to be not null
* @return false if table already has had row wi... | 23.25 | 64 | 0.706989 |
a0a646be8b3ab846bdea20c27337505248c8e578 | 538 | package com.soze.common.exceptions;
/**
* Requires to use either of parent's constuctors (for logging),
* but this information should not be exposed to the user.
* A generic "invalid username or password" should be returned instead.
* @author sozek
*
*/
@SuppressWarnings("serial")
public class CannotLo... | 24.454545 | 72 | 0.72119 |
559730511e517d18e61f5d42152e19c78ca71137 | 1,112 | package com.elvin.io.tcpip;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;
/**
* @author : Haifeng Pang.
* @version 0.1 : ServerHandler v0.1 2018/5/27 21:09 By Haifeng Pang.
* @description :
*/
public class ServerHan... | 25.860465 | 89 | 0.566547 |
6f8854b355f8d0616a9cf981f55c74a9eef7739c | 1,903 | package com.siyehua.wechathotfix;
import android.annotation.TargetApi;
import android.app.Application;
import android.content.Context;
import android.content.Intent;
import android.content.res.AssetManager;
import android.content.res.Resources;
import android.os.Build;
import android.support.multidex.MultiDex;
import... | 38.836735 | 101 | 0.753022 |
14e813170c891aed7e7ed1a49cd3825d3a2e31c4 | 195 | package substitute;
import java.io.IOException;
import substitute.model.Parameter;
public interface Analyzer {
void showHelp();
void analyze(final Parameter p) throws IOException;
}
| 15 | 55 | 0.758974 |
47deb534e98271caa21a06b4705bdee9c7bbb177 | 712 | package net.darkmorford.pleasewait;
import net.darkmorford.pleasewait.message.MessageStreamStatus;
import net.minecraftforge.fml.common.network.NetworkRegistry;
import net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper;
import net.minecraftforge.fml.relauncher.Side;
public class PacketHandler
{
... | 35.6 | 116 | 0.792135 |
1a32f6dbe3557452398360c5bf0553466fa8abb2 | 382 | package forestry.api.apiculture;
import java.util.ArrayList;
import forestry.api.genetics.IFlowerProvider;
import net.minecraft.item.ItemStack;
public class FlowerManager {
/**
* ItemStacks representing simple flower blocks. Meta-sensitive, processed by the basic {@link IFlowerProvider}.
*/
public static Arra... | 25.466667 | 113 | 0.78534 |
78b165753b0061f294ac92aa9d151b7281a11b80 | 2,667 | /*
* 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 org.mage.test.cards.single.soi;
import mage.constants.PhaseStep;
import mage.constants.Zone;
import org.junit.Test;
import org... | 28.37234 | 118 | 0.616048 |
64dfbefdeaecf95887410c3bc24a7fa85f9edbcb | 2,539 | package com.simpligility.maven.plugins.android.config;
import static org.easymock.EasyMock.createNiceMock;
import static org.easymock.EasyMock.expect;
import static org.easymock.EasyMock.replay;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.junit.Asser... | 35.263889 | 94 | 0.767625 |
8b465f7e7d7b0a626f6127c4ad7543bf806db36b | 2,342 | package com.dm.material.dashboard.candybar.helpers;
import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageManager;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.os.Build;
import android.support.annotation.Nul... | 39.033333 | 114 | 0.703245 |
918a98ca5cc2906f53d304ebb10575463b299d71 | 5,168 | package net.i2p.android.i2ptunnel.preferences;
import android.os.Build;
import android.os.Bundle;
import android.support.v7.preference.Preference;
import android.support.v7.preference.PreferenceGroup;
import android.support.v7.preference.PreferenceScreen;
import android.widget.Toast;
import net.i2p.android.i2ptunnel.... | 41.015873 | 114 | 0.643769 |
b35828e15c6dba91664936542e631518e18b8260 | 5,305 | package com.sleepy.blog.service.impl;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.sleepy.blog.common.Constant;
import com.sleepy.blog.entity.ImgEntity;
import com.sleepy.blog.repository.ImgRepository;
import com.sleepy.blog.service.CacheService;
import com.sleepy.blog.service.I... | 40.496183 | 172 | 0.652969 |
393e55bf500201fb9591c867dc95d7b0faee26fd | 1,343 | package sample;
import io.confluent.kafka.serializers.AbstractKafkaAvroSerDeConfig;
import io.confluent.kafka.serializers.KafkaAvroSerializer;
import org.apache.kafka.clients.producer.KafkaProducer;
import org.apache.kafka.clients.producer.ProducerConfig;
import org.apache.kafka.clients.producer.ProducerRecord;
import... | 44.766667 | 115 | 0.744602 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.