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 |
|---|---|---|---|---|---|
05440f625a000db069266ea8707379c2ae8597fd | 655 | /**
* Copyright 2019 Smart Society Services B.V.
*
* 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 org.opensmartgridplatform.dom... | 25.192308 | 172 | 0.690076 |
de8c1366c8cc8364f843fe085e166514aa5f6fab | 2,292 | /*
* Portions copyright (c) 1998-1999, James Clark : see copyingjc.txt for
* license details
* Portions copyright (c) 2002, Bill Lindsey : see copying.txt for license
* details
*
* Portions copyright (c) 2009-2011 TIBCO Software Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
... | 35.261538 | 109 | 0.745201 |
e2c14cbd1335257fb0789af97679ff3e1f324623 | 1,344 | /*
* Java
*
* Copyright 2017 IS2T. All rights reserved.
* For demonstration purpose only.
* IS2T PROPRIETARY. Use is subject to license terms.
*/
package com.microej.demo.smarthome.widget.light;
import com.microej.demo.smarthome.data.light.Light;
import com.microej.demo.smarthome.data.light.LightEventListener;
i... | 18.666667 | 83 | 0.716518 |
91156b7ed7f374100ef5b4dff36be96e57a1d4a3 | 1,285 | package com.example.applicationrunnercommandlinerunner.runner;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
import java.util.Arrays;
import java.util.List;
@O... | 37.794118 | 111 | 0.675486 |
7b6b50819784887978d416d0ab533045cec6a5ac | 934 | /*
* Copyright (C) 2019 fastjrun, Inc. All Rights Reserved.
*/
package com.fastjrun.client.util;
import java.util.Map;
public abstract class BaseHTTPUtilClient extends BaseUtilClient {
protected String baseUrl;
protected Map<String, String> requestHeaderDefault;
public Map<String, String> getRequestH... | 26.685714 | 100 | 0.667024 |
0a3ea3a687d40685615069872978bbe5c27217e2 | 1,705 | /*
* This file is part of JGAP.
*
* JGAP offers a dual license model containing the LGPL as well as the MPL.
*
* For licensing information please see the file license.txt included with JGAP
* or have a look at the top of class org.jgap.Chromosome which representatively
* includes the JGAP license policy applicab... | 20.297619 | 80 | 0.70088 |
fad5867cd054745c90ecf143754631f7f4f5f39a | 1,694 | package com.huirong.list;
/**
* Created by huirong on 17-5-22.
* 两个队列模拟栈
* 队列为循环队列
*/
public class QueueStack<E> {
private final int NUM;
private Object[] queue1;
private Object[] queue2;
private int front1 = 0, tail1 = 0, front2 = 0, tail2 = 0;
public QueueStack(int num) {
this.NUM =... | 23.205479 | 74 | 0.4268 |
6c32385d49776a31e1fd90af23c1fee4dfdec481 | 7,996 | package com.example.ggxiaozhi.common.widget.recycler;
import android.support.annotation.LayoutRes;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import java.util.ArrayList... | 24.378049 | 88 | 0.588919 |
eb0e6740c29d48b60238de79295cbba900a63b8a | 614 | package net.mabako.steamgifts.data;
import java.io.Serializable;
public class Image implements Serializable {
private String url, title;
public Image(String url, String title) {
this.url = url;
this.title = title;
}
public String getUrl() {
return url;
}
public void ... | 18.058824 | 52 | 0.586319 |
6d478171ced5608e1ffe177d45e9f75727a03706 | 459 | package net.minecraft.util;
public enum EnumWorldBlockLayer
{
SOLID("Solid"),
CUTOUT_MIPPED("Mipped Cutout"),
CUTOUT("Cutout"),
TRANSLUCENT("Translucent");
private final String field_180338_e;
private static final String __OBFID = "CL_00002152";
private EnumWorldBlockLayer(String p_i45755_... | 20.863636 | 56 | 0.67756 |
62db6426fc90e08e3605e6727e0b8e9244e40586 | 5,103 | package apoc.util;
import apoc.export.util.PointSerializer;
import apoc.export.util.TemporalSerializer;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.MappingIte... | 41.487805 | 133 | 0.692338 |
bdd38cde7b050f979395b589878c5a674a99b065 | 6,052 | /*******************************************************************************
* Copyright 2000-2016 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.a... | 38.303797 | 127 | 0.61616 |
146da088a41e1731f25ca1be8821eb0c3d27fe2c | 3,593 | /*
* 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 ... | 33.579439 | 98 | 0.652936 |
766c537fcddafddbde93e3beab2e0d8121a9b695 | 9,368 | package bq_standard.tasks;
import betterquesting.api.questing.IQuest;
import betterquesting.api.questing.tasks.ITask;
import betterquesting.api.utils.BigItemStack;
import betterquesting.api.utils.ItemComparison;
import betterquesting.api.utils.JsonHelper;
import betterquesting.api.utils.NBTConverter;
import betterques... | 30.122186 | 210 | 0.654996 |
5e343d1be29ed02414e4148ead1a54fb54d74b08 | 621 | import java.util.Scanner;
public class Volume
{
public static void main(String[] args)
{
Scanner in = new Scanner(System.in);
System.out.print("please enter the price for a six-pacak: ");
double packPrice= in.nextDouble();
System.out.print("please enter the volume for each(in ounce... | 27 | 69 | 0.653784 |
fb2f66624d2e5ca478604a156f8f379f9372f944 | 1,127 | package hci201.tingada;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;
public class SplashFirstActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceS... | 30.459459 | 122 | 0.61402 |
3b45ca43fd192382d8281f67fef50bc7377a1a10 | 472 | public class Test1 {
/**
* Sunny day scenario test.
*/
public static void main()
//@ requires true;
//@ ensures true;
{
Test1[] own1;
Test1[] own2;
Object[] obj1;
Object[] obj2;
int[] int1;
int[] int2;
short[] short1;
short[] short2;
own1 = own2;
obj1 = obj2;
int1 = int2;
short1 = ... | 13.111111 | 28 | 0.555085 |
32664a571cb458c69f947c25b50b7eaf6a6dbacf | 954 | /*package com.springbook.view.controller;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import ... | 22.714286 | 80 | 0.777778 |
76f5749ac8acd1a773729962568d755ae6bdaeb2 | 3,947 | /*
* Copyright 2017-2019 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 ap... | 29.022059 | 101 | 0.71776 |
99cd1c5eb6e18ae431149e1f25805f39cf38fe9d | 10,464 | package ru.job4j.solid.ocp.worker;
import ru.job4j.solid.ocp.worker.converter.Converter;
import ru.job4j.solid.ocp.worker.converter.ToJSON;
import ru.job4j.solid.ocp.worker.converter.ToTXT;
import ru.job4j.solid.ocp.worker.converter.ToXML;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
i... | 43.782427 | 111 | 0.495413 |
b3f963de5af5da1521136641f377f8655d5070ee | 2,538 | package uk.ac.ox.oucs.oxam.readers;
import java.io.IOException;
import java.io.InputStream;
import javax.validation.Validation;
import javax.validation.ValidatorFactory;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
imp... | 32.538462 | 127 | 0.792356 |
ba5844f4ae522881061c1a7a543ea7aafa8a8fa9 | 305 | package com.instrumentalapp;
import org.junit.*;
import java.io.*;
import java.util.Scanner;
public class NoticeTest {
@Test
public void messageValidity() {
Assert.assertTrue(new Notice("hello world", 1, 1).isValid());
Assert.assertFalse(new Notice("hello\nworld", 1, 1).isValid());
}
}
| 19.0625 | 67 | 0.695082 |
6dea4ac1b2edfcfee23e5786e6fb5929d20ca909 | 801 | package net.sf.esfinge.metadata.examples.metadataLocator.simple;
import static org.junit.Assert.*;
import java.lang.annotation.Annotation;
import java.util.List;
import org.junit.Test;
import net.sf.esfinge.metadata.AnnotationFinder;
public class MetadataLocatorTest {
@Test
public void metadataLocatorTestWithAn... | 27.62069 | 125 | 0.815231 |
fbb8c05df9f9541f237b589c7583e958d250d676 | 1,330 | /*
fazer um programa que leia um valor qualquer
e apresente uma mensagem dizendo em qual dos seguintes intervalos
([0,25], (25,50], (50,75], (75,100])
este valor se encontra.
Se o valor não estiver em nenhum destes intervalos,
deverá ser impressa a mensagem “Fora de intervalo”.
O símbolo ( representa "maior que". Por... | 28.913043 | 73 | 0.555639 |
d4b573a46bc1b5ff9a3c9b889d7012eb8f9d0ffb | 597 | import org.hamcrest.core.Is;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import com.huawei.demo4mt.PojoConsumer;
import com.huawei.demo4mt.TestMgr;
/**
* 一句话功能简述
* 功能详细描述
* @author m00416667
* @version [版本号, ]
* @see [相关类/方法]
* @since [产品/模块版本]
* Package Name:PACKAGE_NAME
*/
publ... | 18.65625 | 67 | 0.656616 |
623f223ab62f5c71fd77a00ad6317c1cd6176418 | 3,859 | package br.com.zupacademy.ratkovski.proposta.controller;
import br.com.zupacademy.ratkovski.proposta.dto.CarteiraRequestFeingDto;
import br.com.zupacademy.ratkovski.proposta.dto.CarteiraResquestDto;
import br.com.zupacademy.ratkovski.proposta.feing.ApiCartaoFeing;
import br.com.zupacademy.ratkovski.proposta.modelo.Ca... | 38.979798 | 142 | 0.740347 |
57d77486b26c066b6c82e20c9dfcef57fd90bfcb | 3,632 | package com.keenant.dhub.zwave.transaction;
import com.keenant.dhub.zwave.Controller;
import com.keenant.dhub.zwave.InboundMessage;
import com.keenant.dhub.zwave.UnknownMessage;
import com.keenant.dhub.zwave.frame.Frame;
import com.keenant.dhub.zwave.frame.Status;
import java.util.ArrayDeque;
import java.util.Queue;
... | 26.510949 | 91 | 0.643447 |
b07bbb87e274ef7f7cfe0b21c68dea196a7b8c70 | 1,129 | package com.hzmct.silentinstall.permission;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
/**
* @author Woong on 2020/5/28
* @website http://woong.cn
... | 31.361111 | 121 | 0.703277 |
d60421f1dc32a33a52ddddd2475787fd97bf6a15 | 1,409 | package com.company.superKeyword;
class Animal
{
String color = "white";
Animal()
{//noparameter constructor in Animal class
System.out.println("animal constructor");
}
void print()
{
System.out.println("\ncall animal class method");
System.out.println(color);
System.out.println(this.colo... | 24.293103 | 102 | 0.669269 |
c8da40982da67687a148b59a7d5ef26391205780 | 2,882 | package ecda.test;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import coopy.Csv;
import coopy.JavaTableView;
import coopy.Table;
public class FileChecker
{
private stati... | 24.218487 | 86 | 0.671062 |
abe562032d794df5941e6442e897627b4df2056b | 434 | package com.lillicoder.algorithms.search;
import java.util.List;
interface Search {
/**
* Searches the given {@link List} for the given element.
* @param list List to search.
* @param toFind Element to find.
* @param <T> Type of element.
* @return Position of element or {@code -1} if no ... | 25.529412 | 83 | 0.645161 |
ff54f96846fa2f8793a743c587b34c75643c4feb | 3,539 | package org.hf.mls.ar.hadoop;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.conf.Configured;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Job;
import org.apache.hadoop.mapreduce.Mapper;
import or... | 35.39 | 119 | 0.6256 |
297a27901bbe2a2fcbc5c1f0c3fbc67c8b609cb7 | 135 | package com.javaedge.design.pattern.structural.adapter;
/**
* Created by JavaEdge
*/
public interface DC5 {
int outputDC5V();
}
| 15 | 55 | 0.711111 |
9b912eb24c2d5b49bb031f1cdcd0e9c273ac760f | 5,125 | package main;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import tools.FileManager;
import latentTAN.mergeModels;
/**
*
* @author Arturo Lopez Pineda <arl68@pitt.edu>
* Date: June 29, 2015
*/
public class argumentHandler {
public static ArrayList<String> models = new ArrayList<... | 29.454023 | 184 | 0.641951 |
5c1806b0b72bd67893e48253fda9b7bbd48657bb | 2,663 | package masssh.boilerplate.spring.spa.dao;
import masssh.boilerplate.spring.spa.dao.annotation.DaoTest;
import masssh.boilerplate.spring.spa.enums.VerificationType;
import masssh.boilerplate.spring.spa.model.row.UserRow;
import masssh.boilerplate.spring.spa.model.row.VerificationRow;
import masssh.boilerplate.spring.s... | 48.418182 | 145 | 0.764927 |
d06dd27743589c891aff679e7940ec51e7c4ee67 | 24,068 | package com.sanbot.capaBot;
import android.content.Intent;
import android.graphics.RectF;
import android.os.Bundle;
import android.os.Handler;
import android.support.annotation.NonNull;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.ProgressBar;
import... | 44.080586 | 212 | 0.558293 |
c42bb19a6152ea99bb583042c603879e8a01cf6e | 746 | package xworker.libdgx.functions.scenes.scene2d.utils;
import org.xmeta.ActionContext;
import com.badlogic.gdx.graphics.g2d.Sprite;
import com.badlogic.gdx.scenes.scene2d.utils.SpriteDrawable;
public class SpriteDrawableFunctions {
public static Object createSpriteDrawable(ActionContext actionContext){
r... | 32.434783 | 82 | 0.788204 |
935f9c87b8294c24817782fad9760d4dba2880dd | 521 | package com.baiyun.model;
public class Msg {
public static final int SUCCESS = 1;
public static final int ERR = 0;
private int status = ERR;// 0失败,1成功
private String msg;
private Object data;
public int getStatus() {
return status;
}
public void setStatus(int status) {
this.status = status;
}
public... | 14.081081 | 37 | 0.669866 |
4158e02215cbac57ef25e87c8e99a65ef6f71eb6 | 933 | package chapter12.machines;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
public class TransportDemo2 {
public static void main(String[] arguments) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(... | 35.884615 | 134 | 0.6806 |
71b194d82011a158c91b171593543b8dac64620e | 874 | package sblectric.lightningcraft.util;
import java.util.LinkedList;
import java.util.List;
import net.minecraft.entity.Entity;
import net.minecraft.entity.effect.EntityLightningBolt;
import net.minecraft.util.math.AxisAlignedBB;
import net.minecraft.world.World;
/** Helper methods associated with weather effects */
... | 32.37037 | 138 | 0.735698 |
919a89bd6900814cfdcbddea5bdf5baf62b1dc22 | 969 | package com.sms.server.net.rtsp.codec;
import java.nio.charset.CharacterCodingException;
import org.apache.mina.core.buffer.IoBuffer;
import com.sms.server.net.http.message.HTTPMessage;
import com.sms.server.net.http.message.HTTPResponse;
/**
* RTSP Response Encoder
* @author pengliren
*
*/
public class RTSPRes... | 27.685714 | 90 | 0.705882 |
b6b1a63e51a52808fcda188128dda20aa85c0205 | 309 | package comlib.adk.util.target;
import comlib.adk.team.tactics.Tactics;
import rescuecore2.worldmodel.EntityID;
public abstract class TargetSelector {
protected Tactics tactics;
public TargetSelector(Tactics t) {
this.tactics = t;
}
public abstract EntityID getTarget(int time);
} | 20.6 | 49 | 0.737864 |
37e242064cbce446bbb11c8e29a4e2e15416d98c | 705 | package com.example.ali.melbournebikeshare.app_manager;
import android.app.Application;
import com.example.ali.melbournebikeshare.network.VolleyManager;
/**
* Created by alireza.sobhani on 18/10/2015.
*/
public class AppManager extends Application {
private static AppManager instance;
private VolleyManage... | 23.5 | 68 | 0.713475 |
5eefa34c45d48945cb5b4d42c6db2bef66fe6592 | 585 | package com.lkats.wishlist.books.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.*;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import javax.validation.constraints.Email;
import java.util.Set;
@Data
@Builder
@NoArgsConstructor... | 18.870968 | 62 | 0.758974 |
c713ec058161c2fcd18731baa68b94d7e46604bf | 596 | package application;
import java.util.Locale;
import java.util.Scanner;
import util.Calculator2;
public class Main3 {
public static void main(String[] args) {
Locale.setDefault(Locale.US);
Scanner teclado = new Scanner(System.in);
System.out.print("Enter radius: ");
double radius = teclado.nextDouble();... | 20.551724 | 56 | 0.687919 |
9e14e8f90ab1e0431909a729ba1b79a264089c31 | 8,886 | /*
* Fabric3
* Copyright (c) 2009-2015 Metaform Systems
*
* 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... | 42.314286 | 159 | 0.661265 |
c1348f287cbbc18ee023e29c5a4bb13afc9f4b75 | 1,142 | /*
* Copyright 2017 dmfs GmbH
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 24.826087 | 87 | 0.677758 |
455ee8057ad0af2217945e1f7b5e9bdcda235131 | 3,951 | /*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.envers.internal.entities.mapper.relation.lazy.initializor;
i... | 36.925234 | 111 | 0.748165 |
829b8bf9d6b15ef37c6322d634e3f6d8b2ee51da | 681 | package cn.kiyohara.cocplayercharactermanager;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
public class AboutActivity extends AppCompatActivity {
ImageView cancelIv;
@Override
protected void onCreate(Bundle savedIn... | 28.375 | 64 | 0.69163 |
6b32a7a158d9f77b684be955ac33dc53785df450 | 289 | public class Challenge {
public static void main(String[] args) {
// 1. 1~100 을 순회한다
// 2. 루프 내에서 난수 값을 할당 받는다.
// 3. 현재 i값이 난수의 배수인지 판정한다.
// 4. 배수라면 출력하고 sum에 합산
// 아니라면 i에 가장 가까운 i보다 큰 난수 배수값을 찾아서 출력하고 합산한다.
// 또한 현재 i값값
}
}
| 26.272727 | 57 | 0.50519 |
9fbb2156bce491bb858eb67ccf15330277c17b82 | 1,392 |
import java.util.Scanner;
public class matrix_symmetric
{
int A[][],B[][],n,i,j;
void input()
{
Scanner sc=new Scanner(System.in);
System.out.println("enter no. of rows and columns");
n=sc.nextInt();
A=new int[n][n];
B=new int[n][n];
System.out.println("enter elements"+(n*n));
fo... | 19.605634 | 57 | 0.45977 |
7b371f162d67c15d473b2fd74c01cfee10b48855 | 4,627 | /*
* Copyright 2020-2021 Richard Linsdale (richard at theretiredprogrammer.uk).
*
* 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
*
... | 37.92623 | 118 | 0.712989 |
2e1e53002bfe0c221827b46d9416e948d9d9e542 | 165 | package com.yofish.yyconfig.client.pattern;
/**
* @Author: xiongchengwei
* @version:
* @Description: 类的主要职责说明
* @Date: 2020/8/19 下午2:02
*/
public class Ss {
}
| 15 | 43 | 0.672727 |
8857a0b2bf978a7c4b20b897c3746eb9e40e9396 | 9,170 | /*
* 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 com.mycompany.hw1_131044084_mehmed_mustafa;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framewo... | 29.580645 | 79 | 0.618975 |
14207691a970fbc904c2f63a961d1fdaae696d71 | 1,848 | package com.GestionStock.dto;
import com.GestionStock.model.LigneCommandeFournisseur;
import lombok.Builder;
import lombok.Data;
import java.math.BigDecimal;
@Data
@Builder
public class LigneCommandeFournisseurDto {
private Integer id;
private BigDecimal quantite;
private BigDecimal prixUnitaire;
... | 33.6 | 111 | 0.739177 |
2e855b753b11be56c26c55c46f085a3e4b370b65 | 271 | package com.linkedbook.dto.deal.createDeal;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
@NoArgsConstructor
@AllArgsConstructor
@Getter
@Builder
public class CreateDealOutput {
private int dealId;
} | 19.357143 | 43 | 0.826568 |
d94499cb7427fcceb5f63a09a515ce4fabb44f39 | 1,841 | package com.alibaba.alink.common.mapper;
import org.apache.flink.api.common.typeinfo.TypeInformation;
import org.apache.flink.api.java.tuple.Tuple4;
import org.apache.flink.ml.api.misc.param.Params;
import org.apache.flink.table.api.TableSchema;
import com.alibaba.alink.params.mapper.MISOMapperParams;
/**
* Mapper ... | 27.477612 | 91 | 0.724606 |
2a21800d6f874cd340cf67980a899e321093fd70 | 585 | package com.glovoapp.diagrams;
import java.util.Set;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
public interface Component<Id extends Identifier<Id>> extends Identifiable<Id> {
String getName();
Set<Component<Id>> getNestedComponents();
@Getter
@Eq... | 22.5 | 85 | 0.735043 |
3f828c82b84511769aadf3dd8ab0b25096e4998e | 287 | package com.scottlogic.deg.generator.generation;
import com.scottlogic.deg.generator.outputs.GeneratedObject;
public interface DataGeneratorMonitor {
void generationStarting(GenerationConfig generationConfig);
void rowEmitted(GeneratedObject row);
void endGeneration();
}
| 26.090909 | 63 | 0.811847 |
4cb47f4c5ece60912976b50a4a9b16ad6b646c36 | 1,500 | package qunar.tc.qconfig.client.impl;
import com.google.common.base.Strings;
import com.google.common.collect.Maps;
import java.util.AbstractMap;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentMap;
/**
* @author lepdou 2017-06-30
*/
class ConfigRepository {
pr... | 25 | 87 | 0.615333 |
1433d33eb53737e56c48b8a610992dbffe0fe841 | 1,510 | // Copyright 2016 theaigames.com (developers@theaigames.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
// Un... | 35.952381 | 79 | 0.706623 |
538558d4f34768659ee70643151da4aa78f283f4 | 4,295 | package org.tat.fni.api.domain;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinC... | 27.88961 | 203 | 0.747846 |
48e9fcc42b1e85b078c8440a095ec2ccfa03422c | 1,776 | package com.simple.csv.model;
/**
* Created by Illia Vinnichenko on 25.08.2016.
*/
public class TopProduct {
private Long matchingId;
private Double totalPrice;
private Double avgPrice;
private String currency;
private Long ignoredProductsCount;
public Long getMatchingId() {
return ... | 22.481013 | 101 | 0.606982 |
d14b1ba00084c63eb55fe306394e07d5517156bf | 1,846 | package com.ndr.app.stock.screener.listener;
import com.ndr.app.stock.screener.list.CriteriaModelList;
import com.ndr.app.stock.screener.statusbar.StatusBar;
import com.ndr.app.stock.screener.text.NoteTextPane;
import com.ndr.model.stock.screener.CriteriaModel;
import javax.swing.event.ListSelectionEvent;
import java... | 41.954545 | 101 | 0.658722 |
ae56c88b7689cacf72f9769222b632b6687ad0d7 | 1,895 | package com.upserve.uppend;
import com.upserve.uppend.util.SafeDeleting;
import org.junit.*;
import org.junit.rules.ExpectedException;
import java.io.IOException;
import java.nio.file.*;
import static org.junit.Assert.assertEquals;
public class AppendOnlyStorePartitionSizeTest {
private final Path path = Paths.... | 31.065574 | 132 | 0.631135 |
769b187306eef32da591414b3a1f4f3f83d8599a | 3,944 | /*
* Copyright 2019 Hopper
*
* 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... | 25.445161 | 84 | 0.563387 |
28ec3df7f94e4d319ae5359db8ff4bafa8de518d | 1,761 | /*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*/
package com.microsoft.intellij;
import com.microsoft.azure.toolkit.intellij.link.mysql.PasswordSaveType;
import com.microsoft.azure.toolkit.intellij.link.... | 38.282609 | 108 | 0.741624 |
af93052e3771a757ea82ae3ca9f9b02f2bc1d87b | 286 | package com.example.advertise.advertisement.repository;
import com.example.advertise.advertisement.entity.Ad;
import org.springframework.data.repository.CrudRepository;
import java.util.List;
public interface AdRepository extends CrudRepository<Ad,Long> {
List<Ad> findAll();
}
| 23.833333 | 63 | 0.811189 |
10013d158619fcd8e6993bd4281289aba9e81225 | 1,328 | package com.xj.scud.client;
import com.xj.scud.core.MessageManager;
import com.xj.scud.core.NetworkProtocol;
import com.xj.scud.core.RpcResult;
import io.netty.channel.Channel;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelFutureListener;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;... | 37.942857 | 193 | 0.666416 |
80a211513ddc3cc9a4d277f01969d83b19f02831 | 3,592 | package br.com.zup.academy.tania.proposta.Carteira;
import org.slf4j.LoggerFactory;
import org.slf4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.an... | 37.416667 | 111 | 0.77422 |
0125f0e3780cc2521ed6d9545be5d54fb326810a | 1,071 | package com.jxq.tools;
import com.alibaba.fastjson.JSONObject;
import com.jxq.douban.domain.MovieResponseVO;
import okhttp3.ResponseBody;
import retrofit2.Converter;
import retrofit2.Retrofit;
import java.io.IOException;
import java.lang.annotation.Annotation;
import java.lang.reflect.Type;
/**
* @Auther: jx
* @Da... | 26.121951 | 117 | 0.722689 |
69e6ea4a0e7fc0ed82e4f20562dc72c34eb52b70 | 1,910 | package seedu.address.model.person;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.ZoneOffset;
import java.util.Objects;
//@@author Ang-YC
/**
* Represents a Person's interview date in the address book.
* Guarantees: immutable
*/
public class InterviewDate {
public static final Strin... | 24.805195 | 120 | 0.626178 |
21c8446bcd9302d50233293ba9909ae349c958c8 | 382 | import java.util.*;
class Test{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
String a = sc.next();
String b = sc.next();
String c = a+a;
if(a.length()==b.length() && c.contains(b)){
System.out.println("true");
}
else... | 23.875 | 52 | 0.486911 |
7b242a8ed003320232dec17ff7b576c4031dd5d7 | 5,518 | /**
* This class is generated by jOOQ
*/
package org.jooq.test.db2.generatedclasses.tables.records;
/**
* This class is generated by jOOQ.
*/
@java.lang.SuppressWarnings("all")
public class VAuthorRecord extends org.jooq.impl.TableRecordImpl<org.jooq.test.db2.generatedclasses.tables.records.VAuthorRecord> implemen... | 24.524444 | 266 | 0.658753 |
3824c6ddfbb37a24501f8178195fa375055e246c | 1,264 | /*******************************************************************************
* Copyright (c) 2008, 2010 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
*... | 26.893617 | 81 | 0.563291 |
13f8460530afb9460efd0e986d0f09c041e6c264 | 1,610 | package org.opencds.cqf.cql.elm.execution;
import org.opencds.cqf.cql.execution.Context;
import org.opencds.cqf.cql.runtime.Value;
/*
IndexOf(argument List<T>, element T) Integer
The IndexOf operator returns the 0-based index of the given element in the given source list.
The operator uses the notion of equivalence ... | 28.245614 | 104 | 0.637888 |
adb6fa0976debc7b10a620e2d3fbb879342e86a9 | 876 | package com.alibaba.p3c.pmd.lang.java.rule.extend;
import net.sourceforge.pmd.testframework.SimpleAggregatorTst;
public class AliCodeExtendRuleTest extends SimpleAggregatorTst {
private static final String RULESET = "java-ali-extend";
@Override
public void setUp() {
//addRule(RULESET, ... | 33.692308 | 65 | 0.657534 |
fcf2bade6365e95d64be68c9444ace1b5d8a7e38 | 3,574 | package com.etzwallet.presenter.activities.settings;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import com.etzwallet.R;
import com.etzwallet.presenter.activities.util.BRActivity;
import com.etzwallet.presenter.customviews.BRDialogView;
import com.etz... | 38.847826 | 142 | 0.620313 |
f68f0355cdd6c65d7d6f71e220199a70e7498d77 | 2,161 | /*
* 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 ... | 29.202703 | 100 | 0.771402 |
159e73198558a1983e7130432bbf7514f212560c | 2,284 | package no.uib.inf112.desktop;
import com.badlogic.gdx.Application;
import com.badlogic.gdx.ApplicationListener;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Graphics;
import com.badlogic.gdx.backends.headless.HeadlessApplication;
import com.badlogic.gdx.graphics.GL20;
import no.uib.inf112.core.GameGraphics;
... | 33.101449 | 85 | 0.687828 |
c0881885e1f67b0dc9414fe0a7300cd6779705c5 | 1,510 | package monCollector.worker;
import java.util.Collection;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import monCollector.net.NetMap;
import yuk.Thread.TimerWork;
import yuk.dic.ModelDic;
import yuk.model.MonitorData;
import yuk.model.single.TransactionData;
import yuk.util.CommonL... | 25.59322 | 119 | 0.696689 |
ce7fe079d2e4acfcab41a2dc5a1cf465d28b293e | 9,125 | import javax.crypto.SecretKey;
import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.security.GeneralSecurityException;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.Option;
import org.apache.c... | 53.362573 | 165 | 0.604932 |
fb9d45b72e592c9267276495874cf3283cdadad9 | 1,112 | package org.kevin.codec;
import org.kevin.enums.Command;
public class QueryEncoder extends CommandEncoder {
private final String term;
private int limit;
private int offset;
public QueryEncoder(String collection, String bucket, String term, int limit, int offset){
super(collection, bucket);
... | 25.272727 | 94 | 0.556655 |
1843469322636a1384fb0e994b161cae2c05d8e6 | 168 | package de.vogella.plugin.adapter;
import org.eclipse.ui.views.contentoutline.ContentOutlinePage;
public class TodoOutlinePage extends ContentOutlinePage {
}
| 21 | 63 | 0.803571 |
0672a24ae09c415d18f1fcfacaf9527b47ffacc2 | 5,657 | package fr.insa.h4401.gfaim;
import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
impor... | 33.473373 | 98 | 0.655825 |
3c0ac703cedcedf20484ab3bda177a09597d033e | 6,216 | package cz.kb.openbanking.adaa.client.api.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBui... | 26.909091 | 114 | 0.563546 |
5a7d7e1e31694fe2e951758c25d2ce580716aa38 | 1,416 | package l.c.x;
import com.mojang.authlib.Agent;
import com.mojang.authlib.exceptions.AuthenticationException;
import com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService;
import com.mojang.authlib.yggdrasil.YggdrasilUserAuthentication;
import java.net.Proxy;
import net.minecraft.util.Session;
public class e {
... | 34.536585 | 158 | 0.663136 |
07e8fa97e59c3bcafcdfa6654e7265b5ad518ad4 | 1,064 | package pers.brian.mall.modules.sms.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import pers.brian.mall.modules.sms.model.SmsHomeAdvertise;
import pers.brian.mall.modules.sms.mapper.SmsHomeAdvertiseMapper;
import pers.brian.mall.modules.sms.service.SmsHomeAdvertiseService;
import c... | 32.242424 | 139 | 0.744361 |
1277f990675d95c3a362daaede6e38659a28de23 | 8,425 | /*
* MIT License
*
* Copyright (c) 2016 Kungliga Tekniska högskolan
*
* 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... | 41.707921 | 112 | 0.654243 |
6cf76b5932a01fde3e90c2e9870594ed16dc661c | 2,836 | /*
* This file is part of the Solid TX project.
*
* Copyright (c) 2015. sha1(OWNER) = df334a7237f10846a0ca302bd323e35ee1463931
* --> See LICENSE.txt for more information.
*
* @author BinaryBabel OSS (http://code.binbab.org)
*/
package org.binarybabel.solidtx.core.network;
import org.binarybabel.solidtx.core.st... | 28.646465 | 86 | 0.661495 |
6c03c99d0f6e27f2b5a795b0024efaf6564651d2 | 4,315 | /*
* Copyright (c) 2009, 2011, 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 ... | 37.521739 | 86 | 0.554809 |
9b57526a7cd2862bb7c935702629a3d0ea5dd889 | 323 | package com.cometchat.pro.androiduikit.constants;
public class AppConfig {
public class AppDetails {
public static final String APP_ID = "202691892d6697c9";
public static final String AUTH_KEY = "eac1d5120eaf7f5eb1fae02d94f53912c7af1514";
public static final String REGION = "eu";
}
... | 21.533333 | 89 | 0.71517 |
d8fa2d77dd7f00af4ce5944c04cecbdd7d0f2e1b | 1,843 | package net.Nephty.rgbee.data.features;
import net.Nephty.rgbee.Rgbee;
import net.Nephty.rgbee.setup.ModBlocks;
import net.minecraft.block.Block;
import net.minecraft.util.registry.Registry;
import net.minecraft.util.registry.WorldGenRegistries;
import net.minecraft.world.gen.GenerationStage;
import net.minecr... | 54.205882 | 268 | 0.805751 |
6a326eaf1c226f6ac1358a3841313603815c4050 | 4,082 | package br.ufrpe.wanderlustapp.hopitais.persistencia;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import java.util.ArrayList;
import java.util.List;
import br.ufrpe.wanderlustapp.cidade.persistencia.CidadeDAO;
im... | 37.449541 | 122 | 0.693533 |
30e60e0dc006ed3ca8498946832349488e1054d4 | 3,543 | package com.wxnacy.common.http;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.IOUtils;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import j... | 40.261364 | 197 | 0.671183 |
997b73859aeb5dab53f8c392254e8277fb4cad54 | 903 | import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.logging.Logger;
public class LoginServlet extends HttpServlet {
@Override
protected void doGet... | 36.12 | 114 | 0.735327 |
f776cae7bc2fae043fc297f91faf9f2044dfa5fc | 9,107 | package de.dennisguse.opentracks.content.provider;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteConstraintException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import androidx.annotation.VisibleForTesting;
imp... | 44.862069 | 630 | 0.688811 |
938a705ab9e16b6af1299bfa8bd06c6bdfa10eed | 1,529 | /*-
* ========================LICENSE_START=================================
* ids-container-manager
* %%
* Copyright (C) 2019 Fraunhofer AISEC
* %%
* 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... | 31.204082 | 87 | 0.639634 |
263dbb08961242c593834313104b74a22bdd9d71 | 2,928 | package org.bian.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.bian.dto.BQRegulatoryTermsEvaluateInputModelCustomerAgreementInstanceRecord;
import org.bia... | 35.277108 | 191 | 0.83709 |
f4e7df1ac80bb7738f210631c573160bd044ea45 | 236 | package ch.uzh.ifi.hase.soprafs22.rest.dto;
public class UserIdDTO {
private long userId;
public long getUserId() {
return userId;
}
public void setUserId(long userId) {
this.userId = userId;
}
}
| 15.733333 | 43 | 0.627119 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.