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 |
|---|---|---|---|---|---|
aca147bb2bd026a66816a93f45c56cc969238f3d | 512 | package io.webby.util.lazy;
import org.jetbrains.annotations.NotNull;
import java.util.function.BooleanSupplier;
public class LazyBoolean {
private final BooleanSupplier supplier;
private boolean computed;
private boolean value;
public LazyBoolean(@NotNull BooleanSupplier supplier) {
this.su... | 21.333333 | 59 | 0.652344 |
d6883c87804adee161e82cd3835394e423b652ce | 5,452 | package co.arcs.groove.basking.task;
import com.beust.jcommander.internal.Lists;
import com.google.common.base.Charsets;
import com.google.common.base.Predicate;
import com.google.common.collect.Collections2;
import com.google.common.io.Files;
import com.mpatric.mp3agic.InvalidDataException;
import com.mpatric.mp3agic... | 37.6 | 99 | 0.630227 |
86c3b5cdc9c80a329722153f46e4f8a8a3de1aec | 9,323 | /*
* 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... | 31.390572 | 132 | 0.547892 |
735b13e6f1422607b53b14b9d5104e08f1a99ce8 | 4,485 | package daoPattern;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import javax.sql.DataSource;
import enumsStore.SettingsFields;
import utilities.CreateErrorLog;
/**
* This is a class for getting data from a "settings" table.
* <p>
* @autho... | 33.222222 | 130 | 0.690524 |
d9fecba3908894b9b0bd756bc58319cd3493644e | 1,577 | package perobobbot.eventsub;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSet;
import lombok.NonNull;
import perobobbot.data.com.SubscriptionIdentity;
import perobobbot.lang.Conditions;
import perobobbot.lang.Nil;
import perobobbot.lang.Platform;
import reactor.core.publish... | 30.326923 | 115 | 0.646164 |
28af32e8df71002aca5a6c71c73ec4c09c6c5c55 | 2,488 | /**
*/
package de.ubt.ai7.csv_validator.sculpt;
/**
* <!-- begin-user-doc -->
* A representation of the model object '<em><b>TL Specifier</b></em>'.
* <!-- end-user-doc -->
*
* <p>
* The following features are supported:
* </p>
* <ul>
* <li>{@link de.ubt.ai7.csv_validator.sculpt.TLSpecifier#getToken <em>To... | 31.493671 | 114 | 0.652331 |
794087ccd0524bd9e03fe008dd100f6448fa18d9 | 872 | package com.application.baatna.data;
public class Coupon {
private int id;
private String validity;
private String name;
private String terms;
private int count;
private String image;
public Coupon() {
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String ... | 13.625 | 43 | 0.673165 |
11148b3b2fdc5ba6488801a28954fb344f405044 | 930 | /**
* Copyright (C) 2012 JBoss Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 35.769231 | 101 | 0.748387 |
fe5d77ca3e8ba7b442a8753a0feba8d6eeb40ecd | 13,686 | /*
* This file was automatically generated by EvoSuite
* Sun Sep 22 02:08:45 GMT 2019
*/
package org.joda.time.chrono;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import java.util.Locale;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.run... | 33.626536 | 176 | 0.673535 |
0134ff5ed9831c3edf0a11f7f28745cee4656297 | 1,640 | package io.ebeaninternal.server.transaction;
import io.ebeaninternal.api.SpiTransaction;
import javax.persistence.PersistenceException;
/**
* Manages the transaction scoping using a Ebean thread local.
*/
public class DefaultTransactionScopeManager extends TransactionScopeManager {
private final ThreadLocal<Sp... | 22.162162 | 111 | 0.685366 |
222179c5a387c9eeb7cfe9c4b0d6ef313780d0cc | 250 | package aarti.draw.exception;
public class InsufficientParametersException extends Exception {
private static final long serialVersionUID = -1210649282949582511L;
public InsufficientParametersException(String message) {
super(message);
}
}
| 20.833333 | 68 | 0.812 |
26b89d5d1447ecfe6d6bae7e0ac265c97fd9b67e | 16,155 | /*
* (C) Copyright IBM Corp. 2021, 2021
*
* SPDX-License-Identifier: Apache-2.0
*/
package org.alvearie.dream.intent.nlp;
import java.io.File;
import java.io.FileFilter;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.Obj... | 36.060268 | 150 | 0.644383 |
b60cf79b6d97792e1bf9bc4f3302cabe8202f067 | 4,612 | /*
* gml-objects - A Java mapping for the OGC Geography Markup Language (GML)
* https://github.com/xmlobjects/gml-objects
*
* Copyright 2019-2020 Claus Nagel <claus.nagel@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licen... | 45.215686 | 164 | 0.700781 |
a3690914da138ba0f548c7111b322b3bde2d2ae7 | 4,085 | package tools.descartes.autoscaling.training.io.database;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import org.springframework.util.StringUtils;... | 46.420455 | 108 | 0.690086 |
36cf060b5fb63bba2bc344397018a12be1eed0e8 | 1,030 | /*
* Copyright (c) 2016 Nick Guo
*
* 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 ... | 30.294118 | 75 | 0.707767 |
c7f01b4d7c9c717dfcad9d553b40363e902b36c1 | 1,112 | package dev.hawu.plugins.hikarilibrary;
import dev.hawu.plugins.api.Tasks;
import dev.hawu.plugins.api.gui.GuiClickEvents;
import dev.hawu.plugins.api.inventories.Inventories;
import dev.hawu.plugins.api.items.BukkitMaterial;
import dev.hawu.plugins.api.particles.ParticlePacketAdapter;
import dev.hawu.plugins.api.part... | 32.705882 | 82 | 0.767986 |
a3e6a64103aaebfe2683cc5eef27417215cd7107 | 2,051 | package io.choerodon.mybatis.util;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import io.choerodon.mybatis.MapperException;
/**
* 参考 org.apache.ibatis.type.SimpleTypeRegistry
*/
public class SimpleTypeUtil {
private SimpleTyp... | 25.962025 | 73 | 0.607996 |
160d917f387dd9a1582136b944476ee197fdb0af | 1,136 | package com.moparisthebest.jdbc.dto;
public class PersonEqualsHashCode {
public static boolean equals(final Person thiss, final Object o) {
if (thiss == o) return true;
if (!(o instanceof Person)) return false;
final Person that = (Person) o;
if (thiss.getPersonNo() != that.getPersonNo()) return false;
if... | 43.692308 | 117 | 0.682218 |
88534124fdeeb5da9232a893a11e3705c0e3c741 | 11,256 | /**
* Licensed to Apereo under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Apereo licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in ... | 44.141176 | 144 | 0.761727 |
9f75b9802ccbe5930bbce2b34f8401c1afe17932 | 445 | package cn.withme.pattern.coupon.factory.domain;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.io.Serializable;
/**
* @author liming
* @Description:优惠券
* @date 2020年01月10日
*/
@Setter
@Getter
@AllArgsConstructor
@ToString
p... | 18.541667 | 74 | 0.779775 |
f581fc367085bdaf3e593a064153ca5dae28d593 | 19,624 | /**
* Copyright (C) 2015 Etaia AS (oss@hubrick.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 46.50237 | 248 | 0.653282 |
1d92b165136fa536635c7fc09554516a74ec0c43 | 17,145 | /**
* Copyright (c) 2019 BITPlan GmbH
*
* http://www.bitplan.com
*
* This file is part of the Opensource project at:
* https://github.com/BITPlan/com.bitplan.vcard
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may o... | 25.475483 | 88 | 0.621172 |
385f7d79438aef9076dac5741347d9bf3791b50a | 2,555 | /**
* Copyright 2016 ZTE Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 30.416667 | 100 | 0.66771 |
2b82fc95a6d50b2a4081bb0a7e67d86182053732 | 650 | package malm.tech.helpers.javahelpers;
import java.util.Enumeration;
import java.util.Iterator;
import java.util.Spliterator;
import java.util.Spliterators;
import java.util.stream.Stream;
import java.util.stream.StreamSupport;
public class CollectionTools {
public static <T> Stream<T> enumAsIter(Enumeration<T> enu... | 24.074074 | 97 | 0.743077 |
89c39e36ae3a27b59828172f9dc407826a78ed42 | 210 | /** Ben F Rayfield offers this software opensource MIT license */
package mutable.util.ui;
import java.util.Map;
public interface ColorAtFraction{
public int colorAtFraction(double fraction, Map params);
} | 23.333333 | 65 | 0.780952 |
9aec1f148e30609a438b47028fa028c06d167aa8 | 2,987 |
/*
* PBrtJ -- Port of pbrt v3 to Java.
* Copyright (c) 2017 Rick Weyrauch.
*
* pbrt source code is Copyright(c) 1998-2016
* Matt Pharr, Greg Humphreys, and Wenzel Jakob.
*
*/
package org.pbrt.textures;
import org.pbrt.core.*;
import org.pbrt.core.PBrtTLogger;
import java.util.Objects;
public class DotsTextu... | 38.294872 | 89 | 0.601607 |
347e921479fe52eb2b2457e2d1580f8eba411aa3 | 1,508 | /*
* 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 ... | 32.085106 | 75 | 0.690981 |
86ce4d324d9306b3eaf7b4cec5e51133d574263e | 2,781 | package com.huaweicloud.sdk.elb.v2.model;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/** 监听器HTTP扩展头部对象。 */
public class InsertHeader {
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonProperty(value = "X-Forwarded-ELB-I... | 29.585106 | 106 | 0.658037 |
e961d3afd2044918d6e88a0beae4ddff8e19eea7 | 2,623 | package graph;
import static org.junit.Assert.assertTrue;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
import fr.tdi.graph.Graph;
import fr.tdi.graph.GraphType;
class GraphOperationsTest {
private Graph<String> getGraph() {
Graph<String> g = new Graph<>();
... | 23.212389 | 67 | 0.613801 |
6dcb1b13eb7fb977a7c0b729888215df43987932 | 1,233 | package fr.insee.pogues.metadata.repository;
import fr.insee.pogues.metadata.client.MetadataClient;
import fr.insee.pogues.metadata.model.ColecticaItem;
import fr.insee.pogues.metadata.model.ColecticaItemRefList;
import fr.insee.pogues.metadata.model.Unit;
import org.springframework.beans.factory.annotation.Autowired;... | 25.6875 | 82 | 0.806164 |
6c09692efbdd46cc4e78f42599640a088a9374e1 | 2,846 | /*--------------------------------------------------------------------------
* FILE: TimePickerFragment.java
*
* PURPOSE: For selecting date and time for a problem.
*
* Apache 2.0 License Notice
*
* Copyright 2018 CMPUT301F18T15
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may... | 29.340206 | 101 | 0.648981 |
fae06c8c16aa543f8e8e4fca429e6c3f86222ee0 | 1,424 | /*
* Copyright 2015 Patrick Ahlbrecht
*
* 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 ... | 24.135593 | 75 | 0.71559 |
cb69b98667ecc2cf288a9d5cd0bf069aa3d5b6b5 | 206 | package net.ravendb.client.serverwide.tcp;
import net.ravendb.client.primitives.UseSharpEnum;
@UseSharpEnum
public enum TcpConnectionStatus {
OK,
AUTHORIZATION_FAILED,
TCP_VERSION_MISMATCH
}
| 17.166667 | 50 | 0.791262 |
d3c7277470b01d411e30dd2a829d24318bf83df9 | 7,390 | // Copyright 2020 The Bazel Authors. 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 by appl... | 30.791667 | 99 | 0.678349 |
1a559767d9ff2f5fd23b7e2b215daaa8679a2f94 | 2,651 | package tbs.server;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.*;
public class TheatreCollection {
private HashSet<Theatre> _TheatreCollection;
public TheatreCollection() {
_TheatreCollection = new HashSet<>();
}
public boolean add(Theatre theatre) {
r... | 35.346667 | 124 | 0.565447 |
7d8aaa920dfa0232e6e58066abe3dd656f617c9e | 1,009 | package at.favre.tools.tagger.analyzer.util;
import java.io.File;
import java.util.List;
/**
* @author PatrickF
* @since 07.04.13
*/
public class FileCounter {
public static int countAllFilesWithGivenExtensions(File root,List<String> extensions) {
return countFillesWithGivenExtension(root,extensions,0);
}
... | 24.02381 | 105 | 0.729435 |
78dc8f16eef40c84bd3849db76658f9cd55db741 | 2,317 | package org.polaris.framework.common.security;
import java.security.SecureRandom;
import javax.crypto.Cipher;
import javax.crypto.KeyGenerator;
import javax.crypto.SecretKey;
import javax.crypto.spec.SecretKeySpec;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache... | 27.915663 | 85 | 0.737592 |
5debc5e7b7a3fc5480b65898d3d5e2860b043e4f | 1,052 | package com.n26.assigment.service;
import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedQueue;
import com.n26.assigment.model.Transaction;
public class TransactionProcessor{
/**
* Queue for handling new transaction as we handle asynchronized, to make
* add transaction request is not blocking.
... | 21.469388 | 74 | 0.735741 |
72465f596b98241a305458b4c2e85a5f2e3ce324 | 4,220 |
package mage.cards.r;
import java.util.UUID;
import mage.Mana;
import mage.abilities.Ability;
import mage.abilities.costs.Cost;
import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.costs.mana.GenericManaCost;
import mage.abilities.effects.Effect;
import mage.abilities.effects.common.ManaEffect;
imp... | 30.57971 | 190 | 0.636493 |
d61a431536c9445e791bb247b5faf21ba193a026 | 704 | // Why should you use the keyword super in your java program? Explain with example
There are two cases where we should use the keyword super in a java program.
1. To call the constructor of the superclass.
2. To access the non-private fields and methods of the superclass.
Example :
class A {
int a;
A... | 20.114286 | 83 | 0.649148 |
8e969b8fbaf9566e7274b24790d5fc30d7c0d6f7 | 7,083 | package com.codes.persistence.hibernate.dao.impl;
import static com.codes.common.util.$.notEmpty;
import static com.codes.common.util.$.notNull;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.... | 33.098131 | 111 | 0.719752 |
54e4e7a24d24d20a39a914ae1f3680d31625d2ad | 2,299 | package org.nc.usermanagement.application.usecases.role.delete;
import org.junit.jupiter.api.Test;
import org.nc.usermanagement.application.usecases.role.RoleRepository;
import org.nc.usermanagement.application.usecases.role.create.CreateRole;
import org.nc.usermanagement.application.usecases.role.create.dto.CreateRol... | 33.808824 | 103 | 0.689865 |
c0053fc2b6aae9f0abef10eb406e617fb0aa435c | 867 | package com.mindata.blockchain;
/**
* Created by liupengfei on 2019/3/11.
*/
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
public class SqliteTest {
public static void main(String[] args) throws ClassNotFoundExcepti... | 27.967742 | 88 | 0.632065 |
b80500ceb14fa9529540bf3fe2ea75fd8d476592 | 268 | package seedu.thanepark.ui.exceptions;
/**
* Represents an error which occurs during handling of UI features. Non-fatal.
*/
public class AccessibilityException extends Exception {
public AccessibilityException(String message) {
super(message);
}
}
| 22.333333 | 78 | 0.735075 |
3f7af9483b8d8a18f09da8d84a938db8949ce4fd | 228 | package com.mydreamplus.smartdevice.domain.in;
/**
* Created with IntelliJ IDEA.
* User: liji
* Date: 16/7/11
* Time: 下午2:51
* To change this template use File | Settings | File Templates.
*/
public class BaseRequest {
}
| 19 | 64 | 0.697368 |
a7c15e5058c48c7b139422d4ba0ac44ca30c078d | 66,250 | /*
Copyright 2018 - 2021 Volker Berlin (i-net software)
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 applicab... | 40.49511 | 170 | 0.526762 |
70a53efa4694dc024ccdd60fcc18632c62d79abf | 9,856 | package gaia.model;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.init.Items;
import net.minecraft.inventory.EntityEquipmentSlot;
import net.minecraft.item.ItemStack;
import net.minecraft.util.math.MathHelper;
imp... | 38.20155 | 161 | 0.706473 |
92588876193762094eb86ce66ccbb0344502dcac | 1,185 | package com.ai.sizzler.scan.component;
import java.sql.Date;
import java.util.Map;
public abstract class AbstractExporter implements Exporter{
private long id;
private String name;
private String desc;
private String props;
private Date ctime;
private long dsId;
@Override
public void load(Map map) {
this.... | 19.112903 | 59 | 0.679325 |
3dccce5da70996a460872e40a03973a3e81b475f | 2,242 | /*
* Copyright 2021 Cufy
*
* 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 writ... | 26.376471 | 86 | 0.714987 |
bd35ee730684a8490c170af1ff8007293e980413 | 540 | package com.bugsnag.mazerunner.scenarios;
import com.bugsnag.Bugsnag;
/**
* Attempts to send a handled exception to Bugsnag, when the release stage is not included.
* This should result in no operation.
*/
public class OutsideReleaseStageScenario extends Scenario {
public OutsideReleaseStageScenario(Bugsnag b... | 24.545455 | 91 | 0.705556 |
922f8d330f31b4f68c4d2b78cf2f7612b55ba7d3 | 5,719 | package net.jspiner.animation;
import android.animation.Animator;
import android.animation.ValueAnimator;
import android.view.View;
import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;
import android.view.animation.Interpolator;
import android.view.animation.LinearInterpolator;
impor... | 30.420213 | 116 | 0.63665 |
fe694209c39944dca9f954d1bf77e62633a6cb79 | 5,001 | /*
* Copyright 2018 Murat Artim (muratartim@gmail.com).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 27.783333 | 181 | 0.718256 |
2aa68524a8eb4afdf8bb90172cd8e0d946627d4b | 2,727 | package com.oberasoftware.jasdb.writer.transactional;
import com.oberasoftware.jasdb.api.exceptions.JasDBStorageException;
import com.oberasoftware.jasdb.api.storage.RecordIterator;
import com.oberasoftware.jasdb.api.storage.RecordResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Itera... | 27.545455 | 123 | 0.648698 |
1cf07ce2b1ec52ffd8a49446d4d29a076db120b3 | 1,920 | package io.github.ennuil.damageincorporated.mixin.general;
import net.minecraft.block.BlockState;
import net.minecraft.block.PowderSnowBlock;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import org.spong... | 34.285714 | 156 | 0.769792 |
876317ff00886d7206d0c0bac40e6e6c22cda771 | 798 | /** Generated Assertion Class - DO NOT CHANGE */
package au.org.greekwelfaresa.idempiere.test.assertj.r_requesttypeupdates;
import javax.annotation.Generated;
import org.compiere.model.X_R_RequestTypeUpdates;
/** Generated assertion class for R_RequestTypeUpdates
* @author idempiere-test model assertion generator
... | 39.9 | 134 | 0.808271 |
65057ff4169d512c6a6eccd2e3bf98e7956dce52 | 1,274 | package org.mongojack;
import com.fasterxml.jackson.databind.cfg.ConfigFeature;
public enum MongoJackModuleFeature implements ConfigFeature {
/**
* Register the java time module on configuration
*/
REGISTER_JAVA_TIME(true),
/**
* Disable writing dates as timestamps {@code objectMapper... | 25.48 | 130 | 0.689953 |
bd35b1782326b8325a8972003e5d892200388910 | 220 | package com.consequentialdata.rest.repository.interfaces.custom;
import java.util.Map;
/**
* Created by Eriel.Marimon on 8/19/17.
*/
public interface LocationRepositoryCustom {
Map<String,String> getUrlsMap();
}
| 20 | 64 | 0.754545 |
d0fbe13cc814abea71a4121ff3311705aae5c81e | 2,864 | /*
* 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 ... | 27.27619 | 93 | 0.728701 |
0760d1e13cef643e87b6c0212c36f3b671eedcbd | 2,033 | package com.spike.bot.adapter;
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.spike.bot.R;
import com.spike.bot.core.Common;
imp... | 26.402597 | 110 | 0.641909 |
808601fc6fe774ca1e480e3e001a8a883b2ae4cd | 2,759 | package org.ekstep.genieservices.commons.bean;
import org.ekstep.genieservices.commons.utils.StringUtil;
/**
* Created on 13/3/18.
*
* @author anil
*/
public class FrameworkDetailsRequest {
private String frameworkId;
private String[] categories;
private boolean refreshFrameworkDetails;
private S... | 29.666667 | 128 | 0.621602 |
086782d6aadc486e1fa04ca192420b350370ce90 | 1,658 | /*
* Copyright 2010-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 "lice... | 34.541667 | 95 | 0.651387 |
f46727e87925cb489e64bd4ef87e8e72ffb3a466 | 110 | package de.heinerkuecker.coroutine;
public interface HasVariableName
{
String getVariableName();
}
| 15.714286 | 36 | 0.745455 |
ef322aea4e48ea7d1c5957325e93c89196f76e57 | 865 | package net.savantly.sprout.franchise.domain.market;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import net.savantly.sprout.rest.crud.TenantedDtoController;
@RestController
@RequestMapping("/api/fm/markets")
public class FranchiseMarke... | 26.212121 | 98 | 0.811561 |
f9c96e08089a38d9f7d5ba2976bacacf015af8e8 | 769 | package com.example.ori.jnidemo.utils.crc;
import com.example.ori.jnidemo.utils.CommonUtil;
/**
* @author hblolj
*/
public class CRCUtils {
public static String getCRC(byte[] bytes) {
int crc = 0x1919;
for (byte b : bytes) {
crc = (crc << 8) ^ CRCTab.crc_tab[((crc >>> 8) ^ b) & 0xf... | 23.30303 | 76 | 0.553966 |
fead5948dd65dbfe31ec925f5cb25fe9dc1fe23d | 2,507 | package zario.ch.forweather;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.NetworkOnMainThreadException;
import android.support.annotation.WorkerThread;
import android.support.v7.app.AppCompa... | 30.573171 | 84 | 0.666933 |
a6bd6ee4e320c5771ac8026cdbdbc47ad91644e4 | 1,952 | package com.onehao.acts.testgen.common;
import java.util.ArrayList;
import choco.Choco;
import choco.kernel.model.variables.integer.IntegerVariable;
import choco.kernel.solver.variables.integer.IntDomain;
import edu.uta.cse.fireeye.common.Parameter;
/**
*
* @author wanhao01 refactor from FireEye2.8
*... | 26.739726 | 80 | 0.580943 |
18d30b3ad51210fc23d09394cd804f74d6cbcef6 | 8,828 | package com.ppmessage.sdk.core.bean.common;
import com.ppmessage.sdk.core.L;
import com.ppmessage.sdk.core.PPMessageSDK;
import com.ppmessage.sdk.core.bean.message.PPMessage;
import com.ppmessage.sdk.core.utils.Utils;
import org.json.JSONException;
import org.json.JSONObject;
/**
* Created by ppmessage on 5/6/16.
... | 35.312 | 142 | 0.623018 |
6ddec7174173891d5a8f2ee6916d6200bdd366e2 | 4,692 | package com.tangkuo.cn.sign;
import javax.crypto.Cipher;
import javax.crypto.SecretKey;
import javax.crypto.SecretKeyFactory;
import javax.crypto.spec.DESKeySpec;
import javax.crypto.spec.DESedeKeySpec;
import org.apache.commons.lang3.StringUtils;
import com.tangkuo.cn.common.Constants;
import com.tangkuo... | 29.696203 | 86 | 0.673913 |
1b70ca45b737dda4c378d23beb9767cf2783f2f2 | 13,593 | package com.example.cjh.aboutball.activity;
import android.content.Intent;
import android.os.Handler;
import android.os.Message;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.RecyclerView;
import android.sup... | 47.034602 | 141 | 0.482307 |
883491cc8aeca63bab2ccd5d897247486f2bf80e | 1,149 | /*******************************************************************************
* Copyright 2017 Chris Deter, Arne Salveter, Sven Marquardt
*
* 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 L... | 34.818182 | 81 | 0.626632 |
9bc63e8164780ab81a3f9b87eb72f1b8870dbb17 | 2,052 | package net.steamcrafted.lineartimepickerexample;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Rect;
import net.steamcrafted.lineartimepicker.adapter.BaseTextAdapter;
/**
* Created by Wannes2 on 11/04/2017.
*/
... | 24.722892 | 113 | 0.562865 |
77e3b37e295b7ed3bcf68ca02f74237b48f8c27d | 1,778 | package com.aliyun.odps.udf.example.speech.transform;
import com.aliyun.odps.Column;
import com.aliyun.odps.OdpsType;
import com.aliyun.odps.data.ArrayRecord;
import com.aliyun.odps.data.Binary;
import com.aliyun.odps.data.Record;
import com.aliyun.odps.io.InputStreamSet;
import com.aliyun.odps.io.SourceInputStream;
i... | 32.925926 | 101 | 0.745782 |
baed713373f581c66efae7ce7ada4c4c9bd71df3 | 706 | package org.einnovator.devops.client.modelx;
import org.einnovator.devops.client.model.Pod;
import org.einnovator.util.model.EntityOptions;
import org.einnovator.util.model.ToStringCreator;
public class PodOptions extends EntityOptions<Pod> {
//
// Constructors
//
/**
* Create instance of {@co... | 15.021277 | 60 | 0.630312 |
60aea8636c843760419f8ac8454df6829040c76a | 2,469 | package ioc;
import beans.Person;
import beans.Phone;
import beans.factory.config.BeanDefinition;
import beans.factory.config.BeanReference;
import beans.factory.config.PropertyValue;
import beans.factory.config.PropertyValues;
import beans.factory.support.DefaultListableBeanFactory;
import org.junit.jupiter.api.Asser... | 48.411765 | 105 | 0.750911 |
ce462620376aa5814b6b8d91440d6256b4775c97 | 2,590 | /**
* The MIT License (MIT)
* <p>
* Copyright (c) 2016-2021 the original author or authors.
* <p>
* 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 restriction, including without... | 30.833333 | 80 | 0.704247 |
c97cea46dee08e6fa0cd27a6fededd922715ba6b | 12,329 | package com.jnape.palatable.lambda.adt.hlist;
import com.jnape.palatable.lambda.adt.Maybe;
import com.jnape.palatable.lambda.adt.hlist.HList.HCons;
import com.jnape.palatable.lambda.adt.product.Product8;
import com.jnape.palatable.lambda.functions.Fn1;
import com.jnape.palatable.lambda.functions.builtin.fn2.Into;
impo... | 29.146572 | 122 | 0.537838 |
c82f1c55c0fb8e38c22e5e54c1fe6f47d1040fed | 24 | module datastructure {
} | 12 | 22 | 0.791667 |
56cca25852b7a29d0de1d52a916be76f66a5a986 | 1,321 | package se.claremont.taf;
import se.claremont.taf.core.gui.Gui;
import se.claremont.taf.core.testrun.CliTestRunner;
import se.claremont.taf.restsupport.gui.RestTestStep;
public class TAF implements Runnable{
String[] args;
public TAF(String[] args){
this.args = args;
}
public static void ma... | 30.72093 | 151 | 0.647994 |
410a44f617efac1e3814b0600ca4874bf28fce62 | 16,872 |
package com.archos.filemanager;
import com.archos.environment.SystemPropertiesProxy;
import com.archos.filecorelibrary.MetaFile2;
import com.archos.filecorelibrary.RawListerFactory;
import com.archos.filecorelibrary.ftp.AuthenticationException;
import com.archos.filecorelibrary.localstorage.JavaFile2;
import com.jcra... | 37.4102 | 121 | 0.617651 |
3b08c2be48eb1ace5b760ad5a00a80f56cb9d6c0 | 3,599 | package de.materna.jdec.dmn.functions;
import com.fasterxml.jackson.core.type.TypeReference;
import de.materna.jdec.serialization.SerializationHelper;
import org.apache.http.Header;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpEntityEnclosingRequestBase;
import... | 37.884211 | 313 | 0.717699 |
cc8f00e592bd21ec7d8f12ec9a9c2ec97277dd1c | 2,220 | package com.egoveris.sharedsecurity.base.util;
public class Constantes {
public static final String SOLR_FIELD_USERNAME = "username";
public static final String SOLR_FIELD_NOMBRE_APELLIDO = "nombre_apellido";
public static final String SOLR_FIELD_CODIGO_REPARTICION = "codigo_reparticion";
public static final Str... | 60 | 99 | 0.836486 |
5a506aec06ec8ba2eddbc5ca0fb1ad1b233bff6d | 611 | package com.demo.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
/**
* 页面跳转controller
*
* @author wzb
*
*/
@Controller
public class IndexController {
@R... | 18.515152 | 67 | 0.680851 |
baa3deae4be110a14071842f7e2e6d77a59aa4b5 | 636 | package ota.client12 ;
import com4j.*;
/**
* <p>
* Extended Storage file deletion flags. These can be used individually or combined with bitwise OR.
* </p>
*/
public enum TDAPI_EXSTOR_DELMODE implements ComEnum {
/**
* <p>
* Delete local file(s).
* </p>
* <p>
* The value of this constant is 1
... | 18.171429 | 100 | 0.602201 |
2f83f0a37d88c1b9fa6f62259243785a0170bbe6 | 857 | package br.com.abril.fera.service.staticengine;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.any;
import java.io.IOException;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.powermock.modules.junit4.PowerMockRunner;
import br.com.abri... | 24.485714 | 66 | 0.786464 |
239233c19df12b4bf02067d99ee886e8577931e5 | 5,924 | /*
* Copyright (c) 2005-2010, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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.o... | 43.881481 | 120 | 0.66239 |
fbda53d152caee35c56de1aa2e777c40b3728615 | 2,591 | /*-
* #%L
* OfficeCompiler
* %%
* Copyright (C) 2005 - 2020 Daniel Sagenschneider
* %%
* 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... | 27.56383 | 108 | 0.74836 |
d9f0f9433f65ebf7ae1be937685c8d4700d0977d | 143 | package Kmeans;
public class Main {
public static void main(String[] arges)
{
new K_means().kMeansCluster();
}
}
| 15.888889 | 46 | 0.573427 |
c989df359bda876f31a0be40945a061e9f5bdd90 | 686 | package com.moyang.zero.req;
import com.moyang.zero.common.enums.PlatCodeEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.StringUtils;
/**
* @Author: moyang
* @ClassName: AccountLoginReq
* @Date: 2021/8/20 22:31
* @Description: 用户账号密码登录请求... | 16.333333 | 88 | 0.71137 |
2b89c8c75db325150abb4626c9e0c8f9270c7849 | 1,980 | package ru.job4j.catalog;
import org.junit.Test;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import static org.junit.Assert.assertThat;
import static org.hamcrest.core.Is.is;
public class CatalogTest {
@Test
public void whenListSortAscendingThenListSorted() {
Catalog ... | 28.285714 | 60 | 0.425758 |
a55a10ef65a5a36087b1ad91c0f524b0a49632c9 | 1,373 | /*
* Copyright (c) 2015 Exploring Spatial. The MIT License (MIT)
*/
package com.exploringspatial.dao;
import com.exploringspatial.domain.Conflict;
import java.util.List;
/**
* This DAO leverages the CSVREAD feature of the H2 Database Driver to read a CSV file directly in a ResultSet.
* It requires the name of t... | 38.138889 | 132 | 0.748725 |
02c5bc184d05fae66530593b8892f42c3ffc35a8 | 2,925 | package org.eclipse.mat.parser.model;
import java.io.IOException;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.mat.SnapshotException;
import org.eclipse.mat.collect.ArrayLong;
import org.eclipse.mat.snapshot.model.Field;
import org.eclipse.mat.snapshot.model.IPr... | 33.238636 | 121 | 0.673504 |
d7032c743caa548f5820cc8121c3848c1459ff60 | 927 | package com.xhyan.zero.account;
import com.xhyan.zero.cloud.account.AccountApplication;
import com.xhyan.zero.cloud.account.mapper.AccountMapper;
import com.xhyan.zero.cloud.account.model.Account;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
imp... | 28.090909 | 62 | 0.770227 |
7cbeab99d3accf1c8fe37e788dbc1074e6476589 | 1,409 | // Generated by Haxe 4.0.5
package connect.util;
import haxe.root.*;
@SuppressWarnings(value={"rawtypes", "unchecked"})
public class Diff_mapToObject_306__Fun extends haxe.lang.Function
{
public Diff_mapToObject_306__Fun(java.lang.Object obj, haxe.ds.StringMap map)
{
//line 306 "/home/travis/build/JaviCerveraIngr... | 35.225 | 162 | 0.745919 |
699bd1609dd1ee485d26d82d447b3d136aae469a | 4,934 | package pl.dplewa.shoppinglistapp.activity.shop;
import android.Manifest;
import android.content.pm.PackageManager;
import android.location.Criteria;
import android.location.Location;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.ActivityCompat;
import android.view.... | 40.113821 | 179 | 0.674909 |
efc3f76abca438d5b795056307046bc4b0bc4592 | 12,049 | package dbxmltest;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import com.sleepycat.dbxml.*;
public class... | 40.163333 | 128 | 0.604117 |
7904b86e0f08a5965f67bf59698642395fc201c0 | 564 |
static enum ReduceCounters {
UNIQUE_WORDS_COUNTED
}
private IntWritable count = new IntWritable();
public void reduce(Text key, Iterable<IntWritable> values, Context context)
throws IOException, InterruptedException {
int sum = 0;
f... | 29.684211 | 83 | 0.560284 |
7443cb1b23df6c50c10d263e000b3d6fdc608537 | 2,364 | package uw.httpclient.json;
import uw.httpclient.http.*;
/**
* Json接口助手
* @author liliang
* @since 2017/9/20
*/
public class JsonInterfaceHelper extends AbstractHttpInterface {
private HttpHelper httpHelper;
private ObjectMapper jsonConverter;
private HttpMessageCallBack callBack;
... | 24.884211 | 130 | 0.64467 |
490bb806181805096d3d83bd88e230c28a726def | 1,492 | package com.bbva.pibee.cbd.mappers;
import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;
import com.bbva.pibee.aop.LogNetCashMovil;
import com.bbva.pibee.arq.annotations.UtilDto;
import com.bbva.pibee.dto.cbd.OperationSignerDto;
public class OperationSignerMapper ... | 32.434783 | 91 | 0.769437 |
96ca66ad5098cc6e8845a31db2bafaa9b961a1ee | 1,844 | /**
* Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.component.factory;
/**
* Component info attribute names.
* <p>
* See {@link com.opengamma.component.ComponentInfo#getAttributes()}.
* <p>
* This is a clas... | 31.254237 | 86 | 0.710954 |
4cf9eaf8b631d44265a5e31740e2f33b5dc94f3d | 7,164 | /*
* This file was automatically generated by EvoSuite
* Tue Mar 22 23:31:32 GMT 2022
*/
package org.jsoup.parser;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import java.io.PipedReader;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runt... | 34.277512 | 176 | 0.672948 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.