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 |
|---|---|---|---|---|---|
db2b4c692320ff26c3e56547ade1d366f5a1d18d | 1,274 | package ru.obolensk.afff.beetle.request;
import java.io.IOException;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import org.apache.commons.codec.DecoderException;
import org.apache.commons.codec.binary.Base64;
import org.apache.commons.codec.net.QuotedPrintableCodec;
import ru.obolensk.afff.be... | 31.85 | 114 | 0.785714 |
8204e2b967d30ea357cf971d6f7779c9dddb9c1b | 4,431 | package es.ucm.abd.practica2.dao;
import es.ucm.abd.practica2.model.Abedemon;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import javax.xml.namespace.QName;
import javax.xml.xquery.XQConnection;
import javax.xml.xquery.XQDataSource;
import javax.xml.xquery.XQException;
import javax.... | 26.064706 | 132 | 0.683819 |
11f9177b96f1a75ae5120c2ba7dc90a6337468a2 | 1,088 | package top.suiwngs.netio.entiy;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.ByteToMessageDecoder;
import io.netty.util.CharsetUtil;
import sun.misc.BASE64Decoder;
import java.util.List;
public class PackageDecoder extends ByteToMessageDecoder {
p... | 31.085714 | 101 | 0.715074 |
dd88cf60cfc275c9d053fe9ca9a9881d0ee9845d | 4,613 | /*
Copyright (c) 2013 AWARE Mobile Context Instrumentation Middleware/Framework
http://www.awareframework.com
AWARE is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the
Free Software Foundation, either version 3 of the License, or (at your op... | 39.09322 | 190 | 0.696293 |
81568ca822a5b479f4b47cb1465fac22dedc929f | 58,893 | /*********************************************************************************
* *
* The MIT License (MIT) *
* ... | 32.809471 | 190 | 0.598407 |
43f069a7e2b1484631736ac5909a7eec02baf63f | 284 | package com.ruoyi.system.mapper;
import com.ruoyi.system.domain.YdShopOrderCancelReason;
import java.util.List;
/**
* 订单取消原因数据库连接层
*/
public interface YdShopOrderCancelReasonMapper {
int insert(YdShopOrderCancelReason record);
List<YdShopOrderCancelReason> selectAll();
} | 21.846154 | 55 | 0.788732 |
aabb6e6e545d3ce91e3c7b370b6093d946eca0fa | 984 | package com.poppywood.docstopdfconverter;
import org.apache.commons.io.IOUtils;
import org.ghost4j.converter.PDFConverter;
import org.ghost4j.document.PSDocument;
import java.io.InputStream;
import java.io.OutputStream;
public class PsToPDFConverter extends PptxToPDFConverter {
public PsToPDFConverter(InputStream i... | 28.114286 | 160 | 0.739837 |
0fb1a632c757ecd692473b1c4ab5a2bd044a2b6f | 2,309 | package lv.welding.orders.models;
import org.primefaces.model.SelectableDataModel;
import javax.faces.model.ListDataModel;
import javax.persistence.*;
import java.io.Serializable;
import java.util.List;
@Entity
@Table(name="categories")
public class CategoryEntity extends ListDataModel<OrderEntity> implements Serial... | 23.804124 | 125 | 0.669554 |
f324fec963eaf96894f00029d7c7a5e4cd892e1b | 4,177 | /*************************************************************************
* *
* EJBCA Community: The OpenSource Certificate Authority *
* *
* This software is... | 37.972727 | 152 | 0.628681 |
7a871b068dc9c8c958f6640cf09773ecce48ef00 | 898 | package de.androidbytes.recipr.presentation.single.detail.view;
import de.androidbytes.recipr.domain.model.Recipe;
import de.androidbytes.recipr.presentation.core.di.scopes.PerActivity;
import de.androidbytes.recipr.presentation.core.model.DataMapper;
import de.androidbytes.recipr.presentation.single.detail.model... | 34.538462 | 98 | 0.780624 |
d9b8013488230d55ddcc632e9808921f6ddcc1ef | 464 | package br.com.luciano.npj.controller.converter;
import org.springframework.core.convert.converter.Converter;
import org.springframework.util.StringUtils;
import br.com.luciano.npj.model.Cabine;
public class CabineConverter implements Converter<String, Cabine> {
@Override
public Cabine convert(String id) {
i... | 21.090909 | 67 | 0.752155 |
91b841d5d666db93492b2a5e516e69f703c9d58d | 774 | package dev.patika.fourthhomeworkavemphract.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import java.util.HashSet;
import java.util.Set;
@Entity
@EqualsAnd... | 27.642857 | 86 | 0.784238 |
1063f0249dbc247597023df5931141ca1c0a0701 | 261 | package pl.mmorpg.prototype.clientservercommon.packets.levelup;
import lombok.Data;
import pl.mmorpg.prototype.clientservercommon.registering.Registerable;
@Registerable
@Data
public class LevelUpPacket
{
private long targetId;
private int levelUpPoints;
}
| 20.076923 | 71 | 0.835249 |
18bbf5a7c5af8ab3ad3df838fa6a71bc16c729ba | 316 | package fi.riissanen.gwent.game.ui;
import fi.riissanen.gwent.engine.render.SpriteBatch;
/**
* Provides a render method.
* @author Daniel
*/
public interface Renderable {
/**
* Render method.
* @param batch The sprite batch to render with
*/
public void render(SpriteBatch batch);
}
| 18.588235 | 52 | 0.670886 |
a1bd3426583e440060817cebac0bb1fbce92099d | 9,597 | package ca.valacware.digblock.screens;
import ca.valacware.digblock.Config;
import ca.valacware.digblock.Graphics;
import ca.valacware.digblock.chunk.*;
import ca.valacware.digblock.Player;
import ca.valacware.digblock.utils.*;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.OrthographicCamera;
import co... | 27.110169 | 83 | 0.667917 |
7beb9e3fa639f731ee50878a9230f3411bf6f6fc | 4,461 | package com.aspose.words.examples.loading_saving;
import java.awt.image.BufferedImage;
import java.io.ByteArrayOutputStream;
import java.io.File;
import javax.imageio.ImageIO;
import com.aspose.words.Document;
import com.aspose.words.IResourceLoadingCallback;
import com.aspose.words.IWarningCallback;
import com.aspo... | 39.131579 | 109 | 0.772248 |
f5ca24e3ede454ea480fa7980e4e6dedb438462f | 2,706 | /*
* 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... | 21.140625 | 90 | 0.689209 |
4777f19288d2709befdfdee0717384cb47112467 | 1,606 | package theInvoker.cards.spells;
import basemod.abstracts.AbstractCardModifier;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.core.CardCrawlGame;
import com.megacrit.cardcrawl.localization.CardStrings;
import theInvoker.InvokerMod;
import static theInvoker.InvokerMod.makeID;
public ... | 32.12 | 110 | 0.737858 |
c031d66e8e563eedbba50547e91e7a79eea792f5 | 392 | package com.sai.stringpractice;
/*
String Concatenation
1. Using + operator
2. Using concat method
*/
public class Example4 {
public static void main(String[] args) {
String s1 = "Hello";
String s2 = "Welcome";
//Concat using + operator
System.out.println(s1+s2);
//Concat... | 19.6 | 44 | 0.619898 |
4a5a8964a66c29a8c483306e810889b7be559af5 | 5,209 | package com.sibilantsolutions.iptools.net;
import static org.junit.Assert.assertEquals;
import java.util.ArrayList;
import java.util.List;
import org.junit.Test;
import com.sibilantsolutions.iptools.event.LostConnectionEvt;
import com.sibilantsolutions.iptools.event.ReceiveEvt;
import com.sibilantsolutions.iptools.... | 30.109827 | 88 | 0.623536 |
1c849a15b17be7a01e54ca54a792d3b83e5ac09e | 2,070 | package com.crawl.entity;
import java.io.Serializable;
public class Custem implements Serializable{
/**
*
*/
private static final long serialVersionUID = 390701803929381100L;
/**
* 品牌名称Id--->jd的商品号
* **/
private String CustomeId;
/**
* 品牌名称
* **/
private String BrandName;
/**
* 商品名称
... | 16.428571 | 101 | 0.674879 |
607dbd55099a8d7da7034df2964cff853ef6b4bb | 2,726 | /**
* This class is generated by jOOQ
*/
package org.jooq.test.oracle3.generatedclasses.tables;
/**
* This class is generated by jOOQ.
*/
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class T_EXOTIC_TYPES extends org.jooq.impl.TableImpl<org.jooq.test.oracle3.generatedclasses.tables.records... | 36.346667 | 194 | 0.765957 |
4ea35579abb6f28d9589716084b1c8df86a33dc1 | 4,553 | /*
* $Id: AutoCompleteStyledDocument.java 3131 2008-12-05 14:18:13Z kschaefe $
*
* Copyright 2008 Sun Microsystems, Inc., 4150 Network Circle,
* Santa Clara, California 95054, U.S.A. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Less... | 27.762195 | 95 | 0.652317 |
f7acffa1cb13ecdbdb206b7d8301c04aaddb94a4 | 7,781 | // Copyright (c) 2003-present, Jodd Team (http://jodd.org)
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// th... | 32.420833 | 86 | 0.635008 |
e03ca0e1f141280d0ec2c1727816cd6d593730e1 | 36,650 | /*
* Copyright 2013-2018 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 "licen... | 46.867008 | 159 | 0.645402 |
d2017829c90f35f69fe7fe0a8030dbbe7946f51f | 9,590 | /*
* Copyright 2006-2020 www.anyline.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... | 23.447433 | 110 | 0.630553 |
3b12236e856644615de6d58976697761d2dec47a | 24,656 | // 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... | 43.104895 | 117 | 0.698816 |
7dc1d85ddbbad537780edb27e967096968517242 | 192 | package debgquestion;
public class Debug {
public static void main(String[] args) {
System.out.println("We will learn debugging by removing all the errors from this python file");
}
}
| 17.454545 | 97 | 0.734375 |
081ff61743de1b6039b0173b447aa6452c08314f | 6,600 | /*
* Copyright (C) 2004-2016 L2J DataPack
*
* This file is part of L2J DataPack.
*
* L2J DataPack is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option... | 21.086262 | 99 | 0.582273 |
4cdd552dfefb16539fce7e14f606cb6a7d05ffbb | 3,680 | package net.voxelindustry.armedlogistics.common.test;
import lombok.Getter;
import lombok.Setter;
import net.minecraft.util.Direction;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import net.voxelindustry.steamlayer.grid.CableGrid;
import net.voxelindustry.steamlayer.grid.GridManager;
imp... | 20.674157 | 95 | 0.59375 |
7f66f390341b8a971bcfec9e94d29e936bf55f9f | 421 | package edu.csuft.andromeda.mapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import edu.csuft.andromeda.entity.User;
@Mapper
public interface LogMapper {
@Insert("insert into user(name,pwd) values(#{name},#{pwd})")
void ... | 22.157895 | 61 | 0.755344 |
0aa5163652f8b0aa505bd6e6c223c977d0551722 | 1,161 | package com.slipper.modules.read.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.slipper.common.validator.group.Update;
import lombok.Dat... | 23.22 | 57 | 0.685616 |
e3155a0a6328757588e8f9aa8c0f21a747ba9fa8 | 2,110 | /**
* Copyright 2013 Tommi S.E. Laukkanen
*
* 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 agre... | 39.811321 | 130 | 0.729858 |
327d06b70ed557f108ac389856e74905e247a094 | 3,705 | package pinacolada.cards.fool.colorless;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.monsters.AbstractMonster;
import com.megacrit.cardcrawl.orbs.AbstractOrb;
import com.megacrit.cardcrawl.orbs.Frost;
import eatyourbeets.powers.CombatStats;
import pinacolada.actions.orbs.Evok... | 35.285714 | 112 | 0.632119 |
f51c348f27bc42e84e5ea39e8e58a7ef1da42532 | 859 | package roito.afterthedrizzle.common.item.food;
import net.minecraft.item.Food;
public final class NormalFoods
{
public static final Food DRIED_BEETROOT = (new Food.Builder()).hunger(3).saturation(0.6F).build();
public static final Food DRIED_CARROT = (new Food.Builder()).hunger(5).saturation(0.6F).build();
... | 53.6875 | 108 | 0.718277 |
f3c3cfccfb683793d22298a1403f62f0ed80c69c | 1,361 | package cn.bossge.cloud_diary_sso.entity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang.RandomStringUtils;
import org.springframework.util.StringUtils;
import javax.persistence.*;
import java.time.LocalDateTime;
@Entity
@T... | 24.303571 | 69 | 0.686995 |
dfec4438069918411e8e8459a572e2f32adc7b84 | 8,333 | package com.lwd.qjtv.mvp.ui.fragment.live;
import android.content.Intent;
import android.os.Handler;
import android.os.Message;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGrou... | 31.564394 | 262 | 0.695668 |
10611f780bcb2fb95936ad87e4a3ed515478e93a | 2,209 | package romajs.spring.bean.converter;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.mock.mockito.SpyBean;
import org.springframework.test.context.junit4.SpringRunner;
import romajs.spring.BeanConverterContext;
import romajs.spring.model.BeanConverterKey;
import romajs.spr... | 33.469697 | 108 | 0.750566 |
58bc34a2e4bb2ad719009ca8194fff48cbbcf96c | 1,534 | package s0300;
import org.junit.Test;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
/**
* [349] 两个数组的交集
* <p>
* https://leetcode-cn.com/problems/intersection-of-two-arrays/description/
* <p>
* algorithms
* Easy (61.13%)
* Total Accepted: 18.1K
* Total Submissions: 29.3K
* Testc... | 20.72973 | 99 | 0.533898 |
b95bd134b8266ea3f8ac7ff8fc6f554ea4e87c7c | 5,550 | /*******************************************************************************
* 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 f... | 41.111111 | 112 | 0.636937 |
0fcac8ff1ce5d12a27b094c8a92b8314861c0955 | 3,221 | package org.xblackcat.sjpu.settings.config;
import javassist.ClassPool;
import org.xblackcat.sjpu.builder.BuilderUtils;
import org.xblackcat.sjpu.settings.SettingsException;
import org.xblackcat.sjpu.settings.util.ClassUtils;
import org.xblackcat.sjpu.settings.util.IValueGetter;
import org.xblackcat.sjpu.util.function... | 35.788889 | 124 | 0.655697 |
69f8d229ebdde92edb0ac705c35ab7fbc22e27c3 | 2,994 | package com.example.isa.model;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
... | 19.827815 | 67 | 0.715765 |
0afc552b897ec8f9c0892ff187852f32307aaa3b | 1,697 | package com.liangxiaoqiao.leetcode.day.medium;
/*
* English
* id: 1027
* title: Longest Arithmetic Sequence
* href: https://leetcode.com/problems/longest-arithmetic-sequence
* desc: Given an array A of integers, return the length of the longest arithmetic subsequence in A.
* Recall that a subsequence of A is a ... | 25.712121 | 225 | 0.606953 |
8762051efa99a2cb6ab6d71370a8ee62b5992467 | 1,124 | package com.qa.persistence.dto;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import com.qa.HobbyWebAppApplication;
@SpringBootTest(classes = Hob... | 26.761905 | 76 | 0.752669 |
41858a9f6e1fbf9e2400be7398fbf69cb67e9cc6 | 192,967 | package com.test.c;
import org.moe.natj.c.CRuntime;
import org.moe.natj.c.ann.CFunction;
import org.moe.natj.c.ann.CVariable;
import org.moe.natj.general.NatJ;
import org.moe.natj.general.ann.ByValue;
import org.moe.natj.general.ann.Generated;
import org.moe.natj.general.ann.Library;
import org.moe.natj.general.ann.M... | 31.305483 | 115 | 0.778511 |
0a31ff1887bdc321b3caa90242ac6d796a3c34f8 | 1,471 | package org.monkey.pojo;
import java.util.*;
public class ParameterMap {
private Map<String, List<String>> paramHashValues = new LinkedHashMap<>();
public ParameterMap(String originalParam) {
if (originalParam == null || "".equals(originalParam.trim())) {
return;
}
String... | 27.240741 | 78 | 0.530931 |
31fc7a9b2f25f5400e02c7ca197fca358e5c9b23 | 7,934 | /*
* MIT License
*
* Copyright (c) 2020-2022 The OSHI Project Contributors: https://github.com/oshi/oshi/graphs/contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without r... | 42.427807 | 119 | 0.661709 |
5c17e68d07d6778cc708e28b285bbd2616238a78 | 2,254 | package cn.com.hanbinit;
import io.netty.bootstrap.ServerBootstrap;
import io.netty.channel.ChannelFuture;
import io.netty.channel.EventLoopGroup;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.nio.NioServerSocketChannel;
import io.netty.handler.logging.LogLevel;
import io.netty.handler.... | 28.897436 | 110 | 0.771961 |
7b5132f000ce1522d250490773d77e6cfc4281bf | 3,712 | import org.sql2o.*;
import java.util.ArrayList;
import java.util.List;
public class Ranger implements DatabaseManagement {
private String name;
private String contactInfo;
private int id;
public Ranger(String name, String contactInfo) {
this.name = name;
this.contactInfo = contactInfo;
}
... | 36.038835 | 116 | 0.560345 |
766351580f4c237a01196a475b64aad5a672187a | 10,112 | // Copyright 2008 Peter William Birch <birchb@genyis.org>
//
// This software may be used and distributed according to the terms
// of the Genyris License, in the file "LICENSE", incorporated herein by reference.
//
package org.genyris.io;
import java.math.BigDecimal;
import org.genyris.core.Bignum;
import ... | 25.029703 | 108 | 0.597013 |
12af58bd16f8e97ac9657699a1480a912ef0aa7b | 5,512 | /*
* Copyright 2012-2013 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 ap... | 38.013793 | 76 | 0.643505 |
1ffee5663b84ae14247381d28c4e3d7fc04b290e | 340 | public class ClientInterne extends Salarie implements IClient{
private Compte compte;
ClientInterne(double salaire){
super(salaire);
}
public Compte creerCompte(){
this.compte = new Compte();
return compte;
}
public void verserSalaire(){
compte.crediter(getSalai... | 22.666667 | 62 | 0.626471 |
e1676d91dc0de01837d01b27b2e7d5f93bc08d5c | 4,631 | /*
* Copyright (c) 2018-2021, Antonio Gabriel Muñoz Conejo <antoniogmc at gmail dot com>
* Distributed under the terms of the MIT License
*/
package com.github.tonivade.purefun.instances;
import static com.github.tonivade.purefun.Function1.identity;
import java.time.Duration;
import com.github.tonivade.purefun.Co... | 30.467105 | 125 | 0.713453 |
389b64480ad84e991dcc216b665b98b9eadec0e6 | 453 | package FirstStepsInCoding.Lab;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
// String text = scanner.nextLine();
// System.out.println(text);
int num1 = Integer.parseInt(scanner.nextLine());
... | 23.842105 | 61 | 0.640177 |
4a614205e27005164fcb1e21100c15529c5870a1 | 9,466 |
package cz.habarta.typescript.generator.parser;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonValue;
import com.fasterxml.jackson.databind.*;
import com.fasterx... | 44.862559 | 190 | 0.610501 |
5d1332dd43a29e96a7f3d5a33baa46ba50a9a25e | 7,108 | package com.codepath.apps.restclienttemplate;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import androidx.core.content.res.ResourcesCompat;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.Re... | 40.158192 | 121 | 0.668261 |
f8532ff31a2f61de1dd0484e5732a4d5da7708c1 | 1,755 | package io.nlopez.smartadapters.sample.view;
import android.content.Context;
import android.text.TextUtils;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.TextView;
import com.squareup.picasso.Picasso;
import butterkn... | 27.421875 | 126 | 0.712251 |
ce6f1396711156d53378b0501c7658e2e13f29e8 | 175 | package com.zyj.filemanager.bean;
/**
* Created by ${zhaoyanjun} on 2017/1/11.
*/
public enum FileType {
directory , txt , zip , video , music , image ,apk , other
}
| 17.5 | 62 | 0.64 |
cc79f4606f7f5a219886e35dd64d7448d5f235c1 | 3,054 | /*
* Original work: Copyright (c) 2010-2011 Brigham Young University
* Modified work: Copyright (c) 2017 Xilinx, Inc.
* All rights reserved.
*
* Author: Chris Lavin, Xilinx Research Labs.
*
* This file is part of RapidWright.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may ... | 27.513514 | 154 | 0.724296 |
5210cb140624ed953ec8117f6ab752bc3623d511 | 2,610 |
package org.tempuri.calculator;
/**
* Please modify this class to meet your needs
* This class is not complete
*/
import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
im... | 28.064516 | 93 | 0.611111 |
8864cbbb1831dbe9aa4e7556aba27185d3b4439a | 752 | package top.chenqwwq.leetcode.topic.hash._1010;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
/**
* @author chen
* @date 2020/5/18 下午9:35
*/
class SolutionTest {
Solution solution = new Solution();
@Test
void numPairsDivisibleBy60() {
Assertions.assertEquals(3, s... | 35.809524 | 146 | 0.68617 |
97bb8f7e110989bede8268f02b25a905d88d6d96 | 2,068 | package com.chickling.kmanager.jmx.metrics;
/**
*
* @author Hulva Luva.H
* @since 2017-07-26
*
*/
public class MetricType1 {
private long count;
private String eventType;
private double meanRate;
private double oneMinuteRate;
private double fiveMinuteRate;
private double fifteenMinuteRate;
private... | 20.07767 | 133 | 0.653288 |
b751b614083db8bac566c791f2410803276e1961 | 2,145 | package moe.bay.clipboard.api;
import java.awt.*;
/**
* @author Bailey Riezebos
* @version 1.0
*/
public enum LogType {
EVENT,
CACHED_MESSAGE_PIN,
CACHED_MESSAGE_UNPIN,
CERTAIN_MESSAGE,
CHANNEL,
CHANNEL_PINS_UPDATE,
GROUP_CHANNEL_CHANGE_NAME,
GROUP_CHANNEL_CREATE,
GROUP_CHANNEL_... | 24.655172 | 129 | 0.608392 |
172a0b6166b481d8beaefc0e191696766610bfa6 | 1,880 | package io.github.longlinht.library.anti.common;
import android.content.Context;
import android.content.pm.PackageManager;
import java.lang.reflect.Method;
/**
* Common functions used for detection of system fingerprints.
*
* Created by Tao He on 18-4-27.
* hetaoof@gmail.com
*
*/
public class Utilities {
... | 32.413793 | 120 | 0.642021 |
aa749ceebf266f231897cb87967327f402c92748 | 6,596 | /*
* Copyright 2008-2013 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 41.484277 | 131 | 0.68299 |
aa2d4f23ff629c25d6685387259bba950a720377 | 3,236 | package com.morelang.jwt;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.function.Function;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.security.core.Grant... | 40.45 | 135 | 0.713535 |
6a8f3cee27b51c5560372d0422f22910bc760c0c | 7,116 | package net.sf.regadb.workflow.analysis.execution;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import net.sf.regadb.workflow.analysis.Analysis;
import net.sf.regadb.workflow.analysis.AnalysisConnection;
import net... | 39.533333 | 193 | 0.54511 |
e2a21f2f886926f3ae88110533b3438ca6b29476 | 7,010 | package pokecube.core.items.megastuff;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumFacing;
import net.minecraftforge.common.capabilities.Capability;
import net.minecraftforge.common.capabilities.CapabilityInject;
import net.minecraftforge.c... | 49.366197 | 123 | 0.464907 |
15651347d6efcb7487251aa9c7831901b4b55874 | 802 | package com.game.platform;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;
import cucumber.api.java.en.When;
import models.DeleteFormModel;
public class DeleteSteps {
DeleteFormModel deleteForm = new DeleteFormModel();
@Given("^Отваря формичка за триене от системата$")
public void openForm()... | 25.0625 | 64 | 0.730673 |
5e49b3e3503a0eef64c00b29b7e08c6a440ef184 | 1,111 | package com.outman.study.asynclistdiffdemo;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import java.util.List;
public abstract class CommonAdapter extend... | 30.861111 | 102 | 0.748875 |
0836682e9bd821756d6a634de7170df675454429 | 2,619 | /*
* Copyright (c) 2002-2016, the original author or authors.
*
* This software is distributable under the BSD license. See the terms of the
* BSD license in the documentation provided with this software.
*
* http://www.opensource.org/licenses/bsd-license.php
*/
package org.jline.utils;
import java.io.ByteArray... | 30.103448 | 117 | 0.544483 |
6ff3fabbe154db4474489e4c593169e83a3f6325 | 407 | /*
* Copyright arupingit(Arup Dutta)
* github profile url https://github.com/arupingit
*
*/
package net.arup.spring.dependencyInjection;
/**
* The Interface Instruments.
*
* @author ARUP
*/
public interface Instruments {
/**
* Gets the intruments.
*
* @return the intruments
*/
public void getInt... | 14.535714 | 51 | 0.660934 |
2d49a0f61ef2e4cf15717953baecc0f0b302f646 | 3,693 | /**
* Copyright 2020 the original author or authors.
* <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 required by... | 43.964286 | 211 | 0.82697 |
9062886e27d06afb5d3d37351f3b7049043070df | 2,292 | package com.adyen.model.nexo;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
import java.util.Arrays;
/**
* <p>Java class for AttributeType.
*
* <p>The following schema fragment specifies the expected content contained within this... | 26.045455 | 95 | 0.626091 |
2fe7a305e3ae770dd775390082e0c4662066aaf0 | 150 | package com.teammental.meservice.testapp;
import com.teammental.meservice.BaseCrudService;
public interface TestService extends BaseCrudService {
}
| 21.428571 | 54 | 0.846667 |
829493667b293dd5fda51a1460a149475548efb7 | 14,473 | // Copyright 2021 The MediaPipe 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 applicable law or a... | 35.824257 | 100 | 0.663028 |
ceee45ef79cd3a294167917c7f1fe77b725611b8 | 23,792 | package ru.raingo.monkey;
import android.app.Activity;
import android.app.ActivityManager;
import android.app.Fragment;
import android.app.FragmentTransaction;
import android.content.Context;
import android.content.pm.ConfigurationInfo;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import andr... | 34.183908 | 136 | 0.542325 |
e6d1cd1d50b23155ec9e73e88b97176425b6a0c8 | 15,673 | /*
* ESnet Network Operating System (ENOS) Copyright (c) 2016, The Regents
* of the University of California, through Lawrence Berkeley National
* Laboratory (subject to receipt of any required approvals from the
* U.S. Dept. of Energy). All rights reserved.
*
* If you have questions about your rights to use or ... | 37.052009 | 130 | 0.582275 |
b4572b69bed9c8af035f12e94a52a55c74a63c12 | 3,554 | package com.android.launcher3.icon.iconpacksupport;
/*
* Created by Michele on 06/07/2017.
*/
import android.content.ComponentName;
import android.content.Context;
import android.content.pm.ActivityInfo;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapF... | 30.904348 | 110 | 0.627743 |
28611e1e94d7dafebc63fac3935c2964c59f925b | 6,906 | package com.cqupt.fragment;
import android.graphics.Color;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewGroup.LayoutParams;
import androi... | 33.852941 | 152 | 0.642774 |
8b29137843982215960228dc09184dda57ca2e66 | 1,443 | package org.apache.airavata.registry.core.entities.expcatalog;
import javax.persistence.*;
@Entity
@Table(name = "USERS")
@IdClass(UserPK.class)
public class UserEntity {
private String airavataInternalUserId;
private String userId;
private String password;
private String gatewayId;
private Gatewa... | 22.904762 | 74 | 0.668053 |
d832b709649f2fdd988dfb62a93b8ff00dd1fc31 | 12,764 | /*
* Created by zhangxiangwei on 2020/09/09.
* Copyright 2015-2021 Sensors Data Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2... | 43.267797 | 235 | 0.544187 |
e64d069bc73312fac30211f1942ac49c0f9b8bb4 | 1,188 | /*********************************************************************************
* Copyright (c)2020 CEC Health
* FILE: CS3ClientInterface
* 版本 DATE BY REMARKS
* ---- ----------- --------------- ------------------------------------------
* 1.0 2020-01-16 xiwu
*********... | 24.244898 | 82 | 0.481481 |
735ecf490958a785e14d12a1ffd5de7c56a7403a | 483 | package com.ibm.pross.server.app.avpss.exceptions;
import com.ibm.pross.server.app.avpss.AlertLog.ErrorCondition;
public class StateViolationException extends ErrorConditionException {
private static final long serialVersionUID = 3515964453168981538L;
public StateViolationException() {
super();
}
public Sta... | 21 | 70 | 0.795031 |
ce92d1bd29a31c807ad879516395345745709a55 | 9,716 | /*
* Copyright 2019 Miroslav Pokorny (github.com/mP1)
*
* 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 applic... | 35.985185 | 118 | 0.604981 |
2770ad73ec0fbad9e0dc12bece927e55402575b3 | 2,303 | package com.limpygnome.parrot.library.crypto;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.runners.MockitoJUnitRunner;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
impor... | 26.170455 | 96 | 0.656535 |
6c0a154b8555a8653aea56e82350752a357f1be2 | 49,626 | package com.twilio.video.quickstart.activity;
import android.Manifest;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.media.... | 41.949281 | 125 | 0.594507 |
8721fcb2c0574cc564763e6416029c0e7588da8c | 1,182 | package com.adventofcode.year2018;
import org.junit.jupiter.api.Test;
import java.io.IOException;
import java.io.InputStream;
import java.util.Objects;
import java.util.Scanner;
import static org.assertj.core.api.Assertions.assertThat;
class Day06Test {
@Test
void inputExample() {
String input = "... | 26.266667 | 148 | 0.617597 |
31c97eb36e20512802f69c3d012ab162e76b2fee | 8,541 | /*
* Copyright 2015-2016 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 ap... | 38.822727 | 131 | 0.792296 |
2d4aa4b616588e0c40e11cfefd6db3fe2b1b8e52 | 115 | // "Convert to ThreadLocal" "true"
class X {
final ThreadLocal<Integer> i = ThreadLocal.withInitial(() -> 0);
} | 28.75 | 68 | 0.669565 |
4e3d0acc9c994dde6496f26184136606fccc2b64 | 1,072 | /*
* Copyright (c) 2017.
* 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, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* ajain17 & nverma1 - AP... | 28.972973 | 82 | 0.766791 |
70d53b6c3fa81f0ec1b49987fb929a5465debfb6 | 27,740 | package jp.swest.ledcamp.setting;
import com.google.common.base.Objects;
import java.awt.BorderLayout;
import java.awt.CardLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.GridBagConstraints;
import java.awt.Grid... | 37.335128 | 117 | 0.647044 |
0f3ceea6ce9e2afb0009ff05d0b29414eb8ab3d8 | 1,933 | /**
* Copyright 2016 AT&T
*
* 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... | 33.327586 | 107 | 0.725297 |
5b6fb8a1d220e3bcf16c3f0e1c3b06db01532902 | 2,290 | package com.xxc.dao.model;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;
@Table(name = "group_relation")
public class GroupRelation implements Serializable {
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer id;
/**
* 群标识
... | 15.472973 | 55 | 0.483843 |
710c3bb44408469347d490e2ed67ac91ddee192f | 673 | package model.commands.multipleTurtleCommands;
import model.commands.AbstractCommand;
import model.configuration.Arguments;
import model.configuration.Scope;
import model.exceptions.CommandException;
/**
*
* @author DhruvKPatel
*
*/
public class Turtles extends AbstractCommand {
@Override
public double execut... | 18.694444 | 77 | 0.751857 |
48f24106b876779bb76ae0f6108a13a316752236 | 962 | /*****************************************************************************/
/* Software Testing Automation Framework (STAF) */
/* (C) Copyright IBM Corp. 2002 */
/* */
... | 40.083333 | 81 | 0.493763 |
8ecc232eb90d043ad5d10cb93c7879c108bf3d45 | 1,480 | package com.jacobmountain.graphql.client.visitor;
import com.jacobmountain.graphql.client.annotations.GraphQLMutation;
import com.jacobmountain.graphql.client.annotations.GraphQLQuery;
import com.jacobmountain.graphql.client.annotations.GraphQLSubscription;
import com.jacobmountain.graphql.client.modules.ClientDetails... | 37 | 115 | 0.725 |
4ffc69b42a07054197aefebf583d0cef51a0141d | 1,759 | package com.smile.clz.api.beans;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import java.io.Serializable;
import java.util.List;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import ... | 20.940476 | 61 | 0.661171 |
b413df087a9e366fee6b29bea444b9b165edbdff | 1,023 | package com.qiyue.utils;
import com.qiyue.vo.Result;
import com.qiyue.vo.TableResult;
import java.util.List;
/**
* Created by y747718944 on 2018/2/6
* Result 返回工具
*/
public class ResultUtils {
public static Result getResult(Object data){
return new Result(data);
}
public static Result suc... | 21.3125 | 77 | 0.663734 |
36d16ecb609921b8608c7216c01466c5aae6a7ce | 735 | package com.fbd.core.app.crowdfunding.dao;
import java.util.List;
import com.fbd.core.app.crowdfunding.model.CrowdfundingFounderEducationsModel;
import com.fbd.core.app.crowdfunding.model.CrowdfundingFounderWorksModel;
import com.fbd.core.base.BaseDao;
public interface ICrowdfundingFounderEducationsDao extends... | 29.4 | 106 | 0.704762 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.