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 |
|---|---|---|---|---|---|
b46eec7bb0b8188ac4fa76799c1a38259c4b263c | 544 | package ogs.telegram.bots.notificationbot.bot;
import org.telegram.telegrambots.api.objects.Chat;
import org.telegram.telegrambots.api.objects.User;
import org.telegram.telegrambots.bots.AbsSender;
import org.telegram.telegrambots.bots.commandbot.commands.BotCommand;
public class Command extends BotCommand {
pub... | 28.631579 | 86 | 0.775735 |
d3a64dab1e3f45d82d6f0e505e907ca6fc5705d9 | 1,700 | package com.gentux.datos.generador;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import org.apache.commons.configuration.Configuration;
import org.apache.commons.configuration.ConfigurationException;
import org.apache.commons.configuration.PropertiesConfiguration;
import org.apache.comm... | 26.153846 | 99 | 0.736471 |
1485d716a9b37131b83e23052ae75d1cc66623d0 | 5,110 | package fr.free.nrw.commons.upload;
import android.content.ContentResolver;
import android.content.Context;
import android.media.ExifInterface;
import android.net.Uri;
import android.webkit.MimeTypeMap;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundExce... | 30.598802 | 100 | 0.567906 |
419454a1514526f360b2977df37dc1ee78ba105b | 641 | package org.mmo.db.memory.message;
import java.io.Serializable;
import com.alibaba.fastjson.JSON;
import akka.serialization.Serialization;
/**
* 数据存储请求
*
* @author JiangZhiYong
* @mail 359135103@qq.com
*/
public class SetRequest implements scala.Serializable{
private static final long serialVersionUID = 1L;
... | 16.435897 | 54 | 0.716069 |
04aba4575942fc6122ea0aed9c83a887104650a9 | 8,179 | package com.quanyan.yhy.view;
import android.content.Context;
import android.graphics.drawable.ColorDrawable;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.LinearLayout;
import a... | 40.691542 | 180 | 0.629906 |
fb2b6587023dbff2b1d6ebe191031bdd7324927e | 861 | package org.omg.hw.HW_mstpProtection;
/**
* Generated from IDL definition of struct "HW_RPRTopoInfo_T"
* @author JacORB IDL compiler
*/
public final class HW_RPRTopoInfo_THolder
implements org.omg.CORBA.portable.Streamable
{
public org.omg.hw.HW_mstpProtection.HW_RPRTopoInfo_T value;
public HW_RPRTopoInfo_THo... | 26.090909 | 91 | 0.779326 |
38c4a21b2b3d68817d942eb892cd0a989ff590c5 | 1,480 | package org.goflex.wp2.core.models;
import javax.persistence.*;
/**
* @author muhaftab
* created: 3/31/19
* updated: 6/26/19
*/
@Entity
@Table( name = "device_prognosis",
uniqueConstraints = {@UniqueConstraint(columnNames = {"time_series_id", "timestamp"})})
public class DevicePrognosis {
@Id
@Ge... | 21.142857 | 95 | 0.64527 |
95f716ff0284a7ee8fe2716a73bf5be8d0f09169 | 511 | package december.christmas.demo.repository;
import java.util.List;
import java.util.Optional;
import december.christmas.demo.dao.Employee;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
// @Repository
public interface EmployeeRepository extends CrudReposi... | 28.388889 | 83 | 0.823875 |
e14a744cf7a4903c1b7cfd0b339026364da147d8 | 531 | package com.wp.annotation;
/**
* @author 王萍
* @date 2017/12/20 0020
*/
public class Animal {
public Animal() {
}
public Animal(String kind, int nums) {
this.kind = kind;
this.nums = nums;
}
private String kind;
private int nums;
public String getKind() {
return... | 15.171429 | 42 | 0.544256 |
beb5ddfd31e2b3d57b4bcd28d2b5f1371be40dd3 | 1,179 | package be.ugent.vopro1.funky;
import org.aikodi.chameleon.core.lookup.LookupException;
/**
* Our own RuntimeLookupException
*
* @see RuntimeException
* @see LookupException
*/
public class RuntimeLookupException extends RuntimeException {
private RuntimeLookupException() {
super();
}
priva... | 24.061224 | 97 | 0.671756 |
0798a9b0955ddacd0997b20c683c3b01d9545d14 | 153 | package com.ilifesmart.model;
import java.util.UUID;
public class Ep extends MOBase {
public Ep() {
super("ep", UUID.randomUUID().toString());
}
}
| 15.3 | 44 | 0.69281 |
b759fd3d9b0393c67ce551501a25ffb85ccc7de6 | 380 | package com.java110.report.bmo.reportInfoAnswer;
import com.java110.po.reportInfoAnswer.ReportInfoAnswerPo;
import org.springframework.http.ResponseEntity;
public interface ISaveReportInfoAnswerBMO {
/**
* 添加批量操作日志详情
* add by wuxw
* @param reportInfoAnswerPo
* @return
*/
ResponseEnti... | 21.111111 | 71 | 0.744737 |
c8f2748ded6f454389d5baa47be77186647506a3 | 534 | /*
Coded by timemachine on 18-5-20
MxCompiler.InsIR.CallIR
*/
package MxCompiler.IR;
import MxCompiler.Entities.FunctionEntity;
public class CallIR extends InsIR
{
private String label;
private int pNum;
public CallIR(String label, int pNum)
{
this.label = label;
this.pNum = pNum;
}
public int pNum()
... | 12.418605 | 42 | 0.692884 |
e7db41ad6c12a9b745fdf348c1f49e313374da0c | 6,519 | /*
Interval model for simulators.
Intervals and shapes are fixed for all series from a given class
Shapes differ between models. Shapes are randomised at construction, but and so
the calling class must make sure they are different between classes with calls to
randomiseShape.
Intervals are set externally by t... | 36.418994 | 97 | 0.606075 |
4a5d5588bcc6f6fee57b5da4c7e37bf644e3cdb0 | 1,215 | package net.minecraft.server;
public class EntityMinecartRideable extends EntityMinecartAbstract {
public EntityMinecartRideable(World world) {
super(world);
}
public EntityMinecartRideable(World world, double d0, double d1, double d2) {
super(world, d0, d1, d2);
}
public boolean... | 25.851064 | 111 | 0.527572 |
75aa153f02e4ebbc32765065b299d7b9e19c09a9 | 994 | package cz.mg.desktoplinkcreator.gui.toolkit.widgets;
import cz.mg.desktoplinkcreator.config.OptionHelper;
import cz.mg.desktoplinkcreator.gui.toolkit.Entry;
import javax.swing.*;
public class OptionWidget {
private final String key;
private final OptionHelper helper;
private final JLabel label;
priv... | 23.116279 | 66 | 0.630785 |
9c3c9991dd7a9c537a8dc3c5bf3ab4c44e474f99 | 765 | package com.home.base.secruity;
import java.util.HashSet;
import java.util.Set;
import java.util.stream.Collectors;
import com.home.entity.HomeUser;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
public final class JwtUserFactor... | 26.37931 | 97 | 0.738562 |
141fb24f278158ad038c002eea1e383e9450920c | 145 | package org.opentosca.toscana.core.transformation.properties.validators;
public interface ValueValidator {
boolean isValid(String input);
}
| 24.166667 | 72 | 0.813793 |
3833fde92862ea17f9615898423f866ba49917e1 | 3,640 | /*
* Follower.java
* Copyright 2002 (C) Bryan McRoberts <merton_monk@yahoo.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your o... | 18.019802 | 83 | 0.666484 |
d992c9b6a5e1d86d1d92da6690179623a16231a4 | 288 | package com.nosy.admin.nosyadmin.model;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.Embeddable;
import javax.validation.constraints.NotNull;
@Embeddable
@Getter
@Setter
public class EmailTemplateTo {
private int status;
@NotNull private String address;
}
| 16.941176 | 44 | 0.802083 |
4cae1be29f5b128302f699f27596c979a71b8341 | 6,250 | /*
* Copyright 2002-2022 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 34.530387 | 112 | 0.78864 |
be728371686f8e89d63a88c2deea5fcd162a8c51 | 1,869 | package com.helloingob.gifter.components;
import org.zkoss.zk.ui.Executions;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.event.EventListener;
import org.zkoss.zk.ui.event.Events;
import org.zkoss.zul.Hlayout;
import org.zkoss.zul.Label;
import org.zkoss.zul.Vlayout;
public class TitleVLayout extends Vl... | 31.15 | 106 | 0.663456 |
78aee05e20e9a188b2136832f399e19c7c9b9451 | 18,410 | /*
* Copyright 2017 Daniel Vimont.
*
* 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... | 65.75 | 121 | 0.759098 |
ef0e6b92d44e3d71c7f7ea35c5be7d024d2fd01f | 6,548 | /**
*/
package aadl2;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.eclipse.emf.common.util.Enumerator;
/**
* <!-- begin-user-doc -->
* A representation of the literals of the enumeration '<em><b>Operation Kind</b></em>',
* and utility methods for working with them.
* ... | 21.899666 | 108 | 0.572541 |
41ca48226a947fec90685cc34491a67aafed5b59 | 699 | package com.edge.business.checkProduct.service.inter;
import java.util.List;
import com.edge.product.entity.ERP_Products;
import com.edge.stocks.product.kc.entity.ERP_Stock;
import com.edge.stocks.product.kc.entity.ERP_Stock_Status;
import com.edge.stocks.product.rk.entity.ERP_Product_Stock;
public interfac... | 27.96 | 72 | 0.79113 |
2f79ce898d669635053d6dd3c41abb9ceff27762 | 27,979 | /*
* Copyright (c) 2021 gematik 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 agre... | 39.97 | 120 | 0.617606 |
3baaeba4d637831c2773b8c1fa28f917a993fe87 | 256 | package com.github.diegopacheco.sandbox.java8.lambdas;
public class StaticMethodRef {
private static IntFI doLambda(){
int x = 5;
return y -> x + y;
}
public static void main(String[] args) {
System.out.println(doLambda().apply(10));
}
}
| 17.066667 | 54 | 0.679688 |
99b49e89506629964c4df9c127615c245d914465 | 856 | package com.example.iocnv.db;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteOpenHelper;
public class IOCOpenHelper extends SQLiteOpenHelper {
public static final String CREATE_ACCOUNT... | 25.176471 | 75 | 0.748832 |
815612c93289b414028c6fe0d13e5bd12eb13fd2 | 232 | package katas.kyu7;
import java.util.Arrays;
public class NDimensionalVectorMagnitude {
public static double magnitude(double[] vector) {
return Math.sqrt(Arrays.stream(vector).map(i -> Math.pow(i, 2)).sum());
}
}
| 23.2 | 79 | 0.693966 |
4ece214aa2d6fe45bdc9b2641f9fa36cfc61d1f5 | 4,056 | /*
* (C) Copyright 2014 Kurento (http://kurento.org/)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | 32.448 | 100 | 0.707594 |
700c04a319749c47eb4cfa5a61d73e40ea5e436e | 3,538 | //
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you ... | 42.119048 | 142 | 0.70831 |
9873779113bd5c8b945ba3690bcb580ae5d28cbf | 2,764 | //package com.kuangyu;
//
//import com.alibaba.fastjson.JSON;
//import com.viewshine.mall.entity.LavaI18n;
//import com.viewshine.mall.entity.LavaI18nExample;
//import com.viewshine.mall.mapper.LavaI18nMapper;
//import org.junit.Test;
//import org.junit.runner.RunWith;
//import org.slf4j.Logger;
//import org.slf4j.Logg... | 30.373626 | 86 | 0.646527 |
7088ab02015f8617ad1579a887487682d1cb6911 | 2,155 | package com.acabra.calculator.util;
import com.acabra.calculator.domain.IntegralRequest;
import com.acabra.calculator.domain.IntegralRequestBuilder;
import com.acabra.calculator.request.IntegralRequestDTO;
import org.apache.log4j.Logger;
import java.util.InputMismatchException;
/**
* Created by Agustin on 9/29/2016... | 44.895833 | 124 | 0.691879 |
539507dcde0f704a446c472e273e103dfb37e5a0 | 8,744 | /**
* Helios, OpenSource Monitoring
* Brought to you by the Helios Development Group
*
* Copyright 2014, Helios Development Group and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free softw... | 35.40081 | 166 | 0.724154 |
fed9b2a4faa5bc3bbe6b1b62dcdd91225a0387b9 | 4,993 | /**
*/
package de.uni_hildesheim.sse.vil.rt.rtVil.impl;
import de.uni_hildesheim.sse.vil.rt.rtVil.IntentDeclaration;
import de.uni_hildesheim.sse.vil.rt.rtVil.RtVilPackage;
import de.uni_hildesheim.sse.vil.rt.rtVil.RuleElementBlock;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.c... | 25.47449 | 149 | 0.619067 |
0a635afd56d5377cbbc5f10f749c8437c932ca1b | 45,059 | /**
*
* Copyright 2003-2007 Jive Software.
*
* 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 require... | 40.411659 | 90 | 0.591025 |
1e1142ce9de049d9650f728822dd41f6c718e9b7 | 24,786 | /*
* ******************************************************************************
* *
* *
* * This program and the accompanying materials are made available under the
* * terms of the Apache License, Version 2.0 which is available at
* * https://www.apache.org/licenses/LICENSE-2.0.
* *
* * See the NO... | 52.73617 | 136 | 0.497055 |
65e0d0de6bcda940ceeaaf7f92c9d323f47ee66a | 265 | package org.apache.kerberos.kerb.spec.fast;
import org.apache.kerberos.kerb.spec.common.KrbFlags;
public class FastOptions extends KrbFlags {
public FastOptions() {
this(0);
}
public FastOptions(int value) {
setFlags(value);
}
}
| 17.666667 | 53 | 0.671698 |
cc2e5bdad4e08bbbd2e91e3faa9bd206b2e53955 | 4,723 | package l2f.loginserver.crypt;
import java.io.IOException;
public class NewCrypt
{
private final BlowfishEngine _crypt;
private final BlowfishEngine _decrypt;
public NewCrypt(byte[] blowfishKey)
{
_crypt = new BlowfishEngine();
_crypt.init(true, blowfishKey);
_decrypt = new BlowfishEngine();
_decrypt.ini... | 25.668478 | 91 | 0.606818 |
bcdfb2ed288cb49e0524a219024ff8e24820a511 | 1,448 | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server... | 26.814815 | 98 | 0.662293 |
e42f8e04f1a0cefe3948fe46ad96f1907df7740a | 2,235 | /*
* The MIT License (MIT)
*
* Copyright (c) 2015 Alex Hart
*
* 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 use, co... | 30.616438 | 87 | 0.672036 |
522b11a239bb7e5476c42735da233ad370810c66 | 1,164 | package com.example.mytips.setting.editprofile;
import android.app.DatePickerDialog;
import android.content.Context;
import android.widget.DatePicker;
import com.example.mytips.R;
import com.google.firebase.database.DatabaseReference;
public class OnDateSetListenerForEditingBirthday implements DatePickerDia... | 37.548387 | 117 | 0.723368 |
7ae7a1618b3ff98d0e99ce063056550a1114e3d5 | 1,062 | package view;
import java.util.Collection;
import java.util.List;
import javax.swing.*;
import java.awt.Dimension;
import java.util.ArrayList;
import mutant.Mutant;
public class ComplexView extends ViewComponent {
private JFrame plexView;
public ComplexView(){
plexView = new JFrame("Mutant Summary");
supe... | 20.823529 | 78 | 0.718456 |
6b35db29f4b9c446b81643dc8fd41a917fe4907f | 1,089 | package org.openstreetmap.atlas.generator.persistence.delta;
import java.io.IOException;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.mapred.JobConf;
import org.apache.hadoop.mapred.RecordWriter;
import org.apache.hadoop.mapred.lib.MultipleOutputFormat;
import org.apache.hadoop.mapred.lib.Multiple... | 37.551724 | 98 | 0.802571 |
d61dbcdace802f6b1e2865f87f1afaf6d1c50ded | 9,958 | /*
* 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.329897 | 347 | 0.763105 |
0f7726d1dda81a38ec7b71fd4f7b3a6489e941e7 | 5,027 | package com.ruoyi.web.controller.system;
import com.ruoyi.common.constant.Constants;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.entity.SysMenu;
import com.ruoyi.common.core.domain.entity.SysRole;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common... | 34.909722 | 110 | 0.657649 |
57d5e99e850585da03e1cce0f8d09f2cfda66ab9 | 2,010 | /*
* Copyright (C) 2013 Pascal Charbonneau
* Original Copyright (C) 2012 Atlassian
*
* Original code adapted by Pascal Charbonneau for the BRJC library
*
* 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 Li... | 29.558824 | 104 | 0.739303 |
26a677fabcef4b2f3a3f8b93f3f895a4af152294 | 2,494 | package com.rdp.springmvc.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.google.gson.Gson;
import com.rdp.springmvc.dao.UserDao;
import com.rdp.sp... | 24.213592 | 94 | 0.72093 |
c4099e1159bb955e6893effcfe57a3884b2c0a55 | 684 | package demo.api.v1;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import demo.user.User;
import demo.user.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Optional;
@Service
public class UserServic... | 26.307692 | 105 | 0.774854 |
1985f419a5ed47f714385f55877644305e93fc0d | 2,388 | package org.firstinspires.ftc.teamcode.study;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
import com.qualcomm.robotcore.hardware.DcMotorEx;
import com.qualcomm.robotcore.hardware.HardwareMap;
import com.qualcomm.robotcore.util.ElapsedTime;
import... | 34.114286 | 62 | 0.770519 |
e358c7550568c12ff957b62b897cc6dc47ab73b2 | 704 | package io.github.hellocore.MPMService.Bean;
import io.github.hellocore.MPMService.Util.BeanUtils;
public class MPMSession {
private String mpmSessionId;
private String signFrontSessionId;
public String getMpmSessionId() {
return mpmSessionId;
}
public void setMpmSessionId(String mpmSessionId) {
this.mpm... | 23.466667 | 89 | 0.77983 |
c29a119281b5307e2cfb4d41ffefbb422617015d | 1,351 | package org.joht.livecoding.becomingfunctional.firstclass.api;
public class Kunde {
private static final boolean AKTIV = true;
private static final boolean INAKTIV = false;
private final String vorname;
private final String nachname;
private final boolean aktiv;
/**
* Erzeugt aus dem Vor- und Nachnamen eine... | 23.293103 | 91 | 0.700962 |
2f91a35922efb7f9045e339360895e4732325a6c | 391 | import org.checkerframework.checker.nullness.qual.*;
public class NewNullable {
Object o = new Object();
Object nn = new @NonNull Object();
// :: warning: (new.class)
@Nullable Object lazy = new @MonotonicNonNull Object();
// :: warning: (new.class)
@Nullable Object poly = new @PolyNull Object();
// :: w... | 30.076923 | 57 | 0.672634 |
069d53bfda29d1645bce8f675ee809d4630024e7 | 343 | package araobp.domain.service;
import araobp.domain.entity.Count;
import araobp.domain.entity.GpsLog;
import araobp.domain.entity.Id;
public interface GpsLogService {
Id insertGpsLog(GpsLog gpsLog);
Count countSessions();
Iterable<GpsLog> getPreviousSession(Integer current);
Iterable<GpsLog> getNextSessio... | 20.176471 | 54 | 0.790087 |
18f3942ff4ec8026a098a62c38c5e48fbee1aff1 | 26,234 | /*
* 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 ... | 39.869301 | 143 | 0.757033 |
ffdf3be4985cd9f7268ba18efee077d74336718b | 716 | package org.wildfly.modelgraph.model;
import javax.ws.rs.NotFoundException;
import javax.ws.rs.ServiceUnavailableException;
import java.time.Duration;
import static java.time.temporal.ChronoUnit.SECONDS;
final class Failure {
static final Duration TIMEOUT = Duration.of(2, SECONDS);
static void throwNotFoun... | 25.571429 | 88 | 0.726257 |
9ae375a14cac4d6b7e3e8f171dcaf7a12762b2a7 | 2,039 | package ksl.academic.algorithm.sort;
import java.util.List;
import ksl.academic.algorithm.Utility;
/**
* Iterates, consuming one input element each repetition, generating the sorted output immediately.
* <ol>At each iteration:
* <li>removes one element from input data
* <li>insert data at the sorted index
* <li... | 23.709302 | 99 | 0.508092 |
c86dcceefb591c4c54bee0d91a8d8df3b15cd627 | 2,614 | /*
The MIT License (MIT)
Copyright (c) 2014 Xavier Hardy
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 use, copy, modify, merge, ... | 33.088608 | 78 | 0.65723 |
0b012b4a27515f08da6096ddf5bb7582b8ca1cf4 | 4,795 | import java.sql.*;
import java.util.Scanner;
/*
Question :- Consider Bank table with attributes AccountNo,CustomerName, Balance, Phone and
Address. Write a database application which allows insertion, updation and
deletion of records in Bank table. Print values of all customers whose balance
is greate... | 35.518519 | 116 | 0.579979 |
9c90247ca35c93a4052e5c659895e850d19bc97b | 9,251 | /*
* JBoss, Home of Professional Open Source
* Copyright 2007, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags.
* See the copyright.txt in the distribution for a full listing
* of individual contributors.
* This copyrighted material is made available to anyone wishing to use... | 39.199153 | 191 | 0.622311 |
affbb4d723a86dd34966f045ed878df89d75552b | 3,237 | package at.petrak.untitledmapmod.client;
import at.petrak.untitledmapmod.SimpleMapMod;
import at.petrak.untitledmapmod.common.PosXZ;
import net.minecraft.FileUtil;
import net.minecraft.client.Minecraft;
import net.minecraft.client.player.LocalPlayer;
import net.minecraft.nbt.CompoundTag;
import net.minecraft.nbt.NbtAc... | 32.37 | 116 | 0.598394 |
d70deab2546eaba7f2319e672ea624c78abc1432 | 867 | package com.mulesoft.external.provider.api;
/**
* Constants around secure configuration properties module
*
* @since 1.2.2
*/
public final class SecureConfigurationPropertiesConstants {
public static final String FILE_PARAMETER = "file";
public static final String KEY_PARAMETER = "key";
public static final ... | 41.285714 | 85 | 0.795848 |
dcbc87651ed41f1d945a93856cbcc1e9ac29505c | 3,097 | package com.db.systel.bachelorproject2016.seatmanagementservice.domainmodel.logic;
import java.util.List;
import org.codehaus.jettison.json.JSONException;
import org.codehaus.jettison.json.JSONObject;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.amqp.AmqpException;
import org.sp... | 31.282828 | 110 | 0.62383 |
ed8bc0cd11dc74577446a96a2ccc4eeb046f8665 | 7,753 | /*
* Copyright 2015 Willian Oki
*
* 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... | 30.765873 | 137 | 0.625951 |
0888ec9dc984abad7f9c9853272b3015ec1fa4e3 | 463 | package org.infinispan.objectfilter.query;
import org.infinispan.query.dsl.impl.JPAQueryGenerator;
/**
* @author anistor@redhat.com
* @since 7.0
*/
final class FilterJPAQueryGenerator extends JPAQueryGenerator {
public FilterJPAQueryGenerator() {
}
@Override
protected String renderEntityName(String r... | 23.15 | 101 | 0.742981 |
efdc8361502ab6672d5bfa617c93d43a2e3ad9d4 | 7,417 | package com.ztgm.mall.controller.WebController.front.Order;
import com.ztgm.mall.pojo.Brand;
import com.ztgm.mall.pojo.Commodity;
import com.ztgm.mall.pojo.CommodityInstance;
import com.ztgm.mall.pojo.CommondityInstanceOptions;
import com.ztgm.mall.pojo.MUser;
import com.ztgm.mall.pojo.Order;
import com.ztgm.mall.pojo... | 26.873188 | 119 | 0.698126 |
a034a7e634c57304ba9c8d512f587802c185d1a7 | 2,575 | package code.cameo.placeautocomplete;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.android.gms.maps.model.LatLng;
import com.google.android.gms.maps.model.Marker;
import com.google.android.gms.maps.model.MarkerOptions;
import java.ut... | 40.234375 | 178 | 0.704466 |
4feea1919641d80db3e248a7c992212eee8614ef | 878 | package net.xalcon.energyconverters.common.tiles;
import net.xalcon.energyconverters.common.energy.IEnergyBridgeOutputAccessProvider;
public abstract class TileEntityEnergyConvertersProducer extends TileEntityConverterBase implements IEnergyBridgeOutputAccessProvider
{
public double retrieveEnergyFromBridge(double m... | 31.357143 | 133 | 0.814351 |
52be3b6977c6671c8a277903fe976f1c268ef381 | 1,317 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... | 29.931818 | 105 | 0.726651 |
3441814ebd0c21e4e32d667444159da51cbccda9 | 29,699 | package functional.tests.core.mobile.device.android;
import functional.tests.core.enums.EmulatorState;
import functional.tests.core.enums.OSType;
import functional.tests.core.exceptions.DeviceException;
import functional.tests.core.extensions.SystemExtension;
import functional.tests.core.log.LoggerBase;
import functio... | 34.695093 | 164 | 0.584329 |
cea361c45fbb56561c790ee5f564c3165fcbeb92 | 6,487 | package com.segment.analytics;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Assertions.fail;
import com.segment.analytics.Traits.Address;
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.Map;
import org.assertj.core.data.MapEntry;
import org.j... | 26.695473 | 91 | 0.673809 |
9c064bdf5ee441a9f78c585f32bf0445eb74d7f3 | 8,451 | /* Copyright Statement:
*
* This software/firmware and related documentation ("MediaTek Software") are
* protected under relevant copyright laws. The information contained herein
* is confidential and proprietary to MediaTek Inc. and/or its licensors.
* Without the prior written permission of MediaTek inc. and/or ... | 36.584416 | 104 | 0.684061 |
994386297ab3c0239d3989720555f31dd59aeacb | 163 | package com.telenav.kivakit.component;
import java.util.function.Supplier;
public interface ComponentSupplier<Value> extends ComponentMixin, Supplier<Value>
{
}
| 20.375 | 81 | 0.822086 |
441ba58bec41773651c3c1ec601a534f1c963389 | 1,334 | package io.github.buniaowanfeng.util;
import java.util.Scanner;
/**
* Created by caofeng on 16-9-7.
*/
public class Encription {
public static String encode(String origin,int key){
StringBuffer coded = new StringBuffer();
char[] chars = origin.toCharArray();
for (char c : chars){
... | 29 | 61 | 0.541229 |
a44a64a357ee1acb1f4ad595f99ad0638f3aeca2 | 1,048 | package pro.sisit.unit9.data;
import org.springframework.stereotype.Service;
import pro.sisit.unit9.entity.Book;
import pro.sisit.unit9.entity.Customer;
import java.math.BigDecimal;
@Service
public class PurchaseBookServiceImpl implements PurchaseBookService {
private final PurchasedBookRepository purchasedBookR... | 30.823529 | 94 | 0.743321 |
974462d908f26c4ef26fddbdd9633310d30ba298 | 708 | package functionZones;
import java.awt.*;
import javax.swing.*;
import gameDisplayProcessor.*;
import basicConstruction.*;
import subGame.wardrobe.*;
import utilities.MyPoint;
public class WardrobeZone extends FunctionZone
{
public WardrobeZone(MyPoint location)
{
super(new ImageIcon("pic/s... | 20.823529 | 103 | 0.720339 |
65abe903f735c5118ff02e5ceee06f0a81a0a896 | 3,025 | package de.unistuttgart.ipvs.as.mmp.model.repository;
import de.unistuttgart.ipvs.as.mmp.common.domain.*;
import de.unistuttgart.ipvs.as.mmp.common.util.DefaultDataBuilder;
import de.unistuttgart.ipvs.as.mmp.model.configuration.MmpJpaTestConfig;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Tes... | 37.8125 | 110 | 0.761983 |
5969880a53123aedc75707b16b1d27c2be143610 | 2,129 | package br.com.racc.javaredis;
import java.util.LinkedHashMap;
import java.util.Map;
import redis.clients.jedis.Jedis;
public class Redis {
private Jedis jedis;
protected Jedis getJedis() {
return this.jedis;
}
protected void setJedis(Jedis jedis) {
this.jedis = jedis;
}
public boolean... | 22.177083 | 69 | 0.643964 |
06a31ed9814a352d3111e241c7dac19aa1007399 | 2,601 | package me.mcblueparrot.client.mod.impl.replay;
import org.lwjgl.opengl.GL11;
import com.replaymod.core.ReplayMod;
import com.replaymod.recording.gui.GuiRecordingControls;
import me.mcblueparrot.client.mod.Mod;
import me.mcblueparrot.client.mod.hud.BaseHudElement;
import me.mcblueparrot.client.mod.hud.HudPosition;
i... | 27.670213 | 108 | 0.757017 |
607b52f513ace4da50136a18b60c8e521d5deb82 | 4,672 | /**
* Copyright 2020 LinkedIn Corp. 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 wri... | 43.663551 | 163 | 0.746575 |
38a444670451cba5fcd94aeaea6d62ff858bd321 | 210 | package org.fan.demo.gateway.config;
import org.springframework.context.annotation.Configuration;
/**
* @version 1.0
* @author: Fan
* @date 2020.12.7 13:36
*/
@Configuration
public class RouteConfig {
}
| 15 | 60 | 0.72381 |
c6b5f7a3fae2359c1f4c2b4a8c8512a9d7994913 | 2,197 | package uk.joshiejack.penguinlib.note.type;
import com.mojang.blaze3d.matrix.MatrixStack;
import it.unimi.dsi.fastutil.objects.Object2ObjectMap;
import it.unimi.dsi.fastutil.objects.Object2ObjectOpenHashMap;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.AbstractGui;
import net.minecraft.client... | 32.791045 | 181 | 0.719162 |
1a226dbab37bf17c0f46b9ee369b3ab4124b2af7 | 1,917 | /*
* Copyright 2022 Linus Andera
*
* 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... | 23.378049 | 162 | 0.639541 |
60756455a442a8bfb489048c09e6fa77494d0f1b | 2,203 | /****************************************************
* Description: Entity for 资源管理
* Copyright: Copyright (c) 2018
* Company: xjj
* @author xjj
* @version 1.0
**************************************************/
package com.xjj.framework.security.dto;
import java.util.Random;
import org.apache.c... | 22.71134 | 116 | 0.557876 |
e92443820cab1cdb6a8b6601eba7d4db4996972c | 6,648 | package nz.co.mirality.storage4computercraft.data;
import dan200.computercraft.ComputerCraft;
import dan200.computercraft.api.lua.LuaFunction;
import net.minecraft.data.DataGenerator;
import net.minecraft.data.DirectoryCache;
import net.minecraft.data.IDataProvider;
import net.minecraft.resources.IResource;
im... | 38.427746 | 134 | 0.603039 |
e3080f3a762115f01a62c5f29ec52a2804ba936e | 12,364 | package org.firstinspires.ftc.teamcode;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.hardware.Blinker;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.hardware.DcMotorSimple;
import co... | 33.967033 | 128 | 0.597784 |
f5a46ae3b115dc55aeb13bd8a0d58411f1d77f0c | 224 | package com.bdh.app.dao;
import java.util.List;
import com.bdh.app.model.BottleSize;
public interface BottleSizeDAO {
public void createBottleSize(BottleSize bottleSize);
public List<BottleSize> getAllBottleSizes();
}
| 18.666667 | 53 | 0.794643 |
d992bf148d641dc8de9fe3001485c7033f55f90c | 2,396 | /*-
* #%L
* Procedure
* %%
* Copyright (C) 2005 - 2020 Daniel Sagenschneider
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 26.043478 | 97 | 0.706594 |
00e9aeed21ee6975849dce81e16360d2ab01c193 | 2,835 | package cn.kalac.easymediaplayer_test;
import android.content.Context;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import androidx.appcompat.app.AppCompatActivity;
import cn.kalac.easymediaplayer.listener.EasyMediaListener;
import cn.kalac.easymediaplayer.EasyMediaPlayer;
import cn.k... | 34.156627 | 94 | 0.565079 |
ba3e067c62bbf5663eb713fd3c18d27ed713a296 | 1,379 | /*
* Copyright (c) 2011 eXtensible Catalog Organization.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the MIT/X11 license. The text of the license can be
* found at http://www.opensource.org/licenses/mit-license.php.
*/
package org.oclc.circill.toolkit.binding.... | 29.340426 | 116 | 0.733865 |
356b8be0f14e535b033f6f8c849feb0079a41eb0 | 476 | package backend_internal.commands.math_operations;
import backend_internal.Command;
public class Cosine extends Command {
private static final int PARAM_NUM = 1;
public Cosine(){
super();
myParamNumber = PARAM_NUM;
}
/**
* Parameters: degrees (int). Returns cosine of degrees.
... | 21.636364 | 82 | 0.647059 |
976f89022127963349c264d9324d591f20596f8f | 684 | package io.opensphere.core.order;
/**
* A key for participants in an order manager. Implementers of this interface
* should include enough information to uniquely identify the participating
* entity. NOTE: implementer of this interface are required to implement
* {@code equals} and {@code hashCode}.
*/
public int... | 21.375 | 77 | 0.633041 |
7f85210c6055963496a3435fe2009f5926567e87 | 3,212 | package com.tle.webtests.test.searching;
import static org.testng.Assert.assertTrue;
import com.tle.webtests.framework.TestInstitution;
import com.tle.webtests.pageobject.searching.FilterByDateSectionPage;
import com.tle.webtests.pageobject.searching.ItemListPage;
import com.tle.webtests.pageobject.searching.SearchPa... | 34.170213 | 98 | 0.698007 |
7de18fe4178d4c080cc96f2b740581ed5b46ce27 | 5,382 | package com.google.protobuf;
import java.nio.ByteBuffer;
import java.util.Arrays;
import java.util.List;
public class Internal {
private static final int DEFAULT_BUFFER_SIZE = 4096;
public static final byte[] EMPTY_BYTE_ARRAY = new byte[0];
public static final ByteBuffer EMPTY_BYTE_BUFFER = ByteBuffer.wra... | 30.579545 | 144 | 0.579524 |
a0d7f852f92f19f9537e9651879a1c980d1952eb | 668 | package me.hyperperform.forecasting.request;
/**
* A POJO for the request data coming from the caller for an integration to be deleted from the json string.
*
* @author CodusMaximus
* @version 1.0
* @since 2016/10/01
*/
public class DeleteIntegrationRequest
{
private String integrationName;
public De... | 23.034483 | 108 | 0.712575 |
b9a2c3b01f0dd9265db2d2066d4907f7dfde7b96 | 409 | package com.qitsoft.qitcommons.model;
import java.util.List;
public class SearchResult<T> {
private int total;
private List<T> list;
public List<T> getList() {
return list;
}
public void setList(List<T> list) {
this.list = list;
}
public int getTotal() {
return... | 15.148148 | 39 | 0.584352 |
63f7cfea4e1b7fdf6c11d44ea90868fade771288 | 4,172 | /*
* 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 ... | 31.606061 | 113 | 0.703979 |
1e0384c52dafbe18a3a2e21441aedafca67d3b28 | 13,711 | package org.tikv.flink;
import static java.lang.String.format;
import java.math.BigDecimal;
import java.sql.Date;
import java.sql.Timestamp;
import java.time.Instant;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.time.format.DateTimeFormatter;
import java.time.tem... | 33.605392 | 101 | 0.63285 |
2345828187ced06e62fda8d973b94d368b085d27 | 7,691 | package org.kuse.payloadbuilder.core.operator;
import static java.util.Arrays.asList;
import static java.util.Objects.requireNonNull;
import static org.kuse.payloadbuilder.core.utils.MapUtils.entry;
import static org.kuse.payloadbuilder.core.utils.MapUtils.ofEntries;
import java.util.List;
import java.util.Ma... | 31.780992 | 123 | 0.506566 |
d3a4565d78788fa9ab1071b17643f87dccde9c14 | 8,755 | /*
* XryptoMail, android mail client
* Copyright 2011 Eng Chong Meng
*
* 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 requir... | 41.690476 | 117 | 0.61028 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.