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 |
|---|---|---|---|---|---|
eb2e42d6f15fe9763746eb1c57cbd16833fa72a7 | 4,232 | package com.android.class2greylist;
import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableSet;
import org.apache.bcel.classfile.AnnotationEntry;
import org.apache.bcel.classfile.ElementValuePair;
import org.apache.bcel.classfile.Method;
import java.util.Locale;
import java.util.Set;
... | 40.304762 | 99 | 0.681711 |
d398af804a1bba27e497e257a7cdc92a2449ca10 | 261 | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
package com.microsoft.azure.spark.tools.clusters;
import com.microsoft.azure.spark.tools.job.Deployable;
public interface DefaultStorage {
Deployable createDefaultDeployable();
}
| 23.727273 | 54 | 0.789272 |
50652ba31bf6029ad921326e75fcf34f181f0371 | 815 | package com.template.model.mapper;
import com.template.model.Example2;
import com.template.resource.Example2Resource;
import com.template.response.Example2Response;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;
/**
* @author 851... | 31.346154 | 160 | 0.796319 |
f34ef1ceeb29ad1698f4b702370581c3e2023b15 | 4,263 | /*
* Copyright (C) 2004-2017 L2J DataPack
*
* This file is part of L2J DataPack.
*
* L2J DataPack is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option... | 33.046512 | 103 | 0.743139 |
aaaaac0f280d71657e5330c5c328eff0d8a69d3c | 878 | package chapter4.section2;
import edu.princeton.cs.algs4.StdOut;
import edu.princeton.cs.algs4.StdRandom;
/**
* Created by Rene Argento on 31/10/17.
*/
public class Exercise45_RandomDigraphs {
public Digraph erdosRenyiDigraph(int vertices, int edges) {
Digraph randomDigraph = new Digraph(vertices);
... | 28.322581 | 99 | 0.666287 |
f785a411da0cc12c908678ab1a11e82f330d1b5b | 459 | /*
* Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
/**
* The classes and interfaces in this package have been
* superseded by classes in the java.securi... | 13.5 | 79 | 0.636166 |
2bbf90673feb3c7c2d744c8b631ed7c5d5c8637d | 776 | /**
* @author banbao
* @comment 修改自示例代码
*/
public class Erased<T> {
private final int SIZE = 100;
public void f(Object arg) {
// if(arg instanceof T) {}
/*
* 错误: instanceof 的泛型类型不合法
* if(arg instanceof T) {}
* ^
*/
// T v... | 18.47619 | 45 | 0.385309 |
d848bc5fa10d9c151a694ae47e6e98fc87fb870c | 2,851 | package ua.com.fielden.platform.entity.query.generation.elements;
import java.util.ArrayList;
import java.util.List;
import ua.com.fielden.platform.entity.query.DbVersion;
abstract class TwoOperandsFunction extends AbstractFunction implements ISingleOperand {
private final ISingleOperand operand1;
private fi... | 26.64486 | 121 | 0.592774 |
71998a59a3328436fbb3c974ce953267fac3e288 | 7,698 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|// Copyright (C) 2013 The Android Open Source Project
end_comment
begin_comment
comment|//
end_comment
begin_comment
comment|// Licensed under the Apache License, Version 2.0 (the "License");
end_comment
begin_comment
comment|// you m... | 13.57672 | 105 | 0.803196 |
445923fd8a3b68d1daf1f6978a3e20228c5a3b3d | 1,363 | package com.markwebb.reddit.save.manager.ingest;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.methods.HttpGet;
im... | 34.075 | 111 | 0.699193 |
67edb5989eb0d3bb8308173d9428c739e649c956 | 193 | package core.backend.wrongProblem.wrongWorkbook.exception;
import core.backend.global.error.exception.CustomException;
public class WrongWorkbookNotFoundException extends CustomException {
}
| 27.571429 | 69 | 0.865285 |
6f78b009e5f8489af2cd08e187bae97ee238af78 | 541 | package com.nwnu.blockchain.p2p.quickstart;
import lombok.extern.slf4j.Slf4j;
/**
* <pre>
* Version Date Author Description
* ------------------------------------------------------------
* 1.0.0 2019/09/09 red -
* </pre>
*
* @author red
* @version 1.0.0 2019/... | 22.541667 | 63 | 0.51756 |
7a813ebe5524464b0212451ee31fc019e79ce25a | 1,080 | //*******************
//Author: Gareth Ayres <g.j.ayres@swansea.ac.uk>
//SENSE Project
//https://github.com/GEANT/CAT-Android
//*******************
package uk.ac.swansea.eduroamcat;
import android.app.ActionBar;
import android.app.ActionBar.Tab;
import android.app.Fragment;
import android.app.FragmentTransac... | 27.692308 | 73 | 0.590741 |
f436ab52ad5457d1c0300d4248c01869ec35caf8 | 2,937 | package com.fgw.mall.cart.interceptor;
import com.fgw.mall.common.constant.AuthServerConstant;
import com.fgw.mall.common.constant.CartConstant;
import com.fgw.mall.common.to.MemberEntity;
import com.fgw.mall.common.to.UserInfoTo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.servlet.HandlerIntercep... | 38.644737 | 157 | 0.687436 |
13f65c2872896f6c4c6d06e918d6b610876d43b7 | 1,690 | /* */ package org.apache.pdfbox.pdmodel.graphics.shading;
/* */
/* */ import java.awt.Paint;
/* */ import org.apache.pdfbox.cos.COSArray;
/* */ import org.apache.pdfbox.cos.COSDictionary;
/* */ import org.apache.pdfbox.cos.COSName;
/* */ import org.apache.pdfbox.pdmodel.common.PDRange;
/* */ im... | 21.666667 | 116 | 0.443195 |
cbcd02826d5419db52a7338aa9e79576ee18a0ca | 776 | package ca.ualberta.cs.miguel1_travel;
import java.math.BigDecimal;
import java.util.Currency;
import java.util.HashMap;
import android.content.Context;
//creates a string listing of the total of the claim expenses by type
public class ClaimAid {
public static final String getFullString(Claim claim, Context context... | 25.032258 | 85 | 0.726804 |
986c8b55df4e9a2bacf5b8e21701f8e02801a187 | 7,681 | /*
* 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 ... | 51.898649 | 132 | 0.690795 |
f98e9368d65bd18ce01ce3171ba83fb3f7a4e556 | 2,480 | /*
* Federal Aviation Administration (FAA) public work
*
* As a work of the United States Government, this project is in the
* public domain within the United States. Additionally, we waive copyright
* and related rights in the work worldwide
* through the Creative Commons 0 (CC0) 1.0 Universal public ... | 28.181818 | 165 | 0.693145 |
5bc7edb0724ee40ed93d071028c73a297041200f | 123 | package edu.pt.ua.tqs.lab5.s92972;
import io.cucumber.junit.platform.engine.Cucumber;
@Cucumber
class CalculatorTest {
} | 15.375 | 50 | 0.788618 |
515a9ebd33da9d87f9cdcf921ac08335c8c3ae5e | 1,191 | package com.ziroom.ziroomcustomer.ziroomstation.model;
import java.util.List;
public class StationDescription
{
public int count_star;
public String evaluatorId;
public String ext;
public boolean hasImg;
public String headerUrl;
public List<String> imgUrls;
public boolean isExpanded;
public String nic... | 37.21875 | 432 | 0.676742 |
e065fbb72b8f28b49ad756aa0f086d6ca61833f3 | 1,209 | package com.zdl.spring.bus.demo.jpa.target;
import com.zdl.spring.bus.demo.jpa.User;
import com.zdl.spring.bus.demo.jpa.source.UserDao;
import com.zdl.spring.bus.endpoint.BaseBusEndpoint;
import com.zdl.spring.bus.endpoint.BusEndpoint;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.Li... | 26.866667 | 108 | 0.712159 |
1e87b312d206af1c9d7aaee4f0c5824a18d4f25e | 3,981 | /**
* 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... | 21.403226 | 67 | 0.634514 |
7d978c4e4f2e2c43c7d4448ed3276f7ca8aa187c | 1,630 | /*
* Copyright Calvin Lee Since 2016.
* All Rights Reserved.
*/
package org.calvin.Guava;
import com.google.common.base.CharMatcher;
import com.google.common.base.Joiner;
import com.google.common.base.Splitter;
import com.google.common.collect.Sets;
import org.junit.Test;
import java.util.Arrays;
import java.util... | 27.166667 | 70 | 0.62638 |
f744637d2a12a5a04740da2aa3902fb1f495cfd6 | 778 | /*
* Copyright 2012 Phil Pratt-Szeliga and other contributors
* http://chirrup.org/
*
* See the file LICENSE for copying permission.
*/
package org.trifort.rootbeer.testcases.rootbeertest.serialization;
import org.trifort.rootbeer.runtime.Kernel;
public class ZeroLengthArrayRunOnGpu implements Kernel {
priva... | 22.882353 | 66 | 0.676093 |
c2d4758977701120224064b90957bb91235bc1f5 | 5,984 | package com.legstar.base.type.primitive;
import com.legstar.base.context.CobolContext;
import com.legstar.base.type.CobolOptionalType;
import com.legstar.base.type.CobolType;
import com.legstar.base.visitor.CobolVisitor;
/**
* A primitive COBOL type.
* <p>
* Because primitive types tend to have lots of optional pr... | 30.222222 | 84 | 0.599766 |
9f7ccb355fd5af13240017979e1c861e37df9fe8 | 20,942 | package com.flathers.cryptoaware;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.os.Handler;
import android.preference.PreferenceManager;
import android.support.v4.app.FragmentMana... | 40.118774 | 154 | 0.61613 |
3d7f19237ec741b7daedef7a01281684e457dbb1 | 6,207 | package ui;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.FocusEvent;
import java.awt.event.FocusListener;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.Input... | 30.727723 | 139 | 0.658128 |
613ef4779280b2455cce574014d8fb79a97fa6d0 | 15,791 | /*
* Copyright (C) 2006-2020 Talend Inc. - www.talend.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 applicabl... | 37.068075 | 130 | 0.591033 |
4cb3501b3beaf7f38811353189b1b21dcf93996b | 1,124 | //
// ========================================================================
// Copyright (c) 1995-2020 Mort Bay Consulting Pty Ltd and others.
//
// This program and the accompanying materials are made available under the
// terms of the Eclipse Public License v. 2.0 which is available at
// https://www.eclipse.org/... | 34.060606 | 81 | 0.61121 |
c403ab784a32a96825ccc0835ea72e76b5ac7fe8 | 3,954 | /*
* The MIT License (MIT)
*
* Copyright (c) 2016. Diorite (by Bartłomiej Mazur (aka GotoFinal))
*
* 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 withou... | 36.611111 | 189 | 0.702833 |
cdc58bcbe8f6c9b66ca46dff63e8b8cdfabad543 | 6,645 | package io.searchbox.core;
import com.google.gson.Gson;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import io.searchbox.client.JestResult;
import io.searchbox.common.AbstractIntegrationTest;
import io.searchbox.params.Parameters;
import io.searchbox.params.SearchType;
import org.apache.lucene... | 38.189655 | 130 | 0.543868 |
486df41bc2d3e0a07c3ae16de40e8f0439bab150 | 4,770 | package com.accountingmanager.Fragment.Accounting.ForeignExchange;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Typeface;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.RequiresApi;
import android.s... | 39.421488 | 146 | 0.713627 |
baee5bfec899f507b6750a12a042033ff483ff48 | 4,045 | /*
* Copyright (C) 2020 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... | 34.87069 | 97 | 0.643758 |
97d197321fac5e0cb15e991655be414aca70c664 | 1,151 | // Copyright (c) Corporation for National Research Initiatives
package org.python.core;
import java.lang.reflect.*;
public class PyBeanEvent extends PyObject {
public Method addMethod;
public Class eventClass;
public String __name__;
public PyBeanEvent(String name, Class eventClass, Method addMethod) ... | 28.073171 | 73 | 0.630756 |
e16ad528f992891171c611860f78aef20ab37459 | 370 | package com.android.datalogger.calendar;
/**
* @author Amir
*/
public class DayOutOfRangeException extends RuntimeException {
/**
*
*/
private static final long serialVersionUID = -9053871584605015203L;
public DayOutOfRangeException() {
super();
}
public DayOutOfRangeExcept... | 14.8 | 71 | 0.645946 |
babcbf0ee88fbe48844f6da5ec0101c1dbee84e2 | 1,311 | package com.pkms.pkgmg.pkg.service;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.pkms.pkgmg.pkg.dao.PkgStatusDAO;
import com.pkms.pkgmg.pkg.dao.PkgTab1DAO;
import com.pkms.pkgmg.pkg.model.PkgModel;
import com.pkms.pkgmg.pkg.model.PkgStatusModel;
/**
* 기본정보 관련 Service
... | 23.410714 | 68 | 0.741419 |
2dc9b399734b617f6ae61918fa546eca46bb88b2 | 3,582 | /*
* Copyright (C) 2016-2017 NBIChain SunCrowdfund System.
*
* 本系统软件遵循Apache2.0开源协议.
*
* ============================================================
*
* FileName: MerchantLogServiceImpl.java
*
* Created: [2014-12-12 下午5:19:59] by haolingfeng
*
* $Id$
*
* $Revision$
*
* $Author$
*
*... | 28.428571 | 82 | 0.608319 |
e36c9cb7e3a26f90ced1a63cd78676965b5d9be2 | 6,034 | package com.krishagni.catissueplus.rest.controller;
import java.io.File;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.sp... | 32.616216 | 110 | 0.776599 |
d26c0d363c9e206bc4f1c306f16d35cec72852cc | 977 | package org.csuc.dao;
import org.csuc.utils.Status;
/**
* @author amartinez
*/
public interface DashboardDAO {
long getStatus(Status status) throws Exception;
long getStatus(Status status, String user) throws Exception;
Object getDashboardRecollect(String user) throws Exception;
Object getDashbo... | 28.735294 | 80 | 0.772774 |
3460d70f89e7ca9f8f7bc0206fbb7cd8716b96f5 | 375 | package me.kecker.lichess4j.api;
import java.io.IOException;
import me.kecker.lichess4j.http.exceptions.IllegalStatusCodeException;
import me.kecker.lichess4j.http.exceptions.UnauthorizedException;
public interface BoardService {
void abortGame(String gameId) throws IOException, InterruptedException, Unauthorize... | 28.846154 | 98 | 0.818667 |
a9a61c91cd7e0597e3e26e9ef33c06d6b077563c | 324 | package org.enoy.awesomeradio.view.events;
import org.enoy.awesomeradio.music.MusicDescription;
public class SongAddedEvent extends SongsUpdatedEvent {
private final MusicDescription song;
public SongAddedEvent(MusicDescription song) {
this.song = song;
}
public MusicDescription getSong() {
return song;
}... | 18 | 55 | 0.783951 |
b4bf9ec30ae4639a6c6ac43f7861efd014bbd3c6 | 692 | package buisnessdetails.rating;
/**
* Created by subhasis on 2/23/17.
*/
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;
import java.io.IOException;
import j... | 27.68 | 108 | 0.732659 |
7bf8dc7f72f78cfd667b1ea528d3215cc9b9d928 | 3,066 | package fudi.freddy.mokitosample.camera;
import android.content.Intent;
import android.os.Bundle;
import android.os.StrictMode;
import android.provider.MediaStore;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.content.FileProvider;
import android.view.Lay... | 30.058824 | 123 | 0.684605 |
ba3e90c3858a360d69d4ee07c324f94bf828ed2d | 8,141 | /*
* Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 38.042056 | 79 | 0.591328 |
5772fa7f9a918517ee6c713ccae1e97a7fee6ce8 | 2,503 | package com.easyapp.lib.activity;
import android.content.DialogInterface;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.annotation.Nullable;
import com.easyapp.lib.R;
import com.easyapp.lib.dialogFactory.SimpleDialog;
import com.easyapp.lib.tool.Utils;
/**
*... | 23.838095 | 174 | 0.592889 |
3ce17cf2c5b4ba90081297e8df357b9b7e406b55 | 346 | package com.padcmyanmar.ted_talks_app_assignment_pkk.data.vos;
import java.util.List;
/**
* Created by paikhantko on 6/15/18.
*/
public class TedPlaylistsVO {
private int playlistId;
private String title;
private String imageUrl;
private int totalTalks;
private String description;
private L... | 19.222222 | 62 | 0.734104 |
ee57b921cca93a0fea372340d4cc4dffe3c4be66 | 2,908 | package com.server.wupitch.fcm;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.auth.oauth2.GoogleCredentials;
import com.server.wupitch.account.entity.Account;
import lombok.RequiredArgsConstructor;
import okhttp3.*;
import org.springfra... | 39.835616 | 114 | 0.656465 |
cfbe15ceb5f8a19f1ea2cefc1f78b69b8089da2c | 1,091 | package nl.tudelft.serg.evosql.test;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
public class HavingTest extends TestBase {
/**
* Having without WHERE
*/
@Test
public void test1() {
assertTrue(testExecutePath("SELECT PRODUCT, AVG(PRICE) FROM PRODUCTS GROUP BY PRODUCT HAVING AVG(PRICE) ... | 27.275 | 177 | 0.714024 |
5f57d64c6f38fde1ba5c1307ef05e9e1300938bf | 4,615 | package com.jcommerce.gwt.client.form;
import java.util.Map;
import com.extjs.gxt.ui.client.widget.form.ComboBox;
import com.extjs.gxt.ui.client.widget.form.TextField;
import com.extjs.gxt.ui.client.widget.form.Field.FieldMessages;
import com.jcommerce.gwt.client.model.IRegion;
import com.jcommerce.gwt.client... | 32.048611 | 75 | 0.727411 |
4095bf26aea1ef5151ef61d99db6ce4fc291451b | 731 | package com.jfinal.weixin.robot;
import java.util.List;
public class TuLingResponse {
private String code;
private String text;
private String url;
private List<InfoEntity> list;
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
... | 17.829268 | 48 | 0.584131 |
11f722ea4deb7b5b1109765271f7fa77a13e8ab1 | 1,404 | /*
* Copyright (c) 2015 EMC Corporation
* All Rights Reserved
*/
package com.emc.sa.model.suite;
import org.apache.log4j.Logger;
import org.junit.Assert;
import org.junit.Test;
import com.emc.sa.model.BaseModelTest;
import com.emc.storageos.db.client.model.uimodels.CatalogServiceField;
import com.emc.storageos.db.... | 28.653061 | 90 | 0.702991 |
76c10ef440d288df27b8e2a6a7e56f6e6f43906e | 3,976 | /*
* Copyright 2010-2015 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... | 43.692308 | 139 | 0.713028 |
fa84dd4af1d9d60d1d39c67763287bc9a5a9ee56 | 1,559 | /**
* Copyright (C) 2014-2017 Philip Helger (www.helger.com)
* philip[at]helger[dot]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/LICE... | 29.415094 | 101 | 0.737011 |
26e6c8c46928705ee0c05590b8964e6fa893c057 | 1,132 |
package mage.cards.r;
import java.util.UUID;
import mage.ObjectColor;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.effects.common.cost.SpellsCostReductionControllerEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Zone;
... | 26.952381 | 119 | 0.734099 |
5800e8c9372659bbd77163ea3d03f42654d080f1 | 1,268 |
package com.prancingdonkey.component;
import org.apache.commons.codec.digest.DigestUtils;
import org.mule.api.MuleEventContext;
import org.mule.api.MuleMessage;
import org.mule.api.lifecycle.Callable;
import org.mule.transport.file.FileConnector;
public class Md5FileHasher implements Callable
{
private String so... | 31.7 | 110 | 0.667981 |
81422268db7f24ebb506c4d82792ba661f568242 | 1,444 | package com.github.jayield.rapper.domainModel;
import com.github.jayield.rapper.DomainObject;
import com.github.jayield.rapper.EmbeddedId;
public class Car implements DomainObject<Car.PrimaryPk> {
@EmbeddedId
private final PrimaryPk pk;
private final String brand;
private final String model;
priva... | 21.235294 | 83 | 0.573407 |
f81709dc48a9db40884f3f6849eae3e428b9a913 | 3,012 | package com.mapbox.mapboxsdk.testapp.activity.fragment;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import com.mapbox.mapboxsdk.camera.CameraPosition;
import com.mapbox.mapboxsdk.camera.CameraUpdateFactory;
import com.mapbox.mapboxsdk.geometry.LatLng... | 30.12 | 105 | 0.747012 |
d31846ea236e8a7f50c22c27e3344eb5ca53da19 | 6,520 | package es.uma.informatica.saneka;
import static org.junit.Assert.*;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Logger;
import javax.naming.Context;
import org.junit.Before;
import org.junit.Test;
import es.uma.informatica.ejb.exceptions.TitulacionExistenteException;
import es.um... | 28.849558 | 98 | 0.741564 |
10df2e37718335ea636d17f80aaa463d8e7035b9 | 785 | package laurent.fitness.repository;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import laurent.fitness.model.ProductRef;
public interface ProductRefRepository extends JpaRepository<ProductRef, Integer> {
@Query("SELECT p... | 32.708333 | 83 | 0.802548 |
7ae1ab52f38cce37ad3856d171710f1a1c62ef1b | 1,184 | package io.github.jspinak.brobot.actions.composites.multipleActions;
import io.github.jspinak.brobot.actions.actionExecution.ActionInterface;
import io.github.jspinak.brobot.actions.actionExecution.BasicAction;
import io.github.jspinak.brobot.datatypes.primitives.match.Matches;
import org.springframework.stereotype.Co... | 33.828571 | 110 | 0.708615 |
65a30d11d2d3f5a1260dc17b1f3f1be838042403 | 2,958 | // 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 in ... | 31.806452 | 107 | 0.775524 |
a9d0355796ef7130e92d174318eb9cae0425e419 | 13,790 | package org.ihtsdo.rvf.execution.service;
import com.google.common.collect.Sets;
import com.google.common.io.Files;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang.CharEncoding;
import org.apache.commons.lang3.StringUtils;
import org.ihtsdo.otf.resou... | 41.661631 | 176 | 0.742132 |
ae551f014b5dd07cca86c4b5af890486f3f9f55c | 6,432 | package com.refinedmods.refinedstorage2.platform.common.internal.network;
import com.refinedmods.refinedstorage2.api.network.ConnectionProvider;
import com.refinedmods.refinedstorage2.api.network.Connections;
import com.refinedmods.refinedstorage2.api.network.node.container.NetworkNodeContainer;
import com.refinedmods... | 40.2 | 145 | 0.677394 |
99e0bf418536830a5d857009fb896290fd7f8e05 | 971 | package application.util;
import javafx.scene.image.Image;
public class ImageLoader {
public static Image bulbImage = new Image(ImageLoader.class.getResource("/img/lamp.gif").toString());
public static Image ammeterImage = new Image(ImageLoader.class.getResource("/img/ammeter.gif").toString());
public static Image... | 51.105263 | 119 | 0.773429 |
554776a5e4ad193f86e0620877d36d9e19d7ef21 | 5,472 | /*
* Copyright 2012-2016 bambooCORE, greenstep of copyright Chen Xin Nien
*
* 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
*
* ... | 31.448276 | 116 | 0.74799 |
b1fdad8bb421ae1df4abe94d7f5447e88b926efd | 2,549 | /*
* Copyright (c) 2021. Enzo Reyes 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 w... | 38.621212 | 137 | 0.785798 |
64e69d550bbb30bde8aa8dd349cb401d29b450dd | 1,299 | package com.theotakutech.eviction.impl;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.Set;
import com.theotakutech.eviction.EvictionAlgo;
import com.theotakutech.model.entry.Entry;
/**
*
* The least recently used eviction algorithm implementation
*
* @author Mars
*
* ... | 20.296875 | 76 | 0.639723 |
389d9bc4b721f4bfaeeb5bb479e94584c897cd79 | 374 | package com.android.volley;
import com.android.volley.p.a;
// compiled from: RequestQueue.java
final class q implements a {
final /* synthetic */ Object a;
final /* synthetic */ p b;
q(p pVar, Object obj) {
this.b = pVar;
this.a = obj;
}
public final boolean a(Request<?> request)... | 19.684211 | 48 | 0.596257 |
8b113b9766e393816a0e3999db2d65e6b1139df2 | 7,518 | package org.dhis2.fhir.adapter.fhir.transform.dhis.impl.metadata.r4;
/*
* Copyright (c) 2004-2019, University of Oslo
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* Redistributions of so... | 43.709302 | 238 | 0.723996 |
9c5b8097d7e785bb8dba44a42d1bbf52e2c980a0 | 2,351 | package ru.stqa.training.selenium;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.Select;
import java.util.List;
import static org.junit.Assert.assertTrue;
import static org.openqa.selenium.support.ui.ExpectedConditions.elementToBeCl... | 43.537037 | 121 | 0.626967 |
75fc9eed3322bcccfbacd6921a9b6becbc3680a6 | 2,706 | package com.google.impactdashboard.server;
import com.google.common.annotations.VisibleForTesting;
import com.google.impactdashboard.data.project.Project;
import com.google.impactdashboard.data.project.ProjectGraphData;
import com.google.impactdashboard.data.project.ProjectIdentification;
import com.google.impactdashb... | 42.952381 | 102 | 0.793052 |
dd25d46a066c46f757dfaa3cf9b9ce2ba1676b6c | 737 | package com.sweetzpot.stravazpot.route.request;
import com.sweetzpot.stravazpot.route.api.RouteAPI;
import com.sweetzpot.stravazpot.route.model.Route;
import com.sweetzpot.stravazpot.route.rest.RouteRest;
import java.util.List;
import retrofit2.Call;
public class ListRoutesRequest {
private final int athleteID... | 26.321429 | 82 | 0.72863 |
1a37c1aa300c31c3c6aaba87f8f168cff438150a | 2,306 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package ed.biodare2.backend.util.concurrent.id.db;
//import ed.biodare2.backend.SimpleTestConfiguration;
import java.util.Arra... | 25.622222 | 82 | 0.621422 |
c7177829836598df9c22968024dde267f1d64bd0 | 1,068 | package com.devteam.core.module.data.db.entity;
import javax.persistence.MappedSuperclass;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombo... | 23.217391 | 63 | 0.733146 |
3d3824b53ac7893a9ba4db175505a3ff47f12a54 | 2,623 | import io.appium.java_client.AppiumDriver;
import io.appium.java_client.android.AndroidDriver;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.ScreenOrientation;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.support.ui.WebDriverWait;... | 32.382716 | 90 | 0.684331 |
d220d9fb22770468dabee7abd502727b8e7a4e7f | 2,096 | package com.cts.training.controller;
import java.util.List;
import java.util.Optional;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.spri... | 33.269841 | 89 | 0.77958 |
6d73955a1188de02ef2b16110f1a1133f768fb7f | 13,648 | /*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 37.806094 | 144 | 0.65995 |
6bcc6ad8afd52442a94557c9cb82180916bbf3ae | 485 | package org.example.simple;
import com.blade.ioc.annotation.Bean;
import java.util.HashMap;
/**
* @author biezhi
* @date 2018/5/31
*/
@Bean
public class UserService {
public HashMap sayHello() {
HashMap<String, Object> res=new HashMap<>();
res.put("name","yzq");
res.put("likes","gensh... | 19.4 | 52 | 0.606186 |
9688a084a08de64bf5ffd5f5194f026b404e8e9a | 1,606 | package fhw.gulimall.ware.service.impl;
import com.alibaba.spring.util.WrapperUtils;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditi... | 35.688889 | 110 | 0.700498 |
7846f883bf723f1456794e5c7326596cb5730855 | 3,642 | import java.util.HashMap;
import java.util.Map.Entry;
import java.util.List;
import java.util.ArrayList;
class faux{ // collection of non-OO auxiliary functions (currently just error)
public static void error(String msg){
System.err.println("Interpreter error: "+msg);
System.exit(-1);
}
}
abstract class AST... | 27.801527 | 100 | 0.607633 |
a8b75d7556864040c78fa5dddcb971bfeb951a6d | 261 | package dev.elektronisch.dieter.common.dto.device;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
@NoArgsConstructor
@AllArgsConstructor
@Getter
public final class DeviceHeartbeatResponse {
private String blob;
}
| 20.076923 | 50 | 0.831418 |
9cd91a6417752bebd426d90dda526679568fe6ff | 3,287 | /*
* 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... | 39.130952 | 99 | 0.670216 |
fcf6db46541a400a5a5113d3165c6caa0267114e | 1,030 | package io.eventuate.examples.tram.sagas.ordersandcustomers.orders;
import io.eventuate.examples.tram.sagas.ordersandcustomers.orders.web.OrderWebConfiguration;
import io.eventuate.tram.spring.consumer.kafka.EventuateTramKafkaMessageConsumerConfiguration;
import io.eventuate.tram.spring.messaging.producer.jdbc.TramMes... | 39.615385 | 94 | 0.845631 |
a100603e7802622e7029151ae4fad1a07ad03a3b | 1,699 | /*
* 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 not ... | 32.673077 | 97 | 0.749853 |
cfec8e09efc6d51dafb388da1c4c693a7edba4a6 | 1,921 | package pl.potat0x.nomock.examples.bookapp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.EmptyResultDataAccessException;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Optional;
import... | 29.553846 | 91 | 0.674649 |
c7d7d89d49cbac246a612c890f765fdf85c71605 | 3,650 | package xin.cymall.controller;
import java.util.List;
import java.util.Map;
import xin.cymall.common.enumresource.StateEnum;
import xin.cymall.common.log.SysLog;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ui.Mo... | 23.101266 | 94 | 0.671233 |
4da337796eb6e459b0aa3254c0dff6114004bcf7 | 7,347 | /**
* Copyright (c) 2007-2013 Alysson Bessani, Eduardo Alchieri, Paulo Sousa, and the authors indicated in 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://w... | 39.28877 | 130 | 0.51681 |
3a06f621d25631bcff54e80f09cf180b44d9ac53 | 1,344 | package com.rubenskj.portfolio.controller;
import com.rubenskj.portfolio.dto.PersonDTO;
import com.rubenskj.portfolio.services.PersonService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
impor... | 35.368421 | 169 | 0.752232 |
6b38fe78f0dd7fa329bb1d3deb11c4ef4aedc5d0 | 6,067 | /*
* Copyright 2015-2020 ISP RAS (http://www.ispras.ru)
*
* 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 ... | 28.890476 | 100 | 0.678919 |
a60ff549ffd9101e1393a6e4b270a97e84b7be1b | 2,435 | package info.iconmaster.ithaca.eval;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import info.iconmaster.ithaca.object.IthacaObject;
import info.iconmaster.ithaca.object.IthacaSymbol;
import info.ico... | 25.103093 | 88 | 0.681314 |
bab9f8392fa7fa64c44c07a9ba57c85c5b414cd1 | 157 | package it.kineton.web;
import it.kineton.model.Event;
import org.springframework.stereotype.Controller;
@Controller
public class EventController {
}
| 13.083333 | 49 | 0.789809 |
f4260af01ba02cf6dfba71d8d50361392d60fb54 | 851 | package com.squareup.dinosaurs;
import com.squareup.geology.Period;
import java.io.IOException;
import java.util.Arrays;
import okio.ByteString;
public final class Sample {
public void run() throws IOException {
// Create an immutable value object with the Builder API.
Dinosaur stegosaurus = new Dinosaur.Bu... | 30.392857 | 84 | 0.693302 |
1da0db76812d51a5e8efbd00a87283a137ac8137 | 4,428 | /**
* 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 | 77 | 0.702123 |
7c0458ea3e0cd4009ec4c537ab4aeeaf4a250dda | 705 | package com.lcw.test.user;
import java.io.Serializable;
public class User implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
private String name;
private String mobile;
private int age;
private UserDto userdto;
public String getName() {
return name;
}
public void se... | 14.387755 | 49 | 0.686525 |
839f17c1fc58cb43879022c8f869ff20807c2a3f | 5,369 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package onl.area51.metoffice.regionaltextfcst;
import java.io.IOException;
import java.io.OutputStream;
import java.net.URISyntaxExcep... | 34.197452 | 159 | 0.577389 |
d545c5fc5ce4de449002ace5731f87a6ba20019c | 642 | package com.vailter.standard.hutool.clone;
import cn.hutool.core.clone.Cloneable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Cat implements Cloneable<Cat>, Serializable {
private st... | 22.137931 | 70 | 0.691589 |
92e58758b6d5bcf5a72e7eb742a3258292fd8f6b | 1,102 | package io.castle.javabolerplate;
import io.castle.client.Castle;
import io.castle.client.objects.Event;
import io.castle.client.objects.UserInfoHeader;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletReques... | 32.411765 | 114 | 0.754083 |
049eb878d99c198a1039e3137f378c1151d5547f | 6,503 | package com.breiter.seatswapper.activity;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.text.method.HideReturnsTransformationMethod;
import android.text.method.PasswordTransformationMethod;
import android.view.View;
import android.vi... | 32.843434 | 136 | 0.660772 |
40e1398f7cc2f32402990333a2fb844f062b4ef7 | 5,012 | /*
* Copyright 2017 Randall Jones
*
* 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... | 25.968912 | 108 | 0.664006 |
1e4e010a4f452216b30fe5aefc04f2dcfe56d810 | 11,200 | /*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... | 26.477541 | 114 | 0.69375 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.