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 |
|---|---|---|---|---|---|
1f245b17570a04d70b7cbe4a508b4cc083e6cd7c | 10,367 | package com.ezwel.htl.interfaces.server.controller;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.Htt... | 39.268939 | 246 | 0.753063 |
95229bf939242f363705d6695665c7fdde707e68 | 2,694 | package catan.common.game.board.hexarray;
import catan.common.game.board.paths.Path;
import catan.common.game.board.tiles.Tile;
import catan.common.game.board.towns.Town;
import java.util.Set;
/**
* Created by Greg on 8/8/2014.
* Map system for storing board data.
*/
public class HexagonalArray {
private fin... | 27.773196 | 126 | 0.606162 |
4f4b101610cafedca6e7f4083cfe93169e4af772 | 4,196 | package SubtractFigureEffect;
import java.awt.Color;
import java.awt.Font;
import java.util.Arrays;
import java.util.List;
import com.spvessel.spacevil.ButtonToggle;
import com.spvessel.spacevil.Ellipse;
import com.spvessel.spacevil.GraphicsMathService;
import com.spvessel.spacevil.Label;
import com.spvessel.spacevil... | 38.851852 | 117 | 0.661106 |
890e6fd09161e157a2c5ad233ebc247bb1b89b4f | 2,015 | /*
This class is from Oracle PGX core demo and adjusted slightly.
*/
import static oracle.pgx.api.algorithms.Argument.createGraphArg;
import java.util.List;
import java.util.Map;
import java.io.File;
import oracle.pgx.api.*;
import oracle.pgx.api.algorithms.*;
import oracle.pgx.config.*;
import oracle.pgx.common.type... | 32.5 | 125 | 0.664516 |
2cb81ec8f07cd1bd1d4be7db63e58d36c6813193 | 1,703 | // ============================================================================
//
// Copyright (C) 2006-2021 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have... | 23.652778 | 88 | 0.574281 |
ea67fcc7debb8f1e51932c22c33149b9ad47b5f4 | 3,059 | package com.huazie.frame.core.base.cfgdata.dao.impl;
import com.huazie.frame.common.exception.CommonException;
import com.huazie.frame.db.jpa.dao.impl.AbstractFleaJPADAOImpl;
import org.springframework.transaction.annotation.Transactional;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceCo... | 26.833333 | 77 | 0.785551 |
d842d4ef0a7672e4177ce73e34080d5298442bc9 | 1,095 | package net.hashsploit.clank.server.medius.serializers;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import net.hashsploit.clank.server.medius.MediusCallbackStatus;
import net.hashsploit.clank.server.medius.MediusMessageType;
import net.hashsploit.clank.server.medius.objects.MediusMessage;
import... | 29.594595 | 85 | 0.799087 |
ee0ce7bbcafb1347a2ae1f8d6e75c3a2f86296b7 | 3,586 | // RobotBuilder Version: 1.5
//
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// Java from RobotBuilder. Do not put any code or make any change in
// the blocks... | 41.697674 | 89 | 0.733965 |
e2d341a6b8e36acbbbf589ab4c83d24086d4c358 | 526 | package com.ng.emts.christmasOffer.model.request.cbsrequest;
import java.util.List;
public class SupplementaryOffering {
private List<AddOffering> addOffering;
public void setAddOffering(List<AddOffering> addOffering){
this.addOffering = addOffering;
}
public List<AddOffering> getAddOffering(... | 23.909091 | 62 | 0.653992 |
fa4b0d7a36efc50c60e37ada9f2f2aa069a48095 | 3,671 |
package com.prowidesoftware.swift.model.mx.dic;
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 javax.xml.datatype.XMLGregoria... | 23.382166 | 88 | 0.612912 |
52a19a829c74119c591d9079d2c2bbaa0e910b4f | 6,255 | package org.ednovo.gooru.client.mvp.classpages.studentView;
import org.ednovo.gooru.client.gin.AppClientFactory;
import org.ednovo.gooru.client.mvp.search.event.SetHeaderZIndexEvent;
import org.ednovo.gooru.shared.i18n.MessageProperties;
import org.ednovo.gooru.shared.model.content.ClasspageDo;
import org.ednovo.gooru... | 35.140449 | 129 | 0.757954 |
535b3e8ca74dc13ca6f907439987f9c122d92b8c | 1,549 | package com.liyongquan.array;
/**
* 给定一个排序数组,你需要在 原地 删除重复出现的元素,使得每个元素只出现一次,返回移除后数组的新长度。
* <p>
* 不要使用额外的数组空间,你必须在 原地 修改输入数组 并在使用 O(1) 额外空间的条件下完成。
* <p>
*
* <p>
* 示例 1:
* <p>
* 给定数组 nums = [1,1,2],
* <p>
* 函数应该返回新的长度 2, 并且原数组 nums 的前两个元素被修改为 1, 2。
* <p>
* 你不需要考虑数组中超出新长度后面的元素。
* 示例 2:
* <p>
* 给定 nums = ... | 21.816901 | 74 | 0.444803 |
f07b52e83df0002b36a3d64af1b64e94455d4b10 | 492 | package uk.gov.ons.ssdc.common.validation;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import java.time.LocalDate;
import java.util.Optional;
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
public class ISODateRule implements Rule {
@Override
public Optional<String> checkValidity(Str... | 24.6 | 64 | 0.729675 |
c110512c1eb440ccee42a9dea14321f4019248eb | 2,781 | package com.samvasta.imageGenerator.common.particlefield;
import com.samvasta.imageGenerator.common.helpers.InterpHelper;
import com.samvasta.imageGenerator.common.models.PolarVector;
public class ParticleField
{
private PolarVector[] fieldValues;
private final int width;
private final int height;
pr... | 26.485714 | 132 | 0.568141 |
8ccca97befd03fbd6e8a91be3da404a81a8912a2 | 888 | package com.cgfy.mybatis.bussApi.service;
import com.cgfy.mybatis.base.service.BaseService;
import com.cgfy.mybatis.base.bean.CgfyListResponse;
import com.cgfy.mybatis.base.bean.CgfySelectInputBean;
import com.cgfy.mybatis.bussApi.bean.TestGenOutputBean;
import com.cgfy.mybatis.bussApi.bean.TestGenInputBean;
/**
* 「... | 17.76 | 82 | 0.734234 |
d4d0213fb1b72bc39ed8cb29e01dd910d4f671a1 | 346 | package org.corfudb.runtime.exceptions;
/**
* RetryExhaustedException is thrown when there is no hope in retrying and the current progress
* needs to be aborted.
* Created by zlokhandwala on 8/29/18.
*/
public class RetryExhaustedException extends RuntimeException {
public RetryExhaustedException(String s) {
... | 24.714286 | 95 | 0.739884 |
ac8d8155d678b7adbd4303bcb6547564a5cc8cf3 | 2,667 | /**
* Copyright (C) 2016 Red Hat, 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... | 34.192308 | 127 | 0.664792 |
f4641aea62a4f19def4e1190c55d88be209e84d4 | 2,393 | /* ###
* 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... | 32.337838 | 89 | 0.761387 |
1a62b0a6ab6124a6ac97bebb4e798a32ae091cf7 | 5,193 |
/*-
* ============LICENSE_START==========================================
* OPENECOMP - DCAE
* ===================================================================
* Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
* ===================================================================
* Licensed... | 42.219512 | 121 | 0.744849 |
c60f565cc00b0fb5f62f77284b35da9dc4c904e1 | 141 | package com.bx.erp.event;
import com.bx.erp.event.UI.BaseSQLiteEvent;
public class PurchasingOrderSQLiteEvent extends BaseSQLiteEvent {
}
| 17.625 | 65 | 0.815603 |
d79fc0a161d9380b39f7ae6caab0c6b172ca843b | 835 | package com.alibaba.nacos.auth.persist;
import com.alibaba.nacos.auth.model.Page;
import com.alibaba.nacos.auth.users.User;
/**
* User CRUD service.
*
* @author nkorange
* @since 1.2.0
*/
@SuppressWarnings("PMD.AbstractMethodOrInterfaceMethodMustUseJavadocRule")
public interface UserPersistService {
/**... | 19.880952 | 74 | 0.628743 |
651c858ee271ba1cc5a0cc273f3a54ce44926892 | 3,833 | package assist;
import data.Subject;
import data.UsersDB;
import data.WaitingPoolDB;
import inlinekeyboard.KeyboardCreatorImpl;
import org.telegram.telegrambots.bots.TelegramLongPollingBot;
import org.telegram.telegrambots.meta.api.methods.send.SendMessage;
import org.telegram.telegrambots.meta.exceptions.TelegramApiE... | 44.057471 | 164 | 0.715367 |
39714ce4c50e04cdb453f0bfbaec567702673282 | 976 | package com.github.marbor.shortcutsstats.export;
import com.github.marbor.shortcutsstats.model.Shortcut;
import org.apache.commons.csv.CSVFormat;
import org.apache.commons.csv.CSVPrinter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.List;
public class ExportStatistics ... | 33.655172 | 142 | 0.593238 |
be49ae2e7685fc6387233aa011e0be1b57eb9638 | 1,864 | /*
* Copyright 2020 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 by app... | 35.846154 | 152 | 0.707618 |
bcfa1a8d09b27cf43810d4258cd8606ae77635a0 | 2,093 | package bg.bulsi.egov.idp.services.validator;
import java.io.InputStream;
import javax.xml.XMLConstants;
import javax.xml.transform.stream.StreamSource;
import javax.xml.validation.Schema;
import javax.xml.validation.SchemaFactory;
import javax.xml.validation.Validator;
import org.springframework.beans.factory.annot... | 27.181818 | 123 | 0.763497 |
80075d05eda54c0ed403f0acb0f357044ad2cc43 | 607 | package boj_february;
import java.util.Arrays;
import java.util.Scanner;
public class BOJ_11050 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
int k = scanner.nextInt();
int map[][] = new int[n+2][n+2];
map[1][1]=1;
map[2][1]=1;
map[2][2... | 20.931034 | 49 | 0.553542 |
7681cd87f78b8b55ce7e3816216863cde6b70108 | 92,989 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v8/common/ad_type_infos.proto
package com.google.ads.googleads.v8.common;
/**
* <pre>
* A Gmail ad.
* </pre>
*
* Protobuf type {@code google.ads.googleads.v8.common.GmailAdInfo}
*/
public final class GmailAdInfo extends
... | 35.143235 | 235 | 0.652389 |
30a0e8950b3fe9bbe66953ae8b4fec52baf83e9e | 33,942 | /*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Eclipse Public License, Version 1.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.eclipse.org/org/documents/epl-v10.php
*
* Unless r... | 39.791325 | 107 | 0.591421 |
b419240b44ceed2a1f9dc3a5fbdf74bd9f02b7b6 | 4,590 | /**
* Copyright (C) 2014 Stratio (http://stratio.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 34.511278 | 109 | 0.694553 |
f6713d1481d379d0f38391de229d65b6f430bcc9 | 2,075 | package lib.bluetooth;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothSocket;
import java.io.IOException;
public class BluetoothDeviceSocketConnexion {
protected BluetoothDevice device;
protected BluetoothSocket bluetoothSocket = null;
/**
* Create un instance ... | 25.9375 | 118 | 0.58988 |
ebb0aab9dab84d9146a43df33e975aa7bf8c5c02 | 7,845 | package org.yoon_technology.gpu;
import static org.jocl.CL.*;
import static org.jocl.CL.CL_CONTEXT_PLATFORM;
import static org.jocl.CL.CL_DEVICE_NAME;
import static org.jocl.CL.CL_DEVICE_TYPE_ALL;
import static org.jocl.CL.CL_DEVICE_VERSION;
import static org.jocl.CL.CL_TRUE;
import static org.jocl.CL.clBuildProgram;
... | 32.962185 | 112 | 0.730911 |
2ab398575ccf0a06d17fb0529a78a11d2e4911e3 | 6,877 | /*
* Copyright 2016 JBoss by Red Hat.
*
* 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... | 39.522989 | 150 | 0.721245 |
725b69b902237996a280c9c085fc8e7bc31b1176 | 1,465 | /*
* 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... | 41.857143 | 100 | 0.715358 |
8d82e3e175e3f06e0b3fc7b8d0eeeadcebedbe8c | 212 | package elephantdb.serialize;
/**
* User: sritchie
* Date: 1/2/12
* Time: 12:37 PM
*/
public interface SerializationWrapper {
void setSerializer(Serializer serializer);
Serializer getSerializer();
}
| 17.666667 | 46 | 0.712264 |
d19448130db790eb294ea8cd80b8f7c69a526bf3 | 284 | class SimplePerceptionModel
...
void update(List<Pedestrian> pedestrians, List<Stimulus> stimuli) {
for (Pedestrian ped : pedestrians) {
mostImportantStimulus = prioritizeStimuli(stimuli, ped);
ped.setMostImportantStimulus(mostImportantStimulus);
}
}
}
| 25.818182 | 69 | 0.714789 |
8bae6bf57aa65f9f8fe4b1da675dbff1c677436b | 444 | package ch.bbv.nosyparrot.backend.frameworks.jeerest;
import javax.ws.rs.ApplicationPath;
import javax.ws.rs.core.Application;
import java.util.HashSet;
import java.util.Set;
@ApplicationPath("/")
public class MainApplication extends Application {
@Override
public Set<Class<?>> getClasses() {
Set<Clas... | 24.666667 | 53 | 0.713964 |
5195a7fec545b69d8a19a7a0c6e557426628b8bd | 5,025 | package za.co.riggaroo.minionlivewallpaper.wallpaperservice;
import android.content.Context;
import android.content.Intent;
import android.opengl.GLSurfaceView;
import android.os.Build;
import android.service.wallpaper.WallpaperService;
import android.util.Log;
import android.view.SurfaceHolder;
import java.util.Cal... | 30.454545 | 86 | 0.507662 |
eaee45804561ff752b3d34b3134f88737436e735 | 6,836 | package ltd.newbee.mall.util;
import com.alibaba.fastjson.JSON;
import ltd.newbee.mall.controller.vo.NewBeeMallOrderItemVO;
import ltd.newbee.mall.controller.vo.NewBeeMallOrderListVO;
import ltd.newbee.mall.manager.NewBeeMallOrderManager;
import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermo... | 42.197531 | 152 | 0.61103 |
bd5b858e4027425d1ea790dce245e5de7b2488e7 | 1,522 | package org.spicefactory.parsley.messaging.annotation;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
/**
* Message Handlers are the ... | 42.277778 | 146 | 0.767411 |
bbd7e2fa79325c670bc2835983eccd4f38ed5fa7 | 269 | package com.mediaplayer.wanyt.utils;
import android.util.Log;
/**
* Created on 2016/4/22 16:06
*
* Description:
*/
public class LogUtil {
private static final String TAG = "wyt_music";
public static void v(String log){
Log.v(TAG, log);
}
}
| 14.157895 | 50 | 0.639405 |
cf153aca80cd8cbd874a0e86b94228898942e613 | 3,470 | /*
* Copyright 2021 Shulie Technology, Co.Ltd
* Email: shulie@shulie.io
* 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 r... | 27.109375 | 126 | 0.637176 |
de63de0d52e5f67a1e6f1a0836eb1ecc21d1c169 | 8,116 | package uk.ac.ebi.phenotype.web.controller;
import org.mousephenotype.cda.solr.repositories.image.ImagesSolrJ;
import org.mousephenotype.cda.solr.service.*;
import org.mousephenotype.cda.web.WebStatus;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowire... | 31.827451 | 131 | 0.644406 |
48f313d32b0608933162c9e404cf75f2cba9a1d5 | 249 | package chylex.hee.world.feature.plants;
import java.util.Random;
import chylex.hee.world.structure.StructureWorld;
public interface IPlantGenerator{
void generate(GeneratePlants gen, StructureWorld world, Random rand, int x, int y, int z);
}
| 24.9 | 91 | 0.791165 |
492652310f13e22c19830048b1ad48f629c667b2 | 728 | package org.ovirt.engine.core.common.businessentities.storage;
import java.util.HashMap;
import java.util.Map;
public enum DiskInterface {
IDE("ide"),
VirtIO_SCSI("scsi"),
VirtIO("virtio"),
SPAPR_VSCSI("scsi");
private String name;
private static Map<String, DiskInterface> mappings;
sta... | 20.8 | 62 | 0.626374 |
b10ed92ee16f70a591ef6434a792fb5ac59f5e44 | 9,242 | /**
* Copyright (c) Nine Points Solutions, 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... | 40.008658 | 109 | 0.688163 |
3117a67cdbfa680c484128b7f9a16dadf2d54f94 | 984 | /**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.util;
import java.net.InetAddress;
import java.net.UnknownHostException;
import com.opengamma.OpenGammaRuntimeException;
/**
* Utility for managing IP addre... | 23.428571 | 86 | 0.64126 |
9b6138a64fe0f20e4627a382778558f80b364846 | 37,208 | package com.dream.demo;
import java.beans.XMLDecoder;
import java.beans.XMLEncoder;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.math.BigInteger;
import java.security.InvalidAlgorithmParameterException;... | 42.572082 | 127 | 0.765588 |
2814194a3f67de583b851e86582dcd8043b4b67d | 17,221 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package com.github.mikephil.charting.data;
import android.graphics.Color;
import com.github.mikephil.charting.interfaces.datasets.IBarDataSet;
import java... | 33.569201 | 96 | 0.504733 |
bca8ee645f42f2d8c3cb248690b5b17c67f75019 | 7,753 | /*
* Copyright (c) Facebook, Inc. and 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 by applic... | 33.418103 | 97 | 0.732233 |
7797d9ab133d23354e83c7c2fb6bda393ff437a0 | 653 | package dbscanner.graph;
import java.util.Map;
import java.util.Set;
public class DbSchema {
private String name;
private Map<String, DbTable> tables;
public DbSchema(String name) {
this.name = name;
}
public String getName() {
return name;
}
public Map<String, DbTable>... | 18.657143 | 56 | 0.535988 |
8477ae0f03a12a964c77e4142ca94590babfbe7b | 1,695 | /*******************************************************************************
* See the NOTICE file distributed with this work for additional information
* regarding copyright ownership.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with th... | 40.357143 | 129 | 0.719174 |
cd677f35547e6c592c93b270740a8bc917bbca6d | 8,690 | package org.reclipse.tracer.eventhandlers;
import java.util.Iterator;
import java.util.LinkedList;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.debug.core.ILaunchConfiguration;
import org.reclipse.tracer.ITracerConstants;
import org.reclipse.tracer.VMMonitor;
import org.reclipse.tracer... | 29.760274 | 94 | 0.602532 |
179d14538967a7566418d1278fffcc99484a8990 | 560 | package edu.ntu.compilers.lab4.scanner.fa;
/**
* Author: Domi
* Date: Mar 24, 2011
* Time: 6:17:23 PM
*/
public class NFA {
public final NFAState StartState, FinalState;
int level;
public NFA(int level) {
this();
this.level = level;
}
public NFA() {
St... | 19.310345 | 50 | 0.555357 |
b9a6e5d43e6208f5cc12ee66fc0b2fde544892fc | 8,249 | /*
* Copyright 2013 Martin Grotzke
*
* 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 ... | 52.541401 | 203 | 0.646624 |
a5677f4fa6cd485e9b3bce3d233d396092197f92 | 4,885 | package com.example.mobilesafe.utils;
import android.app.ProgressDialog;
import android.content.ContentResolver;
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import android.os.Environment;
import android.os.SystemClock;
import android.util.Log;
import android.util.Xml;
import... | 26.548913 | 96 | 0.502764 |
8c98cbecc875c6cc969f640266e1c8175da2da5b | 996 | package com.github.dantin.webster.support.oauth.service;
import com.github.dantin.webster.support.oauth.entity.domain.OAuthAccessToken;
import com.github.dantin.webster.support.oauth.entity.domain.OAuthRefreshToken;
import java.util.List;
import java.util.Optional;
public interface OAuthTokenService {
String extra... | 31.125 | 96 | 0.837349 |
e5e71f604c62bcbf9b770b8bc493478f158a012a | 2,591 | package com.alicloud.openservices.tablestore.core;
import com.alicloud.openservices.tablestore.core.auth.CredentialsProvider;
import com.alicloud.openservices.tablestore.core.http.CommitTransactionResponseConsumer;
import com.alicloud.openservices.tablestore.model.*;
import org.apache.http.concurrent.FutureCallback;
... | 40.484375 | 98 | 0.723273 |
87bf300d1022ce590cc3dfb0872ae0db81afc8a1 | 6,392 | package com.jstarcraft.core.common.instant;
import java.time.DayOfWeek;
import java.time.LocalDateTime;
import java.time.YearMonth;
import java.time.temporal.TemporalAdjusters;
import java.util.ArrayList;
import java.util.List;
import org.junit.Assert;
import org.junit.Test;
public class SolarExpressionT... | 46.656934 | 160 | 0.583385 |
94536236e333ac77cf9be3e8e9cf70e42b0ac1f8 | 9,688 | /*
* 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.724014 | 110 | 0.623658 |
f0868197a4422b1689abfb89c0a3ce5a0b07ccd7 | 1,365 | /*
Continue a implementação da classe Jogo: "Implemente uma classe chamada Jogo que tem como atributos um título e um preço. Faça seu construtor e dois métodos: um que exibe as informações do jogo e outro que atualiza o preço para um novo valor. " Agora altere o modificador de acesso dos atributos da classe para privad... | 42.65625 | 464 | 0.695238 |
c315b4fc18208835238b8bf0219dc674e66e1708 | 8,308 | package com.airmap.airmapsdktest.activities;
import android.os.Bundle;
import android.support.v7.widget.DividerItemDecoration;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.Toolbar;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.Menu;
import and... | 39.188679 | 145 | 0.653105 |
f6d29bafb2092436cfc5c9033cc2b76fa78f7727 | 1,398 | import java.util.InputMismatchException;
public final class PostfixCalculator {
public static Integer postFixCalc(String s) throws InputMismatchException{
InputMismatchException e = new InputMismatchException();
Stack<Integer> stack = new Stack<>();
String[] foo;
Integer op1;
Integer op2;
if(s... | 25.418182 | 76 | 0.517883 |
e2a63a6cd292266f0220fdb43ad5114155f1d8a1 | 3,607 | package com.hse.pravilov;
import com.hse.pravilov.page_objects.Login;
import com.hse.pravilov.page_objects.User;
import com.hse.pravilov.page_objects.Users;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.openqa.selenium.By;
import org.open... | 32.790909 | 109 | 0.707513 |
2aea2e278ca1f25c9826d2cf6b392ac0367e35ad | 1,705 | package ca.uhn.hl7v2.hoh.util;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
import java.net.SocketException;
import javax.net.ServerSocketFactory;
import ca.uhn.hl7v2.hoh.sockets.ISocketFactory;
import ca.uhn.hl7v2.util.SocketFactory;
import ca.uhn.hl7v2.util.StandardSocketFactor... | 25.447761 | 82 | 0.748387 |
5c85ce3d776d11362376cd312a7ec2132d931475 | 2,237 | package com.google.ar.core.examples.java.computervision;
import android.view.MotionEvent;
import android.view.Surface;
import android.view.View;
/**
* Tracks the touches to the rendering view and updates the splitter position in
* {@link CpuImageRenderer}.
*/
class CpuImageTouchListener implements View.OnTouchList... | 34.953125 | 80 | 0.702727 |
ba36f2f187698030fed448603069bcfe3bfc03b7 | 1,962 | package com.ch.service;
import com.ch.configuration.FluentLoggingConfiguration;
import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import org.fluentd.logger.FluentLogger;
/**
* Created by elliott.jenkins on 19/05/2016.
*/
@SuppressWarnings("PMD")
public class LoggingService {
public static Strin... | 27.25 | 109 | 0.682977 |
6c6489b7d9a106d493c04aa25fa67d170e8b42c6 | 925 | /*
* Copyright Lealone Database Group.
* Licensed under the Server Side Public License, v 1.
* Initial Developer: zhh
*/
package org.lealone.orm.property;
import java.sql.Timestamp;
import org.lealone.db.value.Value;
import org.lealone.db.value.ValueTimestamp;
import org.lealone.orm.Model;
/**
* Property for ja... | 21.511628 | 77 | 0.667027 |
59aea7b0c1c02540d2fd3cb5dddd12fb4597f989 | 5,819 | package game;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.io.File;
import java.io.PrintWriter;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.Clip;
/**
* This Class is how we communicate Player's movements to the Serv... | 26.815668 | 104 | 0.639457 |
5f311bb46dd9e09e54f3bf93eb641ea9eb6b4bb6 | 747 | package io.skysail.server.app.designer.codegen;
import java.net.URI;
import javax.tools.SimpleJavaFileObject;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class SourceCode extends SimpleJavaFileObject {
private String contents = null;
public SourceCode(String className, String contents) {
s... | 26.678571 | 82 | 0.694779 |
0901e538eddf0276488c3663f210f133a11c9e0a | 2,233 | package com.epita.guereza.application;
import com.epita.domain.Document;
import com.epita.eventbus.client.EventBusClient;
import com.epita.eventsourcing.Event;
import com.epita.eventsourcing.EventStore;
import com.epita.guereza.StringListWrapper;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.slf4j.Log... | 37.847458 | 97 | 0.644872 |
04a49a810eaffb7481c7d451897d6cbbd868c90a | 7,744 | /*
* Copyright 2014 Nicolas Morel
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 46.933333 | 140 | 0.610925 |
f7b7f990c8375b82a1ab82bd1f06d3dc844017b9 | 2,111 | /*
* Copyright 2000-2021 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 agre... | 39.092593 | 153 | 0.75225 |
26f226135109da338e680b8baf8c0c5f674bb341 | 563 | package edu.umb.cs680.hw12.apfs;
import edu.umb.cs680.hw12.fs.*;
import java.time.LocalDateTime;
import java.util.LinkedList;
public class ApfsLink extends ApfsElement
{
public ApfsLink(ApfsDirectory parent, String name, int size, LocalDateTime creationTime, ApfsElement target) {
super(parent, name, size, creationT... | 21.653846 | 111 | 0.737123 |
fc2d77d850c6c0b8280d65eee36a68dcc7c78482 | 8,412 | /*
* Copyright (C) 2013 Maciej Górski
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 26.205607 | 102 | 0.557775 |
b7d44d5c208189bc761474e6bc0df47da59c6b20 | 1,766 | package mage.cards.m;
import mage.abilities.condition.common.ProwlCostWasPaidCondition;
import mage.abilities.decorator.ConditionalOneShotEffect;
import mage.abilities.effects.Effect;
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
import mage.abilities.effects.common.GainLifeEffect;
import mage.a... | 34.627451 | 141 | 0.738958 |
1db80a7650dc094f447d77a277245bcd1161c63c | 1,552 | package com.chaos.reactive.fragments.ui.fragments;
import android.graphics.Color;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.chaos.reactive.fragments.R;
import com.chaos.reactive.fragment... | 27.714286 | 103 | 0.695232 |
c70d6814a395d9bbe0f32884bec3f6e447ffccd1 | 4,081 | package frc.robot;
import java.util.ArrayList;
import java.util.List;
import com.kauailabs.navx.frc.AHRS;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
public class Path {
private List<Segment> segments = new ArrayList<>();
private int step = 0;
private boolean turning = true;
... | 30.684211 | 153 | 0.599608 |
d54595803c5d0e993cfc69b9b7523e67663426b6 | 3,801 | package cn.fanrunqi.materiallogin.Activity.Adapter;
import android.animation.ObjectAnimator;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.util.SparseBooleanArray;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android... | 30.166667 | 92 | 0.687451 |
fa1ec9cc3c59cf7178a98fccc87bb29e5ce9e429 | 1,793 | package cz.creeper.customitemlibrary.feature.inventory.simple;
import cz.creeper.customitemlibrary.feature.DurabilityRegistry;
import lombok.Builder;
import lombok.NonNull;
import lombok.Value;
import org.spongepowered.api.data.key.Keys;
import org.spongepowered.api.item.ItemType;
import org.spongepowered.api.item.inv... | 33.830189 | 109 | 0.710541 |
9291008b7b57f714e9b1ea1cba90d35119295153 | 1,654 | /**
* Projet : Notifium
* Students : Raphaël Margueron / Fabien Mottier / Segan Salomon
* Teacher : Aicha Rizzotti
* Module : 3255.1-Developpement_mobile
* Repository Git : https://github.com/HE-Arc/Notifium
* Date : 25.01.2019
*/
package devmobile.hearc.ch.notifium.logicals.serializer;
import com.google.gson.J... | 35.191489 | 121 | 0.735187 |
9feac1d5812fdd574014df6dad5332adb5e88ef8 | 2,166 | /*******************************************************************************
* Copyright (c) 2000, 2012 QNX Software Systems and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distributio... | 33.84375 | 96 | 0.656971 |
44c4ac374b4d727f9cce0c3a59a219c8c4469308 | 3,025 | package com.ouweihao.community.controller;
import com.ouweihao.community.annotation.LoginRequired;
import com.ouweihao.community.entity.Comment;
import com.ouweihao.community.entity.DiscussPost;
import com.ouweihao.community.entity.Event;
import com.ouweihao.community.event.EventProducer;
import com.ouweihao.community... | 33.611111 | 95 | 0.694876 |
906c9375f14a3b93cabffe356f87a3de4239ab8a | 170 | package ro.ase.csie.cts.g1094.dp.proxy;
public interface LoginInterface {
public boolean login(String username, String pass);
public boolean checkServerStatus();
}
| 18.888889 | 52 | 0.776471 |
54d8979f9bfb6ebc1ccc560ef5595d76953e2382 | 3,766 | package l05_Methods_Functions_100;
import java.util.Scanner;
public class MethodBasics {
public void MethodFunction() {
// TODO Auto-generated method stub
int length, width;
@SuppressWarnings("resource")
Scanner input = new Scanner(System.in);
System.out.print("Enter Length : ");
length = input.nextIn... | 35.866667 | 82 | 0.64445 |
f5f502ab1164f02cb1da48958680664859d4a1b6 | 2,848 | package com.camurphy.wallpapers.mario.animation;
import java.util.ArrayList;
import java.util.List;
import com.camurphy.wallpapers.mario.IObserver;
public class Sequencer {
private int mFrameCount;
private int mCurrentFrame;
private long mElapsedTime;
private int[] mFrameTimes;
private List<I... | 33.505882 | 120 | 0.61868 |
33e74dd64a943bacfa20d3cd40f5e65a0126fb89 | 8,725 | package br.univates.java.poo.pratica25;
import lombok.Getter;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
/**
* @author jean.franz
* @date 15/06/2021
**/
@Getter
public class ViewContato extends JFrame {
private ... | 63.224638 | 506 | 0.722178 |
5de9ac48b35de2dad06947963dac73c4bbc82b73 | 482 | package com.hwangfantasy.exception;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
/**
* @作者 yunfeiyang
* @创建时间: 2017/5/25 <br/>
* @方法描述: ExceptionHandler. <br/>
*/
@ControllerAdvice
public class SampleExceptionHandler {
//所有抛出... | 25.368421 | 64 | 0.753112 |
567cfd071dfd43aa839668096fb94696c6e4f7f2 | 6,163 | /**
* Copyright 2017 ZTE Corporation.
*
* 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 agre... | 21.473868 | 99 | 0.699172 |
dcf084233af248ee1b6006ff262a2f5d918a5d56 | 1,215 | package com.rohan.trainings.servlets.filters;
import jakarta.servlet.http.HttpFilter;
import java.io.IOException;
import java.io.PrintWriter;
import jakarta.servlet.FilterChain;
import jakarta.servlet.FilterConfig;
import jakarta.servlet.ServletException;
import jakarta.servlet.ServletRequest;
import jakarta.servlet.... | 24.795918 | 90 | 0.756379 |
75a77c8435b7122565bada18e264e25a0cbae478 | 728 | package com.packages.movieapp.db;
import java.util.List;
import androidx.lifecycle.LiveData;
import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;
import androidx.room.Update;
@Dao
public interface MovieDao {
@Quer... | 23.483871 | 52 | 0.756868 |
daa76aaaa75444292613803401b2f764def71416 | 46,556 | package cashier;
/*
* Created by faisalamir on 15/12/21
* cashier-cli
* -----------------------------------------
* Name : Muhammad Faisal Amir
* E-mail : faisalamircs@gmail.com
* Github : github.com/amirisback
* -----------------------------------------
* Copyright (C) 2021 FrogoBox Inc.
* All rights ... | 49.370095 | 178 | 0.540854 |
1ddd786d0179954bb06a7aea13c37cc35d38d409 | 1,762 | /* Copyright (c) 2011 Danish Maritime Authority.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | 35.24 | 106 | 0.694665 |
31c2823712f4f69b9b8344448cbef9d924ab7c12 | 1,742 | package uk.dangrew.jwags.simulation.actions.logic;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.fail;
import static uk.dangrew.jwags.simulation.model.DinosaurType.BasicDinosaur;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mock... | 37.06383 | 91 | 0.749139 |
ea1880a2915c51ccd1a6c6c7ddca529989f192e9 | 525 | package com.example.developmenttask;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
@SpringBootApplication
@Componen... | 29.166667 | 70 | 0.826667 |
dc12965999536810ed3bc00fab06392117ae1754 | 1,825 | /**
*/
package edu.kit.ipd.sdq.kamp4aps.model.DeploymentContext;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>Repository</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following feat... | 40.555556 | 154 | 0.717808 |
a191b335382e8edf31614aa8eda43d2bcdbf0359 | 689 | public class Conta {
protected double saldo;
public boolean saca(double valor) {
if (this.saldo >= valor) {
this.saldo -= valor;
return true;
} else {
return false;
}
}
public void deposita(double valor) {
this.saldo += valor;... | 18.131579 | 46 | 0.506531 |
6a8d44da4ed39d0b67eab314e449642c1d493397 | 238 | package spritz;
@MetaDataSource
public interface MultipleCategoriesStream<T>
{
@DocCategory( { DocCategory.Type.PEEKING, DocCategory.Type.TRANSFORMATION } )
default MultipleCategoriesStream<T> anOperator()
{
return null;
}
}
| 19.833333 | 79 | 0.760504 |
881fb2d1aa48fd7466a0ed35ffa31b430d1519c2 | 1,984 | package de.adorsys.opba.protocol.facade.util.logresolver.domain.context;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import de.adorsys.opba.protocol.api.dto.NotSensitiveData;
import de.adors... | 34.206897 | 101 | 0.677419 |
7efc1582427d7d31b658cd78b56e33385698da37 | 11,442 | /*
* An XML document type.
* Localname: connectionErrorResponse
* Namespace: http://developer.intuit.com/
* Java type: com.intuit.developer.ConnectionErrorResponseDocument
*
* Automatically generated - do not modify.
*/
package com.intuit.developer;
/**
* A document containing one connectionErrorResponse(@htt... | 67.305882 | 279 | 0.741916 |
8db909cc0d93f23adb08789552f8382505f6940a | 811 | package cache;
import common.employee.Employee;
import configuration.DatabaseDeveloper;
import optimization.Cache;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import persistence.service.NominalAPI;
public class CacheTest {
@Test
@Ignore public void employeeTest(){
Nomina... | 23.171429 | 154 | 0.67201 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.