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 |
|---|---|---|---|---|---|
0c329d1d9f3033148b371469a9003a7b37f56995 | 832 | package ru.job4j.search;
import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
/**
* Test.
* @author Vovk Alexander (vovk.ag747@gmail.com)
* @version $Id$
* @since 0.1
*/
public class PhoneDictionaryTest {
@Test
public void whenFindByName() {
var ... | 29.714286 | 73 | 0.632212 |
58ed996bbd33a5a7eaedfb23b8c78d0301a7b60d | 4,181 | package mycinema.liel.net.mycinemaproject.HttpManagers.Users;
import android.content.SharedPreferences;
import android.os.AsyncTask;
import android.support.design.widget.Snackbar;
import android.support.v4.app.FragmentManager;
import android.util.Log;
import android.view.View;
import java.io.BufferedReader;
import ja... | 35.432203 | 107 | 0.635494 |
1cc9c15a67cf4055cc56a3c6573632cdd8cccfb5 | 2,839 | package com.sap.tools.jpicus.impl.serializable;
import java.util.Date;
import com.sap.tools.jpicus.client.ThreadInfo;
import com.sap.tools.jpicus.impl.util.Util;
public class ThreadInfoImpl implements ThreadInfo{
/**
*
*/
private static final long serialVersionUID = 1L;
private String name;
private Stack... | 18.677632 | 79 | 0.674181 |
32c2e748abd0338f84c08b65eef799a50a7ef1dd | 466 | package com.example.demo.threadlocal.service;
import com.example.demo.optional.User;
import com.example.demo.threadlocal.holder.UserContextHolder;
/**
* service1
*
* @author legend
* @version 1.0
* @description
* @date 2021/7/24
*/
public class Service1 {
public void process() {
//第一个service创建用户信息... | 18.64 | 61 | 0.652361 |
be238241152af4b3a831abe0e93508aeff2856e0 | 391 | package net.acomputerdog.securitycheckup.test.step.reg;
public abstract class RegEntryStep<T> extends RegKeyStep<T> {
/**
* Registry key value to access
*/
private final String value;
public RegEntryStep(String hive, String key, String value) {
super(hive, key);
this.value = valu... | 21.722222 | 64 | 0.639386 |
a5db6da88fcb7975b565fb5a76faa31be13bb7e5 | 20,689 | // This is a generated file. Not intended for manual editing.
package org.intellij.grammar.parser;
import com.intellij.lang.PsiBuilder;
import com.intellij.lang.PsiBuilder.Marker;
import static org.intellij.grammar.psi.BnfTypes.*;
import static org.intellij.grammar.parser.GeneratedParserUtilBase.*;
import com.intellij... | 33.049521 | 95 | 0.574267 |
9af7675902b5c8b218d981bbf0c21ca51c0bd897 | 7,401 | package net.gongmingqm10.zhihu.view.fragment;
import android.os.Bundle;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.PopupMenu;
import android.support.v7.widget.RecyclerView;
import android.view.Menu;
import android.view.MenuI... | 31.360169 | 122 | 0.64775 |
89ea9efd55ed9ce4727f5af8c52ecebf7f5261ae | 965 | package blatt9.aufgabe20;
import java.lang.Thread;
public class Elf extends Thread{
Fabrik meineFabrik;
public Elf(Fabrik fabrik){
this.meineFabrik = fabrik;
}
public void run() {
Geschenk arbeit_Geschenk = meineFabrik.getArbeit();
do{
try {
i... | 28.382353 | 85 | 0.598964 |
e7eb2c2fc2e5039e0b1e284f80370cef29343e02 | 510 | /**
* Jooby https://jooby.io
* Apache License Version 2.0 https://jooby.io/LICENSE.txt
* Copyright 2014 Edgar Espina
*/
package io.jooby.internal.converter;
import io.jooby.Value;
import io.jooby.ValueConverter;
import java.math.BigInteger;
public class BigIntegerConverter implements ValueConverter {
@Override... | 23.181818 | 60 | 0.739216 |
180b24bb1b9354fb48880d777d42fd80f17d986b | 9,793 | /*
* Copyright 2006-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 app... | 44.112613 | 188 | 0.633514 |
5824395a947123596828c809a33610f36200ef9a | 1,033 | package com.moemoe.lalala.presenter;
import com.moemoe.lalala.model.entity.RoleInfoEntity;
import com.moemoe.lalala.model.entity.SearchListEntity;
import com.moemoe.lalala.model.entity.SearchNewListEntity;
import com.moemoe.lalala.model.entity.upDateEntity;
import java.util.ArrayList;
/**
* Created by Administrato... | 29.514286 | 76 | 0.722168 |
76cae529df708f401abdd2ad33700cb03b9e6d63 | 8,491 | /*
* This file is part of LuckPerms, licensed under the MIT License.
*
* Copyright (c) lucko (Luck) <luck@lucko.me>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* ... | 36.286325 | 176 | 0.703215 |
40defac72b87287500edf9343ccb54bfe9a869a7 | 2,851 | package org.opensrp.reporting.repository.cache;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mock;
import static org.junit.Assert.assertEquals;
import static org.mockito.Mockito.*;
import static org.mockito.MockitoAnnotations.initMocks;
import org.opensrp.reporting.domain.ANM;
import org.opensrp... | 34.349398 | 140 | 0.700807 |
991b9a3713c342ae559db35176d64d7fa206f82f | 6,523 | // The author disclaims copyright to this source code.
package nl.jvdploeg.hold.demo;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.util.concurrent.Executor;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.s... | 27.407563 | 130 | 0.678062 |
d95d7cf635e34b39efcc7b94820321c888236ea9 | 566 | package com.sxdsf.deposit.service;
import com.sxdsf.deposit.service.disk.impl.DiskServiceImpl;
import com.sxdsf.deposit.service.memory.impl.MemoryServiceImpl;
import com.sxdsf.deposit.service.sharedpreferences.impl.SharedPreferencesServiceImpl;
public enum DepositServiceMode {
MEMORY(MemoryServiceImpl.class),
... | 25.727273 | 85 | 0.740283 |
4bec66cfa88ac3679b364429ee800a0fe0ee0c40 | 968 | package models;
import javax.persistence.*;
@Entity
public class ChapterDetail
{
@Id
@Column
private int id;
@Column
private String name;
@Column
private String meetingPlace;
@Column
private String streetAddress;
@Column
private String city;
@Column
private Int... | 13.260274 | 36 | 0.577479 |
206ead3541e3e718016bed61795e6f3bd1b9e71b | 433 | package io.github.redstoneparadox.marionette.animation;
/**
* @param <T> The type that is being animated.
*/
public abstract class AbstractAnimation<T> {
/**
* Moved this animation one step forward.
*
* @param t The instance that is being animated.
*/
public abstract void step(T t);
public abstract void ... | 19.681818 | 55 | 0.711316 |
27a7bfdaf81f8fc6c11d41f458afa42a778c1f30 | 5,156 | /*
* Copyright 2018 Mark Adamcin
*
* 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... | 33.699346 | 134 | 0.745927 |
635ea9f873edeb48cf60dbbcd1bc39cc86933b19 | 795 | package com.google.android.samples.dynamicfeatures.ondemand;
import org.junit.Rule;
import org.junit.Test;
import androidx.test.rule.ActivityTestRule;
import static androidx.test.espresso.Espresso.onView;
import static androidx.test.espresso.assertion.ViewAssertions.matches;
import static androidx.test.espresso.matc... | 30.576923 | 70 | 0.772327 |
0fe1250a0f2d10841646f74409ab82bb2259d8cc | 182 | package com.liurui.arsenal.base.web.exception.api;
/**
* @Description: TODO
* @Datatime: 2021/8/8 11:52
* @Author: 渣渣瑞
*/
public class ApiException extends RuntimeException {
}
| 18.2 | 52 | 0.714286 |
6f28d2887ba57ca3c7e0a82f3b0387658dc376d1 | 543 | package net.anweisen.cloud.driver.player.settings;
import net.anweisen.cloud.driver.player.CloudPlayer;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.util.Locale;
/**
* @author anweisen | https://github.com/anweisen
* @since 1.0
*
* @see CloudPlayer#getSettings()
*/
public inter... | 15.970588 | 52 | 0.747698 |
cfa99e5d5111ad5b025938933732bc0e7ad2b647 | 431 | package tudelft.ghappy;
public class GHappy {
public boolean gHappy(String str) {
assert str!=null;
for(int i = 0; i < str.length(); i++) {
if(str.charAt(i) == 'g') {
if (i > 0 && str.charAt(i-1) == 'g') { continue; }
if (i+1 < str.length() && str.charAt... | 25.352941 | 79 | 0.436195 |
833d1f24158e9bfc5dde3846855fd9348aaa7ccf | 6,704 | package paw.core;
import paw.contracts.ManagerInterface;
import paw.entities.animal.Animal;
import paw.entities.animal.Cat;
import paw.entities.animal.Dog;
import paw.entities.centers.AdoptionCenter;
import paw.entities.centers.CastrationCenter;
import paw.entities.centers.Center;
import paw.entities.centers.Cleansing... | 36.043011 | 129 | 0.649911 |
7f6fb579a820a6697c459c8cd446529a854d3698 | 1,890 | package ru.job4j.collections.exam;
import org.junit.Test;
import static org.junit.Assert.assertThat;
import static org.hamcrest.core.Is.is;
/** Class Класс SortDepartmentTest.
* @author Arseniy Kulkiov
* @since 14.08.2017
* @version 1
*/
public class SortDepartmentTest {
/**
* Тест.
*/
@Test
... | 32.033898 | 124 | 0.57672 |
fb418b9a41e8fb93e509d55cc027a42249cc9310 | 1,412 | package software.amazon.awssdk.awstest;
import software.amazon.awssdk.awstest.model.CauseServiceErrorResponse;
import software.amazon.awssdk.eventstreamrpc.OperationResponse;
import software.amazon.awssdk.eventstreamrpc.StreamResponse;
import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage;
import ... | 32.837209 | 130 | 0.818697 |
fca8069afb83f355d251ce631c8519b2d1e46d77 | 2,629 | /*******************************************************************************
* Copyright 2019 Regents of the University of California. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be found in the LICENSE.txt file at the root of the project.
***********************... | 23.061404 | 132 | 0.637885 |
b22dc25b969f9094b25c5dd130eeca97ab19f045 | 1,798 | package org.cyberborean.rdfbeans.datatype;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* Utilities for parsing dates.
*
*/
public class DateUtils {
static final SimpleDateFormat ISO8601DateFormat;
static final Sim... | 26.441176 | 77 | 0.62069 |
be929c21593a8501433f41ca1d87f0a5aa9c898e | 6,711 | /* Xholon Runtime Framework - executes event-driven & dynamic applications
* Copyright (C) 2010 Ken Webb
*
* 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 th... | 26.630952 | 119 | 0.696319 |
605837b1f24448cbb4eb9e18e13cc8c5942bd1f4 | 1,565 | package cn.org.atool.fluent.mybatis.test.where.and;
import cn.org.atool.fluent.mybatis.generator.shared2.mapper.StudentMapper;
import cn.org.atool.fluent.mybatis.generator.shared2.wrapper.StudentQuery;
import cn.org.atool.fluent.mybatis.test.BaseTest;
import org.junit.jupiter.api.Test;
import org.springframework.beans... | 34.777778 | 102 | 0.650479 |
4207ae956d7715f5af40dc559e185bb11328cb53 | 2,955 | /*
* Copyright 2019 Wai Yan - (09 97777 3 444).
* 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 a... | 36.9375 | 107 | 0.722843 |
2c2e9454bf9ef86e1b8558bc07374c3308ee9e33 | 1,248 | /*
* @lc app=leetcode.cn id=64 lang=java
*
* [64] 最小路径和
*
* https://leetcode-cn.com/problems/minimum-path-sum/description/
*
* algorithms
* Medium (65.22%)
* Likes: 451
* Dislikes: 0
* Total Accepted: 79.1K
* Total Submissions: 121K
* Testcase Example: '[[1,3,1],[1,5,1],[4,2,1]]'
*
* 给定一个包含非负整数的 m... | 21.517241 | 78 | 0.452724 |
f95b7b621f7ea8ed687261acfa836bcb45e4bfa8 | 508 | package kr.huny.utils;
import org.junit.Test;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.*;
/**
* Created by dhjang on 2016-08-17.
*/
public class SHA256HelperTest {
@Test
public void encrpyt() throws Exception {
String plainText = "abcdefg";
String destText ... | 24.190476 | 93 | 0.714567 |
911f8bdeaec9e41222aa3f98d303e530727a4202 | 2,087 | /*
* Copyright 2020 The Data Catalog Tag History 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 a... | 37.945455 | 100 | 0.781505 |
aeb19671022d466555bf5b7ee0de644fab4505c4 | 3,887 | /*
* 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.663265 | 100 | 0.735014 |
7d686a7072331e1ac96c58c7fa4e5016a3435a41 | 1,581 | /*
* Copyright 2022 Starwhale, 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 applica... | 24.323077 | 81 | 0.658444 |
55f2f917673d2b0cdcdb3fc9cf5d70a1f5f341c0 | 5,615 | package com.thaiopensource.validate.nvdl;
import java.util.StringTokenizer;
/**
* Stores information about a namespace specification.
* A namespace is specified with a namespace pattern and a wildcard.
* The wildcard can be present in multiple places in the namespace
* specification and each occurence of the wil... | 31.368715 | 86 | 0.647729 |
dd0a2847864edccedab56db3ab098aa45846809b | 1,645 | package com.sell.modules.sys.controller;
import com.google.common.collect.Lists;
import com.sell.common.Const;
import com.sell.common.Res;
import com.sell.common.utils.FTPUtil;
import com.sell.common.utils.PropertiesUtil;
import com.sell.modules.store.service.FileService;
import io.swagger.annotations.Api;
import org.... | 31.634615 | 115 | 0.713678 |
2dc7c3b2836138e43c9d5c774dbdd43247231d74 | 439 | package org.benetech.model.form;
import java.io.File;
import java.util.List;
public class UploadNewForm {
List<String> officeId;
File uploadFile;
public List<String> getOfficeId() {
return officeId;
}
public void setOfficeId(List<String> officeId) {
this.officeId = officeId;
}
public File getUploadF... | 14.633333 | 49 | 0.722096 |
d93d8690ed6b534e717141a8ce739f26c55b913e | 151 | package com.authentickart.detector.base;
/**
* Created by arif on 30/7/17.
*/
public interface RxErrorEvent {
void onError(Throwable error);
}
| 15.1 | 40 | 0.708609 |
21521ba6b7e963054563a1d6a9c4c6c17758a15c | 2,590 | // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.model.generic;
import com.yahoo.config.model.ConfigModelContext;
import com.yahoo.config.model.builder.xml.ConfigModelId;
import com.yahoo.config.model.test.MockApplicationPack... | 41.111111 | 128 | 0.650193 |
c912d0961af8b5c242fa7a3d647704fe34037234 | 9,239 | package com.facebook.stetho.inspector.database;
import android.annotation.TargetApi;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteException;
import com.facebook.stetho.common.Util;
import com.facebook.stetho.inspecto... | 40.700441 | 419 | 0.655157 |
cc615c5c7d76a917e1d3f1d648366e727807b9a6 | 1,481 | package com.github.chandanv89.telephonedirectory.model;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import java.util.Arrays;
/**
* The enum Contact category.
*/
public enum ContactCategory {
/**
* Work contact category.
*/
WORK,
/**
* Home contact ... | 22.784615 | 85 | 0.534099 |
c20a1e9aa1054b4aa513e047966952b1c4bdc399 | 1,354 | package com.davidnyan10.plugins;
import android.content.Context;
import com.aliucord.Logger;
import com.aliucord.annotations.AliucordPlugin;
import com.aliucord.entities.Plugin;
import com.aliucord.fragments.SettingsPage;
import com.aliucord.patcher.Hook;
import com.aliucord.patcher.InsteadHook;
import com.aliucord.u... | 24.178571 | 90 | 0.777696 |
37eaf1d53a7a874d5a0df9d03c51b3b321e12b74 | 11,825 | package de.ayesolutions.gogs.client;
import de.ayesolutions.gogs.client.model.AccessToken;
import org.glassfish.jersey.client.ClientConfig;
import org.glassfish.jersey.client.ClientProperties;
import org.glassfish.jersey.client.HttpUrlConnectorProvider;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import ... | 32.486264 | 118 | 0.582664 |
c8340e456089c1125efcc63a908f7bdd3ada3b9b | 4,895 | /*
* 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.aep.implementation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.Reque... | 39.796748 | 125 | 0.640041 |
a3296fd5081babe90c68e531201575c8c6b1e067 | 256 | package com.alibaba.alink.params.io;
import org.apache.flink.ml.api.misc.param.WithParams;
import com.alibaba.alink.params.io.shared.HasPartitions;
public interface ParquetSourceParams<T> extends WithParams <T>,
HasFilePath <T>,
HasPartitions<T> {
}
| 21.333333 | 63 | 0.785156 |
d7a4706f0ba434a12bf109ff22b2de4138343c68 | 3,550 | /*
Copyright 2013 Jose Luis De la Cruz Morales joseluis.delacruz@gmail.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 r... | 27.734375 | 75 | 0.770704 |
c73615daea2c14e79d0a1b3407113958df54a3a7 | 13,114 | package jp.kshoji.javax.sound.midi.io;
import android.content.res.AssetManager.AssetInputStream;
import androidx.annotation.NonNull;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.DataInput;
import java.io.DataInputStream;
import java.io.File;
import java.io.FileInputStream... | 31.002364 | 181 | 0.708556 |
c4a98bfa73264c372a0e872e4f28afbcff015fbf | 66,186 | package com.datingapp.fragment;
import android.app.Activity;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.Context;
import android.databinding.DataBindingUtil;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.gr... | 45.582645 | 394 | 0.59916 |
9df315fbec42b003555871341280b1a9991f1625 | 3,099 | /*
* Janssen Project software is available under the Apache License (2004). See http://www.apache.org/licenses/ for full text.
*
* Copyright (c) 2020, Janssen Project
*/
package io.jans.model.uma;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.xml.bind.annotation.XmlElement;
import java.util.... | 27.669643 | 147 | 0.659568 |
64d714ed3091268bc5568b1c6f6350ab2ae68bf1 | 2,067 | /*
* This source is part of the
* _____ ___ ____
* __ / / _ \/ _ | / __/___ _______ _
* / // / , _/ __ |/ _/_/ _ \/ __/ _ `/
* \___/_/|_/_/ |_/_/ (_)___/_/ \_, /
* /___/
* repository.
*
* Copyright (C) 2013 Benoit 'BoD' Lubek (BoD@JRAF.org)
* Copyright (C) 2015-2017 Ca... | 36.910714 | 160 | 0.698597 |
49bd061100421c8698112a712d2730e6cb5d253b | 11,212 | package org.spiffyui.maven.plugins;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.io.R... | 33.975758 | 148 | 0.589458 |
f642619c04222d589971ca16318b87ab6361c740 | 5,686 | package edu.usc.ict.superglu.ontology;
import edu.usc.ict.superglu.core.BaseMessage;
import edu.usc.ict.superglu.ontology.mappings.MessageMap;
import edu.usc.ict.superglu.ontology.mappings.MessageTemplate;
import edu.usc.ict.superglu.ontology.mappings.MessageType;
import edu.usc.ict.superglu.util.Pair;
import edu.usc... | 30.244681 | 142 | 0.715266 |
4d0b65c6d6cf2c25a1cacc6fa699f8460376bb50 | 1,482 | package com.anteoy.util;
public class ParamEncrypt {
public static void main(String[] args) {
String code = code("yisbh");
System.out.println(code);
String key = decode(code);
System.out.println(key);
}
public static String code(String key) {
int _day = (int) (System.currentTimeMillis() / 1000 / 3600 / ... | 24.7 | 67 | 0.576923 |
d7f465fe094a8cdd620173a3a9c08a40864abe25 | 1,338 | /*
* 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... | 32.634146 | 75 | 0.703288 |
510453f8e87417cd66ba3e669161bb667f64545b | 723 | package org.usfirst.frc.team2928.Autonomous;
import edu.wpi.first.wpilibj.command.CommandGroup;
import org.usfirst.frc.team2928.Command.Arm.RunShoulder;
import org.usfirst.frc.team2928.Command.Intake.RunAngle;
import org.usfirst.frc.team2928.Command.Intake.SetClamp;
import org.usfirst.frc.team2928.Subsystem.Intake.Cla... | 38.052632 | 60 | 0.742739 |
af2848096d8df404d1541b8963af2f431dacf55e | 5,443 | package ru.stqa.pft.addressbook.appmanager;
import com.sun.javafx.binding.ExpressionHelperBase;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import ru.stqa.pft.addressbook.model.GroupData;
import java.util.ArrayList;
import java.util.HashSet;
import java.... | 36.530201 | 147 | 0.685468 |
4dcd3ed730f6b37f9ecedf21bf74feb86f9fae28 | 307 | package org.activiti.engine.cfg;
/**
* @author jbarrez
*/
public abstract class AbstractProcessEngineConfigurator implements ProcessEngineConfigurator {
public static int DEFAULT_CONFIGURATOR_PRIORITY = 10000;
@Override
public int getPriority() {
return DEFAULT_CONFIGURATOR_PRIORITY;
}
}
| 19.1875 | 94 | 0.778502 |
86f19f15fe39770ed65366cbd3eef9a273e8d76b | 3,599 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.network.models;
import com.azure.core.annotation.Immutable;
import com.fasterxml.jackson.annotation.JsonProperty;
/** BGP peer ... | 25.524823 | 87 | 0.637677 |
36a9e953ff498aa36005b8e1989b4eca7e4a951d | 1,723 | package dk.lockfuglsang.minecraft.util;
import org.bukkit.inventory.ItemStack;
import org.hamcrest.Description;
import org.hamcrest.Factory;
import org.hamcrest.Matcher;
import org.hamcrest.TypeSafeDiagnosingMatcher;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import static org.ha... | 29.20339 | 98 | 0.699942 |
a3dc0e39f08d40df31926868e66c4ef94e3130a4 | 2,135 |
package orz.ludysu.lrcjaeger.engine.netease;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.List;
public class Song {
@SerializedName("album")
@Expose
private Album album;
@SerializedName("status")
@Expose
private Integer statu... | 19.0625 | 53 | 0.610773 |
1a71c7f9f17e459fb59f76d1f171d1e4c2b5c8fd | 140 | package goahead.interop.builtin;
import goahead.interop.GoType;
@GoType("uint64")
public class UInt64 extends UnsignedInteger<UInt64> {
}
| 17.5 | 53 | 0.792857 |
68cfae990e6eed7305c6212dd4a826e54b216a93 | 2,020 | package labs.ppt3.lab1;
import java.text.NumberFormat;
import java.util.Scanner;
/**
* @author Kevin (Yichen Wang)
* Date Created: 2020/11/3
* @course AP-CSA Section 1
*/
public class ChargeAccountStatement {
public static void main(String[] args) {
double previousBalance;
double newBalance;
... | 33.114754 | 89 | 0.589109 |
13d825e2700c36e1797710cfa5d58519492567fa | 974 | /*
* Copyright © 2014 Cask Data, 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 t... | 34.785714 | 96 | 0.746407 |
0860861baba02652065eb647ad2a672b6db4283c | 13,145 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF license... | 17.715633 | 814 | 0.790186 |
303260217c2f3a23279b16bc698ace580369936b | 47,121 | /*******************************************************************************
* Copyright 2011 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
*
* http:... | 42.375 | 131 | 0.689374 |
c40060682607687eda743543aeba6520e231415f | 4,769 | package listExercises;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
public class AdvancedManipulationOfList {
public static void main(String[] args) throws IOException {
Buff... | 28.052941 | 135 | 0.51038 |
b36d8f4a072cec807656b9c0647bd1325b382ccf | 1,746 | package abused_master.refinedmachinery.registry.recipe;
import com.google.gson.JsonObject;
import net.minecraft.item.ItemStack;
import net.minecraft.recipe.Ingredient;
import net.minecraft.recipe.RecipeSerializer;
import net.minecraft.recipe.ShapedRecipe;
import net.minecraft.util.Identifier;
import net.minecraft.util... | 39.681818 | 151 | 0.729668 |
689a2b278318e874aed58a9b499ad6513614f0ef | 9,685 | package com.blockchain.store.playmarket.adapters;
import android.content.Context;
import androidx.annotation.NonNull;
import androidx.appcompat.widget.AppCompatButton;
import androidx.cardview.widget.CardView;
import androidx.recyclerview.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.V... | 38.129921 | 125 | 0.635416 |
7c663509748ff246e97223cd97d5c2ff509934fa | 2,289 | package demo;
import extra.RoundedPanel;
import javax.swing.*;
import java.awt.*;
import java.io.IOException;
public class DeckGui extends JPanel {
public JTextField textField;
public deck Deck;
public JLabel btnNewButton;
public JLabel btnNewButton_1;
public JLabel btnNewButton_2;
public JLayeredPane panel;
pu... | 28.259259 | 74 | 0.71647 |
9491ed10b13c5bb9d0fd509105245767d5f681ee | 917 | package com.hlag.oversigt.sources.data;
import java.time.LocalDate;
import java.util.Objects;
import javax.validation.constraints.NotNull;
import com.hlag.oversigt.sources.data.JsonHint.ArrayStyle;
@JsonHint(headerTemplate = "{{ self.name }}", arrayStyle = ArrayStyle.TABLE)
public class Birthday {
@NotNull
privat... | 21.325581 | 77 | 0.733915 |
f3fc04306decb190602b42267dd11c82379982d6 | 679 | package br.com.aldebaran.ibattery;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
public class BatteryPercentageReceiver extends BroadcastReceiver {
static OnEventChangedListener mListener;
@Override
public void onReceive... | 26.115385 | 85 | 0.699558 |
7b3b362763995626c283c74e6ae84fefc979121e | 173 | package com.gino.dubbo.api;
/**
* demo service interface
*
* @author gino
* Created on 2018/5/18
*/
public interface DemoService {
String sayHello(String name);
}
| 14.416667 | 33 | 0.682081 |
45ee7678823e303b270da1dbbaaf4d7b5e7659e6 | 541 | package com.example.model.impl;
import com.example.model.ICreation;
import com.google.inject.Inject;
public class Warehouse {
private final ICreation creation;
// Constructor injection example
@Inject
public Warehouse(ICreation creation) {
// The creation is instantiated here, since it is a constructor
// i... | 20.807692 | 65 | 0.752311 |
82df4ad5d8db902507b93bc6d178e1185cdc1984 | 2,326 | package me.saket.dank.ui.preferences.adapter;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.google.auto.value.AutoValue;
import javax.inject.Inject;
import butterknife.BindView;
i... | 28.365854 | 114 | 0.741617 |
ae30883b5464424ea3a4df5ae9955acd2b0e59dd | 621 | /* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0 */
package net.sf.mmm.code.api.type;
import net.sf.mmm.code.api.copy.CodeNodeItemCopyable;
/**
* {@link CodeGenericTypeParameters} with generic bound to {@link CodeGenericType}.
*
* @see Co... | 29.571429 | 153 | 0.763285 |
fc3544d0cd17f86b067657c98c90f5cb95a08cd9 | 1,028 | package cn.ffcs.wisdom.city.simico.base;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
public class AppDownloadBroadcast extends BroadcastReceiver {
public interface UpdateUIView {
public void updateProgress(int v, long t);
public void updateFinish();
... | 23.906977 | 71 | 0.752918 |
b038b28634ecc97b0693ecc741a3b290d7a29ba7 | 1,148 | package states;
import memento.ConcretoMemento;
import memento.IMemento;
/**
* Originator class that has the data we want to save 'snapshots'.
*/
public class Mario{
protected IMarioState state;
public Mario() {
state = new LittleMario();
}
public void takeMushroom() {
state = stat... | 20.140351 | 100 | 0.634146 |
3731a97e3f76bba434e084359bc2e81d6bd98004 | 7,929 | package control;
import API.ConexionBD;
import entidades.DTOReporte;
import entidades.Linea;
import entidades.Parametro;
import entidades.Renta;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.time.LocalDate;
import java.time.LocalTime... | 38.120192 | 143 | 0.577753 |
01a406e4852c27f5d359adb6ff1a913b055f80b0 | 2,513 | /*
* 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")... | 52.354167 | 170 | 0.785913 |
198294588a769f4e05a7f97ffc1fc34fa56adfe7 | 3,421 | /*
* Copyright (c) 2020. Real Time Genomics Limited.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* 1. Redistributions of source code must retain the above copyright
* notice... | 32.273585 | 100 | 0.691611 |
6780eb4854069956e8b31c9ff46dfbb74ae07182 | 990 | /*
* Copyright 2021, 2022 Macquarie University
*
* Licensed under the Apache License Version 2.0 (the, "License");
* you may not use, this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... | 28.285714 | 74 | 0.734343 |
f9e69a9bc266f157025823ce679c3e5170426719 | 2,398 | package com.fruit.mvvm.ui.minefruit;
import android.content.Context;
import android.os.Parcelable;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.StringRes;
import androidx.fragment.app.Fragment;
import androidx.fragment.app... | 33.305556 | 161 | 0.708924 |
024af34ec6ba5f04a2bda85aedb9ad1a6352b45a | 2,390 | /*
* Copyright (c) 2009-2011 by Bjoern Kolbeck, Zuse Institute Berlin
*
* Licensed under the BSD License, see LICENSE file for details.
*
*/
package org.xtreemfs.foundation.flease;
import org.xtreemfs.foundation.TimeSync;
import org.xtreemfs.foundation.buffer.ASCIIString;
import org.xtreemfs.foundation.flease.co... | 25.425532 | 118 | 0.632636 |
7c77b753d812e94e3adc69438a40561a4219d742 | 5,791 | /*
* Autopsy Forensic Browser
*
* Copyright 2018 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> 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:/... | 41.070922 | 108 | 0.711103 |
be1b767d7fc0cd531e38c10e98623c8f368f18de | 405 | package com.example.answer.fragment;
import java.io.Serializable;
/**
* Created by zbmobi on 15/11/17.
*/
public class BaseEntity implements Serializable {
private static final long serialVersionUID = 1L;
private int themeColor;
public int getThemeColor() {
return themeColor;
}
publi... | 18.409091 | 52 | 0.688889 |
0fb8563467e2c7d61b504857ecaf531040016daa | 364 | package pl.kkowalewski.repository;
import org.springframework.data.repository.CrudRepository;
import pl.kkowalewski.model.Publisher;
public interface PublisherRepository extends CrudRepository<Publisher, Long> {
/*------------------------ FIELDS REGION ------------------------*/
/*------------------------ M... | 28 | 78 | 0.571429 |
b1d7c88594fdcbc8f86c261f81e2cd5f26cfe5ac | 1,075 | package com.arthurhan.backend.http;
import com.arthurhan.backend.http.domain.request.UserRequest;
import com.arthurhan.backend.http.domain.response.UserResponse;
import com.arthurhan.backend.service.UserService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.... | 29.861111 | 78 | 0.744186 |
a865a8411ffaf00c484de54e59a1d1fee5ff2ba5 | 4,619 | package com.ruegnerlukas.simplemath.vectors.vecN;
import com.ruegnerlukas.simplemath.vectors.IVector;
public interface IVectorN extends IVector {
/**
* Sets this vector from the given vector with the same size.
* @param v the vector
* @return this vector for chaining
* */
public IVectorN set(IVectorN ... | 27.011696 | 100 | 0.693007 |
fed26ef34a2fd1a7863e0cfaf88898fcff530463 | 233 | package com.flow.base.shiro.config;
import java.util.List;
public interface ShiroService {
ShiroUser getShiroUser(String account);
List<String> getPermissions(String account);
List<String> getRoles(String account);
}
| 19.416667 | 48 | 0.755365 |
2f387bd701e9dabe0dc3a3e35136080c31bfc81a | 1,466 | package cn.liulin.algorithm.leetcode.array.simple;
import java.util.ArrayList;
import java.util.List;
/**
* cn.liulin.algorithm.leetcode.array.simple$
* 1018. 可被 5 整除的二进制前缀
* 给定由若干0和1组成的数组 A。我们定义N_i:从A[0] 到A[i]的第 i个子数组被解释为一个二进制数(从最高有效位到最低有效位)。
* 返回布尔值列表answer,只有当N_i可以被 5整除时,答案answer[i]为true,否则为 false。
* @author ... | 27.148148 | 71 | 0.547749 |
0adb19fa9ba08345f228b69d458d887ed31e6a50 | 1,593 | package com.team3.stockPhoto.automation.tests;
import com.team3.stockPhoto.automation.actions.UiActions;
import com.team3.stockPhoto.automation.base.BaseTest;
import com.team3.stockPhoto.automation.utils.GeneralUtils;
import com.team3.stockPhoto.automation.verifications.UiVerifications;
import org.testng.annotations.T... | 35.4 | 91 | 0.721908 |
4d28b34c776db5f01196fb1135132a8d28bb4bdb | 1,744 | /*
* Copyright 2018 MovingBlocks
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 33.538462 | 82 | 0.735665 |
8df36497e25d5cc63311546b188193c16d61f3b7 | 14,269 | package org.systemsbiology.hadoop;
import org.apache.hadoop.conf.*;
import org.apache.hadoop.mapreduce.*;
import java.io.*;
import java.util.*;
/**
* org.systemsbiology.hadoop.DefaultParameterHolder
*
* @author Steve Lewis
* @date 8/19/13
*/
public class DefaultParameterHolder implements ISetableParameterHolder... | 29.120408 | 138 | 0.608522 |
68ceea6564529720c727d01b00619aea93d9775d | 1,931 | package ru.kudesunik.kudesunetwork.examples.ping;
import java.net.InetAddress;
import ru.kudesunik.kudesunetwork.KudesuNetwork;
import ru.kudesunik.kudesunetwork.packet.Packet;
import ru.kudesunik.kudesunetwork.server.KudesuNetworkServer;
import ru.kudesunik.kudesunetwork.server.NetworkServerListener;
public class P... | 27.585714 | 113 | 0.740031 |
448111b62def239a4278b54b19f3ea4cc9cab147 | 5,737 | package com.usher.service.impl;
import com.usher.enums.MsgActionEnum;
import com.usher.enums.SearchFriendsStatusEnum;
import com.usher.mapper.FriendsRequestMapper;
import com.usher.mapper.MyFriendsMapper;
import com.usher.mapper.UsersMapper;
import com.usher.mapper.UsersMapperCustom;
import com.usher.netty.DataContent... | 34.769697 | 86 | 0.710302 |
3ee5a1c2b56f1b4ffb140188a4cfe4410b23a594 | 4,372 | package org.apache.lucene.queryparser.flexible.aqp.builders;
import org.apache.lucene.index.Term;
import org.apache.lucene.queryparser.flexible.aqp.config.AqpAdsabsQueryConfigHandler;
import org.apache.lucene.queryparser.flexible.aqp.processors.AqpAnalyzerQueryNodeProcessor;
import org.apache.lucene.queryparser.flexib... | 37.689655 | 98 | 0.715005 |
5b631df5854dd2a84149632ca60e2719c41e3e26 | 2,984 | package com.almis.awe.test.unit.spring;
import com.almis.awe.model.component.AweElements;
import com.almis.awe.model.constant.AweConstants;
import com.almis.awe.model.entities.enumerated.EnumeratedGroup;
import com.almis.awe.model.entities.menu.Menu;
import com.almis.awe.model.entities.menu.Option;
import com.almis.aw... | 36.390244 | 125 | 0.748995 |
f0d741ba8e929da95026d08454a0a2249aa0e0be | 1,184 | package me.subhrajyoti.noteworthy.Models;
import java.util.UUID;
public class Note {
private int id;
private String date;
private String title;
private String desc;
private String uid;
public Note(String title, String desc)
{
this.title=title;
this.desc=desc;
this... | 16 | 62 | 0.55152 |
6dd13aaa8a158e294cfe5759a7d9940eefec0720 | 527 | package com.llw.easyutil;
import android.app.Dialog;
import android.content.Context;
/**
* Easy Loading
* @author llw
* @date 2021/06/28
*/
public final class EasyLoading extends Dialog {
public EasyLoading(Context context) {
super(context);
}
public EasyLoading(Context context, int themeRes... | 21.08 | 97 | 0.698292 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.