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 |
|---|---|---|---|---|---|
55181cfd38a623c776dfdb5bf9459d6e7b9c9320 | 1,020 | package com.fanling.dreamland.module.controller;
import com.fanling.dreamland.common.R;
import com.fanling.dreamland.common.web.BaseController;
import com.fanling.dreamland.module.response.UserSale;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOper... | 37.777778 | 108 | 0.778431 |
fbf2fe1c062221e7c22d8d40ba433608f7bf1c0c | 4,864 | package com.epicodus.stonesoup.adapters;
import android.content.Context;
import android.content.Intent;
import android.content.res.Configuration;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutI... | 38 | 120 | 0.694696 |
146994b4f7e5183539b082ee3e458a19b86bb44c | 13,625 | /**
* 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... | 36.333333 | 92 | 0.692991 |
82f4d24fb8f1215603389d64e9572480f80ba731 | 1,505 | /*
Copyright 2016-2020 Bowler Hat LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softwar... | 34.204545 | 72 | 0.772757 |
fa5ce6f89ad766f99d52bb7590932174f486c45f | 2,482 | /*
* LensKit, an open-source toolkit for recommender systems.
* Copyright 2014-2017 LensKit contributors (see CONTRIBUTORS.md)
* Copyright 2010-2014 Regents of the University of Minnesota
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentati... | 34.472222 | 75 | 0.714746 |
75912e222ebdd2d56fb849c5ee71b36ec274f4b3 | 4,240 | /*
* Copyright (c) 2010 WiYun Inc.
* Author: luma(stubma@gmail.com)
*
* For all entities this program is free software; you can redistribute
* it and/or modify it under the terms of the 'WiEngine' license with
* the additional provision that 'WiEngine' must be credited in a manner
* that can be be observed by en... | 36.239316 | 87 | 0.741038 |
4435c2af33591366bdc146fec1f1b22d394a819f | 11,843 | package edu.mayo.cts2.framework.webapp.soap.endpoint.conceptdomainbinding;
import java.util.concurrent.Callable;
import org.springframework.ws.server.endpoint.annotation.Endpoint;
import org.springframework.ws.server.endpoint.annotation.PayloadRoot;
import org.springframework.ws.server.endpoint.annotation.RequestPayl... | 44.522556 | 115 | 0.792198 |
10da4ac7eae44b661b7081a78c2d404b4a34b342 | 7,511 | package pond.db;
import java.math.BigDecimal;
import java.sql.ResultSet;
import java.sql.Types;
import static pond.common.f.Function.F2;
public class MappingRule {
/*BASIC JDBC types*/
final public Object getNilOfType(int sqlType) {
switch (sqlType) {
case Types.CHAR:
return '\0';
case ... | 23.694006 | 71 | 0.614299 |
14666ed0ac0148c6b6525b7da50977c6af53e80d | 7,760 | package se.magnus.microservices.composite.product;
import static java.util.Collections.singletonList;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.springframework.boot.test.context.SpringBootT... | 40.207254 | 166 | 0.754124 |
cb4aa228e6aef3292c2ac67fc62c700b63f19805 | 3,891 | package com.conveyal.r5.speed_test.test;
import com.conveyal.r5.profile.otp2.util.TimeUtils;
import javax.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.Set;
import java.util.TreeSet;
import java.util.regex.Matcher;
import java.util.regex.... | 31.634146 | 154 | 0.604472 |
707bd229f2a8c8c4338a624d3541812782247191 | 1,579 | package org.pmiops.workbench.testconfig;
import com.google.common.base.Stopwatch;
import java.util.concurrent.TimeUnit;
import org.pmiops.workbench.config.WorkbenchConfig;
import org.pmiops.workbench.db.model.DbUser;
import org.pmiops.workbench.model.ReportingUser;
import org.pmiops.workbench.testconfig.fixtures.Repor... | 36.72093 | 89 | 0.819506 |
537dbf2da004d2ba4494e4015810a2aa09935466 | 481 | package configuration;
import accountinfo.AccountInfoPortType;
import org.mockito.Mockito;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
/**
* Created by Salmondx on 09/09/16.
*/
@Configuration
... | 22.904762 | 60 | 0.775468 |
afc72958b52af0096fe33935c46dc7f590797c27 | 3,446 | package rocks.inspectit.server.diagnosis.engine.session;
import static com.google.common.base.Preconditions.checkNotNull;
import java.util.Set;
import org.apache.commons.pool.BasePoolableObjectFactory;
import rocks.inspectit.server.diagnosis.engine.DiagnosisEngine;
import rocks.inspectit.server.diagnosis.engine.Dia... | 36.273684 | 141 | 0.706036 |
2267c6db7e6812412d0d3ba275e34ed7fe0b8eb9 | 1,366 | /*
*
* Copyright 2016 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 29.06383 | 104 | 0.681552 |
5ca83b061850b6335ab8c8367bab08d17e0e63c8 | 1,220 | package com.drajer.EicrFhirvalidator.configuration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import ca.uhn.fhir.context.FhirContext;
@Configuration
@ComponentScan(basePackages = { "com... | 28.372093 | 76 | 0.793443 |
e3ce4babff1636db4daa8e9490006045a258f016 | 1,655 | package io.improbable.keanu.vertices.intgr.nonprobabilistic;
import io.improbable.keanu.annotation.ExportVertexToPythonBindings;
import io.improbable.keanu.network.NetworkSaver;
import io.improbable.keanu.tensor.intgr.IntegerTensor;
import io.improbable.keanu.vertices.ConstantVertex;
import io.improbable.keanu.vertic... | 29.553571 | 117 | 0.743202 |
8d7bd6f7b47e184eeab62d61b974a5dfeddb00c4 | 370 | package com.ovit.nswy.member.service;
import java.util.List;
import java.util.Map;
public interface LandUseQuoService {
Integer saveLandPlot(Map<String, Object> params);
Integer deleteLandPlot(Map<String, Object> params);
List<Map<String,Object>> queryLandPlot(Map<String, Object> params);
void upda... | 24.666667 | 71 | 0.756757 |
f452e480375bc40c41bef88174031351e925c56b | 2,760 | /*
* Copyright 2017 Red Hat, Inc. and/or its affiliates.
*
* 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... | 33.658537 | 113 | 0.726087 |
6b4efe4cc6a86086eb696a21a5228017fdab51b7 | 5,499 | package io.dolby.sdk.video;
import android.util.Log;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.facebook.react.bridge.ReadableArray;
import com.facebook.react.bridge.ReadableMap;
import com.facebook.react.common.MapBuilder;
import com.facebook.react.uimanager.SimpleViewManage... | 34.15528 | 117 | 0.641935 |
b639eec565a5e677abb2d36d90c3e78d68d90053 | 2,543 | package seedu.address.storage;
import java.io.IOException;
import java.nio.file.Path;
import java.util.Optional;
import java.util.logging.Logger;
import seedu.address.commons.core.LogsCenter;
import seedu.address.commons.exceptions.DataConversionException;
import seedu.address.model.ReadOnlyGoalBook;
import seedu.add... | 33.025974 | 111 | 0.717263 |
ea0f5f585cb8163659ab9efcab6f6e10181bc43f | 411 | package com.sengami.gui_base.database;
import com.sengami.data_base.util.DatabaseConnectionProvider;
import org.jetbrains.annotations.NotNull;
import dagger.Module;
import dagger.Provides;
@Module
public final class DatabaseConnectionProviderModule {
@Provides
@NotNull
DatabaseConnectionProvider databa... | 22.833333 | 61 | 0.798054 |
bf1a7afe24384da1346459a9a1e3c43efddc3de2 | 2,570 | package com.github.pedrolamarao.gradle.qemu;
import java.io.IOException;
import java.nio.file.Files;
import javax.inject.Inject;
import org.gradle.api.Action;
import org.gradle.api.file.ProjectLayout;
import org.gradle.api.model.ObjectFactory;
import org.gradle.api.plugins.ExtensionAware;
import org.gradle.api.tasks... | 31.341463 | 110 | 0.707004 |
07ebb80391c124de9296e77d13028e84e6d6ace8 | 466 | package agostinodd.customtables.models;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Generated;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import java.util.UUID;
@AllArgsConstructor
@NoArgsConstructor
@Data
public class CustomDataMap {
@Id
@Generat... | 21.181818 | 54 | 0.793991 |
90229d1f9990616350e2dcfad7480c786c19aabb | 2,356 | package org.monster.strategy.analyse.protoss;
import bwapi.UnitType;
import org.monster.common.UnitInfo;
import org.monster.strategy.constant.EnemyStrategy;
import org.monster.strategy.analyse.Clue;
import org.monster.strategy.analyse.UnitAnalyser;
import org.monster.strategy.manage.ClueManager;
import org.monster.str... | 41.333333 | 132 | 0.657895 |
221c444e3dc1b67e545d55e125cf043de16aeaef | 6,498 | /**
* Copyright 2018-20 UKRI Science and Technology Facilities Council
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unles... | 38.91018 | 163 | 0.71345 |
213a56358182b3ab9a47489581bf9910b79da174 | 2,408 | package org.pingpong.romansgohome.domain;
import static org.junit.Assert.*;
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.Before;
import org.pingpong.romansgohome.domain.TranslatorRomanNumbers;
import org.junit.BeforeClass;
import org.junit.Test;
import java.util.*;
public class Transl... | 29.012048 | 82 | 0.625 |
030471c1ea63e4d3ac356013d59e1b800b26c356 | 843 | package org.leetcode.str;
import java.util.*;
/**
* https://leetcode.com/problems/group-anagrams/
*/
public class GroupAnagrams_49 {
public static void main(String[] args) {
String[] arr = new String[]{"eat", "tea", "tan", "ate", "nat", "bat"};
System.out.println(new GroupAnagrams_49().groupAna... | 28.1 | 78 | 0.54567 |
94d0cfd1e1829f151a5cb24f2acb2dd9dbc8feca | 494 | package com.msay2.mire.item_data;
public class ItemDataWallpaper
{
private String imageUrl, title, text;
public ItemDataWallpaper()
{ }
public String getImageUrl()
{
return imageUrl;
}
public String getTitle()
{
return title;
}
public String getText()
{
return text;
}
public void setImageU... | 12.35 | 38 | 0.674089 |
367a9a2a570c646e879fb0c8b8f09af9bdc5a18e | 9,908 | /**
* Copyright 2017 Syncleus, Inc.
* with portions copyright 2004-2017 Bo Zimmerman
*
* 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... | 41.630252 | 137 | 0.5435 |
863f81d7f69d2b393f177a1abc50736ce94f8644 | 3,163 | /**
*
* Generated by JaxbToStjsAssimilater.
* Assimilation Date: Thu Sep 12 10:06:03 CDT 2019
*
**/
package s3000l;
import org.cassproject.schema.general.EcRemoteLinkedData;
import org.stjs.javascript.Array;
import s6000t.SubtaskTrainingLevelDecision;
public class TaskMaterialResourceByReference extends EcRemot... | 23.962121 | 88 | 0.664243 |
30236eee08cea57e936394d3aee8030b23b4aeca | 13,930 | /*
* Copyright (c) 1998-2018 John Caron and University Corporation for Atmospheric Research/Unidata
* See LICENSE for license information.
*/
package ucar.nc2.ft.fmrc;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Date;
import java.util.Formatter;
i... | 29.828694 | 133 | 0.621752 |
ae0d1be90fa46927a9ad7dbced4c4b02a7b58414 | 4,332 | package jp.cafebabe.commons.bcul.updater;
import java.util.HashMap;
import java.util.Map;
import org.apache.bcel.classfile.CodeException;
import org.apache.bcel.classfile.LineNumberTable;
import org.apache.bcel.classfile.LocalVariable;
import org.apache.bcel.classfile.LocalVariableTable;
import org.apache.bcel.generi... | 24.754286 | 84 | 0.646353 |
8f3013320dcc6c83725750ebf45b7aea4dbc1774 | 1,330 | package com.github.vvv1559.algorithms.leetcode.stack;
import com.github.vvv1559.algorithms.annotations.Difficulty;
import com.github.vvv1559.algorithms.annotations.Level;
import java.util.Stack;
/*
* Original text: https://leetcode.com/problems/valid-parentheses/#/description
*
* Given a string containing just t... | 30.227273 | 121 | 0.510526 |
cc42652ca9adc2b1b21ed1fe54a515c27e250f61 | 4,950 | package com.example.momentum;
import static org.junit.Assert.assertTrue;
import android.app.Activity;
import android.widget.EditText;
import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.rule.ActivityTestRule;
import com.example.momentum.login.LoginActivity;
import com.robotium.solo.Solo;... | 28.612717 | 106 | 0.636162 |
a7b6dd45095562b5265f1d5123fbac86bee8d751 | 1,434 | package com.cp3.base.basic.entity;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.time.Loc... | 29.265306 | 103 | 0.746165 |
22adb3bdbd340c0d52eb9b2bd2fe69e4bede93f0 | 7,395 | package com.alicp.jetcache.anno.field;
import com.alicp.jetcache.anno.CreateCache;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.BeansException;
import org.springframework.beans.PropertyValues;
import org.springframework.beans.factory.BeanCreationException;
import org.spring... | 40.856354 | 125 | 0.646924 |
ee26658df11c820de5f9e7cb58ee172a3f9bc94a | 3,839 | /*
* Copyright (C) 2017 Dremio 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... | 31.211382 | 104 | 0.705913 |
6b994cec10de11d5777a8c85167a45e01e30cc8f | 177 | package javax.media;
public class IncompatibleSourceException extends MediaException {
public IncompatibleSourceException(String message) {
super(message);
}
}
| 22.125 | 65 | 0.757062 |
724e31b2c1b9b9edb8c2e6a20c796b002f6a0a65 | 4,093 | package com.xiaojukeji.kafka.manager.common.entity.vo.common;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* Topic信息
* @author zengqiao
* @date 19/4/1
*/
@ApiModel(description = "Topic信息概览")
public class TopicOverviewVO {
@ApiModelProperty(value = "集群ID")
pri... | 23.388571 | 61 | 0.607378 |
a64669ce247470a279d2f7a69340b6dcf7f11344 | 473 | package com.guircai.design.structural.bridge;
/**
* 抽象销售渠道
* PhoneOnSale == howToSale
* PhoneOffSale == howToSale
* PhoneStudentSale == howToSale
* PhonePDD == howToSale
*/
public abstract class AbstractSale {
private String type;
private Integer price;
public AbstractSale(String type, Integer price... | 20.565217 | 53 | 0.627907 |
26ee77f7a42241bbd7615146144ae570bf81b4d5 | 1,410 | package frc.team5973.robot.rapidreact.commands.defaultCommands;
import java.util.Map;
import java.util.function.BooleanSupplier;
import edu.wpi.first.util.sendable.SendableBuilder;
import edu.wpi.first.util.sendable.SendableRegistry;
import edu.wpi.first.wpilibj2.command.CommandBase;
import frc.team5973.robot.rapidre... | 22.380952 | 98 | 0.675177 |
cd341715d754828a9251a79e7b318b9861ef462e | 1,831 | package com.aliyun.openservices.log.logback;
import ch.qos.logback.classic.LoggerContext;
import ch.qos.logback.core.status.Status;
import ch.qos.logback.core.status.StatusManager;
import com.aliyun.openservices.aliyun.log.producer.ProducerConfig;
import org.junit.AfterClass;
import org.junit.Test;
import org.slf4j.Lo... | 33.290909 | 92 | 0.687602 |
e621892c40dde56e7d2460e8e2dd37cfac277600 | 669 | package real;
import java.util.concurrent.Semaphore;
/**
* Created by jm on 10/4/2014.
*/
public class Thread1 implements Runnable {
Semaphore[] sem;
String str;
Thread thr;
public Thread1(Semaphore[] semact, String name) {
thr = new Thread();
this.str = name;
... | 20.90625 | 101 | 0.530643 |
0d40a574d0be1a138418958f888ae5b8ce285d05 | 1,278 | //package cn.liyu.springbootkafka.controller;
//
//
//
//import cn.liyu.springbootkafka.entity.Book;
//import cn.liyu.springbootkafka.service.BookProducerService;
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.b... | 32.769231 | 87 | 0.716745 |
76d1a1aad119f17d465fbfdcbbce3a62b131a522 | 812 | package org.study.juli.spi.examples.example4;
import org.study.juli.logging.base.Log;
import org.study.juli.logging.base.LogFactory;
/**
* This is a class description.
*
* <p>Another description after blank line.
*
* @author admin
*/
public class Examples8 {
private static final Log log = LogFactory.getLog(E... | 31.230769 | 73 | 0.672414 |
20c624f3f6614f59ad218701c009c22735fbb237 | 5,187 | /*
* FlyingSaucer.java
*
* Copyright 2007 William Robertson
*
* 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
*/
package com.rattat.mi... | 24.818182 | 100 | 0.573549 |
140facfe155c6084ecbb28c1502316dbec5a99b9 | 826 | package com.hongchai.catmall.ware.config;
import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.an... | 33.04 | 80 | 0.805085 |
5e586bcfd345a28246e06315152c35f836f566b4 | 678 | package proto.tdg.game;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.Batch;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.math.Vector2;
/**
* Created by Olva on 11/28/16.
*/
public class EntityState extends FieldObject {
public EntityState(FieldTil... | 28.25 | 91 | 0.681416 |
4f26e5ffd4120e99fd7f376122b3fd55e85a9b27 | 3,683 | package com.robod.service.impl;
import com.robod.mapper.ContentCategoryMapper;
import com.robod.content.pojo.ContentCategory;
import com.robod.service.intf.ContentCategoryService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;
import org.s... | 26.120567 | 99 | 0.654086 |
b5e8861a25c422f37d510e3b1b2f900807407a3c | 273 | package cn.sparrow.permission.data.model;
import javax.persistence.Entity;
import javax.persistence.Table;
import cn.sparrow.common.model.AbstractDataPermission;
@Entity
@Table(name = "spr_data_deny_author")
public class DataDenyAuthor extends AbstractDataPermission{
}
| 22.75 | 59 | 0.831502 |
1ee23c406cfd069d8da4ca3eb6048ede40424fa7 | 423 | package com.aractron.java.net;
/**
* Created by user on 01/03/2017.
*/
import java.net.*;
public class WhoAmI {
public static void main(String[] args) throws Exception {
if (args.length != 1) {
System.err.println("Usage: WhoAmI MachineName");
System.exit(1);
... | 22.263158 | 62 | 0.565012 |
3c06703d5cc4ea140584c3e4d09c698240fd365a | 9,784 | /*
* 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 ... | 46.369668 | 127 | 0.725981 |
2fdf3fcc1799b7669b21e662f25d1596d304848a | 1,361 | /* Copyright © 2018 Bohdan Pysarenko. E-mail: <Pisarenko.B.O@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 re... | 27.77551 | 75 | 0.710507 |
98bd46c94ede682d33728cdb7639786ef69b5866 | 2,896 | package cn.myperf4j.base.config;
import cn.myperf4j.base.util.Logger;
import java.util.Properties;
/**
* Created by LinShunkang on 2018/4/9
*/
public final class MyProperties {
private static Properties properties;
public static synchronized boolean initial(Properties prop) {
if (properties != nu... | 24.752137 | 106 | 0.565262 |
3dac066e6054e43444be972eeab9364bead584dc | 16,765 | /*
* Copyright 2017 Apereo
*
* 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 wr... | 32.178503 | 113 | 0.745899 |
ee55e1be5ef634f4b357bbf1d0f030edc397216e | 1,684 | package dream.fcard.gui.components;
import dream.fcard.gui.GuiSettings;
import dream.fcard.model.cards.FlashCard;
import javafx.geometry.Insets;
import javafx.scene.layout.HBox;
import javafx.scene.text.Text;
/**
* UI component representing the row taken up by an individual flashcard when displayed in a list.
*/
p... | 31.185185 | 98 | 0.678741 |
c50a097b91c201d6e42c8e31c39c02832f8bc0c6 | 7,214 | /*-
* ============LICENSE_START=======================================================
* Ran Simulator Controller
* ================================================================================
* Copyright (C) 2020 Wipro Limited.
* ================================================================================... | 28.513834 | 120 | 0.626005 |
d0c9f7b78d6c68de71ec9ecfbd8c8e6b82bd6582 | 7,828 | package com.example.motionet;
import androidx.annotation.RequiresApi;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Context;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Build;
import android.os.Bundle;
import android.os.Parcelable;
import android.util.Log;
i... | 32.616667 | 119 | 0.599642 |
5d9c5e8ec6a9e591aad2bf9ce51f810a7fd6d01d | 3,588 | package cz.vabalcar.android.rcjbotsimplecontrolleractivity;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.app.DialogFragment;
import android.view.View;
i... | 42.714286 | 114 | 0.686176 |
1e388f7357490ffa3b0f0b06bb0a385980e8bab8 | 1,390 | package com.cjm721.overloaded.tile.hyperTransfer.base;
import com.cjm721.overloaded.storage.IHyperHandler;
import com.cjm721.overloaded.storage.IHyperType;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.tileentity.TileEntityType;
import net.minecraft.util.Direction;
import net.minecraftforge.common.c... | 31.590909 | 124 | 0.670504 |
0a027bd8d8bab8978ebeeebcb4848e22dae1d6fc | 1,634 | package com.lilypuree.decorative_blocks.fluid;
import net.fabricmc.fabric.api.registry.FlammableBlockRegistry;
import net.minecraft.block.BlockState;
import net.minecraft.block.FluidBlock;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.fluid.FlowableFluid;
imp... | 35.521739 | 110 | 0.729498 |
0ba1e85e29eb5cbdac8fefdcac8c74d7fb972ffe | 103 | package unidade2;
public @interface Copyright {
String autor();
String data();
String versao();
}
| 12.875 | 29 | 0.699029 |
d533c098a0233ca126a1c087e73baa18db854a2e | 3,177 | import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.Rectangle;
import java.util.ArrayList;
public class wall {
// ARA METEIX NO TE SENTIT PERO EN SI ERA PER A EN UN FUTUR REALITZAR UN RECTANGLE INVISIBLE
/*
AQUEST ACTUARA COM A COLLIDER I AIXI NO PERDRA RENDIMENT EL JOC PER COMPROBAR 5000 VEGADES SI... | 28.881818 | 146 | 0.66289 |
58e5bdcfdeeb64ff8bf1f994061ea363896d575b | 1,279 | package com.spj.demo.mapper;
import com.spj.demo.pojo.Link;
public interface LinkMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table link
*
* @mbggenerated
*/
int deleteByPrimaryKey(Integer id);
/**
* This method was... | 24.132075 | 57 | 0.641908 |
3a1131caad82fc8570304fedac4024f4db1de17c | 282 | package alura.aluraflix.controller.dto;
public class ResourceNotFoundDto {
private String erro;
public ResourceNotFoundDto( String erro) {
this.erro = erro;
}
public String getErro() {
return erro;
}
public void setErro(String erro) {
this.erro = erro;
}
}
| 12.26087 | 43 | 0.695035 |
e3e6499630f651071a0a2b8b0bbbb657347efda0 | 4,313 | package com.thinkgem.jeesite.modules.gsbx.web;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.utils.PostHelperUtils;
import com.thinkgem.jeesite.common.web.BaseController;
import com.thinkgem.jeesite... | 34.504 | 133 | 0.678878 |
522288a6b4a0897915d6f01c6663548b06de84fc | 2,654 | /*
* Copyright 2017 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 agreed to in wr... | 27.936842 | 77 | 0.705727 |
d353da30c3e025107866b8e32f8b2a136d544472 | 597 | package br.com.btgtest.jokenpo.resources.dto;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
public class ResultDTO implements Serializable{
private static final long serialVersionUID = 1L;
private String result;
private List<String> winners = new ArrayList<>();
... | 19.258065 | 51 | 0.693467 |
c852115578eb6f3d855e28e39f01936cf988b7bf | 3,204 | /**
* Generated class : msg_heartbeat
* DO NOT MODIFY!
**/
package org.mavlink.messages.ardupilotmega;
import org.mavlink.messages.MAVLinkMessage;
import org.mavlink.IMAVLinkCRC;
import org.mavlink.MAVLinkCRC;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.n... | 35.208791 | 260 | 0.714419 |
c299aed1a62f2904ff46e29b38ce2b7ec27e9f61 | 2,562 | package com.hyperwallet.android.model.graphql.query;
import org.junit.Test;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
public class TransferMethodUpdateConfigurationFieldQueryTest {
private String sampleFieldQuery = String.format( "query {\n" +
"\ttr... | 34.621622 | 120 | 0.459797 |
b657f424b70df5214cd68584b3b2279cfb141d9d | 470 | package ICBCIBMContest.util;
import ICBCIBMContest.model.APITransmitObject;
import com.alibaba.fastjson.JSON;
import org.springframework.stereotype.Component;
import javax.validation.constraints.NotNull;
/**
* 对 FastJSON 的封装类,提供静态方法进行获取 String 字符串
*
* @author Mr.Hu
*/
@Component
public class APITransmitObjectFac... | 22.380952 | 80 | 0.782979 |
530a0fc580d808abd7ac1f38d095849170efcc1f | 875 | package it.castelli.connection.messages;
import it.castelli.connection.Connection;
import it.castelli.gameLogic.Player;
import it.castelli.gui.controllers.AuctionController;
import javafx.application.Platform;
/**
* Message that updates the timer shown in the auction window (receive only)
*/
public class UpdateAuct... | 25 | 81 | 0.771429 |
b0a09de53e62cd1244f7d871253d583ec54d1e17 | 8,029 | /*
* $Id$
* 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... | 31.610236 | 122 | 0.539544 |
c83b21d09c5bc618156c7149af84db9c86a08bd5 | 863 | package com.koch.ambeth.ioc.garbageproxy;
import com.koch.ambeth.util.IDisposable;
/**
* Marker interface of "GarbageProxy" instances. This interface is not meant for public use and is
* also not meant for production use. The only purpose is to allow in testing scenarios to check
* whether a "GarbageProxy" composi... | 39.227273 | 99 | 0.750869 |
d827f078bb356c0614e43a2b8c58a544019ee32a | 1,728 | package alignment;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
*
* @author Antonin Pavelka
*
* Result of a search - among others, aligned structure ids, transformation matrix and score.
*
*/
public class Al... | 26.584615 | 94 | 0.707755 |
3b7309c817ed0c8d192a4e21569b96c33891b28e | 1,702 | /*
* Copyright 2021 Vaibhav Nargwani
*
* 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... | 29.859649 | 146 | 0.657462 |
631710bbe03935f4f9ab07b3203a432c32b2d100 | 3,155 | package org.jitsi.bouncycastle.cert.ocsp;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import org.jitsi.bouncycastle.asn1.ASN1Exception;
import org.jitsi.bouncycastle.asn1.ASN1InputStream;
import org.jitsi.bouncycastle.asn1.ASN1Primitive;
import org.jitsi.bouncycastle.as... | 34.293478 | 138 | 0.666878 |
e315d057350036c6a026f775f98b2118a0a86736 | 50,155 | package org.linlinjava.litemall.db.domain;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Arrays;
public class LitemallGoods {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table litemall_goods
... | 31.763775 | 150 | 0.615612 |
a21cf09e77a8cb7a54683ddae37ffb131c06f376 | 5,317 | /*
* Copyright 2020 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://www.apache.org/licenses/LICENSE-2.0
*
* or in ... | 34.525974 | 100 | 0.75268 |
3d4d14cb38ac27e063f6397277fb161105fd76a4 | 4,354 | /*
* Copyright 2015 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 applica... | 27.043478 | 94 | 0.743684 |
63c812495268843fced08b39a6459d118f2a1c7e | 1,574 | package xmlandjsonParsing;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.parsers.DocumentBuilder;
import org.w3c.dom.Document;
import org.w3c.dom.NodeList;
import org.w3c.dom.Node;
import org.w3c.dom.Element;
import java.io.File;
public class ... | 30.862745 | 102 | 0.722363 |
197049027b1835590d744046aec2a96da4c5f7a9 | 4,932 | package ru.iteco.fmhandroid.ui.steps;
import static androidx.test.espresso.matcher.ViewMatchers.isAssignableFrom;
import static androidx.test.espresso.matcher.ViewMatchers.isDescendantOfA;
import static androidx.test.espresso.matcher.ViewMatchers.withEffectiveVisibility;
import android.view.View;
import android.view.... | 34.48951 | 89 | 0.596715 |
1baecf42252c799d8fd96308b4cd5767bb284755 | 288 | package com.dz.nan.tizi.users.services;
import org.springframework.security.core.userdetails.UserDetailsService;
import com.dz.nan.tizi.users.model.User;
/**
*
* @author LYES
*
*/
public interface IUserManager extends UserDetailsService{
void addUser(User user);
}
| 20.571429 | 73 | 0.729167 |
79d740e7b6ba3bd6596514897dd32bf523c70c3d | 559 | package co.edu.sena.proyectospoo.colecciones.ejemplo01;
/**
* Created by Enrique on 31/05/2017.
*/
public class Balon {
private String marca;
private String clase;
public Balon(String marca, String clase) {
this.marca = marca;
this.clase = clase;
}
public String getMarca() {
... | 18.032258 | 55 | 0.599284 |
834778874f0f87c9fcdf5dc98878b773879f7c28 | 382 | package com.ricex.cartracker.android.service.reader;
/**
* Created by Mitchell on 2016-11-21.
*/
public class BluetoothDeviceNotPairedException extends Exception {
public BluetoothDeviceNotPairedException(String message) {
super(message);
}
public BluetoothDeviceNotPairedException(String messag... | 22.470588 | 79 | 0.730366 |
1813a17d5817e69fff7b86d9ca76eeb878b7d273 | 7,000 | /*
* Copyright 2016 Anton Tananaev (anton@traccar.org)
* Copyright 2016 Andrey Kunitsyn (andrey@traccar.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.... | 46.357616 | 106 | 0.684571 |
b6cd9706cd5d6e5425b4614cc15f1598b344c912 | 559 | package com.beinet.resourcecapture;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.scheduling.annotation.EnableScheduling;
@SpringBootAppl... | 32.882353 | 79 | 0.837209 |
6c445f94a526add2abca3356ea9b5a30c2057399 | 3,484 | package com.example.el.sendmethere2;
import android.content.Intent;
import android.database.DataSetObserver;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.AdapterView;
import android.wid... | 38.285714 | 151 | 0.651263 |
2bdd3e7e6b2b6ff7a755e19af4037b015523eae0 | 1,157 | package de.rafadev.glowcloud.lib.network.auth.packet.out;
//------------------------------
//
// This class was developed by Rafael K.
// On 24.06.2020 at 18:47
// In the project GlowCloud
//
//------------------------------
import com.google.gson.Gson;
import com.google.gson.JsonObject;
import com.google... | 36.15625 | 170 | 0.696629 |
9d9317c07eabb7bf1a89fbd4837d0f6fd056aaa4 | 1,538 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | 37.512195 | 94 | 0.721066 |
494f7e5267f3cace42e619a3139a88b80e0fd5eb | 5,644 | package com.lukflug.panelstudio.hud;
import java.awt.Point;
import com.lukflug.panelstudio.base.AnimatedToggleable;
import com.lukflug.panelstudio.base.Animation;
import com.lukflug.panelstudio.base.Context;
import com.lukflug.panelstudio.base.IBoolean;
import com.lukflug.panelstudio.base.IInterface;
import com.lukfl... | 35.721519 | 191 | 0.768604 |
f4d1b6f58290d967aa9d7083307fdaa4998c9c84 | 287 | package org.piphonom.arepa.service;
import org.piphonom.arepa.exceptions.UserNotExistsException;
/**
* Created by piphonom
*/
public interface SecurityService {
String findLoggedInUsername() throws UserNotExistsException;
void autoLogin(String username, String password);
}
| 22.076923 | 64 | 0.787456 |
56ce0daa592ef1fb39bd7726adb73d179c4d635c | 580 |
package org.robovm.bindings.splunkmint;
import org.robovm.objc.annotation.Method;
import org.robovm.objc.annotation.NativeClass;
/** The Mint class is the main class for all appropriate requests. */
@NativeClass
public class Mint extends MintBase {
/** Returns the singleton Mint reference to use in your applica... | 32.222222 | 130 | 0.75 |
408ac6c2fea7055635439f2e9932fd2f6159c003 | 53,575 | import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
public class Playlist extends JFrame
{
// SONG CLASSES
private DemonSlayer demonSlayer;
private JingleBells jingle;
private Miraculous miraculous;
private Persona5 persona5;
private TwinkleTwinkle tw... | 44.983207 | 504 | 0.653458 |
9d88993db7d2efba8f025b83b58f3c07e6d8ed7b | 524 | package com.example.json;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
public class JsonKeyValueMessage {
public final String key;
public final int value;
@JsonCreator
public JsonKeyValueMessage(@JsonProperty("key") String key, @JsonProperty("value"... | 21.833333 | 96 | 0.688931 |
d6ec3adb254154cddd85f3113ea07bbfdeb5bdd4 | 360 | /**
* Copyright © 2016-2018 dujoy.cn
*/
package org.thingsboard.server.dao.entity;
import com.google.common.util.concurrent.ListenableFuture;
import org.thingsboard.server.common.data.id.EntityId;
public interface EntityService {
ListenableFuture<String> fetchEntityNameAsync(EntityId entityId);
void delet... | 22.5 | 69 | 0.788889 |
98785fb81b77d6f1eb306118eb6103421cd299e0 | 1,113 | package li.cil.sedna.serialization.serializers;
import li.cil.ceres.api.DeserializationVisitor;
import li.cil.ceres.api.SerializationException;
import li.cil.ceres.api.SerializationVisitor;
import li.cil.ceres.api.Serializer;
import javax.annotation.Nullable;
import java.util.concurrent.atomic.AtomicInteger;
public ... | 38.37931 | 169 | 0.727763 |
2cf8b3e2a6df0ef180b8945bcc2451104ae12515 | 5,755 | package com.wind.me.xskinloader;
import android.app.Activity;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.app.AppCompatDelegate;
import android.util.AttributeSet;
import... | 37.614379 | 113 | 0.643788 |
e4b62d33ca42ef709e088e7b1f34c0550e8dc12e | 786 | /*
@author: Abraham Hernandez - TSOFT
*/
package runners.servicios.utility;
import org.apache.commons.io.FileUtils;
import java.io.File;
public class FileHelper {
public static String getProjectFolder() {
return System.getProperty("user.dir");
}
public static void borrarElementosFolder(Str... | 26.2 | 115 | 0.615776 |
4161732174aadb82f14d6a84669422a7a5183a2f | 3,216 | package io.gitjournal.gitjournal;
import android.os.AsyncTask;
import android.util.Log;
import org.eclipse.jgit.api.Git;
import org.eclipse.jgit.api.errors.GitAPIException;
import org.eclipse.jgit.api.CommitCommand;
import org.eclipse.jgit.api.errors.TransportException;
import org.eclipse.jgit.lib.PersonIdent;
impo... | 34.580645 | 88 | 0.587376 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.