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 |
|---|---|---|---|---|---|
2a6385162721ae0c941a1841654ea669a88620ba | 926 | /*
* 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 services;
import java.util.List;
import models.SignatureRequestDto;
import models.SignatureRequestUserDto;
/**
*
* @author ... | 28.060606 | 89 | 0.763499 |
21e6c13e597435175f7025efdb9d289c52772f1f | 164 | package org.github.yassine.samples.domain.model;
public interface ValueObject<T> {
default boolean sameAs(T valueObject) {
return equals(valueObject);
}
}
| 20.5 | 48 | 0.75 |
f6fe1b0f899fbd582c4385b1fdcc1a573d6eeaf9 | 365 | package com.zou.gulimall.order.dao;
import com.zou.gulimall.order.entity.RefundInfoEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 退款信息
*
* @author zou
* @email zouhuan@qq.com
* @date 2021-01-04 21:00:32
*/
@Mapper
public interface RefundInfoDa... | 20.277778 | 69 | 0.758904 |
2b33e7ff0fcf28fb9441e6aff829bf7f0470bf8b | 2,465 | package constants;
public interface SpikeDetectionConstants extends BaseConstants {
String PREFIX = "sd";
int max_hz = 80000;
interface Conf extends BaseConf {
String PARSER_VALUE_FIELD = "sd.parser.value_field";
String GENERATOR_COUNT = "sd.generator.count";
String MOVING_AVERAGE_... | 34.236111 | 72 | 0.679513 |
bfa4832e8e08da00183ef1dc1bc2259e0fca48c1 | 3,373 | package io.jans.ca.server.op;
import com.google.common.base.Strings;
import com.google.inject.Injector;
import io.jans.ca.common.ExpiredObjectType;
import io.jans.ca.server.HttpException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import io.jans.as.client.OpenIdConfigurationResponse;
import io.jans.ca.co... | 39.22093 | 159 | 0.702342 |
0ebfaacec92f0fa4ac9387dd3a2b6bf9303691a1 | 5,549 | /**
* Copyright 2016 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 33.029762 | 115 | 0.638313 |
6ed4dd24f1cc6f8cc8b5c38c9e2d81924163e2fb | 9,671 | package com.example.qingyangdemo.net;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.HashMap;
import java.util.Map;
import org.apache.commons.httpclient.DefaultHttpMethodRetryHandler;
import org.apache.commons.httpclient.HttpClient;
... | 24.1775 | 126 | 0.672113 |
8351456d598796da2994b70623a1475f303b4c24 | 855 | package dne.eiim.xjam;
public abstract class Op {
protected final String name;
public Op(final String name) {
this.name = name;
}
public abstract void run(XJam x);
@Override
public String toString() {
return name;
}
protected RuntimeException fail(final Object a) {
return new RuntimeException(a.get... | 27.580645 | 95 | 0.680702 |
71e592f63272b34f622460a93ab9753f190016a5 | 4,855 | /**
* CPM API
* Public API for CPM
*
* OpenAPI spec version: V1.0
* Contact: info@addison.de
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
* Licensed under the Apache License, Version 2.0 ... | 24.275 | 131 | 0.661174 |
cc413f2fbb20ce12f561aad0563eaf88bc13327a | 478 | package firstPackage;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
public class SecurityRandom {
public static void main(String[] args) {
SecureRandom sr = null;
try {
sr = SecureRandom.getInstance("SHA1PRNG");
} catch (NoSuchAlgorithmException e) {
e.printStackTrace... | 19.916667 | 46 | 0.694561 |
02755502303e3a8054cf0339c6cde27fb0d18f76 | 4,067 | /*
* Copyright 2019 Red Hat, Inc. and/or its affiliates
* and other contributors as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apach... | 36.3125 | 106 | 0.676912 |
4ed1344bf0510228f3cdc6c9f348bbe5c17230af | 689 | /*
* Copyright (c) 2017. All rights reserved. Used by permission.
*
* Author: Wen Hao
* Date: 2017-05-16 17:34:12
* Gtihub: https://github.com/wenhao
*
*/
package com.github.wenhao.functional;
import com.github.wenhao.helper.RemoteConfigHelper;
import org.junit.Test;
import static io.restassured.RestAssured.g... | 21.53125 | 81 | 0.656023 |
a3cbd5badf996fa2733b8e4df1ee8870205a509e | 4,715 | package meme.busoton;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.app.TimePickerDialog;
import android.content.Context;
import android.content.Intent;
import android.support.v7.util.SortedList;
import android.support.v7.widget.CardView;
import android.support.v7.widget.RecyclerVie... | 32.743056 | 114 | 0.674443 |
6071fcd8cf38e9d542e25050f19a57f6c5aee9aa | 1,727 | package com.github.zhgxun.leetcode.string;
import java.util.ArrayList;
import java.util.List;
/**
* 438. 找到字符串中所有字母异位词
* <p>
* https://leetcode-cn.com/problems/find-all-anagrams-in-a-string/
* <p>
* https://www.bilibili.com/video/BV1WC4y1a7hq?from=search&seid=6464771871012239601
*/
public class FindAnagrams {
... | 28.311475 | 83 | 0.517082 |
f48300465c383cc1f2ca69d7ca2cf7d799a142e6 | 741 | package com.chen.spring.action.c4.aop.advice;
import org.aspectj.lang.annotation.*;
import org.springframework.stereotype.Component;
/**
* @author 陈添明
* @date 2019/2/24
*/
@Aspect
@Component
public class Audience {
@Pointcut("execution(* com.chen.spring.action.c4.aop.Performance.perform(..))")
public void... | 20.027027 | 83 | 0.62888 |
f1d32cd4fb9717277fd5401c9212ddd514093515 | 998 | package org.firebears.betaTestRobot2.commands;
import java.nio.ByteBuffer;
import edu.wpi.first.wpilibj.I2C;
import edu.wpi.first.wpilibj.command.Command;
/**
* Write the given byte array out to an I2C address.
* Typically, this writes a sequence of bytes to an Arduino.
*/
public class I2cWriteCommand ... | 24.341463 | 68 | 0.709419 |
bd3a6e9e2c0d1d47cb91a7790f35958faaa25e0b | 5,639 | package com.bitmovin.api.sdk.encoding.encodings.inputStreams.subtitles.dvbSubtitle;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import feign.Param;
import feign.QueryMap;
import feign.RequestLine;
import feign.Body;
import feign.Headers;
import com.bitmovin.api.sdk.m... | 41.463235 | 187 | 0.710055 |
60813da29e04ed314ec6848981248112b5460549 | 4,522 | package com.fmall.content.service.impl;
import com.fmall.common.jedis.JedisClient;
import com.fmall.common.pojo.EasyUIDataGridResult;
import com.fmall.common.pojo.FmResult;
import com.fmall.common.utils.JsonUtils;
import com.fmall.content.service.ContentService;
import com.fmall.mapper.TbContentMapper;
import com.fmal... | 30.348993 | 90 | 0.638434 |
2113e5c7002093f1219e14fe01ddf599cd33db37 | 3,849 | /*
* Copyright 2004,2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 30.792 | 87 | 0.668485 |
a87cf9c00b4590e5e5950cac19006b4f5181a062 | 1,856 | package it.santagati.pizzeria;
import it.santagati.pizzeria.dao.PizzaDao;
import it.santagati.pizzeria.dao.PrenotazioneDao;
import it.santagati.pizzeria.models.PrenotazioneElement;
import org.json.JSONArray;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlA... | 34.37037 | 93 | 0.715517 |
ff7fe6d00319d9917762be78cf0de9eba3086554 | 801 | package org.nd4j.linalg.dataset.api.iterator.enums;
/**
* This enum describes different handling options for situations once one of producer runs out of data
*
* @author raver119@gmail.com
*/
public enum InequalityHandling {
/**
* Parallel iterator will stop everything once one of producers runs out of da... | 25.83871 | 110 | 0.679151 |
8472c887af709b98297bc27ac091fdca256e6421 | 5,694 | /*
* 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
* distributed u... | 26.483721 | 159 | 0.680365 |
6378061a4dcb1377fc9a4e8266a50e48b9275404 | 1,340 | package de.quinscape.automaton.runtime.filter.impl;
import de.quinscape.automaton.runtime.filter.ConfigurableFilter;
import de.quinscape.automaton.runtime.filter.Filter;
import de.quinscape.automaton.runtime.filter.FilterEvaluationContext;
import de.quinscape.automaton.runtime.scalar.ConditionBuilder;
import de.quinsc... | 24.814815 | 86 | 0.720896 |
27889242cbc1ba9f39b9d08d239a96b9b3f8a0f0 | 1,823 | /*
*
* Citrus - A object-oriented, interpreted language that is designed to simplify
* the creation of dynamic, immediate feedback graphical desktop applications.
*
* Copyright (c) 2005 Andrew Jensen Ko
* All rights reserved.
*
* This program is free software; you can redistribute it and/or
* modify it unde... | 36.46 | 104 | 0.704882 |
ec4c77a9ed586817f50c13aeee1acbbd2b76a1d7 | 3,673 | // Copyright (C) 2004-2009 Peter Luschny, MIT License applies.
// See http://en.wikipedia.org/wiki/MIT_License
// Visit http://www.luschny.de/math/factorial/FastFactorialFunctions.htm
// Comments mail to: peter(at)luschny.de
package de.luschny.math.factorial;
import de.luschny.math.Xmath;
import de.luschny.math.arithm... | 27.616541 | 113 | 0.553771 |
661d3846c1b537ffb90916ada27b9f6e2b88ab78 | 13,310 | /*
* 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 ... | 39.731343 | 126 | 0.612998 |
16c2ddd4f20e399c982b5c599dec441a4e36b952 | 202 | package umm3601.todo;
import java.util.Comparator;
public class sortByBody implements Comparator<Todo> {
@Override
public int compare(Todo a, Todo b) {
return a.body.compareTo(b.body);
}
}
| 16.833333 | 53 | 0.722772 |
0ec405d041e7d649e6f92654efd61c96ff015799 | 759 | package com.lcwork.multimall.sysadmin;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annot... | 31.625 | 78 | 0.794466 |
08262eab989819d72ca61f2d81575c5d174a5a9c | 1,397 | /* Copyright (c) 2013 OpenPlans. All rights reserved.
* This code is licensed under the BSD New License, available at the root
* application directory.
*/
package org.geogit.storage;
import org.geogit.api.Platform;
import org.geogit.repository.RepositoryConnectionException;
import com.google.inject.Inject;
import ... | 31.044444 | 98 | 0.732999 |
218ac2b6ea43cdb664f877fadd16b458010cf150 | 1,512 | /*
* Copyright 2014 Alexey Andreev.
*
* 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... | 27.490909 | 76 | 0.696429 |
123f8b9ff23fb7da4c0468daa8e53ea6fcc1b042 | 24,240 | /*
* Copyright (c) 2018 Qualcomm Technologies, Inc.
* All Rights Reserved.
* Confidential and Proprietary - Qualcomm Technologies, Inc.
*/
package com.qualcomm.qti.qca40xx.Activity;
import android.content.Context;
import android.content.SharedPreferences;
import android.net.wifi.ScanResult;
import android.net.wifi.Wi... | 45.223881 | 160 | 0.565223 |
6409f7b1280a1082a8e10466a2ae6688b2a84285 | 403 | package org.incode.example.docfragment.fixture.teardown;
import org.apache.isis.applib.fixturescripts.teardown.TeardownFixtureAbstract2;
import org.incode.example.docfragment.dom.impl.DocFragment;
public class DocFragmentModule_tearDown extends TeardownFixtureAbstract2 {
@Override
protected void execute(Exe... | 25.1875 | 79 | 0.806452 |
2f78a0775bfad8cde830c09999bf16fd279230b1 | 49 | package parameters.a;
public class TheType {
}
| 8.166667 | 22 | 0.734694 |
e160f2751454f358d1d53503b81e5ef0360e7aeb | 37,798 | /*
* 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 Visao;
import java.text.NumberFormat;
import Modelo.ModeloRefeicoes;
import javax.swing.ImageIcon;
/**
*
* @author Alex
*/... | 50.599732 | 155 | 0.685698 |
a3c9fffb2366cece0bea815d030557ce816192b5 | 9,185 | package com.apptitive.beautytips;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentTransaction;
import android.support.v4.view.WindowCompat;
import android.support.v4.... | 39.761905 | 122 | 0.657485 |
61a48cf13750c44d1d6fa7f13cf15dbfd9f3e56d | 5,795 | package br.com.zup.nossocartao.proposta.associacarteiradigital;
import br.com.zup.nossocartao.proposta.associacartao.CartaoEntity;
import br.com.zup.nossocartao.proposta.associacartao.CartaoRepository;
import br.com.zup.nossocartao.proposta.compartilhado.exceptionhandler.ApiErrorException;
import br.com.zup.nossocarta... | 51.741071 | 168 | 0.699914 |
7694cb3e6d6d546d076b70cbc3a5744567e33e8d | 2,069 | package com.alisls.demo.springcloud.service.order.web;
import com.alisls.demo.springcloud.service.order.client.ProductClient;
import com.alisls.demo.springcloud.service.order.dto.OrderDTO;
import com.alisls.demo.springcloud.service.order.service.OrderService;
import com.springcloud.common.model.dto.Result;
import io.s... | 27.959459 | 77 | 0.691638 |
9e2c1346605ad7aa73db265ebc307a37f3e1a1ea | 877 | package io.rtcore.sip.message.parsers.core.terminal;
import com.google.common.primitives.Bytes;
import io.rtcore.sip.message.parsers.api.Parser;
import io.rtcore.sip.message.parsers.api.ParserContext;
import io.rtcore.sip.message.parsers.api.ValueListener;
/**
*
*
*
*/
public class OneOf implements Parser<Ch... | 19.931818 | 93 | 0.694413 |
96583adab2802a0f884d637bbb1e16a4d62983d6 | 723 | package org.nuclearfog.twidda.model;
/**
* interface for relation implementations
*
* @author nuclearfog
*/
public interface Relation {
/**
* @return true if the relation points to the current user
*/
boolean isHome();
/**
* @return true if current user is following this user
*/
... | 18.075 | 78 | 0.591978 |
3a0a2ca588bc0db6f801ed02551ef1e6dfb79abf | 420 | package com.cjxch.supermybatis.core.enu;
import com.cjxch.supermybatis.core.provider.GetSqlProvider;
import java.lang.annotation.*;
/**
* 自定义sql解析器注解
* @Author: 菜鸡小彩虹
* @Date: 2020/09/22/15:52
*/
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target( {ElementType.TYPE})
public @interface SuperMybatisSqlProvid... | 17.5 | 59 | 0.702381 |
01d57041682bdecf6e34452739fb9ac0652c72fb | 435 | package com.thoughtworks.sql;
import org.junit.Test;
import static com.thoughtworks.sql.Field.field;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
public class FieldTest {
@Test
public void should_return_true_if_field_has_alias_name() {
Field field = field("t... | 22.894737 | 62 | 0.701149 |
1d356d7628283eeaca0e3cd5967e8acacbc9899f | 732 | package costfunction;
import state.State;
/**
* @author Nikhil Chakravartula (nchakrav@usc.edu) (nikhilchakravartula@gmail.com)
* Approximate distance between two adjacent states. Diagonal : 14 Non-diagonal : 10
*/
public class MoveCostFunction implements CostFunction {
static final int DIAGONALCOST = 14;
stat... | 26.142857 | 84 | 0.692623 |
ac75269efdccaed02c868b0f5029acba9e59e4ad | 1,047 | package com.dingmouren.example.layoutmanagergroup.widget;
import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.RelativeLayout;
/**
* Created by dingmouren
* email: naildingmouren@gmail.com
* github: https://github.com/DingMouRen
*/
public class ... | 24.348837 | 91 | 0.700096 |
d7012e40ef207545ec5bda6a9e2de685aacb851b | 1,602 | package com.lyl.db.sub_db;
import android.util.Log;
import com.lyl.db.db.BaseDao;
import java.util.List;
/**
* Created by dds on 2019/7/15.
* android_shuai@163.com
*/
public class UserDao extends BaseDao<User> {
private final static String TAG = "dds_UserDao";
@Override
public long insert(User entit... | 24.646154 | 61 | 0.516854 |
ffa3ac6a73e6e8531d1fe1d2193432982856c75f | 9,315 | package de.viadee.xai.anchor.algorithm;
import de.viadee.xai.anchor.algorithm.util.ParameterValidation;
import java.io.Serializable;
import java.util.*;
/**
* Representation of an Anchor candidate.
* <p>
* An Anchor is defined by the features is comprises.
* <p>
* This class is not completely immutable but thre... | 35.150943 | 132 | 0.650349 |
a694705ce03935026da560e8c74440ce4979945d | 4,247 | package com.yyxnb.what.core.file;
import java.io.File;
import java.util.regex.Pattern;
import cn.hutool.core.util.CharUtil;
import cn.hutool.core.util.ReUtil;
import cn.hutool.core.util.StrUtil;
public class FileNameUtils {
public static final String EXT_JAVA = ".java";
public static final String EXT_CLASS =... | 29.908451 | 128 | 0.504121 |
2fdf7af9592da5101e0d5cdad32948abc14a67de | 1,713 | package com.zjb.loader.core.display;
import android.graphics.Bitmap;
import android.graphics.ComposeShader;
import android.graphics.Matrix;
import android.graphics.PorterDuff.Mode;
import android.graphics.RadialGradient;
import android.graphics.Rect;
import android.graphics.Shader.TileMode;
import com.zjb.loader.int... | 34.26 | 217 | 0.749562 |
82079e2972d53a32d36095b3ddb1906bde6d1e5b | 2,160 | package io.hassaan.configs;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Properties;
public final class ConfigurationManager {
private static final ConfigurationManager _inst... | 30.857143 | 113 | 0.74213 |
5ec411369de1c9e28a09173582a3a1c478bd9eeb | 17,216 | /**
* JBoss, Home of Professional Open Source.
* Copyright 2014 Red Hat, Inc., and individual contributors
* as indicated by the @author tags.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the Lice... | 38.088496 | 180 | 0.625349 |
18d2fe9ca5cdfd9f85967b5a4288771e696b985c | 241 | //
// ExtraUtilities decompiled and fixed by Robotia https://github.com/Robotia
//
package cofh.api.item;
import net.minecraft.item.ItemStack;
public interface IInventoryContainerItem
{
int getSizeInventory(final ItemStack p0);
}
| 16.066667 | 76 | 0.763485 |
ba7288a29b99932e1b2faa02430139260c5723db | 5,978 | package com.yacl4j.core.util;
import java.io.InputStream;
import java.util.Iterator;
import java.util.Map;
import java.util.Optional;
import yacl4j.repackaged.com.fasterxml.jackson.core.JsonFactory;
import yacl4j.repackaged.com.fasterxml.jackson.core.JsonPointer;
import yacl4j.repackaged.com.fasterxml.jackson.databin... | 34.959064 | 159 | 0.758615 |
99243fc6832d84fe69cb00b1df82c1c1522aa51e | 2,887 | package org.nutz.lang.util;
import static org.junit.Assert.*;
import org.junit.Test;
public class LinkedIntArrayTest {
static LinkedIntArray LIA(int... es) {
LinkedIntArray lia = new LinkedIntArray(2);
for (int e : es)
lia.push(e);
return lia;
}
@Test
... | 25.104348 | 52 | 0.519917 |
da5dce6606ba8c86c4ab93776688477c6d329aad | 385 | package com.zhuangxiaoyan.athena.coupon.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhuangxiaoyan.athena.coupon.entity.SkuLadderEntity;
import org.apache.ibatis.annotations.Mapper;
/**
* 商品阶梯价格
*
* @author xjl
* @email 18279148786@163.com
* @date 2022-03-10 11:14:46
*/
@Mapper
public... | 21.388889 | 67 | 0.776623 |
e7c510acd0eaf3c18357a4cd3fe5c559b6d75d89 | 11,472 | package edu.villanova.ece.inv.activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.EditText;
import android.widget.... | 33.348837 | 122 | 0.610007 |
a852ef0d0d4175cca26a7fcbd4df06528470563b | 19,741 | /*
* 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 ... | 32.522241 | 252 | 0.697634 |
8a02ec9376ee07bfc8f3c3b8b4b554aa6d65c062 | 355 | package fracciones;
/**
*
* @author José Javier Flores López
*/
public class Fracciones {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
System.out.println(TraductorFraccion.fromString("cuarenta y ocho doceavos").numerador);
// TODO code a... | 19.722222 | 95 | 0.642254 |
b102c66a09376fc0436626984696489cb1787b8b | 498 | package com.tinkerpop.gremlin.structure.io;
/**
* Represents a low-level serialization class that can be used to map classes to serializers. These implementation
* create instances of serializers from other libraries (e.g. creating a {@code Kryo} instance).
*
* @author Stephen Mallette (http://stephen.genoprime.c... | 33.2 | 115 | 0.726908 |
70dddb43f7832aeb25148dd433da91441dc82968 | 2,519 | package org.bottombar.widget;
import android.content.Context;
import android.support.annotation.Nullable;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.RelativeLayout;
import android.widget.TextView;
import org.bottombar.R;
/**
* Created ... | 27.086022 | 89 | 0.60659 |
26bdce93d0d178f3760b7046bf489d97988bb6ac | 2,080 | package com.mygdx.game.client;
import com.badlogic.gdx.ApplicationListener;
import com.badlogic.gdx.backends.gwt.GwtApplication;
import com.badlogic.gdx.backends.gwt.GwtApplicationConfiguration;
import com.guy.WebSocketInterface;
import com.mygdx.game.MyGdxGame;
public class HtmlLauncher extends GwtApplication {
... | 40 | 83 | 0.600962 |
2bbaea7d460acace523b4e14b65e8dd8147af3f5 | 120 | package a;
public class Two {
public static void main(String[] args) {
One.epibrate();
One.denature();
}
} | 13.333333 | 42 | 0.616667 |
93c3b08a1508d26d4134e1e2c78a1ffb28953ac7 | 993 | package osc.gobaby.octopus.controller.mv;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import osc.gobaby.octopus.service.admin.db.DbConnectUtils;
import osc.... | 31.03125 | 86 | 0.705942 |
5a6404e7ecd8dc53a92f93745c931748196ca9f0 | 332 | package com.inti.service.interfaces;
import java.util.List;
import com.inti.entities.Fournisseur;
public interface IFournisseurService {
public List <Fournisseur> findAll();
public Fournisseur findOne(Long id_Fournisseur);
public Fournisseur save(Fournisseur Fournisseur);
public void delete (Long id_Fourn... | 18.444444 | 50 | 0.789157 |
b89f3424844e453a7e5cc9b5bff97fa712118c5e | 2,143 | /*
* 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 framework;
import static com.jogamp.opengl.GL.GL_FALSE;
import static com.jogamp.opengl.GL.GL_TRUE;
import com.jogamp... | 30.183099 | 94 | 0.591227 |
7fa016701938eb3554ac038a610bb6741c82a780 | 3,091 | package com.znsio.e2e.tools;
import com.context.SessionContext;
import com.context.TestExecutionContext;
import com.epam.reportportal.service.ReportPortal;
import com.znsio.e2e.entities.TEST_CONTEXT;
import io.appium.java_client.AppiumDriver;
import org.apache.commons.io.FileUtils;
import org.apache.commons.lang3.exce... | 40.671053 | 158 | 0.663863 |
381870bda572d6cc73d8ea8c06dd0a3f4d436ab0 | 960 | package sample;
import akka.actor.AbstractLoggingActor;
import akka.japi.pf.ReceiveBuilder;
import javax.inject.Inject;
import javax.inject.Named;
import org.springframework.context.annotation.Scope;
import sample.CountingActor.Count;
import sample.CountingActor.Get;
/**
* An actor that can count using an injected C... | 24 | 72 | 0.704167 |
43a1e63a6e2c927f217820fa5448b6dff4113ed1 | 3,241 | package com.taxisurfr.servlet;
import java.io.IOException;
import java.io.InputStream;
import java.util.logging.Logger;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.googlecode.obje... | 38.583333 | 84 | 0.682197 |
a7f640ab80d063e2a96640759714833ae309ad4b | 2,061 | package com.humanharvest.organz.commands.modify;
import java.io.File;
import java.io.IOException;
import java.io.PrintStream;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import com.humanharvest.organz.Client;
import com.humanharvest.organz.HistoryItem;
import com.humanharve... | 34.932203 | 104 | 0.672004 |
01acfde58bea88df9ab5de633a3f7fefae203402 | 5,797 | package com.github.sormuras.beethoven.unit;
import com.github.sormuras.beethoven.Compilation;
import com.github.sormuras.beethoven.Listing;
import com.github.sormuras.beethoven.Name;
import com.github.sormuras.beethoven.Style;
import java.net.URI;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.C... | 32.027624 | 100 | 0.706745 |
8ede7d1bfcb8250f4673d62717eb8bf0baed5aa4 | 612 | package apiServer.controllers.Module1.JSONRequestSpec;
public class FloorRequest {
private Integer buildingId;
private Integer storey;
private String floorPlanURL;
public FloorRequest(Integer buildingId, Integer storey, String floorPlanURL) {
this.buildingId = buildingId;
this... | 23.538462 | 83 | 0.647059 |
3590f2012f71b2dfc80937945127d05e36224950 | 1,453 | package org.moebuff.magi.util;
import org.apache.commons.codec.binary.Base64;
import javax.crypto.Cipher;
import javax.crypto.spec.SecretKeySpec;
/**
* AES-128
*
* @author MuTo
*/
public class AESAlg {
public static final String ALGORITHM = "AES";
private static final SecretKeySpec KEY = kgen(ALGORITHM);... | 27.942308 | 88 | 0.580179 |
dc038843baea6efe09a1e966086a39cf35378713 | 2,448 | package com.ragas.serviceImpl;
import java.util.concurrent.CopyOnWriteArrayList;
import org.codehaus.jackson.map.ObjectMapper;
import com.ragas.model.Model;
import com.ragas.service.Service;
public class ServiceImpl implements Service{
CopyOnWriteArrayList<Model> datas;
// if we use arraylist then possibil... | 21.663717 | 120 | 0.593546 |
0dc24da8a07295015797cfa4aed0f5a5504b59df | 929 | package eu.okaeri.sdk.aicensor.model;
import eu.okaeri.sdk.aicensor.error.AiCensorException;
import kong.unirest.HttpResponse;
import lombok.Data;
import java.io.Serializable;
import java.util.function.Consumer;
@Data
public class AiCensorError implements Serializable {
public static final Consumer<HttpResponse... | 29.03125 | 97 | 0.679225 |
26a7885a28864131bb29e521bae7d60e73bc9140 | 197 | package com.github.tomokinakamaru.protocool.context;
import com.github.javaparser.ast.CompilationUnit;
import java.util.HashMap;
public class AstBases extends HashMap<Object, CompilationUnit> {}
| 28.142857 | 65 | 0.832487 |
f88470e4565b2d655fbc1d8b8e7f5487f99a34c3 | 11,232 | package org.sagebionetworks.repo.web.controller;
import org.sagebionetworks.auth.DeprecatedUtils;
import org.sagebionetworks.repo.model.AuthorizationConstants;
import org.sagebionetworks.repo.model.auth.LoginResponse;
import org.sagebionetworks.repo.model.auth.NewUser;
import org.sagebionetworks.repo.model.auth.... | 48.623377 | 118 | 0.753917 |
51566fe19be830b5ff6b1273ae9e1e4b0c6abf19 | 4,039 | /**
* Copyright 2018 BlazeMeter Inc.
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to i... | 39.213592 | 151 | 0.672939 |
fc370c6d55ba0e49902b6f4fcddef69471577b19 | 12,179 | /* Copyright 2008 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 35.611111 | 97 | 0.671566 |
f246151259261eafa181f991194ed7b06bdd881a | 1,003 | package co.mitoo.sashimi.services;
import android.os.Handler;
import co.mitoo.sashimi.network.DataPersistanceService;
import co.mitoo.sashimi.network.ServiceBuilder;
import co.mitoo.sashimi.network.SteakApi;
import co.mitoo.sashimi.utils.BusProvider;
import co.mitoo.sashimi.utils.MitooConstants;
import co.mitoo.sashi... | 23.880952 | 89 | 0.734796 |
46142067bb6cee787d9176c4c0f24fff2d148c14 | 559 | package com.github.adelinor.messaging.mapper;
/**
* Similar to the JPA AttributeConverter, this defines
* a strategy for converting a header value to an object
* property value.
*
* @author Adelino Rodrigues (created by)
* @since 5 Mar 2019 (creation date)
*/
public interface HeaderConverter<X, Y> {
/**
* ... | 22.36 | 56 | 0.708408 |
49659008ce1e9ff13fce533abe22c809528626bc | 1,573 | package piapro.github.io.instax.view.fliter_lib;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.ColorMatrix;
import android.graphics.ColorMatrixColorFilter;
import android.graphics.Paint;
import android.util... | 24.578125 | 92 | 0.661157 |
1080ab8cf1e29b82475f29af415f7c9bb3bf06ee | 634 | package com.sxu.commonbusiness.login.bean;
import java.io.Serializable;
/*******************************************************************************
* Description: 微信用户的信息
*
* Author: Freeman
*
* Date: 2018/8/31
*******************************************************************************/
public class WX... | 21.133333 | 81 | 0.544164 |
4410dad1dda85f3a6472f638b8b9b734ce66a986 | 6,406 | /**************************************************************
*
* 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 y... | 40.289308 | 189 | 0.62379 |
4f17102c078b23221de04472d6695fdb6bf388ec | 129 | package org.ovirt.engine.extensions.aaa.builtin.kerberosldap.utils.kerberos;
public enum LdapModeEnum {
LOCAL,
REMOTE
}
| 18.428571 | 76 | 0.767442 |
1ad07abf717ada29bbe7393f49074ed3f15471ec | 9,073 | package ca.bc.gov.open.jag.efilingaccountclient;
import brooks.roleregistry_source_roleregistry_ws_provider.roleregistry.RegisteredRole;
import brooks.roleregistry_source_roleregistry_ws_provider.roleregistry.RoleRegistryPortType;
import brooks.roleregistry_source_roleregistry_ws_provider.roleregistry.UserRoles;
impor... | 43.830918 | 144 | 0.714979 |
564eea755caf719f207fa11818e5e9030d056941 | 2,766 | package no.agens.cassowarylayout.util;
import org.pybee.cassowary.Constraint;
import org.pybee.cassowary.ConstraintNotFound;
import org.pybee.cassowary.Expression;
import org.pybee.cassowary.SimplexSolver;
import org.pybee.cassowary.Strength;
import org.pybee.cassowary.Variable;
/**
* Created by alex on 08/10/2014.... | 36.394737 | 147 | 0.644613 |
7e9cc8b0bd6b9a0896ad4490f3ef066f5665f301 | 420 | /*
* Copyright 2015, Yahoo Inc.
* Copyrights licensed under the Apache License.
* See the accompanying LICENSE file for terms.
*/
package com.yahoo.dba.perf.myperf.db;
import com.yahoo.dba.perf.myperf.common.*;
/**
* Process ResultList after query returned and returns a modified ResultList
* @author ... | 23.333333 | 77 | 0.719048 |
95f9b706f29c6204ddd469b0195455229243ea8e | 650 | package com.pux0r3.bionicbeth.physics;
import com.badlogic.ashley.core.Component;
import com.badlogic.gdx.math.Vector3;
/**
* Created by pux19 on 1/5/2016.
*/
public class PhysicsComponent implements Component {
Vector3 _velocity = new Vector3();
Vector3 _acceleration = new Vector3();
public void getVelocity(Ve... | 22.413793 | 55 | 0.769231 |
1c59ac75a407bcb5db3610527d7eea64b240098c | 10,658 | /*
* 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 ... | 29.523546 | 116 | 0.633796 |
804baa1b57db4a948add8630ec50e20f1613fbcc | 13,207 | /*
* Copyright © 2020 Mark Raynsford <code@io7m.com> http://io7m.com
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVID... | 25.398077 | 80 | 0.669418 |
74c14803f032fccfbdd3bd1714bd708edd677bdb | 1,680 | /*
*
* 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
* "Licens... | 25.074627 | 76 | 0.702976 |
6c331b20111a0b11f644b4a45e3173f09e8ec057 | 337 | /*
* synopsys-detect
*
* Copyright (c) 2021 Synopsys, Inc.
*
* Use subject to the terms and conditions of the Synopsys End User Software License and Maintenance Agreement. All rights reserved worldwide.
*/
package com.synopsys.integration.detect.workflow.airgap;
public enum AirGapInspectors {
DOCKER,
GRA... | 22.466667 | 142 | 0.735905 |
7bc8d4983761e31006f0a56b20b916645624118b | 1,416 | package Run;
import Base.Base;
import com.relevantcodes.extentreports.ExtentReports;
import com.relevantcodes.extentreports.ExtentTest;
import org.apache.log4j.Logger;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.annotations.AfterClass;
import org.testng.annot... | 28.32 | 76 | 0.704096 |
e92f8a57984f34be3877902c795cca146b8a7c0a | 1,440 | /*
* Copyright 2021 WILIX LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 27.169811 | 103 | 0.651389 |
26fdf5cd6c883beaa688bc36b788f60aedc4e247 | 56,511 | /*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | 79.258065 | 122 | 0.605298 |
36b43c8d4ff36c153bd3c1662cb1b1db3ea5c092 | 13,552 | /*
* Copyright (c) 2015, salesforce.com, inc.
* 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 the above copyright notice, this list of cond... | 37.128767 | 130 | 0.659091 |
6bfb6dc41638e95c3785a3ceabd3177bc547904a | 2,649 | package com.linkedin.dagli.fasttext;
import com.linkedin.dagli.fasttext.anonymized.io.LineReader;
import com.linkedin.dagli.fasttext.anonymized.io.BufferedCompressedAndEncryptedLineReader;
import com.linkedin.dagli.fasttext.anonymized.io.BufferedCompressedLineReader;
import com.linkedin.dagli.fasttext.anonymized.io.Bu... | 33.961538 | 117 | 0.739902 |
ae0c4bccf5e08377c2ccc4c0d720a39d61cbd6f0 | 6,000 | /*
* Copyright 2017 huxizhijian
*
* 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 ... | 35.294118 | 115 | 0.679 |
7957c6d7466a1b001420824e86d11d4fcdac5d77 | 1,425 | package com.redescooter.ses.mobile.rps.service.base.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.redescooter.ses.mobile.rps.dao.base.OpeProductionPartsMapper;
import com.redescooter.ses.mobile.rps.dm.OpeProductionParts;
import org.springframework.stereotype.Service;
import javax... | 27.403846 | 162 | 0.762807 |
098121dfeffd5974a9f2477eb3c086ba0530c676 | 17,561 | /*
* Copyright (C) 2012 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 40.002278 | 97 | 0.526678 |
ebe9f49208e0684095b2f540bbc95b082c084a9c | 2,560 | package org.oagi.score.repo.component.acc;
import org.oagi.score.service.common.data.OagisComponentType;
import org.oagi.score.data.RepositoryRequest;
import org.springframework.security.core.AuthenticatedPrincipal;
import java.math.BigInteger;
import java.time.LocalDateTime;
public class UpdateAccPropertiesReposito... | 26.947368 | 77 | 0.677344 |
5271a85dec70566da298091ff5c80dfa18ff25fd | 9,006 | // Copyright (C) 2002 IAIK
// http://jce.iaik.at
//
// Copyright (C) 2003 - 2015 Stiftung Secure Information and
// Communication Technologies SIC
// http://www.sic.st
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permi... | 38.161017 | 122 | 0.677215 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.