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 |
|---|---|---|---|---|---|
3b7790315ec0d15ff88580d0a501972dfcb75d73 | 498 | package nl.sri.zentao.entity;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
*
* </p>
*
* @author wurunxiang
* @since 2020-07-22
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class ZtConfig implements Serializable {
private static final long serialVers... | 14.228571 | 52 | 0.696787 |
2c744cc8aebd2bda4996ece48b7efc04d6d35a77 | 6,850 | package pi4jExamples;
/*
* #%L
* **********************************************************************
* ORGANIZATION : Pi4J
* PROJECT : Pi4J :: Java Examples
* FILENAME : PCA9685GpioExample.java
*
* This file is part of the Pi4J project. More information about
* this project can be found here:... | 46.917808 | 161 | 0.657226 |
876b0e4d4414468162ff2ab477cbf8aec18ccaaf | 160 | package glados.model.factory;
import glados.model.dao.QuoteDAO;
public class QuoteFactory {
public QuoteDAO createQuoteDAO() {
return new QuoteDAO();
}
}
| 16 | 35 | 0.75625 |
0b1e7f3c7ca292d349d3c3e2ecd098aa03dc8122 | 5,836 | /*
* Copyright (c) 2012 eXtensible Catalog Organization.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the MIT/X11 license. The text of the license can be
* found at http://www.opensource.org/licenses/mit-license.php.
*/
package org.oclc.circill.toolkit.service.... | 44.549618 | 171 | 0.682831 |
09d96431fdf5c3d124ea87d3882f3ec8b90d42be | 1,796 | /*
SummaryFragment
Copyright (c) 2015 NTT DOCOMO,INC.
Released under the MIT license
http://opensource.org/licenses/mit-license.php
*/
package org.deviceconnect.android.deviceplugin.kadecot.fragment;
//import org.deviceconnect.android.deviceplugin.kadecot.R;
import com.sonycsl.Kadecot.plugin.gotapi.R;
import an... | 33.886792 | 103 | 0.680958 |
da313e3163e405a3e88d0be3b02a15e4f36b50e3 | 4,222 | /*******************************************************************************
* Copyright 2017 UIA
*
* 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.
... | 39.830189 | 89 | 0.577215 |
6bfc74f1b5b7284cf7e9b191c0942a9a75f9fc77 | 430 | // See actual example on c.horstman p.no 174
class Student
{
int marks = 10; // in c++ is not allowed ,as in c++ we can initialize values only in constructors or in methods but not outside
public void get()
{
System.out.println("Marks : " + marks);
}
}
public class ExplicitFieldInitialization
{... | 22.631579 | 131 | 0.62093 |
2cc2433e9e616ec92cdf3ebe9bede3409c26145c | 11,694 | /*
* Copyright (c) 1997, 2019 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: ... | 40.463668 | 117 | 0.704977 |
011ad458b8f3873ef966b9c4aceba84eb4f5340f | 2,784 | /*
Copyright 2008-2011 Opera Software ASA
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,... | 31.280899 | 97 | 0.733477 |
ccd84860ee5e118876726dbdc4986f6408a25702 | 1,928 | /*
* Copyright 2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | 31.606557 | 98 | 0.690353 |
3eb6d8678985d4a7a1cf82beffa72990b5edbfa8 | 2,076 | package com.song.xposed.hook;
import com.alibaba.fastjson.annotation.JSONField;
import java.io.Serializable;
public class HookBean implements Serializable {
@JSONField(name = "android.telephony.TelephonyManager.getSimOperator")
public String f4086;
@JSONField(name = "android.content.res.language")
... | 29.239437 | 78 | 0.72736 |
1babf89fdf7258fb1ef0ee5c30b24e1184d5f254 | 561 | package ubc.cosc322;
import java.util.ArrayList;
public class Position implements Cloneable {
public int row, col;
public Position(int x, int y) {
this.row = x;
this.col = y;
}
public int getX() {
return row;
}
public int getY() {
return col;
}
public ArrayList<Integer> getXY() {
ArrayList<I... | 14.763158 | 51 | 0.643494 |
001ebfe04c93051fb725fb1e53790da76b0cce63 | 1,958 | package io.github.floriansw.ondus.api.model.guard;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.github.floriansw.ondus.api.model.BaseAppliance;
import io.github.floriansw.ondus.api.model.BaseApplianceData;
import lombok.EqualsAndHashCode;... | 28.376812 | 71 | 0.712462 |
4b7a5fc026bb3e1d0e44705969ac3190f65e6364 | 492 | package com.github.jgzl.gw.common.core.spi;
/**
* SpiExtensionFactory.
*/
@Join
public class SpiExtensionFactory implements ExtensionFactory {
@Override
public <T> T getExtension(final String key, final Class<T> clazz) {
if (clazz.isInterface() && clazz.isAnnotationPresent(SPI.class)) {
... | 27.333333 | 91 | 0.682927 |
4db4a8a62e7e8c93978d46c6a379032f893db5de | 1,313 | package com.app.booking.pages;
import java.util.List;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.W... | 27.93617 | 105 | 0.761615 |
be6dc9621133ec30646ab5fc6f8d0277ba9e6f2a | 3,228 | package com.zhangdd.kruskal;
import java.util.Arrays;
/**
* @author zhangdd on 2021/12/23
*/
public class Graph {
private final char[] vertices;
private final int matrix[][];
private final int edgeNum;
private final Edge[] edges;
public Graph(char[] vertices, int[][] matrix) {
this... | 24.089552 | 90 | 0.458488 |
0a08cd6ed5cb2b04b1cfb1492112f8b1c60ad5e6 | 2,334 | package fakekube.io.api.impl;
import fakekube.io.api.*;
import fakekube.io.model.IoK8sApiAuthorizationV1beta1LocalSubjectAccessReview;
import fakekube.io.model.IoK8sApiAuthorizationV1beta1SelfSubjectAccessReview;
import fakekube.io.model.IoK8sApiAuthorizationV1beta1SelfSubjectRulesReview;
import fakekube.io.model.IoK8... | 37.645161 | 210 | 0.757926 |
4faad0af0d37dc466a9125fc287f83dfdd47c1da | 808 | package org.lskk.shesop.steppy.algorithms;
import java.util.ArrayList;
public class SensorDisplayer implements SensorListener {
@Override
public void onSensorChanged(float value) {
notifyListener(value);
}
@Override
public void passValue() {
// TODO Auto-generated method stub
}
//--------------... | 20.717949 | 71 | 0.612624 |
be9aada3cd7140d3a74d55fa0d866228242c5066 | 149 | package com.sen.hello.seata.api;
import com.sen.hello.seata.domain.TbOrder;
public interface TbOrderService {
void insert(TbOrder order);
}
| 13.545455 | 42 | 0.751678 |
d9489255bdc23fa5be12f43ad6a7247a4eb543f6 | 5,210 | package com.shenhua.openeyesreading.activity;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.content.ContextCompat;
import android.support.v4.view.ViewPager;
import android.view.animation.AccelerateInterpolator;
import android.widget.Toast;
import com.shenhua.bottomtab.Bot... | 38.592593 | 164 | 0.66737 |
c324fac756bfdf45bb7af8ff8d4185499b2cf3bf | 1,267 | /**
* 2012-5-25 下午4:59:05
* @create_user wangrenhui
* @whattodo
* @modify_time like:date1/date2
* @modify_user like:user1/user2
* @modify_content like:content1/content2
*/
package com.jfinalshop.utils;
import java.security.MessageDigest;
import com.alibaba.druid.filter.config.ConfigTools;
/**
* @author wang... | 21.844828 | 74 | 0.614838 |
f56cb261c6e387a4444ea8ed3a6c9fe29ee09462 | 584 | package com.lazycece.au.api.spring.boot.autoconfigure;
import com.lazycece.au.api.token.serialize.Serializer;
import com.lazycece.au.api.token.serialize.SubjectSerializer;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.sp... | 27.809524 | 81 | 0.797945 |
50a7b10c49073ec19887ae57844bc16871347d4c | 3,367 | /*
* Copyright (c) 2008-2016, GigaSpaces Technologies, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Un... | 39.151163 | 101 | 0.688744 |
d40058a90ec4cdfe9898d6a880add80d7b53a7b9 | 497,081 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mahjong.proto
package mahjong.mode;
public final class Mahjong {
private Mahjong() {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(... | 29.334966 | 259 | 0.577914 |
8234563783af959487a2799fbd0c78fb83666e19 | 260 | public class pizzeriaFactory {
private FabriquePizza fabrique;
public pizzeriaFactory(FabriquePizza fabrique) {
this.fabrique = fabrique;
}
public Pizza CommanderPizza(String type) {
return fabrique.creerPizza(type);
}
} | 20 | 52 | 0.688462 |
b010bc6acbaa69036435a2c14c748a18eb3a1054 | 1,285 | package my.test.message;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.messaging.handler.annotation.MessageMapping;
import org.springframework.messaging.handler.annotation.SendTo;
import org.springframework.messaging.simp.SimpMessagingTempla... | 26.770833 | 82 | 0.71284 |
a88cc462bec87cbba5e5f574c8a6a6b2df459585 | 1,966 | /*
* ******************************************************************************
* * Copyright 2015 See AUTHORS file.
* *
* * 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
* ... | 32.766667 | 161 | 0.643438 |
384b31e6323a37319e0047c78712cdbf4c15f2c1 | 785 | package com.thinkgem.jeesite.common.utils;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
public class BetweenDates {
/**
* 获取两个日期之间的日期,包括开始结束日期
* @param start 开始日期
* @param end 结束日期
* @return 日期集合
*/
public static List<Date> getBetweenDates(Date s... | 22.428571 | 65 | 0.670064 |
5c01d9280a5ce340ee91fbf02c302bae86bec932 | 1,192 | package com.rs.script;
import java.util.LinkedList;
import java.util.List;
/**
* Created by Hadyn Richard
*/
public final class ScriptData {
/**
* The list of scripts for the plugin.
*/
private List<String> scripts = new LinkedList<>();
/**
* The list of dependencies for the plugin.
... | 20.912281 | 59 | 0.591443 |
9cb8e91094a59c7f211cbdf5ad7a1819f1f792df | 2,504 | package com.todomvc.shared.command;
import static org.junit.Assert.assertTrue;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import org.junit.Test;
import com.google.common.collect.Lists;
import com.todomvc.TestUtil;
import com.todomvc.shared.model.IdentifiableCollection;
public class ... | 24.076923 | 111 | 0.60623 |
86f453e55919546bc8e93183a08bef0af946695f | 113 | package com.example.unclaimed.typed;
import sting.Typed;
@Typed( {} )
public class UnclaimedTypedTypeModel
{
}
| 12.555556 | 36 | 0.761062 |
d111dcf81de4e71e7079d9c9627bb1d9663e26c6 | 1,949 | /**
* Transmission Control Protocol (TCP/IP protocol stack)
*/
package com.sirtrack.construct.protocols.layer4;
import static com.sirtrack.construct.Adapters.ExprAdapter;
import static com.sirtrack.construct.Core.Struct;
import static com.sirtrack.construct.Macros.EmbeddedBitStruct;
import static com.sirtrack.constru... | 31.435484 | 82 | 0.654695 |
40e860a572da513c8f6c23df497795b4e626f033 | 61 | package eu.masconsult.roboguice.events;
public class R {
}
| 10.166667 | 39 | 0.754098 |
e89609453c9edb83a4bbcbb49e522d280334df65 | 5,546 | /***
* Copyright (c) 1995-2009 Cycorp 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 appl... | 37.986301 | 144 | 0.707898 |
e1371c8f278e204cb82c87d953dca456ea5e2826 | 1,877 | /*
* JBoss, Home of Professional Open Source.
* Copyright 2012, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* unde... | 40.804348 | 107 | 0.75919 |
c20d43616deaa21c6ade44b19d55ba29b07a21dd | 9,355 | package ksj;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Font;
import java.awt.FontMetrics;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.RenderingHints;
import java.awt.Shape;
import java.awt.event.ComponentAdapter;
import java.awt.event.Component... | 25.630137 | 98 | 0.672475 |
1ad11e6a69f3986eb7d2d035a6a471c81b433acf | 2,432 | /*
* Copyright 2015, 2016 The original authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 37.415385 | 118 | 0.740132 |
42cd24e12bb3b4668afade1f65415ead4cf59cfa | 3,533 | package pl.tss.restbox.core.handler.movie;
import java.time.OffsetDateTime;
import java.util.LinkedList;
import java.util.List;
import java.util.stream.Collectors;
import lombok.extern.slf4j.Slf4j;
import pl.tss.restbox.core.domain.command.Cmd;
import pl.tss.restbox.core.domain.command.movie.AddMovieCmd;
import pl.ts... | 36.05102 | 119 | 0.736768 |
43ef14f45b04e03fb136e365b06b4513b3900672 | 17,798 | /*
* Copyright (c) 2002-2008 LWJGL Project
* 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... | 43.72973 | 147 | 0.725924 |
4a76e030cebb262b1976250a9af55cfb0d35502e | 4,672 | package com.zrzhen.logicmachine.img;
import javax.imageio.ImageIO;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.File;
public class ImgUtil {
public static int[] handleByCommon(int[] inPixelsData, int srcW, int srcH, int destW, int destH) {
int[][][] outputThreeDeminsionData = ne... | 31.782313 | 115 | 0.439854 |
eb5782e2138ba7510c6bbfe6ba8f3815633e2a18 | 8,237 | package org.phpnet.openDrivinCloudAndroid.Activities;
import android.accounts.Account;
import android.app.Dialog;
import android.content.ContentResolver;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.content.res.Configuration;
import ... | 42.02551 | 195 | 0.611752 |
41c177103d48115080da2482546ae401d5c2b77d | 430 | package makingGame.interactions.events.Conditions;
import makingGame.interactions.events.Conditions.Condition;
public class CollisionCondition extends Condition {
/**
* constructor of a collision condition
* @param entityID
* @param side
*/
public CollisionCondition(String entityID, Strin... | 23.888889 | 61 | 0.702326 |
a6df6d475178f4ef4bc868aab32e3d2fb510ff49 | 556 | // Copyright 2014 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.net;
import org.chromium.base.CalledByNative;
import org.chromium.base.JNINamespace;
/**
* Abstract private key that bundles the P... | 29.263158 | 91 | 0.758993 |
28a9247fc39262a345cb961cde1ab8d7a2a04811 | 2,500 | package au.net.immortius.wardrobe.gw2api;
import com.google.common.primitives.UnsignedBytes;
import java.util.Base64;
/**
* Handling of GW2's chat link format. Can both generate and extract information from chat codes.
* Somewhat tailored for the little required for generating the wardrobe site.
*/
public final c... | 35.714286 | 136 | 0.574 |
4ba5d20dcb4b4f37e0b930c0b216a49f3b462143 | 212,751 | package com.zoho.crm.sample.record;
import java.io.File;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.time.LocalDate;
import java.time.OffsetDateTime;
import java.time.ZoneOffset;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Lis... | 36.022858 | 151 | 0.622089 |
162e40d74f2755c967c59953d10fd29e65b489fd | 2,489 | /*
* 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 ... | 32.75 | 78 | 0.664122 |
68cd294d48c20364b09b4c773700a9d847803925 | 3,620 | package com.example.j053.parsetagram;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v... | 31.754386 | 93 | 0.629558 |
b39341f3f06563a97f54d6ed5218a843582aa5c5 | 3,887 | package com.yunionyun.mcp.mcclient.managers;
import com.alibaba.fastjson.JSONObject;
import com.yunionyun.mcp.mcclient.EndpointType;
import com.yunionyun.mcp.mcclient.JSONClientException;
import com.yunionyun.mcp.mcclient.Session;
import com.yunionyun.mcp.mcclient.Utils;
import com.yunionyun.mcp.mcclient.common.McClie... | 30.606299 | 96 | 0.71752 |
3e6d187e1c13d4cbcc1ca92b4145f05cc9dfba42 | 2,566 | package cc.kevinlu.json.serializer.starter.processor;
import java.lang.reflect.Field;
import java.util.Objects;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.util.StringUtils;
import cc.kevinlu.json.serializer.starter.common.Constants;
import cc.kevinlu.json.serializer.starter.s... | 28.197802 | 94 | 0.609119 |
75cf11ca7be0f0bcd8e79bab7d59d769570441b4 | 1,686 | package lapr.project.controller;
import lapr.project.data.ClientDB;
import lapr.project.data.UserDB;
import lapr.project.model.*;
import lapr.project.utils.Constants;
import lapr.project.utils.PasswordGeneration;
import lapr.project.data.api.SendEmail;
import org.junit.jupiter.api.BeforeEach;
import static org.mockit... | 32.423077 | 99 | 0.677343 |
7dea75e7d91e669f9d9b88c494e8fc9cc79ac4f8 | 4,986 | package org.blackdread.filtersortjooqapi.filter.keyparser;
import com.google.common.collect.ImmutableList;
import org.apache.commons.lang3.ArrayUtils;
import java.util.List;
import java.util.function.Function;
/**
* Created by Yoann CAPLAIN on 2017/9/10.
*/
@SuppressWarnings({"unchecked"})
public final class KeyPa... | 57.310345 | 143 | 0.54653 |
9c1761cba5229d4ab366da009ce8212066036d81 | 13,639 | /* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
Part of the Processing project - http://processing.org
Copyright (c) 2012 Ben Fry and Casey Reas
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License version 2.1... | 22.769616 | 77 | 0.56859 |
79d574e31e698874f668012f68f95fc357be71ff | 1,669 | package Misc;
class RainWater {
public static int trap(int[] height) {
//Time Complexity O(n^2)
//TODO : need to improve
int leftMax = 0;
int rightMax = 0;
int currValue = 0;
int water = 0;
for(int i=0;i<height.length;i++){
currValue=height[i];
... | 27.816667 | 109 | 0.525464 |
58d07ddbf61fdf08af406a761f92aa5e7452586d | 5,936 | /**
* 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... | 27.481481 | 75 | 0.837096 |
16a4e07e11148ecbb976f6dd2bf3d96b862f2396 | 1,846 | /*
* Copyright 2018 Albert Santos.
*
* 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... | 35.5 | 123 | 0.704767 |
0540e746a4a7b238ba9cb3d99580837bfacef485 | 2,577 | package ru.intertrust.cm.core.business.impl.search.retrievers;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import ru.intertrust.cm.core.business.api.dto.Filter;
import ru.intertrust.cm.core.business.api.dto.Value;
import ru.intertrust.cm.core.business.i... | 42.245902 | 122 | 0.766783 |
41768f9a9a688014504852988da6205d6521030f | 6,206 | package com.benbobis.squadgenerator.unit.service;
import com.benbobis.squadgenerator.exception.PlayerDataRetrievalException;
import com.benbobis.squadgenerator.model.*;
import com.benbobis.squadgenerator.service.PlayerServiceImpl;
import com.benbobis.squadgenerator.service.client.PlayerAPIClient;
import com.fasterxml.... | 35.261364 | 160 | 0.694167 |
23dd85c877761a925e7c4899960c79cca3a750ea | 386 | package com.htetznaing.boycottchina.items;
public class ColorItem {
Integer preview,theme;
public Integer getPreview() {
return preview;
}
public void setPreview(Integer preview) {
this.preview = preview;
}
public Integer getTheme() {
return theme;
}
public v... | 17.545455 | 45 | 0.621762 |
f9ecfb5953212b1ece1f81f0d995780d76d55e6c | 3,455 | package com.twu.book;
import com.twu.IO.PrinterMessage;
import com.twu.IO.ScannerInputUser;
import com.twu.bookModel.Book;
import java.util.ArrayList;
public class BookAlgorithm {
private ArrayList<Book> myBooks;
private PrinterMessage printerMessage = new PrinterMessage();
private ScannerInputUser scanne... | 28.089431 | 101 | 0.633575 |
883021f55ff9f43a2045115787725de0cf32c77b | 183 | package com.example.gcekhost.Notification;
public interface OnNotifiacaitonClick {
void OnClickListner( NotificationData nd);
void OnLongClickListner(NotificationData nd);
}
| 26.142857 | 49 | 0.808743 |
f74e07853726ce2aadf3c1ea479e7112a35a3135 | 1,967 | package eu.chargetime.ocpp.feature.profile;
/*
ChargeTime.eu - Java-OCA-OCPP
Copyright (C) 2015-2016 Thomas Volden <tv@chargetime.eu>
MIT License
Copyright (C) 2016-2018 Thomas Volden
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation file... | 34.508772 | 79 | 0.748348 |
4f09846becf92fd0642a4b0b3c5df51375be678e | 727 | package cn.neural.common;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* HttpStatusCode
*
* @author lry
*/
@Getter
@AllArgsConstructor
public enum HttpStatusCode {
// ===
OK(200, "成功"),
NO_CONTENT(204, "无内容"),
BAD_REQUEST(400, "服务器不理解客户端的请求(如,参数错误)"),
UNAUTHORIZED(401, "没有通过身份... | 20.771429 | 45 | 0.668501 |
b733028d8130289a4f1e53030719d5fc121497c2 | 2,796 | package io.docbot.classfile.reader.cp_Info;
import java.util.HashMap;
import java.util.Map;
public class Cp_InfoTags {
public static short CONSTANT_Class = 7;
public static short CONSTANT_Fieldref = 9;
public static short CONSTANT_Methodref = 10;
public static short CONSTANT_InterfaceMethodref = 11;
... | 62.133333 | 122 | 0.781831 |
1d3e76f1b9ff3f96a610fd466d0a98acdb4ce5b2 | 1,253 | /*
* 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 io.github.dmmn_games.earth_2045.doors;
import io.github.dmmn_games.earth_2045.enviroment.Room;
import io.github.dmmn_g... | 21.237288 | 80 | 0.62091 |
a67f035ef06b126b47f533876e1a92a4de30bfcd | 2,187 | package gui.util;
import gui.MainGUI;
import iot.Environment;
import org.jxmapviewer.JXMapViewer;
import org.jxmapviewer.OSMTileFactoryInfo;
import org.jxmapviewer.cache.FileBasedLocalCache;
import org.jxmapviewer.input.PanMouseInputListener;
import org.jxmapviewer.input.ZoomMouseWheelListenerCursor;
import org.jxmapv... | 32.641791 | 90 | 0.74257 |
18adf9aeccfdb99a19c7e8dfa10b53960d7c18c2 | 646 | package de.percsi.products.dackelcmdb.persistence;
import lombok.*;
import javax.persistence.*;
@Entity(name = Tables.CONNECTOR_ENTITY_TYPE_OF_ENTITY)
@Table(name = Tables.CONNECTOR_ENTITY_TYPE_OF_ENTITY)
@Data
@NoArgsConstructor(access = AccessLevel.PUBLIC)
@AllArgsConstructor(access = AccessLevel.PUBLIC)
@Builder
... | 22.275862 | 54 | 0.77709 |
02c548245d88fbb5b54295e807a2dab926e37e03 | 5,553 | /*
* Copyright 2015 Michel Lemay
*
* 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... | 25.948598 | 112 | 0.550153 |
2382eec895edbad1d1c0afd0f57c08cd80f633e9 | 54,279 | /*********************************************************************************
* Copyright 2015-present trivago GmbH
*
* 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:/... | 33.988103 | 215 | 0.70519 |
1c3d68dbcc42cb1ca6e7828892a3e60b5c75ed33 | 2,711 | package com.lowtuna.jsonblob.resource;
import com.codahale.metrics.annotation.Timed;
import com.lowtuna.dropwizard.extras.config.GoogleAnalyticsConfig;
import com.lowtuna.jsonblob.core.BlobManager;
import com.lowtuna.jsonblob.view.ApiView;
import com.mongodb.DBObject;
import com.sun.jersey.api.NotFoundException;
impor... | 30.806818 | 152 | 0.669126 |
48bcba24fc76d6860cd142f6c0a0c3e8c8276669 | 216 | package com.aditya.authentication.dto;
public class LoginRequest {
String username;
String password;
public String getUsername() {
return username;
}
public String getPassword() {
return password;
}
}
| 12.705882 | 38 | 0.731481 |
86f1ba5d8ef8de495d4b2185529854bc8f41fbcd | 5,815 | package mage.cards.g;
import java.util.HashSet;
import java.util.Set;
import java.util.UUID;
import mage.abilities.Ability;
import mage.abilities.effects.ContinuousEffectImpl;
import mage.abilities.effects.OneShotEffect;
import mage.abilities.effects.common.continuous.GainAbilityTargetEffect;
import mage.abilities.ke... | 37.75974 | 236 | 0.61307 |
0866ebf5c6b4dd28a199a69234729cf05d368cf7 | 839 | package utils.files;
import static org.junit.Assert.assertTrue;
import java.io.File;
import java.io.IOException;
import java.util.Collection;
import org.junit.Test;
public class SystemUtilsTest {
private static final String RESOURCES_JAVA_PROJECT = "./resources/javaProject";
private static final String RESOURCES_... | 28.931034 | 82 | 0.781883 |
aaabfc5761570414bd203eb035d31557f9a95c6c | 665 | package org.nju.mycourses.web.security.impl;
import java.util.HashMap;
import java.util.Map;
public class TokenMap {
private Map<String,String> tokenMap;
private static TokenMap ST=null;
private TokenMap(){tokenMap=new HashMap<>();}
public static TokenMap getTokenMap(){
if(ST==null){
... | 23.75 | 54 | 0.643609 |
b14bf645ff6f1f6f6d098a04b723d77a06c826e4 | 1,390 | package immortal.network;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;
import java.util.LinkedList;
import java.util.List;
public class TextTransfer {
private PrintWriter textOutput;
private BufferedReader text... | 26.730769 | 87 | 0.635971 |
6620c76cf0aa6c60c66ba2d99482de6de6dcb29c | 2,234 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 39.192982 | 155 | 0.725157 |
f705d6ddc8710d691a6abdc879fa0e02ab5ef6f7 | 4,073 | package com.smt.kata.distance.bean;
// JDK 11.x
import java.io.Serializable;
import com.siliconmtn.core.HashCodeUtil;
// Spacelibs 1.x
import com.siliconmtn.data.text.StringUtil;
/****************************************************************************
* <b>Title:</b> Location.java
* <b>Project:</b> SMT-Kata
... | 17.185654 | 78 | 0.63835 |
9a44d085a052a1566856e749e1d42b5b4d92879f | 3,374 | package com.github.loyada.jdollarx.singlebrowser;
import com.github.loyada.jdollarx.BasicPath;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import java.util.Arrays;
import java.util.concurrent.TimeUnit;
imp... | 34.080808 | 113 | 0.711322 |
2f4037790a5d9510e41fae9a466bd643f470bde5 | 3,384 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 39.348837 | 132 | 0.740839 |
d22d53ef23f4a59b92f00fc0ae8b8f225c35fdf7 | 4,327 | package theMarked.cards;
import com.megacrit.cardcrawl.actions.animations.VFXAction;
import com.megacrit.cardcrawl.actions.common.GainBlockAction;
import com.megacrit.cardcrawl.actions.common.ReducePowerAction;
import com.megacrit.cardcrawl.actions.utility.SFXAction;
import com.megacrit.cardcrawl.characters.AbstractPl... | 37.301724 | 155 | 0.706956 |
9b4e32d2c09c8838a2ce487127233a0d39dc65b7 | 2,488 | package com.thinkjoy.zkconfig.zookeeper;
import com.thinkjoy.zkconfig.AbstractLifecycle;
import com.thinkjoy.zkconfig.utils.ConfigLoader;
import com.thinkjoy.zkconfig.utils.NetUtil;
import org.apache.curator.framework.CuratorFramework;
import org.apache.curator.framework.CuratorFrameworkFactory;
import org.apache.cur... | 31.493671 | 101 | 0.655949 |
1d8332359cdf12af3e41977d63e15871c7d65a28 | 2,179 | package com.example.csc207simulator.game2.gametwoui;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import com.example.csc207simulator.Player;
import com.example.csc207simulator.R;
import com.example.csc207simulator.Setup... | 30.263889 | 73 | 0.670491 |
f22e4ce11acfadadca0db37affb02b84a08a296c | 8,111 | /*******************************************************************************
* Copyright (c) 2004 Actuate Corporation.
* 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 distribution, and is availabl... | 30.378277 | 111 | 0.652447 |
c0700baa0a652ab83074dfa9ff12e7a3f3f14b44 | 151 | package com.aliyun.openservices.log.request;
public class ResourceRequest extends Request {
public ResourceRequest() {
super("");
}
}
| 18.875 | 46 | 0.688742 |
d363d8758803982c00d6a6e8e5b35f6c025d38b5 | 623 | package hn.gob.sefin.rrhh.pasesalida.utils;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.springframework.stereotype.Component;
@Component
public class SystemTools {
public String getServerDate(String format){
String serverDate = "";
SimpleDateFormat formateadorFecha = new SimpleDateForma... | 27.086957 | 67 | 0.780096 |
fe4fe7b06661b07dc79e64659e645315e022e5d3 | 10,287 | /*******************************************************************************
** BonnMotion - a mobility scenario generation and analysis tool **
** Copyright (C) 2002-2012 University of Bonn **
** Copyright (C) 2012-2016 University of Osnabrueck ... | 39.718147 | 208 | 0.519005 |
8292317c0a68b21f1fdb3285327fc53135989f87 | 1,534 | package br.com.loom.elantris.repositories;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.nio.file.Files;
import br.com.loom.elantris.Elantris;
import br.com.loom.elantri... | 27.392857 | 94 | 0.672751 |
aa877a59e4eeda59808c93307f6d553471db78c0 | 2,325 | /*
* Copyright 2020 Spotify AB.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 36.904762 | 99 | 0.768172 |
64fd7822f3a7c969e89f33b4befff2e4101fc354 | 1,870 | package fr.clementbesnier.filelogger;
/**
* A logger with a hard coded tag that send logs to the supplied FLogger
*/
public class FLoggerWrapTagged {
protected final String tag;
protected final FLogger logger;
/**
* method called for every log call in case the file logger wasn't ready before
*
* @param l... | 19.479167 | 80 | 0.689305 |
92e668a62951b1a659ce8373a4e59c4279e562a4 | 1,189 | package com.chongzi.stream.dbus.canal;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.TypeReference;
import com.alibaba.otter.canal.protocol.FlatMessage;
import org.apache.flink.api.common.serialization.DeserializationSchema;
import org.apache.flink.api.common.serialization.SerializationSchema;
import o... | 33.027778 | 112 | 0.767031 |
05ee385ee1d7242c35043ee844e148b6623dc418 | 1,617 | package android.support.design.widget;
import android.graphics.Rect;
import android.os.Build;
import android.view.View;
import android.view.ViewGroup;
class ViewGroupUtils {
private static final ViewGroupUtilsImpl IMPL;
private interface ViewGroupUtilsImpl {
void offsetDescendantRect(ViewGroup viewGr... | 29.944444 | 84 | 0.680891 |
b06de054b202b514a45f45b4d8fb9d9b71cc5016 | 3,858 | package ay2021s1_cs2103_w16_3.finesse.model.util;
import java.util.Arrays;
import java.util.Set;
import java.util.logging.Logger;
import java.util.stream.Collectors;
import ay2021s1_cs2103_w16_3.finesse.commons.core.LogsCenter;
import ay2021s1_cs2103_w16_3.finesse.model.FinanceTracker;
import ay2021s1_cs2103_w16_3.fi... | 44.344828 | 99 | 0.675998 |
bad58c8ac8efda3ccce32148b785ae9e30d17063 | 7,819 | /*
* Copyright 2002-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 34.597345 | 102 | 0.758665 |
64740df786524d892c7c4c6aff1d83a9a3eb18d4 | 1,541 | package selen;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.jupiter.api.Assertions;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import java.util.List;
import static selen.driver.DriverFactory.*;
public class EighthTask {
@Before
public vo... | 35.022727 | 148 | 0.622972 |
e4eaf8cb8a5966da771d645c30a18339cc1e0c4d | 5,847 | /*******************************************************************************
* ___ _ ____ ____
* / _ \ _ _ ___ ___| |_| _ \| __ )
* | | | | | | |/ _ \/ __| __| | | | _ \
* | |_| | |_| | __/\__ \ |_| |_| | |_) |
* \__\_\\__,_|\___||___/\__|____/|____/
*
* Copyright (c... | 43.962406 | 111 | 0.514281 |
f64ac58dc34de3da78548112867a1b369edd8cf2 | 11,040 | package com.oz_heng.apps.android.fromtheguardian;
import android.app.LoaderManager;
import android.content.Intent;
import android.content.Loader;
import android.content.SharedPreferences;
import android.net.Uri;
import android.os.Bundle;
import android.os.Parcelable;
import android.preference.PreferenceManager;
import... | 36.8 | 106 | 0.662138 |
5e70f61503a2fceb20c2200679f66c6b8ac723b4 | 9,768 | /*
* Copyright 2012 WSO2, Inc. (http://wso2.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 applicable law ... | 41.74359 | 171 | 0.701474 |
96c9e0dd448ef8777291eeb2a11e07afaf509d8b | 14,136 | package us.ihmc.robotModels;
import org.apache.commons.lang3.tuple.ImmutablePair;
import us.ihmc.robotics.geometry.FramePoint;
import us.ihmc.robotics.geometry.RigidBodyTransform;
import us.ihmc.robotics.partNames.*;
import us.ihmc.robotics.referenceFrames.ReferenceFrame;
import us.ihmc.robotics.robotDescription.Joint... | 33.818182 | 193 | 0.660017 |
a5c61682b79346901cb1ccd235f6d92aef7a5d4f | 907 | /**
*
*/
package org.aikodi.chameleon.stub;
import org.aikodi.chameleon.core.element.Element;
import org.aikodi.chameleon.oo.expression.Expression;
import org.aikodi.chameleon.oo.type.Type;
import org.aikodi.rejuse.contract.Contracts;
/**
* A class of expression of which the type can be set directly.
* This is h... | 18.510204 | 63 | 0.68247 |
80c334ea4a5134fed5069a5762bedb2437c25234 | 2,134 | package com.udacity.jdnd.course3.critter.service;
import com.udacity.jdnd.course3.critter.entity.Customer;
import com.udacity.jdnd.course3.critter.entity.Pet;
import com.udacity.jdnd.course3.critter.exception.CustomerNotFoundException;
import com.udacity.jdnd.course3.critter.exception.PetNotFoundException;
import com.... | 32.333333 | 76 | 0.694002 |
82836417bda07e67d10aa8ac00fae496181dc7d2 | 1,926 | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintStream;
import java.net.ServerSocket;
import java.net.Socket;
public class BrokerServer implements Runnable {
public static int SERVICE_PORT = 9999;
private final Socket socket;
public BrokerS... | 30.571429 | 103 | 0.55919 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.