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 |
|---|---|---|---|---|---|
ee147e5648e0958c681ab2e2ca88246535c8bd21 | 22,808 | /*
* Copyright (c) 2020, itofu1
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions a... | 54.826923 | 158 | 0.787443 |
4f4d77c8f8611670742f8c2754d188500569ea0f | 3,080 | package example1.mothership.service;
import com.fasterxml.jackson.core.util.DefaultPrettyPrinter;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;
import com.hazelcast.config.Config;
import com.hazelca... | 38.5 | 109 | 0.743831 |
86af6751cf02a7915f256a08709091e306e0fb0c | 3,696 | package android.support.v7.widget;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.RippleDrawable;
import android.os.Build;
import android.support.annotation.RestrictTo;
import android.support.v7.content.res.AppCompatResources;
import android.widget.ImageView;
@RestrictTo({RestrictTo.Scope... | 46.2 | 177 | 0.618506 |
c637e19f43b2200e4fd3d0281dc960a5d3e18781 | 751 | package com.secdec.codedx.api.client;
public class TriageStatus {
private String type;
private String display;
private String settable;
public static final String TYPE_STATUS = "status";
public static final String TYPE_USER = "user";
public String getType() {
return type;
}
public void setType(String ty... | 19.25641 | 63 | 0.691079 |
1e5c51db173a33ebe16082b7a28a8595acaba784 | 1,108 | /*
Copyright 2006 Jerry Huxtable
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, s... | 28.410256 | 73 | 0.732852 |
51c28350392d169a732ad4655480a5350d833958 | 10,530 | /**
* Copyright © 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
*/
package com.thinkgem.jeesite.sierac.entity;
import java.util.Date;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import org.hibernate.validator.co... | 26.862245 | 185 | 0.592593 |
3b40425bffd78ff8a3c75c9eb7aea19d3ca2f400 | 7,481 | // This file is part of OpenTSDB.
// Copyright (C) 2013 The OpenTSDB Authors.
//
// This program 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
// opti... | 37.218905 | 81 | 0.678385 |
3f6ace3f33f56e98675845fe61b9d80a6478fb15 | 7,030 | /*
* Copyright (C) 2005 Luca Veltri - University of Parma - Italy
*
* This file is part of MjSip (http://www.mjsip.org)
*
* MjSip is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version ... | 28.007968 | 81 | 0.614509 |
149d740a4990467fcb1ecba574836e451ff3880f | 2,815 | package com.milind.assigment.domain;
import java.io.Serializable;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.validation.constraints.NotNu... | 28.434343 | 103 | 0.753819 |
4fd5ce522df515cbad3b082ae35a9ec516d008f6 | 3,557 |
package com.cjhxfund.autocode.wesklake.model.xsd.table;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;
/**
* <p>TableFieldType compl... | 21.047337 | 93 | 0.515603 |
6f2059798b4a5599e8d651486983ed839065ca6f | 16,297 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.synapse.implementation;
import com.azure.core.http.rest.Response;
import com.azure.core.http.rest.SimpleResponse;
import com.azu... | 44.527322 | 119 | 0.597104 |
b532b0c50eac874ccb601fb12d84f9bdadb21247 | 936 | package hx.web.front.service.gateway;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.client.RestT... | 32.275862 | 118 | 0.736111 |
daa327e039d76d22c6fdb64da8d6903186047a61 | 605 | package fr.novaria.utils.collect;
import java.util.Iterator;
import java.util.Map;
import static com.google.common.base.Preconditions.checkNotNull;
public final class MapUtils {
public static <K, V> void putAll(Map<K, V> map, Iterator<? extends Map.Entry<? extends K, ? extends V>> iterator) {
checkNotNu... | 27.5 | 119 | 0.642975 |
e2248d500bb9ed438cfbbd05f8d8e6cf3a819cef | 980 | package com.ooqiu.gaming.service.redis.api.impl;
import com.alibaba.dubbo.config.annotation.Service;
import com.ooqiu.gaming.service.redis.api.RedisService;
import com.ooqui.gaming.server.commons.constant.DubboVersionConstant;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.da... | 31.612903 | 82 | 0.762245 |
dc5234e4dfee9cb0f89587151770e4d7747156f5 | 2,754 | package com.sonyericsson.jenkins.plugins.bfa;
import com.codahale.metrics.MetricRegistry;
import com.sonyericsson.jenkins.plugins.bfa.model.FailureCause;
import com.sonyericsson.jenkins.plugins.bfa.model.IFailureCauseMetricData;
import jenkins.metrics.api.Metrics;
import java.util.HashSet;
import java.util.List;
impo... | 36.236842 | 106 | 0.641975 |
1b6eae44c16f4d17e7e0c0433d67e256e9744f88 | 2,041 | import org.junit.Ignore;
import org.junit.Test;
import org.logicng.datastructures.Assignment;
import org.logicng.datastructures.Tristate;
import org.logicng.formulas.Formula;
import org.logicng.formulas.FormulaFactory;
import org.logicng.formulas.Literal;
import org.logicng.formulas.Variable;
import org.logicng.solvers... | 34.016667 | 78 | 0.626654 |
18d55257836e471a8c0482c563575858c62ab5d7 | 1,063 | package org.dryomys.exceptions;
import org.dryomys.util.NumericUtils;
/**
*
* @author Gabriele Falace
*
*/
public class ExceptionFactory {
private ExceptionFactory() {
}
/**
* Creates an UnsupportedNumberTypeException based on the first object that
* is of an unsupported type, given an a... | 27.973684 | 97 | 0.61524 |
11edd2674f661796d181ea520a8bc3e0f160d828 | 3,388 | package coco.tx;
import geo.coco.log.LogUtil;
import java.util.LinkedList;
public class Queue<E> implements Transmitter<E> {
private final Receiver<E> mReceiver;
private final LinkedList<E> mQueue = new LinkedList<E>();
private final boolean mSingleThread;
private int mMaxSize = Integer.MAX_VAL... | 21.579618 | 76 | 0.615998 |
6671bca9da4a4978259db0e3ef2a5b9f0ae61f7b | 1,570 | package ge.edu.freeuni.sdp.iot.chat.bot.proxies;
import ge.edu.freeuni.sdp.iot.chat.bot.model.BathVentSwitch;
import org.json.JSONObject;
import javax.ws.rs.client.Entity;
import javax.ws.rs.core.Response;
/**
* Created by Koko on 11.07.2016.
*/
public class BathVentSwitchProxy extends ServiceProxy {
public Ba... | 29.074074 | 76 | 0.585987 |
eefcc956d0d6be0f370b8a83c5b9c3398e25a1ba | 4,521 | /* 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... | 47.589474 | 126 | 0.731475 |
6efcac02981634d3f8be66556f51d580d8b73759 | 1,738 | package de.hsw.jpa.beans;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Version;
@Entity
@Table(name = "T_ADDRESS")
public c... | 19.75 | 111 | 0.617376 |
92ed445b7a58a8280bcdd587f438f7ec5abf171d | 632 | package com.hirath.urbanbean;
public abstract class Message {
private Object bean;
private String tag;
private String description;
public Message(Object bean, String tag, String description) {
this.bean = bean;
this.tag = tag;
this.description = description;
}
public O... | 20.387097 | 84 | 0.591772 |
c2f1db33672b3e037d45808c9ba592728674fbc1 | 1,428 | /* ==========================================
* JGraphT : a free Java graph-theory library
* ==========================================
*
* Project Info: http://jgrapht.sourceforge.net/
* Project Creator: Barak Naveh (http://sourceforge.net/users/barak_naveh)
*
* (C) Copyright 2003-2008, by Barak Naveh and Con... | 27.461538 | 75 | 0.621849 |
77a07c0fa0a403790ec1913e882fdc622f76d008 | 345 | package com.x.edu.opencv;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
public class Activity18Morphology extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activi... | 24.642857 | 61 | 0.768116 |
ac88f6f259ea1bbf40b3f8d2e0c44bb254b7a255 | 821 | package edu.school.restaurantmanager.table;
import java.awt.Color;
// Цветовете, използвани при рисуването на масa
public class TableColorPalette
{
// Масата
public Color Top;
// Столът
Color Chair;
// Сянката от масата на стола
Color ChairShadow;
// Цветовете, когато масите за свободни и заети
stati... | 24.878788 | 73 | 0.679659 |
d66b6837a64a79f97068cf4fef6cf491d09d3237 | 15,526 | /*
*AVISO LEGAL
© Copyright
*Este programa esta protegido por la ley de derechos de autor.
*La reproduccion o distribucion ilicita de este programa o de cualquiera de
*sus partes esta penado por la ley con severas sanciones civiles y penales,
*y seran objeto de todas las sanciones legales que correspondan.
*Su... | 30.744554 | 164 | 0.779789 |
214d3a0f722c03972fdd5c9d258ac8759b0b0395 | 5,341 | package ru.kontur.vostok.hercules.health;
import ru.kontur.vostok.hercules.util.CollectionUtil;
import ru.kontur.vostok.hercules.util.metrics.GraphiteMetricsUtil;
import java.lang.management.GarbageCollectorMXBean;
import java.lang.management.ManagementFactory;
import java.lang.management.MemoryMXBean;
import java.la... | 46.850877 | 138 | 0.699494 |
692e082bf32553acfbe764d44431affe243d758a | 11,280 | package lcom.sourceModel;
import java.lang.reflect.Modifier;
import java.util.ArrayList;
import java.util.List;
import lcom.utils.models.Vertex;
import org.eclipse.jdt.core.dom.*;
import lcom.visitors.DirectAceessFieldVisitor;
import lcom.visitors.InstanceOfVisitor;
public class SM_Method extends SM_Sou... | 34.601227 | 103 | 0.602039 |
1fc036166baaa3d2d5b3e5f877663728232b73d3 | 365 | package abstractFactory;
public class Shop {
IFactory factoryCategory;
public Shop(IFactory category) {
this.factoryCategory = category;
}
public void createPackage() {
ICostume costume = this.factoryCategory.createCostume();
IWeapon weapon = this.factoryCategory.createWeapon();
cost... | 19.210526 | 59 | 0.69863 |
ddc46c7db21ae154cfdcd20a8e78833b30bd4ae8 | 1,037 | package com.example.android.miwok;
/**
* Created by sreejith on 12/2/17.
*/
public class word {
private String en_number;
private String mal_number;
private int audio_number;
private int image_number;
//class constructor 1
public word(String en, String mal, int audio_id, int image_id) {
... | 18.517857 | 68 | 0.616201 |
992d49a3d1830e621c54bfd34723e98d52030223 | 5,192 | /*
* Copyright (c) 2021 Moataz Abdelnasser
*
* 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, ... | 37.623188 | 100 | 0.693374 |
b1f6996f4cd4ca05db5964140f3bac9dcbe375f9 | 94 | package com.google.common.cache;
public interface Weigher<K, V> {
int weigh(K k, V v);
}
| 15.666667 | 32 | 0.670213 |
93ad4da0bec78a319c348e685aa7244abda66307 | 32,586 | /* 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... | 51.806041 | 192 | 0.718008 |
5dd601b90277482341e0d42f94bd2e11aa42d9ea | 13,039 | // Generated from io/streamthoughts/kafka/connect/filepulse/expression/parser/antlr4/ScELLexer.g4 by ANTLR 4.7.1
package io.streamthoughts.kafka.connect.filepulse.expression.parser.antlr4;
import org.antlr.v4.runtime.Lexer;
import org.antlr.v4.runtime.CharStream;
import org.antlr.v4.runtime.Token;
import org.antlr.v4.r... | 54.785714 | 112 | 0.632487 |
22935fe2c1c4a5f7af208835d9f441aba639656f | 221,256 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package android.support.v7.widget.helper;
import android.animation.Animator;
import android.animation.ValueAnimator;
import android.content.res.Resources;... | 41.387205 | 228 | 0.555013 |
629118111a8508ab5c00eda997c21443b60b1a2a | 8,369 | import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.Scanner;
public class Wejście
{
public static void parseInput(String nazwaPliku) throws FileNotFoundException
{
File plik = new File(nazwaPliku);
Scanner scanner = new Scanner(plik);
... | 40.043062 | 135 | 0.492293 |
9002868726e6942cde052fe63d764dfcdb394775 | 1,287 | /*
* Copyright 2018-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 32.175 | 98 | 0.756799 |
e6ec07c2c07e5bb03338ee5fcb390872e8093cb8 | 555 | package methods;
import java.util.Scanner;
public class NxNMatrix {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int input = Integer.parseInt(scanner.nextLine());
printMatrix(input);
}
private static void printMatrix(int input... | 21.346154 | 58 | 0.520721 |
fb17a87355c90e11cdf1da7226e91f928b1fc19c | 2,089 | /*
* This file was automatically generated by EvoSuite
* Sat Dec 07 15:41:17 GMT 2019
*/
package View.ViewModel;
import org.junit.Test;
import static org.junit.Assert.*;
import View.ViewModel.TimeInterval;
import java.time.LocalDateTime;
import java.time.ZoneOffset;
import org.evosuite.runtime.EvoRunner;
import or... | 39.415094 | 177 | 0.762087 |
5d0808aa88ec6b38c84c49aabad55d53ef842461 | 3,633 | /*
* 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 ... | 38.648936 | 146 | 0.803193 |
82dd1149260ece1f0b954caebdad8250014e7918 | 368 | package person.pluto;
import java.security.Key;
import java.util.Base64;
import person.pluto.natcross2.utils.AESUtil;
public class TestMain {
public static void main(String[] args) throws Exception {
Key createKey = AESUtil.createKey(128);
System.out.println(Base64.getEncoder().encode... | 23 | 88 | 0.69837 |
690821b1e0bd3aacb7df28adedc46adcd51a062a | 792 | package io.choerodon.devops.domain.application.convertor;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Component;
import io.choerodon.core.convertor.ConvertorI;
import io.choerodon.devops.api.dto.AuthorDTO;
import io.choerodon.devops.infra.dataobject.gitlab.AuthorDO;
@Component
p... | 27.310345 | 81 | 0.744949 |
9a0a53f1d7b328340eabd280a207bf07e0aa3fa6 | 756 | package com.ltud.food.Dialog;
import android.app.Dialog;
import android.content.Context;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.WindowManager;
import androidx.annotation.NonNull;
import com.ltud.food.R;
public class CustomProgressDialog extends... | 28 | 79 | 0.752646 |
3ee91a6ff915facd0a8fac3be63c060b799d79f0 | 4,652 | /*
* Copyright 2011 JBoss 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 to i... | 28.89441 | 90 | 0.670894 |
baf3fb9c2c9d11a343e3f786b4b1927741492ff8 | 8,015 | package com.octo.android.robospice.sample.core;
import java.util.Collections;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import roboguice.util.temp.Ln;
import android.annotation.TargetApi;
import android.app.Notification;
import android.app.PendingIntent;
import android.content.Intent;
i... | 51.050955 | 168 | 0.75471 |
ce76ea61653a166f5ea4663acae8ed6b0c8b6c00 | 6,300 | package com.codahale.metrics.sigar;
import java.util.ArrayList;
import java.util.List;
import org.hyperic.sigar.CpuInfo;
import org.hyperic.sigar.CpuPerc;
import org.hyperic.sigar.Sigar;
import org.hyperic.sigar.SigarException;
import com.codahale.metrics.Gauge;
import com.codahale.metrics.MetricRegistry;
import com... | 29.85782 | 115 | 0.543492 |
5dc54ac61cd7a22b8b56fb44ad22bdb94efa7bae | 320 | package system.db.dao.vo;
/**
*
* @author wangchunzi
*/
public class CID {
public final Class c;
public final String id;
public CID(Class c, String id) {
this.c = c;
this.id = id;
}
public CID(Class c) {
this.c = c;
this.id = null;
}
}
| 14.545455 | 37 | 0.48125 |
76c5f34aa1445fcd6b2c119adca01561bb8ff61b | 9,900 | /*
* Copyright The OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 44.394619 | 103 | 0.742222 |
e2291b59335a1d624825e3ab9483450e223fde84 | 342 | package com.gzs.learn.algorithm.dp;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* 背包问题dp数组条目
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class KnapsackItem {
// 当前节点
private BagItem bagItem;
// 前置节点
private KnapsackItem prev;
// 当前dp值
... | 16.285714 | 35 | 0.725146 |
0150e196fea9f73842816a731d3c13eb502a43e7 | 542 | package com.github.junitrunner;
import org.junit.runner.Description;
public abstract class Task {
protected Description description;
private boolean ignored;
public final Description describe() {
if (description == null) {
description = createDescription();
}
... | 20.074074 | 53 | 0.607011 |
9dbc77c636df0779cbde6df13092ec3441d8de5a | 10,202 | /*
* Copyright 2000-2012 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... | 38.353383 | 130 | 0.727602 |
17bc57d67b13960ef0e37d87cec48a04b04d62c5 | 1,261 | package name.legkodymov.order.management.controller;
import name.legkodymov.order.management.model.Product;
import name.legkodymov.order.management.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@RestCont... | 30.756098 | 87 | 0.740682 |
3b7e6c1e23ee56ccb3d20f096998c2a35dc2bd27 | 2,037 | /*
* 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.74 | 115 | 0.692685 |
2c363f48d5ac3772276c32434b833cb3322f7516 | 1,033 | package com.simonalong.butterfly.worker.zookeeper;
import com.simonalong.butterfly.sequence.ButterflyConfig;
import com.simonalong.butterfly.sequence.WorkerLoader;
import com.simonalong.butterfly.sequence.spi.WorkerIdHandler;
/**
* @author shizi
* @since 2020/4/25 10:03 AM
*/
public class ZkWorkerLoader implements... | 28.694444 | 93 | 0.704743 |
a2bc11cc5d313d6d9e60f1e40cdefed56dc8a7ee | 863 | package assil.algorithms.dijkstra;
/**
* c
* @author Alan da Silva Ferreira
*
* Classe copiada e adaptada a partir do exemplo:
* http://www.vogella.com/tutorials/JavaAlgorithmsDijkstra/article.html
* push test
* @param <V>
*/
public class Edge<V extends Vertex> {
private final String id;
privat... | 19.177778 | 72 | 0.653534 |
23a345c64b86beb8f746df3f9cd514cfa1a399fc | 133 | package com.imaidd.citypicker.style.citypickerview.widget;
public interface CanShow {
void hide();
boolean isShow();
}
| 16.625 | 58 | 0.706767 |
e1ce5fa566905a4bf0bc28eb7a716d63fd207816 | 5,823 | package wolfboyft.magicalmages.init;
import net.minecraft.client.Minecraft;
import net.minecraft.client.resources.model.ModelResourceLocation;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.Item;
import net.minecraft.item.Item.ToolMaterial;
import net.minecraft.item.ItemSt... | 49.347458 | 114 | 0.752877 |
f88c9db76704aaa677b20e9bb6d32ded09ff27de | 3,827 | /*
* Copyright 2013 JBoss 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 to i... | 36.103774 | 148 | 0.697936 |
5c3c7ef2b7130073e1fb15f536f59bef70e48f94 | 2,549 | package ee.ttu.itx8530.fullprofile.vpn.tap;
import java.net.NetworkInterface;
import java.net.SocketException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Enumeration;
import java.util.List;
import java.util.Random;
import java.util.stream.Collectors;
import org.apache.log4j.Logger;
/*... | 31.8625 | 113 | 0.651236 |
9522042c8847fccaef97baf6f73ad01a73f268bb | 1,796 | /*
* Copyright 2021 Whilein
*
* 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.0625 | 82 | 0.671492 |
1ff12c9f6e6894b5ac5621ec1d13191fe47a90d2 | 8,050 | package com.stewhouse.gresturlconnection;
import android.os.AsyncTask;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.net.URLConnection;
import java.util.HashMap;
import javax.net.ssl.HttpsURLConnection... | 39.655172 | 184 | 0.601366 |
112c73c5e9ac9ab2b1d6907c5b04da780f68f298 | 3,007 | /*
* Class: EmotionSaveFile
*
* Version: 1.0
*
* Date: October 3rd, 2018
*
* Description:
* Class that handles all interactions with the android file system, both reading and writing
* the record data.
* Rationale:
* This class allows others to not have to deal with the actual method in which ... | 36.228916 | 98 | 0.688726 |
897e693bd3c30e651475658527ca9fd9d0083c94 | 1,507 | package speech.types ;
import com4j.*;
/**
*/
public enum DISPID_SpeechObjectToken implements ComEnum {
/**
* <p>
* The value of this constant is 1
* </p>
*/
DISPID_SOTId(1),
/**
* <p>
* The value of this constant is 2
* </p>
*/
DISPID_SOTDataKey(2),
/**
* <p>
* The value of ... | 16.380435 | 59 | 0.548109 |
dce530791550b2a44fae67080a514ee04e14fa49 | 1,855 | /**
* Copyright Ambud Sharma
*
* 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... | 33.125 | 105 | 0.771429 |
f80617e57ed6898fd47184c3c8aab68bfea7b3c6 | 2,381 | /*
* 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... | 47.62 | 141 | 0.785384 |
95f94397be8c7093f9cfb75f45f211b491ce0faa | 1,022 | package sonar.calculator.mod.common.entities;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.projectile.EntityThrowable;
import net.minecraft.util.EnumParticleTypes;
import net.minecraft.util.math.RayTraceResult;
import net.minecraft.world.World;
import javax.annotation.Nonnull;
public cla... | 27.621622 | 150 | 0.740705 |
a6e6a986dd25d824e99bec2ae1d6637c8812cebc | 563 | package org.ebookdroid.fb2droid.codec;
import android.graphics.RectF;
public abstract class AbstractFB2LineElement implements FB2LineElement {
public final int height;
public float width;
public AbstractFB2LineElement(final float width, final int height) {
this.height = height;
this.widt... | 23.458333 | 72 | 0.692718 |
63a8c0ec2d5f0e993ce28c25a028fe5eb9d600d2 | 426 | package com.gsnathan.pdfviewer;
import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;
@Dao
public interface SavedLocationDao {
@Query("SELECT pageNumber FROM SavedLocation WHERE hash = :hash")
Integer findSavedPage(String hash);
... | 26.625 | 70 | 0.758216 |
eac259f6ad571d0702a7a7eada65918e0438c5b1 | 2,929 | package com.wabradshaw.palettest.visualisation;
import com.wabradshaw.palettest.analysis.PaletteDistribution;
import com.wabradshaw.palettest.analysis.Palettester;
import com.wabradshaw.palettest.analysis.Tone;
import com.wabradshaw.palettest.palettes.StandardPalettes;
import com.wabradshaw.palettest.utils.Image... | 38.038961 | 115 | 0.719358 |
11d7ce28a7def4cd78f0667cd355127515308cee | 373 | package algorithm;
import datastructure.MDP;
import datastructure.Policy;
import datastructure.Utility;
import javax.rmi.CORBA.Util;
public class PolicyIteration {
private PolicyEvaluation evaluation;
public PolicyIteration(PolicyEvaluation eval) {
this.evaluation = eval;
}
public Policy it... | 17.761905 | 51 | 0.726542 |
78fd286ef55a6f757e51542fe4c86bdb0101eb04 | 2,457 | /**
*
*/
package io.sinistral.proteus.server.security;
import io.undertow.security.idm.Account;
import io.undertow.security.idm.Credential;
import io.undertow.security.idm.IdentityManager;
import io.undertow.security.idm.PasswordCredential;
import java.security.Principal;
import java.util.Arrays;
import java.util.C... | 22.541284 | 87 | 0.606024 |
54f81dd4fecc894caabe2351181333f20f32bbd1 | 514 | package org.mym.featuredshowcase.advanced.layoutdrawer;
import android.content.Context;
import android.graphics.Bitmap;
public interface BitmapCreator {
/**
* Get the bitmap for display, create it if needed.
*
* @param context the context object for creating bitmap object.
* @return Returns a ... | 27.052632 | 90 | 0.690661 |
e1758471110ec25dec61f50830eb531d8119bfe0 | 416 | package com._7aske.grain.security.exception;
public class CredentialsExpiredException extends GrainSecurityException {
public CredentialsExpiredException() {
}
public CredentialsExpiredException(Throwable cause) {
super(cause);
}
public CredentialsExpiredException(String message) {
super(message);
}
publ... | 21.894737 | 73 | 0.793269 |
d30000073f46570a06bc9a77f9d4d0aedc43a887 | 487 | package com.opdar.gulosity.serializable;
import java.nio.ByteBuffer;
/**
* Created by 俊帆 on 2016/10/12.
*/
public class YearSerializable extends JavaSerializable<String> {
public YearSerializable(int type) {
super(type);
}
public String getValue(int meta, ByteBuffer buffer) {
final int ... | 22.136364 | 64 | 0.595483 |
4e1ba5f339dacd65dcf95c04c2ec51a4594c14a1 | 6,578 | package com.myrunning.leaderboard.web;
/**
* File: ListControlPointsController.java
* Author: Joshua Forester
* Date: 2009/08/20
* Description: Controller object for listing Control Points.
**/
import java.util.List;
import java.util.ArrayList;
import javax.servlet.http.HttpServletRequest;
imp... | 38.923077 | 195 | 0.753268 |
522f4d624cc8ea628b5999ef58aa5730dd39f0a6 | 192 | package br.com.anteros.sms.integration.sdk.comtele.models;
public class SendContextMessageResource {
public String Sender;
public String Receivers;
public String ContextRuleName;
}
| 24 | 59 | 0.791667 |
31c8cba7b6ba808fba477c6a07de9ff88d4d0437 | 2,103 | package donjinkrawler.observer;
import donjinkrawler.Client;
import donjinkrawler.Player;
import krawlercommon.PlayerData;
import krawlercommon.enemies.Enemy;
import krawlercommon.enemies.big.BigChicken;
import krawlercommon.enemies.small.SmallChicken;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.... | 30.478261 | 73 | 0.695673 |
03505da302b9feff4b5395a31fabba251b4eceb8 | 3,524 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 36.708333 | 115 | 0.740636 |
ac43ccfe57256eea93846f21b2b2c66ed4e9c458 | 9,631 | package cloneproject.Instagram.domain.feed.controller;
import cloneproject.Instagram.domain.feed.dto.PostUploadResponse;
import cloneproject.Instagram.domain.feed.dto.PostDto;
import cloneproject.Instagram.domain.feed.dto.PostResponse;
import cloneproject.Instagram.domain.feed.dto.PostUploadRequest;
import cloneprojec... | 39.962656 | 115 | 0.712491 |
6d1abdee6e37c79148591859456f7595ab3d8579 | 2,963 | package com.ecbpenguin.saml.client.utils;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.security.cert.CertificateException;
import java.security.cert.CertificateFactory;
import java.security.cert.X509Certificate;
import java.util.Base64;
import java.util.List;
import org.opensaml.saml.s... | 32.56044 | 110 | 0.750928 |
7492d5fc688ed22820a7a8639a3af5ba5dfd2543 | 1,797 | package com.octopus.isp.actions.websocket;
import com.octopus.utils.xml.XMLMakeup;
import com.octopus.utils.xml.XMLObject;
import com.octopus.utils.xml.auto.ResultCheck;
import com.octopus.utils.xml.auto.XMLDoObject;
import com.octopus.utils.xml.auto.XMLParameter;
import org.apache.commons.logging.Log;
import org.apac... | 34.557692 | 140 | 0.752922 |
2366838cb7c9f4690a814cffce4e03b59ed2c97a | 6,440 | package com.deeal.activity;
import com.deeal.fragment.Fragment_order_all;
import com.deeal.fragment.Fragment_order_assess;
import com.deeal.fragment.Fragment_order_receive;
import com.deeal.fragment.Fragment_order_unpay;
import com.deeal.fragment.Fragment_order_unship;
import com.example.deeal.R;
import android.annot... | 26.833333 | 87 | 0.747981 |
981554f5464f5e0fecc602f96ace3fd6263fbeb9 | 1,564 | package org.pentaho.pac.common.config;
import java.io.Serializable;
public class PdiConfig implements IPdiConfig, Serializable {
String repositoryName;
String repositoryType;
String repositoryUserId;
String repositoryPassword;
String repositoryXmlFile;
public PdiConfig() {
}
public PdiConf... | 26.965517 | 64 | 0.762788 |
428afdfc7cdb4499dbee2c29805e0a616edfd0ff | 1,084 | package com.babylonhealth.lit.hl7_java.codes;
import com.babylonhealth.lit.hl7.CARE_PLAN_ACTIVITY_KIND;
public interface CarePlanActivityKind {
public static final CARE_PLAN_ACTIVITY_KIND APPOINTMENT =
CARE_PLAN_ACTIVITY_KIND.APPOINTMENT$.MODULE$;
public static final CARE_PLAN_ACTIVITY_KIND COMMUNICATIONREQ... | 49.272727 | 91 | 0.829336 |
7168dbb89a035e174a7750ee0944164d0faa923f | 23,405 | /*
* Copyright (c) 2018. Service Prototyping Lab, ZHAW
* 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/... | 49.904051 | 186 | 0.647853 |
dccf5be5a3103577a9f62cb1233ea83ea6c549be | 2,695 | package org.mikolamb.framework.sub.taskmachine.machine;
import org.apache.commons.lang3.StringUtils;
import org.mikolamb.framework.common.exception.MikoLambEventException;
import org.mikolamb.framework.sub.taskmachine.container.MikoLambTaskMachineContainer;
import org.mikolamb.framework.sub.taskmachine.machine.functio... | 40.833333 | 205 | 0.743599 |
63ce9d53b40961ca4e9eeb4e94adbb0787cb6538 | 2,208 | package it.unicam.dmr.doit.controller.progetto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMappin... | 33.969231 | 103 | 0.782156 |
f95d2b6f1a1404c69265846b3caa553b3c8906bf | 1,073 | package demo.netty.pipeline.channel;
import demo.netty.pipeline.util.AttributeMap;
/**
* 通道的顶层定义,表示一次请求事件的传递。
*
* 通道具有的属性:
*
* 通道的作用:
*
* 入站请求的示例:
* <pre>
* Channel channel = new DefaultChannel();
* channel.invokeInbound();
* Object result = channelhannel.attr(AttributeKey.valueOf("result")).get();
... | 14.306667 | 78 | 0.59739 |
5eb947f9532cd560400797db43dbd46c313e538a | 5,482 | /*******************************************************************************
* Copyright (c) 2017, 2021 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
* distribution and is available at https://w... | 27.547739 | 135 | 0.702846 |
eab49b5ef0889d73b4f627f64fa4470b7341ed24 | 1,918 | package com.application.fivnews.data.remote;
import com.application.fivnews.data.NewspaperLookupDataSource;
import com.application.fivnews.data.model.NewspaperInfo;
import com.application.fivnews.data.remote.services.RetrofitServiceRx;
import java.util.List;
import javax.inject.Singleton;
import io.reactivex.Observ... | 30.444444 | 115 | 0.627216 |
a3f7124e310c3446821b381088e71e21e598b26e | 333 | package com.roily.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.roily.entity.Department;
import org.springframework.stereotype.Repository;
/**
* descripte:
*
* @author: RoilyFish
* @date: 2022/3/10
*/
@Repository
public interface DepartmentMapper extends BaseMapper<Depar... | 20.8125 | 67 | 0.738739 |
53e24f750ae80e27d73582332283b669d64c3858 | 966 | package eu.makeitapp.meetup.adapter;
import android.support.v7.widget.CardView;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import eu.makeitapp.meetup.R;
/**
* ${PROJECT}
* <p/>
* Created by Federico Oldrini (federico.o... | 30.1875 | 85 | 0.749482 |
6504e3c29e90c6c41eb6cb6ebcc296096cb9085c | 965 | package net.dongliu.apk.parser.struct;
/**
* android system file.
*
* @author dongiu
*/
public class AndroidConstants {
public static final String RESOURCE_FILE = "resources.arsc";
public static final String MANIFEST_FILE = "AndroidManifest.xml";
public static final String DEX_FILE = "classes.dex";
... | 22.97619 | 69 | 0.678756 |
9a57458124db0bc04c4b09ba1e2da4ef51c2922e | 481 | package io.github.thinkframework.generator;
import io.github.thinkframework.generator.boot.EnableGenerator;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* 命令行运行类
*
* @author hdhxby
*/
@EnableGenerator
@SpringBootApplication
public clas... | 24.05 | 68 | 0.790021 |
0cf4cff47ba89a97fc26f68705258ff50ad2c377 | 1,512 | /**
* 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.resources.v2018_02_01;
import rx.Observable;
imp... | 37.8 | 122 | 0.749339 |
99fd64581b66bc3d833d6aafd97b55e9c42d9c58 | 9,494 | /*
* Copyright 2018 Cosmo Software
*/
package org.webrtc.kite.config.paas;
import io.cosmosoftware.kite.report.KiteLogger;
import org.openqa.selenium.Platform;
import org.webrtc.kite.Utils;
import org.webrtc.kite.config.client.Client;
import javax.json.Json;
import javax.json.JsonObject;
import javax.json.JsonRead... | 26.010959 | 113 | 0.592163 |
9c14c9e8862e92cd7ce5eb9e03f12a08da8baeee | 560 | package backend.commands;
import backend.BackendController;
import backend.commands.abstracts.SimpleMapCommand;
import backend.parser.Input;
/**
* @author nikita set the size of the pen. Supports unlimited parameters
*/
public class SetPenSizeCommand extends SimpleMapCommand {
public SetPenSizeCommand(Input info,... | 25.454545 | 99 | 0.789286 |
fe8943504825f22c01f7e1b62bf45d70c1479ee4 | 213 | import java.util.*;
public class A5qno8 {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
double d=sc.nextDouble();
double d1=Double.MIN_VALUE-d;
System.out.println(d1);
}
}
| 19.363636 | 41 | 0.699531 |
a06253d02780a5a7a70376f9b5b8ad85752a5aea | 2,042 | /*
* Copyright 2006 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
*
* Unless required by appl... | 28.760563 | 113 | 0.699314 |
e0b4ed1967b107f8c60ddb6d96d1f384ee7f8280 | 1,628 | package com.aerse.mockfs;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.ReadableByteChannel;
import java.nio.channels.WritableByteChannel;
public class FailingByteChannelCallback implements ByteChannelCallback {
private final int failAfterBytes;
private int processedBytes = 0;
... | 30.148148 | 85 | 0.743857 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.