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 |
|---|---|---|---|---|---|
ffb8f9bd5baca7d8f5da95c4d3dfc4e13fe6807f | 2,997 | package epl.eval.values;
import epl.eval.operations.arithmetic.*;
import epl.eval.operations.comparators.*;
public record NumberValue(double number) implements Value, Addition, Subtraction, Multiplication, Division, Modulo, Greater, GreaterEqual, Less, LessEqual, Equal, Unequal
{
@Override
public String toStr... | 23.232558 | 170 | 0.57958 |
4166fea84c9c0d5419033a1d68cb89fe2c89ff1c | 1,337 | /*
* Copyright (c) 2013-2015. Urban Airship and Contributors
*/
package com.urbanairship.api.push.model.notification.actions;
import com.google.common.base.Objects;
import com.google.common.base.Preconditions;
import com.urbanairship.api.push.model.PushModelObject;
public final class RemoveTagAction extends PushM... | 24.309091 | 93 | 0.634256 |
190ea17042272831a02e326c7dd4cccac8614194 | 2,327 | package com.BUPTJuniorTeam.filemanager.utils;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
public class FileOperation {
public static boolean copyDir(File sourceDir, File targetDir) {
... | 29.455696 | 98 | 0.543189 |
e127abb025cc2b6c2cb48d8b4c4ae50714de892c | 1,165 | package models.team;
import com.avaje.ebean.Model;
import play.data.validation.Constraints;
import play.data.validation.ValidationError;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.List;
@Entity
public class Team extends Model {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)... | 21.981132 | 102 | 0.642918 |
ba82e41dda6e865b54f6ab521a754633d43aa9a9 | 6,043 | package com.shemich.mariobros.Screens;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.audio.Music;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.OrthographicCamera;
import com.badlogic.gdx.graphics.Texture;
import c... | 30.675127 | 114 | 0.651663 |
08f85d0f49ed7248fbf8197c7937e54e8e2ab45e | 466 | package io.youcham.modules.sys.service;
import com.baomidou.mybatisplus.service.IService;
import io.youcham.common.utils.PageUtils;
import io.youcham.modules.sys.entity.SysExportParameterEntity;
import java.util.Map;
/**
* 导出参数
*
* @author youcham
* @email http://www.youcham.com/
* @date 2018-10-11 11:56:57
*/... | 22.190476 | 87 | 0.76824 |
1d96f228fb71b84e46db736e7fa1226c28e7f69c | 4,277 | /* *******************************************************************************************************
Copyright (c) 2015 EXILANT Technologies Private Limited
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in... | 42.77 | 167 | 0.595745 |
119ed41a6618f889348003b258d3ed2baf9f7054 | 1,263 | //package com.mmzs.springboot.s00.application.controller;
//
//import org.springframework.scheduling.annotation.Async;
//import org.springframework.scheduling.annotation.EnableAsync;
//import org.springframework.scheduling.annotation.EnableScheduling;
//import org.springframework.scheduling.annotation.Scheduled;
//impo... | 38.272727 | 134 | 0.657165 |
40f148c2b7e2877fb2648997589ba51f850e0d4f | 4,046 | // Copyright 2009-2013 The Apache Software Foundation
//
// 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 ... | 35.80531 | 120 | 0.679684 |
6c060a872c23803a408c39c547899fe9189ecce4 | 6,627 | /**
*
Package: MAG - VistA Imaging
WARNING: Per VHA Directive 2004-038, this routine should not be modified.
Date Created:
Site Name: Washington OI Field Office, Silver Spring, MD
Developer: vhaiswlouthj
Description:
;; +--------------------------------------------------------------------+
... | 30.823256 | 159 | 0.700015 |
dcfb070e833818975843f1c2980e23903b7b4671 | 2,100 | /*****************************************************************
* 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
* ... | 31.343284 | 96 | 0.699048 |
f19f2c8a9d712ee2fd207fab9a8b079db99f293a | 9,614 | package com.berry_med.spo2.bluetooth;
import android.app.Service;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothGatt;
import android.bluetooth.BluetoothGattCallback;
import android.bluetooth.BluetoothGattCharacteristic;
import android.bluetooth.B... | 41.8 | 148 | 0.648429 |
454566fe8222684e39f8c40ad3e2714c4ed32699 | 3,346 | package net.minecraft.world.level.block.state.properties;
import net.minecraft.sounds.SoundEffect;
import net.minecraft.sounds.SoundEffects;
import net.minecraft.tags.Tag;
import net.minecraft.tags.TagsBlock;
import net.minecraft.util.INamable;
import net.minecraft.world.level.block.Blocks;
import net.minecraft.world.... | 53.111111 | 905 | 0.728332 |
08b8035a2fc489316cdcfe8ef5db01348f370fda | 890 | package com.hashedin.redmask.config;
import freemarker.template.Configuration;
import freemarker.template.TemplateExceptionHandler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class TemplateConfiguration {
private static final Logger log = LoggerFactory.getLogger(TemplateConfiguration.class);
... | 27.8125 | 89 | 0.783146 |
dd880178849dc60258db558f492f717d3fdf11fc | 2,827 | /*
* Copyright 2016 Codnos 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 agreed to in w... | 32.494253 | 113 | 0.6682 |
ef0197d675d22c97f8babe91f724be129250a0e1 | 3,336 | /*
* This file is a part of the SchemaSpy project (http://schemaspy.org).
* Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2014 John Currier
*
* SchemaSpy 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... | 42.769231 | 166 | 0.732314 |
399ea61d6c20fd4b576417999bd1acf3c9470468 | 1,222 | package org.github.dtsopensource.admin.exception;
/**
* @author ligaofeng 2016年12月23日 下午1:34:26
*/
public class DTSAdminException extends Exception {
private static final long serialVersionUID = 674322939576507543L;
/**
* init BizException
*/
public DTSAdminException() {
... | 21.068966 | 119 | 0.580196 |
49930bf09e7f9099a510d52f1dc0138055494e83 | 954 | import java.awt.Color;
import java.awt.Image;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;
public class Logica {
private JPanel panel;
private ImageIcon image;
private JLabel label;
public Logica(){
}
public JPanel panel(... | 29.8125 | 112 | 0.649895 |
ee87a7106ada5895b42f77e3b7a8d4b6ed7864d4 | 1,348 | package org.redquark.algorithms.algorithms.sort;
public class CountingSort implements Sort<Integer> {
/**
* @param data - array to be sorted
* @return sorted array
*/
@Override
public Integer[] sort(Integer[] data) {
if (data == null || data.length == 0) {
return null;
... | 26.431373 | 59 | 0.4273 |
40dc2cee6c347a41305443b281e2780777f45309 | 3,877 | package rw.ac.rca.termOneExam.utils;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.junit.MockitoJUnitRunner;
import rw.ac.rca.termOneExam.domain.City;
import rw.ac.rca.termOneExam.repository.ICityRepository;
import static org.junit.jupiter.api.Assertions.as... | 28.29927 | 91 | 0.630642 |
0f29cd838ad2adc89e7065b38010e244898e53cc | 1,881 | /*
* Copyright 2015 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 in w... | 37.62 | 98 | 0.751196 |
2f8a346d92c6a2f87b88f51acd61abc39ca46108 | 2,972 | /**
* 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... | 39.105263 | 91 | 0.69852 |
0b21108f98d01b4e0b92840a126add8390b95ea3 | 2,795 | package cn.ieclipse.smartim.actions;
import cn.ieclipse.smartim.SmartClient;
import cn.ieclipse.smartim.callback.impl.DefaultLoginCallback;
import cn.ieclipse.smartim.views.IMPanel;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.ui.MessageDialogBuilder;
import icons.SmartIcons;
/*... | 33.674699 | 82 | 0.526297 |
5106ac59fa3f943a592b3144b8d03f1492df0523 | 2,727 | package com.stylefeng.guns.rest.modular.user.controller;
import com.alibaba.dubbo.config.annotation.Reference;
import com.stylefeng.guns.rest.modular.auth.util.JwtTokenUtil;
import com.stylefeng.guns.rest.modular.user.bean.UserAuthRequest;
import com.stylefeng.guns.rest.modular.user.service.IMtimeUserTService;
import ... | 38.408451 | 99 | 0.673634 |
e1e6188c65c84554455d7c7b0e1d16f00f573b1e | 4,882 | package com.assetco.hotspots.optimization;
import com.assetco.search.results.*;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.math.BigDecimal;
import java.util.*;
import static com.assetco.hotspots.optimization.TestHelper.*;
import static org.junit.jupiter.api.Assertions.*;
... | 38.440945 | 131 | 0.690496 |
a9213bc6ede94b6e3e076392206cc7d196a44e56 | 2,577 | package tonyusamples.hockey2;
import android.graphics.Color;
import android.util.Log;
import jp.tonyumakkii.tonyusample.R;
import tonyu.kernel.TGL;
import tonyu.kernel.TonyuGraphicsFileManager;
import tonyu.kernel.TonyuPage;
public class PageIndex extends TonyuPage {
@Override
public void open(TonyuPage oldPage) {... | 32.620253 | 93 | 0.666279 |
c5599eb0ae8bddc8bb5133ab10373db27d5071e5 | 9,433 | /*
* 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.86692 | 98 | 0.669882 |
e8dc9670946887605d110d81baad2f4473642f59 | 176 | package core.ppu;
/**
* Represent the possible mirroring mode
*/
public enum Mirror {
HARDWARE,
HORIZONTAL,
VERTICAL,
ONE_SCREEN_LOW,
ONE_SCREEN_HIGH,
}
| 13.538462 | 40 | 0.670455 |
4f71fd9f0e5f05a0f62e0fbedc8d73e33f397caf | 12,802 | /*
* RDFpro - An extensible tool for building stream-oriented RDF processing libraries.
*
* Written in 2014 by Francesco Corcoglioniti with support by Marco Amadori, Michele Mostarda,
* Alessio Palmero Aprosio and Marco Rospocher. Contact info on http://rdfpro.fbk.eu/
*
* To the extent possible under law, the a... | 38.10119 | 98 | 0.519684 |
a63cbe6c440be24b34f589577bc4f87615d39177 | 1,426 | package com.alexsnowm.grocerycomparer.models.forms;
import com.alexsnowm.grocerycomparer.models.ItemMeasure;
import org.hibernate.validator.constraints.NotBlank;
import javax.validation.constraints.Digits;
import java.math.BigDecimal;
public class CreateItemForm {
@NotBlank(message = "Name required")
privat... | 22.28125 | 97 | 0.679523 |
fbffaa0d275724e52cabef0f95af574fbb52bad8 | 927 | public abstract class BD extends Livre {
// dessinateur de la BD
private String dessinateur;
/**
* Constructeur de BD qui initialise l'attribut dessinateur
* et les attributs titre et auteur grâce à l'appel de super,
* les instances de BD sont donc aussi dotées de l'identifiant
* unique "numero"
*
* @param ... | 22.609756 | 63 | 0.707659 |
2bc5ecf19d4511ccb84c97403edfe21b55a6f2ca | 303 | package com.tonghoangvu.lhufriendsbackend.common;
import lombok.Getter;
import org.jetbrains.annotations.Contract;
@Getter
public enum Const {
MAX_STUDENTS_PER_REQUEST(100);
private final int intValue;
@Contract(pure = true)
Const(int value) {
this.intValue = value;
}
}
| 17.823529 | 49 | 0.712871 |
73c21345677cc474beff179d01e904f010bc0b0a | 4,159 | /**
*/
package Gtm.impl;
import Gtm.GtmPackage;
import Gtm.LegacySeparateContractSeries;
import Gtm.LegacySeparateContractSeriesList;
import java.util.Collection;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
import org.eclip... | 27.183007 | 203 | 0.719644 |
f4ba0aef419311188250a0ea21e58a7a0ffaf323 | 311 | package im.turms.turms.pojo.dto;
import lombok.Data;
import java.util.Date;
@Data
public class UpdateGroupDTO {
Date muteEndDate;
String name;
String url;
String intro;
String announcement;
Integer minimumScore;
Long typeId;
Long successorId;
Boolean quitAfterTransfer;
}
| 16.368421 | 32 | 0.707395 |
dd1445f7de9bc773c1690cda916496b33faf0f12 | 1,068 | package repository;
import io.ebean.PagedList;
import io.ebean.ExpressionList;
import java.util.Map;
import java.util.List;
import javax.inject.Inject;
import models.ConductaDetalle;
import play.db.ebean.EbeanConfig;
public class ConductaDetalleRepository extends BaseRepository{
private static final String FIELD ... | 31.411765 | 112 | 0.716292 |
03ae4ef26d54e0a7b56b2889abde7f16c94a105b | 1,232 | package com.ctrip.framework.apollo.demo.spring.xmlConfigDemo.refresh;
import com.ctrip.framework.apollo.Config;
import com.ctrip.framework.apollo.demo.spring.xmlConfigDemo.bean.XmlBean;
import com.ctrip.framework.apollo.model.ConfigChangeEvent;
import com.ctrip.framework.apollo.spring.annotation.ApolloConfig;
import c... | 32.421053 | 88 | 0.777597 |
f0b97d02cd7022eaf831c3e51246eb881ff72a29 | 782 | package com.tiecode.platform.jstub.util;
/**
* bundle key constants
* @author Scave
*/
public interface BundleKey {
/**
* help
*/
String help_head = "help_head";
String usage = "help_usage";
String help_options_head = "help_options_head";
String help_out = "help_out";
String help_l... | 25.225806 | 51 | 0.662404 |
f1cd921525db630ba2ccc79a31ca3937545accd2 | 40,436 | /*
* Copyright 2021 AT&T
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 32.768233 | 174 | 0.720398 |
a0fa10b69f11ecacc06941f4ce4ad128414b000b | 5,694 | package tk.playerforcehd.chat.config.mysql;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import tk.playerforcehd.chat.annotation.type.Getter;
import tk.playerforcehd.chat.annotation.type.Setter;
import tk.playerforcehd.chat.exception.manager.Datab... | 25.881818 | 116 | 0.705479 |
1e0dff1f92ce8ba5f68184537f5013406823c9e3 | 2,826 | package eu.bcvsolutions.idm.acc.sync;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Description;
import org.springframework.stereotype.Component;
import eu.bcvsolutions.idm.core.api.d... | 30.717391 | 108 | 0.788393 |
b973803f31829b4dc29092d687eca713b432206e | 19,347 | /*
* The contents of this file are subject to the license and copyright
* detailed in the LICENSE and NOTICE files at the root of the source
* tree and available online at
*
* http://www.dspace.org/license/
*/
package org.dspace.app.mediafilter;
import java.io.InputStream;
import java.util.ArrayList;
import java... | 40.816456 | 120 | 0.59141 |
12af94e2f18c16aa415101beedabafa1f86f7d7b | 5,925 | /*
* Copyright 2019 Google LLC
*
* 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.801242 | 100 | 0.726751 |
9d71e659b21c770db8c044a64f8bb52fcf6ab403 | 13,059 | package de.crunc.jackson.datatype.vertx.parser;
import org.junit.Test;
import io.vertx.core.json.JsonArray;
import io.vertx.core.json.JsonObject;
import static com.fasterxml.jackson.core.JsonToken.*;
import static de.crunc.jackson.datatype.vertx.JsonArrayBuilder.array;
import static de.crunc.jackson.datatyp... | 40.181538 | 90 | 0.625316 |
e5ab8072412bf638d06a2de4f6752e4989910bab | 9,251 | /*
* This file is generated by jOOQ.
*/
package org.jease.entity.tables.records;
import org.jease.entity.tables.Users;
import org.jooq.Field;
import org.jooq.Record1;
import org.jooq.Record8;
import org.jooq.Row8;
import org.jooq.impl.UpdatableRecordImpl;
import javax.annotation.Generated;
import java.sql.Timestam... | 19.113636 | 156 | 0.498757 |
6c1cb820a30665c01bab3baa2b0458a95112ffc2 | 4,671 | /*
* (c) Copyright 2021 Palantir Technologies Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... | 39.584746 | 117 | 0.766859 |
b55007066844999becbd7b8cec484dca85bcc831 | 3,107 | package com.ipusoft.sim.http;
import android.widget.Toast;
import com.ipusoft.context.AppContext;
import com.ipusoft.context.IpuSoftSDK;
import com.ipusoft.context.bean.SimRiskControlBean;
import com.ipusoft.context.manager.PhoneManager;
import com.ipusoft.http.RequestMap;
import com.ipusoft.sim.component.IAlertDialo... | 33.771739 | 124 | 0.60412 |
3c50a5920e766eccad6572ebc724de67a6c22b72 | 960 | /*
* Copyright HZCW (He Zhong Chuang Wei) Technologies Co.,Ltd. 2013-2015. All rights reserved.
*
*
*/
package com.weheros.platform.infrastructure.filesystem;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.weheros.platform.infrastru... | 26.666667 | 94 | 0.7625 |
71c484d9538fed21c8c15e9fd3321eb0ca2b2a74 | 17,140 | package com.example.cdm.huntfun.MineActivity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Color;
import android.os.Bundle;
import android.os.Handler;
import android.... | 34.979592 | 131 | 0.535589 |
993983a657ec30348930f61352532651ce3e751c | 1,767 | package club.easyutils.weprogram.config;
/*-
* Starttag
* easy weprogram
* #
* Copyright (C) 2020 easy weprogram
* #
* 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://... | 34.647059 | 110 | 0.730617 |
1728d326c5eb7772a80f1d0408e712022b7014bc | 3,438 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.messaging.servicebus.administration.models;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotEquals;... | 41.421687 | 95 | 0.72164 |
cc9300cb8a35a19cab34af7b70cd93877c162866 | 299 | package cola;
public interface COLAInsert<K extends Comparable<K>, V> {
/**
* Inserts a new element into this COLA (main memory) data structure
*
* @param key The key of the element
* @param value The value of the element
*/
void insertElement(K key, V value);
}
| 23 | 72 | 0.64214 |
0e6e2c356023df862c05322658472c81340c5e8f | 487 | package dao.Interface;
import model.OperaMetadati;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.time.LocalDate;
import java.util.ArrayList;
public interface OperaInfoInterface
{
int OperaInfoQuery(OperaMetadati opera) throws SQLException;
void DeleteOpera(OperaMetadati delopera) thro... | 24.35 | 83 | 0.804928 |
6e2559f009d7a4685d702cf2ea0340b37d409afa | 827 | package org.springframework.demo.lifecycle.lifecycle1;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
/**
* @version 1.0
* @project: spring
* @package: org.springframework.demo.lifecycle.lifecycle1
* @author:admin
* @createTime 2021/09/30 15:55:20
*/
public class LifeCycleMain... | 27.566667 | 95 | 0.706167 |
12c1dcb2e59add84a30637bc45b31b4cc7efddee | 216 | package me.philippheuer.twitch4j.model;
import java.util.List;
import lombok.Data;
/**
* Model representing a list of chat rooms.
*/
@Data
public class ChatRoomList {
/**
* Data
*/
List<ChatRoom> rooms;
}
| 12.705882 | 43 | 0.689815 |
01218fb37d0d94927479d69def1eea30192fb8bd | 2,824 | /*
* Copyright (c) 2013, tamacat.org
* All rights reserved.
*/
package org.tamacat.httpd.auth;
import java.util.Hashtable;
import javax.naming.AuthenticationException;
import javax.naming.Context;
import javax.naming.NamingException;
import javax.naming.directory.DirContext;
import javax.naming.directo... | 29.726316 | 86 | 0.728045 |
694ebb1d1966f9191d3e7173d6ce36be8db5d2d0 | 421 | package com.epam.training.miservices.services.drugs.repository;
import com.epam.training.miservices.services.drugs.model.Symptom;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;
import java.util.Optional;
public interface SymptomRepository extends Cr... | 35.083333 | 74 | 0.826603 |
363becc21f05a9a20628c56e441e70e6ed14595c | 16,085 | /*
* 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 ... | 39.327628 | 185 | 0.614921 |
4fab1fffca2afd69e4c9aa2883e4b895e75cd029 | 4,080 | package io.advantageous.qbit.kvstore;
import io.advantageous.qbit.QBit;
import io.advantageous.qbit.json.JsonMapper;
import io.advantageous.qbit.kvstore.impl.StringDecoderEncoderKeyValueStore;
import io.advantageous.qbit.kvstore.lowlevel.LowLevelKeyValueStoreService;
import io.advantageous.qbit.reactive.Reactor;
impor... | 35.789474 | 135 | 0.726225 |
8eb584a980ed54b87f8cea1444590b1448c1e638 | 8,898 | package br.univali.cc.programacao.noaa.ui.gerenciador.control;
import br.univali.cc.programacao.noaa.model.RegistroAtmosferico;
import br.univali.cc.programacao.noaa.model.Satelite;
import br.univali.cc.programacao.noaa.persistencia.GerenciadorDeBanco;
import br.univali.cc.programacao.noaa.ui.gerenciador.NOAADaemon;
i... | 40.081081 | 130 | 0.644302 |
2459ac1421d43c068d9f7cea5bd578c6f3665a7d | 702 | package org.quickstart.javase.io.nio.sample;
// $Id$
import java.nio.ByteBuffer;
public class CreateBuffer {
static public void main(String args[]) throws Exception {
ByteBuffer buffer = ByteBuffer.allocate(1024);
buffer.put((byte) 'a');
buffer.put((byte) 'b');
buffer.put((byte) '... | 26 | 91 | 0.622507 |
475da13f79659651c8967780664bba1336ed5b6d | 360 | package test;
public class Sample152 {
public static void main(String[] args) {
Boat[] boats;
boats = new Boat[2];
boats[0] = new Boat();
boats[0].setSeatColor(50,"Green");
boats[1] = new QuickBoat();
boats[1].setSeatColor(44,"Yellow");
for ( int i=0; i < boats.length ; i++){
... | 16.363636 | 43 | 0.544444 |
0b3b286559ca4ed17d5504cf41a20634712ddc92 | 485 | package week1.day1.assignments;
public class FibonacciSeries {
// Goal: To find Fibonacci Series for a given range
public static void main(String[] args) {
int range=8,firstNum=0,secNum=1,sum;
System.out.println(firstNum);
System.out.println(secNum);
for(int i=2;i<=range;i++)//if i iterate from 1 ,i... | 24.25 | 92 | 0.653608 |
df6344cf37ea6b5cb50cf40e56823f405e47cf01 | 12,799 | package li.tengfei.apng.opt.optimizer;
import li.tengfei.apng.base.PngStream;
import li.tengfei.apng.ext.DIntWriter;
import li.tengfei.apng.opt.builder.AngChunkData;
import li.tengfei.apng.opt.builder.AngData;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.ArrayList;
import java.util.HashMa... | 35.952247 | 119 | 0.549652 |
5bca22885d4fbe813a2e8840029e6f545c35a6fe | 614 | package com.zhaolin81.spring.framework.configproperties.annotation.properties;
import org.springframework.boot.context.properties.ConfigurationProperties;
/**
* Created by zhaolin on 4/18/2018.
*/
@ConfigurationProperties(prefix = "test",locations = "classpath:test.properties")
public class AppConfigProperties {
... | 21.172414 | 81 | 0.67101 |
9b5513aeee1ef6f2160cbf00790fd0f63905c282 | 10,546 | /*
* Copyright (C) 2016 University of Freiburg.
*
* 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 ... | 39.498127 | 114 | 0.662716 |
1077e408c7d8a8bae807d6a1dc70d2857701a08e | 670 | package leetcode.Easy;
/**
* Problem Url: https://leetcode.com/problems/valid-palindrome-ii
*/
public class ValidPalindromeIi {
public boolean validPalindrome(String s) {
int i = 0, j = s.length() - 1;
while(i < j) {
if(s.charAt(i) != s.charAt(j)) {
return isPalindrom... | 22.333333 | 78 | 0.464179 |
105458d4811a83590f5f305ba0044e53954d1019 | 22,773 | /*
* Copyright (c) 2016-2021 Deephaven Data Labs and Patent Pending
*/
package io.deephaven.grpc_api.console;
import com.google.rpc.Code;
import io.deephaven.configuration.Configuration;
import io.deephaven.db.plot.FigureWidget;
import io.deephaven.db.tables.Table;
import io.deephaven.db.util.DelegatingScriptSessio... | 50.606667 | 120 | 0.560049 |
bb976c04e147c59218c87a278f308df84630d49e | 6,689 | package authoringEnvironment.pathing;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javafx.beans.property.DoubleProperty;
import javafx.beans.property.SimpleDoubleProperty;
import javafx.geometry.Pos;
import javafx.scene.Group;
import javafx.scene.image.Image... | 33.954315 | 102 | 0.660786 |
ce65b9a3ee33f55353ed1eb129f90daaf18b17ad | 7,757 | package com.ogu.mobileproject;
import androidx.appcompat.app.AppCompatActivity;
import android.app.DatePickerDialog;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.media.MediaPlayer;
import android.net.Uri;
import android.os.Bundle;
import androi... | 39.984536 | 144 | 0.622019 |
1963bdc2cc0f2b0dad6281de426603f2a75d9559 | 1,174 |
package cn.licoy.encryptbody.util;
import cn.licoy.encryptbody.enums.SHAEncryptType;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
/**
* <p>SHA加密工具类</p>
* @author licoy.cn
* @version 2018/9/5
*/
public class SHAEncryptUtil {
/**
* SHA加密公共方法
* @param string ... | 26.088889 | 70 | 0.562181 |
6ab0896d8af1a60402a640bfbb5de2c189eaea46 | 507 | package com.mediscreen.patients.api.model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Value;
import lombok.With;
@Builder(builderClassName = "Builder", toBuilder = true)
@Value
@With
@AllArgsConstructor(onConstructor = @__(@Deprecated)) // intended to be used only by tools (MapStruct, Jack... | 22.043478 | 116 | 0.69428 |
7570fae563ac4d1aac326736d0a1473df7183356 | 2,106 | /*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 34.52459 | 97 | 0.743115 |
bac7f1bea177d1e22f4249afbd12806b64def032 | 4,192 | package mjj.cma.hitnrun.GameEngine;
import android.view.MotionEvent;
import android.view.View;
import java.util.List;
public class MultiTouchHandler implements TouchHandler, View.OnTouchListener
{
private boolean[] isTouched = new boolean[20];
private int[] touchX = new int[20];
private int[] touchY = ne... | 33.536 | 133 | 0.524571 |
0285ba5e1eb082916a783db1e62df27e1b65e2a1 | 686 | package ru.job4j.switcher;
/**
* SwitcherThread
*
* @author Ksenya Kaysheva (murrcha@me.com)
* @version $Id$
* @since 0.1
*/
public class SwitcherThread extends Thread {
private Switcher switcher;
private int digit;
public SwitcherThread(Switcher switcher, int digit) {
this.switcher = switc... | 21.4375 | 57 | 0.571429 |
f5b2bf5e1be937431bedf159de0f7974b10dcccd | 1,555 | package com.containers.container.domain.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.containers.container.domain.exception.NegocioException;
import com.containers.container.domain.model.Clientes;
import com.containers.container.domai... | 28.796296 | 86 | 0.773633 |
58b970752a5d470860be74f480c62ac400189a10 | 803 | package io.gravitee.resource.cache.rediscache;
import static org.junit.Assert.assertEquals;
import org.junit.Before;
import org.junit.Test;
import redis.clients.jedis.Jedis;
public class RedisTest1 {
private Jedis jedis;
@Before
public void setUpCache() {
//Connecting to Redis server on localhost
Jedis... | 25.903226 | 83 | 0.686177 |
f6ada114e77d642add1308ec4cb93bd97b0d4867 | 152,098 | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: packimports(3)
// Source File Name: SKDEditConstraint_Stub.java
package com.ibm.tivoli.maximo.skd.app.virtual;
import java.lang.reflect.Method;
import java.rmi.RemoteExcep... | 31.129349 | 141 | 0.577121 |
5875148f510e605605cdf22510a4beccba459279 | 3,052 | package BL.Communication;
import BL.Client.ClientSystem;
import DL.Game.Referee;
import DL.Team.Members.TeamUser;
import DL.Team.Page.Page;
import DL.Team.Page.TeamPage;
import DL.Team.Team;
import DL.Users.Fan;
import DL.Users.User;
import DL.Users.UserComplaint;
import java.util.ArrayList;
import java.util.HashMap;... | 22.441176 | 93 | 0.540301 |
56f2b0370610623b0519665c5c6a7dbca3666b54 | 1,193 | /*
* 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 cst_3513_fall_2017;
/**
*
* @author drcho_000
*/
public class perfectNumber {
public static void main(Strin... | 29.097561 | 80 | 0.461861 |
2fbe72cd454afdc0db55222c70988ebe7eff230b | 3,830 | /*
* Copyright 2021 German Vekhorev (DarksideCode)
*
* 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 ... | 31.916667 | 104 | 0.591645 |
191e8d9f0cad98fd82ddd19fa2b0187681e26bce | 6,085 | /*
* 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 ... | 34.378531 | 123 | 0.631717 |
ec37a66bb21eece169ccf06e0ecfc239f314a079 | 199 | package com.main.model;
public class Link_json {
private Link Link;
public void setLink(Link Link) {
this.Link = Link;
}
public Link getLink() {
return Link;
}
}
| 16.583333 | 36 | 0.592965 |
5ebaf459ca39ae49914116f2f49326e69ec921dc | 1,372 | // @formatter:off
/*
* ---------------------------------------------------------
* Copyright(C) Microsoft Corporation. All rights reserved.
* Licensed under the MIT license. See License.txt in the project root.
* ---------------------------------------------------------
*
* ---------------------------------------------... | 23.655172 | 75 | 0.505831 |
1e3cb94c2c8e305abb067851b18c734a4dc32715 | 1,218 | package almartapps.studytodo.data.DAO;
import java.util.List;
import almartapps.studytodo.data.exceptions.ObjectNotExistsException;
public interface GenericDAO<T> {
/**
* Retrieve a single object of a certain class, given its id.
* @param id the id of the object to be fetched
* @return the object demanded
... | 28.325581 | 85 | 0.715928 |
cb8e5741b956d80b1b3649792ae42a454b9c4af4 | 6,871 | package io.github.bleoo.ysp;
import android.app.Activity;
import android.content.Context;
import android.graphics.PixelFormat;
import android.hardware.Camera;
import android.hardware.SensorManager;
import android.os.Environment;
import android.util.Log;
import android.view.OrientationEventListener;
import android.view... | 34.014851 | 139 | 0.620434 |
c79dd51f7e894d909e14a1afe9f20e845ce803ec | 1,759 | /**
* File: IntervalAnnotation.java Copyright (c) 2010 phyokyaw 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 of the License, or (at your option) any later version. This
... | 27.920635 | 81 | 0.696987 |
8923ce6905821edef88a7fa1351cf0e9efe4c2cb | 616 | package com.luckynick.shared.model;
import com.luckynick.custom.Device;
import com.luckynick.shared.IOClassHandling;
import com.luckynick.shared.SharedUtils;
import java.util.Date;
/**
* Not serialized independently, but inside of test result
*/
@IOClassHandling(sendViaNetwork = true, dataStorage = SharedUtils.Dat... | 26.782609 | 83 | 0.758117 |
c7c6934ad9224324e8ef86711477bd2693ea5157 | 69 | package ru.otus.l6.annotations.common.simple;
@C
public class D {
}
| 11.5 | 45 | 0.73913 |
db92f9f288d95258e66cc02bbdf28bfb61a408df | 438 | package com.mycompany.app.dp.behaviouralPattern.templatePattern;
public class Chess extends Game {
@Override
void initialize() {
System.out.println("Chess Game Initialized! Start playing.");
}
@Override
void start() {
System.out.println("Game Started. Welcome to in the ... | 19.909091 | 74 | 0.60274 |
e5687f939ed0d47e69d997fef79b3eff66f22178 | 2,421 | package seedu.address.model.item.field;
import static java.util.Objects.requireNonNull;
import static seedu.address.commons.util.AppUtil.checkArgument;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* Represents an Item's time (start/end date) in the address book.
* ... | 28.821429 | 92 | 0.617513 |
850392cdf54802ad1483975f44f5826b01f5f50b | 2,295 |
package com.funnyhatsoftware.spacedock.data;
import java.util.ArrayList;
import java.util.Comparator;
import android.text.TextUtils;
public class Flagship extends FlagshipBase {
static class FlagshipComparator implements Comparator<Flagship> {
@Override
public int compare(Flagship o1, Flagship ... | 28.333333 | 81 | 0.598257 |
62a023391212a6451f70a356c3be132bdcee1559 | 435 | package com.tommeng.simplejackexample.model;
public class MyColor implements BaseModel {
private long id;
private String title;
private String hex;
private String description;
public long getId() {
return id;
}
public String getTitle() {
return title;
}
public Str... | 17.4 | 44 | 0.622989 |
7c9a1f7d70f85169fb1180d45bd9da8258b14693 | 231 | class Solution {
public int XXX(int n) {
int last = 1,last2 = 1;
for(int i = 2;i<=n;i++){
int t = last+last2;
last2 = last;
last = t;
}
return last;
}
}
| 17.769231 | 32 | 0.393939 |
555a650da955d5f10eec913a71eb269184005be8 | 1,900 | /**
* <a href="http://www.openolat.org">
* OpenOLAT - Online Learning and Training</a><br>
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); <br>
* you may not use this file except in compliance with the License.<br>
* You may obtain a copy of the License at the
* <a href="http://www.apache... | 26.027397 | 82 | 0.717895 |
53d42ecd82abcc4c400d05c3aa0277e993993c4e | 3,040 | package Math_Bit;
import java.math.BigInteger;
//https://www.geeksforgeeks.org/given-a-number-find-next-smallest-palindrome-larger-than-this-number/
//https://www.interviewbit.com/problems/next-smallest-palindrome/
public class NextPalindrome {
public String solve(String A) {
int n = A.length();
... | 34.157303 | 116 | 0.46875 |
db12c8ceb76f35c1ff5db46a4963276728b6ae9c | 962 | package net.bbo51dog.chocolat.compiler;
import static org.junit.Assert.*;
import net.bbo51dog.chocolat.compiler.code.CodeGenerator;
import net.bbo51dog.chocolat.compiler.parser.node.Node;
import net.bbo51dog.chocolat.compiler.parser.node.NonTerminalNode;
import net.bbo51dog.chocolat.compiler.parser.node.NumNode;
impo... | 30.0625 | 91 | 0.587318 |
cf97f49a8cd6bc6f517275e22a614fd0520dd5b3 | 2,514 | /*
* Copyright (c) 2020 XUENENG LU. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, m... | 41.213115 | 107 | 0.666269 |
247138ff03db28747b1ef0fb9b6ab34e4fbd7046 | 2,947 | package com.base.chat.fag;
import com.base.chat.R;
import com.base.chat.c.WeChatMomentContract;
import com.base.chat.databinding.FagWechatmomentBinding;
import com.base.chat.m.WeChatMomentModel;
import com.base.chat.p.WeChatMomentPresenter;
import com.base.comm_model.event.MainTitleEvent;
import com.base.common.act.Ba... | 33.11236 | 250 | 0.701391 |
fa0605a16c16e01a112a1535c0d7cf2da883e4b0 | 4,092 | /*
* $Header: /home/cvspublic/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/loader/Reloader.java,v 1.5 2001/07/22 20:25:10 pier Exp $
* $Revision: 1.5 $
* $Date: 2001/07/22 20:25:10 $
*
* ====================================================================
*
* The Apache Software License, Version 1.1... | 37.541284 | 143 | 0.695992 |
f66962417f440d868834bc8b6c35a93462e3c23b | 2,510 | package dosije;
import java.util.Scanner;
public class TestDosije {
public static void main(String[] args) {
/*
System.out.println("------------------ PRAG ------------------");
Scanner sc = new Scanner(System.in);
System.out.print("ime osobe: ");
String ime = sc.next();
System.out.print("prezime osobe:... | 29.880952 | 74 | 0.605578 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.