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 |
|---|---|---|---|---|---|
8062309bc93bc050ec35ba11f1ba0aaace828c79 | 445 | class Solution {
public int[] intersect(int[] nums1, int[] nums2) {
Arrays.sort(nums1);
Arrays.sort(nums2);
int i = 0, j = 0, k = 0;
while (i < nums1.length && j < nums2.length) {
if (nums1[i] < nums2[j]) {
++i;
} else if (nums1[i] > nums2[j]) {
++j;
}... | 24.722222 | 54 | 0.440449 |
fc3f837a568cb12ffdfaada77673689e94a4b700 | 1,499 | package igao;
import java.sql.Array;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Set;
public class RotatedDigits {
Set<Integer> good = new HashSet<>() {{
add(2);
add(5);
add(6);
add(9);
}};
Set<Integer> n... | 23.061538 | 52 | 0.453636 |
b598bafb2b762e55509146070d5e3b536e91a850 | 375 | package com.AIS.Modul.MataKuliah.Repository;
import java.util.List;
import java.util.UUID;
import com.sia.modul.domain.RPMetodePemb;
public interface RPMetodePembRepository {
public List<RPMetodePemb> findByRPPerTemu(UUID idRPPerTemu);
public UUID insert(RPMetodePemb mp);
public RPMetodePemb findById(UUID idRP... | 19.736842 | 61 | 0.802667 |
16e51eb73afbbe05388ef78abe97d3fbe57f836c | 1,044 | package de.lemonpie.beddomischer.storage;
import de.lemonpie.beddomischer.BeddoMischerMain;
import de.lemonpie.beddomischer.model.Overlay;
import de.tobias.logger.Logger;
import java.sql.SQLException;
import java.util.List;
public class OverlaySerializer
{
private static final String fileName = BeddoMischerMain.BAS... | 18 | 85 | 0.713602 |
d202bb448dea2bd19280dd25f27da0a6469030ec | 4,120 | package ejercicios.VentanaBloc;
import java.awt.*;
import java.awt.event.*;
import java.io.File;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
public class Ventana extends Frame implements ActionListener {
// Variables
TextArea txt_out;
Panel panel_superior, panel_... | 29.640288 | 118 | 0.567961 |
23c0c2585536820c89a0e8eefaa20aa2788125cb | 192 | package com.demo.refletc;
@DiyComponent(name = "1111")
@DiyAnnotation(gg = "gg1")
public class Component1 {
private String myName = "";
public String getMyName() {
return myName;
}
}
| 13.714286 | 28 | 0.6875 |
b580134581a869d7358ff8f276bc30ae3fec443f | 457 | package io.jexxa.application.annotation;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.SOURCE;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
@Target(TYPE)
@Retention(SOURCE)
@Documented
/*
... | 21.761905 | 84 | 0.809628 |
3e896ced799fdfdeb8ec5ab9dbb9938d9577a93d | 19,392 | package com.smile24es.lazy.suite.sample3.student;
import com.smile24es.lazy.beans.enums.AssertionOperationEnum;
import com.smile24es.lazy.beans.enums.DataSourceEnum;
import com.smile24es.lazy.beans.suite.ApiCall;
import com.smile24es.lazy.beans.suite.QueryParam;
import com.smile24es.lazy.beans.suite.assertions.Asserti... | 68.765957 | 183 | 0.737469 |
ee7059865afba6c77694404319ebd4564fa731b2 | 338 | package org.java_websocket.framing;
import org.java_websocket.exceptions.InvalidDataException;
import org.java_websocket.framing.Framedata.Opcode;
public abstract class DataFrame extends FramedataImpl1 {
public DataFrame(Opcode opcode) {
super(opcode);
}
public void isValid() throws InvalidDataEx... | 24.142857 | 58 | 0.766272 |
13648b7888ea20c25b6445e1670c88e5fb221121 | 329 |
public class Birou {
private int l, L, H;
Sertar sertar1 = new Sertar(10, 12, 5);
Sertar sertar2 = new Sertar(8, 10, 5);
public Birou(int l, int l2, int h) {
this.l = l;
L = l2;
H = h;
}
@Override
public String toString() {
return "Birou: [" + l + ", " + L + ", " + H + "]";
}
... | 14.954545 | 53 | 0.483283 |
db7b7f809efe379fc6630c428aa9e04ec368421b | 130 | package com.akon.kuripaka;
@FunctionalInterface
public interface ThrowsRunnable<X extends Throwable> {
void run() throws X;
}
| 14.444444 | 54 | 0.776923 |
bae9f7ac535267ade899ef73d6d02b920bffda88 | 10,681 | /*
* Copyright (C) 2011 The Android Open Source Project
* Copyright (C) 2012 Zhenghong Wang
*
* 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/lice... | 23.735556 | 90 | 0.735605 |
dfc9173758dff19808fb2eaefbe1d961ad02c610 | 2,330 | package com.course.server.service;
import com.course.server.domain.Chapter;
import com.course.server.domain.ChapterExample;
import com.course.server.dto.ChapterDto;
import com.course.server.dto.ChapterPageDto;
import com.course.server.dto.PageDto;
import com.course.server.mapper.ChapterMapper;
import com.course.server... | 32.361111 | 88 | 0.725322 |
dffcdedcfe059838a947a11f91fdf6c72908b66f | 474 | package com.ziggeo.demos;
import com.ziggeo.Ziggeo;
import org.json.JSONArray;
import org.json.JSONObject;
public class VideoListLimit {
public static void main(String[] args) throws Exception {
Ziggeo ziggeo = new Ziggeo(args[0], args[1], "");
JSONArray videos = ziggeo.videos().index(new JSONObj... | 27.882353 | 158 | 0.654008 |
c21f6cc0578ac76e705863cbff88cc2d072279fb | 506 | package hicp_client.text;
public interface TextItemAdapterListener {
/**
Implementer should save text item adapter tla,
then call tla.setAdapter(this).
*/
public void setAdapter(TextItemAdapter tia);
/**
Implementer apply text to the displayed component.
Called in GUI ... | 24.095238 | 72 | 0.656126 |
6cf7ebb951eb07205c3af08ac4fae9fc5f907504 | 693 | package ru.job4j.iterator;
import java.util.Iterator;
import java.util.NoSuchElementException;
public class MatrixIterator implements Iterator {
private final int[][] matrix;
private int x = 0;
private int y = 0;
public MatrixIterator(int[][] matrix) {
this.matrix = matrix;
}
@Overr... | 20.382353 | 57 | 0.551227 |
014623b9ca1c3c96bf0839be83521a92af735d7a | 344 | package com.ringerbell.db;
import android.provider.BaseColumns;
public class OfferGalleryBaseColumns {
public static abstract class OfferGalleryColumns implements BaseColumns {
public static final String COLUMN_OFFER_MESSAGE_ID = "offer_message_id";
public static final String COLUMN_IMAGE_URL ... | 21.5 | 80 | 0.764535 |
36cf9d7dc630c05f13d82b812f76839d097beb1f | 10,727 | package net.ipip.ipdb;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.serializer.SerializerFeature;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import org.apache.commons.io.FileUtils;
import sun.net.util.IPAddressUtil;
import java.io.*;
import java.util.Arrays;
... | 32.904908 | 159 | 0.542649 |
496ae3c14cfe946439ea172313547b62c93092b9 | 933 | package org.yuntu.app.extend.module;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.taobao.weex.WXSDKManager;
import com.taobao.weex.common.WXModule;
import com.taobao.weex.common.WXModuleAnno;
import com.umeng.analytics.MobclickAgent;
import java.util.HashMap;
import java.util.M... | 35.884615 | 96 | 0.738478 |
153defd1403928fb9f17fc9bf81e8d1b3bb2f792 | 1,307 | import java.awt.Graphics;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.image.BufferStrategy;
import javax.swing.JFrame;
public class MainWindow extends JFrame implements Runnable {
private Field field = new Field();
private Grid grid = new Grid(field);
private Wall wall = n... | 21.783333 | 73 | 0.696251 |
109d29ffc33c8057de129af243b60a8bd4ba5fb9 | 356 | package com.java110.fee.bmo.importFee;
import com.alibaba.fastjson.JSONObject;
import com.java110.dto.importFee.ImportFeeDto;
import org.springframework.http.ResponseEntity;
public interface IFeeSharingBMO {
/**
* 查询费用公摊
* add by wuxw
* @param reqJson
* @return
*/
ResponseEntity<Str... | 18.736842 | 53 | 0.707865 |
4d10a4658ce9648f5c06254d0f198939ca7dd32e | 2,390 | /*******************************************************************************
* Copyright 2016 ContainX and OpenStack4j
*
* Licensed under the Apache License, Version 2.0 (the "License");... | 46.862745 | 123 | 0.514226 |
21e82838032d3fb1f822cc41eec6d7c4ea168d83 | 605 | /*
* JBoss, Home of Professional Open Source
* This code has been contributed to the public domain by the author.
*/
package gov.nist.javax.sip.header;
import javax.sip.header.Header;
/**
* Extensions to the Header interface supported by the implementation and
* will be included in the next spec release.
*
*... | 24.2 | 74 | 0.682645 |
e8d919b8ab24954db7ce308fff6747e8539aebab | 166 | package com.flj.latte.ec.main.personal.address;
/**
* Created by Administrator on 2017/10/18 0018.
*/
public enum AddressItemFields {
PHONE,
ADDRESS
}
| 12.769231 | 47 | 0.686747 |
44123be76b832eb37375624d893e339f5071d074 | 1,285 | package fivemegs;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
/**
* Upvote a si... | 27.340426 | 119 | 0.726848 |
d538498d19b10ab3a1daa44af0e801e5cf4c5901 | 1,057 | /*
* Copyright (c) 2021 Snowflake Computing Inc. All rights reserved.
*/
package net.snowflake.ingest.streaming.internal;
import java.math.BigInteger;
import java.util.Objects;
class TimestampWrapper {
private long epoch;
private int fraction;
private BigInteger timeInScale;
public TimestampWrapper(long e... | 22.020833 | 77 | 0.684011 |
dc6953edca9baa9276074b4ece5bcd7937f50fbe | 4,757 | package thor12022.hardcorewither;
/*
* Check all the classes for (hopefully) detailed descriptions of what it does. There will also be tidbits of comments throughout the codebase.
* If you wish to add a description to a class, or extend/change an existing one, submit a PR with your changes.
*/
//import biomesoplen... | 37.456693 | 143 | 0.781165 |
a28bbdd6ef9c3e7a6799b6ec2dcce2a0ad4659a4 | 1,076 | package com.visitor.shop.service;
import com.visitor.shop.domain.MOrderList;
import java.util.List;
/**
* 订单Service接口
*
* @author visitor
* @date 2019-09-15
*/
public interface IMOrderListService
{
/**
* 查询订单
*
* @param orderListId 订单ID
* @return 订单
*/
public MOrderList select... | 17.354839 | 72 | 0.582714 |
49412ff4cf3ac8a5ca3b566f6e2688a047b490bd | 393 | package com.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class ConfigurationBean {
@Bean
public Fruit fruit() {
Fruit fruit = new Fruit();
fruit.setName("fruit");
return fruit;
}
@Bean
public User user() {
... | 17.863636 | 60 | 0.720102 |
86528ff0710d58c7057a275869e633147513364a | 742 | package net.famzangl.minecraft.minebot.ai.tools.rate;
import net.famzangl.minecraft.minebot.ai.path.world.BlockFloatMap;
import net.minecraft.enchantment.EnchantmentHelper;
import net.minecraft.item.ItemStack;
public class EnchantmentRater extends Rater {
protected final int enchantmentId;
public EnchantmentRater(... | 27.481481 | 71 | 0.770889 |
8639b1bcedfa175741ee5a93d8cb2a63d32f677a | 1,173 | package org.team2168.commands.tapper;
import org.team2168.RobotMap;
import org.team2168.commands.CommandBase;
/**
* Control the servo ball tappers with a joystick
*/
public class EngageTappers extends CommandBase {
public EngageTappers() {
requires(servoTapper);
}
/**
* Called just before this Command run... | 23 | 85 | 0.723785 |
ce8db216b7ea46968a4ae16087e9626c9b051378 | 4,129 | /*
* Copyright 2015 Open Networking Laboratory
*
* 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.569106 | 85 | 0.647857 |
0d0550ac48e901a8d32a9e6fca697862e28507b1 | 8,399 | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chromoting;
import android.graphics.Matrix;
import android.graphics.PointF;
import android.view.MotionEvent;
import java.util.Linke... | 37.495536 | 99 | 0.639957 |
6a89cb6d5e63792dac400c90157118d8daa76f05 | 2,078 | package br.com.zupedu.proposal.cardBlocking;
import br.com.zupedu.proposal.cardsAssociation.entities.Card;
import br.com.zupedu.proposal.cardsAssociation.repositories.CardRepository;
import io.opentracing.Span;
import io.opentracing.Tracer;
import org.springframework.beans.factory.annotation.Autowired;
import org.spri... | 31.969231 | 80 | 0.724254 |
dad3e28cbff3edbeb7700cfe01c30376e00eeeec | 1,308 | package br.ufsc.avaliacaomunicipal.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind... | 34.421053 | 88 | 0.834098 |
3f5ed9889f043c5db89da7137eb2bbadd03c5a57 | 2,854 | package top.inger.JpaDemo.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import top.inger.JpaDemo.domain.Order;
import top.inger.JpaDemo.repository.OrderRepository;
import javax.valida... | 32.431818 | 91 | 0.653819 |
6c726008362d1dcd5d5da9a924f60afb2207399b | 13,220 | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser;
import android.app.Notification;
import android.content.Intent;
import android.content.pm.PackageInfo;
import androi... | 36.620499 | 100 | 0.721785 |
e9f6dde58894107bfa5f1898f3915ed2968e60d9 | 2,882 | //==============================================================================
// This software is part of the Open Standard for Unattended Sensors (OSUS)
// reference implementation (OSUS-R).
//
// To the extent possible under law, the author(s) have dedicated all copyright
// and related and neighboring rights to t... | 56.509804 | 120 | 0.681124 |
3030d39128f0962acc2d4381d1e0a092c51ee78e | 3,482 | /*
* Copyright (C) 2008 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... | 30.54386 | 95 | 0.615164 |
bf6f1b469a94910511662400027c8d045af54c5a | 2,999 | package com.codetaylor.mc.artisanworktables.modules.worktables.tile.workstation;
import com.codetaylor.mc.artisanworktables.api.internal.reference.EnumTier;
import com.codetaylor.mc.artisanworktables.api.internal.reference.EnumType;
import com.codetaylor.mc.artisanworktables.modules.worktables.ModuleWorktables;
import... | 28.292453 | 100 | 0.782261 |
fd592e766d71dedde3b3862e644ac3dae4515fb9 | 6,085 | package org.hypertrace.core.documentstore.postgres;
import com.typesafe.config.Config;
import com.typesafe.config.ConfigFactory;
import java.io.IOException;
import java.sql.DatabaseMetaData;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.... | 36.656627 | 99 | 0.730649 |
b46033c55898a9ed156c7d33f570ca9f544bb103 | 3,339 | package com.ceiba.servicio.entidad;
import com.ceiba.BasePrueba;
import com.ceiba.dominio.excepcion.ExcepcionValorObligatorio;
import com.ceiba.servicio.modelo.entidad.Servicio;
import com.ceiba.servicio.servicio.testdatabuilder.ServicioTestDataBuilder;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupite... | 33.727273 | 121 | 0.657382 |
4fdb411626aa5c5d41e379e36d81ffa01308b9b6 | 2,150 | /**
* Copyright 2014 Ryszard Wiśniewski <brut.alll@gmail.com>
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless re... | 34.126984 | 110 | 0.695349 |
4b645531f70a0cbdfcba6ab059ee0fee84eb75e5 | 7,001 | package uk.nhs.adaptors.pss.translator.mapper;
import static uk.nhs.adaptors.pss.translator.util.CompoundStatementResourceExtractors.extractAllRequestStatements;
import static uk.nhs.adaptors.pss.translator.util.ResourceUtil.buildIdentifier;
import static uk.nhs.adaptors.pss.translator.util.ResourceUtil.generateMeta;
... | 43.75625 | 131 | 0.732752 |
6f8be131a1f96df51ba2b06c9c6c7634d3a2665e | 328 | package io.github.yexiaoxiaogo.basicexercises;
public class BE1 {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("hello world");
System.out.println("yexiaoxiao");
String a = "http://123.com";
String b = "http://234.cn";
a += "+" + b;
System.out.println(a)... | 20.5 | 46 | 0.658537 |
08b35bb83ad0081a277882dfcff1c92a6681a4e1 | 3,474 | /*******************************************************************************
* Copyright 2017 Capital One Services, LLC and Bitwise, 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... | 43.425 | 105 | 0.778641 |
8249f7418cacf282436dabef33ef09b32c9da095 | 3,555 | /*
* 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 not ... | 43.888889 | 100 | 0.746273 |
663e4d55a4363a33a5043b937d86126077e01ef7 | 2,330 | package Commands;
import Input.Flat;
import Session.SessionServerClient;
import Utils.Context;
import Utils.FlatCreator;
public class CommandAddIfMax extends Command implements CommandAuthorized {
private Flat flatNew;
@Override
public void preExecute() {
flatNew = getFlatNew();
}
@Override
public void ex... | 34.264706 | 132 | 0.777682 |
72a8ab4796550932a1edc4431908b14b49678b64 | 3,539 | /*******************************************************************************
* Copyright (c) 2001, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, an... | 36.864583 | 136 | 0.660356 |
d5625f6ee2f19268c66f4343470c5d1a8cc1572f | 161 | package util;
/**
* Represents how a robot can act.
* @author Mitch Parry
* @version Jun 3, 2015
*
*/
public enum Act
{
MOVE, ATTACK, SUICIDE, GUARD
};
| 13.416667 | 34 | 0.63354 |
b17ab249887a0a823bbc05e1102ee6c7741d65c7 | 537 | package com.rendiyu.dao;
import com.github.pagehelper.Page;
import com.rendiyu.pojo.CheckItem;
import java.util.List;
public interface CheckItemDao {
List<CheckItem> findCheckItemByCheckGroupId(Integer id);
List<CheckItem> findAll();
void addCheckItem(CheckItem checkItem);
Page<CheckItem> findByCon... | 21.48 | 61 | 0.750466 |
5e0987d9a0d5d6b30be39d65d950e3ae5aaf1edd | 354 | package cz.mg.sql.builder.blocks.rows.create;
import cz.mg.sql.builder.utilities.SqlBlockBuilder;
import cz.mg.sql.builder.utilities.SqlColumnBuilder;
public class SqlInsertIntoBlockBuilder extends SqlBlockBuilder {
public SqlInsertIntoBlockBuilder(String table) {
super("INSERT INTO", table, new SqlColum... | 29.5 | 73 | 0.748588 |
417a5eab8b8f7fcac47432123ba66eed53b78b6a | 3,162 | package org.jchlabs.gharonda.handlers;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpSession;
import org.apache.commons.logging.Log;
import org.jchlabs.gharonda.domain.model.Favorites;
import org.jchlabs.gharonda.domain.model.NumberSearchCriteria;
import org.jchlabs.gharo... | 33.284211 | 121 | 0.734662 |
7273ee145e5d3b41d5219c75fb3590a4321a7c4a | 6,008 | /*
* Copyright 2020 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 ... | 27.814815 | 143 | 0.668609 |
08acb0bf020aa22db6c4079906f2df6ed1879060 | 11,836 | /*
* Copyright (c) 2010-2012 Sonatype, Inc. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/lic... | 39.585284 | 197 | 0.614988 |
f3f85a4fc958b81de956bcfb149d81afec023c8b | 3,453 | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.codeInspection;
import com.intellij.codeInspection.dataFlow.CommonDataflow;
import com.intellij.codeInspection.dataFlow.TypeConstraint;
import com.intellij.j... | 40.623529 | 140 | 0.728642 |
ceb5a99a3095a9cdd8a61f2d4b6f0892cfc4e714 | 243 | package com.BusReservation.service;
import java.util.List;
import com.BusReservation.model.AuthorizedUser;
public interface ICustomerService {
List<AuthorizedUser> fetchPassword(String email);
void AddUser(AuthorizedUser authuser);
}
| 16.2 | 49 | 0.8107 |
7677b61263382a2b0c36f4b6ee8fdf65b906b350 | 5,239 | package ch.xcal.serialization.parser;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import org.junit.Test;
... | 43.658333 | 126 | 0.789082 |
876a2eb10a632864f7ec4f85fd08e37b2a7e96f3 | 479 | package com.pd.danim.Repository;
import javax.transaction.Transactional;
import org.springframework.data.repository.CrudRepository;
import com.pd.danim.DTO.Love;
import com.pd.danim.DTO.Story;
import com.pd.danim.DTO.User;
public interface LoveRepository extends CrudRepository<Love, Long> {
boolean existsByUserA... | 21.772727 | 68 | 0.80167 |
287a378e01407da144faa07e24e1fe5a94644925 | 729 | package com.appdynamics.extensions.docker;
import com.google.common.collect.Maps;
import com.singularity.ee.agent.systemagent.api.exception.TaskExecutionException;
import org.junit.Test;
import java.util.HashMap;
import java.util.Map;
public class DockerMonitorTest {
private static final String CONFIG_ARGS = "c... | 30.375 | 88 | 0.751715 |
5bd1f36ddf07d9963e2a4df465e43e79b067d414 | 3,193 | package com.emc.rpsp.fal.commons;
import javax.xml.bind.annotation.*;
@SuppressWarnings("serial")
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ReplicaFileSystemCreationParam")
public class ReplicaFileSystemCreationParam implements Validateable {
@XmlElement(required = true)
private ... | 31 | 127 | 0.633887 |
62ff09fd84e2d97cb5139f538c14dbd66c7eb18f | 2,116 | /*
* This is the code written in order to do some tests with the drivetrain.
* This may or may not be rewritten and morphed to be used in the actual competition.
*/
package org.firstinspires.ftc.teamcode;
import com.qualcomm.robotcore.eventloop.opmode.OpMode;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
... | 33.587302 | 85 | 0.668242 |
d2a05c7f06bd175c32aa04899958b923d1b099ba | 3,127 | /*
* Licensed to jclouds, Inc. (jclouds) under one or more
* contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. jclouds licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use t... | 32.237113 | 111 | 0.738407 |
e803342aafcea813754689a15a691217879baf55 | 608 | //@@author ShaocongDong
package seedu.address.model;
import javafx.collections.ObservableList;
import seedu.address.model.tag.Tag;
import seedu.address.model.task.ReadOnlyTask;
/**
* Unmodifiable view of an address book
*/
public interface ReadOnlyTaskBook {
/**
* Returns an unmodifiable view of the perso... | 23.384615 | 56 | 0.708882 |
6b724d33443887374437b012aa69b16245a5d2f5 | 5,203 | package pl.wsiz.rzeszowlocator;
import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnCl... | 31.343373 | 135 | 0.714396 |
8bee57a1fc0c1d45946aa40f4270192fee5c0f04 | 11,746 | /*
* Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the "license" fil... | 32.358127 | 120 | 0.608548 |
94bcbb282f147bcd151daf40602b597e5c1032be | 1,607 | package com.godbearing.dto;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
@Entity
public class EnquiryDto {
@Id
@GeneratedValue(strategy= GenerationType.AUTO)
private in... | 19.130952 | 51 | 0.678283 |
d0b9ca15e5827ef13fc7ca37c46fbd150884111e | 1,286 | package account_credentials;
public class AccountTableDataModel {
private String web_name, web_address, web_user_email, web_password, data_id_col;
public AccountTableDataModel(String web_name, String web_address, String web_user_email,
String web_password, String data_id_col) ... | 26.244898 | 92 | 0.669518 |
9e36a1cf3c925bab9e074deb6988dcc05625760e | 562 | package com.wavesplatform.wavesj.info;
import com.wavesplatform.transactions.DataTransaction;
import com.wavesplatform.wavesj.ApplicationStatus;
public class DataTransactionInfo extends TransactionInfo {
public DataTransactionInfo(DataTransaction tx, ApplicationStatus applicationStatus, int height) {
sup... | 25.545455 | 101 | 0.731317 |
2652c571e5827d234325041e92c10e0fa4ce620d | 306 | package com.xinlin.app.service;
import java.util.List;
import com.xinlin.app.base.BaseService;
import com.xinlin.app.entity.pojo.Role;
import com.xinlin.app.entity.pojo.User;
/**
* 框架demo演示
*
*
* @author jxq
* @date 2013-09-29
*
*/
public interface UserService extends BaseService<User>{
}
| 13.909091 | 55 | 0.712418 |
c955dff1594e102747336a493bee0594958bc523 | 130 | package abstractfactory;
/**
* @author tonyc
*/
public interface Color {
/**
*
* fill
*/
void fill();
}
| 10 | 24 | 0.5 |
52e84bff5adac5bd38b0c463c9396ccec3d73546 | 7,749 | /*
* JBoss, Home of Professional Open Source
* Copyright 2010, Red Hat Middleware LLC, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not us... | 40.150259 | 100 | 0.519422 |
b2d3d6349cc4f1c87cc24984b5bd26a44ec916e0 | 280 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.core.implementation.serializer.jsonwrapper.api;
public enum Config {
FAIL_ON_UNKNOWN_PROPERTIES,
FAIL_ON_NULL_FOR_PRIMITIVES,
FAIL_ON_NUMBERS_FOR_ENUM
}
| 28 | 65 | 0.796429 |
852150e5891cd66a2aaf5fc008cb0c759c44c234 | 10,052 | /*
* Copyright 2019-2022 Jörg Steffen, Bernd Kiefer
* 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 la... | 34.542955 | 87 | 0.633804 |
32dd19678eb460bfd2d9073e16d7e3d977263801 | 1,860 | /*
* $Id: TestUtil.java,v 1.1 2000/05/06 00:00:53 boisvert Exp $
*
* Unit test utilities.
*
* Simple db toolkit.
* Copyright (C) 1999, 2000 Cees de Groot <cg@cdegroot.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public Licen... | 30.491803 | 78 | 0.635484 |
046b2bb4d1c332620d93ac5744eef02817295685 | 360 | package android.support.p000v4.widget;
import android.view.animation.Interpolator;
/* renamed from: android.support.v4.widget.F */
/* compiled from: ViewDragHelper */
class C0675F implements Interpolator {
C0675F() {
}
public float getInterpolation(float t) {
float t2 = t - 1.0f;
return (... | 22.5 | 47 | 0.647222 |
760e964bf1740e8c2cd5f996620770869e6dd2d3 | 8,650 | /*
Copyright 2014 Paul LeBeau, Cave Rock Software 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 applicabl... | 30.782918 | 100 | 0.488786 |
3ec4298f0d4ca9636904b41ccfbe83c5f29a7e4c | 1,369 | /*
* 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 not ... | 34.225 | 100 | 0.752374 |
0db15c7fca3578d1b7d602103981e7ebab3f8110 | 4,205 | package org.enguage.objects;
import java.util.ListIterator;
import org.enguage.objects.space.Overlay;
import org.enguage.objects.space.Value;
import org.enguage.util.Audit;
import org.enguage.util.Strings;
import org.enguage.util.attr.Attribute;
import org.enguage.util.sys.Fs;
import org.enguage.util.sys.Shell;
impor... | 30.251799 | 121 | 0.59025 |
8811a27173683032fb2fa16a66a44be6fb2fca31 | 470 | package tech.yiyehu.framework.common.annotation;
import org.springframework.core.annotation.AliasFor;
import java.lang.annotation.*;
/**
* 标记要统计的被调用方法
*
* @author yiyehu
* @version 创建时间:2018/8/1 13:52
*/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface CountApi {
... | 16.785714 | 52 | 0.676596 |
8840893531e5daa83b142ed486ce71d2cf19199a | 40,625 | /*
* Copyright (c) 2009-2011, 2014 AllSeen Alliance. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE S... | 44.014085 | 159 | 0.689108 |
7bfe96d4f049849f9df33f80c3a92fb622f7699c | 1,293 | /*
* Copyright 2021-2022 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 25.86 | 101 | 0.719258 |
a4b1591a9e3c7b46c0110b8186967bf985a7c352 | 1,863 | /**
* 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... | 33.872727 | 75 | 0.619968 |
0faebed0a70d99dd33699366a4d194f56cf974b2 | 3,189 | package com.freedom.lauzy.ticktockmusic.presenter;
import com.freedom.lauzy.interactor.GetLocalSongUseCase;
import com.freedom.lauzy.interactor.GetQueueUseCase;
import com.freedom.lauzy.model.LocalSongBean;
import com.freedom.lauzy.ticktockmusic.base.BaseRxPresenter;
import com.freedom.lauzy.ticktockmusic.contract.Loc... | 33.568421 | 111 | 0.61085 |
1d1d3818db6a64ddfa33ec6dddc37e038cae2500 | 4,521 | package com.haxademic.core.hardware.shared;
import com.haxademic.core.app.P;
import com.haxademic.core.hardware.gamepad.GamepadState;
import com.haxademic.core.hardware.http.HttpInputState;
import com.haxademic.core.hardware.keyboard.KeyCodes;
import com.haxademic.core.hardware.keyboard.KeyboardState;
import com.haxad... | 28.980769 | 96 | 0.69144 |
4c6111fa821876e5ed08f7bb998cc1ae60148e7b | 5,019 | /*
* Copyright (c) 2008-2020, Hazelcast, 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 ... | 44.415929 | 126 | 0.735206 |
905eb29d9d3844c718b0d82feb6ab2f2acf08c86 | 292 | package com.qcloud.cos.exception;
// 未知异常
public class UnknownException extends AbstractCosException {
private static final long serialVersionUID = 4303770859616883146L;
public UnknownException(String message) {
super(CosExceptionType.UNKNOWN_EXCEPTION, message);
}
}
| 22.461538 | 70 | 0.767123 |
2632a82f45e9eefd4916023301d3ebbabb79c891 | 929 | /*
Copyright © 2019 Pasqual K. | All rights reserved
*/
package systems.reformcloud.network.in;
import com.google.gson.reflect.TypeToken;
import systems.reformcloud.ReformCloudAPIBungee;
import systems.reformcloud.configurations.Configuration;
import systems.reformcloud.meta.proxy.settings.ProxySettings;
import sy... | 30.966667 | 95 | 0.764263 |
a4cdc58e58ff6df7a5da42625a64f798ad10724c | 365 | package com.icepoint.framework.generator.entity;
/**
* @author Jiawei Zhao
*/
public enum AssociationType {
ONE_TO_ONE("1"),
ONE_TO_MANY("2"),
MANY_TO_ONE("3"),
MANY_TO_MANY("4")
;
private final String code;
AssociationType(String code) {
this.code = code;
}
public Str... | 15.208333 | 48 | 0.6 |
761c93afe1a0b497186d2b683f7611910753d15b | 898 | package TP7;
public class Application {
public static void main(String[] args) {
Thread thread1 = new Thread(new Talkative(0));
Thread thread2 = new Thread(new Talkative(1));
Thread thread3 = new Thread(new Talkative(2));
Thread thread4 = new Thread(new Talkative(3));
Thread... | 30.965517 | 55 | 0.594655 |
32cec2a3f530da734deb8b4c254b6e9b2b73e38a | 1,280 | package io.hackages.hackflix.springboot.controller;
import io.hackages.hackflix.backend.java.moviemanager.api.model.Movie;
import io.hackages.hackflix.backend.java.moviemanager.core.MovieServiceImpl;
import io.hackages.hackflix.springboot.repository.MovieRepository;
import org.springframework.beans.factory.annotation.... | 31.219512 | 82 | 0.772656 |
4b66cc902cc3312a60be43cad6e21f574bfa0241 | 2,697 | package graph;
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
import static sun.misc.Version.println;
public class My {
static class Node {
HashSet<Integer> neighbours;
int id;
Node(int id) {
this.neighbours = new HashS... | 25.443396 | 81 | 0.487208 |
6c2d5101f07b27d56bfc1213b8c313ab283fcc93 | 19,243 | /*
* Copyright (c) 2007-2015 Concurrent, Inc. All Rights Reserved.
*
* Project and contact information: http://www.cascading.org/
*
* This file is part of the Cascading project.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.... | 37.220503 | 156 | 0.680923 |
66edc1536d340afaf2f86bd6c6ddcfbd1bcf72eb | 4,463 | /*
* This file is generated by jOOQ.
*/
package net.stumpwiz.mrradb.model.tables;
import net.stumpwiz.mrradb.model.Keys;
import net.stumpwiz.mrradb.model.Raj;
import net.stumpwiz.mrradb.model.tables.records.BodyRecord;
import org.jooq.Record;
import org.jooq.*;
import org.jooq.impl.DSL;
import org.jooq.impl.SQLData... | 26.408284 | 120 | 0.588618 |
79fa1b6c20801268d387564f6ce2b823e80b160b | 338 | package com.serenegiant.view;
import android.view.View;
import java.lang.annotation.Retention;
import androidx.annotation.IntDef;
import static java.lang.annotation.RetentionPolicy.SOURCE;
public class ViewUtils {
@IntDef({
View.VISIBLE,
View.INVISIBLE,
View.GONE,
})
@Retention(SOURCE)
public @interface... | 15.363636 | 58 | 0.763314 |
77cf2c7860c083dd0a8f59f43397a804901f70ed | 806 | package com.spinyowl.spinygui.core.system.event;
import com.spinyowl.spinygui.core.node.Frame;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;
/** Will be generated when the specified window moves. */
@Getter
@ToString
@EqualsAndHashCode
public class SystemWindowP... | 23.705882 | 97 | 0.725806 |
522307cd6bff27ac750c2edf130ef4324b1bf3d3 | 3,349 | /**
* Copyright © 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.thinkgem.jeesite.modules.categorydetail.web;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation... | 39.4 | 148 | 0.805016 |
04b66f979a5c305afd054d96b9bec2abc5cfed8d | 1,387 | package src;
import java.util.LinkedList;
import java.util.Queue;
/**
* FileName: BalancedBinaryTree
* Description: 平衡二叉树
* Author: @VirtualChen
* Date: 2018/12/24 0024 下午 3:24
*/
public class BalancedBinaryTree {
public boolean isBalanced(TreeNode root) {
if (root == null) {
retur... | 23.116667 | 101 | 0.546503 |
d0120305d6fa42fb5d230562c5b3b26159982376 | 2,663 | /**
* Copyright (C) 2013-2019 Helical IT Solutions (http://www.helicalinsight.com) - 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://... | 30.261364 | 111 | 0.666917 |
cb8d1a1f45d2cc899791605dec99b98035822235 | 3,199 | package com.trampcr.pkgnamedemo.ui.fragment;
import android.graphics.drawable.Drawable;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;
import com.trampcr.pkgnamedemo.R;
import com.trampcr.pkgnamedemo.base.ui.fragment.BaseFragment;
import com.trampcr.pkgnamedemo.bean.PkgIn... | 30.179245 | 102 | 0.704283 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.