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 |
|---|---|---|---|---|---|
3592377037d1eb0f272e874f0b9c5f5d4cd95bc9 | 7,479 | package org.ggp.base.player.request.factory;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.ggp.base.player.gamer.Gamer;
import org.ggp.base.player.gamer.IIGamer;
import org.ggp.base.player.request.factory.exceptions.RequestFormatException;
import org.ggp... | 27.906716 | 96 | 0.696885 |
d617d1182a58ed3295e2a1e9c91159f74fb07f41 | 1,259 | package com.github.taller.zerosoffactorial.controller;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.method.ann... | 35.971429 | 107 | 0.771247 |
a5a3ff08988efd1f68e76f030a030edd67ea8d5e | 81 | /**
* DAO.
* @author jiashuo
*
*/
package org.restfulwhois.rdap.redirect.dao; | 13.5 | 43 | 0.654321 |
80dbd5d7f3138fc21a2355813c5526f2fd12638f | 951 | package jenkins.plugins.play.commands;
import org.kohsuke.stapler.DataBoundConstructor;
import org.kohsuke.stapler.QueryParameter;
import hudson.Extension;
import hudson.util.FormValidation;
/**
* Represents the Play test command.
*/
public class PlayWar extends PlayCommand {
@DataBoundConstructor
public PlayW... | 22.116279 | 83 | 0.678233 |
385c452faeaba3f8df393d95cb889332c78dcfd3 | 737 | package com.salecycle.moonfire.queries.havingspecs;
import com.salecycle.moonfire.queries.models.havingspecs.*;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class TypeCheckTest {
@Test
public void typeCheck() {
assertEquals("filter", new QueryFilterHavingSpec().getType()... | 36.85 | 81 | 0.70692 |
66bc6c91548901d2c7d3c7e755769eab14e6dd1a | 3,225 | package org.sil.gatherwords;
import android.content.Context;
import android.support.annotation.Nullable;
import android.util.Log;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import j... | 29.861111 | 96 | 0.576124 |
67836aa84ce1a169e8eef802c208fe7a3bf8d87f | 2,331 | package org.uberfire.ext.editor.commons.client.history;
import java.util.Date;
public class ExtendedVersionRecordImpl implements ExtendedVersionRecord {
private String _name;
private String _versionNumber;
private String _graphSlice; // Note: Will contain raw HTML to render a horizontal slice of the vers... | 26.793103 | 207 | 0.624196 |
b8ec38d53947225130f98f106853228c61b826aa | 8,197 | package org.vitrivr.cineast.core.db.dao;
import java.io.Closeable;
import java.util.*;
import java.util.stream.Collectors;
import org.vitrivr.cineast.core.config.Config;
import org.vitrivr.cineast.core.data.providers.primitive.PrimitiveTypeProvider;
import org.vitrivr.cineast.core.data.tag.CompleteTag;
impor... | 33.321138 | 147 | 0.557155 |
93e88abe36a0ac713fa4d5378f6d2e945fa7e6a0 | 278 | package com.metaui.core.datasource.persist;
import java.util.Map;
/**
* 持久化数据库接口
*
* @author wei_jc
* @since 1.0.0
*/
public interface IPDB {
/**
* 获得持久化数据Map
*
* @return 返回持久化数据Map
*/
Map<String, ? extends Map<String, Object>> getPDBMap();
}
| 14.631579 | 59 | 0.600719 |
4f3c1ac57edbd47769a02f87dacae8788c601110 | 821 | package tech.wetech.weshop.user.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tech.wetech.weshop.common.service.BaseService;
import tech.wetech.weshop.user.dto.GoodsFootprintDTO;
import tech.wetech.weshop.user.mapper.FootprintMapper;
... | 30.407407 | 94 | 0.80877 |
6306223931810e1ac7b26f45d95762fdcf52db45 | 134 | package com.babel17.jruntime;
public class B17Object extends B17Value {
public final static B17Object nil = new B17Object();
}
| 16.75 | 56 | 0.753731 |
a2d982e46d8e37c17a39d44e42a14e7258f518fb | 1,339 | package org.framework.hsven.mybatis.mapper;
import org.apache.ibatis.annotations.Param;
import org.framework.hsven.mybatis.vo.LowerCaseResultMap;
import org.framework.hsven.mybatis.vo.PageRecord;
import org.framework.hsven.mybatis.vo.QueryEntity;
import org.framework.hsven.mybatis.vo.VarableBinds;
import java.util.L... | 28.489362 | 194 | 0.775952 |
a5f24267d40c0df44f7eedd8f0b575b6c55e21dd | 1,555 | package lab9;
import java.util.Scanner;
/**
*
* @author Sanat 190953222
* Count number of characters, words, lines and vowels
*/
public class program1 {
public static void main(String[] args){
//Initialize all the counters to 0
int noLines=0,noWords=0,noChars=0,noVow=0;
String ... | 33.085106 | 133 | 0.505466 |
f64cd6203da5e4d8aa443aacca8b969947652591 | 613 | package org.nganga.manx;
import retrofit.RestAdapter;
/**
* Created by nganga on 9/25/15.
*/
//RestAdapter is the class that transforms an API interface into an object which actually makes network requests.
//To use our SCService we create a RestAdapter and then use it to create a real instance of the interface.
... | 26.652174 | 113 | 0.748777 |
60adc3294859875009376711bb4aa97f2f648d8d | 1,831 | package br.com.ufc.quixada.dspersist.schoolmanagement.services;
import java.util.List;
import java.util.Optional;
import java.util.Set;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import br.com.ufc.quixada.dspersist.schoolmanagement.dto.course.CreateC... | 31.568966 | 100 | 0.770617 |
ee12b5c1899f881ef00539ad45cbf4648d47acf0 | 1,773 | package com.hx.home.presenter;
import com.hexing.libhexbase.cache.StringCache;
import com.hexing.libhexbase.inter.RxBasePresenterImpl;
import com.hx.base.model.UserInfoEntity;
import com.hx.home.AboutActivity;
import com.hx.home.Constant;
import com.hx.home.HomeApplication;
import com.hx.home.ManualActivity;
... | 32.236364 | 110 | 0.671179 |
37ab9b31bb147beb223fcb855e3343525c652875 | 1,455 | package dev.formathero.datetimeformatter.application;
import dev.formathero.datetimeformatter.application.port.FabricatorRepository;
import dev.formathero.datetimeformatter.domain.Fabricator;
import java.time.ZonedDateTime;
import java.util.List;
public class FabricatorService {
private final List<ZonedDateTime... | 33.068182 | 78 | 0.680412 |
4baa33d0cf72338ae16e7c18b16066ef5205d2b0 | 1,429 | package fun.gengzi.codecopy.exception;
import fun.gengzi.codecopy.constant.RspCodeEnum;
import fun.gengzi.codecopy.vo.ReturnData;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.dao.DuplicateKeyException;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.sp... | 30.404255 | 76 | 0.729181 |
2156c7a4a3549dc2aeaf41adf4401a8bdef5962b | 984 | package frc.robot;
import com.ctre.phoenix.motorcontrol.can.WPI_TalonSRX;
import edu.wpi.first.wpilibj.Joystick;
public class Intake {
WPI_TalonSRX intakeMotor;
Joystick controller;
double throttleValue;
public Intake(int motor, Joystick controller2) {
intakeMotor = new WPI_TalonSRX(mo... | 22.363636 | 54 | 0.561992 |
3ff0ca8b611af5b2ec1704560a3ac7da1ecb130a | 127 | package com.hubspot.dropwizard.guicier.objects;
import javax.ws.rs.ext.Provider;
@Provider
public class ProvidedProvider {
}
| 15.875 | 47 | 0.80315 |
17ce1a62d9f8d5a4b878668013d9e534b0ccd941 | 4,942 | /*
* 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 uk.ac.uea.cmp.srnaworkbench.database.entities;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
im... | 31.477707 | 142 | 0.686766 |
ba9620c72c96f7fcacb05c0b85adb82b244b5580 | 366 | package me.egg82.antivpn.api.platform;
import org.jetbrains.annotations.NotNull;
public class BungeePluginMetadata extends AbstractPluginMetadata {
private final String pluginVersion;
public BungeePluginMetadata(String pluginVersion) {
this.pluginVersion = pluginVersion;
}
public @NotNull St... | 26.142857 | 66 | 0.770492 |
7ffc96ea1f18099bb439ac39adb52a53687c720e | 3,855 | /*
* 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.815789 | 105 | 0.629572 |
a86ea068e3973d1f7e780e183acc7a40efe480cc | 311 | package com.kids.api.quiz;
import java.sql.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
@Data
@AllArgsConstructor
@RequiredArgsConstructor
public class TodayQuiz {
private Date date;
@NonNull
private Integer quizNo;
}
| 16.368421 | 38 | 0.787781 |
dd98cf09d0450821779dd6219ffbffef78b7127b | 3,459 | package com.yangdb.fuse.executor.ontology.schema;
import com.yangdb.fuse.dispatcher.driver.IdGeneratorDriver;
import com.yangdb.fuse.executor.ontology.schema.load.DefaultGraphInitiator;
import com.yangdb.fuse.executor.ontology.schema.load.GraphInitiator;
import com.yangdb.fuse.model.Range;
import com.yangdb.test.BaseI... | 48.041667 | 326 | 0.756866 |
79c3e249a045bf9c4f799d32ab1a643130890013 | 660 | package soul.core.models.string_mesh.utilities.components.corpus.data;
public class Output implements Comparable<Output> {
private String output;
private double feedback;
public Output(String newOutput, double newFeedback) {
output = newOutput;
feedback = newFeedback;
}
public void setOutput(String newO... | 20.625 | 81 | 0.715152 |
79fc421ddfdbca3e7c702e19b5f149e20ef90ddf | 893 | package network.elrond.blockchain;
import network.elrond.data.model.Block;
import network.elrond.data.model.Receipt;
import network.elrond.data.model.Transaction;
import java.math.BigInteger;
public enum BlockchainUnitType {
BLOCK(String.class, Block.class),
BLOCK_INDEX(BigInteger.class, String.class),
T... | 27.060606 | 62 | 0.702128 |
54d2536ac579750ea375facbb5eeb28babc2427e | 13,260 | /*
* Copyright (C) 2015 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... | 34.263566 | 217 | 0.578959 |
c17b556101771020c57b99fdab3f5a6179f6bd5e | 2,408 | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: packimports(3) fieldsfirst lnc
// Source File Name: Function.java
package com.icl.saxon.expr;
import java.io.PrintStream;
// Referenced classes of package com.icl.saxon.e... | 32.986301 | 124 | 0.526578 |
27098fde359248990b5b4cf1ace010741d6b41ac | 542 | static void conditionalCopyFile(File dst, File src) throws IOException {
if (dst.equals(src)) return;
if (!dst.isFile() || dst.lastModified() < src.lastModified()) {
System.out.println("Copying " + src);
InputStream is = new FileInputStream(src);
OutputStream os =... | 38.714286 | 76 | 0.52952 |
95acea11e81df3e7ab972b38963425fd64456b24 | 1,184 | /* MasterMaze: A Maze-Solving Game
Copyright (C) 2008-2010 Eric Ahnell
Any questions should be directed to the author via email at: MasterMaze@worldwizard.net
*/
package com.puttysoftware.mastermaze.maze.objects;
import com.puttysoftware.mastermaze.creatures.StatConstants;
import com.puttysoftware.mastermaze.maze.g... | 28.190476 | 87 | 0.71875 |
fe33e330c97a37641bc70993b9754c2a882495b5 | 426 | import com.avaje.ebean.Ebean;
import models.User;
import play.Application;
import play.GlobalSettings;
import play.libs.Yaml;
import java.util.List;
/**
* Created by Daniel on 2015-06-19.
*/
public class Global extends GlobalSettings {
@Override
public void onStart(Application application) {
if(User... | 21.3 | 58 | 0.673709 |
cec0fa685fd69597c0381e02de77c3ad5a07ef2d | 1,019 | package org.clyze.source.irfitter.source.model;
import java.util.Collection;
import org.clyze.persistent.model.Position;
import org.clyze.persistent.model.UsageKind;
/**
* A reference to a type name (such as an annotation referencing an annotation type)
* or a constant Class object (such as {@code C.class}).
*/
pu... | 27.540541 | 91 | 0.670265 |
009e31d6f5735dd7df99787f279ec7fba140e437 | 4,040 | /*-
* ============LICENSE_START=======================================================
* ONAP : APPC
* ================================================================================
* Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
* ======================================================... | 44.395604 | 112 | 0.632178 |
7456e6887e41dbe715e87bd2870f521756c60b7a | 86 | /**
* Service layer beans.
*/
package com.cea.digitalworld.dwmicroservice2.service;
| 17.2 | 53 | 0.744186 |
eca15f3a6cdfe6ad38ecdcd7a1f41561e5735627 | 751 | package com.tvd12.ezyfox.binding.impl;
import com.tvd12.ezyfox.binding.EzyBindingConfig;
import com.tvd12.ezyfox.binding.EzyBindingContext;
import com.tvd12.ezyfox.binding.EzyBindingContextAware;
import com.tvd12.ezyfox.reflect.EzyClass;
public class EzySimpleConfigurationLoader implements EzyConfigurationLoader {
... | 30.04 | 77 | 0.813582 |
00b5215ee0f85c4ae5cc2c787755a9f62281982a | 4,864 | package gluu.scim2.client;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import gluu.scim2.client.factory.ScimClientFactory;
import gluu.scim2.client.rest.ClientSideService;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.L... | 40.87395 | 132 | 0.680921 |
72f6e1f332d83f3facbe2c2d94cd51c7d88b8e94 | 1,488 | package modules.home.domain.usecases;
import modules.home.domain.entities.AnnouncementEntity;
import modules.home.domain.errors.CreateAnnouncementError;
import modules.home.domain.errors.DeleteAnnouncementError;
import modules.home.domain.errors.IHomeException;
import modules.home.domain.repositories.IHomeRepository;
... | 30.367347 | 112 | 0.732527 |
11c0b6532c965d84968d76649ca77fb7d5f716dd | 4,952 | /*
* Copyright 2017-present Skean Project Contributors.
*
* 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... | 30.012121 | 86 | 0.656099 |
c8b1bb6c3bba1170144fc4f73cb8a1c1c4799c42 | 584 | package GUI.TableData;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
/*
* Observable class model for files what will be loaded in TableView.
*/
public class FilesModelObservableList{
private ObservableList<FilesModel> filesModels = FXCollections.observableArrayList();
... | 26.545455 | 89 | 0.756849 |
f995bfeb33b2857cc55ee3ed3a07546eb3fc9a36 | 946 | package simple.autho.entity;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.Data;
@Entity
@Data
@Table(name="tb_user"... | 27.028571 | 75 | 0.72093 |
b794b47f02d582f6a4c1bdbf5effde6d65461834 | 704 | package com.example.demo;
import akka.actor.ActorSystem;
import io.vavr.concurrent.Future;
import io.vavr.control.Option;
import java.math.BigDecimal;
public class DemoApplication {
public static void main(String[] args) {
ActorSystem actorSystem = ActorSystem.create();
BankCommandHandler commandHandler = new ... | 29.333333 | 104 | 0.767045 |
b8117b42a266c569ddc3340b9bbf0cb8a8093e2b | 5,280 | // Source : https://leetcode.com/problems/word-ladder-ii/
// Author : Kris
// Date : 2020-08-05
/*****************************************************************************************************
*
* Given two words (beginWord and endWord), and a dictionary's word list, find all shortest
* transformation seq... | 29.497207 | 104 | 0.473106 |
6708a6fd194a7408597cc004e18ec11e65246419 | 984 | package com.turkcell.rentACar.business.abstracts;
import java.util.List;
import com.turkcell.rentACar.business.dtos.BrandDto;
import com.turkcell.rentACar.business.dtos.BrandListDto;
import com.turkcell.rentACar.business.requests.createRequests.CreateBrandRequest;
import com.turkcell.rentACar.business.requests.update... | 32.8 | 82 | 0.830285 |
c2a2e752698117537748da58e9def14a9a91b2be | 1,046 | package org.sadtech.bot.gitlab.data.impl;
import lombok.NonNull;
import org.sadtech.bot.gitlab.context.domain.entity.Discussion;
import org.sadtech.bot.gitlab.context.repository.DiscussionRepository;
import org.sadtech.bot.gitlab.data.jpa.DiscussionJpaRepository;
import org.sadtech.haiti.database.repository.manager.Ab... | 31.69697 | 131 | 0.797323 |
6c21e1a05594557f0e160f73da855281396e2d58 | 1,584 | package com.tsengfhy.vservice.basic.config;
import com.tsengfhy.vservice.basic.repository.SysJobDetailsRepository;
import com.tsengfhy.vservice.basic.template.SchedulerTemplate;
import com.tsengfhy.vservice.basic.template.impl.QuartzSchedulerTemplate;
import lombok.extern.slf4j.Slf4j;
import org.quartz.Scheduler;
impo... | 35.2 | 139 | 0.794823 |
1bd44470c7749502190383ec32fca7ff07f5309d | 138 | package novi.uni.compserver.model.enums;
public enum SportName {
FOOTBALL,
RUGBY,
BASKETBALL,
BASEBALL,
VOLLEYBALL
}
| 13.8 | 40 | 0.681159 |
99c92467f7bf31142e9202c0cba4c016024b3317 | 7,868 | //
// Copyright (c) 2013 Ford Motor Company
//
package com.smartdevicelink.proxy;
import java.util.Vector;
import com.smartdevicelink.exception.SmartDeviceLinkException;
import com.smartdevicelink.exception.SmartDeviceLinkExceptionCause;
import com.smartdevicelink.proxy.rpc.SyncMsgVersion;
import com.smartdevicelink.... | 36.425926 | 198 | 0.756228 |
09f2db41b1e754917f91bb4fe3757ad14c1f078b | 2,333 | /*
* Copyright Dingxuan. 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 required by applicable law or agreed to in writi... | 31.106667 | 109 | 0.729104 |
c6c5ceed3fbfc1ea122dfca8633155f35993c053 | 2,175 | package lgw.com.uiwedgit.adapter;
import android.app.Activity;
import android.graphics.Color;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import java.util.List;
import lgw.com.uiwedgit.R;
i... | 27.531646 | 139 | 0.724138 |
3a636efdbb554004d4829b09dc876ae97e0f0068 | 4,613 | /*
* Copyright (c) 2016 Nova Ordis LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 27.957576 | 120 | 0.537828 |
3fa2e64a696d33247e17411eac6c908a6c1a1194 | 5,768 | package com.nd.shapedexamproj.util;
import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.app.Dialog;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
impor... | 28.84 | 108 | 0.734917 |
e55d1794d6817abf0ef883d9fb12c7638c3e9b05 | 2,019 | /*
* Copyright (c) 2021 gematik GmbH
*
* Licensed under the Apache License, Version 2.0 (the License);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 25.884615 | 85 | 0.708767 |
786098343b62022af363563bd5a69d79e270ab2a | 5,910 | /*
* 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.376623 | 99 | 0.681557 |
640aac8b01f02425b71cd8902d47f447eaadebdc | 1,030 | public class EditDIstance {
int min(int a, int b, int c) {
return Math.min(a, Math.min(b, c));
}
public int minDistance(String word1, String word2) {
if (word1.equals("")) {
return word2.length();
} else if (word2.equals("")) {
return word1.length();
}... | 36.785714 | 105 | 0.450485 |
a50c2a2ed8e512c7978a8f89b43e47e84b269790 | 2,341 | /*
*
* Copyright 2020 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/LICENS... | 34.940299 | 92 | 0.773174 |
95e271772988c46131611bd3877883c122b9d1ff | 121 | package org.unirail.AdHoc;
//Make AdHoc generate code for a particular device in Rust language.
public interface InRS {}
| 30.25 | 68 | 0.793388 |
54ebafb24133a65aba243e90b34243c71863120e | 581 | package com.mark.login.service;
import com.mark.model.common.dtos.ResponseResult;
import com.mark.model.user.pojos.ApUser;
/**
* @Description : 用户登录验证
* @Author : Markburt
* @CreateDate : 2020/2/22$ 下午 07:39$
* @UpdateUser : Markburt
* @UpdateDate : 2020/2/22$ 下午 07:39$
* @UpdateRemark : Project Build
* ... | 18.741935 | 49 | 0.638554 |
d3255c4fdf97d9a2c296f6f1ade2385fb8d9e49f | 1,734 | package com.example.sample_p;
import android.os.AsyncTask;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Properties;
import com.jcraft.jsch.ChannelExec;
import com.jcraft.jsch.JSch;
import com.jcraft.jsch.JSchException;
import com.jcraft.jsch.Session;
/**
* SSH接続用クラス
*/
public c... | 26.272727 | 95 | 0.71684 |
07daf2cbf96d8642571a354a17c5b5579c1afbf9 | 498 | package com.taotao.cloud.hadoop.mr.secondarysort;
import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.mapreduce.Partitioner;
public class ItemIdPartitioner extends Partitioner<OrderBean, NullWritable> {
@Override
public int getPartition(OrderBean bean, NullWritable value, int numReduceTasks) ... | 27.666667 | 85 | 0.753012 |
a90da986414cfdb1e5a6d31b0934ecde0f88f4f2 | 470 | package com.softicar.platform.emf.data.table.export.node;
import com.softicar.platform.dom.node.IDomNode;
import com.softicar.platform.emf.data.table.export.popup.TableExportPopupButton;
/**
* Implemented by {@link IDomNode}s whose contents shall completely be ignored
* during table exports triggered via {@link Tab... | 29.375 | 80 | 0.8 |
7f01bb6601a28eaf3cb36b1e7322580b8c22598c | 1,751 | /*
* 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 io.github.moosbusch.audiothekar.filter;
import java.io.IOException;
import java.util.Collections;
import javax.ws.rs.client.Cl... | 36.479167 | 130 | 0.743004 |
14657efaab830a2b0aa25eced054844d43848d0b | 8,731 | /**
* Copyright 2010 - 2019 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 31.981685 | 97 | 0.54232 |
772e3ba616ea681782b85c1e7f5df651c95b8e5c | 1,120 | package ru.test.cucumber;
import app.Application;
import io.cucumber.java8.En;
import io.cucumber.junit.Cucumber;
import io.cucumber.junit.CucumberOptions;
import model.Product;
import org.junit.runner.RunWith;
import static org.junit.Assert.assertEquals;
@RunWith(Cucumber.class)
@CucumberOptions(plugin = {"pretty"}... | 36.129032 | 111 | 0.683929 |
8e2db438517dd954e6488711fdbba24d36a4c13a | 7,477 | package itb2.gui;
import java.awt.Cursor;
import java.awt.Desktop;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.io.File;
import java.io.InputStream;
import java.net.URI;
import java.util.ArrayList;
import java... | 31.024896 | 102 | 0.70991 |
e2684e2f27a5af5f43ab36fc3fc64fec4d0066bb | 4,710 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 38.92562 | 137 | 0.687473 |
e865b2ecbbbbba7704a3460727bd3b367b798b2f | 5,667 | /*
The following passage applies to all software and text files in this distribution,
including this one:
Copyright (c) 2002 Networks Associates Technology, Inc. under sponsorship of the
Defense Advanced Research Projects Agency (DARPA).
All Rights Reserved.
Redistribution and use in source and binary fo... | 38.55102 | 141 | 0.648138 |
482e0c4428cc503a85e6abe51ed5bd8ada11c014 | 1,674 | package xyz.issc.daca.spec;
import lombok.Data;
import java.util.HashMap;
@Data
public class Routine {
public static final int MODE_ROUTINE = 0; //when at routine mode, the procedure will not be retained
public static final int MODE_FILTER = 1; //when at filter mode, the procedure will be retained until spe... | 40.829268 | 153 | 0.752091 |
3bc8f45024a600e6ef73b0da008cce82b5eb1ec4 | 978 | package tic.model;
public class GameEntity implements Entity{
protected int size;
protected double xPos;
protected double yPos;
protected String imagePath;
protected boolean naught;
public GameEntity(double x, double y, double size, boolean naught){
this.xPos = x;
... | 25.736842 | 72 | 0.599182 |
e12d38025916c03bfa7e8d1787a549ea757a18b4 | 1,207 | package svenhjol.charm.module;
import net.minecraft.util.DyeColor;
import net.minecraft.util.Identifier;
import svenhjol.charm.Charm;
import svenhjol.charm.base.CharmModule;
import svenhjol.charm.base.iface.Config;
import svenhjol.charm.base.iface.Module;
import svenhjol.charm.client.CoreClient;
@Module(mod = Charm.M... | 50.291667 | 224 | 0.781276 |
fe378d27ffe16d3879fd70af8e9d19293b07b1ea | 1,788 | /*
* Copyright 2017-2019 University of Hildesheim, Software Systems Engineering
*
* 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
*
... | 33.111111 | 84 | 0.696309 |
35907a444ff9c829a36c4546cee24a543a2b922a | 2,397 | /*
* Copyright (c) 2010 SimpleServer authors (see CONTRIBUTORS)
*
* 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, ... | 29.9625 | 82 | 0.71214 |
204b7a9e19fdb65bb47befdf47da727adc15f8ac | 2,062 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2012.1... | 27.864865 | 124 | 0.654219 |
e448f8100dc5bd5b984c30cf991ca49a7a5f4c60 | 4,377 | package oracle;
import netP5.NetAddress;
import oscP5.OscMessage;
import oscP5.OscP5;
import java.util.ArrayList;
/**
* Created by mrzl on 31.03.2016.
*/
public class OracleOsc{
OscP5 osc;
NetAddress addr;
Settings settings;
private ArrayList< MarkovManager > markovs;
public void setup() {
... | 33.669231 | 101 | 0.556317 |
118dad2454aa4538628670b541b92683b25c3f28 | 1,960 | package com.github.wrdlbrnft.primitivecollections;
import com.github.wrdlbrnft.primitivecollections.bytes.ByteArrayList;
import com.github.wrdlbrnft.primitivecollections.bytes.ByteArraySet;
import com.github.wrdlbrnft.primitivecollections.bytes.ByteList;
import com.github.wrdlbrnft.primitivecollections.bytes.ByteSet;
... | 30.153846 | 153 | 0.638265 |
ba88805b13f3e28481ed27686ac888e69e0129fa | 4,681 | /*
* Copyright 2017-2019 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... | 36.570313 | 126 | 0.674215 |
19ae20c2ac1f0df6050c4de90160e7ae71582340 | 3,635 | package com.example.artyom.monyceeper4u;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.wid... | 33.657407 | 85 | 0.560385 |
ba2a78392a72755060700df380b65b920c2c245d | 3,283 | package tk.minarik.nomad.data;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JavaType;
import com.fasterxml.jackson.... | 34.197917 | 160 | 0.709717 |
dd731cf241f4895bdd7f3772f7e455c2da8204bb | 3,129 | package se.kth.scs.remote;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.EOFException;
import java.io.IOException;
import java.net.Socket;
import java.util.LinkedList;
import se.kth.scs.partitioning.Vertex;
import se.kth.scs.remote.messages.Protocol;
import se.kth.scs.remote.messages.... | 35.965517 | 87 | 0.667306 |
33ef0a2bfae7ba12dbbfe01b37990dd8628c496d | 6,343 | package org.dstadler.commoncrawl;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParseException;
import com.google.gson.JsonParser;
import org.apache.commons.lang3.time.FastDateFormat;
import org.apache.poi.Version;
import org.apache.poi.stress.FileHandler;
import org... | 40.660256 | 174 | 0.602869 |
c8470e73488f13e987157742176d120530ba7f06 | 906 | package Mensaje;
import java.io.Serializable;
public abstract class Mensaje implements Serializable{
/*
Tipos de mensajes
0 - Conexion
1 - Confirmacion conexion
2 - Cerrar conexion
3 - Confirmacion cerrar conexion
4 - Lista Usuarios
5 - Confirmacion lista de usuarios
6 - Pedir Fichero
7 - Emitir F... | 16.178571 | 78 | 0.684327 |
f5927d07ab3c3b607ab98e4bd3b603815142ee50 | 1,231 | package de.uulm.vs.autodetect.mds.framework.model.containers;
/**
* A container for a (3D) position.
*
* @author Rens van der Heijden
*/
public class PositionContainer implements MaatContainer {
private final double[] pos;
public PositionContainer(double[] position) {
this.pos = position;
}
... | 23.226415 | 77 | 0.600325 |
c000cf23cd64eaf5ab35b9c33f1031b0c22a3aeb | 973 | package com.futurice.project.test.device;
import com.futurice.project.MainActivity;
import com.futurice.project.R;
import com.robotium.solo.Solo;
import android.test.ActivityInstrumentationTestCase2;
import android.view.View;
import android.widget.TextView;
public class BookFragmentTest extends ActivityInstrumentati... | 31.387097 | 86 | 0.725591 |
3705dca4f55925c7d64a74b99a1f573159692888 | 11,132 | /*
* Copyright (C) 2019 All rights reserved for FaraSource (ABBAS GHASEMI)
* https://farasource.com
*/
package ghasemi.abbas.book.sqlite;
import android.content.ContentValues;
import android.database.Cursor;
import android.os.AsyncTask;
import android.os.Bundle;
import java.util.ArrayList;
import java.util.Arrays... | 42.326996 | 180 | 0.50018 |
5c9ba3abe262e244338c43d02135d91db33e39ca | 394 | package com.yousuf.android.moviesearch.network;
import com.yousuf.android.moviesearch.model.MovieList;
import java.util.Map;
import retrofit2.http.GET;
import retrofit2.http.QueryMap;
import rx.Observable;
/**
* Created by yousufsyed on 4/20/17.
*/
public interface TheMovieApi {
@GET("search/movie?")
Obs... | 19.7 | 77 | 0.756345 |
d3edffdc754e18e0e7426c3e64ee0b3bc9a260da | 14,123 | package com.epicnuss55.epicsExtremeSurvival.Events;
import com.epicnuss55.epicsExtremeSurvival.EpicsExtremeSurvival;
import com.mojang.blaze3d.matrix.MatrixStack;
import net.minecraft.block.Blocks;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.AbstractGui;
import net.minecraft.entity.player.Pl... | 41.055233 | 218 | 0.589039 |
cbe8f3c8b560369750deef4946253306921429ec | 749 | package com.github.signed.inmemory.ftp;
import java.io.File;
import java.util.Collections;
import java.util.List;
import com.github.signed.inmemory.shared.configuration.Port;
public class FtpServerConfiguration {
private final File rootDirectory;
private final Port port;
private final Iterable<FtpUser> u... | 23.40625 | 87 | 0.688919 |
3be8bf4537b81ef7e99c4d6bc2cda1236d35220e | 13,644 | /*
* www.javagl.de - Flow
*
* Copyright (c) 2012-2017 Marco Hutter - http://www.javagl.de
*
* 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 w... | 34.024938 | 80 | 0.600704 |
c86fb78ea65236e995c73779e87e4ca11bfd94ee | 7,147 | /*
* Copyright (c) 2004 jPOS.org
*
* See terms of license at http://jpos.org/license.html
*
*/
package tlv;
import iso.TestUtils;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
import com.futeh.progeny.iso.ISOException;
import com.futeh.progeny.iso.ISOUtil;
impor... | 34.694175 | 356 | 0.682524 |
8feb1c3ff3765893fafed192c0c1efeb98078e78 | 3,039 | /**
* The MIT License (MIT)
*
* Copyright (c) 2015 Halo9Pan
*
* 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
* ... | 28.942857 | 82 | 0.701218 |
9f7cc58fb553c49ef5c5eef1cd35c836b2e94c88 | 1,300 | package dev.jlibra.client.jsonrpc;
import dev.jlibra.client.views.Account;
import dev.jlibra.client.views.CurrencyInfo;
import dev.jlibra.client.views.event.Event;
import dev.jlibra.client.views.BlockMetadata;
import dev.jlibra.client.views.StateProof;
import dev.jlibra.client.views.transaction.Transaction;
public en... | 28.888889 | 83 | 0.725385 |
4ca9a9b82e38b8634edb8eb486fbe3d7831599d1 | 27,120 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 37.303989 | 100 | 0.688532 |
8fdbbe730959e627dedd2b07a2379fc33710341a | 8,916 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 31.284211 | 121 | 0.733401 |
bfb2566dce76debf01948ae3fa8ab212c6d4ac24 | 2,476 | /*
* Copyright 2013 Square 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 ... | 42.689655 | 98 | 0.725767 |
af93e5c9fabb2bd8924bcaf2b962edeb844870ad | 1,597 | package io.castle.client.model;
import java.util.Properties;
import io.castle.client.Castle;
import io.castle.client.internal.config.PropertiesReader;
import java.io.InputStream;
/**
* The reference to the current version of the SDK.
*/
public class CastleSdkRef {
private String name = "castle-java";
priva... | 28.017544 | 111 | 0.629931 |
f3d7a65c8527af00cb821657381496b64cf7e2de | 12,460 | package com.sailvan.easyexcel.test;
import java.lang.reflect.Field;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermode... | 32.363636 | 140 | 0.589406 |
f7379402dc2d0d9f5a62cb3295d522db3ddfd8d4 | 4,336 | package io.virtualapp.sys;
import android.app.Activity;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.os.Bundle;
import android.support.annotation.Nullable;
import andr... | 30.751773 | 114 | 0.62131 |
71aeaf5e138622bdfb52b3e562a6feac1656b9d8 | 4,612 | /* BrainMaze: A Maze-Solving Game
Copyright (C) 2008-2012 Eric Ahnell
Any questions should be directed to the author via email at: products@puttysoftware.com
*/
package com.puttysoftware.brainmaze.objects;
import com.puttysoftware.brainmaze.Application;
import com.puttysoftware.brainmaze.BrainMaze;
import com.putty... | 37.803279 | 142 | 0.62771 |
b5646009b025c5f84151edecee17326a0d6b8715 | 8,782 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 38.687225 | 172 | 0.681052 |
05f85578bcd522e32a398695c7aad2283696957b | 219 | package com.NSL.ECGCertification.Movesense;
/**
* TODO: Add a class header comment!
*/
public interface BaseView<T extends com.NSL.ECGCertification.Movesense.BasePresenter> {
void setPresenter(T presenter);
}
| 18.25 | 87 | 0.753425 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.