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 |
|---|---|---|---|---|---|
10cc9f51e3913cf84a4e1c85c64b36cf2eea7c9d | 3,012 | /* Copyright (C) 2015-2021 Swift Navigation Inc.
* Contact: https://support.swiftnav.com
*
* This source is subject to the license found in the file 'LICENSE' which must
* be be distributed together with this source. All other rights reserved.
*
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ... | 33.098901 | 100 | 0.703851 |
e968f967d073b8c905e10a9b5590040615ad2ea6 | 1,184 | package www.hughwang.me.tcp;
import org.apache.mina.core.service.IoHandlerAdapter;
import org.apache.mina.core.session.IdleStatus;
import org.apache.mina.core.session.IoSession;
import org.apache.mina.transport.socket.nio.NioSocketConnector;
/**
* Created by wanghuan on 2017/8/8.
*/
public class MinaClientHandler e... | 27.534884 | 85 | 0.727196 |
1fb3c14b65f4e313126caf5e869dd7ada5e38fc7 | 3,914 | package net.minecraft.server;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Maps;
import java.util.Map;
import javax.annotation.Nullable;
public class BlockCoralFanWallAbstract extends BlockCoralFanAbstract {
public static final BlockStateDirection a = BlockFacingHorizontal.FACI... | 48.925 | 367 | 0.730455 |
2fbd1a3e7d911a7f1da49725851bc24f3cc5a229 | 9,249 | package ca.corefacility.bioinformatics.irida.ria.unit.web.projects;
import java.security.Principal;
import java.util.*;
import java.util.function.Function;
import org.junit.Before;
import org.junit.Test;
import org.springframework.context.MessageSource;
import org.springframework.data.domain.Page;
import org.springfr... | 31.246622 | 112 | 0.746459 |
0d8f451ff0735b2dce70be9995d13d306c9541dc | 1,350 | package Bank;
import java.util.ArrayList;
public class Card {
private static ArrayList<Card> allCards = new ArrayList<Card>();
private String cardNo;
private String password;
private int balance;
public Card(String cardNo, String password) {
this.cardNo = cardNo;
this.password = p... | 21.774194 | 68 | 0.608148 |
61c921583eaa00a07ddb19138ab8daf16ef44595 | 5,363 | /*
* Licensed to David Pilato (the "Author") under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Author licenses this
* file to you under the Apache License, Version 2.0 (the
* "License"); you may not use... | 28.679144 | 114 | 0.605818 |
74b1c4727a3214928ffb668f4deed041d623909a | 1,522 | /*
* Copyright 2013-2018 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 26.701754 | 75 | 0.743101 |
2983489813dbf75f73a8b313852d19d788038fc4 | 12,266 | /*
* Copyright (c) 2008-2016 Haulmont.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 45.598513 | 137 | 0.689304 |
735e1201fdf08fb9d62503eca2a139534e694dae | 1,593 | /*******************************************************************************
* 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 r... | 37.046512 | 95 | 0.59887 |
7a627f91c2d3f16a029a2790a1db79c84dfc7cec | 1,525 | package com.gemalto.assignment;
import android.app.Activity;
import android.app.Application;
import android.arch.persistence.room.Room;
import com.gemalto.assignment.api.GemaltoApi;
import com.gemalto.assignment.db.UserDb;
import com.gemalto.assignment.di.component.DaggerAssignmentAppComponent;
import net.danlew.and... | 23.828125 | 78 | 0.69377 |
657b74eb44919fc37f08f1fad65d82a8090eb622 | 2,537 | package util;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Enumeration;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ScheduledFuture;
import javax.faces.context.FacesContext;
import javax.servlet.http.HttpSession;
import javax.servlet.http.Ht... | 32.948052 | 112 | 0.690579 |
295445cb48eae7aa4db663beb397e3113bfb73ca | 30,444 | /*******************************************************************************
* 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 f... | 43.99422 | 150 | 0.72543 |
b3956ae39057474448693de7498f0a33b70921e1 | 237 | package kpatell.sorting;
/**
* @author Krishan Patel
* Interface for the sorting object to use when updating the UI
*/
interface ISortPanel {
/**
* Ask the panel to update the panel with the given array
*/
void updateArray();
}
| 19.75 | 63 | 0.704641 |
04489fb9ccedb2b84eff98f1dce40a5303f39e4d | 1,492 | package seedu.address.model.client;
import static java.util.Objects.requireNonNull;
import static seedu.address.commons.util.AppUtil.checkArgument;
public class RiskAppetite extends NumberComparable<RiskAppetite> implements OptionalStringBasedField {
public static final String MESSAGE_CONSTRAINTS =
"... | 28.692308 | 102 | 0.670241 |
fdaa22c17d8e1621673f5b3596c5a38d4c721613 | 7,436 | package funct.smt;
import static utils.MessageTools.concatenate;
import static utils.MessageTools.first;
import static utils.MessageTools.second;
import funct.pkienc.Decryptor;
import funct.pkienc.Encryptor;
import funct.pkienc.RegisterEnc;
import funct.pkisig.RegisterSig;
import funct.pkisig.Signer;
import funct.pki... | 30.47541 | 132 | 0.723238 |
d9559c591a2e6f3532ac04db14a2349c5125f0f0 | 1,079 |
import java.io.BufferedReader;
import java.io.InputStreamReader;
class TestClass {
public static void main(String args[] ) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line = br.readLine();
int N = Integer.parseInt(line);
... | 25.690476 | 81 | 0.486562 |
acfc59be084cd4cd1a1f20887eda89fa60a03596 | 718 | package fr.xephi.authme.command.executable.authme;
import fr.xephi.authme.command.PlayerCommand;
import fr.xephi.authme.settings.SpawnLoader;
import org.bukkit.entity.Player;
import javax.inject.Inject;
import java.util.List;
/**
* Teleports the player to the first spawn.
*/
public class FirstSpawnCommand extends ... | 26.592593 | 104 | 0.706128 |
8ab7136dbb6f3f5f764c7171b9825dc96d459ee9 | 507 | package com.indiraactive.fulfillmentplatform.utility;
import org.springframework.stereotype.Component;
import java.io.IOException;
/**
* Abstract out the runtime for modularity and testability.
*/
@Component
public class RuntimeWrapper {
/**
* Runs a command on the systems runtime
* @return the proce... | 25.35 | 76 | 0.7357 |
db71a2939ea02e9d6f5f246113941349c0ae4b94 | 13,894 | package com.github.skjolber.desfire.libfreefare;
public class Util {
//COMMAND CODES
public final static byte AUTHENTICATE= (byte) 0x0A;//
public final static byte AUTHENTICATE_ISO=(byte)0x1A;
public final static byte AUTHENTICATE_AES=(byte)0xAA;
public final static byte CHANGE_KEY_SETTINGS=(byte)0x54;//
... | 46.624161 | 146 | 0.646826 |
11baeba4ff772130587bfc921b3fa729f4906e65 | 20,453 | // ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
pa... | 34.784014 | 159 | 0.698675 |
a545981abebbf627b6eec7997a28f1326d5f94ad | 2,223 | package ee.taltech.cs.mbt.tdl.commons.utils.strings;
import ee.taltech.cs.mbt.tdl.commons.utils.collections.CollectionUtils;
import java.util.Collection;
import java.util.Map;
import java.util.Set;
import java.util.function.Function;
public class StringUtils {
public static boolean isEmpty(String str) {
return st... | 27.7875 | 122 | 0.7157 |
077267feda29c932f88d4f6b2167f7de190c7e0a | 3,600 | package com.example.android.githubrepolist;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import an... | 27.272727 | 86 | 0.685 |
c533ff08dc5a6767bb55683edce558ab4d078616 | 4,133 | /* ###
* IP: GHIDRA
*
* 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 writin... | 25.83125 | 112 | 0.642632 |
bb2e9c66e000a0420f01e8c796501ab60178902d | 1,924 | package com.hyperlink;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.CompoundButton;
import android.widget.Toast;
import java.util.ArrayList;
import java.util.List;
public class MainActivity extend... | 36.301887 | 151 | 0.713098 |
05ae0c28a35bed40a1a601c93a12bb610cea758d | 429 | package com.louji.vedio;
public class VedioList
{
private VedioInfo first;
public VedioList()
{
this.first = null;
}
public VedioInfo getFirst()
{
return this.first;
}
public void setFirst(VedioInfo first)
{
this.first = first;
}
public boolean isEmpty()
{
return first ... | 12.617647 | 40 | 0.634033 |
557d35d8c0dcb70038f36b77015d86b1017e7e1b | 915 | package com.photo.bas.core.web.convert;
import java.text.ParseException;
import org.json.JSONArray;
import org.json.JSONObject;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;
import com.photo.bas.core.utils.Strings;
/**
* @author FengYu
*... | 22.875 | 74 | 0.668852 |
006891daad1ad176d12867689070177b40376571 | 1,576 | package com.brsrker.emerald.jwt.auth.security;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.authentication.AuthenticationProvider;
import org.springframework.security.authentication.UsernameP... | 35.022222 | 102 | 0.748731 |
e51515c47713825c993b4f5ad6121ca897460260 | 1,609 | package io.github.thecreamedcorn;
import java.util.HashSet;
import java.util.List;
public class SqlStatementData implements Cloneable {
private String sql;
private HashSet<String> parameterSearch;
private List<String> parameters;
public SqlStatementData(String sql) {
this.sql = sql;
... | 28.732143 | 104 | 0.548167 |
9a0cf3cc7cebe0e1c7006ad3580e198660159447 | 6,861 | /*******************************************************************************
* Copyright (c) 2000, 2015 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution... | 39.431034 | 111 | 0.676286 |
d322f2d2f3ee168d87cacc92e9a5a428b67f2f00 | 5,598 | /*
* Copyright 2018 Tinkoff Bank
* 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... | 32.546512 | 118 | 0.65577 |
dbb0b661cf68632c8ee82ac33b9adb4b23620819 | 3,475 | package resourceModel;
import gov.loc.zing.srw.DiagnosticsType;
import gov.loc.zing.srw.RecordType;
import gov.loc.zing.srw.RecordsType;
import gov.loc.zing.srw.SearchRetrieveResponseDocument;
import gov.loc.zing.srw.SearchRetrieveResponseType;
import gov.loc.zing.srw.diagnostic.DiagnosticType;
import java.util.Array... | 28.719008 | 98 | 0.721439 |
fad7b7aca1425af87c53bcf171274174c82aa6e0 | 10,902 | package org.openntf.domino.demoApp.subpages.database;
/*
<!--
Copyright 2017 Paul Withers
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless require... | 36.583893 | 112 | 0.762521 |
0be2f807a55eb383cb7dbdbfefc6feba4df3b82f | 1,528 | package com.github.jolice.game.death.handler;
import com.github.jolice.game.player.GamePlayer;
import com.github.jolice.game.player.GamePlayerStatus;
import com.github.jolice.game.player.repository.GamePlayerStorage;
import com.github.jolice.game.player.status.PlayerLives;
import com.github.jolice.game.death.Respawn;
... | 36.380952 | 69 | 0.73233 |
6f8b29621bff083cad4e3b8daf7d9259079c5a84 | 1,981 | // Copyright (c) 2021, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package com.android.tools.r8.ir.optimize.redundantfieldloadelimination;
import com.android.tools.r8.Compi... | 27.901408 | 100 | 0.674912 |
835840c82a9ffe2f0bd259115eb47844bb08ec71 | 7,690 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Graphics.Base.UI;
import Graphics.Base.ScreenUI;
import Graphics.Base.UIManager;
import Graphics.Forum.ActionKeys;
import Graphics.UserActions.UIZone;
import Graphics.UserActions.UserInterfaceAction;
... | 33.580786 | 128 | 0.491938 |
17936ae509903e816b634b9de9cbcb7a6f7b6dd0 | 5,754 | /*
* ============LICENSE_START=======================================================
* PNF-REGISTRATION-HANDLER
* ================================================================================
* Copyright (C) 2018 NOKIA Intellectual Property. All rights reserved.
* ==============================================... | 44.953125 | 122 | 0.706291 |
971c586b73417dfe8b157b3a0ec11732f6548784 | 19,224 | /*
* $Id$
*
* Copyright (c) 2018, Simsilica, LLC
* 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
... | 36.898273 | 135 | 0.536361 |
0dc6a9c6266d7f9c68c9f358aa7be69b59322072 | 682 | /*
* Copyright 2019 Equipment & Tool Institute
*/
package org.etools.j1939_84.bus.j1939.packets;
import org.etools.j1939_84.bus.Packet;
public class EngineHoursPacket extends GenericPacket {
public static final int PGN = 65253;
public static EngineHoursPacket create(int address, long engineHours) {
... | 26.230769 | 75 | 0.692082 |
317d1ad008521b0d64a87cf711de79d7be086d09 | 16,334 | package com.huawei.agentdemo.servlet;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.nio.file.Files;
import java.text.Normalizer;
impo... | 36.541387 | 109 | 0.414779 |
44e8034bb9af038f3f0c190a7504370301ca4349 | 1,929 | /*
* Copyright 2012 jMethods, 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 l... | 29.676923 | 76 | 0.692068 |
de3004411e6c207e7fb0fd50099091565d1a8359 | 281 | package com.picker.model;
import java.io.Serializable;
public class Album implements Serializable {
private static final long serialVersionUID = 1L;
public String id;
public String photoId;
public String name;
public String url;
public String count;
}
| 17.5625 | 52 | 0.725979 |
7210799d3baf95be8eadab88b33dafd3fdab22bb | 1,701 | package com.grazeten.download;
import java.net.URISyntaxException;
import java.net.URL;
import java.util.concurrent.Callable;
import android.content.Context;
import com.grazeten.PL;
import com.grazeten.jobs.Job;
import com.grazeten.util.Timing;
import com.grazeten.util.U;
public class DownloadImageTask implements C... | 25.772727 | 145 | 0.636096 |
08f319de458bc8a6a266a367ce999594e93348f3 | 634 | package l2f.gameserver.network.serverpackets;
public class KeyPacket extends L2GameServerPacket
{
//private final int[] _signatures;
private byte[] _key;
public KeyPacket(byte key[])
{
_key = key;
//_signatures = ClickersSignatureDao.getInstance().getSignatures();
}
@Override
public void writeImpl()
{
... | 17.135135 | 69 | 0.652997 |
bbfff0d4f18410369a16180250e2e83034eda1ac | 624 | package ru.betterend.item;
import net.minecraft.world.entity.EntityType;
import net.minecraft.world.item.FishBucketItem;
import net.minecraft.world.level.material.Fluids;
import ru.betterend.patterns.Patterned;
import ru.betterend.patterns.Patterns;
import ru.betterend.registry.EndItems;
public class EndBuck... | 31.2 | 73 | 0.783654 |
b7689c8c4a47eee9c37f2c12ba87d20127ae537c | 2,684 | package Date;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
public class DateFunction {
public static String getCurrentDate(){
Date date = new Date();
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
return simple... | 44 | 241 | 0.636364 |
c137b2e0fd2397fdf3bcfa9c3521f6962a906c87 | 2,414 | /*
* Copyright 2017 Red Hat, Inc. and/or its affiliates.
*
* 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... | 34.485714 | 132 | 0.693455 |
ff56fd610cb6e87c54033698740f7493787c475b | 919 | package topcoder.tco2009.round3;
public class CampaignTrail {
public double probWin(int[] electors, int[] winCurrent, int[] winIfVisited, int visits) {
int n = electors.length;
int sum = 0;
for (int i : electors) {
sum += i;
}
double[][][] a = new double[n + 1][sum + 1][visits + 1];
for (int x = 0; x <=... | 27.029412 | 110 | 0.468988 |
4d61786c097283d0c6660bc46efc9f159faeb2bd | 940 | package info.novatec.testit.webtester.conditions.syntax;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.doReturn;
import static org.mockito.Mockito.mock;
import org.junit.Test;
import info.novatec.testit.webtester.conditions.Condition;
public class NotTest {
Object... | 26.111111 | 71 | 0.689362 |
96595a532d9717c9fb2e6264b2ab50e0b01985f5 | 807 | public class Bug1429 {
public Set<String> getAttributeTuples() {
return (Set<String>) (this.attributes == null ? Collections.<String> emptySet() : new HashSet<String>(
CollectionUtils.collect(this.attributes.keySet(), new Transformer() {
@Override
publ... | 44.833333 | 110 | 0.484511 |
2113da02664704969c718b1a24ccc9584cd1786d | 320 | package org.sng.shortener.json;
public class AccountOkResponse extends ResponseBase {
private final String password;
public AccountOkResponse(String password) {
super(true, "Your account is opened");
this.password = password;
}
public String getPassword() {
return password;
}
} | 21.333333 | 53 | 0.690625 |
6b851886aac41844d56150b9fd00fb12dd1ecbd4 | 1,203 | package com.dell.doradus.logservice.search.filter;
import com.dell.doradus.logservice.ChunkField;
import com.dell.doradus.logservice.ChunkInfo;
import com.dell.doradus.logservice.ChunkReader;
import com.dell.doradus.olap.io.BSTR;
import com.dell.doradus.olap.store.BitVector;
public class FilterField implements IFilte... | 33.416667 | 69 | 0.66916 |
60014432f1f9a1f159cb896e90f0aa89f02afe96 | 1,395 | package org.spoofax.jsglr.client.imploder;
import java.io.Serializable;
/**
* @author Lennart Kats <lennart add lclnet.nl>
*/
public class LineStartOffsetList implements Serializable {
private static final long serialVersionUID = 2435789615135832945L;
private static final double EXPECTED_NEWLINES_DIVIDER =... | 25.363636 | 75 | 0.697491 |
5b5de16debb92d1add951484f15955a574cf44e6 | 7,238 | /*
* 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 ma... | 40.435754 | 127 | 0.612186 |
d323e140c86a98f82c0d69278847517500f82201 | 3,499 | package nickqiao.com.oahelper;
import android.accessibilityservice.AccessibilityService;
import android.annotation.TargetApi;
import android.os.Build;
import android.util.Log;
import android.view.accessibility.AccessibilityEvent;
import android.view.accessibility.AccessibilityNodeInfo;
import java.util.List;
/**
* ... | 36.072165 | 107 | 0.638468 |
536ead215b963002d8f2d49ddec0615e83346eda | 4,513 | /*
* 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 not ... | 35.81746 | 100 | 0.710392 |
a33c89dcd654def2b056ed69a01f2124456064d7 | 10,750 | package com.ralfbox.quickdialog;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.res.Resources;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.StringRes;
import android.support.v4.app.Dialo... | 36.073826 | 138 | 0.665116 |
9018fd08bdf2aa8783dce40cff84f32b9e948ee7 | 249 | package cn.micro.biz.service.unified;
import cn.micro.biz.entity.unified.AppEntity;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* App Service
*
* @author lry
*/
public interface IAppService extends IService<AppEntity> {
}
| 17.785714 | 59 | 0.763052 |
ce69daf25904865b10c3b1aab686a895d6c6995b | 1,623 | // ============================================================================
//
// Copyright (C) 2006-2021 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have... | 36.066667 | 88 | 0.600123 |
b7bc57e780040e54882505dcdc2302d1f4b3ad51 | 9,704 | /*
* 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
* distri... | 28.880952 | 106 | 0.69425 |
9d9ac28a563344d8093631ced527fb6d6785258b | 1,149 | package org.twocentsforthoughts.problems.common;
import java.util.Map;
import java.util.TreeMap;
/**
* Simple utility that generates the fibonacci sequence;
* @author Andre
*
*/
public class FibonnaciCalculator {
class NumberCache {
Map<Integer, Long> termCache = new TreeMap<Integer, Long>();
... | 23.44898 | 68 | 0.563098 |
f5d8ad3421126aa8bae3f5f8ac7134fea0a5eaf1 | 1,185 | package com.vingcoz.orderadmin.model;
public class Customers {
private String NAME;
private String ADDRESS;
private String PLACE;
private String PINCODE;
private String PHONE_NO;
private String EMAIL_ID;
private String X_CORD;
private String Y_CORD;
public Customers(String NAME,... | 20.431034 | 145 | 0.609283 |
2285c00bb172a94c5c30c3bd760821cc129c0f74 | 4,246 | package net.sf.l2j.gameserver.skills;
import java.io.File;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Level;
import net.sf.l2j.gameserver.model.item.kind.Item;
import net.sf.l2j.gameserver.skills... | 26.04908 | 129 | 0.679463 |
a6c710622db45e97df423d1e501220c30f53d338 | 2,113 | package lark.db.jsd.template;
import lark.db.jsd.Mapper;
import lark.db.jsd.result.BuildResult;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
/**
* Created by Administrator on 2015/11/18.
*/
class SimpleTemplate implements SqlTemplate {
private String sql;
private String[] args;
... | 27.802632 | 78 | 0.488405 |
ec3d607b67efe375872114998662ed998e76a715 | 64 | package java_solution.ap_1;
public class WordsWithout {
}
| 10.666667 | 27 | 0.734375 |
60b18e965fcab8faf8439eb48fa334b46434525f | 3,601 | package ru.stqa.pft.addressbook.tests.contacts.withgroups;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import ru.stqa.pft.addressbook.models.ContactData;
import ru.stqa.pft.addressbook.models.Contacts;
import ru.stqa.pft.addressbook.models.GroupData;
import ru.stqa.pft.addressbook.m... | 37.123711 | 121 | 0.692585 |
cc31b60bf249a048e47b14d6760d893f248de7b7 | 3,613 | package com.snezana.doctorpractice.dto;
import org.hibernate.validator.constraints.NotEmpty;
/**
* Mail DTO (Data Transfer Object) class message format for sending email from a Spring
* Boot app (with annotations used for field validation)
*/
public class MailDto {
private Long id;
private String userEmail;
... | 23.769737 | 105 | 0.675062 |
526d60485c49301646987d4f2148b1050088506d | 1,223 | /* Generated SBE (Simple Binary Encoding) message codec */
package sbe.msg;
public enum AdminTypeEnum
{
SimulationComplete((short)0),
WarmUpComplete((short)1),
LOB((short)2),
ShutDown((short)3),
VWAP((short)4),
StartLOB((short)5),
EndLOB((short)6),
BestBidOfferRequest((short)7),
Sta... | 22.648148 | 70 | 0.566639 |
3086d7616a9bfbad5171e7663b4e9f4fc6f50555 | 3,722 | /*
* Copyright (c) 2017 One Hill Technologies, 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 ... | 30.260163 | 103 | 0.658786 |
884c011a79e2ee68a5825b681970e46b9b70bcf9 | 1,694 | /*
* Copyright 2010 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 in w... | 31.37037 | 80 | 0.734357 |
2bee1dd1897d8ba77adf243fa771c4df3f7eeaa6 | 3,199 | package com.krishagni.catissueplus.core.administrative.events;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import org.apache.commons.lang3.BooleanUtils;
import com.krishagni.catissueplus.core.administrative.services.ContainerSelectionRule;
import com.krishagni.catissu... | 22.687943 | 105 | 0.757424 |
02207048328b92f4317f77edb1d6ae8a4eaac0af | 1,751 | package com.ociweb.gl.network;
import com.ociweb.gl.api.Builder;
import com.ociweb.gl.api.GreenApp;
import com.ociweb.gl.api.GreenRuntime;
import com.ociweb.gl.api.HTTPResponseService;
import com.ociweb.gl.api.HeaderWritable;
import com.ociweb.gl.api.Writable;
import com.ociweb.pronghorn.network.config.HTTPHeaderDefau... | 26.530303 | 87 | 0.746431 |
9b60d7b6bf5c3c628bc07ecc1c4788ba144472d9 | 2,693 | package com.necomplus.mvvm.lastfm.adapter;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;
import androidx.annotation.NonNul... | 33.246914 | 113 | 0.691051 |
de986a3c58de257965140d171f13b5ce0c2dcc0f | 9,392 | package com.mall.cloud.console.web.controller.system;
import com.mall.cloud.common.annotation.ApplicationAuthorize;
import com.mall.cloud.common.annotation.dubbo.DubboConsumerClient;
import com.mall.cloud.common.constant.Constants;
import com.mall.cloud.common.constant.ScopeType;
import com.mall.cloud.common.exception... | 40.658009 | 124 | 0.658007 |
6d2f3f2fe64d7bb7c311691f8b77619e1cd16bc8 | 5,188 | package com.tony.ngeno.ridealong;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Color;
import android.os.Handler;
import androidx.viewpager.widget.PagerAdapter;
import androidx.viewpager.widget.ViewPager;
import android.view.View;
import android.view.ViewGroup;
import java.util.A... | 37.594203 | 205 | 0.640709 |
0d0bcac771cee2a5ead76ff2a746ce8118e53389 | 26,002 | import java.io.IOException;
import net.runelite.mapping.Export;
import net.runelite.mapping.ObfuscatedGetter;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
import net.runelite.rs.ScriptOpcodes;
@ObfuscatedName("gt")
public class class184 implements WorldMapSection {
@Obf... | 39.39697 | 243 | 0.690293 |
7b093ff9c4d4c59345106ceee84d9d217a1bb959 | 1,673 | /*
* #%L
* ACS AEM Commons Bundle
* %%
* Copyright (C) 2017 Adobe
* %%
* 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... | 39.833333 | 241 | 0.777047 |
3643b014b4daed2fa7d6a75b07f80eb33b3bdbaf | 2,482 | package com.meal.sys.controller;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.meal.data.response.R;
import com.meal.security.context.JwtUserContext;
import com.meal.security.permission.RolePermission;
import com.meal.sys.entity.SysUser;
import com.meal.sys.service.ISysUserService;
imp... | 22.36036 | 66 | 0.643433 |
0dc8a57397b5b1fae0e0d6cc9974eb887dd677b1 | 1,987 | package cn.icodening.console.log;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintStream;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
/**
* @author icodening
* @date 2021.07.12
*/
public class SystemPrintStreamDeco... | 27.597222 | 101 | 0.626573 |
c72b707d4010c5fa80d333eed0a3d672d5f532e0 | 5,448 | package ktak.parseley;
import java.util.Comparator;
import ktak.immutablejava.AATreeMap;
import ktak.immutablejava.AATreeSet;
import ktak.immutablejava.List;
import ktak.immutablejava.Option;
import ktak.immutablejava.Tuple;
class StateSet<NT,T,R> {
private final Comparator<NT> ntCmp;
private final Comp... | 35.842105 | 80 | 0.509361 |
1d89458cfe15b6912577b006c2d7bb3e3e9fc74a | 958 | package com.github.mybatis.helper.datascope.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE,ElementType.METHOD})
public @interface ... | 25.891892 | 81 | 0.730689 |
3c26f03e8622944b43c01fc37fc754c63295eec0 | 434 | /*
* @lc app=leetcode id=53 lang=java
*
* [53] Maximum Subarray
*/
// @lc code=start
class Solution {
public int maxSubArray(int[] nums) {
int T = nums[0]; //T(i): max sub-array sum for x_0, ..., x_i including x_i
int max = T;
for (int i=1; i<nums.length; i++) {
T = (T>=0)?... | 20.666667 | 83 | 0.488479 |
3354d6d814ccf9f568cc6f35299e9c44947d5192 | 3,825 | package uk.gov.hmcts.reform.sscs.ccd.presubmit.writefinaldecision.pip;
import java.util.function.Function;
import uk.gov.hmcts.reform.sscs.ccd.domain.SscsCaseData;
import uk.gov.hmcts.reform.sscs.ccd.domain.SscsPipCaseData;
import uk.gov.hmcts.reform.sscs.ccd.presubmit.writefinaldecision.ActivityQuestion;
import uk.go... | 58.846154 | 209 | 0.795033 |
acfdcb0ffc48d31de743a1659781fc27856a3be8 | 1,140 | package mireka.forward;
import java.util.Locale;
/**
* Base32Int class can encode and decode an int value using a Base32.
*
* @see <a href="http://tools.ietf.org/html/rfc4648">RFC 4648</a>
*/
class Base32Int {
private static final String BASE32_TABLE =
"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";
pub... | 31.666667 | 74 | 0.615789 |
8fd1548cb7354d567c0460a8eeeaaeccb4d16dd1 | 419 | package com.jn.web.goods.service;
import com.jn.entity.Result;
import java.util.Map;
/**
* @Author muYan
* @Version 1.0
* @Since 2021-02-01
*/
public interface CartService {
Map<String, Object> list(String username);
void addAndUpdate(String username, String skuId, Integer num);
void del(String us... | 18.217391 | 71 | 0.711217 |
9b3d06a28713aa929ed4736d1b633d11434a2817 | 742 | package model;
import view.View;
import vo.Vacancy;
import java.util.ArrayList;
import java.util.List;
public class Model {
private View view;
private Provider[] providers;
public Model(View view, Provider... providers) throws IllegalArgumentException {
if (view == null || providers == null || ... | 23.935484 | 84 | 0.633423 |
32c876c76e22953d4c68d8633058284de92b717e | 1,139 | package nl.hsac.fitnesse.fixture.util;
import org.junit.Test;
import java.util.LinkedHashMap;
import java.util.Map;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
public class JsonHelperTest {
private JsonHelper helper = new JsonHelper();
@Test
public void testF... | 26.488372 | 89 | 0.56453 |
e0decd4e1932cfdaf5afe5ec1aaada9283382c62 | 2,129 | // Copyright 2000-2021 Nokia
//
// Licensed under the Apache License 2.0
// SPDX-License-Identifier: Apache-2.0
//
package com.nokia.as.autoconfig.file;
import static java.nio.file.StandardWatchEventKinds.ENTRY_CREATE;
import static java.nio.file.StandardWatchEventKinds.ENTRY_DELETE;
import static java.nio.file.Stand... | 27.294872 | 90 | 0.743072 |
ca5a0e1dd9df6ee3bcabf6a8f0b55b69a9bb5654 | 5,116 |
package org.drip.measure.discretemarginal;
/*
* -*- mode: java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*/
/*!
* Copyright (C) 2017 Lakshmi Krishnamurthy
* Copyright (C) 2016 Lakshmi Krishnamurthy
* Copyright (C) 2015 Lakshmi Krishnamurthy
*
* This file is part of DRIP, a free-software/op... | 29.402299 | 109 | 0.716185 |
302157eddb9eae3c5a088fcf6b7547aad2551a0c | 8,164 | /*
* 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 ... | 30.807547 | 81 | 0.602278 |
93eefbd3d955fcce3f2f9db1d68e326a986e7dcf | 1,823 | package mods.skipsign.fabric.client.renderer;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.MultiBufferSource;
import net.minecraft.client.renderer.blockentity.BlockEntityRendererProvider;
import net.minecraft.client.renderer.blockentity.ChestRenderer;
import net.minecraft.core.BlockPos;
... | 34.396226 | 151 | 0.708722 |
5d487307e1ef5d6db7ac75a28903a24a6ff7c12b | 1,936 | /*
* Copyright 2013 Haulmont
*
* 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 writ... | 34.571429 | 112 | 0.659091 |
fe37fa6a57d61c72308823382239b3848013ac1d | 579 | package com.itmuch.contentcenter.sentineltest;
import com.alibaba.csp.sentinel.slots.block.BlockException;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class TestControllerBlockHandlerClass {
/**
* 处理限流或者降级
*
* 容错方案:
* 1.超时 2,限流 3.断路器(打开 断开 半开)
*
* 4.仓壁模式(大家不在一个篮子里,每个Controller都有自... | 22.269231 | 60 | 0.639033 |
cf35e64549ef0efe04d6d1d7680e5a95470d0ee7 | 2,528 | package org.elsys.ip.online_gun_shop.security;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.jsonwebtoken.Jwts;
import io.jsonwebtoken.SignatureAlgorithm;
import org.elsys.ip.online_gun_shop.model.User;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework... | 40.774194 | 138 | 0.72587 |
d08708d947e1d501012371164df518ea8155f831 | 735 | .class public final Lorg/pornaway/R$array;
.super Ljava/lang/Object;
.source "R.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lorg/pornaway/R;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "array"
.end annotation
# static... | 21 | 77 | 0.755102 |
690e972ef696eadaee8b78416649cccc78d113c0 | 2,619 | package com.chao.cloud.common.extra.feign.annotation;
import java.util.concurrent.TimeUnit;
import org.springframework.beans.factory.ObjectFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
import org.springframework.boot.autoconf... | 30.453488 | 98 | 0.786942 |
7670504f39617fbc17675794c4f4f8df13f6ec77 | 3,397 | /**
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... | 41.426829 | 120 | 0.71416 |
94189e43a6f26a5057ef1f885ed570c8e1cbd4bc | 354 | package vswe.stevescarts.mixins;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Mutable;
import org.spongepowered.asm.mixin.gen.Accessor;
import net.minecraft.screen.slot.Slot;
@Mixin(Slot.class)
public interface SlotAccessor {
@Mutable
@Accessor("x")
void setX(int x);
@Mutable
@A... | 18.631579 | 48 | 0.762712 |
6358d45b5b4e15b0e08b69a5bc65682c13a84b96 | 2,199 | package com.bysj.imageutil.adapter;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.bysj.imageutil.R;
import com.bysj.imageutil.adapter.listene... | 23.902174 | 117 | 0.663938 |
34817b20c4ec966df30168efb3f2bd3f198f5e02 | 6,112 | /*
* Copyright (c) 2001-2009, Jean Tessier
* 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
* no... | 57.121495 | 134 | 0.656577 |
f026af284dab4300743f5b81a0ff1671f17d753b | 1,859 | package com.tiagoespinha.popmovee.ioc.modules;
import android.app.Activity;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.drawable.Drawable;
import android.widget.Toast;
import com.squareup.picasso.Picasso;
import com.squareup.picasso.Target;
import com.tiagoespinha.popmovee.... | 27.746269 | 91 | 0.642281 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.