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 |
|---|---|---|---|---|---|
4f00f336553ef7537a25e0001badb0a07f70a4ef | 2,235 | package cn.linz.base.aop;
import cn.linz.base.common.model.Result;
import lombok.extern.slf4j.Slf4j;
import org.hibernate.exception.ConstraintViolationException;
import org.springframework.validation.BindingResult;
import org.springframework.validation.FieldError;
import org.springframework.web.bind.MethodArgumentNotV... | 34.384615 | 109 | 0.706488 |
0d7235a3ab4fba2232622e0f463cf8bce888eeab | 1,918 | package com.example.madpractical;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.ActivityCompat;
import androidx.core.content.ContextCompat;
import android.Manifest;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Bundle;
im... | 37.607843 | 98 | 0.644421 |
6ebf0bddca007fba0083241b194bd6f3cca08c57 | 29,229 | /*
* Copyright (C) 2010 {Apertum}Projects. web: www.apertum.ru email: info@apertum.ru
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your ... | 55.045198 | 352 | 0.693387 |
2fe767b7da4922d7c9afeb550c6888f7891c7987 | 1,045 | package pw.phylame.commons;
import lombok.NonNull;
import lombok.val;
public interface Hierarchical<T extends Hierarchical<T>> extends Iterable<T> {
int size();
T getParent();
T get(int index);
default boolean isRoot() {
return getParent() == null;
}
default boolean isAncestor(@Non... | 22.234043 | 91 | 0.507177 |
2e2938cb65061dd6344dd793b40125528d3d5949 | 489 | package ex6_1;
public class MyIntStack {
private int[] contents;
private int tos; // Top of the stack
// constructors
public MyIntStack(int capacity) {
contents = new int[capacity];
tos = -1;
}
public void push(int element) {
contents[++tos] = element;
}
public int pop() {
return contents[tos--];
}... | 15.28125 | 37 | 0.646217 |
9b439a89e96cdb92c58d83bac306313f7b02ceba | 4,316 | /*
* Copyright 2014 Blazebit.
*
* 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 i... | 34.528 | 145 | 0.688137 |
b5b85978fb0102a868494aa769f88f71f1517395 | 446 | package Managers;
import org.bukkit.entity.Player;
import PlayerWarpGUI.PlayerWarpGUI;
import Utils.A;
public class CommandManager {
public static boolean setWarpCheck(Player player, String perm){
if (!PlayerWarpGUI.perms.has(player, perm)) {
player.sendMessage(A.b(" &4You do not have permission... | 21.238095 | 129 | 0.701794 |
3ea8a5ec15995e1e2e480b4988a3ccda14c6f578 | 989 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | 29.088235 | 75 | 0.734075 |
2a4433522da2c91cba03e294a04fa63f527b30b7 | 429 | package org.phoenix.leetcode.challenges;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
class Problem19_DistinctSubsequencesTest {
private final Problem19_DistinctSubsequences test = new Problem19_DistinctSubsequences();
@Test
void numDistinct() {
... | 25.235294 | 93 | 0.72028 |
62ee4ef0ec1a1725c0806e24defeab8957ea54c9 | 429 | package com.coreoz.plume.jersey.dagger;
import com.coreoz.plume.jersey.jackson.ObjectMapperProvider;
import com.fasterxml.jackson.databind.ObjectMapper;
import dagger.Module;
import dagger.Provides;
import javax.inject.Singleton;
@Module
public class DaggerJacksonModule {
@Provides
@Singleton
static ObjectMapper... | 21.45 | 85 | 0.825175 |
7d78704e19b3d7dae2ba0426d6a8a16913f71ffd | 720 | package com.bing.admin.entity.system;
import com.bing.admin.common.domain.BaseDomain;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
import java.util.List;
/**
* @desc: 用户实体
* @author: Ryan
* @date: 2020/7/21 17:39
**/
@Data
@EqualsAndHashCode(callSuper = false)
publi... | 19.459459 | 48 | 0.622222 |
4c442bec5404500cdc1c2ab0bdd1c749b2338068 | 2,695 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 40.223881 | 123 | 0.75436 |
93dbb2a931688b727eab17c5e67462371c29e79b | 694 | package com.builtbroken.atomic.config.server;
import com.builtbroken.atomic.AtomicScience;
import net.minecraftforge.common.config.Config;
/**
*
* Created by Dark(DarkGuardsman, Robert) on 9/19/2018.
*/
@Config(modid = AtomicScience.DOMAIN, name = AtomicScience.DOMAIN + "/server")
@Config.LangKey("config.atomicsci... | 31.545455 | 78 | 0.74928 |
aaae02128390f6c05cea9f94a62e0fd8458edf25 | 3,376 | package com.magento.idea.magento2plugin.stubs.indexes.xml;
import com.intellij.ide.highlighter.XmlFileType;
import com.intellij.psi.PsiFile;
import com.intellij.psi.util.PsiTreeUtil;
import com.intellij.psi.xml.XmlAttribute;
import com.intellij.psi.xml.XmlFile;
import com.intellij.psi.xml.XmlTag;
import com.intellij.p... | 31.849057 | 100 | 0.627073 |
674f56743dc09ec531f81d73c3d92bb6859bafdb | 1,831 | /*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.instrumentation.api.instrumenter.http;
import io.opentelemetry.instrumentation.api.instrumenter.SpanNameExtractor;
import javax.annotation.Nullable;
/**
* Extractor of the <a
* href="https://github.com/ope... | 33.290909 | 140 | 0.752048 |
c08fb75e583214c09d6c4b043c922ef7350852b6 | 267 | package com.enonic.lib.graphql;
import com.enonic.xp.testing.ScriptRunnerSupport;
public class GraphqlScriptLibExampleTest
extends ScriptRunnerSupport
{
@Override
public String getScriptTestFile()
{
return "/lib/graphql-example.js";
}
}
| 19.071429 | 49 | 0.730337 |
1f0b853a8955e0e755f2bdb6eb3e6e7840a8b168 | 3,775 | package nl.weeaboo.lua2.luajava;
import java.lang.reflect.InvocationTargetException;
import java.util.List;
import javax.annotation.Nullable;
import nl.weeaboo.lua2.LuaException;
import nl.weeaboo.lua2.io.IReadResolveSerializable;
import nl.weeaboo.lua2.io.IWriteReplaceSerializable;
import nl.weeaboo.lua2.io.LuaSeri... | 30.443548 | 101 | 0.619868 |
bd1c32840012ece15ab7728255c9b484805df57d | 959 | package com.mikufans.blog.infrastructure.repository.user;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class UserPo implements Serializable {
/**
* user表... | 14.313433 | 57 | 0.590198 |
598f9e04de5cc93c207ffb035d2e50e845b7e7ac | 3,491 | /*
Copyright (C) GridGain Systems. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or... | 38.362637 | 120 | 0.672587 |
ca823d93082d8d4e5e685e5c57baf1431bd0239c | 595 | package comp3888.group5.sensordatacollector.dao;
import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;
import androidx.room.Update;
import java.util.List;
import comp3888.group5.sensordatacollector.model.User;
@Dao
public interface UserDao {
@Query("SELE... | 19.193548 | 56 | 0.719328 |
e9f48d9d67f23b148d0285a0e8c2bcf5412fb9bf | 4,423 | /*
* 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 call_academy.ejb;
import call_academy.entities.EstudianteEntity;
import call_academy.entities.MonitoriaIndividualEntity;
impor... | 54.604938 | 162 | 0.770066 |
05e0093d6ada767eedc582c9c19afe5fa5eb7528 | 17,804 | package com.wonderful.ishow.app;
import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Color;
import android.graphics.PointF;
import android.graphics.PorterDuff;
import android.... | 31.964093 | 128 | 0.711076 |
c4f0eda29c1bb64db15617d90ecbdac6cdc564ff | 1,429 | package com.example.android.miwok;
/**
* Created by AJAY OMKAR on 06-Dec-16.
* custom class to show default and miwok translation of word
*/
public class Word {
// states of the class
private String mDefaultTranslation;
private String mMiwokTranslation;
private int mImageResourceId = NO_IMAGE_PROVI... | 32.477273 | 102 | 0.717985 |
4c0170de54898b0440a86836db556b1f54926325 | 6,798 | /**
* Copyright (c) 2017-2018, Salesforce.com, 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, this list of... | 41.45122 | 120 | 0.705796 |
f2aaf1bfa8e87e6f4af3402eb2f49c788f320a80 | 2,433 | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.idea.svn;
import com.intellij.execution.process.ProcessOutput;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.testFramework.vcs.TestClient... | 40.55 | 140 | 0.762844 |
b6335790bb30f546a7387079b1764c28e6343fff | 585 | package com.mercury.chat.common.constant;
import org.apache.commons.lang.ObjectUtils;
public enum Operation {
LOAD((byte) 0),ADD((byte) 1),UPDATE((byte) 2),DELETE((byte) 3);
private byte value;
private Operation(byte value) {
this.value = value;
}
public byte value(){
return value;
}
... | 19.5 | 65 | 0.664957 |
345e89b040f9e38cf1a6a4f2c36db401ba735467 | 215 | package UtestProyecto.userinterface;
import net.serenitybdd.core.pages.PageObject;
import net.thucydides.core.annotations.DefaultUrl;
@DefaultUrl("https://utest.com/")
public class UtestPage extends PageObject {}
| 26.875 | 50 | 0.818605 |
8509a54647bc9d905eb2f1de0ad25664ec5fa45b | 6,758 | package javax.crypto.spec;
import java.security.InvalidKeyException;
import java.security.spec.KeySpec;
/**
* This class specifies a DES key.
*/
public class DESKeySpec
implements KeySpec
{
public static final int DES_KEY_LEN = 8;
private byte[] keyBytes = new byte[DES_KEY_LEN];
/**
* Uses t... | 34.65641 | 99 | 0.571471 |
24043a8f12c6432fd8d0b427ff5a03139fff97c2 | 1,798 | package opPlanner.KLINIsys.controller;
import opPlanner.KLINIsys.DemoDataHelper;
import opPlanner.KLINIsys.model.*;
import opPlanner.KLINIsys.repository.*;
import opPlanner.KLINIsys.service.AuthService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.Reques... | 33.296296 | 107 | 0.785317 |
824daa64a743ef83cd921bbc248af4b9e448cfa9 | 1,244 | /*
* Copyright 2003 (C) Devon Jones
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library ... | 23.471698 | 74 | 0.706592 |
067b5479581e9b2aed7de76f178c00a66fff9849 | 1,536 | package de.unistuttgart.iste.ps.skilled.util.Tarjan;
import java.util.ArrayList;
import java.util.List;
/**
* Class which represents a vertex for Tarjan's Algorithm.
*
* @author Marco Link
*/
public class Vertex {
private String name;
private List<Vertex> edges;
private boolean visited;
private... | 19.443038 | 76 | 0.627604 |
341812f48593b0d7757495cd7f7dc6613b1d16c5 | 1,208 | package Tests;
import Huffman_Encoding.*;
import static org.junit.jupiter.api.Assertions.*;
import org.junit.jupiter.api.Test;
import Huffman_Encoding.FreqTable;
import Huffman_Encoding.HTree;
class Tree_Test {
@Test
void test1() {
FreqTable frequencies = new FreqTable();
frequencies.addCharacter('a', 1... | 29.463415 | 84 | 0.673841 |
71e6caa69c414d631b5428a54ba835c8865e0813 | 1,284 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
/**
* This package contains the classes for ContentModeratorClient.
* You use the API to scan ... | 61.142857 | 311 | 0.779595 |
3df8ef25cde7845e42e26888a3074064a49cfbaf | 5,555 | package net.sourceforge.ondex.transformer.relationdatasource;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import net.sourceforge.ondex.annotations.Authors;
import net.sourceforge.ondex.annotations.Custodians;
import net.sour... | 30.190217 | 97 | 0.688569 |
9498a13df912a6e7cb2371e90c7ca0b1b1c2258f | 259 | package com.telerikacademy.car_service.services.contracts;
import com.telerikacademy.car_service.models.Model;
import java.util.List;
public interface CarModelService {
List<Model> listModels();
List<Model> listModelsByMakerId(Integer makerId);
}
| 21.583333 | 58 | 0.795367 |
8b6909b98908d486a3b89460d0989eb7d9b51f62 | 891 | /*
https://leetcode.com/problems/valid-parentheses/
20. Valid Parentheses
*/
class Solution {
public boolean isValid(String s) {
char[] ch=s.toCharArray();
Stack<Character> stack = new Stack<>();
for(char c: ch){
if(stack.isEmpty()){
stack.push(c);
... | 24.75 | 53 | 0.371493 |
d26b09f9bd058f1995c64ecdb79b09274ed84859 | 3,386 | package com.wso2.password.policy.handler.validator.impl;
import com.wso2.common.constant.Constants;
import com.wso2.common.exception.WSO2Exception;
import com.wso2.password.policy.handler.util.PasswordPolicyHandlerUtils;
import com.wso2.password.policy.handler.validator.AbstractPasswordValidator;
import org.apache.com... | 36.804348 | 119 | 0.688423 |
964f8c79039163ff22f5768f42ef58a4506e1471 | 13,563 | package am.amitm29.com.home;
import android.app.AlertDialog;
import android.arch.lifecycle.LiveData;
import android.arch.lifecycle.Observer;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.Nullable;
import andro... | 33.738806 | 122 | 0.589029 |
21ff74413cfbc3a73f2644e7964ce38ea2da6306 | 415 | package ca.corefacility.bioinformatics.irida.exceptions;
/**
* Exception thrown when a remote file is attempted to be used before it has
* been cached locally.
*/
public class RemoteFileNotCachedException extends RuntimeException {
public RemoteFileNotCachedException(String message) {
super(message);
}
public... | 25.9375 | 76 | 0.785542 |
79c9a22b974c0a90860e6870d4f43281cd6fab92 | 11,728 | /*
* Copyright (c) 2015 EMC Corporation
* All Rights Reserved
*/
package com.emc.storageos.coordinator.client.model;
import java.util.HashMap;
import java.util.Map;
import java.util.TreeMap;
import org.jsoup.helper.StringUtil;
import com.emc.storageos.coordinator.common.Configuration;
import com.emc.storageos.coo... | 30.62141 | 106 | 0.608203 |
f7977dbd786c2be6c92e1992e86130d98f031789 | 1,607 | package com.skytala.eCommerce.domain.order.relations.orderType.command.attr;
import org.apache.ofbiz.entity.Delegator;
import org.apache.ofbiz.entity.DelegatorFactory;
import org.apache.ofbiz.entity.GenericEntityException;
import org.apache.ofbiz.entity.GenericValue;
import com.skytala.eCommerce.domain.order.relations.... | 36.522727 | 99 | 0.835096 |
cfe828317a7e85367a18fbec24c249d4ca83c97a | 1,708 | package info.varden.hauk.manager;
/**
* A listener interface for clients that want to receive state updates from the GNSS service for
* active sessions.
*
* @author Marius Lindvall
*/
public interface GNSSStatusUpdateListener {
/**
* Called when the session and its corresponding GNSS listeners are stoppe... | 32.226415 | 99 | 0.683841 |
723eea0565eadc5ddd433f7743fd0396b249ead6 | 1,875 | package wx.utils.compress;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import java.io.File;
import java.io.IOException;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.io.TempDir;
class... | 32.327586 | 96 | 0.714133 |
e1146a1df907b3c55c7686749edecd4ea5de11c3 | 326 | package ru.job4j.lambda.references;
public class MathUtil {
public static double add(int left, int right) {
return left + right;
}
public static double div(int left, int right) {
return left / right;
}
public static double mul(int left, int right) {
return left * right;
... | 20.375 | 51 | 0.619632 |
786a46551abcd179a4f74038a3337c555a266eb3 | 4,670 | package com.example.sendwarmthattendant.presenter;
import android.app.AlertDialog;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.net.Uri;
import android.widget.Toast;
im... | 40.608696 | 110 | 0.6 |
c91a1a2059d4da361bc6f2ca315854d6fb9558ff | 1,854 | package edu.fiu.ffqr.controller;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathV... | 28.96875 | 129 | 0.762136 |
3cc43294e06e753af4bd73eab23e016cd865b490 | 3,304 | package org.jnd.microservices.apigateway.proxies;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.jnd.microservices.model.User;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.*;
import org.springframework.stereotype.Component;... | 34.061856 | 108 | 0.59655 |
b8c2c2acafa9f50727fb5f525c8f0307f4356804 | 944 | package com.projectzero.dao;
public class User {
private int userId;
private String userName;
private String passwordHash;
public User(int userId, String userName, String passwordHash) {
super();
this.userId = userId;
this.userName = userName;
this.passwordHash = passwordHash;
}
public User(String use... | 20.521739 | 90 | 0.67161 |
ad1a747b1a4e7acfd4d6f2fc06b0c9e53cdd0e74 | 1,307 | package com.example.minhaloja.modelo;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
@Entity
public class Cliente {
@Id
@Gene... | 21.783333 | 92 | 0.633512 |
21ac3a1b15c6586d51982105158f739571586b1b | 535 | package com.zrzhen.sqlgraph.dao;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.List;
import java.util.Map;
/**
* @author chenanlian
*/
public class DbDao extends MysqlFirstBaseDao {
private static final Logger log = LoggerFactory.getLogger(DbDao.class);
public static final St... | 20.576923 | 90 | 0.704673 |
c345f3208cf0de166d88d1e606f2f2bb83afef9f | 227 | package classes.render.mustBeRendered.square.types;
import classes.render.mustBeRendered.square.Square;
public class enemyStartSquare extends Square {
public enemyStartSquare() {
super("satan_big.png");
}
}
| 18.916667 | 51 | 0.744493 |
cc1566f9cc2799142500481221a1de2c755398b4 | 6,489 | package mil.nga.giat.mage.map.preference;
import android.app.Activity;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.util.Log;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.content.res.AppCompatResources;
import androidx... | 37.293103 | 145 | 0.753429 |
7ef1277f9d85a54d73aa691332783558cea48b29 | 4,141 | package ws.bmocanu.aoc.ed2020;
import java.util.List;
import ws.bmocanu.aoc.flex.Point;
import ws.bmocanu.aoc.support.Log;
import ws.bmocanu.aoc.utils.FileUtils;
import ws.bmocanu.aoc.utils.Utils;
import ws.bmocanu.aoc.xbase.SolutionBase;
public class Day24LobbyHexagonalConwaysGame extends SolutionBase {
... | 36.008696 | 97 | 0.331562 |
91444502833a7d3d8d26c76a97349b238880b928 | 8,224 | package com.acg12.ui.activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.NavigationView;
import android.support.v4.view.GravityCompat;
import android.view.KeyEvent;
import android.view.MenuItem;
import android.view.View;
import com.acg12.R;
import com.acg12.cache.Da... | 33.704918 | 169 | 0.612111 |
a876f3b984e8821a49338f843239a2f8039c205d | 14,230 | /*******************************************************************************
* Copyright (c) 2006 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... | 22.062016 | 81 | 0.616866 |
d39b19503bcc036272a36708599dfb3b6cda6a1d | 3,131 | /******************************************************************************
* NOTICE *
* *
* This software (or technical data) was produced for the U.S. Government *
... | 50.5 | 104 | 0.5206 |
cf80aeb52729f81df0ea784ae029072d5568a8de | 5,608 | /**
* Copyright (c) 2016 Justin Young
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish,... | 37.891892 | 121 | 0.665478 |
e278f143d6afe4bd24332838f26cb369e7311242 | 857 | package com.piesat.entity;
import java.math.BigDecimal;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Builder;
import lombok.Data;
import lombok.experim... | 17.489796 | 55 | 0.676779 |
63a665be73752b610eddd8f956e34fc59188854c | 232 | package br.com.microservice.fornecedor;
import org.junit.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class SpringMicroserviceFornecedorApplicationTests {
@Test
void contextLoads() {
}
}
| 16.571429 | 60 | 0.810345 |
4e74aa4227dee366d08b69fa83a7eafd44a85bb4 | 1,441 | package com.helpernet;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import com.facebook.react.bridge.Callback;
import com.facebook.react.bridge.ReactContext;
import com.facebook.react.bridge.ReactContextBaseJavaModule;
import com.facebook.react.bridge.ReactApplicationContext;... | 24.423729 | 85 | 0.755725 |
fd2b19f7f2c5145b3ddc1b8097922d471dbd93e5 | 2,305 | package com.webcheckers.ui;
import com.google.gson.Gson;
import com.webcheckers.Application;
import com.webcheckers.model.Game;
import com.webcheckers.model.Piece;
import com.webcheckers.util.Message;
import spark.*;
import javax.servlet.http.HttpSession;
import java.util.Objects;
/**
* The UI Controller to Post th... | 33.405797 | 100 | 0.627332 |
c9e0991239d2bc6eef8a7d0be7efad9d3fb6eac3 | 1,365 | package nl.uscki.appcki.android;
import android.app.Application;
import android.content.Context;
import io.github.inflationx.calligraphy3.CalligraphyConfig;
import io.github.inflationx.calligraphy3.CalligraphyInterceptor;
import io.github.inflationx.viewpump.ViewPump;
import nl.uscki.appcki.android.api.ServiceGenerat... | 33.292683 | 124 | 0.65348 |
f6a65354b04975f9b2695ebbcdc6f44ee040aaa7 | 12,549 | /*
* Copyright (C) 2013 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 34.380822 | 125 | 0.63519 |
b97dc1d9eac2db285a4796b7180314bcf32368db | 818 | package core.utils;
import core.metrics.PartitioningCostCalculator;
public class EnumUtils {
public static class Enumerate{
protected int iterations = 0;
protected int[] ordering;
protected double minCost = Double.MAX_VALUE;
protected int[] bestPartitioning;
public int[] enumerate(int[] ordering){
... | 20.974359 | 94 | 0.718826 |
a2fe60e295e95f6dc527a57082b9f198f495ad2e | 2,056 | /*
* Copyright 2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 34.266667 | 178 | 0.742704 |
a656bb8526443756782069cb624aa39b69dd18e8 | 401 | package de.dseelp.discordsystem.api.events.discord.guild;
import net.dv8tion.jda.api.JDA;
import net.dv8tion.jda.api.entities.Guild;
import net.dv8tion.jda.api.entities.TextChannel;
public class GuildMessageDeleteEvent extends GuildMessageEvent {
public GuildMessageDeleteEvent(JDA JDA, Guild guild, TextChannel c... | 30.846154 | 95 | 0.780549 |
fa3802bcc8331d81b0aa89106edcadd6e4feaf41 | 1,793 | /*
* 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 ... | 23.592105 | 72 | 0.696598 |
3e7c7cc5cc417f73d687e30d4638c97783120ad7 | 1,742 | //句子 是一个单词列表,列表中的单词之间用单个空格隔开,且不存在前导或尾随空格。每个单词仅由大小写英文字母组成(不含标点符号)。
//
//
// 例如,"Hello World"、"HELLO" 和 "hello world hello world" 都是句子。
//
//
// 给你一个句子 s 和一个整数 k ,请你将 s 截断 ,使截断后的句子仅含 前 k 个单词。返回 截断 s 后得到的句子。
//
//
//
// 示例 1:
//
// 输入:s = "Hello how are you Contestant", k = 4
//输出:"Hello how are you"
//解释:
//s 中的单词... | 21.243902 | 70 | 0.525258 |
9ce5d6d39728e175a6bcc6794940375800079216 | 4,869 | package project8;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
public class Parser {
private final String inputFileName;
private final Scanner scanner;
private String nameOfCurrentFunction = "";
private short callCounterOfCurrentFunction = 0;
priv... | 45.083333 | 119 | 0.508318 |
a20b19e06eec9e3892d7f118854352ee4aff4b85 | 1,335 | package core.framework.internal.stat;
import core.framework.util.ASCII;
import java.lang.management.GarbageCollectorMXBean;
import java.util.concurrent.TimeUnit;
/**
* @author neo
*/
class GCStat {
final String name;
private final GarbageCollectorMXBean bean;
private long previousCount; // generally on... | 28.404255 | 99 | 0.642697 |
71320065667567a36ed1f7c6a7dc5800e9133d9f | 4,892 | package com.christianleonhard.utils; /**
* @Program: utils
* @Description:
* @Author: MarcoWatermelon
* @Date:Create:in 2020-01-08 10:37
* @Modified By:
*/
/**
* @Program: utils
* @Description: 获取系统信息工具
* @Author: MarcoWatermelon
* @Create: 2020-01-08 10:37
**/
public class GetPropertyUtils {
public sta... | 31.56129 | 108 | 0.632257 |
21cf9a0d2bf106c2cccf665237dcc635dbd78890 | 13,527 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v10/resources/feed_item.proto
package com.google.ads.googleads.v10.resources;
public final class FeedItemProto {
private FeedItemProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegis... | 64.722488 | 278 | 0.754861 |
72a9df81f7a5a1a2081d92897f49bdd6d88c1659 | 1,973 | package hotelsystem.entity;
import java.io.Serializable;
@SuppressWarnings("serial")
public class Guest implements Serializable{
private static int maxID = 1;
private int guest_ID;
private String nric;
private String name;
private String address;
private long phone;
private String country;
private char sex;
... | 24.974684 | 83 | 0.725798 |
aca470377ba4ea868b668371faa4ce19b6eb2d36 | 9,332 | package org.zstack.storage.primary.iscsi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.util.UriComponentsBuilder;
import org.zstack.core.cloudbus.CloudBus;
import org.zstack.core.cloudbus.CloudBusCallBack;
import org.zstack.core.db.DatabaseFacade;
import org.zsta... | 46.19802 | 205 | 0.651307 |
d7541939bddd5b5e2bdf4cbd2a2abcdaf1784425 | 2,075 | /*
* Licensed to The Leidos Corporation under one or more contributor license agreements.
* See the NOTICE file distributed with this work for additional information regarding copyright ownership.
* The Leidos Corporation licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may n... | 35.169492 | 153 | 0.687711 |
e371d9c98780920f7faee00928a010b7bd3e0e11 | 4,258 | /*
* 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 agre... | 36.393162 | 140 | 0.710193 |
bebfbfef8a7b73902cf7f7f29979498e1ef27912 | 426 | package com.buer.javadesignpatterns.creational.prototype;
/**
* Created by Administrator on 2015/2/10.
*/
public class Triangle implements Prototype, Cloneable {
double a, b, c;
public Triangle(double a, double b, double c) {
this.a = a;
this.b = b;
this.c = c;
}
@Override
... | 21.3 | 63 | 0.631455 |
b327fcb7c17b47875d57a5e1905204fc8de597b7 | 3,840 | package com.scalar.cassy.transferer;
import static org.assertj.core.api.Assertions.assertThatThrownBy;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.anyString;
import static org.mockito.Mockito.never;
import static org.mockito.Mockito.verify;
import static org.mockito.Mocki... | 38.019802 | 100 | 0.759896 |
485558cfc894524ce68b26134b1000378586a011 | 1,669 | // Copyright 2000-2021 Nokia
//
// Licensed under the Apache License 2.0
// SPDX-License-Identifier: Apache-2.0
//
package com.nokia.as.gpto.common.msg.api;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
public class ExecutionStateMessage extends GPTOMessage {
private int exec... | 21.675325 | 116 | 0.742361 |
5fb14be91daafafda61a89421d27950a008339f5 | 8,743 | package com.usman.utilities;
import com.usman.student.StudentDAO;
import com.usman.student.StudentData;
import javafx.scene.image.Image;
import sun.misc.IOUtils;
import javax.activation.DataHandler;
import javax.activation.DataSource;
import javax.activation.FileDataSource;
import javax.mail.*;
import javax.mail.inte... | 50.537572 | 206 | 0.521903 |
ac44f50a707ec2091f98a51c2b9d11d169c18ae3 | 8,151 | package com.kore.ai.widgetsdk.adapters;
import android.content.Context;
import android.content.DialogInterface;
import android.graphics.drawable.Drawable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.RelativeLayout;
... | 38.448113 | 125 | 0.648877 |
789d704c118c1855c24ab626166012f815e60476 | 2,657 | /*
* 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 distance.test;
import distance.convolution.ConvNTuple;
import distance.kl.KLDiv;
import distance.pattern.PatternCount;
import ... | 39.073529 | 137 | 0.699661 |
d55186d0a6467c85eb7cce25149b4c5af536bb0c | 1,854 | package example;
import example.client.PostmanEchoClient;
import example.client.PostmanEchoClient2;
import example.client.PostmanEchoClient3;
import example.client.PostmanEchoClient4;
import example.dto.*;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.sprin... | 36.352941 | 110 | 0.756742 |
1c33fd85781f652a0b4adadb273d31e4144b23fb | 3,777 | /*
* Copyright 2015, 2019 Peter Franzen. All rights reserved.
*
* Licensed under the Apache License v2.0: http://www.apache.org/licenses/LICENSE-2.0
*/
package org.myire.quill.cpd;
import org.gradle.api.Plugin;
import org.gradle.api.Project;
import org.gradle.api.Task;
import org.gradle.api.artifacts.Configuration... | 33.424779 | 100 | 0.68467 |
c5eefe4b146615ba07bdb4d37f72ced39cc23ce6 | 343 | package com.d.lib.aster.base;
/**
* Request management to facilitate mid-way cancellation of requests
*/
public interface IRequestManager<Observer> {
void add(Object tag, Observer disposable);
void remove(Object tag);
void removeAll();
boolean canceled(Object tag);
void cancel(Object tag);
... | 18.052632 | 68 | 0.699708 |
2fb946af096a610efca4fbc96e8b26dc053a4135 | 292 | package hu.boldizsartompe.photofeed.presenter.view.screens.login;
import hu.boldizsartompe.photofeed.presenter.view.IView;
public interface LoginView extends IView {
void showTypeUsername();
void showTypePassword();
void showLoginProgress();
void showErrorOnLogin();
}
| 18.25 | 65 | 0.763699 |
faf31119d52d731f80d7f84b44379e6fdfd5d0c7 | 3,346 | package notaql.engines.incremental.util;
import notaql.model.AttributeSpecification;
import notaql.model.vdata.ArithmeticVData;
import notaql.model.vdata.ObjectVData;
import notaql.model.vdata.VData;
import notaql.model.vdata.aggregation.AggregatingVData;
import notaql.model.vdata.aggregation.CountVData;
import notaql... | 34.854167 | 209 | 0.757023 |
699e72463d35bd675fd7936e66e4aa16198b92f7 | 993 | /*
* Copyright 2010-2012 napile.org
*
* 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... | 28.371429 | 88 | 0.740181 |
1a771b0a58ac6abd05694ba9ee694bc780ed6357 | 2,856 | /*
* Copyright Strimzi authors.
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
*/
package io.strimzi.systemtest.templates.crd;
import io.fabric8.kubernetes.client.dsl.MixedOperation;
import io.fabric8.kubernetes.client.dsl.Resource;
import io.strimzi.api.kafka.C... | 39.123288 | 140 | 0.678571 |
5eeb6414b55d3ce10fa2cfd01a8e33caa2d8d81e | 7,455 | package com.commercetools.sync.services.impl;
import com.commercetools.sync.customobjects.CustomObjectSync;
import com.commercetools.sync.customobjects.CustomObjectSyncOptions;
import com.commercetools.sync.customobjects.helpers.CustomObjectCompositeIdentifier;
import com.commercetools.sync.services.CustomObjectServic... | 37.84264 | 98 | 0.74165 |
9ab902478d000d6c1959ac0fc41ee518f20d2ac5 | 628 | package com.akaxin.site.storage.api;
import java.sql.SQLException;
import java.util.List;
import com.akaxin.site.storage.bean.SimpleUserBean;
public interface IUserFriendDao {
boolean saveRelation(String siteUserId, String siteFriendId, int relation) throws SQLException;
int queryRelation(String siteUserId, Stri... | 29.904762 | 98 | 0.829618 |
a09d461e318faf64a26015475a5183bf24b2c585 | 99 | /**
* Concept Insights Service v2
*/
package com.ibm.watson.developer_cloud.concept_insights.v2;
| 19.8 | 59 | 0.767677 |
1063be640aef36958e1b674b1270e40dc9e9b4a1 | 5,769 | package com.aliyun.rtc.audiochatroom.utils;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
/**
* 网络连接状态的监听器。通过注册broadcast实现的
*/
public class NetWatch... | 29.433673 | 134 | 0.598891 |
0f9aa1e03021b0f68b08b1b091416602a7393a5e | 6,682 | /*
* Copyright 2014 AT&T
*
* 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 wr... | 29.697778 | 146 | 0.697695 |
2ab4062a8d529b8ae8db47daf2b262da7663f17b | 6,696 | package com.wisn.skin;
import android.content.Intent;
import android.os.Bundle;
import android.os.Environment;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.ImageButton;
import android.widget.LinearLayout;
import android.widget.Ra... | 42.923077 | 146 | 0.655167 |
68474c771af7c31f089ec5f321d4b59ff0b04566 | 551 | package com.project.exception;
import com.project.common.Result;
import com.project.common.ResultGenerator;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;
@RestControllerAdvice
public class GlobalExceptionHandler {
@ExceptionH... | 30.611111 | 68 | 0.805808 |
292013f6bcf26925a777aff54abdf10203d50e55 | 15,295 | /*
*
* This file is part of the iText (R) project.
* Copyright (c) 1998-2016 iText Group NV
* Authors: Bruno Lowagie, Paulo Soares, et al.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License version 3
* as published by the Free S... | 32.2 | 110 | 0.63086 |
4fe582cc9a6e9001c3ce3da03bd9b1d509addadf | 1,236 | package com.nyaruka.sigtrac;
import android.app.ActivityManager;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
public class BootReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
checkServ... | 28.090909 | 106 | 0.676375 |
04d27c664fabc8dab5e439f179911e4849cb33ec | 425 | package br.ufc.mdcc.hpcshelf.backendservices.proxy;
import javax.xml.ws.Endpoint;
public class BackEndServicesPublisher {
public static void main(String[] args) {
String externalEndpoint = args[0]; // "http://200.19.177.89:8000/BackEndServices"
String localPyWSEndpoint = args[1]; // "http://200.19.177.89:8001... | 32.692308 | 85 | 0.762353 |
fe19508a1bbdb369b8ba3e1ff07051636d02c17f | 1,457 | package ru.iiec.cxxdroid.gui;
import android.content.Intent;
import java.io.File;
public class Util {
public static void a(String str, String str2) {
System.loadLibrary("guiutil");
setEnv(str, str2);
}
public static void a(String str, String str2, String[] strArr) {
System.loadLib... | 28.019231 | 82 | 0.597117 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.