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 |
|---|---|---|---|---|---|
4b82bfb2c5483c5f43a6e700c23d347649ce0fe7 | 347 | package com.github.cbuschka.zipdiff.io;
import java.io.FilterInputStream;
import java.io.IOException;
import java.io.InputStream;
public class UnclosableInputStream extends FilterInputStream
{
public UnclosableInputStream(InputStream in)
{
super(in);
}
@Override
public void close() throws IOException
{
// ... | 17.35 | 60 | 0.78098 |
146c0336844db0c46056f623b19cae801a073ac2 | 211 | package net.messagevortex.transport.imap;
/**
* Created by Martin on 07.04.2018.
*/
public enum ImapConnectionState {
CONNECTION_NOT_AUTHENTICATED,
CONNECTION_AUTHENTICATED,
CONNECTION_SELECTED
}
| 19.181818 | 41 | 0.763033 |
0106ebe8b66b6ccf3ffa57dcc4e3a9159f5e8dce | 28,308 | /*******************************************************************************
* Copyright (c) 1998, 2015 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
... | 37.345646 | 185 | 0.653314 |
107dce2c6b956317faa19e1cd50b245783f955cd | 7,185 | package io.smallrye.openapi.api.models;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.microprofile.openapi.models.Components;
import org.eclipse.microprofile.openapi.models.ExternalDocumentation;
import org.eclipse.microprofile.openapi.models.OpenAPI;
import org.eclipse.microprofile.openapi.mo... | 29.813278 | 155 | 0.669868 |
510995f4adfab61e8f0dd66785eeb74ce2b32d3e | 1,556 | package icfpc2020;
public class MessageImpl implements Message {
private final long[] message;
private final int length;
public MessageImpl(String s) {
this(s.length());
for (int i = 0; i < length; i++) {
if (s.charAt(i) == '1') {
setValue(i, 1);
}
... | 27.298246 | 76 | 0.556555 |
1aad50b4522d0213d36c79b2679f73b2d6e169bf | 2,673 | package com.xinqihd.sns.gameserver.admin.user;
import java.awt.Point;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import java.util.Collection;
import javax.swing.JButton;
import javax.swing.JDialog;
import net.miginfocom.swing.MigLayout;
import org.jdesktop.s... | 26.73 | 82 | 0.697344 |
d58a70b7584f38fc8148dae6a09a7eefb18623e8 | 295 | package com.bazaarvoice.commons.data.dao.audit;
import com.bazaarvoice.commons.data.model.AuditAction;
import com.bazaarvoice.commons.data.model.User;
public interface GenericAuditActionCriteria<U extends User> extends AuditActionCriteria<AuditAction<U>, U, GenericAuditActionCriteria<U>> {
}
| 36.875 | 139 | 0.833898 |
85660818f9ced5d44eefc7ea243340a48b4bb440 | 1,017 | package com.box.androidsdk.content;
public class BoxConstants {
public static final String TAG = "BoxContentSdk";
public static final String BASE_URI = "https://api.box.com/2.0";
public static final String BASE_UPLOAD_URI = "https://upload.box.com/api/2.0";
public static final String OAUTH_BASE_URI =... | 40.68 | 82 | 0.754179 |
b90d4ee87c9778e50d59af95ea41622017c239cc | 705 | package com.epam.training.miservices.services.drugs.config;
import com.epam.training.miservices.services.drugs.model.Drug;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.rest.core.config.RepositoryRestConfiguration;
import org.springframework.data.rest.webmvc.config.Reposi... | 39.166667 | 109 | 0.811348 |
9aeba409332a51bc2d60d7b060413f07d515cfa8 | 19,195 | /*
* Copyright (c) 2002-2015 JGoodies Software GmbH. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* o Redistributions of source code must retain the above copyright notice,
* ... | 38.856275 | 100 | 0.643709 |
0a35792cae86234db530b86c64bba83155e649ca | 779 | package org.spoofax.jsglr2.stack;
import org.metaborg.parsetable.states.IState;
public abstract class AbstractStackNode<ParseForest, StackNode extends IStackNode> implements IStackNode {
public final IState state;
public AbstractStackNode(IState state) {
this.state = state;
}
public IState ... | 27.821429 | 106 | 0.727856 |
af06a50f2f174fe8a7114c59e32ece2889365ccc | 3,484 | /*
* Copyright 2017 Huawei Technologies Co., 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 applicable... | 20.738095 | 75 | 0.582377 |
83d2a5b011628fe1e1b708285957ed7052649473 | 3,492 | // Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.theoryinpractice.testng.model;
import com.intellij.codeInsight.AnnotationUtil;
import com.intellij.execution.configurations.ConfigurationUtil;
import com.intellij.ide... | 39.681818 | 140 | 0.711913 |
76930e2309d849aa2e265c818b369973144593b0 | 8,235 | /*
* 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 ... | 32.94 | 79 | 0.639951 |
398e2fbf562d9eeab9f63edbfa5e50aee3654f82 | 1,085 | package org.jtmc.core.signal.digital.sampler;
import org.jtmc.core.signal.Signal;
import org.jtmc.core.signal.Signal.DataPoint;
import org.jtmc.core.signal.digital.BinarySignal;
import org.jtmc.core.signal.sampler.Sampler;
/**
* Threshold converts an analog signal to a binary signal using the given
* threshold.
*/... | 26.463415 | 73 | 0.694009 |
35587589ef2022a4ee3edf3b8ad3e5ab4f32a173 | 2,869 | package com.myezopen.myezopen.adapter;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.provider.MediaStore;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.Vi... | 37.75 | 150 | 0.719763 |
08c7648e4c6d77d088fe2fa0c9d7e763921b44a5 | 2,571 | package com.github.puhiayang.handler.proxy;
import com.github.puhiayang.bean.ClientRequest;
import com.github.puhiayang.handler.response.SocksResponseHandler;
import io.netty.bootstrap.Bootstrap;
import io.netty.channel.*;
import io.netty.util.Attribute;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import... | 37.26087 | 106 | 0.630883 |
caf4ceef20629154ec31c4e270b8e849cf3c3ba9 | 38,276 | package exm.stc.ic.refcount;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import org.apache.log4j... | 34.482883 | 87 | 0.635359 |
24bc488be97a334183612fbaa67888c952fae2bb | 639 | package com.alicyu.springcloud;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
/**
* @author zph
* @cl... | 29.045455 | 74 | 0.810642 |
d6ed97baaaeafa838e747a5fa83d879af9706942 | 4,808 | package com.maxmind.geoip2.model;
import com.github.tomakehurst.wiremock.junit.WireMockRule;
import com.maxmind.geoip2.WebServiceClient;
import com.maxmind.geoip2.exception.GeoIp2Exception;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import java.io.IOException;
import java.net.InetAddress;
... | 37.5625 | 120 | 0.603369 |
0fe3d2c48ce526d271e886212cf93960efc806d6 | 4,850 | package com.sequenceiq.it.verification;
import static org.testng.Assert.fail;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.regex.Pattern;
import java.util.stream.Collectors;
import org.apac... | 31.290323 | 138 | 0.602268 |
6c559ead6aae8aac56aac18d07da7a7d0c8080f5 | 308 | /**
* iBizSys 5.0 用户自定义代码
* http://www.ibizsys.net
*/
package net.ibizsys.psrt.srv.common.demodel.datasyncout2.dataquery;
/**
* 实体数据查询 [DEFAULT]模型
*/
public class DataSyncOut2DefaultDQModel extends DataSyncOut2DefaultDQModelBase {
public DataSyncOut2DefaultDQModel() {
super();
}
} | 19.25 | 80 | 0.704545 |
181a3aa0ea8ced5093a43ca3afd813e72cb2b6d1 | 8,876 | package com.bee.scheduler.core.job;
import com.alibaba.dubbo.config.ApplicationConfig;
import com.alibaba.dubbo.config.ReferenceConfig;
import com.alibaba.dubbo.config.RegistryConfig;
import com.alibaba.dubbo.config.utils.ReferenceConfigCache;
import com.alibaba.dubbo.config.utils.ReferenceConfigCache.KeyGenerator;
im... | 40.903226 | 131 | 0.637675 |
9d9a105aec9d0d9e966e9b6b330d10c3032a0e37 | 6,474 | package com.shoes.scarecrow.web.controller;
import com.shoes.scarecrow.persistence.domain.Brand;
import com.shoes.scarecrow.persistence.domain.BrandCondition;
import com.shoes.scarecrow.persistence.service.BrandService;
import org.apache.log4j.Logger;
import org.codehaus.jackson.map.ObjectMapper;
import org.springfram... | 37.639535 | 122 | 0.624344 |
e3ddcdd77af35515060d1b96485017fb7ce9c569 | 1,192 | public void solve(int testNumber, ScanReader in, PrintWriter out) {
int n = in.scanInt();
c = new int[n + 1][3];
dp = new long[n + 1][6];
for (int i = 1; i <= n; i++) c[i][0] = in.scanInt();
for (int i = 1; i <= n; i++) c[i][1] = in.scanInt();
for (int i = 1; i <= n; i++) c[i][2] = in.scanInt();... | 26.488889 | 67 | 0.438758 |
302a545f06ed72be7345f834130867e5e90a08a6 | 14,819 | /*
* Copyright 2012-2015, 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 a... | 49.396667 | 191 | 0.738241 |
f47acf05832dc81a5f0b6b7eacdc31f233f33e6a | 672 | package org.light4j.thread.control;
/**
* 线程yield()方法使用测试
*
* @author longjiazuo
*
*/
public class YieldTest extends Thread {
public YieldTest(String name) {
super(name);
}
@Override
public void run() {
for (int i = 0; i < 50; i++) {
System.out.println(getName() + " " + i);
if (i... | 19.2 | 44 | 0.596726 |
ab55e394cde2e67b463d6a3a7348fab6facc295d | 359 | /**
* Agent which have location as Double 2D must extend this
* */
package sim.engine;
import sim.util.Int2D;
/** include index and set,get location method with Double2D
*
* */
public abstract class AgentInt
{
public Int2D loc;
public int index;
public abstract Int2D getLocation();
public abstract v... | 19.944444 | 59 | 0.707521 |
f720045d51b145b77be3ca5c25e25e0d6393cf45 | 912 | // CS 143, Win 2015 ms rs
// p3 Assassin
//
// AssinNode.java Instructor-provided support class.
// You must not modify this code to work with your own linked list class!
/** Each AssassinNode object represents a single node in a linked list
for a game of Assassin. */
public class AssassinNode {
public Strin... | 33.777778 | 80 | 0.653509 |
94f029a581c1a0576a1ee2ceed315f01372cdadf | 437 | package com.legyver.fenxlib.core.api.config;
/**
* Comparable interface for services to allow them to be run in order
* @param <T> the type of the service
*/
public interface OrderedService<T extends OrderedService> extends Comparable<T> {
default int compareTo(T o) {
return this.order() - o.order();
}
/**
... | 23 | 81 | 0.697941 |
7d3de61cf0b4fe37ea6602d3140237ed376ba1a6 | 5,806 | package dderrien.common.dao;
import static com.googlecode.objectify.ObjectifyService.ofy;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.logging.Logger;
import java.util.regex.Pattern;
import org.apache.commons.lang3.StringUtils;
import com.googlecode.objectify.Key;
import c... | 33.177143 | 153 | 0.557354 |
1c42bcba0b825ce91e959b60dbcfa9c40895aba3 | 1,108 | package com.saubiette.proyecto.vistas;
import com.saubiette.vistas.componentes.Menu;
import com.vaadin.flow.component.dependency.CssImport;
import com.vaadin.flow.component.html.Div;
import com.vaadin.flow.component.html.Span;
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
import com.vaadin.flow.router... | 29.157895 | 144 | 0.73917 |
d22b94ace0e3445aa0eb4071fc01ebfe7e22e328 | 311 | package com.fITsummer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class FITsummerApplication {
public static void main(String[] args) {
SpringApplication.run(FITsummerApplication.class, args);
}
}
| 23.923077 | 68 | 0.826367 |
5e4048ceab32fee8d86a90dfe5a04e78703e206b | 1,379 | package org.reldb.rel.v0.storage.catalog;
import org.reldb.rel.exceptions.ExceptionSemantic;
import org.reldb.rel.v0.generator.SelectAttributes;
import org.reldb.rel.v0.languages.tutoriald.Keywords;
import org.reldb.rel.v0.storage.RelDatabase;
import org.reldb.rel.v0.storage.relvars.RelvarGlobal;
import org.reldb.rel.... | 32.069767 | 105 | 0.788978 |
2a73dffffad70c357384594068a56f21195d1195 | 164 | package scene.graph;
public class SceneNode extends Node {
public SceneNode()
{
super(null);
}
@Override
public Node getParent()
{
return this;
}
}
| 10.25 | 37 | 0.664634 |
4abe1b171cbb77befdbdc1c5b74c0e424b3f97f6 | 1,325 | public class DCP029RunningLengthEncodeDecode {
public static String encode(String s) {
if (s.length() == 0) {
return "";
}
String result = "";
int count = 1;
char currentChar = s.charAt(0);
for (int i = 1; i < s.length(); i++) {
char ch = s.charAt(i);
if (ch == currentChar... | 24.090909 | 81 | 0.518491 |
5429f27f419bfc7465eb7266666a19f4ada7acca | 3,933 | package com.morange.shiro.security.entity;
import javax.persistence.*;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
/**
* @author : zhenyun.su
* @since : 2019/1/24
* @Comment: 自定义全局异常
name 权限名称,
permission 授权标识,
text 菜单界面显示内容,
heading true 目录,false 使用链接的菜单,
link... | 17.958904 | 67 | 0.645055 |
2bcb57f4f84e18814df7697ecf2ef5dd46e56600 | 3,391 | /*
Derby - Class org.apache.derby.impl.store.access.btree.index.B2IRowLocking2
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 th... | 34.252525 | 79 | 0.647302 |
fd9a138df8a5256b4f6a3f2c7b4bece8686df69b | 1,784 | package pro.gravit.simplecabinet.web.model;
import javax.persistence.*;
import java.time.LocalDateTime;
@Entity
@Table(name = "orders")
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
public abstract class Order {
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "orders_generator")... | 22.024691 | 98 | 0.653027 |
ddbad89cf19e3b291b2107425feeac8c451ae38b | 2,088 | package org.zstack.header.network.service;
import org.zstack.header.network.l3.L3NetworkEO;
import org.zstack.header.network.l3.L3NetworkVO;
import org.zstack.header.search.SqlTrigger;
import org.zstack.header.search.TriggerIndex;
import org.zstack.header.vo.ForeignKey;
import org.zstack.header.vo.ForeignKey.Re... | 29.408451 | 113 | 0.75 |
6ad23fe825d2dbedf10a55fefa55731a5cf2df50 | 12,115 | /*
* Copyright 2006-2016 Edward Smith
*
* 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... | 26.222944 | 99 | 0.713578 |
a082f57a33654675c7685a5006a2fb07fcdd4ee6 | 7,419 | /*
* Copyright (c) 2008-2009, Matthias Mann
*
* 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... | 26.308511 | 80 | 0.700094 |
5aabbcc53072dc8a2234194ec55a954d929bbb6d | 1,835 | package com.lxk.jdk.http;
import com.google.common.collect.Maps;
import com.google.common.util.concurrent.ThreadFactoryBuilder;
import com.lxk.tool.util.HttpUtils;
import org.junit.Test;
import java.io.IOException;
import java.util.Map;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent... | 30.081967 | 206 | 0.671935 |
9f0cdfba0767c24aba08dcb62101854b5bb7117c | 10,325 | package com.kehua.energy.monitor.app.business.local.setting.pattern.patternModelChild;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.tex... | 34.76431 | 195 | 0.600291 |
61534be8df32f505f06590343e60a9ae9820a6d0 | 3,469 | /*
* Copyright (C) 2018 QAware GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | 43.3625 | 104 | 0.658115 |
243c81ebf283057887ca7b78a498a325c2a2ab8b | 233 | package net.petrikainulainen.spring.jooq.todo.exception;
/**
* @author Petri Kainulainen
*/
public class NotFoundException extends RuntimeException {
public NotFoundException(String message) {
super(message);
}
}
| 19.416667 | 57 | 0.729614 |
e1b5404b5a3bb209bc17de304de9ed50ea9e8cd1 | 3,479 | /*
* Bytecode Analysis Framework
* Copyright (C) 2003,2004 University of Maryland
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your... | 31.917431 | 124 | 0.694165 |
5a7a46efa0ddceb4b39cdb8c1ace3cf0e5be5614 | 5,068 | /* 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 3 of
the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
... | 29.811765 | 100 | 0.589384 |
5819b54539ef133bdbb920b61cf5ba6e04c7ba1a | 480 | package au.csiro.eis.ontology.beans;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import com.google.gwt.user.client.rpc.IsSerializable;
public class RuleTextVarBean extends RuleVarBean implements Serializable, IsSerializable {
/**
* List of rule atoms
... | 16 | 90 | 0.741667 |
864a103b5810e00a64af56cc403c8384f97c59a7 | 857 | package com.belonk.dao;
import com.belonk.pojo.MyEmployeeDTO;
/**
* Created by sun on 2018/6/24.
*
* @author sunfuchang03@126.com
* @version 1.0
* @since 1.0
*/
public interface CustomEmployeeDao {
/*
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | 25.969697 | 120 | 0.250875 |
ee2d2c550ad7547c80c274be911a93e4bb5709b5 | 89 | /**
* Clustered Counters API.
*
* @api.public
*/
package org.infinispan.counter.api;
| 12.714286 | 35 | 0.662921 |
c5775ae3f349bf552573e6869c723e9ed0ff68c5 | 2,268 | /**
* Copyright (c) 2018, http://www.snakeyaml.org
* <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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by a... | 39.103448 | 123 | 0.676367 |
9ec42da2d4e59fe9a22ca1ea076457c4cd9822e3 | 148 | package mareksebera.cz.redditswipe;
import androidx.appcompat.app.AppCompatActivity;
public class SettingsActivity extends AppCompatActivity {
}
| 18.5 | 57 | 0.844595 |
257af79336c7f2f6ac960385c17e77b434a9f77f | 770 | package com.android.open9527.okhttp.config;
import com.android.open9527.okhttp.annotation.HttpIgnore;
/**
* @author open_9527
* Create at 2021/1/4
* <p>
**/
public final class RequestServer implements IRequestServer {
/**
* 主机地址
*/
@HttpIgnore
private String mHost;
/**
* 接口路径
... | 16.382979 | 60 | 0.581818 |
0dbef3ff192afa28bbdd8f3a12a8f0ca116f24b1 | 1,779 | package pe.joedayz.ventas.controller;
import java.io.Serializable;
import java.util.List;
import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;
import javax.faces.view.ViewScoped;
import javax.inject.Inject;
import javax.inject.Named;
import pe.joedayz.ventas.model.Movimiento;
import ... | 23.407895 | 80 | 0.785835 |
109c60df979c2b9ea050bf58a1121039e01ecb14 | 1,773 | import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* @author qybit
* @create 2020-12-02 16:51
*/
public class Solution {
public char slowestKey(int[] releaseTimes, String keysPressed) {
int mx = releaseTimes[0];
char c = keysPressed.charAt(0);... | 29.55 | 83 | 0.491822 |
09db3bafd0960478100029f8cd2e8bde83ada128 | 4,925 | package pl.allegro.tech.hermes.consumers.supervisor.workload;
import org.apache.curator.framework.CuratorFramework;
import org.apache.zookeeper.CreateMode;
import org.apache.zookeeper.KeeperException;
import org.slf4j.Logger;
import pl.allegro.tech.hermes.api.SubscriptionName;
import pl.allegro.tech.hermes.common.exce... | 43.201754 | 135 | 0.707817 |
b4f1019568537323f97f5831e2d1913bae991d41 | 3,430 | /**
* Copyright 2019 Anthony Trinh
*
* 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... | 29.067797 | 89 | 0.731778 |
cf56d87be82ed640935b09adfd36a231f114ea7b | 2,138 | package SecretMirrorNFS;
import java.util.Scanner;
public class SecretChat {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
StringBuilder concealedMessage = new StringBuilder(sc.nextLine());
String instruction = sc.nextLine();
while(!instruction.equal... | 45.489362 | 141 | 0.54116 |
5fff21878c4f171ee180475d45330299bbd29dfa | 3,286 | /*
* Copyright (C) 2014 desrever <desrever at nubits.com>
*
* This program 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 2
* of the License, or (at your option) any later version.
*
*... | 23.985401 | 195 | 0.617468 |
86f05598ddf6ef2df4a06ab2a254c46f1df2ce19 | 2,019 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 33.65 | 106 | 0.732046 |
0e8fabd3eb663f809ca49d24062fd55e323ccc3a | 2,057 | package cn.android_mobile.core.net.http.yjweb;
import java.util.Stack;
import cn.android_mobile.core.net.http.Http;
import cn.android_mobile.core.net.http.yjweb.task.BaseServiceAsyncTask;
import cn.android_mobile.core.net.http.yjweb.task.DeleteAsyncTask;
import cn.android_mobile.core.net.http.yjweb.task.DeleteFileAsy... | 32.140625 | 93 | 0.772484 |
3d6a178d1958441c57af68c85332e29fec5ef38b | 10,358 | package cncleveler;
import java.util.ArrayList;
import java.util.List;
import java.util.SortedSet;
import java.util.TreeSet;
import java.util.logging.Logger;
/**
* Provides a method to interpolate a Z offset at a specific (X,Y) coordinate based on the probe
* data.
*
* Processes raw probe values passed to the co... | 32.572327 | 112 | 0.531859 |
9fa8a5d2faee06e9c597a4626afab450954c0ea4 | 21,024 | /*
* Copyright (C) 2008 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... | 32.09771 | 95 | 0.574677 |
ad03ab3df40849665706d6aa17a68659f24336d2 | 2,315 | package home.smart.fly.animations.activity.transtions;
import android.content.Context;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.StackView;... | 27.559524 | 104 | 0.662635 |
521c68ca3e8240ac8fe149f4125a046eb0898a4c | 13,374 | package com.sap.cloud.lm.sl.cf.process.steps;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Objects;
import java.util.Set;
import java.util.stream.Collectors;
import javax.inject.Inject;
import javax.inject.Named;
import org.apache.commons.collections4.CollectionUtil... | 57.399142 | 140 | 0.640945 |
c476f9e24b4df2c3692b7c42e83f9152b75c0acc | 2,193 | package com.circumgraph.storage.internal.indexing;
import com.circumgraph.model.ScalarDef;
import com.circumgraph.model.SimpleValueDef;
import com.circumgraph.storage.internal.AutoGeneratedIds;
import com.circumgraph.storage.scalars.ScalarConversionException;
import com.circumgraph.storage.types.ValueIndexer;
import ... | 22.608247 | 94 | 0.678523 |
3c9f529a3d16e2e323af74bfd205527ca1f7c214 | 3,894 | /***
* Copyright (c) 2009 Caelum - www.caelum.com.br/opensource
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 25.285714 | 93 | 0.725732 |
af6d99dc86cad831363f7daefc2c7ba384e50bc8 | 2,613 | package cards;
import actions.DiscardPileToDrawAction;
import actions.GainAttuneAction;
import actions.PullFromBeyondAction;
import basemod.abstracts.CustomCard;
import com.megacrit.cardcrawl.actions.common.DrawCardAction;
import com.megacrit.cardcrawl.actions.common.ExhaustAction;
import com.megacrit.cardcrawl.action... | 32.259259 | 97 | 0.724072 |
58a34f2180b86a74a48a110758c7d25a11a9fa6d | 902 | package org.nybatis.core.db.session.executor.util;
import java.util.ArrayList;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;
import org.nybatis.core.db.sql.mapper.SqlType;
public class Header {
private List<String> name = new ArrayList<>();
private List<SqlType> type = new ArrayL... | 19.608696 | 52 | 0.686253 |
8123ab5ff79486869b221b4e543372f5dba9d571 | 118 | package uk.gov.hmcts.reform.wataskmonitor.entities.documents;
public enum DocumentNames {
NOTICE_OF_APPEAL_PDF
}
| 19.666667 | 61 | 0.813559 |
08d7934b93932607950b4558c458087b70c0d11b | 717 | /* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0 */
package io.github.mmm.ui.tvm.factory.media;
import io.github.mmm.ui.api.factory.UiSingleWidgetFactoryNative;
import io.github.mmm.ui.api.widget.media.UiVideoPlayer;
import io.github.mmm.ui.t... | 24.724138 | 90 | 0.746165 |
a4d9ee36633c59dc742f6b9f3ba28ed5bcedd390 | 5,218 | /*
* Copyright 2009 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 to i... | 39.530303 | 92 | 0.761594 |
99f6c87764a7fc8359c02c1612481a790826cd2e | 1,014 | package de.arguments.optional;
import de.arguments.exceptions.ArgumentsException;
public class OptionalDoubleArray extends OptionalArray {
public OptionalDoubleArray(char id, Double[] defaultt)
throws ArgumentsException {
super(id);
this.defaultt = defaultt;
type = "DoubleArray";
}
public OptionalDouble... | 19.882353 | 69 | 0.704142 |
681f02d8c356d6946e06e8b975615f7cba362b6f | 1,195 | package Servlet;
import Service.updateService;
import bean.Command;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOExceptio... | 36.212121 | 123 | 0.745607 |
e7ae83f98583d079f2b6877e10d3fb6c3abc1d7f | 2,149 |
package chapter6classes;
import java.util.Random;
import java.util.Scanner;
public class Chapter6Classes {
static Scanner keyboard = new Scanner(System.in);
public static void main(String[] args) {
Scanner keyboard = new Scanner(System.in);
Random random = new Random();
... | 34.66129 | 93 | 0.614705 |
6c6ca58a6d2d9ba06480d3d887d50dc013266f81 | 12,564 | /* Copyright 2002-2014 CS Systèmes d'Information
* Licensed to CS Systèmes d'Information (CS) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* CS licenses this file to You under the Apache License, Versi... | 44.711744 | 133 | 0.608325 |
9b1a0c9a32c5227a655868dc6f9873edb5ec9e00 | 2,072 | package servlet;
import beans.ChiTietDonHang;
import beans.DonHang;
import beans.SanPham;
import beans.Users;
import conn.ConnectionUtils;
import utils.DBUtils;
import utils.MyUtils;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.annotation.*;
import java.io.IOException;
import java.sql.Con... | 32.888889 | 122 | 0.623069 |
6f90a964ddb49bcacae26a5d26e808d7c923094f | 1,172 | package com.ornithopter.quick.plugins;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;
import android.content.pm.ResolveInfo;
import android.graphics.drawable.Drawable;
public class AppInfo extends Info {
private Drawable icon;
private PackageManager pm;
pr... | 20.561404 | 74 | 0.728669 |
4fdbb382f4acac867463b6ab6380f2aca34b2d6c | 759 | package piza.otavio.cambadaforum.exceptions;
/**
* Exception that is the parent to all of the project's custom exceptions
*
* @author Otavio Sartorelli de Toledo Piza
* @version 2020-09-21
*/
public class CambadaForumException extends Exception {
private static final long serialVersionUID = 1L; // Serial UID
p... | 23.71875 | 74 | 0.720685 |
54a59c381c269cc88d08dc0850316f981a8b4d83 | 2,635 | package dev.vality.cm.service;
import dev.vality.cm.model.ClaimModel;
import dev.vality.cm.model.ClaimStatusEnum;
import dev.vality.cm.model.ClaimStatusModel;
import dev.vality.cm.model.MetadataModel;
import dev.vality.cm.search.ClaimPageSearchParameters;
import dev.vality.cm.search.ClaimPageSearchRequest;
import dev.... | 39.924242 | 95 | 0.70778 |
762a7fd1164456fb4137f0402327a45ced11c0a5 | 3,620 | package com.lts.tasktracker.monitor;
import com.lts.core.constant.Constants;
import com.lts.core.constant.EcTopic;
import com.lts.core.factory.NamedThreadFactory;
import com.lts.core.logger.Logger;
import com.lts.core.logger.LoggerFactory;
import com.lts.core.support.SystemClock;
import com.lts.ec.EventInfo;
import co... | 38.510638 | 156 | 0.598895 |
b28c17a45c393e99b6f42f937bcc2d320c474360 | 807 | package TestsPackage;
import static org.junit.Assert.*;
import java.util.ArrayList;
import models.Ball;
import models.GreenView;
import models.Position;
import org.junit.Test;
public class GreenViewTest {
@Test
public void test() {
GreenView gv = new GreenView(new Position(-5,0.5,2), 2.75, 2, new Position(0,0... | 21.810811 | 91 | 0.703841 |
cb1fac1e137b57d5121aa1d3b05bb0c0a32ec4f9 | 301 | package cn.star.autorder.usermanager.service;
import java.util.Set;
import cn.star.autorder.usermanager.entity.User;
public interface UserService {
User findByUsername(String username);
Set<String> findRoles(String username);
Set<String> findPermissions(String username);
}
| 18.8125 | 49 | 0.747508 |
0e1ba3801b471b9fed81b421860ab661110c1f74 | 4,022 | package com.example.anroid.testaescipher;
import android.util.Base64;
import java.io.UnsupportedEncodingException;
import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.security.... | 39.048544 | 226 | 0.724764 |
4804e7aa7658d733f7a2cd56d2d9f417a2e6556f | 1,984 | package com.github.malavv.brewru.protocol;
import com.google.gson.*;
import java.util.ArrayList;
import java.util.List;
public interface StepJson {
enum Type {
equipment,
ingredient,
heating,
cooling,
fermenting,
miscellaneous,
processTarget,
unknown
}
class Ing implements Step... | 26.453333 | 143 | 0.632056 |
850d8f813a00206ec4949912b989c9b784714fcf | 1,322 | package de.otto.wickettester;
import java.util.Iterator;
import org.apache.wicket.Component;
import org.apache.wicket.MarkupContainer;
/**
* Returns true if one of the siblings matches the criteria
*
* @author Oliver Langer (oliver.langer@ottogroup.com)
*/
public class HavingSiblingComponentMatcher<T extends Co... | 25.423077 | 121 | 0.627837 |
d15609ac64fd411d43b1e35586549d633b98ab4f | 4,906 | package querqy.rewrite;
import org.junit.Test;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Reader;
import java.io.StringReader;
import java.util.AbstractMap;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Ma... | 40.213115 | 113 | 0.726254 |
becbb5284a77fab141000bf871e56b01f19903fe | 862 | package com.nettyboot.biznode;
import com.alibaba.fastjson.JSONObject;
import com.nettyboot.config.RequestInfo;
import com.nettyboot.rpcmessage.MessageHelper;
import com.nettyboot.rpcmessage.MessageType;
import com.nettyboot.rpcmessage.SimpleMessage;
import com.nettyboot.rpcserver.HandlerContext;
import io.netty.chann... | 35.916667 | 87 | 0.835267 |
9243d3d1df1415e3a183d5c175d28390e0e5cf88 | 1,318 | package Ds.src.DAAAssessment;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Scanner;
public class StringOfTwo {
static String stringWithTwo(String input){
String inputarray[]=input.split(" ");
String result="";
HashMap<String,Integer> hmap= new HashMap<>();
f... | 27.458333 | 84 | 0.515175 |
bf8de57464249d70b8c5d5ea5cf2fcd166940311 | 19,133 | package fi.riista.util.jpa;
import com.google.common.base.Preconditions;
import fi.riista.feature.common.entity.EntityLifecycleFields_;
import fi.riista.feature.common.entity.HasID;
import fi.riista.feature.common.entity.LifecycleEntity;
import fi.riista.feature.common.entity.LifecycleEntity_;
import fi.riista.util.Da... | 42.143172 | 126 | 0.673026 |
4071ad1e95213a8f4c3d41d209628a4c3da11a17 | 3,594 | package org.ftccommunity.ftcxtensible.util;
import com.qualcomm.robotcore.eventloop.opmode.OpMode;
import com.qualcomm.robotcore.hardware.DcMotor;
public final class RandomUtility {
/**
* Changes the target position of a {@link DcMotor} by if a button on a {@link com.qualcomm.robotcore.hardware.Gamepad}
... | 57.967742 | 140 | 0.646355 |
a7c21e8a3e2bee3d14ea2a9d36e16f041c0b18d1 | 3,155 | /*
* Copyright 2016-2021 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | 40.448718 | 146 | 0.696989 |
084bbd0ed34149b60fd321e359fbf8933626a6f5 | 407 | package com.xpleemoon.main.router.path;
public class PathConstants {
private static final String PATH_ROOT = "/main";
private static final String PATH_VIEW = "/view";
private static final String PATH_SERVICE = "/service";
public static final String PATH_VIEW_MAIN = PATH_ROOT + PATH_VIEW + "/main";
... | 33.916667 | 86 | 0.732187 |
ebdf80a3700d918bfcc69eee6f718aff9a2c48dc | 10,261 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.com2008.journalmanagementsystem.frame;
import com.com2008.journalmanagementsystem.model.EditorOnBoard;
import com.com2008.... | 46.640909 | 169 | 0.637462 |
b7d3be6ad62c4bddfeece0d70367ea5b88978fad | 1,118 | /*
* Copyright (c) 2010-2013 Evolveum and contributors
*
* This work is dual-licensed under the Apache License 2.0
* and European Union Public License. See LICENSE file for details.
*/
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4
// See <a href="h... | 30.216216 | 108 | 0.758497 |
15cd5ceea58b9ad6ff7a3ea0e6f5b3da602cd46b | 2,101 | /*
* Permute.java
*/
import java.util.Random;
/**
* A utility class for permuting various things in various ways.
*/
public class Permute {
// --- the basic function ---
/**
* Permute the elements of p.
*/
public static void permute(int[] p, Random random) {
int temp;
... | 24.430233 | 93 | 0.518325 |
0fb72a94df459660cea3cbcde4da9a9ac5f354a3 | 593 | package org.tlh.examstack.module.sys.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.tlh.examstack.module.sys.config.freemarker.ShiroTags;
import javax.annotation.PostConstruct;
@Configuration
public class FreeMarkerConfig... | 24.708333 | 64 | 0.768971 |
9994448871c84e27d942a552120887747f73b70b | 1,697 | /*
* Copyright 2000-2015 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... | 33.94 | 84 | 0.560401 |
fccb26b1e9828b9b88b298c4842a4b74e2e10267 | 1,439 | package cn.com.i_zj.udrive_az.web;
import android.graphics.Bitmap;
import android.webkit.WebResourceRequest;
import android.webkit.WebView;
import android.webkit.WebViewClient;
/**
* @author JayQiu
* @create 2018/11/19
* @Describe
*/
public class UWebViewClient extends WebViewClient {
private WebStatusListene... | 24.389831 | 87 | 0.676859 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.