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 |
|---|---|---|---|---|---|
be67b56a308292cc0704b26cf474430efb59ba24 | 2,454 | package com.sevenmap.data.parsers.osm.Structure.Node;
import java.util.ArrayList;
import java.util.Objects;
import com.sevenmap.data.parsers.osm.Annotations.XMLAttribute;
import com.sevenmap.data.parsers.osm.Annotations.XMLElement;
import com.sevenmap.data.parsers.osm.Structure.Metadata.Metadata;
import com.sevenmap.... | 19.790323 | 110 | 0.616137 |
b12933cad7243bb67c9574b98cfcb4a8c48f03cc | 1,877 | package test;
import java.util.Map;
/**
* @Author: 杨长江
* @Description:
* @Date: 2019/3/20 9:34
*/
public class Parm {
private int a;
private String b;
private Map<String,Object> p ;
private San san;
public Parm(int a, String b, Map<String, Object> p, San san) {
this.a = a;
th... | 16.758929 | 66 | 0.449121 |
016c23b0c46405e2046b8e08b1f189faff6a760b | 3,873 |
package ch.admin.geo.schemas.bj.tgbv.gbbasistypen._2;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlID;
import javax.xml.bind.annotation.X... | 25.313725 | 117 | 0.603408 |
40f166172cb6b64f7d9cf866ee397853965ce1a1 | 1,187 | package com.xhh.demo.http.observer;
import java.util.Enumeration;
import java.util.Vector;
/**
* 具体主题(ConcreteSubject)角色
*
* <p>保存对具体观察者对象有用的内部状态;在这种内部状态改变时给其观察者发出一个通知;具体主题角色又叫作具体被观察者角色
*
* @author tiger
* @version 1.0.0 createTime: 15/3/6 上午9:09
* @since 1.6
*/
public class ConcreteSubject implements Subject... | 19.783333 | 70 | 0.604044 |
9246b614a2243185558027b5276d874acb9cc56b | 3,998 | /*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 30.992248 | 89 | 0.736618 |
08bd299b31cae2049bf2c5a809d0c953b94f8f7e | 2,736 | package spacepirates.breadbox;
import org.junit.*;
import static org.junit.Assert.*;
import spacepirates.breadbox.model.LocationDatabase;
import spacepirates.breadbox.model.Location;
import java.util.ArrayList;
import java.util.List;
public class GetLocationByNameTest {
private final Location nullLocation = new... | 33.777778 | 86 | 0.553728 |
5e6b3b286013b640de0da199b774e75c8ff75302 | 6,524 | package org.checkerframework.checker.regex.classic;
import javax.lang.model.element.AnnotationMirror;
import javax.lang.model.element.ExecutableElement;
import org.checkerframework.checker.regex.qual.Regex;
import org.checkerframework.dataflow.analysis.ConditionalTransferResult;
import org.checkerframework.dataflow.a... | 48.686567 | 104 | 0.641478 |
aa1504cf3cf2a5cbd54c0771092a14129d094b87 | 1,843 | /******************************************************************************
* ~ Copyright (c) 2018 [jasonandy@hotmail.com | https://github.com/Jasonandy] *
* ~ *
* ~ Licensed under the Apache License, Version 2.0 (the "License”); * ... | 40.955556 | 80 | 0.480738 |
22b538c83d25a029266583e1e6402d9b74e10b7c | 2,003 | package email.tianlangstudio.aliyun.com.common.domain;
import java.util.HashMap;
/**
* @ClassName: AjaxResult
* @Description: TODO(ajax操作消息提醒)
* @author fuce
* @date 2018年8月18日
*
*/
public class AjaxResult extends HashMap<String, Object>
{
private static final long serialVersionUID = 1L;
/**
* 初始化一个新创建... | 18.209091 | 65 | 0.528208 |
5cfd37844027478194beea4f71f1f5ccab303ed7 | 331 | package com.wfl.emps;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class SpringbootempApplication {
public static void main(String[] args) {
SpringApplication.run(SpringbootempApplication.class, args)... | 23.642857 | 68 | 0.794562 |
479425ff7068e8c94e70a8628f86add39c90985b | 460 | package com.dungeonstory.ui.view.admin.grid;
import com.dungeonstory.backend.data.CreatureType;
import com.dungeonstory.ui.util.DSTheme;
public class CreatureTypeGrid extends DSGrid<CreatureType> {
private static final long serialVersionUID = 7979077646352869311L;
public CreatureTypeGrid() {
super()... | 28.75 | 128 | 0.758696 |
7fc201c5243804873ba59750f07ebd1a8bff80b0 | 16,758 | /*
* Copyright (C) 2016 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... | 42.75 | 99 | 0.641306 |
380b51a08f28df45f9b0a1c4a80ca0d230b05311 | 1,469 | package net.officefloor.nosql.cosmosdb.test;
import java.util.concurrent.atomic.AtomicInteger;
import com.azure.cosmos.CosmosDatabase;
import net.officefloor.frame.api.manage.OfficeFloor;
/**
* Reference to a test {@link CosmosDatabase}.
*
* @author Daniel Sagenschneider
*/
public class CosmosTestDatabase {
... | 22.6 | 101 | 0.710007 |
5625d4234e47270157080c809d41bd984ec00bd2 | 8,995 | /*
* Copyright (c) 2017 Nova Ordis 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 agre... | 28.738019 | 120 | 0.504058 |
830347079d8cf8844db7586debaccd81cb53ab5c | 20,378 | package com.moesif.servlet;
import java.io.IOException;
import java.util.*;
import java.util.concurrent.TimeUnit;
import java.util.logging.Logger;
import java.lang.*;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.s... | 31.254601 | 151 | 0.664786 |
882eb7212056465e029385ffb81211b8765a34ff | 10,010 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * 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 ... | 18.851224 | 810 | 0.802897 |
24f2caa8ce83987ef21600d174a199445defa26b | 679 | package br.com.curso.springboot.api.repositories;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.junit4.SpringRunn... | 30.863636 | 85 | 0.835052 |
5eddab9ab63d1f2418c52ef04057f7759aeecadd | 329 | package com.rsamani.preflin.serializer;
import java.util.List;
/**
* Created by rasool on 1/28/2019.
* Email: Rasoul.Samani@gmail.com
*/
public interface Serializer {
String toString(Object o);
<T> T objectFromString(String s, Class<T> tClass);
<T> List<T> listObjectFromString(String s, Class<T> tCl... | 18.277778 | 64 | 0.696049 |
39b28187a66d7c282286e5bec2a72e09fe5c9570 | 615 | package com.cart.shoppingapp;
import android.app.Activity;
import com.cart.shoppingapp.di.component.ApplicationComponent;
import com.cart.shoppingapp.di.component.DaggerApplicationComponent;
import dagger.android.AndroidInjector;
import dagger.android.support.DaggerApplication;
public class ShoppingApplication ext... | 27.954545 | 104 | 0.79187 |
d0fdb9d462f78fdf1d0929867b6b5db6f7a69f53 | 1,440 | /*
* Copyright 2020 Vincent Galloy
*
* 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 ... | 30 | 82 | 0.764583 |
8380896a37aed894b182304b4940a3dd65041da9 | 3,507 | package com.belatrix.events.presentation.ui.fragments;
import android.os.Bundle;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.belatrix.events.R;
import com.bela... | 32.472222 | 104 | 0.733961 |
8ed120a85149a96b7a2075c691001c0340c2e603 | 75 | /**
* Contains utility classes for tuples.
*/
package wulfric.util.tuple; | 18.75 | 39 | 0.72 |
dba2b094774fcbc5279c564ab5b2bab50f52989e | 436 | package com.plaid.client.request;
import com.plaid.client.request.common.BaseAccessTokenRequest;
/**
* Request for /processor/dwolla/processor_token/create endpoint.
*/
public class ItemDwollaProcessorTokenCreateRequest extends BaseAccessTokenRequest {
private String accountId;
public ItemDwollaProcessorToken... | 27.25 | 86 | 0.800459 |
aff5699e5096a485ab8dba04f3931675d8555043 | 2,193 | package com.ota.download;
import java.net.InetSocketAddress;
import java.net.Proxy;
import org.apache.http.HttpHost;
import org.apache.http.client.methods.HttpPost;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.text.TextUtils;
pub... | 25.5 | 72 | 0.677611 |
8394e46239267c15f3fe14e4261c86c6ba2ee6f6 | 5,695 | package com.cosmos.cstnse.simpletreck;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.NavigationView;
import android.support.v4.view.GravityCompat;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.ActionBarDrawerToggle;
import android.s... | 35.154321 | 107 | 0.658472 |
c5e7870d200bd98dd6a28032dfec50b36e5975f8 | 953 | package eventstore.j.examples;
import akka.actor.ActorRef;
import akka.actor.ActorSystem;
import eventstore.Event;
import eventstore.EventNumber;
import eventstore.ReadEvent;
import eventstore.j.EsConnection;
import eventstore.j.EsConnectionFactory;
import eventstore.j.ReadEventBuilder;
import eventstore.tcp.Connectio... | 31.766667 | 110 | 0.728227 |
5accd449c31d59c39dcb65219690c7d4475bf916 | 5,093 | package com.example.androidproject.systermUI;
import android.content.DialogInterface;
import android.content.res.AssetManager;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.util.Log;
import android.webkit.JavascriptInterface;
import android.webkit.JsPromptResult;
import android.webkit.JsResu... | 32.43949 | 125 | 0.579815 |
c24eca51d5c1ae699264a58eadb527fcc8344f2b | 1,255 | package com.accenture.pocproject.customers;
import com.accenture.pocproject.api.PocApiClient;
import com.accenture.pocproject.api.PocApiService;
import java.util.List;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
/**
* Created by fjodors.pohodnevs on 8/29/2016.
*/
public class Cust... | 29.186047 | 98 | 0.67012 |
7928d795233780af63e6eb90fe33ee57ba396356 | 208 | package com.tw.marsrover;
/**
*
* @author vji
*/
public class UninitialisedPlateauException extends RuntimeException {
public UninitialisedPlateauException(String message) {
super(message);
}
}
| 17.333333 | 69 | 0.735577 |
e1476898b5307401112600cb6042269b39d07131 | 24,077 | package org.jboss.resteasy.client;
import org.jboss.resteasy.client.core.BaseClientResponse;
import org.jboss.resteasy.client.core.ClientInterceptorRepositoryImpl;
import org.jboss.resteasy.core.interception.ClientExecutionContextImpl;
import org.jboss.resteasy.core.interception.ClientWriterInterceptorContext;
i... | 30.400253 | 127 | 0.645014 |
aeee775b76eec39899a2c56b0bb4043134334f45 | 10,409 | package com.kdgregory.pomutil.version;
import java.io.File;
import java.io.FileOutputStream;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.w3c.dom.Element;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import net.sf.kdgcommons.io.IOUtil;
import net.sf.kdgcommons.lang.O... | 34.696667 | 135 | 0.589106 |
870ad239f104b550ac7d7056aa3638a8e0353756 | 3,235 | package com.cqust.pojo;
import java.util.Date;
public class TStoreapplication {
private Integer id;
private Integer userid;
private String ownname;
private String phone;
private String uid;
private String uidimageurl;
private String storename;
private String storeaddr;
priv... | 20.870968 | 87 | 0.625348 |
dcc670f9e2b10da5c73abb3349c8c3fe731a7433 | 238 | package infobip.api.model.omni;
/**
* This is a generated class and is not intended for modification!
*/
public enum OmniChannel {
SMS,
EMAIL,
VOICE,
PARSECO,
PUSH,
VIBER,
FACEBOOK,
LINE,
VKONTAKTE
} | 14.875 | 66 | 0.62605 |
dcde48c0f0e274685605f1d8b0ae3a32f6c74039 | 1,001 | package com.jakewharton.u2020.ui;
import com.jakewharton.u2020.IsInstrumentationTest;
import com.jakewharton.u2020.ui.debug.DebugView;
import com.jakewharton.u2020.ui.debug.DebugViewContainer;
import com.jakewharton.u2020.ui.debug.SocketActivityHierarchyServer;
import dagger.Module;
import dagger.Provides;
import java... | 32.290323 | 96 | 0.78022 |
223532030470a4aaaa20c7fb16725ffa1656e114 | 17,402 | /*
* 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 ... | 54.72327 | 146 | 0.688599 |
79fbe9bb37bf8538e656052ae9bebbba78569cd0 | 128 | package gov.samhsa.c2s.ums.infrastructure.dto;
import lombok.Data;
@Data
public class IdentifierDto {
private String id;
} | 16 | 46 | 0.765625 |
11a12a0450f1ba89d20d888107264a7513b36155 | 1,640 | package io.github.magicquartz.environmentalarmor.mixin;
import io.github.apace100.origins.component.OriginComponent;
import io.github.apace100.origins.power.DamageOverTimePower;
import io.github.apace100.origins.power.PreventEntityRenderPower;
import io.github.magicquartz.environmentalarmor.power.EnvironmentalArmorPow... | 43.157895 | 202 | 0.785976 |
bd62901d2dbea453177da6f6f877c6aa3e444f70 | 6,357 | package life.catalogue.common.date;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import de.undercouch.citeproc.csl.CSLDate;
import de.undercouch.citeproc.csl.CSLDateBuilder;
import life.catalogue.api.model.CslDate;
import org.apache.commons.lang3.StringUtils;
... | 28.635135 | 113 | 0.652037 |
9054a74a876419f346dd8d1844f3475803290c7e | 5,632 | package com.example.fym.coolweather.activity;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.vie... | 34.341463 | 91 | 0.607955 |
814e3522172b607405cb19d04a94eea73e4ff7bf | 5,731 | /* Copyright 2004 The Apache Software Foundation
*
* 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 ... | 38.463087 | 112 | 0.664282 |
fa8fca809dd1c87a5a56f59b9e0d7ea211ec5994 | 2,342 | package com.monst.bankingplugin.config.values;
import com.monst.bankingplugin.BankingPlugin;
import com.monst.bankingplugin.exceptions.parse.PathParseException;
import com.monst.bankingplugin.lang.Message;
import com.monst.bankingplugin.lang.Placeholder;
import com.monst.bankingplugin.utils.Callback;
import com.monst.... | 37.174603 | 94 | 0.677199 |
f7adf4a1c1bcbcf6bd4db493d7a42740bed0278f | 208 | package pw.cdmi.open.repositories.jpa;
import pw.cdmi.open.repositories.EmployeeAndDeptGroupRepository;
public interface JpaEmployeeAndDeptGroupRepository extends EmployeeAndDeptGroupRepository {
}
| 26 | 92 | 0.841346 |
58e66f123ec86ce44d33aa307106923e07b5df72 | 2,000 | package io.muun.apollo.data.os;
import io.muun.common.Optional;
import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Context;
import rx.Observable;
import java.util.concurrent.TimeUnit;
import javax.inject.Inject;
public class ClipboardProvider {
private final Clipbo... | 27.39726 | 98 | 0.625 |
5a1bf0c05816483d9b93d7c25154b5c468e94272 | 1,546 | package com.clpstudio.tvshowtimespent.datalayer.repository;
import com.clpstudio.tvshowtimespent.datalayer.network.listener.OnSuccess;
import com.clpstudio.tvshowtimespent.datalayer.network.model.ApiModel;
import com.clpstudio.tvshowtimespent.datalayer.network.model.TvShow;
import com.clpstudio.tvshowtimespent.datalay... | 31.55102 | 99 | 0.785899 |
f3780be0d5b29895b101346c3bc8a8a7fe4b0818 | 605 | package dp.abstractFactory;
import dp.abstractFactory.banking.BankingProjectTeamFactory;
public class BankSystem {
public static void main(String[] args) {
ProjectTeamFactory projectTeamFactory = new BankingProjectTeamFactory();
Developer teamLead = projectTeamFactory.getFirstDeveloper();
Developer deve... | 28.809524 | 76 | 0.747107 |
e9db67ae4159d79af450097bc1ab390e61db46a6 | 1,198 | package com.hwadee.spring_mybatis.service.impl;
import com.hwadee.spring_mybatis.model.Account;
import com.hwadee.spring_mybatis.service.AccountService;
import org.junit.Test;
import org.junit.Before;
import org.junit.After;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowir... | 23.490196 | 74 | 0.75793 |
0f1e7c20d246e8677f35d22e029fa54a6e4198c7 | 386 | package com.wagner.hackerrank.practice.algorithms.warmup;
import java.util.stream.IntStream;
public class SimpleArraySum {
public static void main(String[] args) {
int[] intArray = new int[]{1, 2, 3, 4, 10, 11};
int sum = simpleArraySum(intArray);
System.out.println(sum);
}
private static int simp... | 22.705882 | 57 | 0.686528 |
b3bc466781c77a36f04832c40e501949c50e09c0 | 1,662 | import org.junit.*;
import static org.junit.Assert.*;
public class MemberTest {
@Before
public void tearDown() {
Member.clear();
}
@Test
public void member_instantiatesCorrectly_true() {
Member testMember = new Member("Chulo", "Chulo's house", "Being a dog", "Portland");
assertTrue(testMember i... | 33.24 | 98 | 0.690734 |
50e39f1d75a163a02b8982cb504c73cc8e24370e | 2,753 | package net.minecraft.server.management;
import com.google.common.base.Predicate;
import com.google.common.collect.Iterators;
import com.google.common.collect.Lists;
import com.mojang.authlib.Agent;
import com.mojang.authlib.GameProfile;
import com.mojang.authlib.ProfileLookupCallback;
import java.io.File;
import java... | 40.485294 | 144 | 0.695968 |
028e3fd3e39747e63fc4d4148a2bbf6c93584377 | 25,695 | /*
* Copyright 2004-2010 Information & Software Engineering Group (188/1)
* Institute of Software Technology and Interactive Systems
* Vienna University of Technology, Austria
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file ex... | 49.224138 | 291 | 0.637128 |
39c5e223028a53ae4f20fb8c66238778e2dd17c9 | 626 | package resonant.core.content;
import net.minecraft.item.Item;
import net.minecraft.util.Icon;
import resonant.core.ResonantEngine;
import resonant.lib.References;
/** An Base Item Class for Basic Components. Do not use this! Make your own!
*
* @author Calclavia */
public class ItemBase extends Item
{
protecte... | 27.217391 | 76 | 0.709265 |
d73bc42a54359dda8166283107924cc761b52d4c | 912 |
package com.roncoo.education.user.service.dao;
import com.roncoo.education.user.service.common.resq.UserExtViewRESQ;
import com.roncoo.education.user.service.dao.impl.mapper.entity.UserLogInvite;
import com.roncoo.education.user.service.dao.impl.mapper.entity.UserLogInviteExample;
import com.roncoo.education.util.bas... | 27.636364 | 105 | 0.730263 |
d0fcd8e9371ce4dfc47e0e00c8307566a41ffe64 | 199 | package com.tencent.tmsecure.module.optimize;
public class ProcessEntity {
public String mPackageName;
public int mPriority;
public int mPriorityGroup;
public String mProcessName;
}
| 22.111111 | 45 | 0.763819 |
541dcc3844fe157b8a3c77621dc3c0f35fad3488 | 1,218 | package br.odb.moonshot;
import java.util.ArrayList;
import java.util.List;
import br.odb.gameapp.ConsoleApplication;
import br.odb.gameapp.command.UserCommandLineAction;
import br.odb.gameapp.command.CommandParameterDefinition;
import br.odb.libscene.GroupSector;
import br.odb.libscene.MeshNode;
import br.odb.libsce... | 22.145455 | 72 | 0.727422 |
ef8ab6e0ea9990fa708885108769da9b3de5da0b | 419 | package com.tangzhangss.commonutils.utils;
import cn.hutool.json.JSONObject;
import org.apache.commons.lang.StringUtils;
public class RequestUtil {
public static void checkNullParam(JSONObject object,String ...keys){
for (int i = 0; i < keys.length; i++) {
if(StringUtils.isBlank(object.getStr(... | 29.928571 | 72 | 0.656325 |
c856a81cef7115a5efba4043e9845a859af3685c | 1,753 | /*
* Copyright 2016 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* 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.apach... | 34.372549 | 133 | 0.722191 |
3db8c154625ab78c1630d325dc25d1eb6ddb0935 | 3,257 | /*
* Copyright 2012-2014 Dan Cioca
*
* 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 i... | 29.880734 | 92 | 0.641695 |
428170756e319e08e41533ee5a8796c04f0a667f | 4,868 | package com.example.hoangdang.diemdanh.studentQuiz;
import android.content.Intent;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import ... | 33.342466 | 132 | 0.652424 |
b6c3f223027e0c26606cd51a4805608eaf86cd36 | 2,119 | /*
* Copyright © 2014 Cask Data, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 33.634921 | 99 | 0.684285 |
e100394baf60d9301dc158b25bb45f03acbd28b4 | 1,140 | package com.fsoft.team.entity;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import j... | 24.782609 | 56 | 0.740351 |
e6712da50438e7c00cc4031eeaa612ee7403b97f | 5,747 | package tmpgnmanntest;
import java.io.File;
import java.util.LinkedHashMap;
import java.util.Map;
import us.kbase.auth.AuthToken;
import us.kbase.common.service.JsonServerMethod;
import us.kbase.common.service.JsonServerServlet;
import us.kbase.common.service.JsonServerSyslog;
import us.kbase.common.service.RpcContext... | 43.537879 | 177 | 0.665913 |
529634d016699a846b7a23ea364f9b0a2faf89ae | 1,290 | package com.packt.microprofile.book.ch6.metrics;
import org.eclipse.microprofile.metrics.Meter;
import org.eclipse.microprofile.metrics.MetricID;
import org.eclipse.microprofile.metrics.MetricRegistry;
import org.eclipse.microprofile.metrics.Tag;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.I... | 32.25 | 97 | 0.731008 |
eab89b4a8527d9c006d10cfb5f118096050ab27a | 2,801 | package com.example.geopay;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Spinner;
import androidx.appcompat.app.AppCompatActivity;
... | 31.47191 | 101 | 0.611567 |
08b6e19172727b6fdb0a80839d6c6434dc5db5cd | 653 | package org.jeroen.ddd.specification;
public class AndSpecification<T> extends ComposableSpecification<T> {
private final Specification<T> lhs;
private final Specification<T> rhs;
public AndSpecification(Specification<T> lhs, Specification<T> rhs) {
super();
this.lhs = lhs;
this.rh... | 21.766667 | 76 | 0.627871 |
6abd25264a3c5ed822f697879877d5c09aab4cd1 | 3,335 | /*
* Copyright (c) 2016, 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.org/li... | 36.25 | 100 | 0.67976 |
fad4793182650ae4ee2b58263c1f0af93e101bec | 511 | package net.yozo.services.front.template.dto;
/**
* 推荐模板查询DTO
* Created by t on 2018/1/5.
*/
public class RelatedTemplateQuery {
private Integer tempalteId; //模板ID
private int start; //limit start
public Integer getTempalteId() {
return tempalteId;
}
public void setTempalteId(Integer ... | 18.25 | 51 | 0.632094 |
54b68951cbd2c91480d841d25421446ae90c0636 | 3,097 | package model.db;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.HashSet;
import java.util.Set;
import model.exceptions.InvalidEmailException;
import model.exceptions.InvalidUserNameException;
import model.inTheLab.DentalLaborato... | 34.797753 | 171 | 0.707136 |
e8382b197a51bdbd056392c88c27618ae61cd9a7 | 1,823 | package dk.kb.yggdrasil.utils;
import static org.junit.Assert.*;
import java.io.File;
import java.util.LinkedHashMap;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
import org.yaml.snakeyaml.scanner.ScannerException;
import dk.kb.yggdrasil.config.Ru... | 28.936508 | 105 | 0.68678 |
97100760ccce1f280895e95118c1b416550679b0 | 12,115 | package com.shynieke.geore.config;
import com.shynieke.geore.GeOre;
import net.minecraftforge.common.ForgeConfigSpec;
import net.minecraftforge.common.ForgeConfigSpec.BooleanValue;
import net.minecraftforge.common.ForgeConfigSpec.IntValue;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforg... | 40.791246 | 111 | 0.738341 |
efe3e0a2031ff6e456454b4a7425e0f3a50f74d6 | 11,634 | package net.csibio.propro.service.impl;
import lombok.extern.slf4j.Slf4j;
import net.csibio.propro.algorithm.decoy.generator.NicoGenerator;
import net.csibio.propro.algorithm.decoy.generator.ReplaceGenerator;
import net.csibio.propro.algorithm.decoy.generator.ShuffleGenerator;
import net.csibio.propro.algorithm.parser... | 35.361702 | 120 | 0.647069 |
11a3b05a4c0e02a91197d9af5ed58375b4f3602e | 15,546 | /* Copyright 2021 The TensorFlow 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 applicable law or a... | 37.191388 | 100 | 0.692911 |
1e7721df5e5e321f10cd3d38676ea6c5efd72d55 | 3,186 | /*
* Copyright (C) 2012-2014 DuyHai DOAN
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | 23.954887 | 103 | 0.672316 |
532264af07fc435258da46712b18eefec907c9db | 570 | package cn.closeli.rtc.net.converter;
import com.alibaba.fastjson.JSON;
import okhttp3.MediaType;
import okhttp3.RequestBody;
import retrofit2.Converter;
/**
*
* 将传过来的数据转换成requestBody
*/
final class FastJsonRequestBodyConverter<T> implements Converter<T, RequestBody> {
/** 传json字符串的media type */
private sta... | 20.357143 | 101 | 0.768421 |
f45a15e889df03a17fba1e5285b7fe6c280db2c9 | 999 | package ai.elimu.logic.converters;
import org.apache.commons.lang.StringUtils;
import ai.elimu.dao.LetterToAllophoneMappingDao;
import ai.elimu.model.content.LetterToAllophoneMapping;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.convert.converter.Converter;
public cla... | 37 | 125 | 0.763764 |
2055ca9f31f1b828e42ee31116d1ac9b87bbd628 | 1,773 | /*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* See LICENSE.txt included in this distribution for the specific
* language governing permissio... | 31.105263 | 75 | 0.702764 |
1a7bfd6240f492a05203b25c1dfb22e25e207beb | 185 | package com.atguigu.gmall.cart.vo;
import lombok.Data;
/**
* Created by FJC on 2019-11-18.
*/
@Data
public class CartItemVO {
private Long skuId;
private Integer count;
}
| 12.333333 | 34 | 0.681081 |
04d2a301485f4e6aa007779cd2a149bf344f0e31 | 1,962 | package jnapi.subtitles;
import jnapi.mediainfo.MediaInfo;
import java.io.File;
import java.util.List;
/**
* Subtitles converter. Handles reading and writing of several subtitles formats
* <p/>
* Resource: http://leksykot.top.hell.pl/lx3/B/subtitle_formats#c1
*
* @author Maciej Dragan
*/
public class Converter... | 27.633803 | 94 | 0.611111 |
6a276a640a3e374118fca00735c5c7fb67cc4c02 | 7,160 | /**
* Copyright (c) 2009-2013, Lukas Eder, lukas.eder@gmail.com
* All rights reserved.
*
* This software is licensed to you under the Apache License, Version 2.0
* (the "License"); You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Redistribution and use in so... | 37.098446 | 134 | 0.600978 |
ca87db61f009e51bc51395562e242a6e64fbcd61 | 3,797 | package se.plilja.imcollect.internal.fingertrees;
import com.pholser.junit.quickcheck.Property;
import com.pholser.junit.quickcheck.generator.InRange;
import se.plilja.imcollect.internal.CollectionsBaseTest;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Consumer;
import java.util.stream... | 34.207207 | 175 | 0.624704 |
bce35f11b5c53ba2cb2c9604d4339b27721b2c4d | 3,110 | package db.migration;
import org.flywaydb.core.api.migration.jdbc.JdbcMigration;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
public class V227__Migrate_TeachingCallReceipts_Comments_To_TeachingCallComments implements JdbcMigration {
@Override
public void migrate(... | 44.428571 | 133 | 0.627653 |
ab920b8773e8efe16530e796e34d8a18e6dae1cc | 2,314 | /*
* CPAchecker is a tool for configurable software verification.
* This file is part of CPAchecker.
*
* Copyright (C) 2007-2015 Dirk Beyer
* 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... | 39.896552 | 100 | 0.762316 |
07014a337ad846e462c7d44b3f41662a8e95652b | 2,378 | package it.chiarani.meteotrentinoapp.db;
import android.content.Context;
import androidx.room.Database;
import androidx.room.Room;
import androidx.room.RoomDatabase;
import androidx.room.TypeConverters;
import it.chiarani.meteotrentinoapp.api.MeteoTrentinoForecastModel.MeteoTrentinoForecast;
import it.chiarani.mete... | 37.15625 | 93 | 0.700168 |
1e98a7282417ef47e85c845ec3390983aca282e3 | 500 | package com.tgithubc.kumao.bean;
import java.util.List;
/**
* Created by tc :)
*/
public class SongListArray extends BaseData {
private List<SongList> songLists;
public List<SongList> getSongLists() {
return songLists;
}
public void setSongLists(List<SongList> songLists) {
this.s... | 17.857143 | 56 | 0.596 |
24e2b1ca8d2a8d7911d0a02b652669f5075a0094 | 11,651 | /*
* Copyright 2000-2014 JetBrains s.r.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 or agre... | 35.739264 | 141 | 0.677195 |
f4d793778a8566bbc3f7b10735f33a4357fdb0a5 | 164 | package com.example.snaptrackapp.data;
import com.google.firebase.database.annotations.Nullable;
public interface Listener<T> {
void update(@Nullable T t);
}
| 20.5 | 57 | 0.77439 |
c44c9e860daec8e3f5f4add2705259912a4c5188 | 2,082 | /**
* 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 m... | 29.323944 | 73 | 0.614313 |
2656b675fad277c6acef939b98e21c6f16ab24cc | 2,373 | /*
* The MIT License (MIT)
*
* Copyright (c) 2019 Chathura Buddhika
*
* 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 limitation the rights
* to... | 40.913793 | 85 | 0.736199 |
ee114c2ac7ed5677db47808f297097266b9fe732 | 1,481 | package slimeknights.tconstruct.library.book.content;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import slimeknights.mantle.client.book.data.BookData;
import slimeknights.mantle.client.book.data.content.ContentImageText;
import slimeknights.mantle.client.book.data.element.ImageData;
import ... | 32.911111 | 100 | 0.719109 |
acd740b1fd53378d475575017f1cc75100ed17e7 | 5,881 | /*
* Copyright 2020 Google LLC.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 39.206667 | 98 | 0.725897 |
643227068dbc13b52029a25b0143afbe8e2a1aec | 1,684 | package net.minecraft.client.gui;
import net.minecraft.client.network.NetHandlerPlayClient;
import net.minecraft.client.resources.I18n;
import net.minecraft.network.play.client.C0BPacketEntityAction;
public class GuiSleepMP extends GuiChat
{
/**
* Adds the buttons (and other controls) to the screen in quest... | 26.3125 | 142 | 0.589667 |
180952ba4932a0fac746e94e2523e72439554bb6 | 7,933 | package com.helencoder.util;
import com.helencoder.util.json.JSONException;
import com.helencoder.util.json.JSONObject;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* LTP组件调用类
*
* Created by helencoder on 2... | 31.355731 | 165 | 0.507752 |
e1f9531e2a5fbebe9ea46d7dc6243463831b6dad | 1,483 | package com.github.cstettler.dddttc.support.test;
import org.junit.jupiter.api.extension.AfterEachCallback;
import org.junit.jupiter.api.extension.ExtensionContext;
import org.springframework.jdbc.core.JdbcTemplate;
import javax.sql.DataSource;
import java.sql.DatabaseMetaData;
import java.sql.ResultSet;
import java.... | 35.309524 | 122 | 0.74646 |
26e43f3a031fc42f5382d783ce66be170d64044f | 8,970 | package com.codejam.amadeha.game.core.widget;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.RectF;
import android.os.Build;
import android.support.v7.widget.AppCompatTextView;
import android.text.Layout.Alignment;
import android.text.... | 31.473684 | 86 | 0.580491 |
a079fbe1db61b03ea30d876b66f40946693f2928 | 3,125 | package com.cy.core.region.action;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import com.cy.core.region.entity.Region;
import com.cy.core.region.service.RegionService;
import org.apache.log4j.Logger;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.conve... | 23.148148 | 76 | 0.70016 |
80ebf6aae7868b1c6f4c9a8086eeb8833b5fd991 | 585 | package com.songjachin.himalaya.interfaces;
import com.songjachin.himalaya.base.IBasePresenter;
/**
* Created by matthew on 2020/4/25 9:44
* day day up!
*/
public interface IRecommendPresenter extends IBasePresenter<IRecommendViewCallback> {
/**
*获取推荐内容
*/
void getRecommendList();
/**
*下拉... | 20.172414 | 85 | 0.659829 |
c50c5797eeee1050d0c88b6676377f97468ddb3b | 2,130 | /*
* Copyright 2000-2017 JetBrains s.r.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 or agre... | 33.28125 | 114 | 0.752582 |
cf57453535cb9a75c29c833ccb48123f79b7b0e4 | 2,116 | // Copyright (c) 2021, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package com.android.tools.r8.ir.desugar;
import com.android.tools.r8.graph.DexEncodedMethod;
import com.a... | 39.185185 | 99 | 0.747637 |
de1068b39158d18620a654ab5a9df84ce36c5de2 | 762 | package br.com.lorenzowindmoller.projecthub.service.repository.Project;
import androidx.lifecycle.LiveData;
import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;
import androidx.room.Update;
import java.util.List;
import br.com.lorenzowindmoller.projecthub.se... | 23.8125 | 73 | 0.761155 |
e50f5abe455fed48ec69acfc360d408dbce95617 | 1,504 | package com.readytalk.cultivar.health;
import static com.google.common.util.concurrent.Service.State.FAILED;
import static com.google.common.util.concurrent.Service.State.STOPPING;
import static com.google.common.util.concurrent.Service.State.TERMINATED;
import com.codahale.metrics.health.HealthCheck;
import com.goog... | 33.422222 | 109 | 0.731383 |
638b3d83c0f185e36d06af9e4a0773007f8b71f7 | 1,521 | /*-
* #%L
* Bobcat
* %%
* Copyright (C) 2016 Wunderman Thompson Technology
* %%
* 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
*
... | 29.25 | 75 | 0.738988 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.