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 |
|---|---|---|---|---|---|
beec6ae6c947e45ec5c33c54cc8f99bb78388acb | 1,937 | /*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it w... | 26.534247 | 76 | 0.665462 |
bfacb2583a51340c181872c829f7c26a56e55d43 | 1,649 | package com.markjmind.jwtools.ui.graph;
import java.util.ArrayList;
import android.graphics.Canvas;
public abstract class GraphSkin {
protected int topMargin;
protected int bottomMargin;
protected ArrayList<SimpleStyle> list;
private int height;
private int width;
private int maxMeasure;
public GraphSkin(in... | 18.954023 | 102 | 0.72832 |
6d0419e15b4f725696ea509ab542741ba968a1f6 | 810 | package io.tarantool.driver.mappers.converters.value;
import io.tarantool.driver.mappers.converters.ValueConverter;
import org.msgpack.value.StringValue;
/**
* Default {@link StringValue} to {@link Character} converter
*
* @author Ivan Dneprov
* @author Artyom Dubinin
*/
public class DefaultStringValueToCharacte... | 28.928571 | 103 | 0.74321 |
1f821ebb1724d5731bd74a39907549e7094afc74 | 506 | package com.jwt.ms.demo.client;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import com.jwt.ms.demo.model.Coupon;
@FeignClie... | 28.111111 | 61 | 0.806324 |
9531a2d854cff776bd5cd89a2acaef8ba844ca94 | 33,698 | /*******************************************************************************
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this f... | 42.818297 | 197 | 0.684521 |
5ffcee6ad3d217569d087466e62e6682bff92efe | 121 | package com.stylefeng.guns.api.user;
public interface UserApi {
boolean login(String username, String password);
}
| 17.285714 | 52 | 0.760331 |
bbd17a1815c872452279268c61985a5792f80efb | 8,953 | package com.mh.bilidown.utils;
import java.security.KeyFactory;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.MessageDigest;
import java.security.PrivateKey;
import java.security.PublicKey;
import java.security.SecureRandom;
import java.security.Signature;
import java.securi... | 30.556314 | 870 | 0.71194 |
c0f0a13fd66055015bee2c0b7a62c6f58d4f47d5 | 553 | package amalgam.common.casting;
import amalgam.common.container.InventoryCasting;
import amalgam.common.properties.PropertyList;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
public abstract interface ICastingRecipe
{
public abstract boolean matches(InventoryCasting paramInventoryCasting, W... | 30.722222 | 117 | 0.833635 |
837c3ca361fb265d616fe780a8304caf315bd7e9 | 869 | package com.peterphi.std.guice.common.cached.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* When annotated on a zero argument public/protected/package-private method in a Guice-construc... | 27.15625 | 132 | 0.745685 |
42a4b62c98da0a249a4570e625673507e0f036d3 | 1,657 | package com.github.mmonkey.destinations.commands.elements;
import com.github.mmonkey.destinations.persistence.cache.PlayerCache;
import org.spongepowered.api.command.CommandSource;
import org.spongepowered.api.command.args.ArgumentParseException;
import org.spongepowered.api.command.args.CommandArgs;
import org.sponge... | 30.127273 | 103 | 0.71213 |
473db61872ec5504efc285c701eaff42a2761eba | 2,171 | /**
* Copyright 2007-2016, Kaazing Corporation. 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 require... | 36.183333 | 81 | 0.739751 |
4a97ad3e88b6a472cecd457668a42d0c94dfbb42 | 6,396 | package ru.mdashlw.jda.commands;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.reflect.Method;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import j... | 27.688312 | 100 | 0.713571 |
cd631392c452974f52bc44f4e13d3ce1d09e5985 | 6,580 | package com.anjaneya2bgmail.kinematics;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
import com.google.andro... | 39.638554 | 147 | 0.529483 |
39212bb6217b034b09de16ab4b9f993502079dd7 | 1,944 | package ca.bc.gov.educ.api.pen.trax.struct.v1;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.validation.constraints.NotNull;
im... | 20.903226 | 61 | 0.74537 |
26ad545551394493692e21116666a5230c5011d6 | 2,359 | package tests;
/*
* @author aleksandartrposki@gmail.com
* @since 05.05.18
*
*
*/
import com.n26.atrposki.domain.Transaction;
import com.n26.atrposki.domain.TransactionMadeEventHandler;
import com.n26.atrposki.transactions.TransactionDTO;
import com.n26.atrposki.transactions.TransactionsService;
import com.n26.atr... | 35.742424 | 92 | 0.743959 |
bfa9a5b66d96b01b4fd61aa1ca3fbda2b7f688db | 3,279 | // ParameterRuntime.java
// Copyright (c) 2003 Massachusetts Institute of Technology. All rights reserved.
package mit.cadlab.dome3.objectmodel.modelobject.parameter;
import mit.cadlab.dome3.config.Registry;
import mit.cadlab.dome3.objectmodel.ModelObjectScope;
import mit.cadlab.dome3.objectmodel.dataobject.inte... | 29.017699 | 112 | 0.725831 |
1199ab54c58abeb4dd8234467b22ab59da238060 | 5,279 | package com.sequenceiq.cloudbreak.core.bootstrap.service.host.decorator;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import java.util.Collectio... | 42.918699 | 140 | 0.702974 |
f64bead0c82258fc4fea4e23df5f4270e823b159 | 3,691 | /*
* 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 ... | 45.012195 | 120 | 0.733677 |
1c35c5fdaefa6813eca0bbda2bb59a2545b6735f | 2,250 | package net.jueb.util4j.test.classLoader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
public class DynamicClassLoader2 extends DynamicClassLoader {
/**
* @param classNames-(二进制名称)有效类名称的示例包括: "java.lang.String"
* @throws FileNotFoundExc... | 28.846154 | 87 | 0.679556 |
62d0abdd87ecfe9e7e887526b24afc90e85d8714 | 4,906 | package com.sygt.web.controller.system;
import com.sygt.common.constant.Constants;
import com.sygt.common.core.domain.AjaxResult;
import com.sygt.common.core.domain.entity.*;
import com.sygt.common.core.redis.RedisCache;
import com.sygt.common.utils.DictUtils;
import com.sygt.common.utils.SecurityUtils;
import com.sy... | 32.490066 | 141 | 0.657358 |
65cb7c32eb52ff52a67b8d73486af9a5cdfc70d7 | 259 | package com.redhat.ceylon.cmr.impl;
@SuppressWarnings("serial")
public class CMRException extends RuntimeException {
public CMRException(String message) {
super(message);
}
public CMRException(Exception x) {
super(x);
}
}
| 16.1875 | 52 | 0.671815 |
05a65bc3e9ad2aef81e5f9199273e8298cd0e800 | 381 | package org.hl7.v3;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
@XmlType(name="CalendarCycleOneLetter")
@XmlEnum
public enum CalendarCycleOneLetter
{
D,
H,
J,
M,
N,
S,
W,
Y;
public String value() {
return name();
}
public static CalendarCycleO... | 13.607143 | 60 | 0.671916 |
5cebaabd02ea0ffae9878b80c0d888c2a9ab216c | 770 | package com.sam_chordas.android.stockhawk.data.api.model;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
import java.util.List;
public class QuoteQueryResponse {
@SerializedName("query")
private Query query;
static class Results{
@SerializedName("quote")
... | 20.810811 | 77 | 0.636364 |
7853e2133f8081115ddcc361c876acd016e7d301 | 1,229 | package me.MaxPlays.FoodEffects.main;
import me.MaxPlays.FoodEffects.commands.CommandFoodEffects;
import me.MaxPlays.FoodEffects.commands.CommandFoodEffectsCompleter;
import me.MaxPlays.FoodEffects.listeners.EatListener;
import me.MaxPlays.FoodEffects.util.Lists;
import me.MaxPlays.FoodEffects.util.SQL;
import org.buk... | 30.725 | 125 | 0.715216 |
3141e3a5c5881fd70ab28b089d0a2a35d0a0da05 | 5,758 | package goja.tuples;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
/**
* <p>
* Abstract base class for all tuple classes.
* </p>
*
* @since 1.0
*
* @author Daniel... | 24.09205 | 99 | 0.501737 |
3e082751cc3b60ca424cf230d3dd6982f6851573 | 386 | package io.dapr.apps.twitter.provider.twitterprovider.model;
import com.fasterxml.jackson.annotation.JsonProperty;
public class Sentiment {
@JsonProperty("sentiment")
String sentiment;
public String getSentiment() {
return this.sentiment;
}
@JsonProperty("confidence")
float confidence;
p... | 20.315789 | 60 | 0.722798 |
787e02873e3cdb6c47481571fda9553e93d8aead | 2,590 | /*
* JBoss, Home of Professional Open Source
* Copyright 2009, Red Hat Middleware LLC, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not us... | 35 | 116 | 0.710811 |
d6ae32ae0650fff33a2f18f3e94a4995564be9bf | 13,777 | package com.mgmtp.radio.controller.v1;
import com.mgmtp.radio.controller.BaseRadioController;
import com.mgmtp.radio.controller.response.RadioSuccessResponse;
import com.mgmtp.radio.domain.user.User;
import com.mgmtp.radio.dto.station.StationDTO;
import com.mgmtp.radio.dto.user.UserDTO;
import com.mgmtp.radio.exceptio... | 41.496988 | 127 | 0.662263 |
3b54c08d205a4b38f43816ab831df1547cf0e6da | 15,541 | package com.maxsix.bingo.view.activity;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.conten... | 37.997555 | 130 | 0.55389 |
207ae11c611b1077119d79aa88ec798fbb2d1c93 | 244 | package com.indiana.view.admin.uicasatarjeta;
public interface InterUiCasaTarjeta {
void goToUiMantCasaTarjetaInsertar();
void goToUiMantCasaTarjetaActualizar();
void goToUiMantCasaTarjetaEliminar();
void goToUiMantCasaTarjetaDetalle();
}
| 27.111111 | 45 | 0.840164 |
75b62ce6bc41ab022ea6c70d3b1d788892048f47 | 20,125 | /*
* Copyright 2014 - 2017 Cognizant Technology Solutions
*
* 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.552129 | 159 | 0.56328 |
81048855f0b6013a68756ba8808d90b761cce8a1 | 4,973 | package frc.robot.subsystems;
import com.chopshop166.chopshoplib.outputs.SendableSpeedController;
import edu.wpi.first.wpilibj.GenericHID.Hand;
import edu.wpi.first.wpilibj.command.Command;
import edu.wpi.first.wpilibj.command.Subsystem;
import edu.wpi.first.wpilibj.interfaces.Potentiometer;
import frc.robot.Robot;
im... | 32.292208 | 96 | 0.536698 |
ef057f179962ce5898e4732700a22c06f4cec634 | 3,375 | /**
* Copyright 2014 Netflix, 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... | 31.542056 | 94 | 0.592296 |
71f55c752dfd47c07baf44ac5af44f8275543ac1 | 668 | package com.compdevbooks.model.product;
import com.compdevbooks.model.person.Manufacturer;
public abstract class Product {
private String name;
private String description;
private String image;
private float profitMarginPerc; // percentual de margem de lucro
private float promotionPerc; //percent... | 31.809524 | 68 | 0.760479 |
84fdab78c77c3076f034df3714e3e515c270d6d6 | 1,923 | package com.haotu369.controller;
import com.alibaba.fastjson.JSONObject;
import com.haotu369.model.User;
import com.haotu369.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springfra... | 22.892857 | 90 | 0.655746 |
8fb4eefb8b770d9aa03f3395d574b2622c46a3b1 | 259 | package com.kenshinji.Lesson4;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class PermCheckTest {
private final int[] test = new int[]{4,1,3,2};
@Test
public void test() {
assertEquals(1, PermCheck.solution(test));
}
}
| 17.266667 | 47 | 0.722008 |
937e8312283c1a8635b1ebf42a1db03291ee3942 | 1,381 | package com.vaani.leetcode.array;
public class MonotonicArray {
static class Simple {
public boolean isMonotonic(int[] A) {
return increasing(A) || decreasing(A);
}
public boolean increasing(int[] A) {
for (int i = 0; i < A.length - 1; ++i)
if (A[i] ... | 26.056604 | 56 | 0.404055 |
2fd7dec50b2a5e19f606d16edca75a2183f1c12a | 1,352 | package com.lhstack.entity.oss;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.CompoundIndexes;
import org.springframework.data.mongodb.core.map... | 23.310345 | 144 | 0.722633 |
1903ba68472528fd057be7bf1fe63aa865fcb0f8 | 151 | package com.expense.exception;
public class NoResultsException extends Exception{
public NoResultsException(String message) {
super(message);
}
}
| 18.875 | 50 | 0.794702 |
1cf4a000d855c49411199732de61394a81203b6e | 415 | package com.atguigu.gulimall.member.dao;
import com.atguigu.gulimall.member.entity.MemberCollectSubjectEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 会员收藏的专题活动
*
* @author feifan
* @email 376496965@qq.com
* @date 2020-12-16 23:00:03
*/
@Mapper... | 23.055556 | 89 | 0.787952 |
5e2dba73eca8a73259b276940576f8cf21e7870f | 805 | package de.swa.clv.util;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
public abstract class TypeHelper {
public static final Map<Class<?>, Class<?>> PRIMITIVE_TO_WRAPPER_TYPES;
static {
final Map<Class<?>, Class<?>> tmpMap = new HashMap<>(8);
tmpMap.put( ... | 29.814815 | 75 | 0.645963 |
b18cfe3306ac86ef96b146efba64421661b6385b | 1,149 | package main;
/**
* Write a description of class Rater here.
*
* @author (your name)
* @version (a version number or a date)
*/
import java.util.*;
public class EfficientRater implements Rater {
private String myID;
private HashMap<String, Rating> myRatings;
public EfficientRater(String id) {
... | 21.277778 | 56 | 0.592689 |
eb884cf977725f2afe0d3241bb5df64593fc3bd5 | 217 | package com.oc.hawk.container.runtime.port.driven.persistence;
import java.time.LocalDate;
public interface RunnerStatByDate {
LocalDate getDate();
Long getRunnerCount();
Long getConfigurationCount();
}
| 21.7 | 62 | 0.764977 |
c097ae7efa8e4b6703250793ee8816ce5f8b5122 | 547 | package com.lujiahao.java8inaction.chapter5;
import com.lujiahao.java8inaction.DataUtil;
import com.lujiahao.java8inaction.chapter4.Dish;
import java.util.List;
import java.util.Optional;
/**
* @author lujiahao
* @date 2019-03-11 16:57
*/
public class FindAnyDemo {
public static void main(String[] args) {
... | 24.863636 | 60 | 0.656307 |
808c05f5cfef5ba7be0dd4bcdb714e34f72666de | 362 | FROM openjdk:8-jre-slim
ARG APP
ENV APP=$APP
ARG VERSION
ENV VERSION=$VERSION
RUN adduser --uid 101 --system --no-create-home --disabled-password --home /opt/$APP --shell /sbin/nologin --group $APP
EXPOSE 8080
WORKDIR /opt/$APP
COPY $APP /opt/$APP
USER $APP
CMD exec java $JAVA_OPTS -cp $APP-$VERSION.jar org.sprin... | 20.111111 | 119 | 0.743094 |
6ce329261cb093a6b56fd438250cff57dea96a0e | 3,682 | package com.ucguy4u.filehandler;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.nio.file.Files;
import java.nio.file.P... | 28.323077 | 104 | 0.699891 |
4df3914b349248891af49be81971b3b0872fb955 | 1,704 | package util;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
/**
* This extension of HashMap support duplicate keys
*/
public class Bag extends LinkedHashMap {
public List getValues(Object key) {
if (super.containsKey(ke... | 19.363636 | 64 | 0.662559 |
fed1b14057d49d902abd00a91dbea0c9fbe0dc4e | 3,409 | /*
* ******************************************************************************
* *
* *
* * This program and the accompanying materials are made available under the
* * terms of the Apache License, Version 2.0 which is available at
* * https://www.apache.org/licenses/LICENSE-2.0.
* *
* * See the NO... | 26.632813 | 102 | 0.555588 |
618f45349f3eaa164c39ad4674e88e7aa6331eb1 | 6,832 | /*
* Copyright 2014 WSO2, Inc. (http://wso2.com)
*
* 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 ... | 33.821782 | 155 | 0.750146 |
a1b7cc9f79dd77ffd7ede05f6b505f3f38dc93e5 | 211 | package xyz.lovemma.zhihudaily.mvp.biz;
import rx.Observable;
import xyz.lovemma.zhihudaily.bean.Themes;
/**
* Created by OO on 2017/2/24.
*/
interface IThemeBiz {
Observable<Themes> getThemesList();
}
| 16.230769 | 42 | 0.729858 |
fc74f9c9bc10d15840f9079d8930ba34a8b1c029 | 2,210 | package getronics.qiot.edge_service.service.sensor;
import java.time.*;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.inject.Inject;
import java.io.IOException;
import javax.ws.rs.Produces;
import org.jboss.logging.Logger;
import javax.ws.rs.core.MediaType;
import com.fasterxml.jackson.da... | 37.457627 | 542 | 0.6819 |
1b03453f6c72fa59a40855296ad5438f2c300444 | 43 | package TSP;
public class SingleTour {
}
| 7.166667 | 25 | 0.72093 |
f6e502ba01bce6f9ce3ab763f80567a6177fac5c | 333 | package com.github.wnebyte.jcli.exception;
/*
extends RuntimeException so that it can be thrown inside of a lambda expression.
*/
public class ConfigException extends RuntimeException {
public ConfigException(String msg) {
super(msg);
}
public ConfigException(Throwable cause) {
super(cau... | 20.8125 | 80 | 0.705706 |
50351668fcfa46ddf8d7ef94fa75a4c485e25680 | 230 | package com.java.study;
import com.java.study.partitioner.CustomerPartitionerProducer;
public class CustomerPartitionerTest {
public static void main(String[] args) {
new CustomerPartitionerProducer().run();
}
}
| 23 | 62 | 0.747826 |
8d56652f5b6c8a51eed3b1422e7c197d34427216 | 902 | package uk.gov.companieshouse.web.accounts.model.smallfull.notes.debtors;
import uk.gov.companieshouse.web.accounts.validation.ValidationMapping;
import uk.gov.companieshouse.web.accounts.validation.ValidationParentMapping;
public class Total {
@ValidationParentMapping("$.debtors.current_period")
@Validation... | 28.1875 | 77 | 0.736142 |
6e15a1be525ec6c712f05bc35829d711be22d28f | 1,142 | //@@author Eclmist
package tatracker.logic.parser.session;
import static tatracker.commons.core.Messages.MESSAGE_INVALID_SESSION_DISPLAYED_INDEX;
import tatracker.commons.core.index.Index;
import tatracker.logic.commands.session.DoneSessionCommand;
import tatracker.logic.parser.Parser;
import tatracker.logic.parser.... | 34.606061 | 92 | 0.748687 |
fe8cb5f615308ac4619e165982e2170a5d93f773 | 206 | package com.terwergreen;
/**
* @name: C1
* @author: terwer
* @date: 2022-04-15 18:28
**/
public class C1 extends C {
@Override
public int func(int p1, int p2) {
return p2 - p1;
}
}
| 14.714286 | 37 | 0.567961 |
da9e2842dbb6315b78024c7b8f4c148020ce68b9 | 3,497 | package com.group3.bookstore.pojo;
import java.util.Objects;
public class Receiver {
private String receiverId;
private String userId;
private String receiverName;
private String receiverPhoneNumber;
private String province;
private String city;
private String county;
private String st... | 27.535433 | 164 | 0.591078 |
d068402a8ecc96c0882499a657518ae8ca2fe9ce | 459 | package com.github.instagram4j.instagram4j.requests.igtv;
import com.github.instagram4j.instagram4j.requests.IGGetRequest;
import com.github.instagram4j.instagram4j.responses.IGResponse;
public class IgtvCreationToolsRequest extends IGGetRequest<IGResponse> {
@Override
public String path() {
return "... | 25.5 | 72 | 0.751634 |
2a6e121cf4f334d5f7c9e6ea0a6957315e97067f | 1,779 | /*
* Copyright 2016 Anton Tananaev (anton.tananaev@gmail.com)
*
* 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... | 32.345455 | 93 | 0.632378 |
ff28a66a61f5ffa292a81950637dddb600dde24b | 3,329 | package com.example.thecarpediem;
import android.content.Intent;
import android.net.Uri;
import android.os.Handler;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextVie... | 33.969388 | 105 | 0.583959 |
cc1d94ac0bbe59c8c20e96fcc4ef56346b49856b | 1,424 | package me.zhengjie.domain;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.CreationTimestamp;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;
/**
* @author Zheng Jie
* @date 2018-11-24
*/
... | 19.777778 | 65 | 0.641152 |
48c8bf9c22091f5308911f7df5e8c13d69a1eee7 | 2,864 | package com.cb.platform.yq.base.customsign.entity;
import com.cb.platform.yq.base.filepath.enums.FileVisitEnum;
import com.cb.platform.yq.base.filepath.enums.YqFilePathEnum;
import com.cb.platform.yq.base.filepath.service.YqSystemFilePathImpl;
import java.util.Arrays;
/**
* 加载文件图片请求
* 主要用于PDF转图片
* @aut... | 30.468085 | 156 | 0.734986 |
bae7e210711ae4f82c276fde9621b76855a16b39 | 1,687 | /* Copyright by Barry G. Becker, 2000-2011. Licensed under MIT License: http://www.opensource.org/licenses/MIT */
package com.barrybecker4.game.twoplayer.tictactoe;
import com.barrybecker4.game.twoplayer.common.TwoPlayerController;
import com.barrybecker4.game.twoplayer.common.search.SearchableHelper;
import com.barr... | 32.442308 | 114 | 0.720213 |
35840bf5852cdd7407c7bd4bde3f4975e7c2d288 | 1,488 | /*
* Copyright 2000-2018 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 agre... | 25.655172 | 75 | 0.715054 |
09cb4dff7a74dbc3f8b5af16a40713f772c27138 | 387 | package com.marcelorodrigo.neareststore.service;
import com.marcelorodrigo.neareststore.entity.Store;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import java.util.Optional;
public interface StoreService {
Page<Store> findNearest(double latitude, double longitude... | 27.642857 | 82 | 0.81137 |
d304ff0cb956fa4edd5cd44d641589402f934fa1 | 8,205 | /* */ package org.apache.commons.collections.set;
/* */
/* */ import java.util.ArrayList;
/* */ import java.util.Collection;
/* */ import java.util.HashSet;
/* */ import java.util.Iterator;
/* */ import java.util.List;
/* */ import java.util.Set;
/* */ import org.apache.commons.coll... | 26.298077 | 108 | 0.419622 |
8d4dcb8da4e3979738a2439ddd3ebb06fec4f71c | 1,304 | import java.util.HashMap;
import java.util.Map;
import java.util.Random;
interface Shape {
void draw();
}
final class Circle implements Shape {
private int x, y, radius;
private String color;
public Circle(String color) {
this.color = color;
}
public void setX(int x) {
this.x = x;
}
public void setY(... | 18.628571 | 74 | 0.655675 |
6f258f8bdf733ee84a555e03849be5d980aa0f37 | 757 | package com.entregapaidegua.entity;
import java.math.BigDecimal;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstr... | 22.939394 | 41 | 0.784676 |
7bf47fcc663bac8b75e7a61379cc87b2444f3d86 | 264 | public void openUrl(final String url) {
try {
if (Desktop.isDesktopSupported()) {
Desktop.getDesktop().browse(new URI(url));
}
} catch (Exception ex) {
System.out.println(ex);
}
}
| 26.4 | 58 | 0.481061 |
2f26d65ca1f4225c635916e07ff749f19d8f3499 | 646 | package neetsdkasu.codevs4;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.HashMap;
import java.util.Iterator;
import neetsdkasu.codevs4.*;
public class TurnState
{
public int time = 0;
public int st... | 23.925926 | 62 | 0.744582 |
0e338100dab9d999a9658bb24621b0bbe9d07024 | 566 | package fi.omat.johneagle.filebox.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.Collection;
import java.util.List;
import fi.omat.johneagle.filebox.domain.entities.Account;
import fi.omat.johneagle.filebox.domain.entities.File;
import fi.omat.johneagle.filebox.domain.enums.... | 35.375 | 99 | 0.816254 |
20f2820b6d1483cff386a6b2f1bfa0ac4d1e4123 | 3,844 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... | 21.237569 | 84 | 0.709417 |
c8cb92a440966370e8822904d2ad21c0ea459ee1 | 10,987 | // OpenAIL - Open Android Indoor Localization
// Copyright (C) 2015 Michal Nowicki (michal.nowicki@put.poznan.pl)
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of ... | 29.534946 | 115 | 0.661145 |
7c3011938ff8db924fbe887750771db617fa6040 | 5,185 | /*
* GridGain Community Edition Licensing
* Copyright 2019 GridGain Systems, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License") modified with Commons Clause
* Restriction; you may not use this file except in compliance with the License. You may obtain a
* c... | 56.358696 | 122 | 0.803664 |
019079efed21e9b7733e89cd6081b29242abf50f | 1,731 | package testtools;
import java.io.IOException;
import java.io.OutputStream;
import timber.log.Timber;
public class MockOutputStream extends OutputStream {
private final Listener listener;
private final Object dataSync = new Object();
private StringBuilder data = new StringBuilder();
private boolean ... | 25.455882 | 74 | 0.595032 |
73d53fbfa9e4b22a41bb401d064c276c6cd0c81e | 280 | package no.entra.entraos.api.model;
import java.io.Serializable;
import java.util.UUID;
import lombok.Data;
@Data
public class ContractProperty implements Serializable {
private String id;
private String name="";
private String value="";
private String description="";
}
| 17.5 | 55 | 0.764286 |
724e47880224e68f91a4f2c9842935a48c49b8c8 | 2,919 | /*
* JBoss, Home of Professional Open Source.
* Copyright 2006, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify i... | 28.90099 | 80 | 0.62727 |
0fad9e968792e0fad2b22585292339a598f920dc | 803 | package org.siriusxi.blueharvest.bank.as.persistence.entity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;
import org.siriusxi.blueharvest.bank.common.api.composite.account.AccountType;
import javax.persistence.Entity;
import javax.persistence.Gener... | 23.617647 | 78 | 0.797011 |
b4d14032e306e566f7c39a47e5a80acdcb0f1e70 | 13,764 | package hotelsystem.ui;
import java.util.ArrayList;
import java.util.InputMismatchException;
import java.util.Scanner;
import hotelsystem.controller.Guest_Manager;
import hotelsystem.entity.Card;
import hotelsystem.entity.Guest;
public class Guest_UI {
private static Guest_UI instance = null;
private Scanner sc;
... | 33.985185 | 115 | 0.506321 |
227b1d35c24ad0318a80ce7cc13628008ca8f032 | 955 | package Patterns;
import java.io.FileNotFoundException;
public class DecoratorLesson {
public static void main(String[] args) throws FileNotFoundException {
FileStream fileStream = new FileBufferedReader ( new FileStreamReader());
fileStream.read ();
}
}
interface FileStream {
void read(... | 21.704545 | 81 | 0.687958 |
560062449d3354744cf33156d454af88ec436cb0 | 109 | package com.raygun.raygun4android;
public enum RaygunRUMEventType {
ACTIVITY_LOADED,
NETWORK_CALL
}
| 15.571429 | 34 | 0.779817 |
408f4a3cf78b671cf716ca8e8009b9d92d1e3084 | 438 | package com.easymicro.service.modular.business;
import com.easymicro.persistence.modular.model.business.TerminalParts;
import com.easymicro.service.core.IService;
/**************************************
* 终端外设
* @author LinYingQiang
* @date 2018-09-19 14:08
* @qq 961410800
*
************************************/... | 27.375 | 76 | 0.648402 |
1e151cfd427196d8395bfe46726aa1b3d859329c | 2,764 | /*
* Copyright 2012-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.707317 | 108 | 0.77026 |
3df905e07e82f3c493c6888bd4fb9e363d255876 | 1,062 | package raytracer;
public class Sphere {
private Matrix transform;
public Sphere() {
this.transform = Matrix.identity();
}
public Intersections intersect(Ray r) {
Ray transformedRay = r.transform(transform.invert());
Tuple sphere_to_ray = transformedRay.origin().subtract(Tuple.point(0, 0, 0));
... | 29.5 | 93 | 0.670433 |
f838f842b17478517dc1e7e25dbda5fa7e13d5f6 | 8,890 | /*
* 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 ... | 26.224189 | 121 | 0.705062 |
3b4ef3231319e07b010f96864bb533e47c2ea66e | 2,846 | package net.fastfourier.something.widget;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.View;
import android.widget.NumberPicker;
import com.salvadordalvik.fastlibrary.FastDialogFragment;
import net.fastfourier.something.R;
/**
* Created by matthewshepard on 2/1/14.
*/
publ... | 33.093023 | 116 | 0.656711 |
8827b58279a37125fc84199935b41cadba940103 | 999 | package com.bitdubai.fermat_wpd_api.layer.wpd_middleware.wallet_settings.interfaces;
import com.bitdubai.fermat_wpd_api.layer.wpd_middleware.wallet_settings.exceptions.CantLoadSubAppSettings;
import com.bitdubai.fermat_wpd_api.layer.wpd_middleware.wallet_settings.exceptions.CantSaveSubAppSettings;
/**
* Created by M... | 33.3 | 106 | 0.760761 |
126ef3d4ef64a1a961798c50b8eebc70a77f3fb4 | 250 | package com.example.demo.service.interfaces;
import com.example.demo.model.Product;
import java.util.List;
import java.util.Optional;
public interface IProductService {
List<Product> findAll();
Optional<Product> findById(Integer id);
}
| 16.666667 | 44 | 0.76 |
f15d040955f10e5b0260a4b8517195b59219c7bb | 8,133 | package garuntimeenv.gacomponents;
import garuntimeenv.envcomponents.EnvConfig;
import garuntimeenv.gacomponents.geneticoperators.crossover.LOX;
import garuntimeenv.gacomponents.geneticoperators.mutations.InversionMutation;
import garuntimeenv.gacomponents.geneticoperators.selections.RouletteWheelSelection;
import gar... | 35.36087 | 134 | 0.681913 |
4600816e6b2dd03f3c55a2675e1454ccbbe903b1 | 635 | package com.spring1024.bean;
public class ChatRoomRequest {
private String fromName;//发起人
private String chatValue;//聊天内容
private String toUserId;//接收人
public String getToUserId() {
return toUserId;
}
public void setToUserId(String toUserId) {
this.toUserId = toUserId;
}
... | 19.84375 | 48 | 0.63937 |
bd680825c3b2aee103dde4de52cd007f83629f61 | 16,811 | package de.fuberlin.wiwiss.d2rq.values;
import de.fuberlin.wiwiss.d2rq.algebra.Attribute;
import de.fuberlin.wiwiss.d2rq.algebra.ProjectionSpec;
import de.fuberlin.wiwiss.d2rq.expr.*;
import de.fuberlin.wiwiss.d2rq.sql.ResultRow;
import de.fuberlin.wiwiss.d2rq.sql.ResultRowMap;
import de.fuberlin.wiwiss.d2rq.sql.SQL;
... | 37.524554 | 146 | 0.615847 |
249c6ab3508f33150f8debfe03205a7e808e25bb | 2,227 | /*
* @author <a href="mailto:novotny@gridsphere.org">Jason Novotny</a>
* @version $Id$
*/
package org.gridsphere.provider.portletui.tags;
import org.gridsphere.provider.portletui.beans.FileInputBean;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;
/**
* A <code>FileInputTag</code> represn... | 25.306818 | 92 | 0.589582 |
65194fcd7f2b8789e8a1277cf02f8b35dfdcc5d4 | 3,751 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/** * 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 ... | 16.597345 | 810 | 0.807518 |
b2b05ecb3e47f1b9db05275d962480c0dbfdf6eb | 964 | package com.flyeek.demo.font.typeface;
import android.content.Context;
import android.graphics.Typeface;
import android.util.AttributeSet;
import android.widget.TextView;
/**
* Created by flyeek on 2015/2/28.
*/
public class CustomTypefaceTextView extends TextView {
public CustomTypefaceTextView(Context contex... | 26.777778 | 113 | 0.700207 |
c8d93d0992fd06d2cd35dc5b9d1330962bf4847c | 104 | class MyTest {
String foo;
{
I i;
foo<caret>
i = MyTest::foo;
}
} | 9.454545 | 24 | 0.384615 |
771e6c5da8c7f03cf2171f4deec3593cde171af3 | 4,158 | package leonardolana.poppicture.data;
import org.json.JSONObject;
import java.util.Random;
/**
* Created by Leonardo Lana
* Github: https://github.com/leonardodlana
* <p>
* Copyright 2018 Leonardo Lana
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except i... | 27.72 | 100 | 0.613035 |
be305b891500b6dae6c6bcb1d5cb46c8517a429f | 1,833 | package properties.event;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraftforge.common.MinecraftForge;
import net.minecr... | 35.25 | 117 | 0.711402 |
25632aae7615baa93d8c33e1bed85a1fa5518149 | 3,401 | // UML Class Diagram
/***************************************************
* Account *
* -------------------------------------------------*
* -id: int *
* -balance: double ... | 30.918182 | 86 | 0.482505 |
97b883776f461a98d8e2b6b4784c5aa786b8d1e4 | 721 | package leetcode.weekly_contests.weekly_191;
import java.util.Arrays;
public class P_1465 {
private static final int MOD = (int) (1e9 + 7);
public int maxArea(int h, int w, int[] horizontalCuts, int[] verticalCuts) {
Arrays.sort(horizontalCuts);
Arrays.sort(verticalCuts);
long l = 0;... | 24.862069 | 80 | 0.500693 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.