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 |
|---|---|---|---|---|---|
97038efc34b6d7259d0678c5fba4ce6aa87e38b2 | 6,678 | package edu.umass.cs.txn;
import java.io.IOException;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import java.util.SortedSet;
import java.util.TreeSet;
import java.util.logging.Level;
import edu.umass.cs.gigapaxos.interfaces.ExecutedCallback;
import edu.umass.cs.gigapaxos.interfaces.Reque... | 32.26087 | 119 | 0.758311 |
5dae838710f53294c25ddf5370c445c61cc09357 | 1,535 | package com.peter._2020._30.days.trail.june._12_Insert_Delete_GetRandom;
import java.util.*;
import java.util.concurrent.ThreadLocalRandom;
public class RandomizedSet {
public static void main(String[] args) {
var a = new RandomizedSet();
a.insert(1);
a.insert(2);
a.remove(1);
... | 28.425926 | 105 | 0.584365 |
ca2cc302a1e371a5a88ef5ef67cefbf207597dc1 | 9,363 | /**
* Copyright 2010 Mark Wyszomierski
*/
package com.joelapenna.foursquared;
import com.joelapenna.foursquare.Foursquare;
import com.joelapenna.foursquare.error.FoursquareException;
import com.joelapenna.foursquare.types.Settings;
import com.joelapenna.foursquare.types.User;
import android.app.Activity;
import an... | 33.439286 | 114 | 0.597244 |
4a80b0312afdf2a3b7fab6a17db128e2e03d57e1 | 3,145 | /*
* Copyright 2013 Dominic.
*
* 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... | 36.149425 | 128 | 0.633704 |
2e7d1843856c4eb854cf981d2307667cc714b105 | 793 | package com.cm.usermanagement.user.transfer;
import java.io.Serializable;
public class ForgotPasswordRequest implements Serializable {
private static final long serialVersionUID = 1629672935573849314L;
private String email;
private String guid;
private String password;
private String password2;
public String... | 16.520833 | 67 | 0.736444 |
b778b8dd74ff381ec33b309224067cb3fd3e57e4 | 857 | /**
*
*/
package com.cloderia.helion.client.shared.operation;
import org.jboss.errai.common.client.api.annotations.MapsTo;
import org.jboss.errai.common.client.api.annotations.Portable;
import com.cloderia.helion.client.shared.model.SubjectCategory;
/**
* @author adrian
*
*/
@Portable
public class SubjectCateg... | 23.805556 | 101 | 0.749125 |
195fa4303e3eb2f34e85a8966530ab194deeff61 | 10,069 | /*
* 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 ... | 31.270186 | 109 | 0.615851 |
6a26c3689c0091bf7171506369fd88c203b98fa6 | 2,105 | /*
* Kimberly M. Praxel
* 11/06/16
* EUSalesTax.java
*/
package edu.greenriver.it.taxcalculators;
import java.util.*;
/**
* Creates sales tax for EU Customers
*
* @author kimberlypraxel
* @version 1.0
*/
public class EUSalesTax implements ISalesTax{
private String region;
/**
* creates a new EUSalesT... | 27.697368 | 68 | 0.682185 |
12b520fe0f8e81ce9cef52ccfedcaf8c24077ec7 | 796 | package com.alibaba.markovdemo.engine.stages;
import com.alibaba.fastjson.JSONObject;
public final class Utils {
public enum PrepareDataType {
Tair,
ScsIndex,
Tdbm,
KVfile,
TransMsg,
MetisData,
Imock,
Text,
ArtisMsg,
Mysql,
T... | 18.090909 | 75 | 0.542714 |
0894285d68208e7f5c1f8ae4ab2f6cf055ee6241 | 121 | package designPattern.memento;
/**
* @author Kevin
* @description
* @date 2017/2/23
*/
public interface Memento {
}
| 12.1 | 30 | 0.677686 |
77a7ea9ab259d0a83775f29f18259cfc6ddddbf7 | 1,189 | package dydeve.monitor.holder;
import dydeve.monitor.stat.MapStat;
import dydeve.monitor.stat.Tracer;
import org.springframework.core.NamedThreadLocal;
import java.util.Map;
import java.util.UUID;
/**
* threadLocal holder
* Created by dy on 2017/7/24.
*/
public class ThreadLocalHolder {
public static final T... | 29.725 | 193 | 0.679563 |
df9cc62934f6725e1f97b9fabdf4908f970015c4 | 636 | package com.sdut.threadtest;
//线程的强制执行,可以理解为找关系插队
public class ThreadTest10 implements Runnable{
@Override
public void run() {
for (int i = 0; i < 1000; i++) {
System.out.println("线程VIP" + i);
}
}
public static void main(String[] args) throws InterruptedException {
... | 24.461538 | 72 | 0.525157 |
8da15547fdd3c993dbe8ff3681242f586facf9fd | 1,996 | /*
* Copyright (c) 2020 TurnOnline.biz 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 ... | 22.426966 | 158 | 0.637776 |
5be243cef98adca46e3c2911e029136a15bd4914 | 918 | package cn.yueshutong.snowjenaticketserver.token;
import cn.yueshutong.commoon.entity.RateLimiterRule;
import cn.yueshutong.snowjenaticketserver.token.service.TokenService;
import com.alibaba.fastjson.JSON;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.Re... | 38.25 | 88 | 0.811547 |
03b0c2641996691657499baf30bcf78ea6a51733 | 1,542 | /**
* 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.appservice.v2016_09_01;
import com.microsoft.azu... | 22.676471 | 112 | 0.671855 |
d2e676a7ecbbb25e3fe5e2071e328658edf68964 | 10,590 | /**
* Copyright (c) 2016-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
package co... | 30.17094 | 100 | 0.715581 |
ea66e028338d4845379b3a43067a81c7f1ea6482 | 3,246 | package ganymede.server;
/*-
* ##########################################################################
* Ganymede
* %%
* Copyright (C) 2021 Allen D. Ball
* %%
* 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 ... | 30.336449 | 128 | 0.550216 |
2225c2b39758c3db11aca912b1b3067f486b06d3 | 17,610 | package com.nedap.archie.flattener;
import com.nedap.archie.aom.*;
import com.nedap.archie.aom.utils.AOMUtils;
import com.nedap.archie.base.MultiplicityInterval;
import com.nedap.archie.paths.PathSegment;
import com.nedap.archie.paths.PathUtil;
import com.nedap.archie.query.AOMPathQuery;
import com.nedap.archie.query.... | 53.525836 | 199 | 0.662862 |
faf21af037296962cc26c25610b4f7be085cb9a3 | 8,034 | package com.intellij.jira.ui.dialog;
import com.intellij.jira.server.JiraServer;
import com.intellij.jira.server.JiraServerManager;
import com.intellij.jira.server.editor.JiraServerEditor;
import com.intellij.jira.tasks.RefreshIssuesTask;
import com.intellij.jira.ui.panels.JiraPanel;
import com.intellij.jira.util.Jira... | 34.930435 | 238 | 0.682848 |
292093c87043da903071c17bfd9bd20081140af6 | 2,505 | package com.gearservice.model.authorization;
import com.fasterxml.jackson.annotation.*;
import javax.persistence.*;
import java.util.HashSet;
import java.util.Set;
/**
* Class User is model Entity, that store in database and consists user's data.
* Has many-to-many relationship with Authority entity.
*
* @versio... | 36.304348 | 116 | 0.705389 |
499da560d68328560640773c38e7908bd124721d | 6,212 | package com.nirvana.springreactorexample.controller;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.github.tomakehurst.wiremock.WireMockServer;
import com.github.tomakehurst.wiremock.client.WireMock;
import com.github.tomakehurst.wiremock.core.WireMockConfiguration;
import com.nirvana.springreactorexam... | 42.258503 | 122 | 0.635705 |
f88211a8905cad94fa5a7f0d3ddcb9059e8af41c | 2,477 | package parsley.commands.core;
import parsley.commands.Command;
import parsley.lexing.*;
import parsley.model.*;
import parsley.runtime.*;
import parsley.values.*;
import java.util.*;
public class CallCommand extends Command {
protected String name;
protected Stack parameters;
protected Hashtable arguments;
pub... | 25.27551 | 105 | 0.720226 |
dcfccf73581bd762d76d8b190a67b403f318e811 | 8,965 | package com.ferreusveritas.dynamictrees.systems.genfeatures;
import com.ferreusveritas.dynamictrees.api.IFullGenFeature;
import com.ferreusveritas.dynamictrees.api.configurations.ConfigurationProperty;
import com.ferreusveritas.dynamictrees.systems.genfeatures.config.ConfiguredGenFeature;
import com.ferreusveritas.dyn... | 35.717131 | 192 | 0.544004 |
8340f0d5aa6d0c15bb0856848be8890c2a219fef | 2,614 | /*
* Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licen... | 52.28 | 121 | 0.754399 |
24a2faceacd456a6c254000eb49df5c15fdb2aef | 1,084 | package org.firstinspires.ftc.teamcode.temp;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
/**
* Created by USER on 11/21/2017.
*/
@TeleOp(name="collector", group="Temp")
public class TestCollector extends TempOpMode {
@Override
public void runOpMode() throws InterruptedException {
initRo... | 24.088889 | 57 | 0.535055 |
18a9ddef0e02e1e5f75f02e719d092c9ee8e139b | 395 | package org.springframework.security.web.server.authorization;
import reactor.core.publisher.Mono;
import org.springframework.security.access.AccessDeniedException;
import org.springframework.web.server.ServerWebExchange;
/**
* @author Rob Winch
* @since 5.0
*/
public interface ServerAccessDeniedHandler {
Mono<... | 23.235294 | 77 | 0.812658 |
b9e9c7efcd4e22b02937fdabf2fe78e239b5dda8 | 425 | package org.socraticgrid.hl7.services.orders.xmladapter;
import javax.xml.bind.annotation.adapters.XmlAdapter;
public class MessageTypeAdapter extends XmlAdapter<Object, Object> {
@Override
public Object unmarshal(Object v) throws Exception {
// TODO Auto-generated method stub
return null;
}
@Override
publ... | 21.25 | 68 | 0.769412 |
4aee2d31ae6cd208a7126e11e6ad4a7fa9b30f56 | 3,115 | /*
* MIT License
*
* Copyright (c) 2018 Charalampos Savvidis
*
* 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, c... | 27.086957 | 119 | 0.756661 |
34ba1770877581276e099c3a060564ef8b706ea2 | 3,007 | /*
* Copyright 2009-2013 by The Regents of the University of California
* 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 from
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless... | 38.063291 | 116 | 0.703026 |
5bfcfe324fc7640a9df1fcba748bb77da7205b7b | 868 | package nahabi4.supplement.sqlserver.jdbc;
import com.microsoft.sqlserver.jdbc.SQLServerException;
import nahabi4.supplement.java.sql.ColumnMetadata;
public class StringArraysBulkRecordSet extends ArraysBulkRecordSet {
protected StringToObjectTransformer transformer;
public StringArraysBulkRecordSet(String[... | 31 | 127 | 0.71659 |
8729b0c08831b6e58720be31c8cc71d10dab94d9 | 284 | package nl.uva.deepspike.events;
/**
* Created by peter on 2/24/16.
*/
public class SpikeEvent extends SignedSpikeEvent {
/* This exists purely to avoid accidently treating SignedSpikeEvents as SpikeEvents */
public SpikeEvent (int src){
super(src, false);
}
}
| 23.666667 | 90 | 0.697183 |
95bc8bb048ed8b55f00081cdc502d621b1db4359 | 609 | /*
* $Header: /usr/cvsroot/AntIDE/source/com/antsoft/ant/property/CompilerPanel.java,v 1.3 1999/07/22 03:42:03 multipia Exp $
* Ant ( JDK wrapper Java IDE )
* Version 1.0
* Copyright (c) 1998-1999 Antsoft Co. All rights reserved.
* This program and source file is protected by Korea and international
* Copy... | 26.478261 | 124 | 0.697865 |
78fd17abe1289a20fda609257b76977c217f27bc | 1,244 | package com.bapocalypse.train.service;
import com.bapocalypse.train.dto.Exposer;
import com.bapocalypse.train.dto.TrickExecution;
import com.bapocalypse.train.exception.RepeatBuyException;
import com.bapocalypse.train.exception.TrickCloseException;
import com.bapocalypse.train.exception.TrickException;
import com.bapo... | 28.930233 | 137 | 0.727492 |
31571c21931af74636802e5a812f3739e3cfac9c | 1,450 | /* Copyright (c) 2017 Boundless and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Distribution License v1.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/org/documents/edl-v10.html
*
* Contribut... | 30.851064 | 84 | 0.728276 |
ba7506acf27546a6b26b31cf276a3038dee74640 | 3,521 | /*
* Copyright 2018 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://www.apache.org/licenses/LICENSE-2.0
*... | 30.617391 | 109 | 0.725362 |
22e8bc52ab2719cd0960423c61cd10e38c8faecb | 443 | package com.cloudycrew.cloudycar.roleselection;
/**
* Created by George on 2016-11-23.
*/
public interface IRoleSelectionView {
/**
* Callback for displaying the add car notification
*/
void displayAddCarDescription();
/**
* Callback for displaying driver summary
*/
void display... | 19.26087 | 55 | 0.656885 |
a97b726dc98e9e84e83619b6cd94242b1815f272 | 663 | //package com.nexuslink.wenavi.contract;
//
//import android.widget.EditText;
//
//import com.nexuslink.wenavi.base.BasePresenter;
//import com.nexuslink.wenavi.base.BaseView;
//
///**
// * Created by aplrye on 17-8-27.
// */
//
//public interface UserContract {
// interface Presenter extends BasePresenter {
// ... | 24.555556 | 87 | 0.665158 |
0425fd9ec84f59a5f423b46b2c98d9bcc5fc1caf | 2,911 | package controllers;
import java.util.ArrayList;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import exceptions.CardapioInvalidoException;
import exceptions.CardapioOverflowException;
import exceptions.DadoIncompletoException;
import models.Alimento;
impor... | 30.010309 | 135 | 0.719684 |
d749dfd4fceddce2814c2786bf9c9be61dfcb82d | 20,053 | /*
* Decompiled with CFR 0.150.
*
* Could not load the following classes:
* net.runelite.mapping.Export
* net.runelite.mapping.Implements
* net.runelite.mapping.ObfuscatedGetter
* net.runelite.mapping.ObfuscatedName
* net.runelite.mapping.ObfuscatedSignature
*/
import net.runelite.mapping.Export;
import ... | 42.485169 | 390 | 0.44532 |
22336a51d932c5d1ce0841fb6496d6abb2f0448f | 938 | /*
* 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 controller.util;
import javax.validation.ConstraintViolation;
import java.util.Set;
/**
*
* @author jGauravGupt... | 33.5 | 122 | 0.690832 |
0fda9721f11098d594ec7f20b9565a7849ed0096 | 246 | #set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
/**
* Interceptors are used to do pre-processing and post-processing during invocation of Command.
*
* @author fulan.zjf
*/
package ${package}.interceptor; | 27.333333 | 95 | 0.666667 |
9b1dd2ae8d8aa0b02372224133c57116a31fe704 | 3,822 | package msifeed.misca.charsheet.cap;
import msifeed.misca.charsheet.ICharsheet;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.nbt.NBTBase;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.potion.Potion;
import net.minecraft.util.EnumFacing;
import net.minecraftforge.common.capabilitie... | 42.466667 | 115 | 0.675039 |
6cc457c6f73e6bc093cd0c48dfdb2d29d42a4703 | 3,797 | package com.alibaba.alink.operator.common.tensorflow;
import org.apache.flink.api.common.typeinfo.TypeInformation;
import org.apache.flink.api.common.typeinfo.Types;
import org.apache.flink.api.java.tuple.Tuple4;
import org.apache.flink.ml.api.misc.param.Params;
import org.apache.flink.table.api.TableSchema;
import c... | 39.968421 | 119 | 0.792731 |
74a8bed7e6a7f22e19e4df5bc041df8e430f3a12 | 1,919 | package org.jobjects.myws2.orm.user;
import java.util.List;
import javax.ejb.Local;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.TypedQuery;
import org.jobjects.myws2.tools.AbstractFacade;
import org.jobjects.myws2.tools.AppCo... | 25.586667 | 101 | 0.71235 |
28ba7227b3a0b47ab463e48f6d982d61aa41754f | 1,319 | package com.intrack.session;
import com.intrack.io.XMLConfigBuilder;
import com.intrack.session.defaults.DefaultSqlSessionFactory;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;
import java.io.Reader;
import java.util.Properties;
/**
* @author intrack
*/
public cl... | 27.479167 | 104 | 0.738438 |
a8077794326fe1f46f1ddd1b759405d493477ae6 | 541 | package org.zalando.riptide.micrometer.tag;
import io.micrometer.core.instrument.Tag;
import org.apiguardian.api.API;
import org.zalando.riptide.RequestArguments;
import static java.util.Collections.singleton;
import static org.apiguardian.api.API.Status.EXPERIMENTAL;
@API(status = EXPERIMENTAL)
public final class H... | 30.055556 | 78 | 0.783734 |
86629927d5f4ea52ca2005f2750e2832fbb22620 | 5,105 | /**
* Copyright (c) 2022
* All rights reserved.
*
* 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, co... | 22.688889 | 73 | 0.753575 |
07f0ef1ccce6ec4709253ea828f5d604a082ce9d | 3,526 | // Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package frc.robot.commands;
import edu.wpi.first.math.controller.PIDController;
import edu.wpi.first.wpilibj.Timer;
i... | 35.616162 | 192 | 0.756665 |
761019b0f004197bc581ef4af7d18f5e959d21a0 | 2,892 | import edu.princeton.cs.algs4.In;
import edu.princeton.cs.algs4.StdDraw;
import edu.princeton.cs.algs4.StdOut;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;
public class FastCollinearPoints {
private LineSegment lineSegments[];
public FastCollinearPoints(Point[] points) {
... | 30.765957 | 83 | 0.527663 |
86cc4805df2cfa7f623fac5dca131aa16dc189dd | 1,688 | import static spark.Spark.*;
import java.util.HashMap;
import spark.ModelAndView;
// import spark.template.velocity.VelocityTemplateEngine;
public class App {
public static void main(String[] args) {}
public static String numberToWord(String userInput) {
char[] userInputArray = userInput.toCharArray();
... | 29.103448 | 118 | 0.552133 |
cb3ce8a5f708d845c878a126f9a6ffb2504f5fea | 5,806 | package example;
import com.google.cloud.texttospeech.v1beta1.SsmlVoiceGender;
import net.dv8tion.jda.api.JDA;
import net.dv8tion.jda.api.JDABuilder;
import net.dv8tion.jda.api.entities.Message;
import net.dv8tion.jda.api.entities.User;
import net.dv8tion.jda.api.entities.VoiceChannel;
import net.dv8tion.jda.api.event... | 47.203252 | 172 | 0.677747 |
3ad9162ab744929c3a2113ba06983e2a5877114d | 1,096 | package pl.czakanski.thesis.nanoservice.user.activation.controller.v1;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework... | 42.153846 | 148 | 0.828467 |
c2d027fb4d994a7642bf6c54a54fa738d6fe6ba0 | 692 | package net.endhq.remoteentities.api.events;
import net.endhq.remoteentities.api.RemoteEntity;
import net.endhq.remoteentities.api.pathfinding.CancelReason;
import org.bukkit.event.HandlerList;
public class RemotePathCancelEvent extends RemoteEvent
{
private static final HandlerList handlers = new HandlerList();
p... | 20.352941 | 75 | 0.787572 |
f8d6894af0cfbf22cd50db41282852f47d8fc8b9 | 2,036 | import org.antlr.v4.runtime.*;
import org.antlr.v4.runtime.atn.PredictionMode;
import java.lang.reflect.Method;
import java.util.List;
/*$PackageName*/import __PackageName__.*;/*PackageName$*/
public class Main {
public static void main(String[] args) {
try {
String fileName = "../../Text";
... | 37.703704 | 96 | 0.576621 |
49a7e4ca47be74caf0b61fe6ea94899f593fdd30 | 379 | package io.shaka.some;
public class SomeValues {
public static <T> T some(SomeBuilder<T> builder) {
return builder.build();
}
public static SomeStringBuilder string = SomeStringBuilder.string;
public static SomeIntegerBuilder integer = SomeIntegerBuilder.integer;
public static SomeIntegerB... | 31.583333 | 86 | 0.759894 |
19be4567cade9b8719bcd9d4239173b228d11e62 | 1,618 | /*
* PlanePane.java
*
* $Id: LeftPane.java,v 1.2 2008/02/27 15:00:16 marco Exp $
*
* 04/gen/08
*
* Copyright notice
*/
package org.mmarini.atc.swing;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
... | 18.597701 | 70 | 0.629172 |
4c904108e0a0a03e195500c27f2d90c34f156a21 | 9,473 | package com.linkedin.platform;
import android.app.Activity;
import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.te... | 37.59127 | 131 | 0.65597 |
4a78f9eb764057cd18d0820e66549160f122fd6e | 512 | package com.ygy.dao;
import com.ygy.model.User;
import com.ygy.model.UserFollow;
/**
* @author ygy
* @date 2018/5/30
* 将用户信息放在redis数据中
*/
public interface RedisDao {
/**
* 增加关注
*
* @param
* @param
*/
void add(UserFollow user);
/**
* 删除关注
*
* @param
*/
... | 13.473684 | 33 | 0.509766 |
b9d7765226620f0c0c9194e3c3b682e6d0f166a6 | 8,686 | /*
* The MIT License
*
* Copyright (c) 2019 The Broad Institute
*
* 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... | 37.765217 | 125 | 0.652084 |
e1f79745ce4a8fdd53315cbf5d72f21cc332b614 | 1,785 | package contest.usaco;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class USACO_2014_Reordering_The_Cows {
static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
static StringTokenizer st;
static ... | 25.5 | 82 | 0.602241 |
508f4bb1bce4cda5468715fd057a01c45478c797 | 6,471 | package net.kunmc.lab.commondestiny;
import com.destroystokyo.paper.event.server.ServerTickStartEvent;
import net.kunmc.lab.commondestiny.config.ConfigManager;
import org.bukkit.*;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.Pl... | 38.064706 | 117 | 0.633442 |
315543150192b8b627f0e61817683244e8ef3704 | 7,414 | /**
*
* Copyright (c) Microsoft and contributors. 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
*
* Unless r... | 27.664179 | 85 | 0.654303 |
c5c95e9aedb0c02d6e49c70ab60e5f8016236637 | 1,355 | /**
*
* Copyright 2012 Tobias Gierke <tobias.gierke@code-sourcery.de>
*
* Original project:
*
* 2017 Rewrite in Kotlin by JonathanxD <https://github.com/JonathanxD>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | 26.568627 | 76 | 0.676015 |
97392653fea81937bbc82eb72d8c771201a8ac76 | 456 | package studio.csuk.javabridge;
public class RunResult extends AbstractResult{
public RunResult(State state, String error, int lineNumber, String output) {
super(error, lineNumber, output);
this.state = state;
}
private State state;
public State getState() {
return state;
... | 17.538462 | 80 | 0.622807 |
f258cbd4741a7f0576fef86e8323ab8caf4efdc2 | 2,564 | package com.haoict.tiab.commands;
import com.haoict.tiab.Config;
import com.haoict.tiab.item.ItemTimeInABottle;
import com.haoict.tiab.utils.SendMessage;
import com.mojang.brigadier.CommandDispatcher;
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
import net.minecraft.command.CommandSource;
import... | 45.785714 | 148 | 0.596724 |
75b77de43a645d3f2168ae7b2c7756449a82dbd5 | 1,939 | /*
* 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... | 48.475 | 126 | 0.817432 |
4e9b4d3f6b2469e997f4416d0245efd4ada5db6c | 357 | package com.learning.daggertwo.casterio.dagger.Settings;
import dagger.Module;
import dagger.Provides;
/**
* Created by wahibulhaq on 03/04/16.
*/
@Module
public class SettingsModule {
// All settings screen dependencies go here
@Provides
public SettingsService provideSettingsService() {
retu... | 17.85 | 56 | 0.722689 |
810011565e4e215942d050cab2791307791d250b | 3,783 | package bf.io.openshop.UX.adapters;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;... | 37.088235 | 123 | 0.739096 |
08dc0c9bc73c8f9062094206b76a4f52c476cdd2 | 8,383 | /*
* Copyright 2015 Open Networking Laboratory
*
* 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 la... | 32.618677 | 113 | 0.626148 |
d36ce80b76d86cac906cb54f97646314fc2e8ec7 | 1,362 | package de.tum.testextension;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import de.tum.localcampuslib.ShowPostFragment;
public class... | 30.266667 | 77 | 0.716593 |
8ad1a14b4782243ea445ec5d2df27609778068a5 | 893 | package outputModules.csv.exporters;
import cfg.nodes.CFGNode;
import outputModules.common.DOMExporter;
import cfg.nodes.ASTNodeContainer;
import databaseNodes.EdgeTypes;
import outputModules.common.Writer;
public class CSVDOMExporter extends DOMExporter
{
@Override
protected void addDomEdge(CFGNode vertex, CFGNod... | 21.261905 | 69 | 0.7514 |
4be60f242ad8a2dbe8f46e57f491e3e30c147f89 | 4,594 | package net.MrBonono63.create.blocks.schematics;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.block.HorizontalFacingBlock;
import net.minecraft.block.ShapeContext;
import net.minecraft.item.ItemPlacementContext;
import net.minecraft.state.StateManager;
import net.minecr... | 42.934579 | 257 | 0.71071 |
d09fdeca7edeb318020feafdbe6996e683023ab1 | 23,433 | /*******************************************************************************
* Caleydo - Visualization for Molecular Biology - http://caleydo.org
* Copyright (c) The Caleydo Team. All rights reserved.
* Licensed under the new BSD license, available at http://caleydo.org/license
*********************************... | 38.925249 | 109 | 0.73708 |
adc926257edb2e42c34c8ac1040b0fdf2448c470 | 3,275 | package org.lagonette.app.app.widget.performer.impl;
import android.arch.lifecycle.ViewModelProviders;
import android.location.Location;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.FragmentManager;
import android.support.v7.app.AppCompatActivity;... | 31.796117 | 102 | 0.818321 |
c008336d36eec284ed6cb1b79ece005343ea3577 | 6,153 | package fr.sma.zombifier.core;
import fr.sma.zombifier.resources.FireWeapon;
import fr.sma.zombifier.resources.Resource;
import fr.sma.zombifier.resources.Weapon;
import fr.sma.zombifier.utils.Constants;
import fr.sma.zombifier.utils.Globals;
import fr.sma.zombifier.world.World;
import java.util.List;
import junit.fra... | 30.014634 | 100 | 0.58053 |
552368123548d8079f7616fd0a3ddbdfe9b53036 | 403 | package com.cjy.flb.event;
/**
* Created by Administrator on 2015/12/15 0015.
*/
public class MedicineInfoEvent {
private boolean isTrue;
public MedicineInfoEvent() {
}
public MedicineInfoEvent(boolean b) {
this.isTrue = b;
}
public boolean isTrue() {
return isTrue;
}
... | 16.12 | 47 | 0.617866 |
9a2471de56ef03ba2903db5fd911a6625a30e364 | 670 | package core.framework.api.validate;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
/**
* Digits can be used on numeric fields.
*
* @author chris
*/
@Target(FIELD)
@Rete... | 26.8 | 116 | 0.747761 |
0a99637ce986be7e55aa425570af37b02dec39cd | 780 | /*
Copyright (C) 2001, 2008 United States Government
as represented by the Administrator of the
National Aeronautics and Space Administration.
All Rights Reserved.
*/
package gov.nasa.worldwind.render.markers;
import gov.nasa.worldwind.geom.*;
import gov.nasa.worldwind.render.DrawContext;
/**
* @author tag
* @vers... | 21.666667 | 79 | 0.744872 |
e1ff5474e054d573f9e5e28ed153fd4c40d67284 | 788 | package org.vivoweb.vivo.selenium;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
public final class SeleniumUtils {
private static String bas... | 28.142857 | 67 | 0.68401 |
8f8e2950fd69001ea25768ee6dcc839d651c5f61 | 3,609 | package org.coreasm.compiler.plugins.io.include;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.coreasm.engine.absstorage.Element;
import org.coreasm.engine.absstorage.Location;
import org.coreasm.engine.absstorage.Update;
import org.coreasm.engine.plugin... | 32.223214 | 99 | 0.702688 |
7056783d942bd5d57cc190fc156cf3ac23b37329 | 1,296 | package cucumber.runtime.model;
import cucumber.runtime.World;
import gherkin.formatter.model.Scenario;
import gherkin.formatter.model.Step;
import gherkin.formatter.model.Tag;
import java.util.*;
public class CucumberScenario {
private final List<Step> steps = new ArrayList<Step>();
private final Scenario s... | 23.563636 | 93 | 0.633488 |
c8ce4536c27e3f0b68d9a9578d7c7ee8cce429b3 | 202 | package com.run.sg.util;
/**
* Created by MBENBEN on 2017/6/15.
*/
public class CurrentPosition {
public static double mCurrentPointLat = 0.0;
public static double mCurrentPointLon = 0.0;
}
| 18.363636 | 48 | 0.70297 |
47dea7b87bc9efccba844c29adf53413a38ce1f2 | 1,861 | package com.adintellig.ella.model;
import java.sql.Timestamp;
public class RequestCount {
private long writeCount = 0l;
private long readCount = 0l;
private long totalCount = 0l;
private Timestamp updateTime = null;
private Timestamp insertTime = null;
private int writeTps = 0;
private int readTps = 0;
privat... | 19.185567 | 70 | 0.726491 |
88242060e6eccf64488431506d68f7aa4201aaa4 | 1,630 | package com.udacity.jdnd.course3.critter.service;
import com.udacity.jdnd.course3.critter.data.entity.Customer;
import com.udacity.jdnd.course3.critter.data.entity.Pet;
import com.udacity.jdnd.course3.critter.data.repository.CustomerRepository;
import com.udacity.jdnd.course3.critter.data.repository.PetRepository;
imp... | 31.346154 | 85 | 0.720245 |
cf685e33c72774abf9f4d3e1c3d397707dfa2401 | 205 | package com.gmy.common.constant;
public class EsConstant {
/* product 在 es 的索引 */
public static final String PRODUCT_INDEX = "product";
public static final Integer PRODUCT_PAGE_SIZE = 16;
}
| 20.5 | 57 | 0.717073 |
aa6e832de58453e3ab345cfb44aeefb14178c6f8 | 417 | /*
* 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 ed.biodare2.backend.features.ppa;
import ed.biodare2.backend.features.jobcentre2.JC2ServiceParameters;
/**
*
* @... | 24.529412 | 80 | 0.731415 |
7e649bb7328a1e75fe6a24887e2b43122d21caed | 8,681 | package jetbrains.mps.baseLanguage.regexp.editor;
/*Generated by MPS */
import jetbrains.mps.editor.runtime.descriptor.AbstractEditorBuilder;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.mps.openapi.model.SNode;
import jetbrains.mps.openapi.editor.EditorContext;
import jetbrains.mps.openapi.editor.c... | 44.290816 | 186 | 0.769957 |
ac8204243f662f3936058124bb430739b2868d90 | 38 | class _lNP6WbU {
}
class K05pD {
}
| 4.75 | 16 | 0.605263 |
227d99de697f629fa85c0b81fd2338ebbc323a2c | 2,946 | package org.jcodec.algo;
import org.jcodec.common.model.ColorSpace;
import org.jcodec.common.model.Picture;
import org.jcodec.common.model.Plane;
import org.jcodec.common.model.Size;
/**
* This class is part of JCodec ( www.jcodec.org ) This software is distributed
* under FreeBSD License
*
* @author The JCodec ... | 35.493976 | 118 | 0.554311 |
54be8d2c0ec89d8ccfa8b445d5ff7d9ddd6f69dd | 5,695 | /*
* tapi-common,tapi-dsr,tapi-path-computation,tapi-eth,tapi-virtual-network,tapi-topology,tapi-notification,tapi-oam,tapi-photonic-media,tapi-connectivity API
* tapi-common,tapi-dsr,tapi-path-computation,tapi-eth,tapi-virtual-network,tapi-topology,tapi-notification,tapi-oam,tapi-photonic-media,tapi-connectivity API... | 34.515152 | 190 | 0.755048 |
4ed97178f667ab949a22560c359f790985d23266 | 10,008 | // Copyright 2010 Google, Inc. All rights reserved.
// Copyright 2009 John Kristian.
//
// 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
/... | 31.670886 | 102 | 0.652678 |
52afd386bb4afd29403191416d6c16a84c2bc330 | 232 | package com.oc.hawk.api.constant;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
public class AccountHolder {
private Long id;
public AccountHolder(Long id) {
this.id = id;
}
}
| 14.5 | 35 | 0.702586 |
2fd62b618250d091cd7303fe8ac04985024b3cd9 | 1,051 | package com.clavardage.core.database.queries.inserts;
import com.clavardage.core.database.queries.QueryParameters;
import java.sql.SQLException;
import java.util.ArrayList;
public class NewConversationInsertQuery extends InsertQuery {
private static final String QUERY = "INSERT INTO chat_room (name, users_number... | 33.903226 | 98 | 0.664129 |
4e61b8893734b1497ed1626dc0c6ed8a92529197 | 1,645 | /*
* Copyright 2012 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 ... | 35 | 101 | 0.715502 |
b63964e009120835e366b0f9802e01a3e6e28368 | 987 | package com.mysite.core.services.impl;
import com.mysite.core.services.ConfigurationService;
import com.mysite.core.services.Student;
import org.osgi.service.component.annotations.Activate;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.metatype.annotations.Designate;
import com.mys... | 25.307692 | 71 | 0.758865 |
7114e1949256c3bb9f8fc4cbd4c618c544453cb6 | 605 | package com.michael.attackpoint.discussion;
import com.michael.attackpoint.discussion.data.DiscussionRepository;
import com.michael.attackpoint.discussion.data.DiscussionRepositoryImpl;
/**
* Created by michael on 5/5/16.
*/
public class DiscussionRepositories {
private DiscussionRepositories() {
// no... | 25.208333 | 72 | 0.715702 |
b236000fb0ed2b293852a20b80414a0c9bfd6803 | 1,658 | /**
* created Jun 9, 2006
*
* @by Marc Woerlein (woerlein@informatik.uni-erlangen.de)
*
* Copyright 2006 Marc Woerlein
*
* This file is part of parsemis.
*
* Licence:
* LGPL: http://www.gnu.org/licenses/lgpl.html
* EPL: http://www.eclipse.org/org/documents/epl-v10.php
* See the LICENSE file in the p... | 25.507692 | 79 | 0.677925 |
b1eb1c40816265191e5e6866d39f3499c0ff48a8 | 94 | package wx.ds.graph.search.bfs;
/**
* Created by apple on 16/5/15.
*/
public class BFS {
}
| 11.75 | 31 | 0.638298 |
664482e8fab29d0de08a4b45f829690cde8fcc11 | 192 | package com.codewithmosh;
public class Main41java {
public static void main(String[] args) {
int result = (int)Math.round(Math.random()*100);
System.out. println(result);
}
} | 21.333333 | 53 | 0.671875 |
2e57fe151e1f844404eba1053a5cd8c760bbf98b | 29 | public class Problem{
}
| 7.25 | 21 | 0.62069 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.