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 |
|---|---|---|---|---|---|
f81bc3422df19dc62513155c5fe914a799ade994 | 31,433 | /*
* 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 applicab... | 42.592141 | 100 | 0.724716 |
110be9027edcf3dc6dfe9f58eca4b05cda3e2944 | 862 | package it.chiarani.diario_diabete.db.persistence;
import io.reactivex.Completable;
import io.reactivex.Flowable;
import io.reactivex.Single;
import it.chiarani.diario_diabete.db.UserDataSource;
import it.chiarani.diario_diabete.db.persistence.DAO.UserDao;
import it.chiarani.diario_diabete.db.persistence.entities.User... | 23.944444 | 69 | 0.730858 |
1b5838753f80aa2f0bc352c9406d6266f3529903 | 194 | package com.xnfh.bjhospital.ui.main.recommend;
import com.xnfh.bjhospital.base.BaseModel;
/**
* Created by wangxuewei on 2017/10/19.
*/
public class RecommendModel implements BaseModel {
}
| 17.636364 | 50 | 0.762887 |
1a4fdad78b866e8fd0dea316034405bb6a1b6ea1 | 1,239 | package net.hycube.simulator.log;
public final class LogHelper {
protected static final String HYCUBE_PACKAGE = "net.hycube";
protected static final String USER_LOG_SUFFIX = "log.user";
protected static final String MESSAGES_LOG_SUFFIX = "log.messages";
protected static final String DEV_LOG_SUFFIX = "log.dev";
... | 36.441176 | 147 | 0.762712 |
948e56f562efbfb22f6905c8f10983d9ee76875c | 1,048 | package cn.com.yunweizhan.medium;
public class Solution983 {
private int[] days, costs;
private Integer[] memo;
private int[] durations = new int[]{1, 7, 30};
public int mincostTickets(int[] days, int[] costs) {
this.days = days;
this.costs = costs;
memo = new Integer[days.leng... | 26.2 | 75 | 0.505725 |
0422ecac7dac568d76d6b84ab4dff4f179cc0919 | 3,415 | package com.oxygenxml.translate.plugin;
import java.awt.Desktop;
import java.awt.event.ActionEvent;
import java.net.URL;
import java.util.ArrayList;
import javax.swing.AbstractAction;
import ro.sync.ecss.extensions.api.AuthorDocumentController;
import ro.sync.ecss.extensions.api.content.TextContentIterator;
import r... | 33.811881 | 109 | 0.764568 |
f2387f576c571587a53bad5c9b651561de789674 | 454 | package com.newhopemail.ware.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.newhopemail.common.utils.PageUtils;
import com.newhopemail.ware.entity.PurchaseDetailEntity;
import java.util.Map;
/**
*
*
* @author zao
* @email mr.zaotian@gmail.com
* @date 2021-05-09 02:28:30
*/
pub... | 21.619048 | 79 | 0.770925 |
71ccb0953b0ddcc96c81053e13a3257c994b4139 | 945 | package io.github.mivek.model.trend.validity;
import io.github.mivek.internationalization.Messages;
import org.junit.Test;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.containsString;
public class ValidityTest {
@Test
public void testToString() {
Validity s... | 36.346154 | 111 | 0.696296 |
db7d98f0a8c74c3575ec103104600f8d71a25a81 | 568 | package cz.tacr.elza.repository;
import cz.tacr.elza.domain.ArrFund;
import cz.tacr.elza.domain.ArrRequest;
import java.time.LocalDateTime;
import java.util.List;
/**
* @author Martin Šlapa
* @since 08.12.2016
*/
public interface RequestRepositoryCustom {
List<ArrRequest> findRequests(ArrFund fund, ArrReques... | 29.894737 | 205 | 0.790493 |
8df37a6a878aec9b656789a01d55c20987fa80e1 | 2,556 | package com.techsol.cedc.METEFLA.googlevision;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.RectF;
import com.google.android.gms.vision.MultiProcessor;
import com.google.android.gms.vision.Tracker;
import com.google.android.gms.vision.barcode.Ba... | 29.37931 | 107 | 0.68662 |
c618b33b2e208fbae4aff262a7f2f704ddf92586 | 3,297 | package com.plusl.xybookkeepdemo.utils;
import android.inputmethodservice.Keyboard;
import android.inputmethodservice.KeyboardView;
import android.text.Editable;
import android.text.InputType;
import android.view.View;
import android.widget.EditText;
import com.plusl.xybookkeepdemo.R;
/**
* @Author LJH
* @create... | 30.813084 | 98 | 0.593873 |
3b2dd9e6d2d5ad93b5da032727faeeaeee208e94 | 8,062 | /*******************************************************************************
* Copyright 2012 EMBL-EBI, Hinxton outstation
*
* 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
*
* h... | 52.69281 | 193 | 0.680724 |
c3ad5ddf5381e15dd6e0e3e2c96aa3a63f9812fc | 291 | package com.microsoft.conference.management.domain.Repositories;
import com.microsoft.conference.management.domain.Models.ConferenceSlugIndex;
public interface IConferenceSlugIndexRepository {
void add(ConferenceSlugIndex index);
ConferenceSlugIndex FindSlugIndex(String slug);
}
| 29.1 | 77 | 0.838488 |
148b2e092b6f6125d6dace3f18e5f15f698035ce | 799 | package com.jn.langx.text.placeholder;
import com.jn.langx.text.PropertySource;
import com.jn.langx.util.Preconditions;
public class PropertySourcePlaceholderParser implements PlaceholderParser {
private PropertySource propertySource;
public PropertySourcePlaceholderParser() {
}
public PropertySour... | 25.774194 | 75 | 0.747184 |
f3baf5f27b2bc9a88bcf2da5f628a386d2c91bc6 | 326 | package vn.fpt.fsoft.stu.cloudgateway.services;
import vn.fpt.fsoft.stu.cloudgateway.domain.EC2;
import java.util.List;
public interface EC2Services {
public List<EC2> getAllEC2InstanceInRegion(String accessKey, String secretKey, String region);
public List<EC2> getAllEC2Instance(String accessKey, String secretKe... | 27.166667 | 95 | 0.809816 |
55676d466c39d9869b5c74619f4364a3787cc517 | 573 | package designPattern.creativion.singleton;
/**
* 描述: 懒汉模式,单例实例在第一次使用的时候进行创建,这个类是线程安全的,但是这个写法不推荐
*
* @author WuYanchang
* @date 2021/5/11 15:01
*/
public class SingletonExample3 {
private SingletonExample3() {
}
private static SingletonExample3 instance = null;
public static synchronized Single... | 20.464286 | 64 | 0.657941 |
617dbde828273cb02b81e3e3b399a578a40f2e7d | 2,090 | package br.com.zup.breno.mercadolivre.produto.pergunta;
import br.com.zup.breno.mercadolivre.produto.Produto;
import br.com.zup.breno.mercadolivre.produto.opiniao.Opiniao;
import br.com.zup.breno.mercadolivre.produto.opiniao.OpiniaoResponse;
import br.com.zup.breno.mercadolivre.usuario.Usuario;
import javax.pe... | 27.866667 | 100 | 0.649282 |
9bb94609d90ab517887c13279671992a235f8606 | 441 | package org.jsets.shiro.demo.mapper;
import java.util.List;
import org.jsets.shiro.demo.domain.entity.UserRoleEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* 用户角色关联Mapper
*
* @author wangjie (https://github.com/wj596)
* @date 2016年9月15日
*/
public interface UserRoleMapper ext... | 24.5 | 69 | 0.743764 |
7c2424fb4486e8d22bb49e5861da0ee1a77949de | 9,129 | package com.bptracker;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.annotation.TargetApi;
import android.app.Activity;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.KeyEvent;
im... | 29.353698 | 99 | 0.623179 |
e38536337deb718750c8d7fb9e3ec292a7d40f36 | 1,533 | package incendius.game.items;
import incendius.Constants;
import incendius.game.players.Player;
/**
*
* @author ArrowzFtw
*/
public class BankSearch {
public static int orderItems(Player c) {
for (int i = 0; i < c.getInstance().bankArray.length; i++) {
if (c.getInstance().bankArray[i] == null) {
return ... | 21 | 93 | 0.606001 |
567b17d2a1e242ec11a65b391fe921d80abc6d1e | 21,273 | package com.instructure.soseedy;
import static io.grpc.MethodDescriptor.generateFullMethodName;
import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
import static io.grpc.stub.ClientCalls.asyncClientStreamingCall;
import static io.grpc.stub.ClientCalls.asyncServerStreamingCall;
import static io.grpc.stub.Cli... | 40.831094 | 126 | 0.699478 |
f06f8c1ecbf03fa0f065e1d29a928f55127a3878 | 2,189 | package com.techhounds.lib.hid;
import edu.wpi.first.wpilibj.GenericHID;
public class DPadButton extends JoystickButton {
protected boolean isEightDirectional;
protected int direction;
public interface Direction {
int UP = 20, UP_RIGHT = 21, RIGHT = 22, DOWN_RIGHT = 23,
DOWN = 24, DOWN_LEFT = 25, LEFT =... | 29.186667 | 87 | 0.573321 |
7611ae5d4c406e3f17703b9a20910599dae974d2 | 90,894 | /*
* Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 37.251639 | 148 | 0.591931 |
c6cac62c8e8c502e71092390f4a362d5342745e4 | 5,027 | package com.ccreanga.webserver.ioutil;
import java.io.*;
import java.net.Socket;
import java.security.MessageDigest;
import java.time.Instant;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.util.Stack;
public class IOUtil {
/**
* RFC 7320 - 6.6. Tear-dow... | 34.197279 | 148 | 0.565745 |
f044674d23a8c015047a6870b652aa46152eec36 | 553 | package de.fraunhofer.iosb.ilt.fisabackend.service.mapper;
import de.fraunhofer.iosb.ilt.fisabackend.service.tree.FisaTreeNode;
/**
* A mapper applies a defined action on a {@link FisaTreeNode}.
* The action is defined by implementations of this interface.
*/
public interface Mapper extends MappingResolver {
... | 29.105263 | 68 | 0.717902 |
6f6a325f66555ad0ab9d76da616d9b4c7e305f8b | 1,252 | package net.java.pathfinder.health;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import org.eclipse.microprofile.config.inject.ConfigProperty;
import org.eclipse.microprofile.health.Health;
import org.eclipse.microprofile.health.HealthCheck;
import org.eclipse.microprofile.health.Heal... | 34.777778 | 119 | 0.742812 |
1e7243451ef57aae20d334c6be7a41ac3fe4fac0 | 1,182 | import java.util.HashMap;
import java.util.Scanner;
public class A805 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
long a = input.nextLong();
long b = input.nextLong();
input.close();
int[] primes = { 2, 3, 5, 7, 11 };
HashMap<In... | 31.105263 | 72 | 0.374788 |
36a1610593a19c6c947f6e3c47cbb40d89d4169f | 2,575 | package com.example.DemoGraphQL;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigura... | 35.273973 | 152 | 0.741748 |
5e4aca0ca5e62c5471b3b95eaf0fad36fb971b3d | 1,289 | package space.zhupeng.easycamera;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
/**
* Created by zhupeng on 2017/9/12.
*/
public class CameraInvocationHandler implements InvocationHandler {
private CameraApi mDelegate;
private CheckPermissionL... | 28.021739 | 131 | 0.683476 |
6ae16c7f073e7caed7e840f24eaf529fe1faa95a | 1,978 | package com.jungdam.comment.dto.bundle;
import com.jungdam.comment.domain.vo.Content;
import com.jungdam.comment.dto.request.CreateCommentRequest;
public class CreateCommentBundle {
private final Long memberId;
private final Long albumId;
private final Long diaryId;
private final Content content;
... | 26.026316 | 100 | 0.644085 |
b9aef60ce55a9b020d76055974f1c4ba82a4454e | 639 | package com.tapu.urlshortenerapp.service;
import com.tapu.urlshortenerapp.dto.UrlDTO;
import com.tapu.urlshortenerapp.dto.UrlResponseDTO;
import com.tapu.urlshortenerapp.model.Url;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public interface UrlService {
Url generateShortLink... | 21.3 | 69 | 0.776213 |
9e642c358253702aa76c46ae283285ba526540f4 | 344 | package ox.softeng.metadatacatalogue.restapi.services;
import ox.softeng.metadatacatalogue.domain.core.Form;
import javax.ws.rs.Path;
import ox.softeng.metadatacatalogue.domain.core.CatalogueItem;
@Path("/form")
public class FormService extends DataModelService {
public static Class<? extends CatalogueItem> typ... | 19.111111 | 64 | 0.787791 |
6e73124d6339067f24313ca4b6c72236d5677428 | 719 | package com.design.service.impl;
import java.util.List;
import com.design.dao.CourseDAO;
import com.design.pojo.Course;
import com.design.service.CourseManager;
public class CourseManagerImpl implements CourseManager {
private CourseDAO courseDAO;
public CourseDAO getCourseDAO() {
return courseDAO;
}
publi... | 17.119048 | 57 | 0.738526 |
78c7857352f6fab93d0f44fb15fe073bb2c47dc1 | 1,821 | /*
* 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 applica... | 29.370968 | 86 | 0.711148 |
4b5b13c59a6da7a510be4d0bc7ff27565ac6e58f | 23,905 | /**********************************************************************
*
* Prolog+CG : Prolog with conceptual graphs
*
* Copyright (C) 2000-2005 Adil Kabbaj
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version ... | 28.594498 | 125 | 0.639364 |
fe022dad7c6d090d24cadf9da3a09c3a92b9765f | 2,607 | /*
* Copyright 2016 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required b... | 37.242857 | 129 | 0.655926 |
5757330cb8cbe5cd863dc1b1bb3ec5221621a754 | 3,928 | package com.sdl.webapp.common.controller;
import com.google.common.collect.Lists;
import com.sdl.webapp.common.api.WebRequestContext;
import com.sdl.webapp.common.api.content.ContentProvider;
import com.sdl.webapp.common.api.content.ContentProviderException;
import com.sdl.webapp.common.api.localization.Localization;
... | 34.761062 | 101 | 0.73447 |
d56d058e8dda857257985524a7edbe5290526d60 | 9,434 | /*
* Copyright 2013 Ali Ok (aliokATapacheDOTorg)
*
* 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 appli... | 43.87907 | 205 | 0.702883 |
950ddf3fff807e8b30c17e0d5848ec1951deefd0 | 10,669 | package org.orman.mapper;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;
import org.orman.exception.FeatureNotImplementedException;
import org.orman.mapper.annotation.ManyToMany;
import org.orman.mapper.annotation.ManyToOne;
import org.orman.mapper.annota... | 27.147583 | 152 | 0.699503 |
f1abe3e069a7b0de62259d1a2e85edb36c3f498f | 7,644 | package com.example.cybersafetyapp.ActivityPackage;
import android.content.Intent;
import android.graphics.Color;
import android.support.annotation.NonNull;
import android.support.design.widget.NavigationView;
import android.support.v4.view.GravityCompat;
import android.support.v4.widget.DrawerLayout;
import android.s... | 37.655172 | 163 | 0.647828 |
72bdeeb6454dfda6855762520c1d1fd7bd8cd75e | 2,579 | package com.hackcaffebabe.mtg.gui.panel.insertupdatecard;
import java.awt.Component;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JSpinner;
import javax.swing.SpinnerNumberModel;
import javax.swing.border.TitledBorder;
import net.miginfocom.swing.MigLayout;
import com.hackcaffebabe.mtg.mode... | 28.655556 | 93 | 0.598682 |
2d7ff117fa10aac31fff06d4829869442504a40b | 2,119 | package edu.postech.aadl.maude.preferences;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.preferences.InstanceScope;
import org.eclipse.jface.preference.DirectoryFieldEditor;
import org.eclipse.jface.preference.FieldEditorPrefere... | 33.634921 | 104 | 0.789523 |
4c73a4f0623012b32fe3fbe548763b7a2124cc16 | 1,550 | package ru.job4j.io.socket.file_manager;
import java.io.*;
/**
* Класс, реализующий команду загрузки файла на сервер.
* @author agavrikov
* @since 18.08.2017
* @version 1
*/
public class UploadFile extends Action{
/**
* Команда.
*/
private static final String COMMAND = "upload";
/**
*... | 25.833333 | 79 | 0.559355 |
e260fd591fcc2a6e12944a6552eaafec670e3140 | 933 | package application.startup;
import org.telegram.telegrambots.ApiContextInitializer;
import org.telegram.telegrambots.meta.TelegramBotsApi;
import org.telegram.telegrambots.meta.exceptions.TelegramApiException;
import org.telegram.telegrambots.meta.generics.LongPollingBot;
import application.boilerplate.BotController... | 23.923077 | 104 | 0.78135 |
8681e16449e5fb1edecb9d5c93c331b1dd3953f9 | 8,588 | /* ###
* IP: GHIDRA
*
* 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 writin... | 34.352 | 105 | 0.713088 |
3afb4e947ddb89553c01da011c21ae896958e95d | 1,138 | package mx.gob.sre.nec.util.main;
import java.io.File;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class RenameFile {
private static final Map<String, String> myMap;
static {
myMap = new HashMap<String, String>();
myMap.put("DerPulgar_1_1", "1");
myMap.put("id_1_2", "2");
... | 22.313725 | 87 | 0.598418 |
2b0200d6ebe12bdb61641691e62e71d23878bb6d | 3,084 | /*
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*
* The Apereo Foundation licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may... | 33.89011 | 109 | 0.756485 |
26fe2838bc1a63b2334800522b8d7d3637e6cab0 | 3,094 | package nico.styTool;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import android.content.Context;
import android.... | 20.626667 | 104 | 0.661603 |
2f6146816bfa37c0b2dec211e2db26508ec02253 | 16,599 | /**
* COPYRIGHT (C) 2015 Alex Aiezza. All Rights Reserved.
*
* See the LICENSE for the specific language governing permissions and
* limitations under the License provided with this project.
*/
package edu.rit.flick.genetics;
import static edu.rit.flick.config.DefaultOptionSet.DELETE_FLAG;
import stat... | 34.437759 | 101 | 0.562865 |
afef025a54cdd0b406177389fc00baabb19e4cce | 1,785 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.microsoft.azure.mobile.cordova;
import com.microsoft.appcenter.AppCenter;
import com.microsoft.appcenter.utils.async.AppCenterFuture;
import com.microsoft.appcenter.utils.async.DefaultAppCenterFuture;
import a... | 31.315789 | 119 | 0.697479 |
5e3a90f29ce01cc19c93a829b623ada5d0624ce5 | 12,904 | package com.github.water.quartz.service;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.annotation.Resource;
import org.quartz.CronScheduleBuilder;
import org.quartz.CronTrigger;
import org.quartz.JobBuilder;
import org.quartz.JobDet... | 34.047493 | 107 | 0.74876 |
6b424fceb7c484155940c00edc6fdaa22e615c84 | 174 | package org.folio.ed.domain.dto;
import lombok.AllArgsConstructor;
import lombok.Data;
@Data
@AllArgsConstructor
public class CheckInItem {
private String itemBarcode;
}
| 15.818182 | 33 | 0.804598 |
82802f6ea4f3b468bb93477df2a57529e2e3f941 | 5,021 | /*
* 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 ... | 36.122302 | 142 | 0.713005 |
2bdb84f8d899b14da1e50b181405a76ccb8768f6 | 347 | package com.ucloud.library.netanalysis.callback;
import com.ucloud.library.netanalysis.module.UCAnalysisResult;
/**
* Created by joshua on 2018/9/19 14:01.
* Company: UCloud
* E-mail: joshua.yin@ucloud.cn
*/
public interface OnAnalyseListener {
/** 网络质量分析结果回调, {@link UCAnalysisResult} */
void onAnalysed(U... | 24.785714 | 62 | 0.743516 |
c2f907488bc813bd25c09354a07ea873693c8af5 | 3,124 | /*
* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" ... | 44.628571 | 111 | 0.677017 |
50663bd6b6813cdbacc00f6ae1f04c47321c8984 | 2,624 | /*
* This file is part of ScriptController, licensed under the MIT License.
*
* Copyright (c) lucko (Luck) <luck@lucko.me>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to d... | 30.511628 | 82 | 0.671875 |
f5c30b02c5bcfe31c4ee2195c94ef1051e6e3bc1 | 865 | /*
* Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package com.sun.webkit.dom;
import org.w3c.dom.html.HTMLParagraphElement;
public class HTMLParagraphEl... | 16.320755 | 95 | 0.662428 |
5d66248bd5fe5cb38a746206728123485df36e52 | 497 |
package com.bs.service;
import java.util.List;
import com.bs.entity.NewsCategory;
import com.bs.utils.PageUtil;
/**
* @author 作者 :yuedengfeng
* @date 创建时间:2019年9月14日 下午7:21:59
* @version 1.0
*/
public interface NewsCategoryService extends Service{
void addNewsCategory(NewsCategory category);
void deleteNewsC... | 19.115385 | 70 | 0.774648 |
862d755563a850e65bfea2ee0e3f9644fd975a70 | 1,053 | package net.twasi.core.plugin.api.customcommands;
import net.twasi.core.plugin.api.TwasiUserPlugin;
import net.twasi.core.translations.renderer.TranslationRenderer;
public abstract class TwasiPluginCommand extends TwasiCustomCommand {
private TwasiUserPlugin twasiUserPlugin;
public TwasiPluginCommand(TwasiU... | 27 | 80 | 0.731244 |
c846222423aeb5f897aca6a365be7c1ce791cf41 | 1,712 | /*
* This file was automatically generated by EvoSuite
* Mon Nov 14 09:26:04 GMT 2016
*/
package org.openecomp.mso.adapters.tenantrest;
import org.junit.Test;
import static org.junit.Assert.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters;
import org.junit.runner.RunWith;
... | 38.909091 | 148 | 0.777453 |
06b4ab6f4e40a5acfd27f5d370ae3abd51e9b2fb | 1,276 | package fi.jubic.quanta.auth;
import fi.jubic.easyschedule.Task;
import fi.jubic.quanta.config.Configuration;
import fi.jubic.quanta.dao.UserDao;
import fi.jubic.quanta.exception.ApplicationException;
import fi.jubic.quanta.models.User;
import javax.inject.Inject;
import javax.inject.Singleton;
import java.util.Optio... | 26.040816 | 83 | 0.623041 |
b513556a68d27c1710f1f405c6f4900778924a43 | 10,639 | package com.github.ryanlevell.adamantdriver.dataprovider;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.openqa.selenium.WebDriver;
import org.slf4j.Logger;
i... | 32.045181 | 107 | 0.690854 |
f729f9bad356f0aa5931d07597e52df2302e5c53 | 1,392 | package org.linlinjava.litemall.core;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.linlinjava.litemall.core.notify.NotifyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.annotati... | 26.264151 | 71 | 0.76796 |
1962e38512a304f2f0773d19776c517a3de2cbe4 | 13,616 | package com.example.performance_tracker;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button... | 50.80597 | 202 | 0.545314 |
d210a77f637678414f7e8919916a382441b81859 | 1,796 | /*
* TypeNativePrimitiveXML.java
*
* Created on 29 de octubre de 2004, 12:10
*/
package com.innowhere.jnieasy.core.impl.common.typedec.xml;
import com.innowhere.jnieasy.core.JNIEasyXMLException;
import com.innowhere.jnieasy.core.impl.TaskContext;
import com.innowhere.jnieasy.core.impl.common.typedec.model.TypeNati... | 29.442623 | 91 | 0.655345 |
0697c2d839939b802c5273d2161f3a8705cbc1f6 | 8,330 | /**
* Copyright (c) 2012-2019 CSMAKE, Inc.
*
* Generate by csmake.com for java Mon Oct 21 20:37:46 CST 2019
*/
package cn.ehiot;
import java.io.IOException;
import javax.servlet.annotation.WebServlet;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
... | 41.859296 | 229 | 0.536615 |
c9985a61928d91d459aa9b651305171e6431612e | 1,231 | package com.dev.mytbt.Routing.APIs.OsrmAPI.ResponseModels;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
/**
* Created by Luís Henriques for MyTbt.
* 16-04-2018, 12:25
*/
@SuppressWarnings("UnusedDeclaration")
public class OsrmRoutes {
@SerializedName("geometry"... | 19.234375 | 58 | 0.645816 |
553cbbc92c82dbcbc96684557fb86428ee14746d | 1,206 | package test.support;
public final class Category {
public static final String AUTH_TEST = "auth";
public static final String MULTI_AUTH_TEST = "multi-auth";
public static final String AMOEBA_TEST = "amoebadb";
public static final String CLINEPI_TEST = "clinepidb";
public static final... | 44.666667 | 74 | 0.679104 |
68274c12da6e6705298a1646f4aeafe6fff7453c | 4,445 | package ch.uhlme.utils;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.FileVisitResult;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.SimpleFileVisitor;
im... | 30.868056 | 99 | 0.670191 |
732995a0a8527738317969a4686e37fedf4fa892 | 5,126 | package com.home.shine.utils;
import com.home.shine.data.BaseData;
import com.home.shine.dataEx.VInt;
import com.home.shine.dataEx.VObj;
import com.home.shine.support.collection.IntList;
import com.home.shine.support.collection.IntObjectMap;
import com.home.shine.support.collection.LongObjectMap;
import java... | 20.023438 | 110 | 0.590519 |
c52fdb470593b3cf6085e17ec5ee1ae677765610 | 7,521 | package org.sil.bloom.reader;
import android.annotation.SuppressLint;
import android.net.Uri;
import android.os.AsyncTask;
import android.util.Log;
import android.widget.Toast;
import org.apache.commons.compress.archivers.ArchiveEntry;
import org.apache.commons.compress.archivers.tar.TarArchiveInputStream;
import ja... | 40.875 | 144 | 0.637814 |
ce0a286befb3dff62627c7fd9e413ce6637a466c | 2,948 | package com.showcast.hvscroll.touchhelper;
/**
* Created by taro on 16/8/21.
*/
public class ClickPointComputeHelper {
private float mCellWidth;
private float mCellHeight;
private float mIntervalInWidth;
private float mIntervalInHeight;
private float mPaddingLeft;
private float mPaddingRight;... | 32.395604 | 118 | 0.592266 |
d22b78ba2143833c2de2f883994b25eded5b2cb6 | 2,240 | package com.topway.fine.xml;
import com.topway.fine.model.CityModel;
import com.topway.fine.model.DistrictModel;
import com.topway.fine.model.ProvinceModel;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;
import java.util.ArrayList;
import java.util.List;
/... | 27.654321 | 78 | 0.632589 |
249aa994ee08fa34e0cdd16cd92106bc65e57bd2 | 5,471 | /*
* The MIT License (MIT)
*
* Copyright (c) 2017-2022 TweetWallFX
*
* 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 ... | 42.084615 | 147 | 0.681594 |
bb5b9270be8309b445ea5263e11fa51b350b82fc | 8,846 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* rendererFrame.java
*
* Created on 8-ago-2009, 15.35.11
*/
package java4d.graphicRenderer;
import com.jogamp.opengl.util.Animator;
import javax.media.opengl.awt.GLJPanel;
/**
*
* @author Pierantonio
*/
publ... | 37.483051 | 135 | 0.672846 |
fbb3e66426e2bef7b0cabaf8d1603149e8e18b54 | 4,485 | package com.codingyun.core.service.impl;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import javax.imageio.ImageIO;
import org.apache.log4j.Logger;
import org.springf... | 36.463415 | 135 | 0.631884 |
b6d43449b94a9baa1b9648db5839fb0c48691aee | 1,971 | package com.eliteams.quick4j.core.util;
import java.io.*;
/**
* @author wyx
* @date 2020/12/5
* @Time 22:56
*/
public class FileUtils {
public static void readFile(File readFile,File writeFile){
FileInputStream fileInputStream = null;
BufferedReader br =null;
FileOutputStream fileOutp... | 33.982759 | 113 | 0.55657 |
1c253384903b79fc4f82c9153953616b664d7147 | 11,170 | /*
* Copyright 2012 The Netty Project
*
* The Netty Project licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... | 37.233333 | 117 | 0.685765 |
4c14a0b2151a691e41977c01ea4448cfbcc45f37 | 1,900 | /*
* Copyright (C) 2020-21 Application Library Engineering Group
*
* 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 requir... | 34.545455 | 119 | 0.755263 |
6ba52e61dfa65a8d6c5d8b0a8bff4c25542ba09e | 2,052 | package org.netcrusher.core.meter;
import org.netcrusher.core.chronometer.Chronometer;
import org.netcrusher.core.chronometer.SystemChronometer;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicLong;
public class RateMeterImpl implements RateMeter {
private final long createdMs;
... | 26.307692 | 73 | 0.663255 |
8866fee02cbf81ecb41c3a0b9cefbc592e1100b9 | 3,227 | package com.zimmer.zombieapocalypse.creatures;
import com.zimmer.zombieapocalypse.files.CustomConfiguration;
import net.minecraft.server.v1_16_R3.*;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.craftbukkit.v1_16_R3.CraftWorld;
import org.bukkit.entity.L... | 46.1 | 124 | 0.690734 |
82c8ce7e5a69647d4c9dfe9f11d76de933d26c30 | 3,254 | /*
* 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 writing, software
* distribut... | 39.682927 | 106 | 0.731715 |
bd014e7410293af4cf3cc3f3792c34a3a933fca8 | 18,457 | /*
* Copyright (c) 2002-2012 Gargoyle 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 law ... | 38.612971 | 117 | 0.647938 |
e181dd969633e8970e2ca29f98a7ccaa7d475a31 | 783 | package parser.syntax;
import junit.framework.TestCase;
import parser.ast.AST;
import parser.visitor.OutputVisitor;
/**
* @author Dagon0577
* @date 2020/7/15
*/
public class AbstractSyntaxTest extends TestCase {
private static final boolean debug = false;
protected String outputMySQL(AST node, byte[] sql... | 27 | 89 | 0.555556 |
799070a3f348ad04d9d43ea6438e8088c97431c0 | 5,347 | package com.compomics.peptizer.util;
import com.compomics.peptizer.MatConfig;
import com.compomics.peptizer.interfaces.AgentAggregator;
import com.compomics.peptizer.util.fileio.MatLogger;
import org.apache.log4j.Logger;
import java.util.Arrays;
import java.util.HashMap;
/**
* Created by IntelliJ IDEA.
* User: kenn... | 36.623288 | 154 | 0.644474 |
d7875685f88549019262fd131dd2a4854fe1fb00 | 1,659 | package com.ls.custom_view_library.puzzle_verify;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Path;
import com.ls.comm_util_library.Size;
/**
* Captcha的拼图区域策咯
* Created by luozhanming on 2018/1/19.
*/
public abstract class CaptchaStrategy... | 22.12 | 93 | 0.664256 |
3916c7abab263c5086612d44e197e7120bd30567 | 2,478 |
package com.joymain.jecs.fi.service.impl;
import java.util.List;
import java.util.Map;
import java.math.BigDecimal;
import com.joymain.jecs.service.impl.BaseManager;
import com.joymain.jecs.fi.model.JfiPayAdvice;
import com.joymain.jecs.fi.dao.JfiPayAdviceDao;
import com.joymain.jecs.fi.service.JfiPayAdviceManager;
i... | 27.230769 | 116 | 0.718321 |
fcd2d7f31bbf2eccc560a5ba9ff8c5c1b87d4d23 | 1,363 | package net.coordinate.keeper.commands;
import com.mojang.brigadier.Command;
import com.mojang.brigadier.context.CommandContext;
import com.mojang.brigadier.exceptions.CommandSyntaxException;
import net.coordinate.keeper.data.Config;
import net.coordinate.keeper.data.Coordinates;
import net.coordinate.keeper.helpers.M... | 40.088235 | 99 | 0.768892 |
82f80d8cbadbd1df2288a211e79f423a248f88f6 | 2,324 | /*
*
*/
package au.org.aurin.wif.model.demand.info;
import au.org.aurin.wif.model.allocation.AllocationLU;
import au.org.aurin.wif.model.demand.DemandScenario;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
/**
* <b>DemandInfo.java</b> : Holds the configu... | 21.321101 | 107 | 0.663511 |
636c369080805ba6e7112fa34820eb54bc2e71fe | 3,753 | package cn.elvea.platform.xapi.service.impl;
import cn.elvea.platform.xapi.entity.AgentProfileEntity;
import cn.elvea.platform.xapi.exception.InvalidRequestException;
import cn.elvea.platform.xapi.service.AgentProfileService;
import cn.elvea.platform.xapi.utils.XApiUtils;
import lombok.extern.slf4j.Slf4j;
import org.a... | 34.431193 | 104 | 0.673328 |
419c911db2958f147e0ef7ad5d6e1b7bf4a836cd | 5,937 | /**
*
*/
package winterwell.jtwitter;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import winterwell.jtwitter.Twitter.ITweet;
/**
* @WARNING There a... | 30.761658 | 103 | 0.654876 |
1483b52c13fd5f88e9a3aa73c9bb0bbc5675d2db | 568 | package game.GameObjects;
import java.awt.image.BufferedImage;
public class Projectile extends Movable {
private int damage = 4;
public Projectile(int x, int y, BufferedImage objImage, int vx, int vy, float angle) {
super(x, y, objImage, vx, vy, angle);
}
//this will call functions that upda... | 23.666667 | 90 | 0.661972 |
85c921536432d622e8fb803bf8320106b80b06d4 | 3,094 | package de.hdm_stuttgart.huber.itprojekt.client;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.... | 29.188679 | 97 | 0.670006 |
7515965bb58ce7b6670c8b98f4bcbdf80052e836 | 2,179 | package c.f.b.b;
import android.util.Pair;
import java.util.HashMap;
public class c implements o {
static final HashMap<Pair<Integer, Integer>, String> a = new HashMap<>();
/* renamed from: b reason: collision with root package name */
static final HashMap<String, String> f2217b = new HashMap<>();
... | 50.674419 | 80 | 0.705369 |
e8a0f197531811477568bcf4291bcbe4c31b24e1 | 877 | package exercicio_6_1;
public class Week
{
public Weekdays getWeekdays(int weekdays)
{
switch(weekdays)
{
case 1: return new Sunday();
case 2: return new Monday();
case 3: return new Tuesday();
case 4: return new Wednesday();
case 5: return new Thursday();
case 6: retur... | 25.057143 | 97 | 0.578107 |
3692063f9163e5422969fbd58b4fa79c3d01ee0a | 414 | package lrg.dude.duplication;
public interface Entity {
String getName();
StringList getCode();
int getNoOfRelevantLines();
void setNoOfRelevantLines(int paramInt);
}
/* Location: C:\Users\emill\Dropbox\slimmerWorden\2018-2019-Semester2\THESIS\iPlasma6\tools\iPlasma\dude.jar!\lrg\dude\d... | 24.352941 | 156 | 0.702899 |
2957387f607a59058ebc9cc70ef5ca1d7b6fc555 | 2,221 | package com.google.android.gms.fitness.result;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.api.Status;
import com.google.android.gms.common.internal.safeparcel.C0721a;
import com.google.android.gms.common.internal.safeparcel.C0723b;
import com.google.android.gms.fitness... | 38.293103 | 95 | 0.596128 |
b3f8cc4aef55e71c9f767b7f20d97076687018f8 | 1,443 | /* */ package edu.drexel.cis.dragon.ir.classification.featureselection;
/* */
/* */ import edu.drexel.cis.dragon.ir.classification.DocClassSet;
/* */ import edu.drexel.cis.dragon.ir.index.IRCollection;
/* */ import edu.drexel.cis.dragon.ir.index.IndexReader;
/* */ import edu.drexel.cis.dragon.ma... | 42.441176 | 100 | 0.603604 |
5e58c5977da87d7d3531695a051a419648e98e49 | 614 | package perobobbot.discord.resources;
import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.Value;
@Value
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
public class SessionStartLimit {
int total;//The total number... | 40.933333 | 86 | 0.812704 |
88d507312753629b45fe9b50c184e1cbb283a058 | 29,017 | package cola.machine.game.myblocks.model.ui.html;
import com.dozenx.game.opengl.util.ShaderUtils;
import de.matthiasmann.twl.Clipboard;
import de.matthiasmann.twl.Event;
import de.matthiasmann.twl.InputMap;
import de.matthiasmann.twl.KeyStroke;
import de.matthiasmann.twl.model.DefaultEditFieldModel;
import de.matthias... | 34.626492 | 230 | 0.521487 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.