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 |
|---|---|---|---|---|---|
c424a8611ba063082e594e1dbccae455413694f3 | 2,962 | package com.example.liu.ad_detection.model;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import java.io.Serializable;
/**
* Created by liu on 2017/9/12.
*/
public class AppInfo{
private String appLabel; //应用程序标签
private Drawable appIcon ; //应用程序图像
private Intent inten... | 22.104478 | 90 | 0.610736 |
2d03d2c5bc4baeb40293413bb04266347ab2baa3 | 6,427 | package de.fraunhofer.iais.eis.ids.index.common.main;
import de.fraunhofer.iais.eis.ids.component.core.SecurityTokenProvider;
import de.fraunhofer.iais.eis.ids.component.core.SelfDescriptionProvider;
import de.fraunhofer.iais.eis.ids.component.interaction.multipart.MultipartComponentInteractor;
import de.fraunhofer.ia... | 40.677215 | 186 | 0.730512 |
290cd3124469ede42526f276bbd19117dd88332c | 1,241 | package signumj.entity.response.http.attachment;
import signumj.entity.response.TransactionAttachment;
import signumj.response.attachment.ATCreationAttachment;
import com.google.gson.annotations.SerializedName;
import org.bouncycastle.util.encoders.Hex;
public final class ATCreationAttachmentResponse extends Transac... | 28.204545 | 109 | 0.726833 |
ab0a274125b40219692e11a97b3b968049ba4c13 | 2,526 | /* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
* Software distr... | 26.87234 | 78 | 0.649644 |
a2b74a2fa945d8dc8776e924c28d041a825b5815 | 6,733 | /*
BSD 2-Clause License
Copyright (c) 2018, Timo Rantalainen
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of cond... | 33.331683 | 78 | 0.677855 |
d918d3b7199746dfada90e71cff90c00c83b7985 | 17,899 | package com.tuya.smart.android.demo.camera.utils;
import android.annotation.SuppressLint;
import android.app.AlertDialog;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.text.TextUtils;
import android.util.Log;
import android.view.MotionEvent;
i... | 44.972362 | 170 | 0.621152 |
4f10aeb70e3a2f03f057b3f0b58b1fd34ffa80d4 | 2,371 | // This file was automatically generated from IFCDOC at https://technical.buildingsmart.org/.
// Very slight modifications were made to made content align with ifcXML reference examples.
// Use this class library to create IFC-compliant (web) applications with XML and JSON data.
// Author: Pieter Pauwels, Eindhoven Uni... | 36.476923 | 274 | 0.797554 |
4521ab0de27fc6923a22f2b16de7ab8d70638364 | 2,942 | /*
* Copyright 2015 Octavian Hasna
*
* 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... | 35.02381 | 133 | 0.6431 |
e2c4a858359dcebaf53638d5058dc1d54cae4dc7 | 46,594 | package com.rmtheis.langdetect.profile;
import java.util.HashMap;
import com.cybozu.labs.langdetect.util.LangProfile;
import com.cybozu.labs.langdetect.util.NGram;
public class SW {
private static final String name = "sw";
private static final HashMap<String, Integer> freq = new HashMap<String, Integer>();
pri... | 25.885556 | 86 | 0.493089 |
86976a50a1b8a7f31a3abc8d7e72aa4bb756fab8 | 6,458 | /*
* Copyright (c) 2014. FRC Team 3309 All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this
* list of conditi... | 40.3625 | 126 | 0.533757 |
0c746372ad7bb96a15e858aad626c183b1859213 | 2,578 | // This class implements a Celsius-Fahrenheit converter
import java.awt.Color;
import java.awt.Container;
import java.awt.GridLayout;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JT... | 25.029126 | 75 | 0.606284 |
b8421da91d3f882da7fe8b72236d3cfb57b044dd | 2,101 | package sql;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.sql.*;
import java.util.*;
public class JdbcConnection implements ActionListener
{
Connection conn;
JButton jb1=new JButton("插入");
JTextField jt1=new JTextField(8);
JTextField jt2=new JTextField(8);
JTex... | 19.453704 | 92 | 0.658734 |
94f7e59c63899f0abb5bcac9b4da29bbdd9b163e | 443 | package com.zscat.mallplus.marking.vo;
import com.zscat.mallplus.pms.entity.PmsProduct;
import lombok.Getter;
import lombok.Setter;
import java.math.BigDecimal;
/**
* 秒杀信息和商品对象封装
* https://github.com/shenzhuan/mallplus on 2019/1/28.
*/
@Getter
@Setter
public class FlashPromotionProduct extends PmsProduct {
p... | 21.095238 | 55 | 0.783296 |
65d0e8926931f1bebd85b6e9d48a5de9f8d5ec86 | 748 | package mil.dds.anet.emails;
import java.util.HashMap;
import java.util.Map;
import mil.dds.anet.AnetObjectEngine;
import mil.dds.anet.beans.Report;
public class ReportReleasedEmail extends AnetEmailAction {
Report report;
public ReportReleasedEmail() {
templateName = "/emails/reportReleased.ftl";
subject =... | 21.371429 | 83 | 0.729947 |
b828b5e6af8cef3aedb6cf8cf76313e1bf6ac8cb | 19,584 | /*
* Copyright (C) 2014 Indeed 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 ... | 41.579618 | 154 | 0.595129 |
11ea635d619d0a3ec8b3a94a070b4445dfb05398 | 313 | package net.inconnection.charge.admin.account.model;
import net.inconnection.charge.admin.account.model.base.BaseZcurdField;
/**
* Generated by JFinal.
*/
@SuppressWarnings("serial")
public class ZcurdField extends BaseZcurdField<ZcurdField> {
public static final ZcurdField dao = new ZcurdField().dao();
}
| 24.076923 | 71 | 0.779553 |
a2a7eddb56394f53fa630749ae2c057079ad024e | 4,412 | /*
* Copyright 2021 the original author or authors.
* <p>
* 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
* <p>
* https://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by... | 43.254902 | 162 | 0.674071 |
1ece105cf22aae742b5020ec658ea4b361fcecbf | 2,787 | package controller.operations;
import controller.IImageProcessorController;
import controller.imageutil.ImageUtil;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.Objects;
import javax.imageio.ImageIO;
import model.IImageProcessorModel;
import model.image.IImage... | 27.594059 | 98 | 0.635091 |
a8afe653ccec3db26f0141ac261ffdef2c72401f | 2,909 | /*
* The MIT License (MIT)
*
* Copyright (c) liachmodded <https://github.com/liachmodded>
* 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 deal
* in the Software without restri... | 33.056818 | 110 | 0.720179 |
3b726ca839b094c9b5be5ccab26c7a54592935a7 | 5,064 | /*
* Copyright (c) 2013 Philipp Meinen <philipp@bind.ch>
*
* 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, ... | 26.793651 | 103 | 0.649882 |
038936f7356dff45739c600e0fe024c59457a4c0 | 2,604 | /*
* 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 distributed under t... | 31 | 118 | 0.740399 |
2e049d4227a2957148b9552bda8ac9c735284a72 | 864 | package com.skcraft.plume.common.util.event;
import static com.google.common.base.Preconditions.checkNotNull;
class Subscriber {
private final Class<?> eventClass;
private final Handler handler;
private final Order order;
Subscriber(Class<?> eventClass, Handler handler) {
this(eventClass, ha... | 23.351351 | 67 | 0.645833 |
d662b4e22076e35ce7cb0df9dea5a1ecf29e0eeb | 759 | package org.openqa.selenium.devtools.network.model;
import org.openqa.selenium.Beta;
import org.openqa.selenium.json.JsonInput;
/**
* Monotonically increasing time in seconds since an arbitrary point in the past.
*/
public class MonotonicTime {
private final java.lang.Number monotonicTime;
public Monotoni... | 26.172414 | 112 | 0.719368 |
6c2e7cc1c627ff3dd5c1f813f73c683ab0cd6bf6 | 2,484 | /*
* Copyright (c) 2018 Paweł Cholewa
*
* 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, modify, merge, publish,... | 33.12 | 121 | 0.667874 |
4f3870829c32d13c4cd9a883d57d1e1e50905764 | 7,518 | /**
DERT is a viewer for digital terrain models created from data collected during NASA missions.
DERT is Released in under the NASA Open Source Agreement (NOSA) found in the “LICENSE” folder where you
downloaded DERT.
DERT includes 3rd Party software. The complete copyright notice listing for DERT is:
Copyright © ... | 30.192771 | 112 | 0.757249 |
d15e4dbb2102a08b7c753b17cd703366d0fbfa63 | 4,341 | package com.ctrip.hermes.core.transport.command.processor;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.Thre... | 34.181102 | 121 | 0.750749 |
9cdf1fe46282d3f4819cce6e22a8abce8ed07486 | 1,174 | /*
* 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 ma... | 30.894737 | 108 | 0.713799 |
4065abc8c46d94707e5e7c759ac6197cd4349c35 | 6,194 | package com.egoveris.te.base.model;
import java.io.Serializable;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
i... | 20.442244 | 79 | 0.738457 |
5e195f7b420bfd34a924d84f2c19f115dd49a9c2 | 2,406 | /*
* Copyright 2020 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://www.apache.org/licenses/LICENSE-2.0
*
* or in ... | 40.1 | 110 | 0.749377 |
57eb6ccc25184e059c50d1b5bb0460a878f333a0 | 1,993 | package com.wondernect.stars.file.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.wondernect.elements.rdb.response.BaseStringResponseDTO;
import com.wondernect.stars.file.em.FileType;
import com.wondernect.stars.file.em.FileUploadType;
import io.swagger.annotations.ApiModel;
import io.swagger.ann... | 26.223684 | 66 | 0.733567 |
5a2db4cbbf1fc8398cab013d2f38ebc9b81031a8 | 2,896 | package org.nix.movieticketingsystem.web.contorller;
import org.nix.movieticketingsystem.commons.enums.RoleEnum;
import org.nix.movieticketingsystem.commons.utils.ResultMvcMap;
import org.nix.movieticketingsystem.pojo.dao.MovieRepository;
import org.nix.movieticketingsystem.pojo.entity.Movie;
import org.nix.movieticke... | 32.539326 | 114 | 0.60808 |
b011cd8c7cec90c3fcce1b014425b666513ddbbf | 990 | package jua.ast;
import java.util.Objects;
import jua.evaluator.LuaRuntimeException;
import jua.evaluator.Scope;
import jua.objects.LuaObject;
import jua.token.Token;
public class StatementBlock extends Statement {
private StatementList list;
public StatementBlock(Token token, StatementList statement) {
sup... | 23.571429 | 75 | 0.70303 |
1943aeeb01214b1fd9ab35b85dcd679574ca8e87 | 5,322 | package fr.inra.urgi.rarebasket.dao;
import java.time.Instant;
import java.util.Objects;
import fr.inra.urgi.rarebasket.domain.CustomerType;
import fr.inra.urgi.rarebasket.domain.OrderStatus;
import fr.inra.urgi.rarebasket.domain.SupportedLanguage;
/**
* An object returned by the reporting queries of the {@link Ord... | 33.471698 | 88 | 0.612176 |
2a1ca1169c0984acdee789f23b3bd38563345d6b | 2,993 | /*
* Copyright 2021 Alibaba Group Holding Limited.
*
* 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 ... | 41.569444 | 98 | 0.724023 |
e59316551f24eefa6ac899ac3cce15f4ec1a5666 | 1,169 | package ru.job4j.array;
import java.util.Arrays;
/**
* @author tumen.garmazhapov (gtb-85@yandex.ru)
* @since 10.2019
*/
public class Merge {
/**
* метод принимает два отсортированных массива
* и объединяет их в один
*
* @param left - первый массив;
* @param right - второй массив;
... | 22.921569 | 69 | 0.449102 |
50bd8dbd228c2915b596a5d03893eecff12e6b25 | 308 | package io.kestra.runner.kafka.streams;
import lombok.AllArgsConstructor;
import lombok.Getter;
import io.kestra.core.models.executions.Execution;
import io.kestra.core.models.flows.Flow;
@Getter
@AllArgsConstructor
public class ExecutorFlowTrigger {
Flow flowHavingTrigger;
Execution execution;
}
| 22 | 50 | 0.811688 |
6b44a254612de75c5661335a7ff39513b69e7975 | 1,607 | package io.pactflow.example.xml.provider.todo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotati... | 30.320755 | 90 | 0.695706 |
d8d6c369907a1731bb3a06242640244aeb288313 | 752 | package no.stelar7.api.r4j.basic.calling;
public class DataCallResponse
{
private final int responseCode;
private final String responseData;
DataCallResponse(final int a, final String b)
{
this.responseCode = a;
this.responseData = b;
}
/**
* Response code
... | 18.8 | 64 | 0.535904 |
379e8e0e9a56557d6fc104cde651de0744c73e45 | 933 | package ${package}.handlers.exception;
import com.amazon.ask.dispatcher.exception.ExceptionHandler;
import com.amazon.ask.dispatcher.request.handler.HandlerInput;
import com.amazon.ask.model.Response;
import java.util.Optional;
public class CatchAllExceptionHandler implements ExceptionHandler {
@Override
pub... | 38.875 | 124 | 0.729904 |
a7f9a1ed217c33ead3b64a07800851de2e02d40e | 588 | package dev.fiki.forgehax.main.mods.world;
import dev.fiki.forgehax.api.event.SubscribeListener;
import dev.fiki.forgehax.api.events.render.FogDensityRenderEvent;
import dev.fiki.forgehax.api.mod.Category;
import dev.fiki.forgehax.api.mod.ToggleMod;
import dev.fiki.forgehax.api.modloader.RegisterMod;
@RegisterMod(
... | 28 | 65 | 0.77381 |
56b5ee27f7e13353d4511bd1b762bc1442956dc6 | 550 | package com.onap.sdnc.vnfconfigcomparsion.model;
public class VnfDetails {
private String vnfId;
private String vnfDeatils;
private String vnfversion;
public String getVnfversion() {
return vnfversion;
}
public void setVnfversion(String vnfversion) {
this.vnfversion = vnfversion;
}
public String getVnfD... | 19.642857 | 48 | 0.743636 |
ce0382d43e3270a566ebb5bc922ca91f1dc7a229 | 8,335 | /*
* Copyright (C) 2018 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 ... | 34.729167 | 107 | 0.589442 |
a7d41a844b6716195ec358fc6d9d90af37fc3dce | 13,092 | package com.c.sample;
import android.annotation.SuppressLint;
import android.graphics.SurfaceTexture;
import android.hardware.camera2.CameraAccessException;
import android.hardware.camera2.CameraCaptureSession;
import android.hardware.camera2.CameraCharacteristics;
import android.hardware.camera2.CameraDevice;
import ... | 40.9125 | 134 | 0.631149 |
20fa8ae83748cde7911e4cf88cd32a2d3ec787a0 | 1,346 | package hino.controller;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import java.io.IOException;
import java.net.InetAddress;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind... | 38.457143 | 115 | 0.725111 |
b8774daed080194d403de1041060be75f5db64ee | 143 | package lsieun.agent.utils;
public class LogUtils {
public static void log(String message) {
System.out.println(message);
}
}
| 17.875 | 44 | 0.678322 |
c709af11c1eb129a35e78eea29e6a945e7e70ad0 | 487 | package team.study.guice.bindingannotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import com.google.inject.BindingAnnotation;
/**
* @author GYFeng by 2016/12/23
* @version 1.0
*/... | 25.631579 | 72 | 0.774127 |
7e4bb1e69aa6c6be909f7fb548e2664c4ef4cabc | 529 | package org.iton.messenger.model.model;
import org.iton.messenger.model.entities.ETContact;
import javax.persistence.EntityManagerFactory;
import java.util.ArrayList;
import java.util.List;
/**
* Created by ITON Solutions on 8/21/16.
*/
public class EMContact extends EntityModel <ETContact, Integer>{
public E... | 21.16 | 64 | 0.703214 |
588219546234b54ebf1def572710d20fcd04db05 | 108 | interface Foo<T> {
void run(T t, int myInt);
}
public class A implements Foo<String> {
@Overr<caret>
}
| 13.5 | 39 | 0.657407 |
cc1ef4d3b7c8bd7245c99ac6a1c209333b28de8b | 3,200 | /**
* Copyright (c) 2019. Qubole 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 writing... | 32 | 149 | 0.697188 |
5b3da21fbe72e58aab0a235c6f062bdb412c5b0b | 21,646 | package org.ssssssss.magicapi.spring.boot.starter;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.b... | 39.5 | 291 | 0.793126 |
0b4bef00b9b8f7479bdef885cc89ba5a8452d31c | 3,394 | package scimech.combat;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import scimech.mech.Fixture;
import scimech.mech.Mech;
import scimech.mech.Mount;
import scimech.people.Trait;
import trawel.extra;
public class MechCombat {
public static final float SYSTEM_DAM_MU... | 22.778523 | 145 | 0.628167 |
1b6d3d6b4cfc5dc62a3a487859d15f9d3c92f8d3 | 1,080 | /*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,... | 29.189189 | 96 | 0.740741 |
df983ebab032b141b8472aea835d249c5ea83c47 | 3,243 | package ru.job4j.multithreading.monitoresynchronizy;
import net.jcip.annotations.GuardedBy;
import net.jcip.annotations.ThreadSafe;
import java.util.*;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
public class RelatedListSynchronize<E> implements Iterable<E>{
private ... | 24.383459 | 62 | 0.474561 |
f0d2887f5680aa0047373901f33dc328df2e367a | 3,828 | package org.kuali.ole.sys.batch;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* This class represents a full file which can be separated into a number of logical files, each logical file
* holding its own set of errors, warnings, and informative messages for... | 34.486486 | 155 | 0.689655 |
905799ef4b7eb69b0bbc6ab3698ca052c066b10c | 1,279 | /*
* Copyright 2000-2008 JetBrains s.r.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 or agreed ... | 36.542857 | 91 | 0.781079 |
f54a5b55fe096e9fbca01880e8dc0b56b3ceb48f | 4,225 | /*
* 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 ... | 39.12037 | 95 | 0.723314 |
52e370108c762106e97938f86815dbca90054e07 | 853 | package net.osmand.plus.mapcontextmenu.builders;
import android.view.View;
import net.osmand.data.Amenity;
import net.osmand.data.TransportStop;
import net.osmand.plus.activities.MapActivity;
import net.osmand.plus.mapcontextmenu.MenuBuilder;
public class TransportStopMenuBuilder extends MenuBuilder {
private fina... | 28.433333 | 94 | 0.792497 |
4e8f9eb19e04eefc62f330782e3f2198c17c9015 | 355 | package de.simpleworks.staf.commons.exceptions;
public class ArgumentIsNullEmptyString extends IllegalArgumentException {
private static final long serialVersionUID = -2235606358063039269L;
// TODO use it!
public ArgumentIsNullEmptyString(final String argument) {
super(String.format("%s can't be null or e... | 32.272727 | 74 | 0.771831 |
32babfdf1854a036228132820cfd25f187bcfc2f | 68,680 | /*
* Generated by the Jasper component of Apache Tomcat
* Version: Apache Tomcat/7.0.75
* Generated at: 2019-03-09 09:30:15 UTC
* Note: The last modified time of this file was set to
* the last modified time of the source file after
* generation to assist with modification tracking.
*/
package org.ap... | 75.973451 | 210 | 0.625102 |
dd746c6532768c51257143b4645d0a79f90c296e | 869 | import mediator.mediator;
import mediator.concreteMediator;
import mediator.problemType;
//Class is responsible for controlling data coming from sensors
//If the value is out of range it calls the problem
//The problem is calling alarm() sensor method
//This method runs mediator method which communicates with other nee... | 39.5 | 105 | 0.741082 |
b5d3d224f6099200c054b3b0db4b68818d71fe55 | 382 | package sch.frog.calculator.compile.lexical.exception;
import sch.frog.calculator.compile.exception.CompileException;
/**
* 重复token异常
*/
public class DuplicateTokenException extends CompileException{
private static final long serialVersionUID = 1L;
public DuplicateTokenException(String word) {
sup... | 22.470588 | 62 | 0.727749 |
aca5558d438377b8d413b84d567befbc6b895d35 | 2,150 | /*
* Copyright 2020 NAFU_at
*
* 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.068966 | 87 | 0.690233 |
f82e686566c41b986164bc789eede5b240f6c63d | 843 | package zmaster587.advancedRocketry.api.event;
import cpw.mods.fml.common.eventhandler.Cancelable;
import zmaster587.advancedRocketry.api.IAtmosphere;
import net.minecraft.entity.Entity;
import net.minecraft.world.World;
import net.minecraftforge.event.entity.EntityEvent;
public class AtmosphereEvent extends EntityE... | 28.1 | 101 | 0.788849 |
c331142a5e42f1c423037d01b0735ee7167f6575 | 2,712 | /*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.javaagent.typed.base;
import io.opentelemetry.api.common.AttributeKey;
import io.opentelemetry.api.common.Attributes;
import io.opentelemetry.api.trace.Span;
import io.opentelemetry.api.trace.SpanContext;
imp... | 21.52381 | 76 | 0.711283 |
0509ccae91eae2992684bb29d63f9527fbc83fb7 | 1,317 | //package org.jboss.as.quickstarts.datagrid.prova.mappers;
//
//import java.nio.charset.StandardCharsets;
//
//import org.infinispan.distexec.mapreduce.Collector;
//import org.infinispan.distexec.mapreduce.Mapper;
//import org.jboss.as.quickstarts.datagrid.prova.controller.BusinessRuleController;
//
//public cl... | 30.627907 | 89 | 0.675778 |
a428cb3ab5128f63d866ab5c2168282a609be99e | 8,401 |
/*
* Copyright Contributors to the OpenCue 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 applicable... | 32.945098 | 94 | 0.672777 |
a6417749d97b75b672a0f127aedaa628b671b2a3 | 1,177 | package benchmark.microbenchmark;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.ServerSocket;
import java.net.Socket;
class SimpleServer {
public static void main(String[] args) throws Exception {
ServerSocket server = new ServerSocket(6666);
Socket socket = server.accep... | 29.425 | 95 | 0.57689 |
8ec4610ed9131c30b0ded5b7834ab5b5850e4fb5 | 842 | package com.alibaba.alink.operator.batch.recommendation;
import org.apache.flink.ml.api.misc.param.Params;
import com.alibaba.alink.common.annotation.NameCn;
import com.alibaba.alink.operator.common.recommendation.RecommType;
import com.alibaba.alink.operator.common.recommendation.UserCfRecommKernel;
import com.aliba... | 30.071429 | 75 | 0.815914 |
ebd0c861ce9b00905fb5f0f1d921ff8d5c6ed86b | 458 | //Remove node from linkedlist
//H L L L 0
Node current = head;//L
Node node = current;
Node prev = new Node('0');
prev.next = node;
while (current != null) {//1L
while (node.next != null) {//21L
if (current.value == node.next.value ) {
prev.next = prev.next.next;
}
prev =... | 20.818182 | 46 | 0.539301 |
08f29ed9d5babf2726ff0bae06892428debcb88d | 1,083 | package org.pikater.shared.database.jpa.daos;
import java.util.List;
import javax.persistence.EntityManager;
import org.pikater.shared.database.jpa.EntityManagerInstancesCreator;
import org.pikater.shared.database.jpa.JPATaskType;
public class TaskTypeDAO extends AbstractDAO<JPATaskType> {
public TaskTypeDAO() {
... | 25.186047 | 133 | 0.731302 |
de085b49bb6f1b930d70baa86d8080360ebb6a15 | 3,211 | package earlgrey.core;
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.Timer;
import java.util.TimerTask;
import org.jose4j.jwt.JwtClaims;
import org.json.JSONObject;
import earlgrey.annotations.AddConfig;
import earlgrey.annotations.AddPropertie;
import earlgrey.def.Datasource;
import ear... | 27.681034 | 99 | 0.702896 |
7cad0dd24552d2145fd013abf7334736a0f3a402 | 4,482 | package oop.focus.statistics.model;
import javafx.collections.ObservableSet;
import javafx.util.Pair;
import oop.focus.event.model.Event;
import oop.focus.event.model.EventImpl;
import org.joda.time.Days;
import org.joda.time.LocalDate;
import org.joda.time.LocalDateTime;
import org.joda.time.Minutes;
import java.uti... | 43.514563 | 146 | 0.59527 |
3a8d6a9e8cdca0a34cf0e74e5d3e93f86098a522 | 1,152 | package l2f.gameserver.taskmanager;
import java.util.concurrent.Future;
import l2f.commons.threading.RunnableImpl;
import l2f.commons.threading.SteppingRunnableQueueManager;
import l2f.commons.util.Rnd;
import l2f.gameserver.ThreadPoolManager;
import l2f.gameserver.model.Player;
public class AutoSaveManager extends ... | 21.735849 | 76 | 0.738715 |
3a42a3e6f3dd59d6360958f7901e8b273f0cf7b0 | 496 | package com.codingwasabi.trti.domain.member.model.response;
import com.codingwasabi.trti.domain.result.model.values.AnswerType;
import lombok.AllArgsConstructor;
import lombok.Getter;
@Getter
@AllArgsConstructor
public class ResponseMemberDetailResultDto {
private int id;
private Integer selected;
public... | 29.176471 | 99 | 0.802419 |
4dd462962b2da77d893d79e9b94ce0bd86343c21 | 410 | package com.quorum.tessera.discovery.internal;
import com.quorum.tessera.discovery.Discovery;
import java.util.Optional;
enum DiscoveryHolderImpl implements DiscoveryHolder {
INSTANCE;
private Discovery discovery;
@Override
public void set(Discovery discovery) {
this.discovery = discovery;
}
@Overr... | 19.52381 | 53 | 0.758537 |
dbcbd931e1a8211d9b39e052360244edb8266109 | 997 | package org.raml.olingo.codegen.core.extn;
import com.sun.codemodel.JCodeModel;
import com.sun.codemodel.JDefinedClass;
import com.sun.codemodel.JMethod;
import org.raml.model.Action;
import org.raml.model.MimeType;
import org.raml.model.Raml;
import org.raml.model.Resource;
import org.raml.model.parameter.AbstractPar... | 35.607143 | 115 | 0.767302 |
3d09f7293fe7b81af88d192f0222c7690a965509 | 246 | package org.springboot.configuration;
import org.springframework.context.annotation.Configuration;
@Configuration
public class WebMvcConfiguration {
public WebMvcConfiguration() {
System.out.println("WebMvcConfiguration created...");
}
}
| 18.923077 | 60 | 0.800813 |
e6f88daa2e9726850307ee2970a3fbb8f3a0a023 | 1,470 | package joshie.progression.json;
import joshie.progression.helpers.StackHelper;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import java.util.List;
import java.util.UUID;
public class DataCriteria {
long timestamp;
UUID uuid;
String displayName;
String displayStack;
List<... | 22.96875 | 81 | 0.636735 |
117865c6e56730423a2faa1c127a5ce838734617 | 1,041 | package br.senai.sc.edu.projetomaria.model;
import java.util.ArrayList;
import java.util.List;
import org.joda.time.DateTime;
public class RetornoHistorico {
private List<Double> listaValor = new ArrayList<Double>();
private List<Double> listaDemanda = new ArrayList<Double>();
private List<DateTime> listaDataSku... | 20.82 | 80 | 0.746398 |
f70066b133d1cb8ec76d11742fa3ffba631cb8e3 | 2,076 | /*
* Copyright (c) 2010-2018. Axon Framework
*
* 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 o... | 37.745455 | 117 | 0.741811 |
ae6ab13cf0b011214ff588d99edb28124e8d2c46 | 4,694 | package com.example.myapplication;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.PopupMenu;
import android.widget.TextView;
import android.widget.Toast;
i... | 38.793388 | 120 | 0.519599 |
ae5959bf6d8c08ad517e6001e5393c142fa1fe5b | 2,462 | package site.ycsb.db.hfu;
import de.hfu.keyvaluestore.protocol.generated.Clientapi;
import de.hfu.keyvaluestore.protocol.generated.KeyValueStoreServiceGrpc;
import io.grpc.ManagedChannel;
import io.grpc.ManagedChannelBuilder;
import java.util.Map;
import java.util.concurrent.TimeUnit;
public class BlockingGrpcKeyVal... | 31.974026 | 89 | 0.655158 |
8224dd21de56c1a7cb03985065c524b0d0fc740d | 9,576 | package org.umlg.sqlg.test.io;
import org.apache.commons.collections4.set.ListOrderedSet;
import org.apache.tinkerpop.gremlin.structure.Edge;
import org.apache.tinkerpop.gremlin.structure.Graph;
import org.apache.tinkerpop.gremlin.structure.T;
import org.apache.tinkerpop.gremlin.structure.Vertex;
import org.apache.tin... | 55.674419 | 228 | 0.639933 |
5719e4a23d84bbfbd6ff8de7ebd0366eebbd5733 | 3,444 | // Copyright 2016 Twitter. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law... | 30.210526 | 89 | 0.697154 |
0d8bb2b1a5febb4ecad53a9214ae80abc89006c3 | 252 | package com.dave;
import java.util.Comparator;
class ComparadorNombre implements Comparator<Contacto> {
@Override
public int compare(Contacto a, Contacto b) {
return a.getNombre().compareToIgnoreCase(b.getNombre());
}
}
| 22.909091 | 65 | 0.690476 |
9dd50c70647107a7e61dcbde47952530614a26e2 | 7,026 | /**
* 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... | 42.841463 | 87 | 0.639909 |
3dd1dd4d26556ee24d4d7efdc3ddd384796da46c | 3,413 | // Copyright 2017 Google 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 required by applicable law... | 25.281481 | 75 | 0.685614 |
6f28a95238d1ec2f62caba31058e9da37f5dea8f | 1,652 | package com.adaptris.core.transform.json.jolt;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.bazaarvoice.jolt.Transform;
/**
* {@link Transform} implementation that turns all nulls into the empty string {@code ""}.
* <p>
* You can use this by specify... | 26.645161 | 126 | 0.634988 |
718a386676a6b13d19ce9d841ac2a6d1e3c836dc | 8,408 | /*
* 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 ... | 39.848341 | 172 | 0.604424 |
33a95c8c12cc9bd2608fdbb2d1c93eb31928a36b | 1,643 | package deltix.qsrv.dtb.fs.chunkcache.chunkpool;
import javax.annotation.Nonnull;
import javax.annotation.ParametersAreNonnullByDefault;
import javax.annotation.concurrent.ThreadSafe;
/**
* Simple "synchronized"-based fixed size chunk pool.
*
* @author Alexei Osipov
*/
@ThreadSafe
@ParametersAreNonnullByDefault
p... | 25.671875 | 110 | 0.572124 |
7f547d3fc6525160d323d2e14843d7e0370aebd1 | 10,162 | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.components.paintpreview.player.frame;
import static org.mockito.ArgumentMatchers.eq;
import static org.mockito.Mockito.inOrder;
impo... | 41.477551 | 100 | 0.707046 |
e677cc1f1ee7507e152e98230e819aa49463b572 | 6,536 | /*
* 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.521739 | 110 | 0.711597 |
d0e80f0ec9a42cb4208b940480a5024f8207d906 | 1,764 | package io.github.liuziyuan.retrofit.proxy;
import io.github.liuziyuan.retrofit.resource.RetrofitServiceBean;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.context.ApplicationContext;
import org.spring... | 36 | 108 | 0.769274 |
768afeaccea5e6c0b1eea0976e38009f783c488a | 3,597 | /**
* Copyright 2012 Sentric AG
*
* 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 ... | 31.008621 | 131 | 0.686405 |
4387618e5018a59bcb561c3eaa0ae9d8b80269f1 | 1,077 | package repast.simphony.context.space.continuous;
import repast.simphony.context.Context;
import repast.simphony.space.continuous.ContinuousAdder;
import repast.simphony.space.continuous.ContinuousSpace;
import repast.simphony.space.continuous.DefaultContinuousSpace;
import repast.simphony.space.continuous.Point... | 37.137931 | 79 | 0.770659 |
fe134297a9b118c3e6f813870c2800ff1c5090f2 | 530 | package vcat.webapp.simple;
import java.util.MissingResourceException;
import java.util.ResourceBundle;
public class Config {
private static final String BUNDLE_NAME = "vcat.webapp.simple.config";
public static final String CONFIG_CACHEDIR = "cachedir";
private static final ResourceBundle RESOURCE_BUNDLE = Reso... | 23.043478 | 93 | 0.756604 |
40ed8d999e2c555eb795d0416d368981dc0e790e | 94 | /**
* The package that manages catalogs.
*/
package org.thinkit.api.gateway.github.catalog;
| 18.8 | 47 | 0.734043 |
729e360e7bf42f18e8d1144a0537a1bf34f71e73 | 8,127 | /*
* Copyright 2020 EPAM Systems
*
* 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 ... | 42.328125 | 153 | 0.593331 |
ec3c7f2d6410d5f383e9922b1b534456d53311f8 | 3,822 |
package com.netsuite.webservices.platform.core;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import com.netsuite.webservices.platf... | 26 | 138 | 0.615385 |
31d5e9fea01592686b051f0b09c680f4b9acc698 | 608 | package org.usfirst.frc4914.CurbStomper.commands;
import edu.wpi.first.wpilibj.command.CommandGroup;
/**
*
*/
public class AutoBaseline extends CommandGroup {
public AutoBaseline() {
// strategic delay
// addSequential(new AutoDelay(Robot.getAutoDelay()));
// drive forward
addSequenti... | 24.32 | 59 | 0.664474 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.