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 |
|---|---|---|---|---|---|
3363005bdf8208cc0286b9b2a78871a8ad6baead | 1,186 | package com.thebluealliance.androidclient.subscribers;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.thebluealliance.androidclient.listitems.ContributorListElement;
import com.thebluealliance.androidclient.listitems.ListItem;
import java.util.Arra... | 32.944444 | 96 | 0.705734 |
bf4a86360a41b5f86f1e4f813d22f392a7fa5053 | 4,390 | /*
* 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 ... | 33.769231 | 78 | 0.69385 |
429bf627e8c22a85eeedbd73958d2c41e008b8c4 | 3,439 | //<start id="ne-setup"/>
protected void doPost(HttpServletRequest request,
HttpServletResponse response, Session session)
throws ServletException, IOException, TheBlendException {
boolean isMultipart = ServletFileUpload.isMultipartContent(request);
if (!isMultipart) {
throw new TheBlendException("Invalid r... | 27.07874 | 94 | 0.614423 |
8d51bb58fc76c78b44a6a11d4fe58acaef85b5cb | 683 | package com.facebook.react.fabric.mounting.mountitems;
import com.facebook.react.bridge.ReadableMap;
import com.facebook.react.fabric.mounting.MountingManager;
public class UpdatePropsMountItem implements MountItem {
private final int mReactTag;
private final ReadableMap mUpdatedProps;
public UpdateProps... | 29.695652 | 72 | 0.736457 |
7a5a40ce876c904a87d4526725b9dff7980f6fbb | 5,151 | package ca.uhn.fhir.jpa.binary.svc;
/*-
* #%L
* HAPI FHIR Storage api
* %%
* Copyright (C) 2014 - 2022 Smile CDR, 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
*
* h... | 32.396226 | 125 | 0.763735 |
6ef44dd784fff0cd8a1d6e0632b9d62b2a1f1195 | 151 | package org.xpdojo.designpatterns._03_behavioral_patterns._07_observer.chat;
public interface Subscriber {
void handleMessage(String message);
}
| 21.571429 | 76 | 0.821192 |
e9b3c66ce9320db1f38155b3a493a870e6de5312 | 2,434 | /**
* Superklassen Hus som er byggesteinen til subklassene Bolig og Leilighet.
*
* @author Mathias N Evensen
* @version 1.3
*/
public class Hus
{
private int gateNummer;
private String gateNavn;
private int pris;
private String type; //what type of house it is ex. Condo, Apartment, House etc
... | 22.330275 | 88 | 0.565325 |
867edb38e8594a7ca73a82a253d9b30506234c6a | 3,689 | // Copyright 2000-2020 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 ai.deepcode.jbplugin.ui.nodes;
import com.intellij.ide.IdeBundle;
import com.intellij.ide.projectView.PresentationData;
import com.intellij.ide.projectView.ViewSettings;... | 33.536364 | 149 | 0.731364 |
7adf6e8bcc80e9ee2f0b4e471009c1ec4d77a43a | 289 | package com.grizzly.rest.Model;
/**
* Implement this interface in the summoner class to perform any fallback operations when the rest call fails.
* Created by Fco Pardo on 8/24/14.
*/
public interface afterTaskFailure<T> {
<L extends Exception> void onTaskFailed(T result, L e);
}
| 28.9 | 110 | 0.740484 |
dd54359f51ebf50dde41824bb3adb4dfb840ba77 | 264 | package com.ja.smarkdown.model.config;
import com.ja.smarkdown.json.AbstractParser;
public class SmarkdownConfigurationParser extends
AbstractParser<SmarkdownConfiguration> {
public SmarkdownConfigurationParser() {
super(SmarkdownConfiguration.class);
}
} | 24 | 49 | 0.825758 |
be00d4238dd428583139c4c680316f2aec44282c | 1,428 | /*
* Copyright (c) 2010-2015 Pivotal Software, Inc. 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 req... | 29.142857 | 78 | 0.745798 |
7b4a1540837e22063f23ee50745f4674301f09b4 | 346 | package edu.bu.met.cs665.dataProcessingCommand;
import java.util.ArrayList;
import java.util.List;
public class DataProcessor {
/** a list of command to store history of commands*/
private List<Command> history = new ArrayList<>();
public void storeAndExecute(final Command cmd){
this.history.add(cmd);
... | 21.625 | 54 | 0.716763 |
81d3076084a9fb6e322e1cf2c850eca13b1a7d43 | 1,393 | package com.galaxy.galaxyquests.storage.adapters;
import com.google.gson.*;
import com.galaxy.galaxyquests.objects.user.TimedQuestData;
import me.hyfe.simplespigot.storage.adapter.Adapter;
import java.lang.reflect.Type;
import java.time.ZonedDateTime;
public class TimedQuestDataAdapter implements Adapter<TimedQuestD... | 46.433333 | 133 | 0.74659 |
02272abf71985d170e0d71d515047d4e302fa84f | 1,331 | package neal.java.zk;
import org.apache.zookeeper.*;
import java.io.IOException;
import java.util.concurrent.CountDownLatch;
public class ZKCreateGroup implements Watcher {
private static final int SESSION_TIMEOUT = 5000;
private ZooKeeper zk;
private CountDownLatch connectedSignal = new CountDownLatch(... | 30.25 | 87 | 0.677686 |
b61c4f446f71690b3cb25af30debe3b1d186cd96 | 4,110 | package com.zzw.wexinsample.ui.widget;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.drawable.ColorDrawable;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import android... | 28.344828 | 115 | 0.542579 |
16cde3f6cddac5a302e87dfc59fe0987d656ce38 | 1,026 | package io.tacsio.envdocker;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
impo... | 23.318182 | 68 | 0.780702 |
d84b413c5138a40b8ff5e251ca4838db3d732132 | 2,275 | package org.woo.context;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.util.HashMap;
import java.util.Map;
public class ApiRe... | 25.277778 | 90 | 0.665934 |
61c9ed9a61b079edbcfea8fa9bbf151b6cf1517e | 886 | package com.myc0058.paypush.Response;
import java.util.HashMap;
import java.util.Map;
/**
* A param for checking a IOS Receipt.
*
* @author YoungChul Mo
* @since 2016-04-24
*/
public class IOSPushsResponse {
private Integer successCount;
private Integer failCount;
//IOSPushsParam에서 isMoreDetail 변수가 true... | 22.15 | 72 | 0.738149 |
b9c2a5e3b4bb927d22fd0ca4e7641471b1db50aa | 4,269 | package unit.com.bitdubai.fermat_cbp_plugin.layer.network_service.transaction_transmission.developer.bitdubai.version_1.structure.TransactionTransmissionAgent;
import com.bitdubai.fermat_api.layer.all_definition.common.system.annotations.NeededAddonReference;
import com.bitdubai.fermat_api.layer.all_definition.common.... | 47.966292 | 169 | 0.821504 |
4fb6532c35b24cbaf5901607452dd1d251a6dc7b | 1,025 | package com.jeiker.retry.service.impl;
import com.jeiker.retry.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.remoting.RemoteAccessException;
import org.springframework.retry.annotation.Backoff;
import org.springframework.retry.annotation.Recover;
import org.springframework.retry.ann... | 27.702703 | 64 | 0.713171 |
a7b941b45a0791766f37dcc02a1b307261ececc5 | 2,604 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/vision/v1p2beta1/image_annotator.proto
package com.google.cloud.vision.v1p2beta1;
public interface AnnotateFileResponseOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.vision.v1p2beta1.AnnotateFileR... | 27.702128 | 101 | 0.684332 |
d214838ea5ea6f7297e53d59de1354baf2d4f891 | 12,244 | /*
* Copyright 2013-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 33.271739 | 142 | 0.767233 |
56cf1f68f7c5a462d72e0406b78d7061b5cafcdd | 9,247 | /*
* Copyright (c) 2016, Salesforce.com, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of c... | 47.178571 | 227 | 0.687466 |
f36eccdab75427ff5cf2d1c0e1cbdbff00e4e2c8 | 214 | package org.bvoid.app.example.gritzer.input;
import org.bvoid.engine.geom.Point2D;
public class DemoCanvasController implements Controller {
@Override
public void mouseDragged(Point2D mousePosition) {}
}
| 16.461538 | 57 | 0.78972 |
5299f05efee07e832a4e460b5aaa0997c874fc67 | 10,461 | /*
* Copyright 2016 Quatico Solutions 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... | 31.133929 | 144 | 0.75509 |
5ba6330b621cc0acff2500117ed75632d7a39134 | 2,192 | /*
* Copyright (C) 2012 Zach Melamed
*
* Latest version available online at https://github.com/zach-m/jonix
* Contact me at zach@tectonica.co.il
*
* 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 ... | 30.027397 | 83 | 0.716241 |
95459fd63139b449a0071bddd793bd2dd04b90cc | 270 | package com.jtt.hhl.service;
/**
* @Description: META-INF.dubbo service接口
* @Author: Herman
* @CreateDate: 2019/1/5 10:48
*/
public interface TestDubboService {
/**
* 测试接口
* @param arg
* @return
*/
String testDubboService(String arg);
}
| 16.875 | 41 | 0.618519 |
3bada3c3b1880ac75eca386763b355f18cb6ab31 | 967 | package com.yaowei.ncov.module;
import org.nutz.dao.Dao;
import org.nutz.ioc.Ioc;
import org.nutz.ioc.impl.NutIoc;
import org.nutz.ioc.loader.combo.ComboIocLoader;
/**
* 这个类做出来是给jsp获取ioc,dao用的。
* 但是发现这个做法可能导致异常 com.alibaba.druid.pool.DataSourceClosedException: dataSource already closed
* 使用另外的方法更佳节。
... | 21.488889 | 94 | 0.649431 |
b2a52bf3c10120a2938103a309cab3062fe2fe64 | 2,364 | package info.hiergiltdiestfu.aws.neptune.graphml;
import java.io.IOException;
import javax.xml.bind.JAXBException;
import org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource;
import org.apache.tinkerpop.gremlin.structure.Graph;
import org.apache.tinkerpop.gremlin.tinkergraph.structure.Tinke... | 24.884211 | 85 | 0.728849 |
c3915944d923662d2559cc94e750b412f0748afa | 160 | package org.apache.hadoop.corona;
import java.util.List;
public interface SessionListener {
public void notifyGrantResource(List<ResourceGrant> granted);
}
| 20 | 63 | 0.80625 |
60012495344e1da7e19a505987173f2a7c6a5083 | 105 | package com.androthink.server.callback;
public interface ServerCallBack {
void onServerStopped();
}
| 17.5 | 39 | 0.780952 |
3a2684f195d5961fbf0ca2d95fbf7662af1de877 | 810 | package com.tiny.demo.firstlinecode.kfysts.chapter02;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import com.tiny.demo.firstlinecode.R;
import com.tinytongtong.tinyutils.LogUtils;
public class Chapter02ThirdActivity extends... | 33.75 | 111 | 0.766667 |
9232c2bf1403626a1f2e0e194c5e34ec0ec75eac | 124 | package ro.training.java.c06._04_lambda;
public interface SomeStringFunction {
String operateOnString(String input);
}
| 20.666667 | 41 | 0.798387 |
44368913043e37ae0bcd0e64d201388d12045641 | 2,600 | package vital.splitspace.contentManagement;
import java.util.ArrayList;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.Input;
import vital.splitspace.drawable.Drawable;
import vital.splitspace.entity.Entity;
import vital.splitspace.entity.PlayerBullet;
import vital... | 21.666667 | 65 | 0.69 |
8088f16cf89d342e9b4bff4381d4c7d869fd37db | 1,425 | /**
* This file was auto-generated by the Titanium Module SDK helper for Android
* Appcelerator Titanium Mobile
* Copyright (c) 2009-2018 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*
*/
p... | 26.886792 | 77 | 0.765614 |
5432b8ff4c8e7887e14d6c53a0c7b9af54f403b7 | 2,287 | /*
* Copyright 2018-present Open Networking Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | 42.351852 | 163 | 0.752514 |
b51ba7d96562a08aeffd2c76d48a193679ba5a0d | 319 | package com.google.engedu.wordladder;
/**
* Created by Ajacob2609 on 6/19/2017.
*/
public class WordNode {
String word;
int numSteps;
WordNode pre;
public WordNode(String word, int numSteps, WordNode pre){
this.word = word;
this.numSteps = numSteps;
this.pre = pre;
}
}
| 17.722222 | 61 | 0.623824 |
8de9b6b01c581a3029e8701e521ceebbd8da90ae | 4,360 | /*
* Copyright 2016 Bill Bejeck
*
* 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 ... | 42.330097 | 142 | 0.768578 |
0585215486e98c5e0ef4da65b9d7369e2ae97170 | 420 | package net.thesimpleteam.jrevolt.event;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class ServerDeletedEvent implements Event {
@Expose
@SerializedName("id")
private final String serverId;
public ServerDeletedEvent(String serverId) {
... | 21 | 50 | 0.719048 |
f4dbf5cc3a9f9ec965425bf249f9b15c6463c8e5 | 4,774 | package pm.n2.parachute.render;
import com.google.gson.JsonObject;
import com.mojang.blaze3d.systems.RenderSystem;
import fi.dy.masa.malilib.util.JsonUtils;
import fi.dy.masa.malilib.util.PositionUtils;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft... | 32.924138 | 123 | 0.616045 |
b888f706c6b5033071d0dc348f56806188b5e6a6 | 12,191 | package com.solibri.smc.api.examples.beginner;
import java.awt.AlphaComposite;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import java.awt.Shape;
import java.awt.geom.AffineTransform;
import java.awt.geom.GeneralPath;
import java.awt.image.BufferedIma... | 34.053073 | 114 | 0.75162 |
380c3d62898065ca9aecfcf1d554792d0ca650e2 | 647 | package com.flixned.streamingservice.services;
import com.flixned.streamingservice.common.models.Stream;
import com.flixned.streamingservice.repositories.StreamRepository;
import org.springframework.stereotype.Service;
@Service
public class StreamService {
private final StreamRepository streamRepository;
pu... | 26.958333 | 66 | 0.772798 |
4d024a7b81bd125f4e6d8931bc9b0cae87882127 | 98 | /**
* Data Access Objects used by WebSocket services.
*/
package com.quizzly.web.websocket.dto;
| 19.6 | 50 | 0.734694 |
7668912ca1758a245d847cea0df86226547a5824 | 1,397 | package com.bazl.dna.caseinfo.reg.controller.delegate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import com.bazl.dna.caseinfo.reg.common.Constants;
import com.bazl.dna.lims.model.po.Lo... | 33.261905 | 106 | 0.753042 |
317c09292f03fb939e8847c8c78faa7124ad0e40 | 3,803 | package com.ms_square.etsyblur;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.annotation.TargetApi;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.os.Build;
import android... | 39.206186 | 126 | 0.626085 |
cd1af2df6e32148e6ac057e80e14cd8a2fb108bc | 44,853 | /*******************************************************************************
* Copyright (c) 2004 Actuate Corporation.
* 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, and is availabl... | 25.911612 | 187 | 0.679486 |
2fc191f4987ed46911de293b07fbf8cd991271d7 | 356 | package com.luneruniverse.minecraft.mod.nbteditor;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import net.fabricmc.api.ModInitializer;
public class NBTEditor implements ModInitializer {
public static final Logger LOGGER = LogManager.getLogger("nbteditor");
@Override
pub... | 19.777778 | 71 | 0.783708 |
df510a9e891b55e2c67fd2001c67f046bec4adba | 4,583 | //-----------------------------------------------------------------------
// Copyright 2011 Ciaran McHale.
//
// 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... | 26.80117 | 73 | 0.663103 |
813023075cb92ea242657c8773f35d32047fe517 | 989 | package me.kadary.microservices.blog.posts;
import org.springframework.data.annotation.Id;
public class Post {
@Id
private String postId;
private String userId;
private String title;
private String content;
public Post() {
}
public Post(String userId, String title, String content) {
this.setUserId... | 14.984848 | 73 | 0.665319 |
321a4d56737dc6a1186ec84d047eca6245b7154f | 321 | package mb.tiger.intellij;
import mb.spoofax.intellij.IntellijFileElementType;
import mb.tiger.spoofax.TigerScope;
import javax.inject.Inject;
@TigerScope
public class TigerFileElementType extends IntellijFileElementType {
@Inject public TigerFileElementType() {
super(TigerPlugin.getComponent());
}
}... | 22.928571 | 67 | 0.785047 |
344f85420437781617cb87e3037d8c4a200149bc | 1,799 | /**
* 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
* distrib... | 34.596154 | 92 | 0.753752 |
ac1a455a3cdffd9a025fec0ef8662ee4dd47fa10 | 4,660 | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0 and the Server Side Public License, v 1; you may not use this file except
* in compliance with, at your election, the Elastic License 2.0 or the Server... | 43.551402 | 138 | 0.672532 |
24f4a4f718166d4ca9770dc9db16cf0ef4463b76 | 296 | package at.wrk.fmd.mls.amqp;
/**
* This class contains the names of replay related exchanges and headers
*/
public class ReplayConstants {
public static final String REPLAY_TRIGGER_EXCHANGE = "replay.trigger";
public static final String ROUTING_KEY_HEADER = "x-replay-routing-key";
}
| 26.909091 | 75 | 0.756757 |
88a40cc41b5766742eafc963b32ad6c695325cb0 | 999 | package main;
import org.junit.Before;
import edge.Edge;
import ghandler.GraphHandler;
import graph.Graph;
public class Main {
public static void main(String[] args) throws Exception {
/*GraphHandler gh = new GraphHandler();
Graph g = gh.readGraph("input.txt");
if (g != null) {
... | 23.232558 | 61 | 0.591592 |
db80bdd5c6b48efee9f2bfcfdab60465d32592de | 600 | // Generated source
package org.jetbrains.wip.protocol.network;
/**
* This method sends a new XMLHttpRequest which is identical to the original one. The following parameters should be identical: method, url, async, request body, extra headers, withCredentials attribute, user, password.
*/
public final class ReplayXH... | 33.333333 | 219 | 0.741667 |
bf0ae2d65528aae7bf1ce8d428c74890df3e4455 | 3,941 | /*
* (C) Copyright IBM Corp. 2016,2020
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.ibm.whc.deid.models;
import java.io.Serializable;
import java.security.SecureRandom;
/**
* Unicode compliant CharacterRange. This represents a range of characters and should be compliant
* with UTF-16, with... | 28.766423 | 100 | 0.673433 |
333a5397b5ec4e939f925cd7c07a7ac78d6591f2 | 3,598 | package no.nav.data.polly.informationtype.dto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.Singular;
import lombok.experimental.FieldNameConstants;
import lombok.extern.slf4j.Slf4j;
impor... | 35.98 | 100 | 0.715675 |
a84bb8194bb1b7afa2b7dfb6cb31adce06ef8e6c | 3,555 | package com.blogofbug.tests;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.util.List;
import javax.swing.ButtonGroup;
import javax.swing.JComponent;
import javax.swing.JFrame;
import javax.swing.JRad... | 25.392857 | 65 | 0.638819 |
ba255b14b3bd947eb6c8218302e3eb955064a83e | 1,515 | package com.cspirat;
import java.util.HashMap;
/**
* Project Name : Leetcode
* Package Name : leetcode
* File Name : WordPattern
* Creator : Edward
* Date : Nov, 2017
* Description : 290. Word Pattern
*/
public class WordPattern {
/**
* Given a pattern and a string str, find if str follows the same pa... | 28.584906 | 124 | 0.535314 |
78e418d70b03fd37a44ed98d022dcd2b42f198af | 505 | /*
* Created by Itzik Braun on 12/3/2015.
* Copyright (c) 2015 deluge. All rights reserved.
*
* Last Modification at: 3/12/15 4:27 PM
*/
package com.braunster.chatsdk.interfaces;
/**
* Created by braunster on 30/06/14.
*/
public interface AppBatchedEvents {
public boolean onUsersBatchDetailsChange();
... | 20.2 | 50 | 0.726733 |
2dc726ad4b9465d1027f458f018b3ed35c2486a7 | 11,893 | /*
* 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 servidor;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.InputStream;
import java.io.InputStream... | 49.554167 | 109 | 0.544858 |
4adc5ccbe627df85489941592872a662d7610c6d | 1,603 | package com.test;
public class TestString {
final static double PI=3.1415;
public static void main(String[] args) {
String a="['I6','I7','I8']";
String bStrings=a.substring(2,a.length()-2);
String[] cStrings=bStrings.split("\',\'");
System.out.println(bStrings);
for (String string : cStrings) {
... | 25.444444 | 62 | 0.435434 |
6bae66bc5f0cb205f8edf28ccd60b2aa0e0b6283 | 14,332 | /*
* 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 ap... | 29.429158 | 90 | 0.690832 |
2be276b431cb87e2c34fea55633094cddca5ca38 | 6,372 | package com.unideb.qsa.calculator.implementation.calculator;
import static com.unideb.qsa.calculator.implementation.calculator.helper.CalculatorHelper.copyOf;
import static com.unideb.qsa.calculator.implementation.calculator.helper.CalculatorHelper.factorial;
import static java.lang.Math.exp;
import static java.lang.M... | 36 | 104 | 0.62194 |
1fe21ec13a66cf6d992ffb67133b87b839954ba8 | 1,152 | package com.github.akraskovski.axon.playground.queries;
import com.github.akraskovski.axon.playground.api.core.AdApprovedEvent;
import com.github.akraskovski.axon.playground.api.core.AdFinishedEvent;
import com.github.akraskovski.axon.playground.queries.domain.model.AdSummary;
import com.github.akraskovski.axon.playgr... | 36 | 89 | 0.795139 |
f57be41c0cc91bbda2e0b5b6336e49bf587f6b40 | 982 | package ru.yandex.qatools.allure.jenkins.utils;
import hudson.model.Result;
import java.util.Map;
/**
* @author Egor Borisov ehborisov@gmail.com
*/
public class BuildSummary {
private Map<String, Integer> statistics;
public BuildSummary withStatistics(final Map<String, Integer> statistics) {
this... | 20.893617 | 79 | 0.64053 |
1f4fc43fca1fbac37b8de94d9de3392574c0c80b | 17,305 | package com.celeste.library.core.util;
import java.lang.annotation.Annotation;
import java.lang.reflect.*;
import java.util.Arrays;
import lombok.AccessLevel;
import lombok.NoArgsConstructor;
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public final class Reflection {
public static <T> Class<T> getClazz(final ... | 35.388548 | 134 | 0.689396 |
f519d3b55f0dfb4e96458f3cecbfb4b7236c3c8f | 90,303 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/monitoring/v3/metric.proto
package com.google.monitoring.v3;
/**
* <pre>
* Represents the values of a time series associated with a
* TimeSeriesDescriptor.
* </pre>
*
* Protobuf type {@code google.monitoring.v3.TimeSeriesData}
*/
pub... | 35.247073 | 196 | 0.641983 |
9e51a0886666a4fb52440db85be2dbe5d847caf4 | 1,400 | package com.github.nkolytschew1.aws.core.config.security;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.Order;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.spring... | 35.897436 | 123 | 0.800714 |
1b860d6fc4401c141420cea99e2e7b66eab9863a | 184 | /**
* Redis specific query execution engine.
*/
@org.springframework.lang.NonNullApi
@org.springframework.lang.NonNullFields
package org.springframework.data.redis.repository.query;
| 26.285714 | 56 | 0.809783 |
107403c06c2b857bb9e80387af15151d033a756c | 26,823 | package com.asura.agent.entity;
/**
* <p></p>
* <p/>
* <PRE>
* <BR>
* <BR>-----------------------------------------------
* <BR>
* </PRE>
*
* @author zhaozq14
* @version 1.0
* @date 2016-09-15 22:44:11
* @since 1.0
*/
public class MonitorConfigureEntity {
/**
* This field corresponds to the data... | 27.066599 | 91 | 0.668904 |
acc6ddd4c2fcdc98957c62ec60b65eb972461c22 | 3,745 | package XMLScanner;
import org.codice.testify.objects.*;
import org.codice.testify.testParsers.TestParser;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Hashtable;
import java.util.Scanner;
/**
* The XML... | 44.058824 | 174 | 0.669426 |
28b88ed02111494118a458edcb92e3e08ffc1b8f | 978 | package domain;
import com.google.gson.annotations.Expose;
import java.util.LinkedList;
import java.util.List;
public class Administrators{
@Expose private final List<String> administrators;
@Expose private final Campus campus;
public Administrators(Campus campus){
this.campus = campus;
... | 23.853659 | 103 | 0.611452 |
c183e41e7d651402d3cbf0888f8b703f52dc9247 | 2,424 | package com.communote.server.core.blog;
import com.communote.server.api.core.event.Event;
/**
* @author Communote GmbH - <a href="http://www.communote.com/">http://www.communote.com/</a>
*/
public class TopicHierarchyEvent implements Event {
/**
* Possible types this event was fired for.
*/
public... | 24.484848 | 94 | 0.590759 |
e7109da8ff97501aba1f62bb28859dcfe1e45994 | 1,211 | package com.arslinthboot.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.*;
import lombok.experimental.SuperBuilder;
import java.util.Date;
/**
* @author Arslinth
* @ClassName SysJobL... | 15.727273 | 54 | 0.612717 |
fc76129339cdab4ce24cd63bd10d3acb868e96df | 899 | package com.pattern.proxy.dynamicproxy.jdkproxy;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
/**
* @author healk
*/
public class JdkProxy implements InvocationHandler {
private Object target;
/**
* 拿到目标对象
* @param obj
* @retur... | 22.475 | 89 | 0.632925 |
d13f6a8a82e6c3bde21aa94e40a80dda582605cd | 2,386 | package org.crazyit.myphoneassistant.common.rx.subscriber;
import android.content.Context;
import org.crazyit.myphoneassistant.common.util.ProgressDialogHandler;
import io.reactivex.disposables.Disposable;
/**
* Created by Administrator on 2018/6/12.
*/
//因为这个地方我们没有实现onNext这个方法所以我们将这个类定义为了abstract抽象类.
public a... | 24.854167 | 144 | 0.64627 |
3737c8245ea5961de989cb2a516d5cbdf82b2f28 | 1,482 | package com.leetcode.stock.one;
/**
*
* 198. 打家劫舍
*
* 你是一个专业的小偷,计划偷窃沿街的房屋。每间房内都藏有一定的现金,影响你偷窃的唯一制约因素就是相邻的房屋装有相互连通的防盗系统,如果两间相邻的房屋在同一晚上被小偷闯入,系统会自动报警。
*
* 给定一个代表每个房屋存放金额的非负整数数组,计算你在不触动警报装置的情况下,能够偷窃到的最高金额。
*
* 示例 1:
*
* 输入: [1,2,3,1]
* 输出: 4
* 解释: 偷窃 1 号房屋 (金额 = 1) ,然后偷窃 3 号房屋 (金额 = 3)。
* 偷窃到的最高金额 = 1 + 3... | 22.8 | 95 | 0.510796 |
4a112d59cc4f2b3365793644cdbc55607487fbd3 | 1,413 | /*
* Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: ... | 30.717391 | 136 | 0.760085 |
5146b8043b00fe840a3cf29d6d7642abb2edce4e | 642 | package com.training.browser;
import io.github.bonigarcia.wdm.WebDriverManager;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.firefox.FirefoxOptions;
public class FireFoxImplementation implements IBrowserImplementation {
@Override
public We... | 29.181818 | 70 | 0.761682 |
6e3cc3aebf9b131bd8950faa1736a27eae42cb5d | 726 | package com.knits.kncare.model;
import com.fasterxml.jackson.annotation.JsonBackReference;
import com.knits.kncare.model.base.AbstractMemberAuditableEntity;
import lombok.*;
import javax.persistence.*;
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "practice_a... | 23.419355 | 71 | 0.764463 |
6797db14a67979d3767c7fc7157c9833f7456577 | 485 | package Gameplay;
import Assests.MouseModel.MouseModel;
public class Gameplay
{
public static BirdCharacter[] characters = {BirdCharacter.THORD, BirdCharacter.THORD, BirdCharacter.BULK, BirdCharacter.BULK};
public static void main(String[] args)
{
for (BirdCharacter birdCharacter : characters)
... | 24.25 | 130 | 0.686598 |
490dcd8f05b4c8c2fc5512c81040bbab1b01ca04 | 8,552 | /*
* Copyright 2017 Apereo
*
* 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 wr... | 26.313846 | 108 | 0.762278 |
7ba10d6fe7009e96e6bc922f4f5d9a391fd1cb0e | 1,499 | /*
* Copyright 2015 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 a... | 27.254545 | 75 | 0.681121 |
ef241e46380750bcb3a4cf4bebac074f52604a21 | 1,703 | package controller;
import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import javax.enterprise.context.RequestScoped;
import javax.faces.context.FacesContext;
import javax.inject.Inject;
import javax.inject.Named;
import javax.persistence.EntityManager;
import javax.se... | 22.706667 | 101 | 0.77569 |
08f6e99c8ee478d754787ac80ddbd4a4f5d7624c | 1,789 | import java.util.*;
public class Prog7{
public static void main(String[] agr){
//int[] a={6, 2, 5, 3};
//int[] b={1, 2};
//int[] c={1};
//shiftLeft(a);
//shiftLeft(b);
//shiftLeft(c);
//System.out.println(Arrays.toString(a));
//System.out.println(Arrays.toString(b));
//System.out.p... | 27.106061 | 76 | 0.544438 |
db4cf4d4ba22bb133eef8b3f3b6d943f2d43837e | 1,290 | /*
* 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.hantsylabs.example.spring.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.anno... | 28.043478 | 94 | 0.804651 |
384f8f5fe2c9175e824b3f1d6c26b7b1cefdf347 | 3,527 | package de.tudarmstadt.informatik.fop.breakout.controllers;
import de.tudarmstadt.informatik.fop.breakout.models.SoundType;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.newdawn.slick.openal.Audio;
import org.newdawn.slick.openal.SoundStore;
import java.io.IOException... | 29.889831 | 100 | 0.614687 |
55ae183f7a7cba3e2d707d905e0137c420841e11 | 637 | package com.crazicrafter1.siege.tabcomplete;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import java.util.ArrayList;
import java.util.List;
public class TabInvader extends BaseTabCompleter {
public TabInvader() {
super("invader");
}
@Override
public List<Stri... | 21.965517 | 107 | 0.638932 |
21bf80f3c2d3edcdb73dac7eb250675c87da1d95 | 2,413 | /*
* Copyright (c) 2018 - Frank Hossfeld
*
* 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 ... | 30.544304 | 81 | 0.630336 |
d5c56818b67695e9d9076b4511b52953b7158fcc | 4,958 | package org.unsurv;
import android.app.job.JobParameters;
import android.app.job.JobService;
import android.content.SharedPreferences;
import android.os.AsyncTask;
import android.os.Handler;
import android.os.PersistableBundle;
import android.preference.PreferenceManager;
import android.util.Log;
import androidx.life... | 31.579618 | 129 | 0.726503 |
e0daffc5ae230dc29edead6895d436cf93ff01b4 | 2,515 | package ch.heigvd.quaris.api;
import ch.heigvd.quaris.api.definitions.RegistrationsApi;
import ch.heigvd.quaris.api.dto.RegistrationDTO;
import ch.heigvd.quaris.api.dto.RegistrationSummaryDTO;
import ch.heigvd.quaris.repositories.ApplicationRepository;
import ch.heigvd.quaris.models.Application;
import java.util.Arra... | 39.296875 | 137 | 0.715308 |
141778c576179f34872b807a4ae82da52a1b6c2a | 4,180 | package com.ivan.tl.service.todo.dynamodb;
import com.ivan.tl.meta.DynamoDBProfile;
import com.ivan.tl.model.TodoItem;
import com.ivan.tl.model.TodoItemId;
import com.ivan.tl.model.TodoItemStatus;
import com.ivan.tl.service.todo.TodoListService;
import com.ivan.tl.service.todo.dynamodb.entity.TodoItemEntity;
import co... | 40.192308 | 136 | 0.730622 |
29893668023fd9ab2c8adfe9e88eed1c9e35d394 | 1,577 | package com.google.android.play.core.splitcompat;
import android.content.Context;
import android.util.Base64;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.concurrent.Executor;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolE... | 34.282609 | 144 | 0.696259 |
8496fbece21176fe17869f530cc9af11c084e05e | 1,987 | import com.intellij.ide.plugins.PluginManagerCore;
import com.intellij.ide.util.PropertiesComponent;
import com.intellij.openapi.extensions.PluginId;
public class PluginProperties {
private static final PluginProperties instance = new PluginProperties();
private final PropertiesComponent applicationProperties... | 49.675 | 144 | 0.719175 |
e134a70ce64b8090ef62829e32ddf99f2d064a1a | 11,036 | package tv.dyndns.kishibe.qmaclone.client.ui;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
import com.google.gwt.dom.client.ImageElement;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.DomEve... | 27.59 | 135 | 0.750181 |
a4d6b7661691afb34e1a70e7fb5f6fa605c1fde6 | 527 | package com.blastedstudios.gdxworld.util;
import java.io.FileFilter;
import java.io.InputStream;
import java.io.OutputStream;
import net.xeoh.plugins.base.Plugin;
import com.badlogic.gdx.files.FileHandle;
public interface ISerializer extends Plugin{
Object load(InputStream stream) throws Exception;
Object load(Fi... | 29.277778 | 69 | 0.817837 |
bd13afce8dcb74cbdefc5d876ab1bc5a35925698 | 574 | package net.minecraft.src;
class TMIStateButtonData {
public static final String COPYRIGHT = "All of TooManyItems except for thesmall portion excerpted from the original Minecraft game is copyright 2011Marglyph. TooManyItems is free for personal use only. Do not redistributeTooManyItems, including in mod packs, and d... | 38.266667 | 331 | 0.773519 |
9c666417d68ee6f9af7963bddfc593cca87cf92c | 735 | package org.applesline.aim.common.codec;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import io.netty.channel.ChannelHandler.Sharable;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.MessageToMessageDecoder;
import org.applesline.aim.common.req.AimRequest;
imp... | 28.269231 | 102 | 0.746939 |
39f22cca83888f0b9d0fd6fff6013420911c2864 | 43 | package ast;
public interface ASTNode {
}
| 8.6 | 26 | 0.744186 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.