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 |
|---|---|---|---|---|---|
54ba9ad997a7cf41494f7cff0ad076648a416d83 | 10,887 | /*
* Copyright (C) 2017 Dremio Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or... | 38.882143 | 106 | 0.766786 |
5f529766b7babd1db05ce3ccd66ce936a9ec6ffb | 5,063 | package com.crazzyghost.alphavantage.indicator.response.mama;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import com.crazzyghost.alphavantage.parser.DefaultParser;
import com.crazzyghost.alphavantage.parser.Parser;
public class MAMAResponse {
private MetaData metaData;
private L... | 30.317365 | 116 | 0.570215 |
9b825c986e72a3a3769325225422cf6b6ed161ec | 886 | package com.like.rapidui.ui.picasso.transformation;
import android.graphics.Bitmap;
import com.squareup.picasso.Transformation;
/**
* Created By Like on 2018/4/23.
*/
public class AdapterTransformation implements Transformation {
private int mWidth;
public AdapterTransformation(int width) {
this... | 23.315789 | 93 | 0.628668 |
dc38c554b2673cdc8e518ea6b41cf04b8a3fe369 | 8,634 |
package org.example;
import com.google.gson.Gson;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
import java.util.Scanner;
import java.time.LocalTime;
import static java.time.temporal.ChronoUnit.MILLIS;
public class Client {
private String ip_Destino;
private String puerto_Destino... | 37.376623 | 133 | 0.470697 |
46782137ed27684fa12c5161620790909c1cebc6 | 1,589 | package cn.com.heaton.blelibrary.ble.request;
import android.bluetooth.BluetoothGatt;
import android.bluetooth.BluetoothGattCharacteristic;
import android.os.Message;
import cn.com.heaton.blelibrary.ble.BleDevice;
import cn.com.heaton.blelibrary.ble.BleHandler;
import cn.com.heaton.blelibrary.ble.BleStates;
import cn... | 31.156863 | 78 | 0.67275 |
e28b9028d035e7684be51da5525da3ab73745b46 | 5,707 | /**
*/
package turtle.impl;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EDataType;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.impl.EFactoryImpl;
import org.eclipse.emf.ecore.plugin.EcorePlugin;
import turtle.*;
/**
* <!-- begin-... | 23.199187 | 152 | 0.65078 |
072dc4193801c48ae0cce6d7d28da40042efe14d | 9,223 | /*
* Copyright 2011 VZ Netzwerke Ltd
* Copyright 2014 devbliss 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 requ... | 32.135889 | 80 | 0.650114 |
7022fd334d761e34aabe642ad6547cf7958cb730 | 2,441 | package de.fh.aachen.bpmn.rest.impl.api;
import de.fh.aachen.bpmn.rest.impl.api.ActivitiRestClient.CONTENT_TYPES;
import de.fh.aachen.bpmn.rest.impl.api.ActivitiRestClient.HTTP_VERBS;
public class ConsumeRequest {
private HTTP_VERBS mHttpVerb;
private String mUrl;
private CONTENT_TYPES mPredefinedContentType;
pr... | 22.813084 | 72 | 0.761983 |
778dccb58edeb206e7adde189420a8a0243b08b7 | 60,731 | package framework;
import randomlibrary.RandLibrary;
import selenium.Commands;
import logger.TesboLogger;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.openqa.selenium.*;
import org.openqa.selenium.int... | 33.833426 | 359 | 0.563419 |
28163811c53d716c7c232509241748dea95a99ef | 1,655 | /*
* @author Andrei Constantin Tanasache, act@omtia.com
*/
package com.omtia.un;
import java.util.Comparator;
import java.util.HashMap;
import java.util.Map;
import java.util.PriorityQueue;
/**
* Given an integer array nums and an integer k, return the k most frequent elements. You may return the answer in
* any... | 22.364865 | 114 | 0.528097 |
1ce87de3e31b5346d6b6fc1b2f5abeefc3650f08 | 2,885 | package ro.esolacad.microservicesdemo.store.resources;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.ResponseEntity;
import org.springframework.security.access.annotation.Secured;
import org.springframework.security.access.prepost.PreAuthorize;
import org.spri... | 44.384615 | 104 | 0.767418 |
129a13a6292658afcd363fb2b348e628c874acd1 | 6,467 | package edu.harvard.iq.dataverse.dataset.metadata.inputRenderer;
import com.google.gson.JsonObject;
import edu.harvard.iq.dataverse.dataset.metadata.inputRenderer.buttonaction.FieldButtonActionHandler;
import edu.harvard.iq.dataverse.persistence.dataset.DatasetField;
import edu.harvard.iq.dataverse.persistence.dataset... | 40.41875 | 123 | 0.713468 |
01c897980fc9f07d97b7d44625d2a2ac2ecee3d5 | 5,870 | /* */ package org.apache.commons.io.output;
/* */
/* */ import java.io.FilterWriter;
/* */ import java.io.IOException;
/* */ import java.io.Writer;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* *... | 21.039427 | 99 | 0.325894 |
4c67a29f6050ee9da7c00593b8bc6c5dc328791a | 4,450 | package rr.snowhack.snow.util;
import java.util.Arrays;
import java.util.EventListener;
import java.util.function.Predicate;
import me.zero.alpine.listener.EventHandler;
import me.zero.alpine.listener.Listener;
import net.minecraft.network.play.server.SPacketTimeUpdate;
import net.minecraft.util.math.MathHelper;
impor... | 38.695652 | 229 | 0.711236 |
3b82f6566e8ba6f5204fb78eb2057a4d0269c67a | 2,825 | package com.github.egbakou.mrtcompilers.process;
/**
* Exit value and output of a finished process.
* @see ProcessExecutor
*/
public class ProcessResult {
/**
* Exit value of the finished process.
*/
private final int exitValue;
/**
* Process output or <code>null</code> if it wasn't read.
*/
p... | 28.25 | 169 | 0.683894 |
7f90f6764b3863dad3e9da07e63a341ce5f2c43c | 3,761 | /*
* Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package sun.java2d.pipe;
import java.lang.annotation.Native;
public final class BufferedOpCodes {
... | 37.61 | 79 | 0.654347 |
d960bc6725740df288ebd34a6f64baaf56eb5b54 | 989 | package com.stats.aggregator.services.contracts;
import com.stats.aggregator.DTOs.AuctionsList;
import com.stats.aggregator.DTOs.CategoriesList;
import com.stats.aggregator.DTOs.Filter;
import com.stats.aggregator.DTOs.FilterDefinition;
import java.util.List;
/**
* Proxy service to call Allegro WebApi client
*/
pu... | 29.088235 | 81 | 0.73003 |
08b02e321de4c1e8f78f2b6e49205dc77c46f292 | 2,914 | package com.arrow.pegasus.webapi.data;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import com.arrow.pegasus.data.profile.Product;
import com.arrow.pegasus.data.profile.ProductFeature;
public class CoreProductModels {
public static class ProductOption extends CoreDefinitionModelO... | 22.944882 | 70 | 0.738847 |
4cfc94c137b49207de5bce98d819a8ebf8fb8285 | 13,656 | /*
* 文件名称: ListKit.java
*
* 编译器: android2.2
* 时间: 下午2:00:00
*/
package com.wxiwei.office.common.bulletnumber;
import com.wxiwei.office.constant.wp.WPViewConstant;
import com.wxiwei.office.simpletext.view.DocAttr;
/**
* bullet and number kit
* <p>
* <p>
* Read版本: ... | 24.784029 | 106 | 0.449546 |
c902b2211d50217e77c376d9021ccf7014f32542 | 1,292 | package com.assignments;
class UnderflowException extends Exception {
UnderflowException(String message) {
super(message);
}
}
public class CharStack
{
private char[] m_data;
private int m_ptr;
public CharStack(int size)
{
m_ptr = 0;
m_data = new char[(size > 1 ? size : 10)];
}
pu... | 17.944444 | 97 | 0.585139 |
33707799d1b164f9668374b91459d79b762b769b | 140 | package expression;
public class Negation extends UnaryOperator {
public Negation(Expression body) {
super(body, "!");
}
}
| 17.5 | 45 | 0.664286 |
a2891c1ce1872ab89a727c4ea9fbb08056e7bee8 | 5,572 | package com.arua.controller;
import com.arua.controller.viewobject.ItemVO;
import com.arua.dao.Student;
import com.arua.error.BusinessException;
import com.arua.response.CommonReturnType;
import com.arua.service.ItemService;
import com.arua.service.model.ItemModel;
import org.springframework.beans.BeanUtils;
import o... | 33.97561 | 108 | 0.662778 |
9832128e31371009310ade1359b97626903e6fe3 | 400 | package de.uni_stuttgart.informatik.sopra.sopraapp.feature.sidebar.profile;
import android.text.TextWatcher;
public interface CustomEditTextWatcher extends TextWatcher {
@Override
default void beforeTextChanged(CharSequence s, int start, int count, int after) { /*Ignore*/ }
@Override
default void on... | 28.571429 | 98 | 0.7575 |
81734db97b8722953edf4110937e3c660f23d75b | 14,083 | /*
* 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.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 40.237143 | 151 | 0.697366 |
251f7c8b42f6615e8b918f8787643739596f3ef7 | 161 | package com.kotall.oms.weixin.service;
/**
* @author : aracwong
* @version : 1.0.0
* @date : 2018/5/2 0002 下午 10:38
*/
public interface WxFollowService {
}
| 16.1 | 38 | 0.658385 |
6e94c73267ec53ebacc0a460f2fb59832066cb7d | 2,117 | package com.service.impl;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Logger;
import com.entity.User;
import com.service.UserService;
import com.util.DataSourceUtils;... | 33.078125 | 107 | 0.596599 |
8391786072d39ef494f43c4d43fb4ce6774ea22e | 3,470 | package com.hartle_klug.mhartle.sacon2019.control_plane.web;
import static org.springframework.web.reactive.function.server.RequestPredicates.POST;
import static org.springframework.web.reactive.function.server.RequestPredicates.all;
import static org.springframework.web.reactive.function.server.RouterFunctions.route;... | 41.807229 | 141 | 0.789625 |
14c738358708d1cf991f4c832206f88a5f7f2d10 | 12,032 | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2008-2009, The KiWi Project (http://www.kiwi-project.eu)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*... | 33.422222 | 163 | 0.729139 |
fd4a0fa93840cabc126403cb84d254ca17df3a99 | 1,923 | package demoMod.scapegoat.utils;
import com.megacrit.cardcrawl.blights.AbstractBlight;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
import com.megacrit.cardcrawl.relics.AbstractRelic;
import demoMod.scapegoat.interfaces.PostIncreaseBloodstainSubscriber;
import demoMod.scapegoat.interfaces.PostIncreaseSinSub... | 43.704545 | 117 | 0.719709 |
c9d3f7d22556c8643f3127c4e85ab993c2f90ee3 | 8,300 | /*
* This software is licensed under the MIT License
* https://github.com/GStefanowich/MC-Server-Protection
*
* Copyright (c) 2019 Gregory Stefanowich
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
... | 37.899543 | 226 | 0.640602 |
0a330dbcc65337924007c8ddc62c6a1f4a47bdf0 | 528 | package com.automation.remarks.junit5;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.junit.jupiter.api.extension.ExtendWith;
/**
* Created by sergey on 12.02.17.
*/
@Retention(RetentionPolic... | 27.789474 | 58 | 0.801136 |
df57be69fea4babc8ae7ae77ee11400b29c7b66f | 1,429 | /**
* <copyright>
* </copyright>
*
* $Id$
*/
package org.talend.designer.joblet.model.util;
import java.util.Map;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.emf.ecore.xmi.util.XMLProcessor;
import org.talend.designer.joblet.model.J... | 25.981818 | 89 | 0.616515 |
d4a4b15697bba6d0f638f581d7a21357ebae8443 | 16,132 | /*
* Copyright (c) 2015 LingoChamp Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 36.008929 | 203 | 0.600298 |
c57ca059b3f36f3e2b39340ec929010eceaa4efb | 1,437 | package io.github.rerorero.kafka.vault.client;
import java.util.Objects;
import java.util.Optional;
/**
* Plain data information to be encrypted, passed to the vault encryption api
*/
public class EncryptParameter {
final String plainTextBase64;
final Optional<Integer> keyVersion;
final Optional<String>... | 32.659091 | 157 | 0.64231 |
08353c40599233c0886faa727e6393b9d188485f | 274 | package com.coderbd.repository;
import com.coderbd.entity.Schedule;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface ScheduleRepository extends JpaRepository<Schedule, Long> {
}
| 22.833333 | 75 | 0.839416 |
880f739afd203500083cd0e7be17860a809991cd | 1,393 | package com.alexshabanov.springrestapi.rest.common;
import com.alexshabanov.springrestapi.domain.DomainObject;
import org.codehaus.jackson.JsonGenerator;
import org.codehaus.jackson.JsonParser;
import org.codehaus.jackson.map.*;
import org.codehaus.jackson.map.annotate.JsonDeserialize;
import java.io.IOException;
@J... | 29.020833 | 106 | 0.717875 |
7d3051c19e8978ea0f32257f1d53b66eda22caf9 | 2,017 | package com.menuhunt.android.recyclerview;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import java.util.List;
/**
* Created... | 29.661765 | 102 | 0.710957 |
e104897b0fc2285a3b8d9d37e3f75b7e47681896 | 5,236 | /*
* 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 ... | 40.90625 | 114 | 0.594729 |
22a593f6929296c859b8fb19d5153ace16f47940 | 1,060 | package gov.nih.nci.cananolab.security.utils;
import java.io.IOException;
import java.io.OutputStream;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.log4j.Logger;
import org.springframework.security.core.Authentic... | 36.551724 | 95 | 0.816981 |
5e557b01d2a1fe8b4dc03220a4020ec978d873e0 | 66,474 | /**
* Copyright (2019, ) Institute of Software, Chinese Academy of Sciences
*/
package com.github.kubeext.operator.models.vm;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
/**
* @author wuheng@otcaix.iscas.ac.cn
* @author xuyuanjia2017@otcai... | 17.424377 | 96 | 0.704621 |
e9cc8e9a985c28d264cbca9f2c4657ecc4ef4ca2 | 1,077 | package com.shynieke.ageingmobs.registry.ageing.criteria;
import com.shynieke.ageingmobs.registry.ageing.iAgeing;
import net.minecraft.entity.Entity;
import net.minecraft.world.World;
public class HeightCriteria extends BaseCriteria {
private int minHeight;
private int maxHeight;
public HeightCriteria(iA... | 25.642857 | 73 | 0.677809 |
b09422150918b0b8e06c4f64a2b70c391bd33394 | 736 | package fr.antoineaube.chameleon.core.configurations;
import java.util.Arrays;
public class MagicNumber {
private final byte[] content;
public MagicNumber(byte[] content) {
this.content = content;
}
public byte[] getContent() {
return content;
}
public int[] asBitsArray() {... | 20.444444 | 73 | 0.529891 |
e1bc325f0c744b0c8596dac760c8fcd2411f6838 | 558 | package com.anonymoushacker1279.immersiveweapons.container;
import com.anonymoushacker1279.immersiveweapons.ImmersiveWeapons;
import net.minecraft.inventory.container.ContainerType;
import net.minecraftforge.registries.ObjectHolder;
@ObjectHolder(ImmersiveWeapons.MOD_ID)
public class CustomContainerHolder {
@Object... | 37.2 | 91 | 0.863799 |
da5197381f45eda35d1ce7956a4a4b2064809279 | 1,753 | /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.azurestack.v2017_06_01;
import com.microsoft.azu... | 22.766234 | 104 | 0.67142 |
627653a5adcb4f7655860c1bc78668f8070848c6 | 1,395 | package org.hummingbirdlang.types.concrete;
import org.hummingbirdlang.nodes.builtins.BuiltinNodes;
import org.hummingbirdlang.nodes.builtins.StringNodes;
import org.hummingbirdlang.types.MethodProperty;
import org.hummingbirdlang.types.Property;
import org.hummingbirdlang.types.PropertyNotFoundException;
import org.h... | 29.0625 | 110 | 0.75914 |
186aa66be12935726199ad16951a1fcb290150fe | 458 | package com.mxgraph.shape;
import java.awt.Rectangle;
import java.awt.Shape;
import java.awt.geom.Ellipse2D;
import com.mxgraph.canvas.Graphics2DCanvas;
import com.mxgraph.view.JGraphXCellState;
public class EllipseShape extends BasicShape
{
/**
*
*/
public Shape createShape(Graphics2DCanvas canvas, JGraphXC... | 19.083333 | 74 | 0.762009 |
f423976d91dda8f17b9bf1f6c2abc1ccd27c428d | 2,414 | package org.folio.circulation.infrastructure.storage.users;
import static org.folio.circulation.support.results.Result.ofAsync;
import static org.folio.circulation.support.results.Result.succeeded;
import static org.folio.circulation.support.fetching.RecordFetching.findWithMultipleCqlIndexValues;
import java.util.Col... | 36.029851 | 99 | 0.786247 |
1aaf371ece0c0330db0d393bb0f5d2f7afb74605 | 483 | package it.smartcommunitylab.csengine.storage;
import it.smartcommunitylab.csengine.model.Registration;
import java.util.List;
import org.springframework.data.domain.Pageable;
public interface RegistrationRepositoryCustom {
public List<Registration> searchRegistration(String studentId, String teachingUnitId,
S... | 28.411765 | 88 | 0.826087 |
fbfbb136d30d7207363d606c3ec27c2b155d504b | 12,279 | /*
* Copyright 2017-present Open Networking Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | 40.391447 | 130 | 0.688085 |
c8fc148383d92bdcc6d92c4415b4e3b696bd36b9 | 14,602 | /*
* Copyright (c) 2006-, IPD Boehm, Universitaet Karlsruhe (TH) / KIT, by Guido Sautter
* 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 source code must retain... | 39.679348 | 171 | 0.735927 |
5b38ca772612d2f45bb42155daa00cab8d843c12 | 1,796 | package application.model;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.Socket;
import java.net.UnknownHostException;
public class Functions {
Socket requestSocket;
ObjectOutputStream out;
ObjectInputStream in;
String message;
... | 25.657143 | 78 | 0.548998 |
800c1427d893224519e0ea5677c8b621f2ceaa35 | 3,233 | /*
* The MIT License
* Copyright (c) 2012 Microsoft Corporation
*
* 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,... | 30.790476 | 105 | 0.731519 |
fa14abd131c0cca24139e1417b97e2e2693f6b84 | 765 | import furPkg.*;
public class test
{
public static void main(String[] args)
{
/* furMathOperators */
// Average test
// System.out.println("" + furMathOperators.avg(10, 50));
// Absolute value test
// System.out.println("" + furMathOperators.abs(-50));
// System.out.println("" + furMathOper... | 26.37931 | 64 | 0.622222 |
a9040f3d3ec9b18a1e4b4df89e17eff2a7781e62 | 1,266 | package egovframework.rte.psl.data.jpa.domain;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "emp... | 20.754098 | 60 | 0.708531 |
605fee70bde0cae9dd8adccfc68f073688aa2a40 | 2,388 | package org.fzu.cs03.daoyun.entity;
import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
//import com.fa... | 25.956522 | 85 | 0.742881 |
82088805544094656b942d392e708343a382505a | 15,352 | /*
*
* Licensed under the MIT License. See LICENSE file in the project root for full license information.
*
*/
package ga.classi.data.service;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
import java.util.List;
import org.json.simple.JSONArray;
import org.json.simple.JSONOb... | 36.293144 | 199 | 0.614708 |
e0fb0aecf27322bf87eea562baa02ff279afe684 | 1,002 | /*******************************************************************************
* Copyright SemanticBits, Northwestern University and Akaza Research
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/caaers/LICENSE.txt for details.
******************************************... | 35.785714 | 82 | 0.672655 |
317d6e9d2cb592d7e758a443f65d2cb4518bed5c | 6,147 | /**
* Copyright 2005-2014 Restlet
*
* The contents of this file are subject to the terms of one of the following
* open source licenses: Apache 2.0 or LGPL 3.0 or LGPL 2.1 or CDDL 1.0 or EPL
* 1.0 (the "Licenses"). You can select the license that you prefer but you may
* not use this file except in compliance wi... | 26.726087 | 105 | 0.62681 |
2c169c72d7a318c4523c5b818caf91c6508b81f0 | 3,589 | /*
* Copyright 1999-2021 Alibaba Group Holding Ltd.
*
* 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 a... | 23.154839 | 76 | 0.616049 |
b8c684ee7727603c9ee9f3d461c392a6761adc48 | 2,642 | /*
* 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 ... | 34.311688 | 83 | 0.713096 |
3c2c8b2ab7881431ff2c31e287729edcb3b916c6 | 3,533 | /*
* 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")... | 33.330189 | 98 | 0.583074 |
2670190eb0e1ded52907503218f74c5c00a33e26 | 4,012 | /*
* Copyright 2012 The Netty Project
*
* The Netty Project licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... | 24.168675 | 87 | 0.563061 |
6d61772c1adb64facabdd19764b753f96d9d4c22 | 6,570 | /*
* IntPTI: integer error fixing by proper-type inference
* Copyright (c) 2017.
*
* Open-source component:
*
* CPAchecker
* Copyright (C) 2007-2014 Dirk Beyer
*
* Guava: Google Core Libraries for Java
* Copyright (C) 2010-2006 Google
*
*
*/
package org.sosy_lab.cpachecker.core.bugfix;
import org.eclips... | 26.175299 | 96 | 0.650685 |
7df58d4e838e5f92f3065c345e1b53c702ce8248 | 4,930 | package com.harium.hci.v4l2;
import com.harium.hci.v4l2.params.Param;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
public class V4L2Ctl {
public static final String COMMAND_V4L2_CTL = "v4l... | 26.363636 | 120 | 0.673631 |
5a2f488903ebeda1d506a94fd38af2aa8081fb12 | 17,536 | package org.ovirt.engine.core.bll.host.provider.foreman;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.URLEncoder;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.apache.commons.lang.Strin... | 43.085995 | 133 | 0.624031 |
83c903802224d9e37cccbd08d1ef183055d2451f | 1,567 | package in.mayanknagwanshi.countrypicker.demo;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.widget.Toast;
import in.mayanknagwanshi.countrypicker.CountrySelectActivity;
import in.mayanknagwanshi.cou... | 39.175 | 121 | 0.726867 |
d2dcd38fea991205abb586b5fb7dd8537724097c | 3,464 | package com.example.ankit.chatappstable;
import android.content.Intent;
import android.provider.ContactsContract;
import android.support.design.widget.TabLayout;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android... | 29.109244 | 123 | 0.678406 |
6648979ac9d96ac3f7d70ba461957025922ea646 | 885 | package com.dyrs.smjj.itracker.entity;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
@Entity
public class Department implements Serializable {
@... | 16.090909 | 52 | 0.726554 |
7bbfddd01a8c54edb9292b4650edf36f31484f7e | 2,676 | package open_sound_stream.ossapp;
import android.os.Bundle;
import android.util.Log;
import android.view.ContextMenu;
import android.view.MenuItem;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.TextView;
import and... | 37.166667 | 118 | 0.724963 |
0fefa816987c900cb947343457dbac0697b5aedc | 3,655 | package com.araguacaima.orpheusdb.helpers.hibernate;
import org.hibernate.type.descriptor.ValueBinder;
import org.hibernate.type.descriptor.ValueExtractor;
import org.hibernate.type.descriptor.WrapperOptions;
import org.hibernate.type.descriptor.java.JavaTypeDescriptor;
import org.hibernate.type.descriptor.sql.BasicBi... | 32.061404 | 81 | 0.499863 |
8a6305287a6ff9aa37a8e65d79096448d011a504 | 4,673 | /*
* Copyright 1999-2010 Luca Garulli (l.garulli--at--orientechnologies.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
... | 32.678322 | 127 | 0.700193 |
222303e6ca8a632b176c36abfa67408c6f07c3a0 | 4,116 | package edu.unlam.wome.comandos;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import javax.swing.JOptionPane;
import edu.unlam.wome.dominio.main.Casta;
import edu.unlam.wome.dominio.main.Item;
import edu.unlam.wome.dominio.main.Personaje;
impo... | 39.961165 | 98 | 0.69898 |
4992119a4edb7060575173ac265c394f90a83783 | 2,981 | package com.wmg.smartjava.concurrency.locks.patterns;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.concurrent.*;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
public class LockPa... | 29.514851 | 94 | 0.550822 |
73393fd5f81dd65b01c03a803a3c1a9802242a64 | 2,767 | /*
* Copyright 2013 Xebia and Séven Le Mesle
*
* 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 ... | 28.525773 | 107 | 0.698591 |
48fa0219e5a854c356412cefc99acee18458e63e | 110 | package com.mt.helper;
import lombok.Data;
@Data
public class SumTotalAddress extends SumTotal<Address> {
}
| 13.75 | 56 | 0.781818 |
d24bc8ec39a3e807be449b22f3750f80daf4b8ba | 330 | public int countClumps(int[] nums) {
if (nums.length == 0) return 0;
int count = 0, length = 0;
int oldval = nums[0];
for (int val : nums) {
if (oldval == val) {
++length;
} else {
if (length > 1) ++count;
length = 1;
oldval = val;
}
}
if (length > 1) ++count;
return... | 16.5 | 36 | 0.50303 |
8c5f61169d40580d068b78ad662561eb4fb0dc17 | 4,139 | /*
* 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 ... | 30.433824 | 103 | 0.697511 |
4b53103d4bf10aaa88c3b82f37746127be56c29c | 31 |
package org.barghos.math.util; | 15.5 | 30 | 0.806452 |
68f88c4c6a92fd906017be9df678e7078dab7ed8 | 1,435 | class Book {
private String title;
private int pubYear;
private String isbn;
public Book(String title) {
this.title = title;
}
public Book(String title, int pubYear) {
this.title = title;
this.pubYear = pubYear;
}
public Book(String title, int pubYear, String i... | 23.916667 | 103 | 0.554007 |
15ec64e69cc9d44ee57d9432ffe5c652db1d3268 | 3,499 | package org.einnovator.devops.client.modelx;
import java.util.Date;
import org.einnovator.devops.client.model.Event;
import org.einnovator.devops.client.model.EventType;
import org.einnovator.util.model.ToStringCreator;
/**
* A filter for {@code Event}s.
*
* @see Event
* @author support@einnovator.or... | 18.129534 | 60 | 0.603887 |
d8ef0ac1f545401f77b6036ed3a52da22521884e | 295 | package com.szzrain.javaFX.USBs;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@Retention(RetentionPolicy.RUNTIME)
public @interface IAmUSB {
String openMethod() default "";
String closeMethod() default "";
String useMethod() default "";
}
| 19.666667 | 44 | 0.745763 |
4faf69cf155cdcde442d8b817de24f1a16dfdbf2 | 2,132 | package com.cyp.carpark.dto;
import java.util.Date;
public class EmailData {
private String sendUsername;
private String toUsername;
private int id;
private int sendid;
private int toid;
private String title;
private String content;
private String time;
private int userisread;
private int managerisread;
p... | 19.740741 | 51 | 0.719512 |
5ca92356067b34faa85f3465e72663ecb044832e | 3,860 | /*
* (C) Copyright 2014 Nuxeo SA (http://nuxeo.com/) and contributors.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser General Public License
* (LGPL) version 2.1 which accompanies this distribution, and is available at
* http://www.gnu.o... | 29.692308 | 81 | 0.714249 |
84c60de8c941e5de2e093e7b5940682b744fe827 | 1,899 | package sem2.pbo.tugas3;
public class User {
int userId;
String name;
String phoneNumber;
int ovoBalance;
public void userOrder(double distance) {
System.out.printf("%s(id: %d | nomorHP: %s) memesan grab bike dengan jarak %.2f km \n", name , userId, phoneNumber, distance);
}
pub... | 29.215385 | 146 | 0.585045 |
3b9e5e6c924e4bf99258a9a89c26c1f26674d67f | 7,093 | /*
* 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 n... | 41.970414 | 117 | 0.695756 |
2b0193cafa3ebf75c23d8a272b552906ec7be489 | 10,644 | package com.candeo.app.shout;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.design.widget.FloatingActionButton;
import android.support.v4.app.DialogFragment;
import android.support.v4.app.Fragment;
import android... | 42.746988 | 206 | 0.586246 |
42633c994747341c07656b92624f2cf8d09a158d | 10,195 | package cn.duniqb.mobile.controller.generate;
import cn.duniqb.mobile.dao.ImgUrlDao;
import cn.duniqb.mobile.dto.feed.Article;
import cn.duniqb.mobile.entity.*;
import cn.duniqb.mobile.service.*;
import cn.duniqb.mobile.utils.PageUtils;
import cn.duniqb.mobile.utils.R;
import cn.duniqb.mobile.utils.redis.EntityType;
i... | 35.276817 | 115 | 0.616086 |
d670e250bee557a7db8eef4654fa56c7553f1a43 | 1,542 | /**
* @project: Butterfly
* @author: DStack Group
* @module: slack-consumer
* @fileName: Main.java
* @created: 2019-03-07
*
* --------------------------------------------------------------------------------------------
* Copyright (c) 2019 DStack Group.
* Licensed under the MIT License. See License.... | 40.578947 | 114 | 0.664721 |
0e619949433b1243930a873976c127b5a164ba92 | 867 | /*
* Copyright (C) Hanwha System Corp. 2018. All rights reserved.
*
* This software is covered by the license agreement between
* the end user and Hanwha System Corp. and may be
* used and copied only in accordance with the terms of the
* said agreement.
*
* Hanwha System Corp. assumes no responsibility or
* l... | 27.967742 | 81 | 0.71857 |
ea4f2093857f06d582c3ff54c687ac0dc4e81a42 | 228 | package org.deplabs.entity.cart.order;
import org.marketlive.entity.cart.order.IOrderPaymentType;
public interface IExtendedOrderPaymentType extends IOrderPaymentType {
public static final String TYPE_AFFIRM = "AFFIRM";
}
| 22.8 | 70 | 0.820175 |
40e9e15f9f3826f7366cdda7a039cdd1a815e898 | 14,045 | package com.defano.wyldcard.sound;
import com.defano.wyldcard.awt.KeyboardManager;
import com.defano.hypertalk.ast.model.Value;
import com.defano.hypertalk.exception.HtSemanticException;
import javax.sound.sampled.*;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.util.concurrent.CountDow... | 46.816667 | 169 | 0.666572 |
4ab5894fb64b13dd21b5c1a4e4979ae465c1b595 | 1,273 | // Copyright 2020 dataFascia Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 30.309524 | 77 | 0.739199 |
55fef0d66acc36f148ae6ae9ecd171b459834c5f | 4,709 | package karbonator.collection;
public class ArrayConverter {
public static boolean[] toPrimitiveArray(Boolean[] src) {
return toPrimitiveArray(src, false);
}
public static boolean[] toPrimitiveArray(Boolean[] src, boolean nullValue) {
boolean[] result = new boolean [src.length];
... | 24.784211 | 80 | 0.49777 |
81ca3dd1d54a1968193b9e9967135d3400c2aee1 | 444 | package com.eric.myapplication.kotlin;
/**
* @Author: chen
* @datetime: 2020/3/29
* @desc:
*/
interface GenericJava1<E> {
// Java的协变 ?extends E 规定了符号的"上线"必须为E类型
//如果我们只从中读取数据,而不往里面写入内容,那么这样的对象叫做生产者,生产者使用 ? extends E,称作"协变"
void addAll(GenericJava1<? extends E> genericJava1);
//java的逆变 ?super E 规定... | 23.368421 | 65 | 0.686937 |
4a3c799762f075d975ea36d1aafb669047599676 | 2,161 | /*
* Copyright (C) 2005-2020 Gregory Hedlund & Yvan Rose
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applica... | 26.353659 | 98 | 0.658029 |
ce7e2b3b9321c683b80db0928760b2ef5956a8e0 | 7,347 | /*
* Copyright 2010-2012 The MyBatis Team
*
* 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 a... | 52.106383 | 211 | 0.715122 |
70638923265fd284dc8cd4db92fe765d2ed5df3f | 3,920 | package org.deri.grefine.reconcile.commands;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
impor... | 31.612903 | 116 | 0.643622 |
1de5ec57d38378dde43800e29b554f887fa6e628 | 1,862 | package spec.concordion.common.command.execute;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.TreeSet;
import org.concordion.api.FullOGNL;
import org.concordion.integration.junit4.ConcordionRunner;
import org.junit.runner.RunWith;
import test.concordion.TestRig;
@RunWith(Concor... | 24.181818 | 83 | 0.592374 |
a389bd3e212d4b7fd43d0cf79aa94bff5efd504f | 669 | package org.hglteam.testing.jpatesting;
import javax.persistence.EntityManagerFactory;
public interface JpaConfigurer<
E extends JpaConfigurer<E, ?>,
PC extends JpaPropertyConfigurer<?, E>> {
E persistenceUnitName(String name);
E datasourceProvider(DatasourceProvider provider);
E persisten... | 30.409091 | 54 | 0.730942 |
4d3ecb0f718ed45ab3160b3573f2d7770e3108f0 | 5,341 | /*
* MIT License
*
* Copyright (c) 2021 Hydrologic Engineering Center
*
* 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
* ... | 37.34965 | 114 | 0.703988 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.