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 |
|---|---|---|---|---|---|
849478f06b930fc68cf9a5fe7df612d2be2b4b21 | 6,477 | package com.ft.sdk.tests;
import android.content.Context;
import androidx.test.platform.app.InstrumentationRegistry;
import com.ft.sdk.garble.bean.DataType;
import com.ft.sdk.garble.bean.LineProtocolBean;
import com.ft.sdk.garble.bean.ObjectBean;
import com.ft.sdk.garble.bean.SyncJsonData;
import com.ft.sdk.garble.m... | 37.877193 | 166 | 0.702795 |
744db27dd3f32fdd9ba575e1e33aa51078bfcec4 | 14,082 | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common
* Development and Distribution License("CDDL") (... | 44.422713 | 163 | 0.614117 |
3d594659c1f32ff0e6dbc6f75cddff8d9e776199 | 599 | package dao;
import models.Config;
import models.Log;
import models.NodeInfoLog;
import play.db.jpa.JPA;
/**
* Created by sunsai on 2016/4/11 - 12:29.
*/
public class NodeInfoLogDao {
public static NodeInfoLog findById(Long id) {
return JPA.em().find(NodeInfoLog.class, id);
}
public static void add(Node... | 19.966667 | 54 | 0.69783 |
c50d051d50cb09a59c1367a608f675143238345d | 2,105 | package pro.taskana.monitor.api.reports;
import java.util.List;
import pro.taskana.common.api.TimeInterval;
import pro.taskana.common.api.exceptions.InvalidArgumentException;
import pro.taskana.common.api.exceptions.NotAuthorizedException;
import pro.taskana.monitor.api.CombinedClassificationFilter;
import pro.taskan... | 39.716981 | 98 | 0.790974 |
1cb6594cfae9b6661f0dd02b9cedacdc47520877 | 1,373 | package ql.typechecker;
import static org.junit.Assert.assertEquals;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parame... | 26.403846 | 69 | 0.616897 |
2394b524e9ddd47f145c2b525730b1eae40d6a53 | 5,375 | package ghareeb.smsplus.helper;
import ghareeb.smsplus.Activity_Chat;
import ghareeb.smsplus.Activity_Main;
import ghareeb.smsplus.R;
import ghareeb.smsplus.database.SmsPlusDatabaseHelper;
import ghareeb.smsplus.database.entities.ReceivedMessage;
import ghareeb.smsplus.database.entities.ThreadEntity;
import java.util... | 30.714286 | 115 | 0.738233 |
b20e551d16bc878181381acfae69cf8a55927143 | 11,363 | package io.github.shiruka.protocol.data;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.base.Preconditions;
import com.nimbusds.jose.JOSEException;
import com.nimbusds.jose.JWSObject;
imp... | 33.031977 | 167 | 0.669894 |
10390dd1d2c8c447ab330f6b9d7a03cc843a6099 | 2,058 | /*
* Copyright © 2019 Dominokit
*
* 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 ... | 30.264706 | 83 | 0.728863 |
14c2bc71ae9d0937059cfad0d622854d538eae81 | 355 | package com.nukkitx.protocol.bedrock.data;
public enum Ability {
BUILD,
MINE,
DOORS_AND_SWITCHES,
OPEN_CONTAINERS,
ATTACK_PLAYERS,
ATTACK_MOBS,
OPERATOR_COMMANDS,
TELEPORT,
INVULNERABLE,
FLYING,
MAY_FLY,
INSTABUILD,
LIGHTNING,
FLY_SPEED,
WALK_SPEED,
MUTED... | 15.434783 | 42 | 0.656338 |
ca3efade8eb757043732e383a2891dadabf57d2c | 469 | package com.accenture.javamos.service;
import com.accenture.javamos.entity.Airline;
import com.accenture.javamos.repository.AirlineRepository;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class AirlineService {
... | 24.684211 | 62 | 0.812367 |
1283d6116ccb8390b8efa186c5501f991b4d9429 | 2,369 | /*
* Copyright 2019 Qameta Software OÜ
*
* 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 ... | 37.603175 | 91 | 0.708316 |
de86b6d95c9d03fd27aaa7ffd111b6573575455e | 9,470 | package org.ovirt.engine.core.bll;
import java.util.Collections;
import java.util.Date;
import java.util.List;
import org.ovirt.engine.core.bll.context.CommandContext;
import org.ovirt.engine.core.bll.job.ExecutionHandler;
import org.ovirt.engine.core.bll.quota.QuotaManager;
import org.ovirt.engine.core.bll.snapshots.... | 40.643777 | 119 | 0.641183 |
ee688438b9bc25c367723cf72b8527186d79d169 | 6,526 | package OOD;
import jdk.swing.interop.SwingInterOpUtils;
import java.util.*;
// Copyright 2021 The KeepTry 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
//
// ... | 22.349315 | 111 | 0.629329 |
ce8a942dbf19b929e6d7c820514a06d2edd50967 | 1,366 | // This file is licensed under the Elastic License 2.0. Copyright 2021 StarRocks Limited.
package com.starrocks.sql.optimizer.rule.implementation;
import com.google.common.collect.Lists;
import com.starrocks.sql.optimizer.OptExpression;
import com.starrocks.sql.optimizer.OptimizerContext;
import com.starrocks.sql.opt... | 44.064516 | 92 | 0.785505 |
72ed4511c847afe7d935c2255b38bb87eb35bae6 | 538 | package org.cloudfoundry.identity.uaa.account;
import org.cloudfoundry.identity.uaa.test.JsonTranslation;
import org.junit.jupiter.api.BeforeEach;
class EmailChangeResponseTest extends JsonTranslation<EmailChangeResponse> {
@BeforeEach
void setUp() {
EmailChangeResponse subject = new EmailChangeRespo... | 29.888889 | 76 | 0.72119 |
7ea2449d3d47b8cfd148f4211fc7b60e5707ff8d | 2,087 | package io.getmedusa.medusa.core.annotation;
import io.getmedusa.medusa.core.registry.EventHandlerRegistry;
import io.getmedusa.medusa.core.registry.RouteRegistry;
import io.getmedusa.medusa.core.util.FilenameHandler;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.annotation.... | 44.404255 | 121 | 0.737422 |
dbc4b063c5c5abaa2198c4e4ed3d4c1ffbaa3898 | 1,550 | package my_cargonaut.utility.data_classes.offers;
import my_cargonaut.utility.data_classes.Measurements;
import my_cargonaut.utility.data_classes.Tour;
import my_cargonaut.utility.data_classes.user.User;
import my_cargonaut.utility.data_classes.Vehicle;
import java.util.Optional;
public class Offer implements java.i... | 23.846154 | 81 | 0.673548 |
2b9c72e269fbe63ad2bf0080975b7991c778cbb7 | 2,725 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v10/enums/account_budget_status.proto
package com.google.ads.googleads.v10.enums;
public final class AccountBudgetStatusProto {
private AccountBudgetStatusProto() {}
public static void registerAllExtensions(
com.goog... | 44.672131 | 99 | 0.755963 |
f988333c18cc6866d02df63a3782a2fbe00a6229 | 387 | package com.ss.ssmall.coupon.dao;
import com.ss.ssmall.coupon.entity.SeckillPromotionEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 秒杀活动
*
* @author fangsheng
* @email 445317262@qq.com
* @date 2020-09-03 11:34:09
*/
@Mapper
public interface Se... | 21.5 | 81 | 0.77261 |
6d0162c222d29292df533f702d57ddd4fd6a8ccd | 992 | package io.gamemachine.core;
import io.gamemachine.messages.Character;
import io.gamemachine.messages.CombatLog;
import io.gamemachine.messages.ItemSlots;
import io.gamemachine.messages.StatusEffect;
import io.gamemachine.messages.Vitals;
import plugins.core.combat.VitalsProxy;
public interface GameEntityMan... | 33.066667 | 106 | 0.785282 |
0ac20695fae802addf8699571063c8be806d3572 | 4,566 | package org.jiffy.util;
import java.io.Serializable;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.util.Currency;
import java.util.Locale;
import org.apache.commons.lang3.StringUtils;
public class Dollar implements C... | 23.060606 | 131 | 0.678055 |
fbe163b45e57c4435f8de522ea7b247d245387cb | 388 | package com.jfeat.properties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import lombok.Data;
/**
* Created on 2020/6/28.
*
* @author Wen Hao
*/
@Data
@Component
@ConfigurationProperties(prefix = "fs")
public class FSProperties {
... | 16.166667 | 75 | 0.760309 |
a75b3abb0609c464f4a10c276450be15d01a32f8 | 400 | package com.study.spring;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
/**
* Created on 2018-01-07
*
* @author liuzhaoyuan
*/
@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest(classes = S... | 23.529412 | 79 | 0.8025 |
6defe19f39cccd7dc73a12e8c7c5c774cf478cef | 971 | package datamodel.ex1.service;
import datamodel.ex1.entity.Person;
import io.jmix.core.DataManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.math.BigDecimal;
import java.util.List;
@Service(PersonApiService.NAME)
public class PersonApiS... | 26.972222 | 90 | 0.733265 |
8455948043840578e61291458e3a77687672ea1e | 77 | package com.julianjupiter.addressbook.core;
public interface Controller {
}
| 15.4 | 43 | 0.818182 |
e250d3bcd0002f7dde9d08c7e406484445aa90b9 | 8,647 | package com.mysql.cj.jdbc;
import com.mysql.cj.Messages;
import com.mysql.cj.exceptions.CJException;
import com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping;
import com.mysql.cj.log.Log;
import com.mysql.cj.util.StringUtils;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import j... | 33.515504 | 138 | 0.680583 |
019ba8b57dd375dad5942c60439da963db26cc60 | 1,655 | /*******************************************************************************
* Copyright 2018 Samsung Electronics 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... | 29.553571 | 81 | 0.632024 |
18bca88026a1f2112a61e1569ab8ec51ee66a469 | 397 | package com.java110.api.bmo.demo.impl;
import com.java110.api.bmo.ApiBaseBMO;
import com.java110.api.bmo.demo.IDemoBMO;
import org.springframework.stereotype.Service;
/**
* @ClassName DemoBMOImpl
* @Description TODO
* @Author wuxw
* @Date 2020/3/9 22:20
* @Version 1.0
* add by wuxw 2020/3/9
**/
@Service("demoB... | 22.055556 | 65 | 0.745592 |
e7e628b1c4c5aa6648e645375e95c5a8cde4f65c | 775 | package io.bank.api.transactions.model.dto;
import io.bank.api.transactions.model.Account;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AccountDTO {
private String id;
private St... | 27.678571 | 79 | 0.682581 |
0f30d43f3173b0afbbc5a9409ed8ebde0ba22c2a | 324 |
import java.util.*;
public class NullTest
{
public static void main(String[] args)
{
Date d = null;
try
{
System.out.println(d.after(new Date()));
}
catch (NullPointerException ne)
{
System.out.println("NullPointerException");
}
catch (Exception e)
{
System.out.println("Exception");
}
... | 14.086957 | 46 | 0.638889 |
6a78b632a765366b0e98e3c25a4f2a3cc99c7cae | 4,072 | /*
* Copyright (C) 2015 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... | 37.357798 | 98 | 0.70334 |
abb01e576ba45b4ab889e04c1c608ad9cca384fa | 886 | package com.maximka.gifsearcher;
import android.app.Application;
import com.maximka.gifsearcher.DI.DaggerGiphyAppComponent;
import com.maximka.gifsearcher.DI.GiphyAppComponent;
import proxypref.ProxyPreferences;
/**
* Created by maximka on 15.11.16.
*/
public class GiphyApp extends Application {
public stati... | 25.314286 | 64 | 0.722348 |
5b8bc9914dff6102b0f7d8d5965b9bfb4dae8cf7 | 302 | package com.kang.codetool.controller.request;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Data
public class GetDbDataConditionReq {
private String name;
private String value;
}
| 18.875 | 45 | 0.81457 |
771e080ddb2a312a7a821692bbf024d7da727c2f | 959 | /**
* Project Name: wine
* Package Name: top.guhanjie.wine.msic
* File Name: TestPrint.java
* Create Date: 2017年7月9日 下午12:08:56
* Author: Administrator
* Copyright (c) 2014-2017, guhanjie All Rights Reserved.
*/
package top.guhanjie.wine.msic;
import static org.junit.Assert.*;
import java.ut... | 24.589744 | 77 | 0.626694 |
d67dd87d76e7e417de80d407aeb2af8c46547af2 | 5,497 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_package
DECL|package|org.jabref.gui.externalfiletype
package|package
name|org
operator|.
name|jabref
operator|.
name|gui
operator|.
name|externalfiletype
package|;
end_package
begin_import
import|import
name|java
operator|.
name|util
operator|.
name|Co... | 14.776882 | 86 | 0.819356 |
2260ae8cc81534b1e8b3de53d52262e77da44fd3 | 1,282 | package com.github.base.widget.toast;
import android.content.Context;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;
import com.github.base.R;
/**
* @author liji
*/
public class CenterToast extends Toast {
... | 25.64 | 81 | 0.684867 |
5969c94cbdb21b8ce9d2f0a07ea5fe2e0a6fca4e | 413 | package io.github.benzwreck.wykop4j.exceptions;
/**
* This exception is thrown when you are trying to send a pm to the user that blocked you.
*/
public class UserBlockedByAnotherUserException extends WykopException {
public UserBlockedByAnotherUserException() {
super(102, "Użytkownik nie chce odbierać wi... | 37.545455 | 135 | 0.760291 |
65a15e5224308d7b60e73ec7862a33f8664ab0fb | 8,620 | package me.opkarol.oppets;
/*
= Copyright (c) 2021-2022.
= [OpPets] ThisKarolGajda
= 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 requir... | 45.851064 | 340 | 0.668097 |
29c8b7217cc399e7479d2fabfaa04e98fedaa6d2 | 357 | package com.example.ashi.irrigatedmanager.util;
/**
* Created by ashi on 8/29/2018.
*/
public class CreateDate {
public long nanos;
public long time;
public long minutes;
public long seconds;
public long hours;
public long month;
public long year;
public long timezoneOffset;
publ... | 18.789474 | 47 | 0.677871 |
53c13532c6aec022c4524d6686d5f2036a0145e5 | 2,025 | package org.jumpmind.db.alter;
/*
* 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, Vers... | 27 | 90 | 0.662222 |
b15b3762d8f562a56a993d2104bc0603f75d1c58 | 2,165 | package com.insightfullogic.slab.implementation;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import org.objectweb.asm.ClassWriter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.insightfullogic.slab.SlabOptions;
class GeneratedC... | 28.486842 | 118 | 0.689607 |
51436097c23f58e91ada56a0f7aeb68dce30d47c | 388 | package de.as.garde_sheet_generator;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import de.as.garde_sheet_generator.dao.SchulferienDeutschlandProvider;
@Configuration
public class AppConfig {
@Bean
public SchulferienDeutschlandProvider holidayP... | 22.823529 | 70 | 0.829897 |
049b4e924cceeed397be393671b276a5710e159b | 2,375 | /**
* Project Name:CommonApp
* File Name:DemoService2
* Package Name:cn.cloudwalk.commonapp.services
* Date:2017/2/14 001411:38
* Copyright @ 2010-2017 Cloudwalk Information Technology Co.Ltd All Rights Reserved.
*/
package cn.cloudwalk.commonapp.services;
import android.os.Handler;
import android.os.Message;
im... | 23.989899 | 85 | 0.585263 |
60b95b08c0783e0f606427a01ae75d8844c88976 | 4,573 | package net.minecraftforge.event.world;
import java.util.ArrayList;
import cpw.mods.fml.common.eventhandler.Cancelable;
import cpw.mods.fml.common.eventhandler.Event;
import net.minecraft.block.Block;
import net.minecraft.enchantment.EnchantmentHelper;
import net.minecraft.entity.player.EntityPlayer;
import net.minec... | 39.765217 | 210 | 0.638093 |
207c421cf93fd732d8aa1645ebe6a22c50aafd15 | 692 | package com.tibco.tgdb.test;
import com.tibco.tgdb.connection.TGConnection;
import com.tibco.tgdb.connection.TGConnectionFactory;
import com.tibco.tgdb.model.TGGraphObjectFactory;
public class MaxConnection {
public static void main(String[] args) throws Exception {
String url = "tcp://localhost:82... | 24.714286 | 91 | 0.683526 |
20f80d49d0273a108ac4da6f92a24f23a25e7145 | 6,685 | package com.analisis.numericsapp.app.OneVarEquation;
import android.content.Intent;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.w... | 28.088235 | 103 | 0.558863 |
b2a935d4b1a0885ea2c514d70c8667eeff4dcb81 | 202 | package de.jdynameta.base.value;
public interface WrappedValueObject<TWrappedObject extends TypedValueObject> extends ChangeableTypedValueObject
{
public TWrappedObject getWrappedValueObject();
}
| 25.25 | 111 | 0.846535 |
3be834948e222fd1d609b6e4071f54cd0a4cd261 | 896 | package com.jpeony.algorithm.sorts;
import java.util.Arrays;
/**
* 【冒泡排序】
* 每次循环一个元素,找到合适的位置进行放置,重复 n 次,完成排序。
*
* @author yihonglei
*/
public class BubbleSort {
/**
* 时间复杂度:O(n^2)
* 空间复杂度:O(1)
*/
private static void bubbleSort(int[] arr, int n) {
if (n <= 1) {
return;
... | 22.4 | 54 | 0.421875 |
38b4788668d0dca0d2b112278012f7e7e64dc148 | 694 | package de.jottyfan.camporganizer.rss;
import java.util.Date;
/**
*
* @author jotty
*
*/
public class RssBean {
public final Integer pk;
public String recipient;
public String message;
public Date pubdate;
public RssBean(Integer pk) {
this.pk = pk;
}
public Integer getPk() {
return pk;
}
public... | 14.458333 | 45 | 0.690202 |
0d3e5d7bfc56fd80c47b342980960f60025e4ed3 | 1,675 | /* 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... | 28.389831 | 79 | 0.727164 |
383498c3280aafdd25fcc3ec05f1f4fa9bd35d13 | 9,048 | /**
* Copyright (c) Lambda Innovation Team, 2013
* 版权许可:LambdaCraft 制作小组, 2013.
* http://lambdacraft.cn/
*
* The mod is open-source. It is distributed under the terms of the
* Lambda Innovation Open Source License. It grants rights to read, modify, compile
* or run the code. It does *NOT* grant the right to re... | 34.666667 | 150 | 0.547745 |
7c3446cd63f2231c43c5aa4e354315272cc6c9b2 | 16,827 | class WvyFL8Zjk {
public static void YaVzRxW8 (String[] wPniG) {
U8roqPS6Y().ll5osBUCL;
if ( na8Z()[ !( true[ !!!-!true[ new LmujQ3_().balcV3TOe1()]]).SZCRtpbYGduUT()]) return;else if ( !--null.ZSa5) true.wNwCXsUA7oJ3b9;
j9g6AeCs QS885mm = !null[ d0S4QoGgK53fGS[ z_e8bjAUco8d.vsJCTFITdKC]]... | 36.660131 | 275 | 0.508825 |
12c5c24b7967977aec78a88e1848a7c0cf93fd18 | 1,295 | package org.innovateuk.ifs.finance.handler;
import org.innovateuk.ifs.competition.domain.Competition;
import org.innovateuk.ifs.competition.repository.CompetitionRepository;
import org.innovateuk.ifs.organisation.resource.OrganisationTypeEnum;
import org.springframework.beans.factory.annotation.Autowired;
import org.s... | 39.242424 | 148 | 0.810811 |
9476595f5c9a4d08d38d90517705d6a0bd34e7fe | 3,754 | package ca.uhn.fhir.jpa.dao;
/*
* #%L
* HAPI FHIR JPA Server
* %%
* Copyright (C) 2014 - 2015 University Health Network
* %%
* 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
*
* ... | 32.929825 | 120 | 0.763452 |
be01a7f697f3b0b588cbea3c237fa53043a55235 | 1,264 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package de.uros.citlab.errorrate.kws.measures;
import de.uros.citlab.errorrate.types.KWS.Match;
import de.uros.citlab.errorrate.types.... | 26.893617 | 79 | 0.550633 |
5260cafa08e3b88d262a088e3abd2b83369bfa89 | 2,058 | package net.ausiasmarch.factory;
import com.google.gson.Gson;
import net.ausiasmarch.bean.BeanInterface;
import net.ausiasmarch.bean.CompraBean;
import net.ausiasmarch.bean.FacturaBean;
import net.ausiasmarch.bean.ProductoBean;
import net.ausiasmarch.bean.TipoProductoBean;
import net.ausiasmarch.bean.TipoUsuarioBean;
... | 31.181818 | 73 | 0.539845 |
fcb217ab80c3848593d2aad943e2f1e0eb31d435 | 382 | package store.roll.CostStrategy;
public class SpringRollStrategy implements CostStrategy {
//override cost of extras for given specific roll
@Override
public double getFillingCost() {
return 3.33;
}
@Override
public double getSauceCost() {
return 4.44;
}
@Override
... | 19.1 | 57 | 0.643979 |
f12e3e39535bf5e9ae8ef2002dbe6938e0bb3944 | 4,105 | package com.inHere.entity;
import java.io.IOException;
import java.util.Date;
import java.util.List;
/**
* 用户实体
*/
public class User {
private String userId;
private String passwd;
private String saltKey;
private String userName;
private String headImg;
private String contactWay;
privat... | 22.554945 | 98 | 0.558831 |
fd741f6771784eba8d1158961f5b14bc30f90089 | 961 | package br.com.ordemdeev.quizzes.usuario;
import java.util.List;
import br.com.ordemdeev.quizzes.util.DAOFactory;
public class UsuarioRN {
private UsuarioDAO usuarioDAO;
public UsuarioRN() {
this.usuarioDAO = DAOFactory.criarUsuarioDAO();
}
public Usuario carregar(Integer codigo) {
return this.usuarioDAO.ca... | 23.439024 | 83 | 0.729448 |
05c6a5d1f9e2257307193250a166ab639b8e4b6c | 708 | package com.instaclustr.operations;
public abstract class OperationCoordinator<T extends OperationRequest> {
public static final int MAX_NUMBER_OF_CONCURRENT_OPERATIONS = Integer.parseInt(System.getProperty("instaclustr.coordinator.operations.executor.size", "100"));
public abstract void coordinate(final Ope... | 35.4 | 162 | 0.75 |
ccc04599a0068974f879c36f0dae269bf6e79541 | 2,824 | import edu.princeton.cs.algs4.In;
import edu.princeton.cs.algs4.StdDraw;
import edu.princeton.cs.algs4.StdOut;
import java.util.ArrayList;
import java.util.Arrays;
/**
*
*/
public class FastCollinearPoints {
private final ArrayList<LineSegment> _segments = new ArrayList<LineSegment>();
public FastCollinear... | 30.365591 | 123 | 0.553824 |
cdd153f8b0a1ea1a748ab72749268b51bfb1f273 | 37,376 | /*
* 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 ... | 34.258478 | 127 | 0.531437 |
7bccdd047367ede5a2e93bebed7e83b2e4e0dae6 | 1,822 | package com.domgarr.concetto;
import com.domgarr.concetto.models.Concept;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
/*... | 30.366667 | 112 | 0.70966 |
74ce271e32facde86a1feea5e753f96686213d49 | 2,879 | package jp.sourceforge.reflex;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import jp.sourceforge.reflex.core.ResourceMapper;
import jp.sourceforge.reflex.exception.JSONException;
import junit.framework.Test;
import junit.framework.TestCase;
import juni... | 24.818966 | 64 | 0.656131 |
d9087ae9bf949643e594565b89097b987c732b96 | 3,806 | package com.sxquan.manage.generator.controller;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.sxquan.core.entity.LayuiPage;
import com.sxquan.core.entity.RequestPage;
import com.sxquan.core.entity.ServerResponse;
import com.sxquan.core.exception.ShopException;
import com.sxquan.core.pojo.generator.Ge... | 40.924731 | 135 | 0.769312 |
40b314fb3038f25dd1f41927836f062bede0b033 | 1,816 | /**
* Copyright (C) 2009 - present by OpenGamma Inc. and other contributors.
*
* 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
* ... | 27.938462 | 104 | 0.727974 |
eb79befadd1ae8bf23bb153f2fddc5ab7be5ee71 | 921 | package com.mirhoseini.fyber.util;
/**
* Created by Mohsen on 30/09/2016.
*/
public abstract class Constants {
public static final String BASE_URL = "http://api.fyber.com/";
public static final String CODE_OK = "OK";
public static final String CODE_NO_CONTENT = "NO_CONTENT";
public static final Str... | 35.423077 | 91 | 0.724213 |
6f587d7ec0fd35043cb28589c6da2346073fdffa | 6,425 | package com.quandoo.quandootest.domain.interactor;
import android.arch.paging.DataSource;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import com.quandoo.quandootest.domain.entities.Customer;
import com.quandoo.quandootest.domain.entities.Table;
import com.quandoo.quandootest... | 42.269737 | 114 | 0.752529 |
7baf11ea5b9cfe4a00f8c6afaf8014a935972b28 | 1,136 | package com.bingstar.bingmall.order.OrderApplyAfter;
import java.util.List;
/**
* Created by John on 2017/3/28.
*/
public class OrderApplayEditBeanInfo {
private String afterSaleType;
private String zorderinfo_id;
private String afterSaleReason;
public List<AfterSaleOrderInfo> afterSaleOrderList;
... | 23.666667 | 84 | 0.711268 |
7467a3cb121e786a8d8fb21b6f74e10db276bcbc | 950 | package org.joder.stock.core.domain;
import lombok.Data;
import java.util.List;
import java.util.Map;
/**
* @author Joder 2020/8/14 21:36
*/
@Data
public class ProcessQuery {
private double initMoney;
private String strategyCode;
private List<StockData> stockList;
/**
* 对应每个策略需要的参数
*/
... | 25.675676 | 124 | 0.686316 |
60973c27d2620e0bac15b702089ba832cd275cbe | 6,089 | package com.anton46.stepsview;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.view.View;
import java.util.ArrayList;
import java.util.List;
public class StepsViewIndicator extends View {
... | 32.216931 | 185 | 0.643948 |
ac56d8fdbdde5a0b987e14506b2d4524ca5b02a4 | 400 | package io.subutai.common.security.objects;
/**
*
*/
public enum UserStatus
{
ACTIVE(1,"ACTIVE"),
DISABLED(2,"Disabled");
private String name;
private int id;
UserStatus( int id, String name)
{
this.id = id;
this.name = name;
}
public String getName()
{
... | 12.121212 | 43 | 0.53 |
c1ea3fedf4fb8a2a7ad0e2ded1c3599f2091885f | 2,058 | package com.nsqre.insquare.Utilities;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.nsqre.insquare.R;
import java.util.ArrayLis... | 27.44 | 114 | 0.667153 |
0122d8fb24782cc9f78fcbfd0aed6d8c23a845c2 | 940 | package com.br.antbridge.severino.resource.mod_controleponto.diasemana;
import javax.persistence.NoResultException;
import javax.persistence.TypedQuery;
import com.br.antbridge.core.resource.ResourceCRUD;
import com.br.antbridge.severino.entity.mod_controleponto.DiaSemana;
public class DiaSemanaResource extends Reso... | 26.111111 | 142 | 0.770213 |
52dc277ead244fc4c29133ffcb40533cb7e5def7 | 2,521 | package com.macro.mall.portal.component.trade.alipay.utils;
import com.google.zxing.BarcodeFormat;
import com.google.zxing.EncodeHintType;
import com.google.zxing.MultiFormatWriter;
import com.google.zxing.common.BitMatrix;
import com.google.zxing.qrcode.decoder.ErrorCorrectionLevel;
import org.apache.commons.logging.... | 34.067568 | 111 | 0.687426 |
60ee48e5d86b17687e0ef79d1b1191e7ee727f85 | 4,077 | /*
* Copyright ConsenSys AG.
*
* 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... | 43.83871 | 118 | 0.773853 |
0410108bacabc3681333e7c9b26ce20165cbf868 | 1,483 | package Services;
import java.util.ArrayList;
/* Singleton Service for finding longest cons chain */
public class FinderService {
private static FinderService ourInstance = new FinderService();
public static FinderService getInstance() {
return ourInstance;
}
private FinderService() {
}
... | 30.265306 | 109 | 0.608227 |
230edec1baf57f9e056e6f9f33cb53b3edd47bc8 | 457 | package com.brandon.snake.game;
public enum Direction {
UP(0),
DOWN(1),
LEFT(2),
RIGHT(3),
NONE(4);
private int value;
private Direction(int value) {
this.value = value;
}
public int getValue() {
return value;
}
public Direction opposite() {
switch (this) {
case UP: return DOWN;
case DOWN:... | 14.741935 | 50 | 0.656455 |
10ac3bb0494e41bdbd4c1c232572c8c61368b074 | 1,268 | package pl.vgtworld.imagedraw.filters.gaussianblur;
class MatrixGenerator {
float[][] createMatrix(int radius, double standardDeviation) {
if (radius < 1) {
throw new IllegalArgumentException("Radius must be greater than 0.");
}
int matrixSize = radius * 2 + 1;
float[][] matrix = new float[matrixSize][ma... | 32.512821 | 110 | 0.690852 |
304985f559e1ee68f2ea24f1f205459ea8a38ff5 | 2,671 | package me.dylanmullen.weightchallenge.util.config;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Map;
import java.util.jar.JarEntry;
import java.util.jar.JarFile;
/**
* @author Dy... | 18.678322 | 95 | 0.665668 |
965c449b163fe334a03e4a9ea5bc6cc139702326 | 604 | package io.mindjet.jetgear.mvvm.viewmodel.item;
import android.view.View;
import io.mindjet.jetgear.R;
import io.mindjet.jetgear.databinding.ItemLoadingBinding;
import io.mindjet.jetgear.mvvm.base.BaseViewModel;
import io.mindjet.jetgear.mvvm.viewinterface.ViewInterface;
/**
* Common loading view model.
* <p>
* C... | 21.571429 | 88 | 0.743377 |
89ec9ae38fb7130171b008e202b417b99c484a66 | 5,516 | package com.interview.codingblocks.week7Greedy;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.*;
public class BusyMan {
private static <K, V extends Comparable<? super V>> Map<K, V> sortByValue( Map<K, V> unsortMap ) {
... | 26.14218 | 102 | 0.506889 |
98b8606eb19233898edc0544a449b01b5787cbc3 | 1,139 | package controllers;
import models.Fachada;
import models.entity.Usuario;
import models.entity.Voluntario;
import play.mvc.Controller;
import play.mvc.Result;
import views.html.info_usuario;
import views.html.perfil_usuario;
public class VoluntarioDetailController extends Controller{
public Result loadPage(){
Stri... | 30.783784 | 79 | 0.744513 |
b42d9edaa0989fd619b2f15d4f84ab842dd0bf6a | 1,188 | package cz.app.restauracka.demo.logika.Data;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import cz.app.restauracka.demo.logika.obj.Jidlo;
import cz.app.restauracka.demo.logika.obj.MenuJidla;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.... | 29.7 | 90 | 0.701178 |
c7e2ff1e0e455f7b084284fc3d2a41dd45712659 | 2,800 | /*
* Copyright 2020-2021 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 requ... | 53.846154 | 117 | 0.728214 |
3a3215202e40d79afa3be5ca1e95d805f3df697b | 1,610 | package org.zalando.nakadi.domain;
import org.zalando.nakadi.plugin.api.authz.AuthorizationAttribute;
import org.zalando.nakadi.plugin.api.authz.AuthorizationService;
import javax.annotation.concurrent.Immutable;
import java.util.Objects;
@Immutable
public class Permission {
private final String resource;
pr... | 29.814815 | 92 | 0.68323 |
228090c0687de8cfd3b6ab57f8065e9125deaea3 | 1,510 | package com.qayratsultan.quizforfun.data;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.room.Embedded;
import androidx.room.Relation;
public class UserWithAttempts implements Parcelable {
@Embedded
private User user;
@Relation(
parentColumn = "email",
... | 24.754098 | 94 | 0.611258 |
e8b1446dd791f60556e1f6fc9d9eda49ac3a91d6 | 1,089 | package Windows;
import CoolFeatures.WindowDynamics;
import Interfaces.FadeDelay;
import javafx.application.Application;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
import javafx.stage.StageStyle;
public clas... | 30.25 | 109 | 0.708907 |
5695b7fcde3f1bd6d78aafa01c819c322911450f | 397 | package io.choerodon.devops.app.service;
import java.util.List;
import io.choerodon.devops.api.dto.GitlabGroupMemberDTO;
/**
* Created by Zenger on 2018/3/28.
*/
public interface GitlabGroupMemberService {
void createGitlabGroupMemberRole(List<GitlabGroupMemberDTO> gitlabGroupMemberDTOList);
void deleteG... | 24.8125 | 90 | 0.811083 |
813acf4694e575f01ba4abacd56a35de8373084a | 927 | package org.smartregister.domain;
import org.smartregister.domain.jsonmapping.LoginResponseData;
public enum LoginResponse {
SUCCESS("Login successful."),
NO_INTERNET_CONNECTIVITY("No internet connection. Please ensure data connectivity"),
MALFORMED_URL("Incorrect url"),
UNKNOWN_RESPONSE("Dristhi logi... | 27.264706 | 88 | 0.703344 |
d44d9e6cc53ffe0066336dd1f4a43389f8fd5937 | 3,317 | package org.bndly.common.app.provisioning.model;
/*-
* #%L
* App Provisioning
* %%
* Copyright (C) 2013 - 2020 Cybercon GmbH
* %%
* 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
*
*... | 30.154545 | 91 | 0.713295 |
62d8828701d5fafbb374fa6e685f138ea25ab885 | 7,740 | package com.hubspot.jinjava.lib.tag.eager;
import com.google.common.collect.ImmutableMap;
import com.hubspot.jinjava.el.ext.ExtendedParser;
import com.hubspot.jinjava.interpret.JinjavaInterpreter;
import com.hubspot.jinjava.interpret.TemplateSyntaxException;
import com.hubspot.jinjava.lib.tag.CycleTag;
import com.hubs... | 32.79661 | 106 | 0.652972 |
4ede8fbbbe07719e1edd91bb16c1601c5d5d1bd9 | 2,423 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 39.080645 | 84 | 0.767231 |
f2cdfe653b495e34129251f72bd4a730ba35059d | 928 | package com.kamron.drx.service;
import com.kamron.drx.model.Delivery;
import com.kamron.drx.repository.DeliveryRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* The type Delivery service.
*
* @author Kamron Sultanov
* @date July 18, 202... | 23.794872 | 71 | 0.716595 |
24a001a313097e815b24ece7834dabae9b738f11 | 19,722 | /*
* Copyright 2014 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Eclipse Public License version 1.0, available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package org.jboss.forge.roaster.model.impl;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.u... | 25.713168 | 167 | 0.63954 |
dd4bda67a9ae1634858ecfafc68dc102bcd3080f | 777 | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package com.aws.greengrass.util.platforms;
import com.aws.greengrass.testcommons.testutilities.GGExtension;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import ... | 29.884615 | 71 | 0.725869 |
192ce322a00ae0308fae22315b486428f0894cd8 | 214 | package ru.kontur.vostok.hercules.partitioner;
import ru.kontur.vostok.hercules.protocol.Event;
/**
* @author Gregory Koshelev
*/
public interface Hasher {
int hash(Event event, ShardingKey shardingKey);
}
| 19.454545 | 51 | 0.757009 |
e811def40fdeb4e972fc497551c735ae7174bfdf | 2,265 | package info.bfly.pay.bean.order;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
/**
* 3.15创建批量代付到提现卡交易 on 2017/2/17 0017.
*/
public class CreateBatchHostingPayToCardTradeSinaEntity extends OrderSinaEntity implements Serializable {
private static final long serialVersionUID = 15796131... | 22.425743 | 105 | 0.592053 |
07ed757138bb61d193a3dee10d7a28ee6985d4f2 | 5,996 | package ltd.beihu.core.web.boot.http;
import okhttp3.*;
import okio.Buffer;
import okio.BufferedSource;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.EOFException;
import java.io.IOException;
import java.nio.charset.UnsupportedCharsetException;
i... | 40.789116 | 307 | 0.61024 |
6c2212110b7f5e62959c354d737e0e37427e67ab | 4,144 | package com.atguigu.gulimall.pms.service.impl;
import com.atguigu.gulimall.pms.dao.AttrAttrgroupRelationDao;
import com.atguigu.gulimall.pms.dao.AttrDao;
import com.atguigu.gulimall.pms.entity.AttrAttrgroupRelationEntity;
import com.atguigu.gulimall.pms.entity.AttrEntity;
import com.atguigu.gulimall.pms.entity.Categor... | 36.034783 | 166 | 0.698359 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.