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 |
|---|---|---|---|---|---|
704c47fbb3ea9654a6360a252498effe6c0db86c | 2,726 | /*
* Druid - a distributed column store.
* Copyright 2012 - 2015 Metamarkets Group 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-... | 35.402597 | 107 | 0.724505 |
f6c31f9faa5c14e0ab3fa62e051edd47613642d6 | 545 | // @formatter:off
/*
* Unlicensed, generated by javafx.ftl
*/
package javafx.scene.control;
/**
* {@link Label}建構器延伸(供客製化)
*
* @author JarReflectionDataLoader-1.0.0
* @version jfxrt.jar
* @param <Z> 要建構的物件型態(需繼承{@link Label})
* @param <B> 建構器本身的型態(需繼承{@link LabelMaker})
*/
@javax.annotation.Ge... | 23.695652 | 76 | 0.669725 |
ec41d253aac0a87bb4b9db60dfdebb838035748b | 10,425 | /*
* Copyright 2018-2019 adorsys GmbH & Co KG
*
* 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 ... | 69.039735 | 249 | 0.722206 |
1dd9dda1ee14aea38bb96a1e26a14b578d98412f | 1,291 | package com.mongodb.connection;
public enum ServerType
{
STANDALONE {
@Override
public ClusterType getClusterType() {
return ClusterType.STANDALONE;
}
},
REPLICA_SET_PRIMARY {
@Override
public ClusterType getClusterType() {
return ClusterType... | 23.053571 | 49 | 0.569326 |
0cf3fc930fd54cced5a88674392c1d25592f0b45 | 2,115 | package eeg.useit.today.eegtoolkit.sampleapp;
import android.databinding.DataBindingUtil;
import android.databinding.Observable;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import com.choosemuse.libmuse.Muse;
import com.choosemuse.libmuse.MuseManagerAndroid;
import eeg.useit.today.eegt... | 36.465517 | 86 | 0.752719 |
c359949cc16eb2e673c7f10aaefc5d7853795f3f | 7,707 | package org.earthChem.presentation.jsf;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.faces.application.FacesMessage;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.context.FacesContext;
import org.earthChem.db.DBUtil;
impor... | 28.544444 | 135 | 0.730764 |
15f94fea2c545097b63a22f2a43996686f6779c8 | 2,396 | package com.urucas.popcorntimerc;
import android.app.Application;
import android.content.Context;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import com.urucas.popcorntimerc.socket.RemoteControl;
/**
* Created by Urucas on 8/18/14.
*/
public class PopcornApplication exte... | 30.329114 | 108 | 0.652337 |
3b8a3401825655962afe4e16785ba33aa4bbd8b8 | 4,290 | /**
* Copyright 2009 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 40.471698 | 98 | 0.77669 |
9b99542998a47f07b059e434a1259a3730a17f03 | 91 | /**
* Module and component lifecycle.
*
* @public
*/
package org.infinispan.lifecycle;
| 13 | 34 | 0.681319 |
2109c12720c590c4844a2fb6ac1886799aa46ade | 13,643 | /*
* Aipo is a groupware program developed by Aimluck,Inc.
* Copyright (C) 2004-2011 Aimluck,Inc.
* http://www.aipo.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, eit... | 24.987179 | 84 | 0.592318 |
60e388c58b03a47767b0e7c4987b773357ea8742 | 27,673 | /*
* Copyright 2021 Google 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 45.291326 | 100 | 0.730206 |
de9106b72ca7aed491f5fd5c11eb4dd51b36fde5 | 3,907 | package org.jfree.data.xy;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import org.jfree.chart.urls.StandardXYURLGenerator;
import org.jfree.chart.util.ParamChecks;
import org.jfree.util.ObjectUtilities;
import org.jfree.util.PublicCloneable;
public class YIntervalSeriesCollection e... | 32.02459 | 134 | 0.658562 |
16319c7f49e955c8c836ed2ede28a14120164ea0 | 1,991 | package gov.va.med.lom.javaBroker.rpc.user.models;
import gov.va.med.lom.javaBroker.rpc.BaseBean;
public class VistaSignonSetupResult extends BaseBean implements java.io.Serializable {
private boolean serverAvailable;
private String server;
private String volume;
private String uci;
private String... | 21.879121 | 87 | 0.652938 |
64ec8aaf15ab7abe5f950d470ee4e5c8d22baadf | 1,590 | import items.Music;
import junitparams.JUnitParamsRunner;
import junitparams.Parameters;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import static junitparams.JUnitParamsRunner.$;
@RunWith(JUnitParamsRunner.class)
public class MusicTest {
private stati... | 30.576923 | 107 | 0.711321 |
0444a4214bf9f00a714153fb2600d814f87e5c25 | 7,828 | package org.lealone.test.service.generated.executor;
import java.math.BigDecimal;
import java.sql.Array;
import java.sql.Blob;
import java.sql.Clob;
import java.sql.Date;
import java.sql.Time;
import java.sql.Timestamp;
import java.util.Map;
import java.util.UUID;
import org.lealone.db.service.ServiceExecutor;
import ... | 52.186667 | 223 | 0.633367 |
212b0524d661c1ec85aa540b8f85df02dba79868 | 1,318 | package org.asciidoc.intellij.psi;
import com.intellij.extapi.psi.ASTWrapperPsiElement;
import com.intellij.lang.ASTNode;
import com.intellij.psi.PsiReference;
import com.intellij.psi.impl.source.resolve.reference.ReferenceProvidersRegistry;
import org.apache.commons.text.StringEscapeUtils;
import org.jetbrains.annota... | 30.651163 | 81 | 0.700303 |
cbc38364d42d1ece7e44755347ea14b359e0ce94 | 1,998 | package org.bigbluebutton.common.messages;
import java.util.HashMap;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
public class EnableWhiteboardRequestMessage implements ISubscribedMessage {
public static final String ENABLE_WHITEBOARD_REQUEST = "enable_whiteboard_request";
public static fi... | 33.864407 | 114 | 0.746246 |
11439405f791648fdc6661ff2c46bf921da378e8 | 253 | package abstractDemo;
public class Main {
public static void main(String[] args) {
CustomerManager customerManager=new CustomerManager();
customerManager.baseDatabaseManager= new SqlServerDatabaseManager();
customerManager.getCustomer();
}
}
| 21.083333 | 70 | 0.786561 |
b973709d100401e21843e49c10b69b8ec7301265 | 6,598 | package ramdan.project.fintech.transfer.controller;
import lombok.AllArgsConstructor;
import lombok.val;
import org.springframework.beans.BeanUtils;
import org.springframework.http.ResponseEntity;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.PostMappin... | 37.91954 | 105 | 0.624886 |
782fa95fe380cf551a2c65901234cc7bb1a37cec | 1,041 | package org.platformlayer.ops.firewall.scripts;
import org.platformlayer.ops.OpsException;
import org.platformlayer.ops.firewall.FirewallRecord.Direction;
import org.platformlayer.ops.firewall.IptablesChain;
import org.platformlayer.ops.firewall.Transport;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
publ... | 27.394737 | 79 | 0.764649 |
4b7bcad882d0117d2be27223df8717cc2dcdfc9a | 4,192 | package com.linxiao.quickdevframework.sample.frameworkapi;
import android.content.Intent;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.view.View;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.core.app.NotificationCompat;
import com.linxiao... | 45.075269 | 104 | 0.703483 |
196e37f21ce6045b756eca7123deec603b8db6b3 | 6,187 | /*
* Copyright 2018 Joao Silva
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 39.916129 | 111 | 0.729918 |
44a424ca4548461d5f7bf5e6b7c84e303108ded9 | 383 | package com.ibm.airlytics.retentiontrackerqueryhandler;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class RetentionTrackerQueryHandlerApplication {
public static void main(String[] args) {
SpringApplication.r... | 27.357143 | 77 | 0.851175 |
8eeef618852418a3e1c4b4935610e880093ddca7 | 843 | package pingus.pieces.gui;
import gee.imaging.ImageToolkit;
import gee.imaging.sprites.Sprite;
import gee.imaging.sprites.animated.AnimatedSprite;
import java.awt.Image;
import pingus.PingusSprite;
public class StartPosSprite extends PingusSprite{
Image i = ImageToolkit
.getImage("/Ressource/data/images/core/edit... | 23.416667 | 70 | 0.725979 |
e835c4451985e7bea0f2c4f132c2f391ca7b7e3b | 297 | package com.gentics.mesh.server.cluster.test.task;
import com.gentics.mesh.server.cluster.test.AbstractClusterTest;
public abstract class AbstractLoadTask implements LoadTask {
protected AbstractClusterTest test;
public AbstractLoadTask(AbstractClusterTest test) {
this.test = test;
}
}
| 21.214286 | 64 | 0.808081 |
d05d16263d132857bbb535d0584e95699293872c | 2,635 | /*
* Copyright (c) 2002-2012 Alibaba Group Holding Limited.
* 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/LICENS... | 34.220779 | 118 | 0.68463 |
4ee84ce88a0f9866f4c5fb2d1e057368f7d82478 | 3,201 | /*
* Copyright 2014 Guidewire Software, Inc.
*/
package gw.internal.gosu.compiler;
/**
*/
public class UsingStatementTest extends ByteCodeTestBase
{
public void testUsingStatementBlockExecutes() throws Exception
{
invokeTestMethodAndVerifyAssertions( "testUsingStatementBlockExecutes", 1 );
}
public vo... | 29.366972 | 117 | 0.764761 |
5e6290041ed9dbdad67eeca0be1090f12ab932c7 | 5,643 |
package com.prowidesoftware.swift.model.mx;
import com.prowidesoftware.swift.model.mx.dic.*;
import com.prowidesoftware.swift.model.mx.AbstractMX;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annot... | 32.80814 | 884 | 0.707071 |
acdb6d4f0464f7848b2548591bd9580eb5b09593 | 4,728 | package org.ovirt.engine.core.common.businessentities.gluster;
import java.util.ArrayList;
import org.ovirt.engine.core.common.businessentities.BusinessEntityWithStatus;
import org.ovirt.engine.core.common.businessentities.IVdcQueryable;
import org.ovirt.engine.core.common.utils.ObjectUtils;
import org.ovirt.engine.c... | 32.163265 | 119 | 0.660321 |
f9a3f3e4786d57f5f788547b14ca8d2fbf12f1ad | 1,038 | package models;
import javax.persistence.Column;
import javax.persistence.Entity;
/**
* Created by rafaelle on 14/03/15.
*/
@Entity(name = "LinkDica")
public class LinkDica extends Dica {
@Column
private String link;
public LinkDica() {
}
public LinkDica(String usuario, String link) {
... | 21.183673 | 76 | 0.544316 |
83851a526d7862269fa8d3900a6f13f9903cf341 | 274 | package Restlet;
import org.restlet.resource.Resource;
public class StorybookResource extends Resource {
/*
* Resource: {sessionID}/Storybook
GET: public String[] getStorybookEntries(String sessionID) throws RemoteException,
SessionLogoutException;
*/
}
| 19.571429 | 84 | 0.755474 |
605441b3832a375c63068e708910c17d2a32d894 | 866 | package com.codingpan.bloomberg;
import edu.princeton.cs.algs4.StdOut;
public class PhoneInterview {
/**
* Recursive way of double for-loop
*
* @param m
* @param n
*/
public void recursiveDoubleForLoop(int m, int n) {
doubleForHelper(0, 0, m, n);
}
private void double... | 24.742857 | 68 | 0.538106 |
1cef2c55cb24a934147a1bedd8fba88aaab403da | 424 | package com.medusa.gruul.platform.model.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
/**
* @author whh
*/
@Data
public class TenementLoginDto {
@ApiModelProperty(value = "账号")
@NotBlank(message = "账号不能为空")
private String usernam... | 20.190476 | 47 | 0.71934 |
78ab009e0a8a2248ed052b8f5304fa7509771768 | 254 | package com.example.demo.accountms.domain.queries;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class FindBankAccountQuery {
private String accountNumber;
}
| 19.538462 | 50 | 0.84252 |
d4c9b1decb7be3f7d98f72c067defa6fbea6cbe9 | 2,588 | /*
* 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 under t... | 38.058824 | 182 | 0.752318 |
f27dbcceb7dab85b106f10676d4db5f77240caa0 | 3,046 | /**
* Copyright (C) GRyCAP - I3M - UPV
*
* <p>Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* <p>http://www.apache.org/licenses/LICENSE-2.0
*
* <p>Unless required by applicable law ... | 39.051282 | 80 | 0.745568 |
35e53f6f4b60fb293fd2d20bf331a575b86166f6 | 1,301 | package org.codehaus.mojo.castor;
/*
* Copyright 2001-2005 The Apache Software 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/LICE... | 30.255814 | 101 | 0.701768 |
164699900c5c61c3fedba22ae0bea32a30525e29 | 413 | package com.atguigu.order.api;
import com.atguigu.core.bean.Resp;
import com.atguigu.oms.entity.OrderEntity;
import com.atguigu.oms.vo.OrderSubmitVo;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
public interface GmallOrderApi {
@PostMapping("... | 31.769231 | 75 | 0.825666 |
eef1ca4b8b55d848983bc03ed354a08d6b9b67c5 | 2,031 | package com.loserico.defaultstaticmethod;
import java.util.function.Supplier;
/**
* Interface’s Default and Static Methods<p>
*
* Java 8 extends interface declarations with two new concepts: default and
* static methods.<br/>
*
* The difference between default methods and abstract methods is that ab... | 31.246154 | 80 | 0.732152 |
224a3dc5b44ae8d73945cd25a48cd796da43d737 | 2,476 | package com.zhisheng.examples.streaming.state;
import org.apache.flink.api.common.functions.RichMapFunction;
import org.apache.flink.api.common.state.ValueState;
import org.apache.flink.api.common.state.ValueStateDescriptor;
import org.apache.flink.api.common.typeinfo.TypeHint;
import org.apache.flink.api.common.typei... | 39.301587 | 128 | 0.605816 |
06169f98193f524a70c2466fd273812080d6add3 | 207 |
/*
* Copyright (C) 2015 Archie L. Cobbs. All rights reserved.
*/
/**
* Permazen CLI {@link io.permazen.cli.cmd.Command} related classes, including pre-defined commands.
*/
package io.permazen.cli.cmd;
| 20.7 | 100 | 0.700483 |
de7da6596a9d1cf35311d1df2e5a807e56e0674d | 4,400 | package cc.seeed.iot.adapter.set_node;
import androidx.recyclerview.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.RelativeLayout;
import com.facebook.drawee.view.SimpleDraweeView;
import java.util.ArrayL... | 33.082707 | 115 | 0.676818 |
3196cb542dc17be7f2a7d7b5f543735ad7397218 | 1,430 | package chapter6.jiyoung;
import java.io.IOException;
import java.io.PrintWriter;
import java.rmi.ServerException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@WebServlet("/jiyoung/gugu... | 26.481481 | 120 | 0.64965 |
d72f56e0a688e0fe5a106bee0bc2cd8ed4262406 | 18,652 | /*
* Copyright (C) 2005 - 2014 TIBCO Software Inc. All rights reserved.
* http://www.jaspersoft.com.
*
* Unless you have purchased a commercial license agreement from Jaspersoft,
* the following license terms apply:
*
* This program is free software: you can redistribute it and/or modify
* it under the terms... | 42.103837 | 131 | 0.628565 |
59bab67615df5ced318ac6d60dabfe345e8572e5 | 2,430 | /*
* 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 ... | 38.571429 | 103 | 0.703292 |
2f3572843c22c1dd914d648180b29730c853ff53 | 1,870 | package org.callimachusproject.engine.impl;
import javax.xml.stream.Location;
import javax.xml.stream.events.XMLEvent;
public class FallbackLocation implements Location {
public static Location newInstance(XMLEvent primary, XMLEvent secondary) {
return newInstance(primary.getLocation(), secondary.getLocation());
... | 27.5 | 75 | 0.729947 |
304a0aa0bdecf42cc4a2cf8d3856bb7da6ee2719 | 2,710 | package coding;
import java.io.*;
import java.util.*;
/**
* 一个每行都是ip的文本文件 , 请统计出每个ip一共出现过多少次,
* * 并且根据出现次数从大到小排序,输出到新的文本文件
*/
public class FileIpCountSort {
public static HashMap<String, Integer> hashMap = new HashMap<String, Integer>();
public static List<Map.Entry<String, Integer>> list_Data = null;
... | 29.456522 | 98 | 0.509963 |
08ea6b8a6f17c99707addab94a012ed4125d11ec | 4,349 | /**
* Copyright 2011 The Buzz Media, LLC
* Copyright 2015-2019 Mickael Jeanroy
*
* 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
*
* U... | 27.525316 | 110 | 0.672338 |
544371a5716ff774546a51fb653e8547aae1f39a | 1,076 | import edu.princeton.cs.algs4.Stack;
public class Exercise_11 {
public static int EvaluatePostfix(String postfix) {
Stack<Integer> datastack = new Stack<>();
int N = postfix.length();
for (int i = 0; i < N; i++) {
char ch = postfix.charAt(i);
if (ch == '+') {
... | 32.606061 | 92 | 0.513941 |
8ce04492d06780fcf7e9985d1928e72cc1f59d36 | 501 | package com.isxcode.star.plugin.response;
import com.isxcode.star.common.constant.MsgConstants;
import java.lang.annotation.*;
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
public @interface SuccessResponse {
/**
* default msg
*
* @return default msg
... | 18.555556 | 61 | 0.686627 |
f37762caf0a8d9b3fc9920661393aadd22b3a074 | 139,422 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package tests.unit.com.microsoft.azure.sdk.iot.device;
import com.microsoft.azure.sdk.iot.device.*;
import com.microsoft.azure.sdk.iot.device.DeviceTwin.*;
import com.... | 40.730938 | 234 | 0.634964 |
20fce9e32ad45138e3839a8e7b4b5d6a6c26aeaa | 4,605 | /*
* Copyright 2015 - 2022 Anton Tananaev (anton@traccar.org)
*
* 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 b... | 40.043478 | 114 | 0.651466 |
81adf666fc7dda8b2d10b90a3cf36d75d26d2590 | 12,116 | /*
* Copyright 2015-2021 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 app... | 40.521739 | 125 | 0.480522 |
fa6aa8467ebc27a945838a3c7446e5e117445952 | 1,437 | package minijava.ir.tree;
//import minijava.ir.interp.X86SimFrame;
import minijava.ir.temp.Label;
import minijava.util.DefaultIndentable;
import minijava.util.List;
abstract public class IRStm extends DefaultIndentable implements IRNode {
//The book implements these methods on most statements
abstract public List<I... | 31.23913 | 82 | 0.732081 |
5e2b1e5320d1c29b24598b89d5734102992e33d3 | 2,857 | // Copyright (c) Lawrence Livermore National Security, LLC and other VisIt
// Project developers. See the top-level LICENSE file for dates and other
// details. No copyright assignment is required to contribute to VisIt.
package llnl.visit;
// ***********************************************************************... | 22.147287 | 79 | 0.551278 |
980511ae5f1cdbdcbe06dd9ea844ee36c016d482 | 2,024 | package com.github.amarcinkowski.metro;
import com.github.amarcinkowski.metro.exceptions.MissingMetroSourceException;
import lombok.extern.slf4j.Slf4j;
import org.antlr.v4.gui.TreeViewer;
import org.antlr.v4.runtime.ANTLRFileStream;
import org.antlr.v4.runtime.CommonTokenStream;
import org.antlr.v4.runtime.tree.ParseT... | 29.764706 | 102 | 0.649704 |
e5c9152c9a67836e64c1638e2e66f34c6a8a255a | 1,085 | package com.fr.swift.segment;
import com.fr.swift.beans.annotation.SwiftBean;
import com.fr.swift.beans.annotation.SwiftScope;
import com.fr.swift.bitmap.ImmutableBitMap;
import com.fr.swift.db.Where;
import com.fr.swift.segment.operator.delete.RealtimeSwiftDeleter;
import com.fr.swift.segment.operator.delete.SwiftWhe... | 28.552632 | 65 | 0.718894 |
42e1a8e60643d129380a88f325183cdd9806844a | 1,178 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package net.common.build;
import java.io.File;
import java.io.IOException;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Task;
/**
*
* @author Chris Johnson
*/
public abstract class Abstrac... | 26.177778 | 106 | 0.618846 |
6d4eb6c9da7345db902114a67de6f24925483c1f | 1,172 | /**
*
*/
package com.github.marocraft.trackntrace.publish;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import java.util.HashMap;
import org.junit.Before;
import org.junit.Test;
/**
*
*
*/
public class LogPublisherTest {
private ILogPublisher<String> logPublish... | 19.864407 | 110 | 0.696246 |
167f8e6fc2369fb14f22f3b7274d87bc932cb59d | 852 | package ru.home.mutual_feedback_bot.services;
import org.springframework.stereotype.Service;
import ru.home.mutual_feedback_bot.entities.User;
import ru.home.mutual_feedback_bot.models.ConversationStatus;
import ru.home.mutual_feedback_bot.repositories.UserRepository;
@Service
public class UserService {
private ... | 27.483871 | 63 | 0.75 |
a1e47305b885e8c2743756c369d0c32411233383 | 1,513 | package org.raistlic.common.reflection;
import org.raistlic.common.precondition.Precondition;
import org.raistlic.common.util.CustomStream;
import java.lang.reflect.Method;
import java.util.Collection;
import java.util.function.Predicate;
import java.util.stream.Stream;
/**
* @deprecated will be removed in 2.0, thi... | 26.54386 | 93 | 0.755453 |
309e3aa01e28d2a3241f6516153385ca5b0e1f35 | 850 | package com.skeqi.mes.mapper.yp.equipment.maintain;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.alibaba.fastjson.JSONObject;
/**
* 设备保养项
*
* @Date 2021年3月11日
* @author yinp
*/
public interface EquipmentMaintainItemsDao {
/**
* 查询配置项集合
*
* @param editionId
* @return
... | 15.178571 | 105 | 0.645882 |
e084465d3eefc7ac259caedb1b98807d942828ef | 506 | package irvine.oeis.a118;
// Generated by gen_seq4.pl holos [0,-1,0,0,1] [1,40,43,73,76,106,640,85,97,118,850] 0 at 2019-12-17 15:30
// DO NOT EDIT here!
import irvine.oeis.HolonomicRecurrence;
/**
* A118635 Start with 1 and repeatedly reverse the digits and add 39 to get the next term.
* @author Georg Fischer
*/
... | 28.111111 | 106 | 0.675889 |
1e330f6148d8480833feb823946f15ae266b3d86 | 3,465 | /**
*
*/
package sample.contact.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.GrantedAuthority;
imp... | 35.357143 | 102 | 0.79596 |
4cb7f9dad9eab1889544f1a58c8922a7e03ee1b7 | 969 | package entity.neutral;
import processing.core.PImage;
import shared.ref;
import entity.Building;
import entity.animation.Animation;
import game.aim.BuildWallAim;
public class Rock extends Building {
private static PImage standImg;
public static void loadImages() {
String path = path(new Object() {... | 19 | 53 | 0.593395 |
c2966c9b551a97151c8f37b5664e9339c37911f3 | 229 | package at.hallermayr.swingolf.db.infrastructure;
import at.hallermayr.swingolf.db.model.Game;
import org.springframework.data.neo4j.repository.GraphRepository;
public interface GameRepository extends GraphRepository<Game> {
} | 28.625 | 65 | 0.842795 |
211bbf66b61aff7fccf2564714f84f68c3fa1610 | 2,062 | /**
*/
package skos.impl;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.impl.EFactoryImpl;
import org.eclipse.emf.ecore.plugin.EcorePlugin;
import skos.*;
/**
* <!-- begin-user-doc -->
* An implement... | 21.479167 | 106 | 0.610572 |
cbac5e75f1c8efc688a9986e85a58994e13cd474 | 928 | /**************************************************************************
* Copyright 2017-2019 NextCash, LLC *
* Contributors : *
* Curtis Ellis <curtis@nextcash.tech> *
* Distributed u... | 30.933333 | 76 | 0.450431 |
b4ada2fb142ccf1721fb3edbe3ab9aec6cb2ae6d | 5,610 | package com.ulfy.master.ui.view;
import android.content.Context;
import android.graphics.Color;
import android.net.Uri;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.LinearLayout;
import a... | 45.609756 | 142 | 0.672014 |
69ec1a30eacca3d1b2fc80c73f5f4f7aacfb6137 | 534 | package com.minelittlepony.remodeller.serialization;
import com.google.gson.annotations.Expose;
import net.minecraft.client.model.ModelBox;
public class Box extends Serializable {
@Expose
float[] pos1;
@Expose
float[] pos2;
@Expose
String name;
public Box() {}
public Box(ModelBox... | 16.6875 | 52 | 0.588015 |
9e5233be57502a6836dc17754f93873ad3d6b7ee | 275 | package org.ring.oql.expression;
/**
* Created by quanle on 4/29/2017.
*/
class OrExpression extends MultiExpression
{
OrExpression(Expressible... comparisons)
{
super(comparisons);
}
public String getOperator()
{
return "or";
}
}
| 15.277778 | 44 | 0.621818 |
c8e9656d3b3872d0c55c7f1aae0c3d8ae4c20285 | 334 | package ru.uglic.votelemo.model;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import javax.persistence.Entity;
import javax.persistence.Table;
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@Entity
@Table(name = "dishes")
public class Dish extends AbstractNa... | 23.857143 | 58 | 0.823353 |
0d20e4810b9be0cba6f1bf1180ccffcd1e18855a | 441 | package com.x.api.auth.service;
import java.security.SecureRandom;
import org.junit.Test;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
public class AuthServiceTest {
@Test
public void testGenerateP() throws Exception {
BCryptPasswordEncoder passwordEncoder = new BCryptPas... | 25.941176 | 112 | 0.76644 |
8ea474c3dac39c662ae34c6e4482bd9b45e66774 | 1,281 | package nl.mprog.rens.vinylcountdown.ObjectClasses;
import java.io.Serializable;
/**
* Rens van der Veldt - 10766162
* Minor Programmeren
*
* ColWishRecord.class
*
* This object is used to store collection and wishlist data. The difference between these is marked
* by their location in the database. This objec... | 27.255319 | 100 | 0.701795 |
88ccc58bfdc79387ae3f3698722b3f31da937415 | 1,330 | package com.ceyntra.ceyntraRestAPI.entity;
import javax.persistence.*;
@Entity
@Table(name = "travelling_place_photo")
public class TravellingPlacePhoto {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private int photo_id;
private int place_id;
private String photo;
public Travelli... | 21.451613 | 75 | 0.593985 |
2f9a0f88fffebd4b461e3f3adea0c135b46009e2 | 1,185 | // 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 com.intellij.ide.lightEdit.actions.associate.linux;
import com.intellij.ide.lightEdit.actions.associate.FileAssociationException;
import com.intellij.ide.lightEdit.action... | 45.576923 | 140 | 0.818565 |
a71d1b37c1469886c8704677964da0c035ea3414 | 897 | package xyz.zhzh;
import javax.imageio.ImageIO;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
public class PNGtogif {
public static void main(String[] args) throws IOException{
File f = new File(MySetting.MODEL);
File[] files = f.lis... | 30.931034 | 99 | 0.531773 |
bad2af372fa14d5b8e95235705f83f7f70dc2821 | 2,261 | package com.github.lampaa.smi.rest.controllers;
import com.github.lampaa.smi.rest.dto.StatsDto;
import com.github.lampaa.smi.rest.services.StatsService;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import or... | 33.25 | 89 | 0.742592 |
36c08fb59834c124ee795dd4ed52f66138428b8c | 3,252 | package ru.geekbrains.homeworks.hw01.task1;
import lombok.extern.slf4j.Slf4j;
import ru.geekbrains.homeworks.hw01.helpers.NumbersHelper;
import ru.geekbrains.homeworks.hw01.utils.ConsoleColors;
import java.util.Arrays;
/**
* Main Class represents homework #1 #task1
*
* @author e.kovalevskiy
* @version 1.0
*/
@S... | 30.392523 | 91 | 0.591328 |
fd0a6f9563480a70e20efaad4884a26587a47aaf | 9,740 | package com.vkbroadcast.vladm.vkbroadcastsender;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Color;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.dra... | 29.969231 | 111 | 0.600411 |
d97be5a69885158b35b48a4b028c3e49796960dc | 1,965 | package br.com.catbag.giffluxsample.reducers;
import com.umaplay.fluxxan.annotation.BindAction;
import com.umaplay.fluxxan.impl.BaseAnnotatedReducer;
import br.com.catbag.giffluxsample.actions.GifActionCreator;
import br.com.catbag.giffluxsample.models.AppState;
import br.com.catbag.giffluxsample.models.ImmutableAppS... | 33.305085 | 71 | 0.652417 |
8a1904e90dbf9c29fb50c5a8c9eaa47974d1c58d | 885 | /*
* Copyright 2018 Anton Straka
*
* 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... | 29.5 | 75 | 0.702825 |
258694aa945838bc1f7f83c558493bed51059610 | 3,483 | package com.incloud.hcp.jco.distribucionflota.dto;
public class EmbarcacionesDto {
private String FlagEmba;
private String DescEmba;
private String CodEmba;
private String CbodEmba;
private String PescDecl;
private String Estado;
private String HoraArribo;
private String DiaAnt;
pr... | 19.677966 | 56 | 0.618719 |
154a4aa228da036dffd39c5a1e6b37d913c78861 | 3,559 | /* Glazed Lists (c) 2003-2006 */
/* http://publicobject.com/glazedlists/ publicobject.com,*/
/* O'Dell Engineering Ltd.*/
package com.publicobject.amazonbrowser;
import ca.odell.glazedlists.EventLis... | 35.59 | 136 | 0.567013 |
ba6902a5a4bb5b8fdeaf4b01f451df6816a24969 | 48,262 | /**
* Copyright (c) 2012 USC Database Laboratory All rights reserved.
*
* Authors: Sumita Barahmand and Shahram Ghandeharizadeh ... | 39.365416 | 181 | 0.479922 |
f1e436b05f9e11d459b3c223f2945e0c9c4525ff | 2,364 | package org.wordpress4j.service.spi;
import java.util.List;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
import org.wordpress4j.model.Co... | 33.771429 | 80 | 0.593063 |
91b5df05b1511bebac3aa1f8ce426af346f4f02a | 4,127 | /*
* Copyright 2018 The Higgs Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 38.570093 | 97 | 0.737339 |
8b52b35d75ed7bf6e6e484f49846b6d6b931ebef | 1,870 | package juggermod.powers;
import com.megacrit.cardcrawl.actions.common.RemoveSpecificPowerAction;
import com.megacrit.cardcrawl.actions.unique.LoseEnergyAction;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
import com.megacrit.cardcrawl.powers.AbstractPower;
import com.megacrit.cardcrawl.ui.panels.EnergyPane... | 33.392857 | 147 | 0.654545 |
0e85ac28113cfcac3c10719372a09f4b7be8f258 | 10,599 | /* Copyright (c) 2019 JetRS
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distrib... | 31.173529 | 128 | 0.603076 |
33108c6e6517eacae6aa40d952085d8a7ddf69d2 | 9,035 | /*
* Copyright (C) 2011 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 31.81338 | 108 | 0.735805 |
01cc35d9943640983e609c1c48c3bb2ac7f436a3 | 4,659 | package com.idrv.coach.ui;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import com.idrv.coach.R;
import com.idrv.coach.bean.SpreadTool;
import com.idrv.coach.bean.event.Even... | 29.487342 | 109 | 0.679545 |
f79fa99eb3cd0040da02bd31807374ef120ec346 | 1,365 | /*
Copyright 2005 Simon Mieth
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 wri... | 23.534483 | 80 | 0.662271 |
c799aed56e78b93b9056c036b8310f2a296dd08f | 833 | /*L
* Copyright Oracle inc, SAIC-F
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/cadsr-util/LICENSE.txt for details.
*/
package gov.nih.nci.ncicb.cadsr.common.servicelocator.spring;
import gov.nih.nci.ncicb.cadsr.common.servicelocator.ObjectLocator;
import gov.nih.nci.n... | 26.870968 | 77 | 0.789916 |
0984df7e417da5011c1845f809a7c2bb1e4b3cd5 | 3,611 | package com.edward.masih.assistantforteacher;
import android.app.Activity;
import android.content.pm.PackageManager;
import android.support.annotation.NonNull;
import android.support.v4.app.ActivityCompat;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AlertDialog;
import android.os.Bu... | 36.846939 | 132 | 0.603157 |
53d27120393c97cdf134c8231ca51b74f5a48956 | 315 | /*
* G2Dj Game engine
* Written by Joseph Cameron
*/
package grimhaus.com.G2Dj.Type.Audio;
import grimhaus.com.G2Dj.Imp.Engine.RequireSceneGraphs;
/**
*
* @author Joseph Cameron
*/
@RequireSceneGraphs({AudioScene.class})
public abstract class AudioComponent extends grimhaus.com.G2Dj.Type.Engine.Component{} | 22.5 | 86 | 0.765079 |
ba06c574794b8b6d95b403262804407d3b5a71bd | 8,814 | /**
*
*/
package org.sagacity.quickvo.model;
import java.io.Serializable;
import java.util.List;
/**
* @project sagacity-quickvo
* @description quickvo 数据模型
* @author chenrenfei $<a href="mailto:zhongxuchen@hotmail.com">联系作者</a>$
* @version $id:QuickVO.java,Revision:v1.0,Date:Apr 19, 2009 1:12:20 AM $
*/
publ... | 15.655417 | 73 | 0.635239 |
f350385d1a84b1a380dcd7d05af5eba315fe8491 | 3,564 | /*
* Copyright 2014-2020 Rudy De Busscher (https://www.atbash.be)
*
* 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 requir... | 33.942857 | 111 | 0.717452 |
f38162b38a548fa24966fea37ee630ea4da2d7a6 | 20,523 | package org.markov;
public class Manager {
int numSentances = 10;
Generator generator = new Generator();
String[] strings = new String[numSentances];
String text;
public Manager()
{
text = this.setTest();
// text = Load.load(path);
}
public void generateSentence(){
for (int i = 0; i < numSentances; i++)... | 84.110656 | 571 | 0.694781 |
00394ace9ae95bd71f41e0e4111dd4eaf927cc42 | 567 | import java.io.*;
import java.math.*;
import java.security.*;
import java.text.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.regex.*;
public class Solution {
/**
* Initial Logic:
* Very simple question -- just reverse the array.
*/
/**
* Time complexity: O(n).
... | 19.551724 | 54 | 0.54321 |
ced29c0980ae8ccb674e9be13b2ac281e531fc1b | 352 | package com.mychaldea.api.rarity.info.repository;
import java.util.List;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import com.mychaldea.api.rarity.info.entity.Rarity;
@Repository
public interface RarityRepository extends CrudRepository<Rarity, Integ... | 25.142857 | 74 | 0.826705 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.