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 |
|---|---|---|---|---|---|
e974da63986753ccb8411155c1caeefb4565a01a | 755 | package com.stephapps.alternativewidgetforkeep.model;
/**
* Created by Steph on 16/08/2014.
*/
public class Note {
String noteText = "";
int id = -1;
String color = null;
public Note(String id) {
}
public Note(int id, String note) {
this.noteText = note;
this.id = id;
... | 15.1 | 53 | 0.549669 |
10bcbbb017e0e41f398edf57a4670bb73a1f9e5e | 836 | package DiskUsage;
import java.io.File;
public class DiskUsage {
private static final String pathname = "C:\\Users\\Gorm-Erik\\Desktop\\movieroll";
private static final File file = new File(pathname);
private static int sum = 0;
public static void main(String[] args) {
du(file);
Syst... | 22 | 85 | 0.449761 |
0f04ddfc0ae6beb47199a416148594506bae49df | 194 | package lk.dep.cisco.posbackendservlet.exception;
public class FailedOperationException extends Exception {
public FailedOperationException(String message){
super(message);
}
}
| 24.25 | 57 | 0.768041 |
cc5307b7a76cef86b972e5259c8b520a48c9d834 | 3,002 | package view;
import java.awt.BorderLayout;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.SwingUtilities;
import javax.swing.border.EmptyBorder;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
public class AppStartFrame exten... | 25.87931 | 104 | 0.653564 |
556ce9b5259d1cb35b0a7273b953adde9c7677ea | 751 | package uk.gov.hmcts.reform.probate.utils;
import lombok.experimental.UtilityClass;
import java.math.BigDecimal;
import java.math.RoundingMode;
@UtilityClass
public class NumberUtils {
private static final BigDecimal ONE_HUNDRED = BigDecimal.valueOf(100);
public Boolean equals(BigDecimal a, BigDecimal b) {... | 25.896552 | 86 | 0.688415 |
c9997f553e0cf58d5db62f620f3aa546acf72537 | 92 | package com.clusus.payroll.accounting.domain.valueobject;
public enum Currency {
NPR
}
| 15.333333 | 57 | 0.771739 |
b3c4a4f9d49d506a3ac1d218f4309474bebf86e1 | 1,441 | /*
* Copyright (c) 2012-2015 iWave Software LLC
* All Rights Reserved
*/
package com.emc.sa.service.vipr.file.tasks;
import static com.emc.sa.util.ArrayUtil.safeArrayCopy;
import java.net.URI;
import com.emc.sa.service.vipr.file.FileStorageUtils;
import com.emc.sa.service.vipr.file.FileStorageUtils.FileSystemACLs... | 37.921053 | 95 | 0.769604 |
d46efb5dd974763b6961e6c87f68e760f3813c9a | 1,070 | package br.edu.AtividadeLab5;
import java.util.Scanner;
public class Exe2 {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
Agenda agenda = new Agenda();
int sair = 0;
System.out.println("Bem-vindo, ao sistema de agenda");
while (sair != 1) {
System... | 14.657534 | 102 | 0.55514 |
f4fb43ff0429de23a22fa7ef4470ab850871dd2d | 2,173 | package com.weatnet;
import javax.imageio.ImageIO;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.net.Socket;
public class DataSocketThread {
Socket socket;
DataInputStream dataInputStream;
DataOutputStream dataOutputStream;
String request;
... | 27.1625 | 137 | 0.607915 |
26b0a78a4a7f8b88ce871dc4b9937c02e38a01c5 | 5,554 | package statistics.tests;
/*
Kruscal-Wallis non-parametric test for difference of k-means
**For description used in this implementation, see Neave and Worthington
Distribution-Free Tests**
K-W test is equivalent to ANOVA f-test, except based on RANK rather than observed value.
Not analgous to the way Spearman... | 26.701923 | 108 | 0.611631 |
9770c48386b8a3712899fb67a5bc3876fc185b8e | 9,602 | package br.icarwash.dao;
import br.icarwash.model.Endereco;
import br.icarwash.model.Endereco.EnderecoBuilder;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.Calendar;
import... | 38.717742 | 165 | 0.569985 |
0f5ce5af056acc0d05ee791b0a02ac4243d49572 | 1,551 | package ch06.sec07;
import java.lang.reflect.Method;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.lang.reflect.TypeVariable;
import java.lang.reflect.WildcardType;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class GenericReflectionD... | 39.769231 | 84 | 0.606061 |
7b4a869d35b68ab22968ef74b0cf49c0417cf63b | 4,238 | /*
* Copyright (c) 2019 envimate GmbH - https://envimate.com/.
*
* 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 yo... | 39.981132 | 123 | 0.738792 |
bbf9a85ff24d609135f1777b34131fd67aa0f28c | 819 | package gov.dot.its.jpo.sdcsdw.Models;
import javax.xml.bind.annotation.XmlType;
@XmlType(name = "AdvisoryBroadcast", propOrder = { "messagePsid", "broadcastInst", "advisoryMessage" })
public class AdvisoryBroadcast {
private String messagePsid;
private BroadcastInst broadcastInst;
private String advisoryMessage... | 21.552632 | 103 | 0.775336 |
6b2b3beda6e4a97a0e68a28f479027b1aacba266 | 2,987 | //@@author aakanksha-rai
package tatracker.logic.commands.group;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static tatracker.commons.core.Messages.MESSAGE_INVALID_GROUP_CODE;
import static tatracker.commons.core.Messages.MESSAGE_INVAL... | 37.810127 | 99 | 0.724138 |
04f5de8a52bebd27c9a22e006643b4be41d02931 | 654 | package org.artifactory.storage.db.aql.sql.builder.query.sql.type;
import com.google.common.collect.Lists;
import org.artifactory.storage.db.aql.sql.builder.links.TableLink;
import org.artifactory.storage.db.aql.sql.model.SqlTableEnum;
import java.util.List;
/**
* The class contains tweaking information and optimiz... | 25.153846 | 79 | 0.746177 |
c0aad39fab18cb65d67df69d7a8c7fc3c5803d98 | 1,280 | package com.springcloud.demo.controller;
import com.springcloud.demo.service.ConsumerFeignHystrixService;
import com.springcloud.demo.service.ConsumerFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bi... | 30.47619 | 82 | 0.75625 |
6850dfd9ab12acf6bac22cbd0112bf0483adb3c7 | 1,302 | package com.binarypursuits.android.webtroller;
import android.content.Context;
import android.hardware.Sensor;
import android.hardware.SensorEvent;
import android.hardware.SensorEventListener;
import android.hardware.SensorManager;
public class AccelerationHandler implements SensorEventListener {
private float[] ... | 26.04 | 75 | 0.663594 |
a0b9671b284555c17609ca744521e2347c644d19 | 1,371 | /*******************************************************************************
* Caleydo - Visualization for Molecular Biology - http://caleydo.org
* Copyright (c) The Caleydo Team. All rights reserved.
* Licensed under the new BSD license, available at http://caleydo.org/license
*********************************... | 23.637931 | 80 | 0.649891 |
2a8a279f802d44a7df885d9d62ba3440516a15bf | 4,114 | import java.util.*;
public class GraphMatrix{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
//Create thread object
int numVertices=0;
int v=0, e=0;
T1 a = new T1(numVertices);
T2 b = new T2(v,e);
//Call start method
a.start(... | 25.874214 | 64 | 0.413223 |
bb97a1a282e53c25af11f53304f668a3fbae28ba | 5,674 | /*
* MIT License
*
* Copyright (c) 2017 Barracks Inc.
*
* 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, mo... | 46.130081 | 168 | 0.715368 |
47d3c3fa67f95c6a88e9a078f54e70d021fcadc9 | 2,858 | package com.datish.copycat;
/**
* Copyright 2016 Datish Systems 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 l... | 28.019608 | 205 | 0.745976 |
fefef8768941278f9889b22bc33b64dafaf4a332 | 1,403 | package com.springboot.controller;
import com.springboot.pojo.User;
import com.springboot.service.UserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
... | 25.509091 | 68 | 0.66144 |
d90ab2e73053ac26607c5f28f9b4d8cdece671c4 | 346 | package com.lqy.usb;
/**
* Created by lqy on 2018/6/13.
*/
public interface IRecorderEngine {
void startRecording();
void stopRecording();
void handleAudioData(byte[] audio);
void handleVideoData(byte[] video);
void handleLiveVideoData(byte[] video);
void setSize(int width, int height);... | 15.727273 | 43 | 0.66763 |
f078cad1f954680d619c74c8783400376a8c56fb | 1,027 | package com.bolsadeideas.springboot.webflux.client.app;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.reactive.function.server.RouterFunction;
import org.springframework.web.reactive.function.server.ServerResponse;
impor... | 41.08 | 83 | 0.781889 |
a3b539f880c6265d2d1d4034ead2faedc3687830 | 1,491 | package com.teammental.merest.testapp;
import com.teammental.mevalidation.dto.FieldErrorDto;
import com.teammental.mevalidation.dto.ValidationResultDto;
import java.util.List;
import java.util.stream.Collectors;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.sp... | 35.5 | 79 | 0.810195 |
43d6d4e058b92a6b2c1974d84b9e3129e623f602 | 193 | package ru.taskurotta.e2e;
/**
*/
public interface SpecSuite {
/**
* Prepare all test data
*/
void init();
/**
* Remove all test data
*/
void clean();
}
| 11.352941 | 28 | 0.507772 |
6d0e3710dbe4b4edd3ed24654bb76b05a77a41da | 3,818 | package com.github.johnnymillergh.boot.mediastreamingspringbootautoconfigure.configuration;
import com.github.johnnymillergh.boot.mediastreamingspringbootautoconfigure.filewatch.FileWatcher;
import com.github.johnnymillergh.boot.mediastreamingspringbootautoconfigure.filewatch.FileWatcherHandler;
import com.github.john... | 41.5 | 119 | 0.661341 |
6d0fbbc58facf4f8ac1fdab08378ff3e27bee3e8 | 1,454 | /*
* Copyright (c) 2018
* User:qinghua.xu
* File:TopicController.java
* Date:2018/10/08
*/
package me.xqh.awesome.delayqueue.web.controller;
import me.xqh.awesome.delayqueue.common.exception.AwesomeException;
import me.xqh.awesome.delayqueue.storage.api.AwesomeJob;
import me.xqh.awesome.delayqueue.storage.api.Aw... | 35.463415 | 72 | 0.768913 |
362ddfbd9bc3b1f8d180707542ba8a6e11a38e5f | 3,213 | package br.com.prog2.trabalhofinal.persistencia;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import br.com.prog2.trabalhofinal.negocio.Telefone;
public class TelefoneDAOImp im... | 27 | 88 | 0.643635 |
9eaff7772568b02633fe9d33fdd3b2163fc0efac | 474 | /**
* 定义用户进行通信开发所需实现的接口
*
* <p>
* 用户进行通信开发时需要实现该package中的接口,通常情况下仅需实现{@link org.aoju.bus.socket.Protocol}、{@link org.aoju.bus.socket.process.MessageProcessor}即可
* 如需仅需通讯层面的监控,提供了接口{@link org.aoju.bus.socket.NetMonitor}以供使用
* </p>
*
* <p>
* 完成本package的接口开发后,便可使用{@link org.aoju.bus.socket.AioQuickClient}/{@link... | 27.882353 | 130 | 0.71308 |
f85e2ed9580fc71409749640985572e2e19e1d82 | 2,329 | package br.eti.arthurgregorio.jms.domain.services;
import br.eti.arthurgregorio.jms.domain.model.Order;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.ejb.ActivationConfigProperty;
import javax.ejb.MessageDriven;
import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.MessageL... | 34.25 | 127 | 0.656505 |
8a4f1dbe3d567057c13af48e0202b00a6605a5ec | 581 | package leetcode.p179;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
/**
* 179. Largest Number
* Given a list of non negative integers, arrange them such that they form the largest number.
*/
public class Solution179 {
public String largestNumber(int[] nums) {
final String res... | 29.05 | 94 | 0.641997 |
1c0f923a957d5683227300a2d857478045d6d32f | 532 | package com.github.leblancjs.email.client.harold;
public class Email {
private final String sender;
private final String subject;
private final String message;
public Email(String sender, String subject, String message) {
this.sender = sender;
this.subject = subject;
this.messa... | 20.461538 | 65 | 0.631579 |
bddce602390994b2f5e8886e501735a7a41a51bc | 3,481 | package com.example.ShikeApplication.YuvImage;
import android.opengl.GLES20;
import android.opengl.GLSurfaceView;
import android.util.Log;
import java.nio.ByteBuffer;
import javax.microedition.khronos.egl.EGLConfig;
import javax.microedition.khronos.opengles.GL10;
public class MyGLRender implements GLSurfaceView.R... | 30.269565 | 97 | 0.554438 |
dcc693268c0769f7b5c6bf3d49412a2b6d6361e0 | 722 | package org.apereo.cas.authentication.principal;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import java.util.List;
/**
* This is {@link DefaultWebApplicationResponseBuilderLocator}.
*
* @author Misagh Moayyed
* @since 5.1.0
*/
@Slf4j
@RequiredArgsConstructor
public class DefaultWeb... | 27.769231 | 115 | 0.781163 |
d36a2b381b33a3f5e340e2e6018f26aecef2b644 | 762 | package org.huiche.core.consts;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.io.Serializable;
/**
* 用于ConstUtil获取带有@ConstVal注解的常量类的说明和额外信息
*
* @author Maning
*/
@Getter
@Setter
@ToString
@Accessors(chain = true)
public class ConstValue impl... | 17.72093 | 64 | 0.625984 |
47fcc2283a0078e0b9a7d124750b5f2a334185c0 | 5,463 | package me.ketian.handcalc;
import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
import javax.swing.*;
import javax.swing.border.LineBorder;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.FocusAdapter;
import java.awt.event.FocusE... | 35.245161 | 103 | 0.570016 |
020fc7e2fc5fa77e3096e826e32fd2d8b5080169 | 699 | package com.reedelk.runtime.api.exception;
import com.reedelk.runtime.api.message.Message;
public class PlatformException extends RuntimeException {
private Message message;
public PlatformException() {
}
public PlatformException(String message) {
super(message);
}
public PlatformE... | 21.181818 | 71 | 0.670959 |
4df779c27594f2eca86242b73412ae7f6cee5ce8 | 66,501 | package it.unibz.inf.ontop.owlapi;
import it.unibz.inf.ontop.injection.OntopSQLOWLAPIConfiguration;
import it.unibz.inf.ontop.owlapi.connection.OWLConnection;
import it.unibz.inf.ontop.owlapi.connection.OWLStatement;
import it.unibz.inf.ontop.owlapi.exception.OntopOWLException;
import it.unibz.inf.ontop.owlapi.results... | 46.117198 | 163 | 0.52309 |
25b28bfd2bfcd7f5f09b04d9c2db4146d9fd695c | 585 | package com.jfrog.ide.idea.projects;
import com.intellij.openapi.vfs.VirtualFile;
import java.nio.file.Path;
import java.nio.file.Paths;
/**
* Created by Bar Belity on 12/02/2020.
*/
public class GoProject extends ProjectBase {
public GoProject(String basePath) {
this.basePath = basePath;
}
pu... | 26.590909 | 96 | 0.704274 |
b6597ec980242f5c307b00a89748eb3d318cdaa6 | 1,945 | package com.rair.diary.ui;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;
import com.rair.diary.R;
import java.util.Random;
import butterknife.BindView;
import butterknife.ButterKnife;
import butter... | 29.923077 | 153 | 0.630848 |
eacb77b505d732d28427dba54d8c33c5ebad43c3 | 33,775 | // Generated from PlayScript.g4 by ANTLR 4.7.2
package play;
import org.antlr.v4.runtime.Lexer;
import org.antlr.v4.runtime.CharStream;
import org.antlr.v4.runtime.Token;
import org.antlr.v4.runtime.TokenStream;
import org.antlr.v4.runtime.*;
import org.antlr.v4.runtime.atn.*;
import org.antlr.v4.runtime.dfa.DFA;
imp... | 65.455426 | 97 | 0.625078 |
3c7319a4fe31dd5047f7a56b13bc35ab9fd46430 | 1,692 | /*
* This file is part of yosql. It is subject to the license terms in the LICENSE file found in the top-level
* directory of this distribution and at http://creativecommons.org/publicdomain/zero/1.0/. No part of yosql,
* including this file, may be copied, modified, propagated, or distributed except according to th... | 40.285714 | 118 | 0.699173 |
94a38a2ffe54c987e995e780d87cba49819a26e3 | 2,081 | package com.softicar.platform.common.container.set;
import com.softicar.platform.common.container.map.MapFactory;
import com.softicar.platform.common.testing.AbstractTest;
import java.util.Comparator;
import java.util.HashSet;
import java.util.Map;
import java.util.SortedSet;
import java.util.TreeSet;
import org.junit... | 24.197674 | 76 | 0.747237 |
b81f84491e2ceee9b7b64306e91336aca7acbe3a | 1,040 | package uk.ac.lkl.client.mopix.graphics;
/**
* Question: why not use a Rectangle2D.Double?
*
* Answer: GWT doesn't have direct support for it
*
*/
public class BoundingBox {
double left, top, right, bottom;
public BoundingBox(double left, double right, double top, double bottom) {
this.left = left;
... | 19.622642 | 78 | 0.616346 |
e3aab3a87e5093f5404369f4d93a4842a0c8705f | 1,443 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package multithreading;
import java.util.Scanner;
/**
*
* @author vishal kumar
*/
public class ThreadLifeCycle extends Thread{
... | 21.537313 | 79 | 0.50797 |
4a74e2bd806fccb4292517a9e22e9d7aa1c96591 | 5,537 | /*-
* #%L
* Mastodon
* %%
* Copyright (C) 2014 - 2021 Tobias Pietzsch, Jean-Yves Tinevez
* %%
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright... | 26.620192 | 80 | 0.689001 |
e41e194875383bbc71fb87f3e2480646840d9e46 | 1,165 | package com.g1335333249.factorypattern;
/**
* 工厂模式描述
*
* @author guanpeng
* @date 2019-08-06 15:42
*/
public class Description {
/**
* 工厂模式(Factory Pattern)是 Java 中最常用的设计模式之一。这种类型的设计模式属于创建型模式,它提供了一种创建对象的最佳方式。
*
* 在工厂模式中,我们在创建对象时不会对客户端暴露创建逻辑,并且是通过使用一个共同的接口来指向新创建的对象。
*
* 意图:定义一个创建对象的接口... | 26.477273 | 94 | 0.632618 |
4709f63810d2aaa6cce6c49e99aa7073309e5a2b | 1,034 | package com.mke.meetup.repo;
import static org.junit.Assert.*;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.SpringApplicationConfiguration;
import org.springframework.security.crypto.password.Passwor... | 30.411765 | 73 | 0.798839 |
d0e25ca72e51d5abbe52b333b55ccdcf18d851fc | 746 | package org.perro.functions.stream;
import java.util.function.Predicate;
import java.util.function.Supplier;
class FindWithDefaultSupplier<T> {
private final Predicate<T> predicate;
private final Supplier<T> defaultSupplier;
private FindWithDefaultSupplier(Predicate<T> predicate, Supplier<T> defaultSupp... | 26.642857 | 99 | 0.714477 |
e0a1ac0b8c5f9c5209b040d0cdef7f8d6b7b579e | 2,084 | /*
* Copyright (C) 2019-2021 ConnectorIO Sp. z o.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 applicab... | 41.68 | 100 | 0.747121 |
6c1895e0ae8d5ab67b0bf75b1e1d43c83df02e0b | 499 | package com.cjburkey.factorius.block;
/**
* The default stone block
* @author cjburkey
*/
public final class BlockStone extends Block {
/**
* Gets the unlocalized name.
* Overridden to return "block_stone".
* @return The unlocalized name.
*/
public String getUnlocalizedName() {
return "block_stone";
... | 18.481481 | 56 | 0.675351 |
4dc1d5ec081d3cc94566638e24cdcff70c48fb81 | 919 | package easterRaces.repositories;
import easterRaces.entities.cars.Car;
import easterRaces.repositories.interfaces.Repository;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
public class CarRepository implements Repository<Car> {
private Collection<Car> models;
public... | 21.372093 | 63 | 0.636561 |
d793af4217b181251cbb1be07f785ae8731d9bd6 | 1,266 | /*
* Copyright (c) 2018-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the LICENSE
* file in the root directory of this source tree.
*
*/
package com.facebook.sonar.plugins.common;
import android.os.Handler;
import android.os.Looper;
import com.facebook.sonar.core.Erro... | 30.878049 | 90 | 0.753555 |
b655ba1a67e7b08d84afbafb566874fedf53223a | 736 | package ai.elimu.model.content;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToMany;
import javax.persistence.OrderColumn;
import javax.validation.constraints.NotNull;
@Entity
public class Syllable extends Content {
@NotNull
private ... | 19.891892 | 47 | 0.671196 |
6a36f0e2fc3e03a42cebd8588380547678e88eeb | 1,787 | package com.heanbian.block.crypto;
import java.nio.charset.Charset;
import java.security.Security;
import javax.crypto.Cipher;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
import org.bouncycastle.util.encoders.U... | 27.075758 | 96 | 0.697258 |
d629634d646d884414d6facb350cac3e56f3487b | 5,090 | // 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.firebase.client.core;
import com.firebase.client.core.view.View;
import java.util.Iterator;
import java.util.List;
// Referenced classes of p... | 46.272727 | 331 | 0.614145 |
5293a8ae299d21abd4736519ec6bb699b416379e | 3,150 | /*********************************************************************************
* *
* The MIT License (MIT) *
* ... | 44.366197 | 82 | 0.488254 |
20d31fdfad53d41d0e184083d8fe976c9ea8131e | 1,046 | package com.minji.idusbackend.config;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import lombok.AllArgsConstructor;
import lombok.Getter;
import static com.minji.idusbackend.config.BaseResponseStatu... | 30.764706 | 70 | 0.726577 |
2afeb9dd034ca6e2ceb524d7d350fdd461bd76f3 | 1,357 | package com.tz.pojo.index.vo;
import java.util.List;
/**
* 律师详情信息展示实体类
* @author QL
*
*/
public class LawyerDetailInfo extends ZaLawyerAuthenticationIndexVo {
private Integer isCollection; //是否已收藏
private String online; //律师是否在线
private String usernick; //环信注册昵称
private String password; //环信注册uuid
... | 16.9625 | 91 | 0.73913 |
9e8909f025f1e26ea0171c1ec48c7b8354b7debe | 5,463 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.7
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.08.25 at 11:03:1... | 24.172566 | 126 | 0.565074 |
e346d9c59fc9861dd685f9a98ce321cce6793341 | 7,247 | /*
* 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 ... | 33.396313 | 100 | 0.70029 |
6f0ba230842ea72b7b2ac5614dfa1cf0a696ee54 | 7,754 | package app.handlers;
import app.sprite.Brick;
import java.io.*;
import java.lang.reflect.Array;
import java.net.URISyntaxException;
import java.util.*;
public class DataHandler {
public static final String HIGH_SCORE_FILE = "high_score.txt";
private String[] levelFiles = {"level1_setup.txt", "level2_setup.... | 32.443515 | 195 | 0.591824 |
f7fc8404a5896effcb6bfc58c520a77859b3b25d | 1,814 | package test;
public class Test {
/*
public static void main(String[] args) {
Portfolio p = ExLoad.getPortfolioExemple();
Stock TBE = new Stock("TBE",new Country("Canada"),"Twin Butte Energy Ltd");
Stock BBD = new Stock("BBD.B",new Country("Canada"),"Bombardier Inc.");
Stock RMM = new Stock("RMM.UN",new Co... | 40.311111 | 159 | 0.659316 |
5e3c0e43f8c53282f80e689412c5501590d13d5a | 946 |
package com.shop.common.serializer.redis;
import com.shop.common.serializer.FSTSerializer;
import lombok.SneakyThrows;
import org.springframework.data.redis.serializer.RedisSerializer;
import org.springframework.lang.Nullable;
/**
* 使用fst 进行reids的序列化
* @author yzh
*/
public class FstRedisSerializer implements Red... | 24.25641 | 68 | 0.657505 |
cdf1b81a10bde98f68e34c846d6c0a9632ebd963 | 8,089 | package com.dnastack.ddap.server;
import com.dnastack.ddap.common.AbstractBaseE2eTest;
import com.dnastack.ddap.common.util.DdapLoginUtil;
import io.jsonwebtoken.Jwts;
import io.jsonwebtoken.security.SignatureException;
import io.restassured.RestAssured;
import io.restassured.response.Response;
import lombok.Data;
imp... | 35.792035 | 273 | 0.614044 |
a4601e5ddb3a7d79f4c8a00fd256fc4d06a91a2f | 490 | package com.factorail;
import java.util.Scanner;
/* 3. Program to calculate factorial of a given number. */
public class fact {
public static void main(String[] args) {
System.out.println("Enter a number : ");
Scanner input = new Scanner(System.in);
int num = input.nextInt();
System.out.println("Fac... | 24.5 | 59 | 0.634694 |
ea5d16cdd2943853b6e86dbc009f0a5d851add10 | 575 | package org.zoxweb.client.controller;
import org.zoxweb.shared.util.NVGenericMap;
import org.zoxweb.shared.util.ResourceManager;
import com.google.gwt.user.client.ui.Widget;
public abstract class ControllerBase<V extends Widget>
{
protected NVGenericMap config;
protected V widget;
protected Con... | 17.96875 | 58 | 0.721739 |
36f156fe5b1638a716474011fb3c9337d80a9a6d | 2,548 | /*
Copyright 2018 Simon Levermann
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... | 42.466667 | 128 | 0.722135 |
b9c9fc49c73a85671c61ea2a346f3c611806ccee | 447 | package me.tl0x.main.command;
import me.tl0x.main.etc.CHelper;
import me.tl0x.main.etc.based.Command;
public class Help extends Command {
public Help() {
super("Help", "Returns this list", new String[]{"gotchuhomie,help,helpme"});
}
@Override
public void onExecute(String[] args) {
... | 26.294118 | 85 | 0.639821 |
3011adc318839b28e39310f5c5c16278a0b2896d | 1,918 | /*
* Copyright (C) 2019 Intel Corporation
* SPDX-License-Identifier: BSD-3-Clause
*/
package com.intel.dcg.io;
import com.intel.dcsg.cpg.io.ByteArrayResource;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import ... | 31.966667 | 163 | 0.661105 |
6c18830bfb1054cf7e23eadf7f8490dc6003dd4b | 1,202 | package com.wyona.multitenantservice.webapp.services;
import com.wyona.multitenantservice.webapp.models.Tenant;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
@Slf4j
@Service
public class TenantServiceInMemorImpl... | 27.318182 | 72 | 0.663062 |
e2398b84b11e1f651eef78c645b95059b2e8a3e3 | 3,154 | /*
* This file is generated by jOOQ.
*/
package edu.utexas.tacc.tapis.apps.gen.jooq;
import org.jooq.Sequence;
import org.jooq.impl.Internal;
/**
* Convenience access to all sequences in tapis_app
*/
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Sequences {
/**
* The sequence <cod... | 50.870968 | 255 | 0.753646 |
917135a38452b345125a0b4be43126da76bbb007 | 516 | package com.springinaction.chapter01.hello;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.FileSystemResource;
public class HelloApp {
public static void main(String[] args) throws Exception{
BeanFactory fact... | 43 | 90 | 0.802326 |
76b257c33fc362317b84b2851065281065865c62 | 280 | public class UpCommand implements Command {
private final AirConditioner airConditioner;
public UpCommand(AirConditioner airConditioner) {
this.airConditioner = airConditioner;
}
@Override
public void execute() {
airConditioner.up();
}
}
| 21.538462 | 53 | 0.689286 |
9b5994ad9737ef694cf042757dc47bbf52e74c32 | 2,309 | package io.github.indicode.fabric.itsmine.claim;
import net.minecraft.nbt.CompoundTag;
import java.util.HashMap;
import java.util.Map;
public class ClaimFlags{
public enum Flag {
FLIGHT_ALLOWED("flight_allowed", "Flying Allowed", true),
EXPLOSION_DESTRUCTION("explosion_destruction", "Explosion De... | 36.650794 | 98 | 0.62278 |
35b49652915807dfceecedfb21102b2f088fecb2 | 1,375 | package jp.hackday10th.yay.hackday.views;
import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
public class TouchHandleView extends View {
public interface TouchHandleListener {
public boolean handleTouchEvent(MotionEvent event);
... | 25.462963 | 100 | 0.680727 |
b15c2f1dc5f3d199239f7d4c6f3c543b0ae45381 | 5,745 | package utils.helpers;
public class Helps {
public static void printHelp() {
System.out.println("-------------------------------------------------------------------");
System.out.println("IIIT Sri City Bank, version 1.0.0");
System.out.println("--init\tfor initialising the program followed... | 52.706422 | 126 | 0.613577 |
57815d839a54d7da0778b1147e9756ca78791b23 | 2,064 | /*
* (c) 2018-2019 Charles-Philip Bentley
* This code is licensed under MIT license (see LICENSE.txt for details)
*/
package pasa.cbentley.jpasc.pcore.domain.ipc;
import pasa.cbentley.byteobjects.src4.tech.ITechAcceptor;
import pasa.cbentley.core.src4.logging.IStringable;
import pasa.cbentley.jpasc.pcore.do... | 18.763636 | 73 | 0.586725 |
43a3a4406c39959ecd513a8a5a1f8a952a0da007 | 4,656 | package com.example.rikva.readytogotry2;
import android.accounts.AccountManager;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
im... | 36.661417 | 107 | 0.587844 |
7dcf151e2ad0ad6b0861f889efa2d1c34fcbbf5c | 2,915 | package net.minecraft.server;
import org.bukkit.event.player.PlayerShearEntityEvent; // CraftBukkit
public class EntityMushroomCow extends EntityCow {
public EntityMushroomCow(World world) {
super(world);
this.a(0.9F, 1.3F);
this.bl = Blocks.MYCELIUM;
}
public boolean a(EntityHum... | 37.371795 | 161 | 0.592796 |
3afe1e5a04a2f263bbc053f83ce68652af7e4bcd | 223 | package tripletbuilder.state2;
public interface TripletBuilder<T> {
java.util.List<T> build();
tripletbuilder.state4.TripletBuilder<T> setFirst(T item);
tripletbuilder.state6.TripletBuilder<T> setThird(T item);
}
| 20.272727 | 59 | 0.766816 |
92a88203d19cbc0a43cdc33785c34e21cee3c853 | 1,235 | /*-
* <<
* UAVStack
* ==
* Copyright (C) 2016 - 2017 UAVStack
* ==
* 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... | 25.204082 | 75 | 0.618623 |
2a815b48c690261635704968502e7bbaee0fef08 | 755 | package com.toornament.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import java.text.SimpleDateFormat;
@Getter
@Se... | 26.034483 | 133 | 0.73245 |
31095c9205aab2e94e40dda5bacef030a556538d | 7,924 | package org.ifelse.wordspelling;
import android.media.AudioManager;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import android.support.multidex.MultiDexApplication;
import com.baidu.speech.EventManager;
import com.baidu.speech.EventManagerFactory;
import com.baidu.tts.auth.AuthInfo... | 31.951613 | 114 | 0.612443 |
2579719160b7c5246caf48bb5901509216d5c2df | 574 | package org.bson.codecs;
import org.bson.BsonInt32;
import org.bson.BsonReader;
import org.bson.BsonWriter;
public class BsonInt32Codec
implements Codec<BsonInt32>
{
public BsonInt32Codec() {}
public BsonInt32 decode(BsonReader reader, DecoderContext decoderContext)
{
return new BsonIn... | 13.045455 | 87 | 0.719512 |
59687805b832de9d92d9363300d46695400cedb9 | 1,472 | package mx.com.edx.lightmq.impl;
import java.util.concurrent.Callable;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import mx.com.edx.lightmq.QueueExecutor;
/**
*
* @author edx
* @version 1... | 23.741935 | 64 | 0.669837 |
4c3b68bd36a40d3ca23d49652bb5e57e0be2e8e0 | 987 | package com.rbkmoney.fistful.reporter.dao;
import com.rbkmoney.fistful.reporter.config.PostgresqlSpringBootITest;
import com.rbkmoney.fistful.reporter.domain.tables.pojos.Deposit;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import static com.rbkmoney.testcontainer... | 34.034483 | 78 | 0.760892 |
b7cf9db1d322eeef3c9ac70e35eb257d9e238b36 | 4,249 | package com.xudod.attendance.user_role_relation.interfaces;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestBody;
import org.springfram... | 50.583333 | 160 | 0.761826 |
55ca8a579d7908957c3b8c1d7f1e1f5cc5d719a8 | 4,017 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * 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 ... | 17.314655 | 810 | 0.810306 |
04719883395fffb498ebe4dac8e5caf8a2245c1e | 7,563 | //
// Decompiled by Procyon v0.5.36
//
package org.apache.maven.scm.provider.starteam.command.changelog;
import org.apache.maven.scm.provider.starteam.command.StarteamCommandLineUtils;
import java.util.ArrayList;
import java.util.Locale;
import org.apache.maven.scm.log.ScmLogger;
import java.io.File;
import java.ut... | 37.256158 | 162 | 0.577416 |
b98a424ba3b6e3d11c70bb330ffb5a32fb77ccfa | 1,204 | package com.williamspires.acnhapi.Model;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name="raymond")
public class Raymond {
@Id
private int id;
private String item;
private String color_1;
private String color_2;
private String ... | 17.970149 | 46 | 0.612957 |
071db42fdf074a3f5a66dfd6b312f72b96dfac2e | 9,033 | package de.fraunhofer.ipa.ros.observer;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
imp... | 39.273913 | 169 | 0.756891 |
51cf95c6a00c521d2fc15510bb604f6194feffa6 | 163 | package main;
public class RightCommand implements Command {
public void execute(Actor actor) {
actor.noCommand();
actor.moveRight();
}
} | 18.111111 | 46 | 0.650307 |
35ff2a2e9c76c583b4ab6d4ef7308554e09ce7a3 | 4,462 | package com.langmy.terminal.common.entity;
// Generated 2015-2-3 18:18:41 by Hibernate Tools 4.3.1
import java.util.Date;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persisten... | 26.247059 | 144 | 0.703496 |
04eed667846e44a19457a0ced210629f6d7e6aed | 387 | package ua.raif.tgbotservice.dao;
import org.socialsignin.spring.data.dynamodb.repository.EnableScan;
import org.springframework.data.repository.CrudRepository;
import ua.raif.tgbotservice.domain.PhonesUser;
import java.util.Optional;
@EnableScan
public interface PhonesUserRepository extends CrudRepository<PhonesUse... | 29.769231 | 82 | 0.834625 |
f77f79ed3b791734e2287d4adf0af1cf285a6f6d | 435 | package com.pxl.base.app;
import com.pxl.common.ILog;
/**
* UncaughtException处理类,当程序发生Uncaught异常的时候,有该类来接管程序,并记录发送错误报告.
*
* @author user
*
*/
public class CrashHandler implements Thread.UncaughtExceptionHandler {
@Override
public void uncaughtException(Thread thread, Throwable ex) {
String tag ... | 20.714286 | 70 | 0.675862 |
31c319101062abb6a1760c61929399c1bd929810 | 4,656 | /*
* Copyright (c) 2017 - 2019, SmartDeviceLink Consortium, Inc.
* 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, t... | 33.73913 | 193 | 0.665593 |
baf02d97c941ce7c2568b462caa8c8b6ac19bfa8 | 6,770 | package com.example.excadmin.tvcleanarchitecture.presentation.presenter;
import android.app.NotificationManager;
import android.content.Context;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v17.leanback.widget.Action;
import android.support.v17.leanback.widget.ImageC... | 34.191919 | 125 | 0.703397 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.