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 |
|---|---|---|---|---|---|
263b4a255a04b47ad4fb914e3d3b2f9cba7cd543 | 2,743 |
//----------------------------------------------------
// The following code was generated by Java(tm) CUP v0.9d
// Fri May 07 07:55:04 MSD 2010
//----------------------------------------------------
package jasmin;
/** JavaCup generated class containing symbol constants. */
public class sym {
/* terminal... | 31.895349 | 60 | 0.643821 |
297cb9c6e72e0acc3a4cb057598270eb2fa5a396 | 3,434 | package net.sourceforge.kolmafia.textui.command;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.TreeSet;
import net.sourceforge.kolmafia.AdventureResult;
import net.sourceforge.kolmafia.KoLConstants;
import net.sou... | 34.34 | 107 | 0.672685 |
802170aa86f3f1ff3e917315ef7b366ca0af158c | 385 | package VC.Checker;
import VC.ASTs.Decl;
public class IdEntry
{
protected String id;
protected Decl attr;
protected int level;
protected IdEntry previousEntry;
IdEntry(String paramString, Decl paramDecl, int paramInt, IdEntry paramIdEntry)
{
this.id = paramString;
this.attr = paramDecl;
thi... | 19.25 | 81 | 0.719481 |
0089e87789bc228c659b3f15cdcb1fd93adcbadc | 734 | package example1;
import net.sf.jColtrane.annotations.methods.EndDocument;
import net.sf.jColtrane.annotations.methods.EndElement;
import net.sf.jColtrane.annotations.methods.StartDocument;
import net.sf.jColtrane.annotations.methods.StartElement;
public class HelloWorld {
@StartDocument
public void executeInSta... | 22.242424 | 64 | 0.753406 |
161115f2faf175588bcc75ae2dc2bc696a09cdc9 | 3,120 | package org.simpleframework.transport;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import junit.framework.TestCase;
public class TransportCursorTest extends TestCase {
private static final String ALPHABET = "abcdefghijklmnopqrstuvwxyz";
private static final ... | 37.142857 | 71 | 0.633654 |
4cbf4bd83ee1f2cccdf27ba75b8a1afedf85c4a0 | 163 | package me.ifydev.factionify.spigot.events.custom;
/**
* @author Innectic
* @since 07/28/2018
*/
public class FactionGlobalRuleChange {
// TODO
}
| 16.3 | 51 | 0.662577 |
dca958f301036a64182304b79a1b5d38c413f695 | 1,244 | package com.yoti.api.client.shareurl;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.hasItems;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.hasSize;
import com.yoti.api.client.shareurl.extension.Extension;
import com.yoti.api.client... | 32.736842 | 82 | 0.722669 |
6dbf00a7f368560348f878d9b5bbcbe79aa2d552 | 3,245 | package com.dianping.cat.status.datasource;
import com.dianping.cat.status.AbstractCollector;
import javax.management.MBeanServer;
import javax.management.ObjectName;
import java.lang.management.ManagementFactory;
import java.util.HashMap;
import java.util.Map;
public abstract class DataSourceCollector extends Abstr... | 30.046296 | 100 | 0.605855 |
2d52c3f9dfde42310062bd735677da35499e1b1d | 436 | package com.west2.fzuTimeMachine.service;
/**
* @description: redis 服务接口
* @author: hlx 2018-10-27
**/
public interface RedisService {
/**
* 非阻塞取锁
*/
boolean tryLock(String key, String value);
/**
* 释放锁
*/
void unLock(String key, String value);
/**
... | 16.769231 | 47 | 0.536697 |
bfe9106f39716fe250403da32388e745d44ff6f3 | 10,961 | /*******************************************************************************
* Copyright 2013 Geoscience Australia
*
* 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://ww... | 22.693582 | 107 | 0.719916 |
5de7087743f8171e3f7aaa4b8d066449b20c5c5f | 18,247 | package com.moises.moneytextinput.textInput;
import android.content.Context;
import android.support.annotation.StringDef;
import android.text.InputType;
import android.util.AttributeSet;
import android.view.Gravity;
import android.widget.EditText;
import com.moises.moneytextinput.Constants;
import com.moises.moneytex... | 45.054321 | 148 | 0.614567 |
9c189b5f599709eb713f768eda3d7d6674653507 | 1,164 | package io.github.glytching.tranquil.cache;
import java.util.LinkedHashMap;
import java.util.Map;
/** A LRU implementation of {@link Cache}. */
public class LRUCache implements Cache {
private static final boolean SORT_BY_ACCESS = true;
private static final float LOAD_FACTOR = 0.75F;
private final Map<String,... | 23.755102 | 78 | 0.674399 |
08d030262dd2da8e68d4cebca212578b86d6e8f2 | 2,926 | package org.nearbyshops.enduserappnew.Model.ModelStatusCodes;
// :: staff functions
// confirmOrder()
// setOrderPacked()
// handoverToDelivery()
// acceptReturn()
// unpackOrder()
// paymentReceived()
// delivery guy functions
// AcceptPackage() | DeclinePackage()
// Return() | Deliver()
public class Order... | 25.666667 | 115 | 0.627478 |
5962e34b9e59eaa8027c7bc2ef87386ea3dbd041 | 1,938 | /*
* Copyright 2010-2020 Australian Signals Directorate
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 30.28125 | 78 | 0.695046 |
dbfa4c66e7c767063eaf9c127dd0bf76b0e63d6f | 465 | package modele;
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface InterfaceMorpion extends Remote {
public void initGrille() throws RemoteException;
public void PlacerX(int c) throws RemoteException;
public void PlacerO(int c) throws RemoteException;
public int testRanc(int a, i... | 31 | 66 | 0.782796 |
8c4757f39d2039a38df8f992303ea70089b80b6f | 5,507 | /*
* 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 ... | 45.891667 | 127 | 0.739423 |
f40b54620ce14abd9c590e21af10d55f329c0699 | 247 | package com.example.fmodule.message.contacts;
import com.example.fmodule.other.ContactData;
import java.util.ArrayList;
import easynet.network.AResponse;
public class PContacts extends AResponse {
public ArrayList<ContactData> contacts;
}
| 20.583333 | 45 | 0.809717 |
3289aaa0980f3a16076cad7460c581453b3aa740 | 496 | package Graph;
public class Test {
public static void main(String[] args) {
Graph g = new Graph(7, true);
g.addEdge(1, 2);
g.addEdge(1, 3);
g.addEdge(2, 0);
g.addEdge(2, 1);
g.addEdge(2, 5);
g.addEdge(2, 4);
g.addEdge(4, 1);
g.addEdge(0, 1);
g.addEdge(2, 5);
g.addEdge(2, 6);
g.addEdge(2, 1);... | 17.714286 | 41 | 0.582661 |
5e12384ba95a0e0db470d8fc7b12899431763f8e | 611 | package edu.scripps.yates.utilities.index;
import java.io.File;
public class FileRecordReservation {
private long currentLastPosition;
public FileRecordReservation(File file) {
this.currentLastPosition = file.length();
}
/**
* It returns the position in which the record should be written in the file
*
... | 21.068966 | 77 | 0.751227 |
37cac3374c82d5d5b832ecdfe1415dbecd51f9e1 | 3,657 | /*
* Copyright 2019 Datadog
*
* 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 w... | 24.709459 | 91 | 0.622915 |
6dbb5b8466fd449cac9df909d634f28cac8f9c7a | 142 | package edu.prahlad.springbasics.movierecommendersystem.lesson10;
public interface Filter {
String[] getRecommendations(String movie);
}
| 23.666667 | 65 | 0.809859 |
36495dcb91383eb6d01330fd74e2824e8b493913 | 1,912 | package net.labymod.serverapi.common.sticker;
import com.google.gson.JsonArray;
import net.labymod.serverapi.api.LabyService;
import net.labymod.serverapi.api.payload.PayloadCommunicator;
import net.labymod.serverapi.api.player.LabyModPlayer;
import net.labymod.serverapi.api.player.LabyModPlayerService;
import net.lab... | 29.415385 | 97 | 0.754184 |
3409cec01b857f29d73ec3ade91a40b24bd0c9ee | 5,506 | package model.JDBC;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import model.Copa;
import model.Jogador;
publi... | 41.089552 | 111 | 0.499818 |
4113ae213cf8690b9de250a3b51c763155991f10 | 1,523 | package com.egoveris.edt.ws.controller;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import springfox.documentation.bu... | 35.418605 | 108 | 0.624425 |
5de963ced00308ed51e90fceea545e30f9d887ed | 383 | package com.szss;
import akka.actor.UntypedActor;
/**
* Created by zcg on 16/8/8.
*/
public class TestActor1 extends UntypedActor {
@Override
public void onReceive(Object message) throws Exception {
if (message instanceof String){
System.out.println("TestActor1 message is "+message);
... | 21.277778 | 65 | 0.629243 |
7fa53f3bcda9f5c9b7343628806dc6cf72677f36 | 17,697 | /*
* 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 ... | 40.682759 | 112 | 0.692151 |
036730291a052c455a3cf3e675779787cc8d9610 | 981 | package com.com.demo.heatmap.repo;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import com.com.demo.heatmap.entity.PageEvent;
@Repository
public interface PageEventReposito... | 42.652174 | 188 | 0.812436 |
6f13b5e4d957e847ba8487394c998036354e9668 | 4,479 | package edu.umass.cs.jfoley.coop.experiments.generic;
import ciir.jfoley.chai.collections.Pair;
import ciir.jfoley.chai.io.IO;
import ciir.jfoley.chai.io.LinesIterable;
import ciir.jfoley.chai.time.Debouncer;
import org.lemurproject.galago.core.parse.TagTokenizer;
import org.lemurproject.galago.core.retrieval.LocalRet... | 36.414634 | 113 | 0.623577 |
e15961f062a6bd0d5d11b9c2fa8ef4a3b666be7e | 252 | package com.learning.java.Bot;
import java.util.Scanner;
/**
* Created by Aditya Rajput on 4/23/2017.
*/
public interface Element {
default void nonUsed(){}
static void voiceEcho(){
System.out.println("!");
}
}
| 15.75 | 42 | 0.599206 |
c07cbcc55d5c3644f65ac10d3e508ef9f77e030c | 1,700 | package com.scorelab.kute.kute.PrivateVehicles.App.DataModels;
import java.io.Serializable;
import java.util.ArrayList;
/**
* Created by nipunarora on 10/06/17.
*/
public class Person implements Serializable {
/***************** Defing Properties ***********/
//Add provision for vehicle
//Make these va... | 31.481481 | 163 | 0.648824 |
67e05bf0e4b9a15c63465637769ef28cffc3bfb4 | 3,497 | package org.int4.dirk.core;
import java.util.List;
import java.util.Set;
import org.int4.dirk.annotations.Opt;
import org.int4.dirk.api.Injector;
import org.int4.dirk.api.TypeLiteral;
import org.int4.dirk.api.instantiation.UnsatisfiedResolutionException;
import org.junit.jupiter.api.Test;
import static org.assertj.co... | 38.855556 | 142 | 0.739777 |
89704ffacee2c6e781baf460ffe9e94f02a90d8d | 152 | package io.cattle.platform.core.addon;
import io.github.ibuildthecloud.gdapi.annotation.Type;
@Type(list = false)
public class BaseMachineConfig {
}
| 16.888889 | 54 | 0.789474 |
096031d990042dbfa229eef1cf9610f81973e627 | 405 | package com.paito.biz.auction.dao;
import com.paito.biz.auction.dto.AuctionDO;
import java.util.List;
/**
* Created by patrick on 16/2/4.
*/
public interface IAuctionDAO {
public List<AuctionDO> findAuctionList(Long userId, Integer status);
void saveAuction(AuctionDO auctionDO);
void auditAuction(Au... | 19.285714 | 72 | 0.748148 |
694aafde1793194a8375c39bc96d536c02ab2a91 | 1,559 | package com.treyzania.mc.zaniportals;
import java.util.List;
import org.bukkit.configuration.file.FileConfiguration;
import com.treyzania.mc.zaniportals.adapters.PortalConfig;
public class ZaniPortalsBukkitConfig implements PortalConfig {
public List<Integer> signPlaceBlockIds;
public List<Integer> portalStruct... | 25.557377 | 88 | 0.754971 |
c7eb1fcebd417ea62f16274836dae0dfafe4b436 | 1,339 | package com.alipay.api.domain;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
/**
* 口碑视图规则模型
*
* @author auto create
* @since 1.0, 2020-03-31 22:04:35
*/
public class KbdishCommRuleShowInfo extends AlipayObject {
private static final long serialVersionUID = 25... | 17.166667 | 68 | 0.707991 |
8b21c8e72b8e9250a00807fcea3cf6193f805e43 | 1,067 | /*
* Copyright (C) 2007 XStream Committers.
* All rights reserved.
*
* The software in this package is published under the terms of the BSD
* style license a copy of which has been included with this distribution in
* the LICENSE.txt file.
*
* Created on 07. October 2007 by Guilherme Silveira
*/
package com.t... | 27.358974 | 82 | 0.710403 |
d3d19af5e5366fe435c6821058b71f3a85564f63 | 27,616 | /*
* Copyright 2016 Netflix, 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... | 37.018767 | 100 | 0.619894 |
65f983cc14d448e0b075c78031d2bb0370ea63a3 | 7,643 | package com.example.misha.myapplication.module.schedule.edit;
import android.graphics.Color;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.vi... | 35.882629 | 154 | 0.704566 |
18aed94feabb26a56ab00071c5eeb293140f8418 | 9,376 | /*
* Copyright 1999-2020 Alibaba Group Holding Ltd.
*
* 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... | 44.647619 | 119 | 0.685687 |
b468ce571279c9ffc582206aeb1fadd4544b41de | 2,513 | package com.seantcanavan.backoff;
import com.seantcanavan.backoff.exception.AttemptsExceededException;
import com.seantcanavan.backoff.exception.UnexpectedExceptionException;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions... | 47.415094 | 122 | 0.760844 |
80e574ca7532bab74faa998389c92e5e13c524ee | 3,699 | package com.young.db.dao;
import com.young.db.entity.YoungGoodsSpecification;
import com.young.db.entity.YoungGoodsSpecificationExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface YoungGoodsSpecificationMapper {
long countByExample(YoungGoodsSpecificationExample example);
... | 39.774194 | 183 | 0.751554 |
66c6544163bb6208e0f18a4238fe6313e4b59876 | 2,112 | package com.example.demo.security;
import com.auth0.jwt.JWT;
import com.auth0.jwt.algorithms.Algorithm;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.context.Secu... | 37.052632 | 110 | 0.789773 |
d390055cf606232714b7280d98617497bcbcd6ec | 324 | import io.github.kits.Strings;
import io.github.kits.log.Logger;
import junit.framework.TestCase;
/**
* @author whimthen
* @version 1.0.0
* @since 1.0.0
*/
public class StringsTest extends TestCase {
public void testIndentRight() {
String source = "haha";
Logger.info(Strings.indentRight(source, 3) + "=");
}... | 18 | 52 | 0.694444 |
b1dc65865064e45f5e4d306f6bb98c2a6e2aa336 | 4,452 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 32.977778 | 109 | 0.676325 |
4f52c103bc146871181dfeda4df55dd3d976e5a7 | 1,905 | package org.drools.ruleflow.core;
/*
* Copyright 2005 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 req... | 28.432836 | 75 | 0.667717 |
811a95495a5d273e380b19ee346872eb95c026b0 | 1,019 | package com.mixpanel.mixpanelapi;
import org.json.JSONObject;
/**
* Thrown when the library detects malformed or invalid Mixpanel messages.
*
* Mixpanel messages are represented as JSONObjects, but not all JSONObjects represent valid Mixpanel messages.
* MixpanelMessageExceptions are thrown when a JSONObject is p... | 30.878788 | 112 | 0.73896 |
2005a302f9c8e641bd1677071e5e87fef0d6053f | 819 | package leetcode.lc089_gray_code;
import java.util.List;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
public final class LC089GrayCodeTests {
private int[] freeze(final List<Integer> list) {
int[] result = new int[list.size()];
for (int i =... | 27.3 | 82 | 0.610501 |
bcb4174981845f07635385b043d67fc536167890 | 12,338 | /*
* Copyright © 2021 the original author or authors (photowey@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
*
* Unles... | 39.168254 | 148 | 0.579592 |
6f30c6553db6e9078412a35be9315bef6d597cad | 4,063 | package com.telran.cheaptrip.pages;
import com.google.common.io.Files;
import org.openqa.selenium.OutputType;
import org.openqa.selenium.TakesScreenshot;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import java.io.File;
import java.io.IOExcept... | 28.815603 | 109 | 0.666256 |
d25e9cd4dde6ff03a8ce6b70a5977f3438c14963 | 2,471 | package com.adminportal.controller;
import java.security.Principal;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web... | 28.732558 | 106 | 0.785107 |
1495d2063cec203a8aa915dfb2811b82600f1492 | 180 | package timus;
public class SimpleExpression_2066 {
public static int findMinOutcome(int a, int b, int c){
return a - ((b * c) > (b + c) ? (b * c) : (b + c));
}
}
| 22.5 | 59 | 0.555556 |
637cefae470ae0a9a96430973831a1afb896906d | 5,083 | /**
* @Company JBINFO
* @Title: ReceiveSuiteTicketTest.java
* @Package org.bana.wechat.cp.callback.result.ticket
* @author Liu Wenjie
* @date 2018年1月26日 上午10:36:39
* @version V1.0
*/
package org.bana.springboot.wechat.cp.callback.listner;
import java.io.IOException;
import java.util.Random;
import... | 39.403101 | 383 | 0.760181 |
ec6ae1b0b0ef503fea1f8b9b98665fd3d24ef67c | 390 | package com.example.omdbdemo.movies.dataproviders.db.repository;
import com.example.omdbdemo.movies.dataproviders.db.entity.MovieEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface MovieEntityRepository extends JpaReposit... | 35.454545 | 83 | 0.846154 |
f3de3b427f0e1fcb639e08184f9b6f06b9e1391e | 1,487 |
import java.util.*;
public class Main {
static Scanner input = new Scanner(System.in);
public static void main(String[] args) {
int tt = input.nextInt();
while (tt-- > 0) {
int n = input.nextInt(), k = input.nextInt();
// int[] rem = new int[k];
HashMap<Int... | 33.795455 | 80 | 0.39072 |
ea4e356f54bfda28f83291ef552231fdffe40f79 | 1,228 | package br.com.zup.desafios.proposta.config.security;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.builders.WebSecurity;
import org.springframework.security.config.... | 40.933333 | 124 | 0.733713 |
8472676f20e235eaa87f475d5965609abd48e7f8 | 3,425 | /**
* CollectionAdapterDiffUtilCallback.java
* Implements a DiffUtil Callback
* A CollectionAdapterDiffUtilCallback is a DiffUtil.Callback that compares two lists of stations
*
* This file is part of
* TRANSISTOR - Radio App for Android
*
* Copyright (c) 2015-20 - Y20K.org
* Licensed under the MIT-License
* h... | 34.59596 | 175 | 0.709781 |
73990d93984d4c19d740f11a79d7cb166773543e | 645 | package com.company.registers;
public class StampedValue <T>{
public long stamp;
public T value;
// initial value with zero timestamp
public StampedValue(T init) {
this.stamp = 0;
this.value = init;
}
// later values with timestamp provided
public StampedValue(long stamp, T ... | 24.807692 | 68 | 0.592248 |
a877c6376d6b5ccc580026cef89c76bda625171f | 2,030 | package com.kylinolap.cube.dataGen;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.core.JsonParseException;
import c... | 31.71875 | 220 | 0.689163 |
6d2f74acc9aafe00593fc1019c0eea4ce195e734 | 1,837 | package ru.stqa.ptf.addressbook.tests;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import ru.stqa.ptf.addressbook.model.ContactData;
import ru.stqa.ptf.addressbook.model.Contacts;
import ru.stqa.ptf.addressbook.model.GroupData;
import ru.stqa.ptf.addressbook.model.Groups;
import st... | 32.22807 | 139 | 0.650517 |
5f2047012899e69594521b457d2a5745701ab782 | 454 | package pl.mkrystek.mkbot.task.impl;
import pl.mkrystek.mkbot.message.SkypeMessage;
import pl.mkrystek.mkbot.task.ReplyTask;
public class HelloTask extends ReplyTask {
private static final String TASK_NAME = "hello";
public HelloTask() {
super(TASK_NAME);
}
@Override
public String perfo... | 23.894737 | 87 | 0.711454 |
53e73a5b5bd9b38c8d0580e4a96d9bb65b4e7803 | 341 | package com.birdwind.autoTransaction.base.view.abstracts;
import com.birdwind.autoTransaction.base.view.BaseListItem;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public abstract class AbstractListItem implements BaseListItem {
private Serializable text;
private S... | 21.3125 | 64 | 0.815249 |
4eba23aff4424977bd9841969edb01c6e1aa109b | 3,713 | package org.apache.ofbiz.webapp.visit;
import lombok.experimental.FieldNameConstants;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import java.sql.Timestamp;
import org.apache.ofbiz.entity.GenericValue;
import java.util.List;
import java.util.ArrayList;
/**
* Server Hit
*/
@FieldNameCons... | 20.977401 | 80 | 0.722866 |
7e663f39dd0d8145c2bdb01831052528e63f32b8 | 1,021 | package me.bytebeats.algo.designs;
public class VersionControlImpl extends VersionControl {
@Override
boolean isBadVersion(int version) {
return false;
}
// public int firstBadVersion(int n) {
// int low = 1;
// int high = n;
// int mid = 0;
// while (low <= high) {
... | 24.309524 | 56 | 0.394711 |
18912b416396c6de2ab7275df67478b209bd4d05 | 763 | import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
public class CCISMockMain extends Application {
@Override
public void start(Stage stage) throws Exception {
Parent root = FXMLLoader.load(getClass... | 23.121212 | 81 | 0.623853 |
326bf4e7132dccec21d7d360cf3e481510f5537d | 2,753 | package application.crypto;
import application.card.JavaCardHelper;
import application.log.LogHelper;
import application.log.LogLevel;
import common.ErrorResult;
import common.Result;
import common.SuccessResult;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.math.Bi... | 31.643678 | 116 | 0.651653 |
3056fc24afada25a7a25dd1f64c7c9698da1ee61 | 225 | package com.javadude.observer;
import java.util.Calendar;
@Observer // not needed, but can be nice for marking your intent
public interface SunListener {
void sunRose(Calendar calendar);
void sunSet(Calendar calendar);
}
| 22.5 | 64 | 0.782222 |
403f62f492f4792fd81f1cf64e3b15fdd02e4ffc | 417 | package com.mochen.web.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mochen.web.entity.xdo.ComplexWebStudentDO;
import org.apache.ibatis.annotations.Mapper;
import java.util.Set;
/**
* <p>
* 学生 Mapper 接口
* </p>
*
* @author 姚广举
* @since 2022-03-10
*/
@Mapper
public interface Comple... | 18.954545 | 82 | 0.745803 |
ba9eb4e987c0b3c082e92dacb323f797cb74a931 | 1,560 | /*
* ModeShape (http://www.modeshape.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 o... | 28.363636 | 75 | 0.702564 |
4a4e195faa403f26ce9e9fe354badb629b9d4da0 | 5,502 | /*
* Copyright 2015 Allette Systems (Australia)
* http://www.allette.com.au
*
* 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... | 30.065574 | 99 | 0.657034 |
5d2d4c6efe0fb0e1189022fdf775adb8bc6a0119 | 12,871 | package jdbi_modules.internal;
import jdbi_modules.Module;
import jdbi_modules.ModuleMeta;
import jdbi_modules.SqlGenerator;
import jdbi_modules.Store;
import org.jdbi.v3.core.Handle;
import org.jdbi.v3.core.mapper.ColumnMapper;
import org.jdbi.v3.core.statement.Query;
import org.jdbi.v3.core.statement.StatementContex... | 48.569811 | 181 | 0.622329 |
93d9a77314a3f67151f803d11bb24cf012877456 | 704 | package cc.mrbird.febs.app.entity;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
/**
* Entity
*
* @author 冷酷的苹果
* @date 2020-05... | 18.051282 | 54 | 0.676136 |
0d8d5b0293f996958f1ba4443815765567c0b45e | 9,395 | /*
* Copyright 2015 - 2019 TU Dortmund
*
* 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... | 43.09633 | 126 | 0.688451 |
0249c06d9c4d0abbd32970326e763cf6d5ce4a6d | 251 | package uk.nhs.adaptors.gp2gp.ehr.model;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
@Builder
public class SendCommonTemplateParameters {
private final String fromAsid;
private final String document;
}
| 17.928571 | 43 | 0.788845 |
74e837eab0503ec88f8c4786ebd97a12378e14c3 | 12,584 | /*
* 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 ... | 37.676647 | 159 | 0.654641 |
c2d61d5c66ca6edf06ae23e55765ffc5111ce9a2 | 4,792 | /*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | 46.076923 | 118 | 0.759808 |
80d159ab641402c87c9c0fa9b0f46b8d9722f7f1 | 4,875 | package com.yy.service.rush.realtime;
import com.yy.dao.repository.TrainOrderRepository;
import com.yy.dao.repository.TrainTicketRepository;
import com.yy.integration.rail.OrderCenter;
import com.yy.integration.rail.OrderSubmitter;
import com.yy.dao.entity.TrainOrder;
import com.yy.dao.entity.WxAccount;
import com.yy... | 33.390411 | 140 | 0.66441 |
917818f2238acde36f6ca4c5c442b302bb6e2706 | 538 | package org.gitrust.fileindexer.indexer;
import lombok.Builder;
import lombok.Getter;
import lombok.ToString;
@Builder
@Getter
@ToString
public class FileDocument {
public static final String FIELD_SIZE = "fileSize";
public static final String FIELD_NAME = "fileName";
public static final String FIELD_PATH... | 24.454545 | 60 | 0.750929 |
033d695cab04a96ca94de75e4aa8ca3fba1e8029 | 1,668 | package com.honeyedoak.ppksecuredws;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.honeyedoak.ppksecuredws.model.SecuredJson;
import com.honeyedoak.ppksecuredws.model.UnsecuredJson;
import com.honeyedoak.cryptoutils.AsymmetricCryptoService;
im... | 42.769231 | 229 | 0.827338 |
b0358def4b5f5a726d9543296ca439a61cd0d551 | 6,033 | package com.opcon.ui.views;
import android.content.Context;
import android.graphics.Color;
import android.support.annotation.ColorRes;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.AttributeSet;
impor... | 30.469697 | 161 | 0.685231 |
2f2de6bd295b27745f2c17f4d84895be637b4caf | 22,386 | package mod.goony.entity;
import java.util.List;
import javax.annotation.Nullable;
import com.google.common.base.Predicate;
import com.google.common.base.Predicates;
import mod.goony.entity.EntityVicuna.EntityAIPanic;
import mod.goony.sounds.SoundEvents2;
import net.minecraft.block.Block;
import net.minecraft.block... | 32.256484 | 286 | 0.620298 |
6901feface34145a83dfdefaa071234bb76d799a | 984 | package org.mirko.cache.example.service;
import org.mirko.cache.example.dao.NotFoundException;
import org.mirko.cache.example.model.User;
import java.util.List;
/**
* Service layer for CRUD operations around a User
*/
public interface UserServices {
/**
* Save a user if the id is specified and exist... | 21.391304 | 77 | 0.651423 |
5df3ce5fbc694184cc571876536d19b4a474b2a9 | 19,807 | 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... | 20.783841 | 814 | 0.812692 |
184f7443f45a6bf9f200d011b395bafb9f04a294 | 3,174 | package com.horowitz.mickey;
import java.awt.AWTException;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.Rectangle;
import java.awt.event.ActionEvent;
import java.io.IOException;
import javax.swing.AbstractAction;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JP... | 27.128205 | 96 | 0.665406 |
3df761d7121edd81b865cd57182c17087352428d | 440 | package io.github.thanktoken.core.api.validate;
import io.github.thanktoken.core.api.validate.failure.ThankValidationFailure;
/**
* Interface for an object {@link #add(ThankValidationFailure) collecting} {@link ThankValidationFailure}s.
*
* @since 1.0.0
*/
public interface ThankValidationFailureReceiver {
/**
... | 24.444444 | 107 | 0.756818 |
5270d8687563edfa0bdd414023ee2669a9b738d2 | 593 | package com.googlecode.objectify.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* <p>When placed on an entity field of type Key, the key will be used as the parent
* ancestor fo... | 29.65 | 87 | 0.738617 |
55d385ff69bf74fa12ecd6ac9da22a0cf07fde2b | 594 | package com.zhazhapan.demo.netty.codec.jackson;
import io.netty.channel.Channel;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelPipeline;
/**
* @author pantao
* @since 2018/6/5
*/
public class JacksonClientHandlerInitializer extends ChannelInitializer<Channel> {
@Override
prote... | 28.285714 | 82 | 0.740741 |
af0dbd2c23d429b617f316788f06420feb0951b4 | 9,034 | /******************************************************************************
* Copyright 2009-2018 Exactpro (Exactpro Systems Limited)
*
* 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
... | 47.547368 | 120 | 0.67091 |
7a1682e757fa0b9122c3a9ba0397f26860dfd16d | 495 | package com.example.android.support.wearable.notifications;
import android.support.v4.app.NotificationCompat;
/**
* Base class for notification priority presets.
*/
public abstract class PriorityPreset extends NamedPreset {
public PriorityPreset(int nameResId) {
super(nameResId);
}
/** Apply th... | 29.117647 | 66 | 0.753535 |
9342af017c85d1018352be389912644bc859c172 | 14,518 | /*
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 36.385965 | 104 | 0.693553 |
256a7b8268113c6cf75b6676303c2cd96df95893 | 427 | package hazelnut.core;
import org.jetbrains.annotations.NotNull;
public interface MessageChannel extends AutoCloseable {
@NotNull String channelId();
@Override
void close() throws Exception;
interface Inbound extends MessageChannel {}
interface Outbound extends MessageChannel {
void s... | 20.333333 | 61 | 0.730679 |
801f5b1100ce009e346ebdfb585f4e5557595003 | 13,038 | package org.deeplearning4j.examples.recurrent.character.melodl4j;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import javax.sound.midi.InvalidMidiDataException;
import javax.sound.midi.MidiUnavailableException;
import javax.sound.midi.Seq... | 29.037862 | 147 | 0.540344 |
9c2beec0acddcbb3ab7d2cbfd117bfec500fd288 | 2,228 | package ftn.ktsnvt.culturalofferings.dto;
import java.util.Date;
import java.util.List;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
public class CommentDTO {
private Long id;
@NotBlank(message = "Comment text cannot... | 25.609195 | 395 | 0.655296 |
6f2b48388a8886acb99345b6dba8ae6019a066a0 | 3,689 | package net.silentchaos512.funores.lib;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.entity.EntityType;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.MobEntity;
import net.minecraft.entity.monster.EndermiteEntity;
import net.minecraft.item.Item;
... | 32.359649 | 114 | 0.714015 |
aeaa02085b79f4afce10beb88266748ebc4731ea | 5,561 | /*
* Copyright 2018 TWO SIGMA OPEN SOURCE, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 33.299401 | 108 | 0.664269 |
70a5efa977f83cdae5042aa3d8c50e9a13b5308a | 966 | package com.rideaustin;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
/**
* Created by Sergey Petrov on 16/05/2017.
*/
public abstract class RequestMatcher {
public abstract Result match(@NonNull RequestStats requestStats);
protected static Result success() {
... | 20.553191 | 69 | 0.627329 |
971e2b8aee58dbbfb54de89e9f219c29e8ac0edf | 847 | package com.moralok.concurrency.ch7.sec4;
import java.util.concurrent.atomic.AtomicIntegerFieldUpdater;
/**
* @author moralok
* @since 2021/3/7
*/
public class AtomicIntegerFieldUpdaterTest {
private static AtomicIntegerFieldUpdater<User> ai = AtomicIntegerFieldUpdater.newUpdater(User.class, "old");
publ... | 23.527778 | 112 | 0.606848 |
2a14777ac34f5a6d633a4ca155a23186f1d8e4c0 | 24,468 | package com.appleframework.data.hbase.antlr.manual.visitor;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import org.apache.hadoop.hbase.filter.CompareFilter.CompareOp;
import org.apache.hadoop.hbase.filter.Filter;
import org.apache.hadoop.hbase.filter.Filt... | 42.926316 | 94 | 0.699935 |
dc3afbf7e07d96640a37852090c08c6815e4b3bb | 1,340 | /**
*
*/
package org.danyuan.application.lession.day001.lesson021;
import javafx.application.Application;
import javafx.geometry.Insets;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.TilePane;
import javafx.stage.Stage;
/**
* 作 者: wth
*/
public class Main extends Applic... | 22.711864 | 73 | 0.709701 |
c17749e3b1b733880f937e6dc027b50583a9b137 | 2,821 | /*
*
* 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"); y... | 42.742424 | 86 | 0.780574 |
3610fd818373953cbde202f539ae26e77a9b4eda | 423 | package com.xiaoliu.learn;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* @description: 提供者服务A启动类
* @author: liufb
* @create: 2020/7/31 11:10
**/
@SpringBootApplication
public class ProviderServiceAApplication {
public static void ... | 23.5 | 71 | 0.761229 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.