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 |
|---|---|---|---|---|---|
c0d7f41ea75e8b170317c6648f95cfcc6e0ae2ab | 6,296 | package com.cwc.mylibrary.utils;
/**
* Created by Administrator on 2017/4/10.
*/
import android.app.Activity;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.support.v4.app.ActivityCompat;
import android.text.Spannable;
import android.t... | 30.415459 | 120 | 0.54352 |
a7d5c80e822c22a8a139e53a4bcebb7c6be24c9f | 3,727 | /*
* Copyright (C) 2017 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... | 41.411111 | 98 | 0.677757 |
40f1e8b0f88204cfa488534caeabb64cc8db32fa | 804 | package ParseTree.ActionNodes;
import java.util.Scanner;
import javax.xml.ws.handler.MessageContext.Scope;
import LookAheadScanner.LookAheadScanner;
import Main.ParserFailureException;
import Main.Robot;
public class ShieldOnActionNode extends ActionNode {
private ShieldOnActionNode() {
}
@Override
public... | 19.142857 | 79 | 0.722637 |
63a38a7e2a8ebe218c66479203d15794a46218a8 | 5,695 | /**
* -----------------------------------------------------------------------
* HOW TO USE THE METHODS IN (mysqli_query.java)
* -----------------------------------------------------------------------
* Query => mysqli_query sql = new mysqli_query(" _SQL_STATEMENT_GOES_HERE_ ");
* Rows => sql.mysqli_num_rows(); //... | 41.569343 | 116 | 0.512906 |
aef93908f34034648bc542e0f74522710ebd70ee | 1,964 |
package org.insightcentre.nlp.saffron.data.connections;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.IOException;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;
/**
*
* @autho... | 28.463768 | 160 | 0.617108 |
94b7549a0dc06068022fe0acf228bd7f1914523b | 284 | package example.repo;
import example.model.Customer1031;
import java.util.List;
import org.springframework.data.repository.CrudRepository;
public interface Customer1031Repository extends CrudRepository<Customer1031, Long> {
List<Customer1031> findByLastName(String lastName);
}
| 21.846154 | 84 | 0.830986 |
1de123f54eabe4b057fff39c40c8c6a238e6a9c8 | 136 | import java.util.*;
class T {
void f(Set<String> t, String[] f, int a, int b) {
t.addAll(Arrays.asList(f).subList(a, b));
}
} | 19.428571 | 51 | 0.580882 |
c56b5ec514f1b437ef801d4313f3364236482a4a | 723 | package org.hanframework.beans.parse.exception;
/**
* @author liuxin
* @version Id: BeanDefinitionParserException.java, v 0.1 2019-01-31 14:54
*/
public class BeanDefinitionParserException extends RuntimeException {
public BeanDefinitionParserException(String message) {
super(message);
}
publi... | 28.92 | 130 | 0.738589 |
1ebbd01b2b1c844f7922c54546b3827b7c6ee693 | 400 | package com.example.coolweather.gson;
import com.google.gson.annotations.SerializedName;
import java.util.List;
/**
* Created by Administrator on 2017/6/15.
*/
public class Weather {
public String status;
public Basic basic;
public AQI aqi;
public Now now;
public Suggestion suggestion;
... | 20 | 50 | 0.7125 |
c43c6b7ed83ac6805dd4fab3dd8e395cc2bf82dd | 5,889 | //This is a java program to search an element in binary search tree
import java.util.Random;
import java.util.Scanner;
/* Class BSTNode */
class BSTNode
{
BSTNode left, right;
int data;
/* Constructor */
public BSTNode()
{
left = null;
right = null;
data = 0;
}
... | 21.336957 | 74 | 0.452199 |
d794e1cdec0008aad24c2b284ccf5bac703cc304 | 347 | package saqib.rasul.server;
import java.rmi.RemoteException;
import saqib.rasul.Compute;
import saqib.rasul.Task;
public class ComputeEngine
implements Compute {
@Override
public <T> T executeTask(Task<T> t)
throws RemoteException {
System.out.println("got compute task: " + t);
r... | 19.277778 | 53 | 0.674352 |
f4436011d635ad1f1ea8023c053e69a997aa5b4d | 317 | package com.liveramp.hank.ui;
import com.liveramp.hank.generated.ClientMetadata;
import java.util.Comparator;
public class ClientMetadataComparator implements Comparator<ClientMetadata> {
@Override
public int compare(ClientMetadata a, ClientMetadata b) {
return a.get_host().compareTo(b.get_host());
}
}
| 24.384615 | 77 | 0.782334 |
3629ff8e8a1f980cb51b1dacbb6779ea449a5991 | 4,689 | /*
* @(#)Question.java
* Copyright © 2020 Werner Randelshofer, Switzerland. MIT License.
*/
package ch.randelshofer.gift.parser;
import java.text.Normalizer;
import java.util.LinkedList;
import java.util.StringTokenizer;
/**
* Question.
*
* @author Werner Randelshofer
*/
public class Question {
private St... | 27.261628 | 106 | 0.507997 |
5995b49b964a0fef2208a5bbf0cef2012f70b627 | 543 | package com.diamondq.common.lambda.interfaces;
public interface CancelableSupplier<R> extends Supplier<R>, java.util.function.Supplier<R>, Cancelable {
public static final class NoopCancelableSupplier<R> implements CancelableSupplier<R> {
private final Supplier<R> mDelegate;
public NoopCancelableSupplier(... | 20.884615 | 104 | 0.694291 |
4ce95cd4feb52e0656563bf9c3caee3235915771 | 649 | package cn.amarone.model.sys.common.bizEnum;
/**
* @Description:
* @Author: Amarone
* @Created Date: 2019年03月27日
* @LastModifyDate:
* @LastModifyBy:
* @Version:
*/
public enum CommEnum {
success("200", "操作成功!"), error("500", "操作失败!");
private String code;
private String msg;
CommEnum(String c... | 17.540541 | 51 | 0.57319 |
ee2703c285bc2cf69adc4c377d5089d51f394756 | 507 | package com.nickamor.movieclub.controller;
import android.os.AsyncTask;
import com.nickamor.movieclub.model.MovieModel;
/**
* Background task to set new rating.
*/
public class SetRatingTask extends AsyncTask<String, Void, Void> {
private final float rating;
public SetRatingTask(float rating) {
th... | 22.043478 | 66 | 0.696252 |
b4efda3da18d623fea699ac9c4ff5cc131f4cbfe | 1,950 | package com.easyt.service.impl;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactiona... | 34.821429 | 90 | 0.772821 |
46ab2f81fd0da57930bf428fd3cf916e76cf147e | 811 | package com.hendyirawan.jws1036;
import org.springframework.data.rest.webmvc.spi.BackendIdConverter;
import org.springframework.stereotype.Component;
import java.io.Serializable;
@Component
public class CountryLanguageIdConverter implements BackendIdConverter {
@Override
public Serializable fromRequestId(Str... | 30.037037 | 77 | 0.711467 |
62dc54fcc8bae8b87a9c33f503e190d7746f5e44 | 741 | package org.apereo.cas.configuration.model.core.audit;
import org.apereo.cas.configuration.model.support.couchbase.BaseCouchbaseProperties;
import org.apereo.cas.configuration.support.RequiresModule;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
/**
* This is {@link AuditCouchbas... | 26.464286 | 84 | 0.775978 |
97628b82523648ce00ae05dce296f3d60378f931 | 1,331 | package com.hltech.store.versioning;
/**
* In this strategy multiple versions of the event are up-casted to the latest version using registered transformation.
* In opposite to {@link MultipleVersionsBasedVersioning} the application code has to support only the latest version of the event
*
* <p>Please note that u... | 39.147059 | 140 | 0.744553 |
a3e6c1c79435c327595ef0ad4a74342dbd0cc76a | 15,777 | package com.thirdpart.tasktrackerpms.ui;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import org.apache.http.Header;
import android.R.integer;
import android.content.Context;
import android.content.Intent;
import android.graph... | 29.325279 | 108 | 0.704126 |
60a233bbad5e299adc444982757f5d2810bce15e | 2,368 | package org.erp.tarak.purchaseorder;
import java.util.List;
import org.erp.tarak.product.Product;
import org.hibernate.Criteria;
import org.hibernate.SessionFactory;
import org.hibernate.criterion.Restrictions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereoty... | 33.352113 | 111 | 0.750845 |
76a4ce3509b2a950d3d64471aa430e9ec8b54e18 | 9,628 | /*
* Licensed to CRATE Technology GmbH ("Crate") under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership. Crate licenses
* this file to you under the Apache License, Version 2.0 (the "License");
* you may not us... | 38.206349 | 114 | 0.621728 |
d763c7c715e91c84d15d4d2d79784f00eafebc62 | 8,398 | package com.example.xyzreader.ui;
import android.app.Fragment;
import android.app.FragmentManager;
import android.app.LoaderManager;
import android.content.Intent;
import android.content.Loader;
import android.database.Cursor;
import android.graphics.Typeface;
import android.graphics.drawable.ColorDrawable;
import and... | 36.513043 | 103 | 0.633008 |
27e6db87360d9c8435c5b4ceeb99041dc0c73b46 | 168 | package org.code4everything.demo.sofarpc.service;
/**
* @author pantao
* @since 2019/10/23
*/
public interface SofaService {
String sayHello(String string);
}
| 15.272727 | 49 | 0.714286 |
89ec17bd5f6b15154e332c16bf2796e80a0a66b5 | 2,049 | /*
Derby - Class org.apache.derby.impl.sql.compile.Level2CostEstimateImpl
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 fi... | 28.458333 | 75 | 0.734993 |
9abd87953e3f87cf8caa77cc75a6c23e4127f4b7 | 2,501 | package com.selegant.kettle.model;
import cn.hutool.core.date.DatePattern;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.ann... | 20.841667 | 78 | 0.626549 |
d5997a710426f61e84f12a3136118b53d8bc618f | 342 | package com.sborzenko.materialtoolbarspinner;
/**
* Created at Magora Systems (http://magora-systems.com) on 08.07.16
*
* @author Stanislav S. Borzenko
*/
public class UserGroup {
private String name;
public String getName() {
return name;
}
public void setName(String name) {
this... | 18 | 68 | 0.643275 |
634ebf7d500800e25ce7db39d4e1af9da666982d | 22,071 | package org.kuse.payloadbuilder.core.parser;
import static java.util.Objects.requireNonNull;
import static org.apache.commons.lang3.StringUtils.lowerCase;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import org.antlr.v4.runtime.Token;
import org.apache.co... | 37.728205 | 176 | 0.502333 |
e08e99d84bdbebb5abf4d5224e282d3a8e073b31 | 547 | package com.kingdee.patchcheck.service;
import com.kingdee.patchcheck.model.Item;
import com.kingdee.patchcheck.model.User;
import com.kingdee.patchcheck.model.patchLog;
import org.springframework.data.domain.Page;
import java.util.List;
import java.util.Optional;
/**
* description: IlogService <br>
* date: 2020\2... | 23.782609 | 66 | 0.749543 |
b4545f2012c1bcd109e7a3376786dffec6f4bb6d | 1,959 | package com.example.springbootshiro.controller;
import com.example.springbootshiro.constants.CommonConstants;
import com.example.springbootshiro.domain.vo.ResponseVO;
import com.example.springbootshiro.enums.ResponseStatusEnum;
import com.example.springbootshiro.utils.ResultUtil;
import org.apache.shiro.authz.Authoriz... | 36.962264 | 107 | 0.759571 |
44dadddd3294a1cfad8e70e1570ea67e2524093a | 6,173 | /*
* This file is part of Nucleus, licensed under the MIT License (MIT). See the LICENSE.txt file
* at the root of this project for more details.
*/
package io.github.nucleuspowered.nucleus.modules.environment.commands;
import com.google.inject.Inject;
import io.github.nucleuspowered.nucleus.modules.environment.Env... | 52.313559 | 140 | 0.734003 |
4d46bab6ba778e5a91ec7808683c49d39cf7af25 | 3,778 | /*
Copyright (c) 2010, NHIN Direct Project
All rights reserved.
Authors:
Greg Meyer gm2552@cerner.com
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... | 30.224 | 151 | 0.772102 |
05991453217eca53f34e20f1825a507a499a7254 | 712 | package stone;
public class Token {
public static final Token EOF = new Token(-1);
public static final String EOL = "\\n";
private int lineNumber;
public static class TokenTypeMismatchException extends RuntimeException {
public TokenTypeMismatchException(String string) {
super(string);
}
}
public To... | 14.833333 | 74 | 0.699438 |
51cc737cf046da5710cb384d2785ae3fa9677ead | 1,800 | /**
* Copyright 2011 Perforce Software Inc., All Rights Reserved.
*/
package com.perforce.p4java.env;
/**
* Provides system information about the Java runtime environment
*/
public class SystemInfo {
public static boolean isWindows() {
return (getOsName().toLowerCase().startsWith("windows"));
}
public stati... | 22.5 | 68 | 0.663889 |
75fbf739e2f404b42571a506072b02ff490fb941 | 39,927 | /*
* 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")... | 41.677453 | 144 | 0.61382 |
83ae3d9317a56ecc2e7c64aaee7f43972764265f | 12,727 | // 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 bo.app;
import com.appboy.support.AppboyLogger;
import com.appboy.support.StringUtils;
import java.text.SimpleDateFormat;
import java.util.*;
// ... | 38.566667 | 104 | 0.538776 |
f00bdcea3c57cca617784ede1d926103f6749bd0 | 4,971 | package io.reactivex.internal.operators.observable;
import io.reactivex.ObservableSource;
import io.reactivex.Observer;
import io.reactivex.Scheduler;
import io.reactivex.disposables.Disposable;
import io.reactivex.internal.disposables.DisposableHelper;
import io.reactivex.observers.SerializedObserver;
import java.uti... | 34.282759 | 132 | 0.618588 |
d750a025a94b6922e6a87335cace881ac791258b | 542 | package com.chenjie.sboot.activemq;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4... | 23.565217 | 68 | 0.785978 |
899b5e9bc792ab3d06a9901c412137b0693d5b87 | 3,020 | package esb;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerException;
import javax.xml.transform.TransformerFactory;
import javax.xml.transfo... | 33.932584 | 118 | 0.782119 |
3c9d44829ef680f73a94dc33cedce40abfffe8d8 | 335 | package ru.otus.core.sessionmanager;
import org.hibernate.Session;
import ru.otus.hibernate.sessionmanager.DatabaseSessionHibernate;
public interface SessionManager extends AutoCloseable {
Session beginSession();
void commitSession();
void rollbackSession();
void close();
DatabaseSession getCurre... | 23.928571 | 65 | 0.776119 |
122d53907cc54e3d14908f5aff5be48db1e8af7f | 1,784 | package ru.bellintegrator.yahoo.jms;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.junit.MockitoJUnitRunner;
import ru.bellintegrator.yahoo.YahooWeatherService;
import javax.jms.JMSE... | 30.758621 | 89 | 0.73935 |
e75254c3dd5b61a7c0b087083ae9db6be8dda183 | 1,008 | package com.lhsang.dashboard.model;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import com.fasterxml.jackson.annotation.JsonBackReference;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@Entity(name="img_product... | 16.52459 | 62 | 0.700397 |
396808d0ae02869d4c08b689f1962ad158d83376 | 2,559 | package leppa.planarartifice.foci;
import java.lang.reflect.Field;
import java.util.HashMap;
import java.util.Set;
import leppa.planarartifice.main.PlanarArtifice;
import net.minecraft.util.math.RayTraceResult;
import net.minecraft.world.World;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.casters.Focus... | 35.054795 | 301 | 0.779601 |
d734cd03e73bb69f63f05a1a36a3714c53f6ead2 | 988 | package com.example.controller;
import java.io.IOException;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.log4j.Logger;
import com.example.dao.MyLoggerFactory;
import com.example.model.ERSUsers;
import com.example.service.ERSUse... | 32.933333 | 78 | 0.818826 |
4259ef43679fc787b2a0960c84e8692b7497b9ad | 2,220 | package com.sd.lib.foot_panel.ext;
import android.app.Activity;
import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.widget.FrameLayout;
/**
* 高度为键盘高度的布局
*/
public class FKeyboardHeightLayout extends FrameLayout {
private Activity mActivity;
public FKeyb... | 31.267606 | 137 | 0.676577 |
0127b0c2ffb38575e7523fcbeafb29798518665a | 1,293 | package com.google.crypto.tink.hybrid;
import com.google.crypto.tink.aead.AeadConfig;
import com.google.crypto.tink.proto.RegistryConfig;
import java.security.GeneralSecurityException;
public final class HybridConfig {
public static final String ECIES_AEAD_HKDF_PRIVATE_KEY_TYPE_URL = new EciesAeadHkdfPrivateKeyMa... | 34.945946 | 120 | 0.737046 |
267149513a01956a5bbe764ee74061416e901294 | 1,070 | /* COPYRIGHT (C) 2014 barreiro. All Rights Reserved. */
package net.projecteuler.barreiro.problem;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
/**
* The decimal number, 585 = 10010010012 (binary), is palindromic in both bases.
* <p>
* Find the sum of all numbers, less than one million, wh... | 23.26087 | 99 | 0.641121 |
98df6365847d6e5661f60741238c269b116f250e | 951 | package com.github.tinselspoon.intellij.kubernetes;
import junit.framework.TestCase;
import org.jetbrains.annotations.NotNull;
import java.io.File;
import java.net.URISyntaxException;
import java.net.URL;
/**
* Static methods for tests.
*/
class TestUtil {
/**
* Gets the path to the given test data folde... | 29.71875 | 89 | 0.680336 |
f562ef6a850b8b0a2944c37bdd4f653f90552256 | 1,564 | package System.Entity;
/**
* The functions and Entity of Menu.
* @author Jing Hu
* @version 1.3
*/
public class Entity_Menu {
private String Dish_name;
private float price;
private boolean Available;
/**
* Entity class of menu.
*/
public Entity_Menu() {
this.Dish_name=null;
this.price=0;
this.Availa... | 17.377778 | 71 | 0.654731 |
599bc74f476bf2309f47c68c91fd96f60194e8f3 | 2,466 | package com.github.chen0040.art.core;
import java.util.ArrayList;
import java.util.List;
/**
* Created by xschen on 23/8/15.
*/
public class ARTMAP extends FuzzyART {
private List<String> labels;
private double epsilon = 0.00001;
public void setEpsilon(double epsilon) {
this.epsilon = epsilon;... | 27.4 | 82 | 0.435118 |
46c2ff549c88849b762a37a128c097c895316baf | 5,434 | package com.senzing.api.model;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.senzing.api.model.impl.SzAttributeTypesResponseImpl;
import java.util.*;
/**
* The response containing a list of attribute types. Typically this is the
* list of all configured attribute types (excluding th... | 32.153846 | 79 | 0.643541 |
f7a74aac35898ced455c81bb51be6c5dd0f6cc1c | 1,602 | /*
* Copyright (C) 2015-2019 Lightbend Inc. <https://www.lightbend.com>
*/
package akka.stream.io;
import akka.japi.Pair;
import akka.stream.StreamTest;
import akka.testkit.AkkaJUnitActorSystemResource;
import akka.stream.javadsl.Sink;
import akka.stream.javadsl.Source;
import akka.stream.javadsl.StreamConverters;
... | 31.411765 | 120 | 0.755306 |
921fa432081ba1ba89a9d4c581d71424cccbb442 | 1,460 | package org.firstinspires.ftc.teamcode.localization;
import org.firstinspires.ftc.teamcode.util.MathUtil;
import org.firstinspires.ftc.teamcode.util.Pose2d;
import org.firstinspires.ftc.teamcode.util.Vector2d;
public class PoseExponential {
MathUtil m = new MathUtil();
Vector2d fieldPositionDelta = new Vecto... | 39.459459 | 116 | 0.658904 |
225da7c6ca5990cb138bc4052150cb00963b3a8e | 2,568 | package io.upit.dal.jpa;
import com.google.inject.Inject;
import io.upit.dal.DAO;
import io.upit.dal.models.Resource;
import io.upit.utils.mapping.PojoInterfaceMapper;
import javax.persistence.EntityManager;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
public class EntityManagerDAO<Data... | 30.211765 | 156 | 0.665888 |
044e6c89e71cecc8c3330980a22eaa23a5b31f9b | 9,462 | package com.checkmarx.flow.service;
import com.checkmarx.flow.config.IastProperties;
import com.checkmarx.flow.dto.iast.manager.dto.ResultInfo;
import com.checkmarx.flow.dto.iast.manager.dto.Scan;
import com.checkmarx.flow.dto.iast.manager.dto.ScanVulnerabilities;
import com.checkmarx.flow.dto.iast.manager.dto.descrip... | 43.805556 | 182 | 0.675544 |
35683ce5666a94c4667d329c4752a077ee55fe84 | 5,300 | package org.firstinspires.ftc.teamcode.hardware;
import com.qualcomm.robotcore.hardware.CRServo;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.hardware.DcMotorSimple;
import com.qualcomm.robotcore.hardware.DigitalChannel;
import com.qualcomm.robotcore.hardware.HardwareMap;
/**
* Creat... | 61.627907 | 234 | 0.654717 |
b4d911d7502356bf436acbd291085e14215b0c48 | 4,199 | /*
* Copyright 2013 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 33.325397 | 94 | 0.657776 |
05d0b4d49a19b8ad64a1e4e37efef2d8b96e80bd | 142 | package io.github.yutoeguma.app.web.auth.login;
/**
* @author yuto.eguma
*/
public class LoginCheckResult {
public Boolean isLogin;
}
| 14.2 | 47 | 0.711268 |
19dd36b7ecc6cc0a32145415a47b7d895c2e9d9a | 1,052 | package cn.huanzi.qch.baseadmin.common.pojo;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Sort;
import org.springframework.data.domain.Sort.Direction;
import org.thymeleaf.util.StringUtils;
/**
* 分页条... | 25.658537 | 101 | 0.621673 |
18c9a94fdd06b7da275cb66d3b9af6462b3aec5a | 1,170 | package ro.webdata.parser.xml.lido.core.leaf.gml;
import ro.webdata.parser.xml.lido.core.attribute.XmlLang;
import ro.webdata.parser.xml.lido.core.complex.gmlComplexType.GmlComplexType;
/**
* <link rel="stylesheet" type="text/css" href="../../../../javadoc.css"/>
* <div class="lido">
* <div class="lido-title">Lid... | 25.434783 | 94 | 0.662393 |
44146da0f7606d90910b17ba5a3c47322ce8b103 | 1,553 | /*
* 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 com.adriens.colisnc.api.service;
import com.adriens.colisnc.api.model.StepsCounter;
import com.adriens.github.colisnc.... | 31.693878 | 104 | 0.721185 |
0ba46080508e307213abb1c6f4553bbd34875617 | 591 | package cc.mrbird.febs.heart.dao;
import cc.mrbird.febs.heart.entity.HeartBShzl;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
/**
* <p>
* 术后资料 Mapper 接口
* </p>
*
* @author viki
* @since 2021-05-25
*/
public inter... | 28.142857 | 81 | 0.724196 |
ab840d17223d29ed00e6706dc00b0cb5e647976c | 273 | package umoo.wang.beanmanager.message.server.message;
import lombok.AllArgsConstructor;
import lombok.Data;
/**
* Created by yuanchen on 2019/01/23.
*/
@Data
@AllArgsConstructor
public class RegisterMessage {
private String appName;
private String environmentName;
}
| 18.2 | 53 | 0.787546 |
c6437734b374cb07fddefd30b25c59c29f1fc3a5 | 3,831 | package org.infinity.passport.service.impl;
import lombok.extern.slf4j.Slf4j;
import org.infinity.passport.domain.User;
import org.infinity.passport.service.MailService;
import org.springframework.boot.autoconfigure.mail.MailProperties;
import org.springframework.context.MessageSource;
import org.springframework.mail.... | 40.326316 | 119 | 0.690681 |
f8388899ad1f92f33cefdfdb9920fd46ba4fcfc2 | 1,872 | package projeto_1.user;
import com.google.inject.Inject;
import jakarta.annotation.Resource;
import jakarta.jws.WebService;
import jakarta.xml.ws.WebServiceContext;
import projeto_1.exceptions.InternalServerErrorException;
import projeto_1.auth.AuthModule;
import projeto_1.auth.exceptions.UnauthorizedException;
import... | 34.666667 | 96 | 0.730235 |
4efd1ff362ad08b20972c2f4e56961a403d6c60e | 707 | package com.baeldung.java14.newfeatues;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
public class MultilineUnitTest {
@SuppressWarnings("preview")
String multiline = """
A quick brown fox jumps over a lazy dog; \
the ... | 26.185185 | 68 | 0.659123 |
cd7272cd16337e970533e27320865ed0b24b7b99 | 1,438 | package org.frekele.elasticsearch.mapping.annotations;
import org.frekele.elasticsearch.mapping.annotations.values.BoolValue;
import org.frekele.elasticsearch.mapping.annotations.values.FloatValue;
import org.frekele.elasticsearch.mapping.enums.FieldType;
import java.lang.annotation.ElementType;
import java.lang.anno... | 32.681818 | 150 | 0.768428 |
3908667c94e7c5a49bee7112556056391113b6d6 | 2,605 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 35.684932 | 99 | 0.741267 |
44cd4664e1358f10980a18f0a94657ca8bbc8280 | 1,986 | package com.easyctrl.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.easyctrl.ldy.activity.R;
import java.util.ArrayList;
public class VirtualMLIstAdapter... | 30.553846 | 99 | 0.659114 |
854088bba9f2cc9bfaa518858054fc96f68a74c3 | 44,346 | /*
* [New BSD License] Copyright (c) 2011-2012, Brackit Project Team <info@brackit.org> 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
* abo... | 31.743737 | 117 | 0.618816 |
494488a9b89f6f4ed139dbe3a0fbaf816f801f4d | 2,047 | package com.brageast.blog.util;
import com.brageast.blog.util.entity.Combination;
import org.springframework.lang.Nullable;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
/**
* @Author chenmo
* 这是一些对实体操作的类
* 自己创建点语法糖qwq
* 没有什么实际意义,仅此娱乐
*/
public abstract class EntityUtil {
public... | 25.271605 | 72 | 0.581339 |
1e657839fb0afe84ac283d75266df1123a373d62 | 825 | package br.com.samuelweb.nfe.exception;
/**
* Exceção a ser lançada na ocorrência de falhas provenientes da Nota Fiscal Eletronica.
*
* @author Samuel Oliveira - samuk.exe@hotmail.com - www.samuelweb.com.br
*/
public class NfeException extends Exception {
private static final long serialVersionUID = -5054900660... | 16.836735 | 88 | 0.670303 |
d3d4cc6892950623874815c94f87f9006d05b07a | 15,247 | /* */ package org.apache.batik.anim.dom;
/* */
/* */ import java.util.ArrayList;
/* */ import java.util.Iterator;
/* */ import org.apache.batik.anim.values.AnimatableNumberListValue;
/* */ import org.apache.batik.anim.values.AnimatableValue;
/* */ import org.apache.batik.dom.svg.AbstractSVG... | 29.377649 | 167 | 0.455893 |
40fe11d8b51d91ee82cb61d0c81385e7d1966d4d | 850 | package org.acme.entities;
import com.fasterxml.jackson.annotation.JsonBackReference;
import io.quarkus.hibernate.orm.panache.PanacheEntity;
import lombok.Data;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.validation... | 23.611111 | 58 | 0.658824 |
52a6f88f5fba91ceabb0c925f7107be8e1fd9537 | 9,981 | /**
* 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 m... | 49.905 | 272 | 0.704539 |
e16d7df5d46d3f7dc46dec0746f77255d716587a | 1,104 | package it.univaq.disim.discovery.servicediscovery.dashboard.controller.impl;
import it.univaq.disim.discovery.servicediscovery.dashboard.controller.DashboardController;
import it.univaq.disim.discovery.servicediscovery.dashboard.model.ServiceInstancesResource;
import it.univaq.disim.discovery.servicediscovery.dashboa... | 39.428571 | 91 | 0.830616 |
24ce56aeb539b78a2609be2fea77cc57628d48b6 | 1,055 | package com.jikezhiji.domain.command.converters;
import org.springframework.data.mapping.model.SimpleTypeHolder;
import java.net.URI;
import java.net.URL;
import java.nio.Buffer;
import java.time.temporal.Temporal;
import java.util.*;
import java.util.regex.Pattern;
/**
* Created by Administrator on 2016/10/28.
*/... | 34.032258 | 89 | 0.721327 |
63bc49f7b717a42f028b1f58d89bb9a5cfc7abe9 | 8,507 | package com.script.fairy;
import android.util.Log;
import com.script.opencvapi.LtLog;
import com.script.opencvapi.AtFairy2;
import com.script.opencvapi.AtFairyConfig;
import com.script.opencvapi.utils.Utils;
import com.script.framework.AtFairyImpl;
import java.io.PrintWriter;
import java.io.StringWriter;
/**
* Cre... | 38.31982 | 135 | 0.492418 |
3859895fc21376b4f8b535058fee4fd317ae1410 | 639 | public class H42 {
public static void main (String[] args) {
mainQ(Integer.parseInt(args[0]), Integer.parseInt(args[1]));
}
public static void mainQ(int flag, int u1){
assert(u1 > 0);
int x = 1;
int y = 1;
int a = 0;
if (flag != 0)
a = 0;
else
a = 1;
int i1 = 0... | 15.585366 | 63 | 0.384977 |
5d4d4fc1eaac4f252a5a23751f34f5e5475b7362 | 3,461 | package ast.node.conditional;
import ast.exception.AstBaseException;
import ast.exception.common.BadChildrenCountException;
import ast.exception.semantic.TypeMismatchException;
import ast.exception.semantic.UnknownSymbolException;
import ast.node.BaseNode;
import ast.node.constant.ConstantBooleanNode;
import ast.node.... | 28.841667 | 113 | 0.639411 |
922f054b6448cc00a07530741afcf11066f79ad0 | 5,631 | /*
* 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 Controllers;
import Controllers.exceptions.NonexistentEntityException;
import entities.Etudiant;
import java.io.Serializable;... | 33.123529 | 112 | 0.559936 |
baedcbff23037f2592d443aafa5795ef620f4dc4 | 3,755 | package gov.cdc.usds.simplereport.logging;
import gov.cdc.usds.simplereport.api.WebhookContextHolder;
import gov.cdc.usds.simplereport.api.pxp.CurrentPatientContextHolder;
import gov.cdc.usds.simplereport.db.model.Organization;
import gov.cdc.usds.simplereport.db.model.PatientLink;
import gov.cdc.usds.simplereport.ser... | 41.263736 | 100 | 0.758455 |
4416215572f94a7b8908560b115126d9963a0385 | 1,060 | package com.lsieun.util;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import org.apache.commons.io.IOUtils;
import sun.misc.BASE64Encoder;
public class ImageTestUtil {
/** <p>图片转化成base64字符串</p>
* 处理流程:图片-->字节数组-->(Base64编码处理)字符串
* @param imgFile 图片路径(待处理的图片)... | 27.894737 | 70 | 0.596226 |
c3686c92ee0825203f5264082fc896738ffe738c | 2,950 | package org.dstadler.jgit.api;
/*
Copyright 2013, 2014 Dominik Stadler
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 requir... | 36.419753 | 124 | 0.659661 |
b9f9b5d905c313e4de51bd289de9d67246d243cd | 2,448 | /* Copyright 2011 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | 34.478873 | 99 | 0.707516 |
b2e74cca71cd969a84ec5bdb494dcd3bc7a2bab4 | 103 | package zynaps.engine;
public interface MaterialModifier {
void changeColor(Material material);
}
| 17.166667 | 40 | 0.786408 |
57312d924dbb626f5b26c9d7319215f2be4f92e4 | 8,305 | /*
* Copyright (C) 2015 Actor LLC. <https://actor.im>
*/
package im.actor.android;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.database.ContentObserver;
import android.graphics.Bitmap;
import android.med... | 36.108696 | 131 | 0.594341 |
b44cb4b3f56fc5fd7d4aac285144b02c672bb7b8 | 1,575 | package name.mjw.jquante.math.qm.integral;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
import name.mjw.jquante.math.qm.basis.ContractedGaussian;
import name.mjw.jquante.test.Fixtures;
class HuzinagaTwoElectronTermTest {
private final double delta = 0.000001;
H... | 25.403226 | 86 | 0.746032 |
45ec0265f0271f9109368f8be44fc402a649249c | 359 | package org.bal.config;
import org.bal.producer.Producer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.jms.annotation.EnableJms;
@Configuration
@EnableJms
public class ProducerConfiguration {
@Bean
public Producer send... | 22.4375 | 60 | 0.799443 |
84b8f608a1d2b7f6daa32c09d7df432df5c4e2f1 | 1,453 | package com.nbu.annotationplus.controller;
import com.nbu.annotationplus.dto.DtoCategory;
import com.nbu.annotationplus.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import javax... | 32.288889 | 100 | 0.732966 |
5974047bad814503d6bb898e7572fc5d373df4c4 | 780 | package cn.programingmonkey.Exception.type;
/**
* Created by cai on 2017/3/30.
*/
public enum RESET_PWD_EXCEPTION_TYPE {
RESET_PWD_EXCEPTION_MOBILE_UNRIGHTED(-901,"手机号未注册"),
RESET_PWD_EXCEPTION_INVALID_VEIFYCODE(-902,"无效的验证码"),
RESET_PWD_EXCEPTION_VERIFYCODE_EXPIRED(-903,"验证码已经失效,请重新获取"),
RESET_PWD... | 24.375 | 76 | 0.694872 |
24cc6f55f665c6a3fd1630ad8dc6d876d5b1298e | 1,199 | package org.ultramine.server.chunk;
public enum ChunkBindState
{
/**
* Чанк ничем не занят и может быть выгружен в любой момент. Стандартное
* значение при асинхронной загрузке чанка.
*/
NONE,
/**
* Чанк занят игроком/игроками. Как только все игроки выйдут из радиуса
* прогрузки, значение сменится на <cod... | 23.98 | 77 | 0.700584 |
caa5f50ef9a9e40ace5cc25d9bf0ac9fc413a243 | 116 | package com.bbcron.myPackage;
import static org.junit.jupiter.api.Assertions.*;
class BBCronMyProjectMainTest {
} | 16.571429 | 49 | 0.801724 |
5703e14987128b2180d409bd842550f258583857 | 1,090 | package com.dwarfeng.bitalarm.impl.service;
import com.dwarfeng.bitalarm.stack.handler.AlarmHandler;
import com.dwarfeng.bitalarm.stack.service.AlarmService;
import com.dwarfeng.subgrade.sdk.exception.ServiceExceptionHelper;
import com.dwarfeng.subgrade.stack.exception.ServiceException;
import com.dwarfeng.subgrade.st... | 33.030303 | 100 | 0.751376 |
2cb3289380f7652cc1d3a39d5d5c5447092ac27a | 2,238 | /**
* Copyright (C) 2012 JBoss 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 agree... | 39.964286 | 121 | 0.720286 |
0f916f779df321a7dfae4113a397e8be48fb2117 | 786 | /*
Faca a multiplicacao entre dois numeros usando somente soma.
(Utilizar a estrutura de repeticao for)
*/
import java.util.Scanner;
public class MultiplicaSomando {
public static void main(String[] args) {
Scanner leitorDoTeclado = new Scanner(System.in);
int numeroUm, numeroDois, resultado=0;
Syst... | 26.2 | 86 | 0.661578 |
14c3204ca18388366182839a2a0725905e9db45d | 227 | package net.geofflittle.congress4j.members.membercosponsoredbills;
public enum CosponsorshipStatus {
COSPONSORED,
WITHDRAWN;
@Override
public String toString() {
return name().toLowerCase();
}
}
| 16.214286 | 66 | 0.696035 |
13bd87e2e8e879e411d6fcabe370211ab21d8ad5 | 465 | package avonbo.snippets.java.ruleengine.eventbus.service;
import avonbo.snippets.java.ruleengine.eventbus.domain.EventImpl;
public class SimpleProcessingServiceImpl implements ProcessingService {
Runnable command;
public SimpleProcessingServiceImpl(Runnable command) {
}
@Override
public void e... | 18.6 | 71 | 0.713978 |
3deae30391254cc4f7fc851c10dfab0344c9862a | 2,266 | package eu.w4.contrib.bpmnplus.module.filewatcher;
public class WatcherConfig
{
private String _definitionsIdentifier;
private String _definitionsVersion;
private String _collaborationIdentifier;
private String _processIdentifier;
private String _signalIdentifier;
private String _dataEntry;
privat... | 17.984127 | 72 | 0.745808 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.