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 |
|---|---|---|---|---|---|
088c799edcd7f020d78012d045edad682848f3bb | 2,164 | /*
* Copyright (C) 2017-2018 Dremio Corporation
*
* 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... | 36.066667 | 158 | 0.762939 |
1b3fc70e8a5cc5c88993ff7d87f2b728561c4c4a | 400 | /*
* Copyright (c) 2014. Massachusetts Institute of Technology
* Released under the BSD 2-Clause License
* http://opensource.org/licenses/BSD-2-Clause
*/
package bits.draw3d.pick;
/**
* @author decamp
*/
public interface PointPickResult<P> {
public boolean hasPick();
public double pickedDistance()... | 17.391304 | 60 | 0.665 |
0e413afb8173895c385cf9874a634024f92a9d90 | 3,621 | import eu.the5zig.mod.MinecraftFactory;
import eu.the5zig.mod.asm.Transformer;
import eu.the5zig.mod.gui.IOverlay;
import eu.the5zig.util.minecraft.ChatColor;
import java.util.List;
public class Overlay implements IOverlay {
Overlay() {
}
public static void updateOverlayCount(int count) {
}
public static void... | 28.069767 | 157 | 0.704778 |
3ff5d07b17d91965cdd14fed406809933dc326a2 | 1,046 | package kotlin.reflect.jvm.internal;
import kotlin.Metadata;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.Lambda;
@Metadata(mo40251bv = {1, 0, 3}, mo40252d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0000\n\u0002\b\u0002\u0010\u0000\u001a\u0004\u0018\u00010\u0001\"\u0006\b\u0000\u0010\u0002 \u0001H\n¢\u... | 45.478261 | 289 | 0.718929 |
0ded15ad3039393d51f0e9222d6c08cc4a342ee7 | 3,764 | /*
* Copyright 2021 EPAM Systems, Inc
*
* See the NOTICE file distributed with this work for additional information
* regarding copyright ownership. 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 Li... | 33.309735 | 104 | 0.591923 |
c9817a8683b01bbc6c4f6a226c254370bdc6ca41 | 113 | package com.google.android.gms.internal.clearcut;
abstract class zzbh extends zzbb {
zzbh() {
}
}
| 16.142857 | 50 | 0.654867 |
eea125ef4c8aafad0dd1964d81d63feaac429d5b | 194 | package com.sample.boot.Feed;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class FeedController {
}
| 19.4 | 62 | 0.835052 |
757dc2594ceb9aed851155f93b58aefefce26e8a | 7,355 | /*
* Copyright 2012-2015, 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 a... | 43.264706 | 154 | 0.728756 |
d5919dfd280983607700d521d0ed15c2544f34b2 | 5,817 | /**
* pims-web org.pimslims.servlet AjaxValidate.java
*
* @author Marc Savitsky
* @date 22 Nov 2007
*
* Protein Information Management System
* @version: 1.3
*
* Copyright (c) 2007 Marc Savitsky * *
*
*/
package org.pimslims.servlet;
import java.io.IOException;
import java... | 36.35625 | 111 | 0.602716 |
f2074c327c87712e5284d37a71c31c4bdb22380e | 1,541 | package com.deepclone.examples;
import java.io.Serializable;
import java.math.BigDecimal;
/**
*
*
* @author Sergio Besada
*
*/
public class SerializedClass implements Serializable, Cloneable {
private static final long serialVersionUID = 1L;
public Integer number1;
public BigDecimal number2;
... | 23 | 110 | 0.658014 |
ed53cef7c16254ee0e07e3a42250eb69cd6d38f2 | 3,083 | /*
* Copyright © 2017 Ivar Grimstad (ivar.grimstad@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 required b... | 34.640449 | 107 | 0.710347 |
8d15ebd5d2ad9fb9b19c5434968c6045a5c7f288 | 4,458 | // AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from ethereum_like_wallet.djinni
package com.ledger.reactnative;
import co.ledger.core.Error;
import co.ledger.core.EthereumLikeWallet;
import co.ledger.core.GetEthreumLikeWalletCallback;
import com.facebook.react.bridge.Promise;
import com.faceb... | 35.951613 | 224 | 0.702557 |
2cd08233633317a405ee9ff747c7fcd3d19dd40a | 13,700 | package com.tencent.tauth;
import android.app.Activity;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager.NameNotFoundException;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import c... | 42.02454 | 648 | 0.689562 |
3407eee859d9b675d51554a30966724f7bbb0414 | 2,829 | package executor;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import joinTree.ElementType;
import joinTree.TriplePattern;
public class Utils {
/**
* Makes the string conform to the requirements for HiveMetastore column ... | 30.419355 | 118 | 0.68222 |
11a3d9398c263d5a2a6d78af64fee3ad1a198dca | 584 | package voxxrin.companion.domain;
import voxxrin.companion.domain.technical.Referenceable;
public class Room extends Referenceable {
public static final String COLLECTION = "room";
private String name;
private String fullName;
public String getName() {
return name;
}
public Room s... | 18.83871 | 56 | 0.648973 |
272ee4594b591cf1eeb616e64014d650d09d6c8e | 3,975 | package com.wwq.youkumenu;
import android.app.Activity;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import com.wwq.darkhorseday53.R;
import com.wwq.utils.AnimUtil;
/**
* Created by 魏文强 on 2016/7/30.
*/
publ... | 31.299213 | 81 | 0.522767 |
857d2935551e6819797d8aae44c608f3f5dc6901 | 906 | /**
* Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose eith... | 31.241379 | 246 | 0.766004 |
651cdfc2842866a948ba187732f23ca6464c874b | 265 | package net.blueberrymc.client.event.render;
import net.blueberrymc.common.bml.event.Event;
public abstract class RenderEvent extends Event {
public RenderEvent() {
super();
}
public RenderEvent(boolean async) {
super(async);
}
}
| 18.928571 | 49 | 0.679245 |
80ebc615010a4bc7c034ab54567efb6d0ffd9d39 | 2,423 | /*
* Copyright 2013-2016 must-be.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 agreed to... | 28.505882 | 115 | 0.772596 |
e1b812c83a62c0ca3bc91fe0b3b3392f5f7e5b06 | 1,810 | package uk.co.ticklethepanda.gallery.service;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
/**
* Created by panda on 08/05/16.
*/
public class GalleryDto {
private final String reference;
private final String name;
private final String description;
private final LocalDate ... | 21.294118 | 93 | 0.68674 |
7542cf352269070b96f4d1800c78159a27c4ad33 | 207 | package org.apache.commons.net.ftp;
public abstract interface i
{
public abstract boolean a(f paramf);
}
/* Location: ~/org/apache/commons/net/ftp/i.class
*
* Reversed by: J
*/ | 17.25 | 62 | 0.623188 |
050b0c10670cf104ad749b511724a0c9def804ad | 5,834 | package org.apache.hadoop.hive.ql.cube.parse;
import static org.apache.hadoop.hive.ql.parse.HiveParser.Identifier;
import static org.apache.hadoop.hive.ql.parse.HiveParser.TOK_SELEXPR;
import java.util.Map;
import org.antlr.runtime.CommonToken;
import org.apache.commons.lang.StringUtils;
import org.apache.hadoop.con... | 34.52071 | 80 | 0.677237 |
3922c1a2ebc11db6ae34b0f613a284606373692f | 2,419 | package by.bestwork.controller;
import by.bestwork.dao.CheckDao;
import by.bestwork.domain.ContractRequest;
import by.bestwork.domain.User;
import by.bestwork.dto.PersonInfo;
import by.bestwork.dto.Role;
import by.bestwork.dto.SocialNetwork;
import by.bestwork.service.AuthorizationService;
import by.bestwork.service.C... | 40.316667 | 161 | 0.721372 |
c4ed8cdcc688a73a2ba7e840b8630b48194e5a51 | 3,161 | package com._4point.aem.fluentforms.testing.pdfUtility;
import static java.util.Objects.isNull;
import java.util.List;
import com._4point.aem.fluentforms.api.Document;
import com._4point.aem.fluentforms.api.DocumentFactory;
import com._4point.aem.fluentforms.api.pdfUtility.PdfUtilityService.PdfUtilityExcepti... | 37.188235 | 113 | 0.800696 |
59ae52076a7d769ce1c84b3b750b8e8440f7173f | 966 | package lsh.ext.gson.ext.java.time;
import java.time.OffsetTime;
import java.time.ZoneOffset;
import java.time.format.DateTimeFormatter;
import java.util.stream.Stream;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import lsh.ext.gson.adapters.AbstractTypeAdapterTest;
import org.junit.jupiter.par... | 24.15 | 70 | 0.727743 |
4c6694899d9c548804434d80235e71e842b48cf4 | 827 | package studio.sanguine.wallyschedule;
/**
* Created by mafia on 8/25/2017.
*/
public class OpenScheduleItem {
private String _jobDescription = "";
private String _shiftTime = "";
public OpenScheduleItem(String JobDesc, String ShiftTime){
set_jobDescription(JobDesc);
set_shiftTime(Shif... | 23.628571 | 65 | 0.661427 |
707f27e2de297c7f77bfad9f6a64d231298c753a | 389 | package org.openntf.domino.graph2.builtin.identity;
import org.openntf.domino.graph2.annotations.TypedProperty;
import com.tinkerpop.frames.modules.typedgraph.TypeValue;
@TypeValue("Server")
public interface Server extends Name {
@TypedProperty("ServerName")
public String getServerName();
@TypedProper... | 25.933333 | 60 | 0.77892 |
083d32624c468fca898cc62dbfc68b9724a85b01 | 755 | import java.util.*;
public class Solution {
public static int findMaximum(int n, int k){
int max = 0;
int a = n - 1; // we are constrained by a < b
while(a-- > 0) {
for(int b = a + 1; b <= n; b++){
int test = a & b;
if( test < k
... | 25.166667 | 53 | 0.398675 |
54a28c38c2ac855d47d586b6dac64d4ec0d35bdb | 12,324 | /*
* Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: ... | 34.138504 | 88 | 0.493914 |
d608e9ffec1a20e5372adfb997e52c388fc78ea9 | 1,717 | package se.kth.csc.stayawhile;
import android.app.Fragment;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
/**
* Created by viklu on 2016-04-22.
*/
public class QueueePageFragment ... | 30.122807 | 103 | 0.665114 |
d3cb3dd102d907ebc6af2a0110eb96fba916c4ff | 7,589 | //
// ========================================================================
// Copyright (c) 1995-2017 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the ter... | 40.801075 | 148 | 0.665832 |
45f9c3fe7607137264efa55b67ad10f0cf9899f1 | 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.github.hiteshlilhare.jcplaystore.ui.appcard;
import java.awt.Component;
import javax.swing.AbstractCellEditor;
im... | 26.323529 | 86 | 0.693855 |
cd7cb3c20f849e061835e1b87c2108559d4f7c52 | 1,820 | package com.yazaki.btservice.yazakiandroidbtservice.base;
import android.bluetooth.BluetoothDevice;
public interface BaseListener {
/**
* Callback when bluetooth power state changed.
* @param preState previous power state
* @param state current power state
* Possible values are STATE_OFF, STA... | 37.142857 | 94 | 0.728022 |
768cd723949f32d5d5278e2e3ded860a2bddefd7 | 2,042 | package org.jboss.resteasy.test.resource.path;
import static org.junit.Assert.assertEquals;
import javax.ws.rs.client.Client;
import javax.ws.rs.client.ClientBuilder;
import javax.ws.rs.core.Response;
import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.container.test.api.RunAsClien... | 37.127273 | 105 | 0.780118 |
f5047087c54917faa7df7a59f398e9e770911089 | 694 | package cn.zifangsky.easylimit.authc;
import java.io.Serializable;
/**
* 用户主体
*
* @author zifangsky
* @date 2019/4/3
* @since 1.0.0
*/
public interface PrincipalInfo extends Serializable {
/**
* 获取账户名(必须唯一)
*
* @return java.lang.String
* @author zifangsky
* @date 2019/4/3 18:18
... | 15.772727 | 53 | 0.530259 |
114c555867c291dc68b1f6102f6c8ae10220060b | 5,044 | /*
* Copyright © 2013-2018 camunda services GmbH and various authors (info@camunda.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... | 50.44 | 149 | 0.788263 |
c6b3812dbb7255577b8dd78eb140265643c1698a | 2,249 | package org.firstinspires.ftc.teamcode.FreightFrenzy.TestOpModes;
import com.qualcomm.robotcore.eventloop.opmode.Disabled;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
import org.firstinspires.ftc.teamcode.FreightFrenzy.Systems.ArmSystem;
import o... | 34.6 | 89 | 0.658515 |
a6da5420ee731f06d58a20fc7485e0af62c6c8bf | 1,902 | package es.collectserv.test.mybatis;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.fail;
import org.apache.ibatis.session.SqlSession;
import org.junit.Test;
import es.collectserv.model.User;
public class TestUserMapper extends MyBatisConfigurat... | 24.384615 | 85 | 0.71346 |
2e02852b16ab331aa90a3f67e5bb77f95eed4895 | 46,964 | package uk.gov.hmcts.reform.pcqloader;
import com.azure.storage.blob.BlobContainerClient;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.junit.jupiter.MockitoExtension;
import org.springframework.http.Htt... | 55.316843 | 116 | 0.719168 |
73f982a33268f93cb8f1cfc632ac9f7abd67de52 | 9,991 | package com.pushtorefresh.storio3.sqlite.design;
import android.database.Cursor;
import com.pushtorefresh.storio3.Optional;
import com.pushtorefresh.storio3.sqlite.queries.Query;
import com.pushtorefresh.storio3.sqlite.queries.RawQuery;
import org.junit.Test;
import java.util.List;
import io.reactivex.Flowable;
im... | 34.215753 | 85 | 0.46652 |
16f1ab097f8acefab64794782c580b49fa229c86 | 1,471 | package quantasma.examples.builders;
import org.ta4j.core.Rule;
import quantasma.core.BaseContext;
import quantasma.core.Context;
import quantasma.core.analysis.parametrize.Values;
public class RSIStrategyGrandChild extends RSIStrategyChild {
protected RSIStrategyGrandChild(Builder builder) {
super(builde... | 30.645833 | 162 | 0.648538 |
81d48c574d40511eb59533fdd3450d8e495151dc | 305 | package com.suk.blog.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
/**
* <p>
* 前端控制器
* </p>
*
* @author suk
* @since 2019-09-04
*/
@Controller
@RequestMapping("/spider/content")
public class ContentController {
}
| 14.52381 | 62 | 0.721311 |
ce845c0c7cc6c9a1db5e805f82bae581d7f84292 | 198 | package com.illusory.i.shop.commons.mapper;
import com.illusory.i.shop.commons.domain.TbContent;
import tk.mybatis.mapper.MyMapper;
public interface TbContentMapper extends MyMapper<TbContent> {
} | 28.285714 | 62 | 0.823232 |
db353822c5da7523f21d58b1c3bd92db41aeed61 | 1,029 | package com.example.denaun.aoc2021.day18;
import static com.example.denaun.aoc2021.parsers.AocParsers.COMMA;
import static com.example.denaun.aoc2021.parsers.AocParsers.LINE_ENDING;
import static com.example.denaun.aoc2021.parsers.AocParsers.NUMBER;
import static org.jparsec.Scanners.isChar;
import com.example.denaun... | 32.15625 | 75 | 0.712342 |
aae6dc398d6443d307aeea1641baef9aaf1f5677 | 1,322 | /*
Sample Input:
"MCMXCIV"
Sample Output:
1994
Explanation:
M = 1000, CM = 900, XC = 90 and IV = 4
Range constraint:
[1, 3999]
*/
class Solution {
public int romanToInt(String str) {
int num = 0;
int i = 0;
while (i < str.length()) {
char currentChar = str.charAt(i);
if (i + 1 == str.... | 18.361111 | 80 | 0.465204 |
ee07f79e245d8d9a1e5b5bb7fe87d9ad9b9ed7e7 | 12,188 | /*
* Copyright 2011 Azwan Adli Abdullah
*
* 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 ag... | 37.968847 | 112 | 0.66467 |
719e4690e43e823738fb64f9dcdab081664c0912 | 1,103 | package robot;
import java.util.ArrayList;
import java.util.Random;
import robot.skills.AbstractSkill;
import robot.skills.CleanSkill;
import robot.skills.MoveSkill;
import robot.skills.PaintSkill;
public final class RobotHelper {
public static ArrayList<AbstractSkill> skillsGenerator(){
ArrayList<A... | 26.261905 | 85 | 0.718948 |
685cc3c5d1bf5d96344faad65c55358e3bc536c9 | 2,638 | /*
* 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... | 41.21875 | 98 | 0.747157 |
2a49d10de87853f41d099eca38360dc7f17f0cd3 | 39 | package api;
public class TestAPI {
}
| 7.8 | 22 | 0.717949 |
14b5313aa8931d742ad3cc019a97cafea4e550a9 | 3,361 | package com.youzhixu.sample.io.serializable;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.Externalizable;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.ObjectInput;
import java.io.Object... | 23.020548 | 91 | 0.717644 |
8161f5977aaa2d17d7fb961ff3688295b05a759a | 480 | package com.github.extermania.leetcode;
public class $0242_Valid_Anagram_96_99 {
class Solution {
public boolean isAnagram(String s, String t) {
if (s.length() != t.length())
return false;
int[] chars = new int[26];
for (char c : s.toCharArray()) {
chars[c - 'a']++;
}
for ... | 20.869565 | 52 | 0.525 |
94bc7c06721364910073627d9f71435fbdcc908a | 6,878 | /*
* Copyright 2015 Christian Basler
*
* 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... | 28.778243 | 102 | 0.560192 |
5f6986b0c066c367b9361691df4a2520e6d5ed2a | 380 | package exceptions;
/**
* This exception is thrown when a solution is infeasible.
*
* @author gokhanceyhan
*
*/
public class InfeasibleSolutionException extends Exception {
private static final long serialVersionUID = 1L;
/**
* @param s
* Exception message.
*/
public Infeas... | 18.095238 | 60 | 0.639474 |
1b89a7208b26c0219958df3e67cce790531c00f6 | 120 | package ru.otus.hw4springbootinitquiz.quiz;
public interface StudentQuiz {
void start();
boolean runQuiz();
}
| 15 | 43 | 0.725 |
82c326b04aabd556d520ab35395b7c81daa7e81d | 605 | package com.asher.threeline;
import android.content.Context;
import android.content.res.Resources;
import javax.inject.Singleton;
import dagger.Module;
import dagger.Provides;
/**
* Created by ouyangfan on 2017/3/22.
*
* application 模块
*/
@Module
public class AppModule {
private App app;
AppModule(App ... | 16.805556 | 56 | 0.679339 |
9e72c0dc550c5827d769a04212b4b0f1dd3f7e57 | 5,243 | /*---------------------------------------------------------------------------*\
This software is released under a BSD license, adapted from
<http://opensource.org/licenses/bsd-license.php>
Copyright © 2004-2012 Brian M. Clapper.
All rights reserved.
Redistribution and use in source and binary forms, wi... | 35.666667 | 79 | 0.585543 |
989f2a778ebd9f4c33b6b7953968a2e43b4d3111 | 1,682 | package by.stub.handlers.strategy.admin;
import by.stub.database.StubbedDataManager;
import by.stub.handlers.AdminPortalHandler;
import by.stub.utils.HandlerUtils;
import org.eclipse.jetty.http.HttpStatus;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOEx... | 45.459459 | 157 | 0.779429 |
31396210020e4fb1e25b6847038bf707f42cf6a1 | 612 | package io.quarkus.example.corestuff;
import java.io.IOException;
import java.nio.charset.Charset;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@WebServlet(name = "CoreReflectionTestEndp... | 30.6 | 95 | 0.78268 |
a47bad38eebc1939f387112f2b4b760554e152ca | 4,520 | package com.twu.biblioteca;
import org.junit.Test;
import java.io.ByteArrayOutputStream;
import java.io.PrintStream;
import java.util.Arrays;
import java.util.HashSet;
import static org.junit.Assert.assertEquals;
public class LibraryTest {
@Test
public void getAvailableBooksShouldReturnAllAvailableBooks() {... | 46.597938 | 102 | 0.64646 |
e09cf0765fc058995298151e28eecde44106cbcc | 440 | package com.ds.arrayList;
import java.util.List;
public class ArrayListUtil {
public static <T> boolean isEqual(List<T> list1, List<T> list2) {
if (list1 == list2) {
return true;
}
if (list1 == null || list2 == null) {
return false;
}
if (list1.size() != list2.size()) {
return false;
}
for (in... | 18.333333 | 66 | 0.577273 |
f835f057f338d4008e0045e4faa5e7e88b94c6db | 299 | /**
* The parent class of state
*/
public class ShopState implements IShopState {
public ShopState() {
}
public void shop() { }
public void generateBill() { }
public void pay() { }
protected void changeState(ShopContext c, ShopState s) {
c.changeState(s);
}
} | 23 | 60 | 0.615385 |
d956986c4f95d97a493769b4114e1d3aaaae62ac | 1,271 | /*
* 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
* distributed u... | 38.515152 | 99 | 0.785208 |
a0131f7c0e357370c52358b4091cf067cc369912 | 6,839 | /*
* 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 ... | 36.185185 | 95 | 0.710192 |
eebb062ba1e7b6c355c5af71e996ff95f3e3d717 | 506 | package com.job.designpattern.command;
import lombok.Getter;
import lombok.Setter;
import java.util.ArrayList;
import java.util.List;
public class CommandData {
private static CommandData commandData = new CommandData();
@Getter
@Setter
private List<String> bakeList = new ArrayList<>();
@Getter... | 18.071429 | 63 | 0.685771 |
3d38003d78130b93f237279b3e7b099fa4510893 | 2,563 | package net.myegotrip.egotrip;
import net.myegotrip.egotrip.utils.GuiUtils;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import android.util.Log;
import android.widget.EditText... | 27.55914 | 95 | 0.699181 |
7c0b21a13f4fdfa8a451c40325704b921335eadb | 10,644 | import Project.ConnectionProvider;
import java.sql.*;
import java.text.SimpleDateFormat;
import javax.swing.JOptionPane;
import javax.swing.JTextField;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in... | 49.050691 | 166 | 0.664694 |
43700c502845f429ef267a02ee70b5c46578a4fd | 1,034 | package logic;
import ModeloDAO.daoTipoProducto;
import beans.beanTipoProducto;
import java.util.List;
public class logicTipoProducto {
public String insertar(beanTipoProducto bTP) {
daoTipoProducto dTP = new daoTipoProducto();
if (dTP.add(bTP)) {
return "Agregado Correctamente";
... | 24.619048 | 52 | 0.595745 |
b070c532befb4b736a7094bd008fb26ff3b6db47 | 36,773 | package org.atlasapi.equiv;
import com.google.common.base.Function;
import com.google.common.base.Predicate;
import com.google.common.base.Supplier;
import com.google.common.base.Suppliers;
import com.google.common.collect.ImmutableSet;
import com.google.common.collect.Iterables;
import com.google.common.util.concurre... | 45.680745 | 165 | 0.643407 |
5e807d2e678231ea2ad55eb8a87e7ec16a3155b3 | 6,301 | /*
* Copyright (c) 2019 Mastercard
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, sof... | 31.039409 | 356 | 0.715283 |
d3a1704c7a69f9bc44fcc3afed011c2808f1a7b1 | 1,617 | package heads_up_display;
import javafx.beans.property.ReadOnlyDoubleProperty;
import javafx.scene.SubScene;
/**
* Public API for the HeadsUpDisplay feature
*
* @Author Dorian Barber
*/
public interface HeadsUpDisplay {
/**
* Returns a subscene object which represents the heads up display
*/
pu... | 27.87931 | 89 | 0.690167 |
c050b418874afa7d4a5917e67cf21bfebe2a5efe | 361 | package roth.lib.java.api.linode.data.request.create;
import roth.lib.java.api.linode.data.request.NodeBalancerConfigRequest;
@SuppressWarnings("serial")
public class CreateNodeBalancerConfigRequest extends NodeBalancerConfigRequest
{
public CreateNodeBalancerConfigRequest(Integer nodeBalancerId)
{
super();
s... | 22.5625 | 78 | 0.819945 |
59f2e0e58a015e75d7df52cc2e466d5f3f53eb2f | 982 | package com.puresoltechnologies.javafx.extensions.status;
import javafx.scene.canvas.Canvas;
import javafx.scene.canvas.GraphicsContext;
import javafx.scene.paint.Color;
public class BooleanLEDRenderer implements StatusRenderer<Boolean> {
@Override
public void render(StatusIndicator<Boolean> indicator, Boole... | 26.540541 | 76 | 0.712831 |
fc7da52f76ebc8f1f53254790a6b12c2cf56cf5f | 4,602 | import javax.swing.*;
import java.awt.*;
import java.sql.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.*;
public class AddDruzyna extends JFrame
{
Baza baza;
AdminFrame frame;
JTextField nazwa;
JTextField miasto;
JComboBox sta;
JComboBox lig;
... | 33.107914 | 219 | 0.50804 |
010cbff953881e69d17c9b0475a109167611092b | 3,829 | /**
* Copyright (c) 2012 Perforce Software. All rights reserved.
*/
package com.perforce.p4java.tests.dev.unit.features131;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.fail;
import java.net.URISyntaxException;
import java.util.List;
imp... | 29.682171 | 108 | 0.664142 |
a25e259ee0179e269196a1075d6dc16245852537 | 1,923 | package nl.topicus.spanner.converter.data;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public final class Columns
{
private List<String> columns = new ArrayList<>();
private List<Integer> columnTypes = new ArrayList<>();
private List<String> primaryKeyCols = new ArrayL... | 20.457447 | 65 | 0.657826 |
9b2d3b9b7d0cbc1167822e21f4d52fea475f637d | 12,856 | /*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*/
package com.microsoft.tooling.msservices.serviceexplorer.azure.rediscache;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.*;
i... | 41.205128 | 133 | 0.736232 |
b2d447b99d480f9fcfbb92f0a8b8b19a3b627918 | 2,655 | package com.bert.studyexoplayer.views;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.util.Log;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
/**
* @Author: bertking
... | 26.287129 | 97 | 0.575895 |
0ab6f7d061aad13af9e1002bb0341aef5cc92f22 | 95 | package coffee3D.core.ui.hud;
public enum TextAlignment {
LEFT,
CENTERED,
RIGHT
}
| 11.875 | 29 | 0.673684 |
afe044fd5fa2fb351b83088c94f8ddc27bb0db7e | 7,419 | /*
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")... | 29.795181 | 148 | 0.601159 |
821707dd11045aec4926d6df01d41f3ab54e4460 | 1,581 | package mcjty.modtut;
import mcjty.modtut.proxy.CommonProxy;
import net.minecraftforge.common.config.Configuration;
import org.apache.logging.log4j.Level;
public class Config {
private static final String CATEGORY_GENERAL = "general";
private static final String CATEGORY_DIMENSIONS = "dimensions";
publi... | 37.642857 | 148 | 0.683744 |
5974b9e1cc6ee629749744ed60ec4b331a0ab32c | 1,226 | package repository.impl;
import models.User;
import org.bson.types.ObjectId;
import org.h2.command.dml.Update;
import org.mongodb.morphia.query.Query;
import org.mongodb.morphia.query.UpdateOperations;
import org.mongodb.morphia.query.UpdateResults;
import repository.UserRepository;
import java.util.ArrayList;
import... | 26.652174 | 122 | 0.7031 |
fa76947aa04df282e7a17b5e598da7bb236d4027 | 7,032 | /*
* Copyright 2017-2018 Jan Buchinger
*
* 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... | 29.79661 | 91 | 0.676763 |
56ef235d0a5146439d13db7dfeaefc797f518f25 | 1,970 | package org.acme.ssm;
import java.net.URI;
import java.util.HashMap;
import java.util.Map;
import org.testcontainers.DockerClientFactory;
import org.testcontainers.containers.localstack.LocalStackContainer;
import org.testcontainers.containers.localstack.LocalStackContainer.EnabledService;
import org.testcontainers.c... | 37.884615 | 111 | 0.702538 |
83446722782f5ed3cc3f64cdeef42b02840b5599 | 545 | package com.porterhead.user;
import org.springframework.data.mongodb.repository.MongoRepository;
import java.util.List;
/**
* @version 1.0
* @author: Iain Porter
* @since 13/05/2013
*/
public interface VerificationTokenRepository extends MongoRepository<VerificationToken, Long> {
VerificationToken findById(... | 24.772727 | 101 | 0.787156 |
58f3d8ff9f78876a3b6ab251749ff20663273fb9 | 1,498 | import courtscheduler.domain.Match;
import courtscheduler.domain.Team;
import courtscheduler.persistence.CourtScheduleInfo;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import static org.junit.Asser... | 23.40625 | 84 | 0.696262 |
b3fa6f4cb918ee2d85f233a19346d6d17f80b7eb | 3,983 | package org.codehaus.mojo.animal_sniffer.maven;
/*
* The MIT License
*
* Copyright (c) 2008 Kohsuke Kawaguchi and codehaus.org.
*
* 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 witho... | 46.313953 | 437 | 0.755963 |
66954b1a866ff8d7db1e11ae7ded2f54169fe9dc | 11,891 | package cmu.xprize.comp_debug;
import android.content.Context;
import android.database.DataSetObserver;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.GridView;
import java.util.HashMap;
import java.util.Iterator;
import java.... | 28.044811 | 116 | 0.605164 |
10eba371b312ad0e9c30c0ce7889ba25599cf5b0 | 1,819 | /*
* Copyright (C) 2017-2021 Frode Randers
* 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 require... | 24.253333 | 94 | 0.616273 |
608c0693c495930818970f54b81dfeafac92ce1c | 1,191 | /*
* Copyright (c) 2019- 2019 threefish(https://gitee.com/threefish https://github.com/threefish) All Rights Reserved.
* 本项目完全开源,商用完全免费。但请勿侵犯作者合法权益,如申请软著等。
* 最后修改时间:2019/10/07 18:27:07
* 源 码 地 址:https://gitee.com/threefish/NutzFw
*/
package com.nutzfw.core.plugin.view;
import org.beetl.ext.nutz.LazyResponseWrapp... | 29.04878 | 116 | 0.684299 |
a7304e1edc35825ec3a2e17a1f576b00e6288297 | 1,027 | package said.ahmad.javafx.tracker.system.tracker;
import lombok.Getter;
import lombok.Setter;
import said.ahmad.javafx.tracker.datatype.DirectoryViewOptions;
import said.ahmad.javafx.tracker.system.tracker.FileTracker.CommandOption;
@Getter @Setter
public class FileTrackerDirectoryOptions extends FileTrackerHolder {
... | 27.026316 | 87 | 0.759494 |
e9088296128f049ca0e8de1a771da8f3bc1ca320 | 1,485 | package org.grpcmock.definitions.verification;
import java.util.Objects;
import java.util.function.IntPredicate;
import javax.annotation.Nonnull;
/**
* @author Fadelis
*/
public class CountMatcher implements IntPredicate {
private final String description;
private final IntPredicate condition;
public CountM... | 24.75 | 98 | 0.697643 |
6c78a757e049d62ebb3cc1cf0c75b4f9ebf646f2 | 3,106 | package com.github.roundrop.logging.logback.customizable;
import ch.qos.logback.classic.Logger;
import ch.qos.logback.classic.LoggerContext;
import ch.qos.logback.classic.encoder.PatternLayoutEncoder;
import ch.qos.logback.classic.spi.ILoggingEvent;
import ch.qos.logback.classic.spi.LoggingEvent;
import ch.qos.logback... | 33.76087 | 104 | 0.612363 |
d698b296e95ca98161eeb73ab1096373f9829964 | 106 | package com.codeyn.zk.fetcher;
public interface DataConverter<T> {
public T convert(byte[] data);
}
| 15.142857 | 35 | 0.716981 |
c4a42d710fa590b6d2f6484be1af6490c766b91d | 7,541 | ///*
// * 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... | 37.894472 | 113 | 0.591301 |
8098347a1ede0b8da9c4a114d910795b88857335 | 1,216 | package com.example.android.listview;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
... | 28.952381 | 94 | 0.739309 |
db442b834193230f776bf7a23424557f381821d5 | 1,658 | package programming;
import responsible.Yardmaster;
import programming.Developer;
import programming.Proceedings;
import java.util.ArrayDeque;
public class SptTimer extends programming.Developer {
private java.util.ArrayDeque<Proceedings> cookCue = null;
static double length = 0.018489320693524047;
public SptT... | 27.180328 | 88 | 0.695416 |
6a4e2ae3bdc2580a655d5a019ce99fd71d5cb63b | 1,995 | package com.barreto.kaligraphy.activities;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import com.barreto.kaligraphy.R;
import com.barreto.kaligraphy.model.UserManager;
public class StartActivity ext... | 30.692308 | 90 | 0.643609 |
8376ab81d506e958924d1532ea7270d3dc906d8c | 2,513 | package Litecart;
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ui.ExpectedCo... | 38.661538 | 141 | 0.645444 |
fb87c3b438172fcc2181e146ca414470ef6b530c | 4,744 | import java.io.*;
import java.util.Objects;
/* args hold the command line arguments
Example:-
sim bimodal 6 gcc_trace.txt
args[0] = "bimodal"
args[1] = "6"
... and so on
*/
public class sim {
public static void main(String[] args) {
bp_params params = new bp_params(); // ... | 42.357143 | 160 | 0.475337 |
05f5de9c4e65db866fa860a67c7195fbae2dda33 | 2,037 | package com.nindybun.burnergun.common.items.upgrades;
import com.nindybun.burnergun.common.BurnerGun;
import net.minecraft.ChatFormatting;
import net.minecraft.network.chat.TextComponent;
import net.minecraft.network.chat.TranslatableComponent;
import net.minecraft.world.item.Item;
import net.minecraft.world.item.Item... | 47.372093 | 174 | 0.69514 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.