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 |
|---|---|---|---|---|---|
b194aad582d8be8e2d34d433272049e85f7ed438 | 13,589 | package com.theteam.bpmn.engine.enode;
import com.theteam.snodes.SNode;
import com.theteam.snodes.STaskNode;
import com.theteam.taskdata.STaskData;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.StringEntity;
import org.apache... | 29.541304 | 107 | 0.513872 |
3b8bc18a4411d84e34e32439ed73da1fb4eeb8d2 | 3,652 | // ============================================================================
//
// Copyright (C) 2006-2016 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have receiv... | 31.482759 | 169 | 0.630613 |
bf4919ce220744c6fda82d40aebb6977a908a590 | 2,482 | package com.microtracing.logagent.injectors;
import com.microtracing.logagent.LogTraceConfig;
import com.microtracing.logagent.MethodInjector;
public class ExceptionInjector implements MethodInjector{
private final static String[][] methodVariables = new String[0][0];
private final static String methodProcessSta... | 34 | 129 | 0.67365 |
cb997d230bd4e5030658df7ff9dc9920d832229a | 1,533 | package TestObjects;
import java.util.Arrays;
public class AllArraysObject {
int[] a;
Integer[] b;
float[] c;
Float[] d;
double[] e;
Double[] f;
long[] g;
Long[] h;
boolean[] k;
Boolean[] j;
byte[] l;
Byte[] m;
String[] n;
NestedTestObject[] a1;
public A... | 28.924528 | 406 | 0.54925 |
a32dfd7ce63a6ebe1c91f37bb0e827e94e001625 | 6,245 | /*
* Copyright 2008-2019 Async-IO.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 by applicable law or agreed t... | 31.540404 | 123 | 0.679424 |
ddef9916236522d9f007d2857ce06957b4f25546 | 7,074 | package com.fengwenyi.erwinchatroom.utils;
import com.fengwenyi.api.result.ResponseTemplate;
import com.fengwenyi.erwinchatroom.bo.MsgBo;
import com.fengwenyi.erwinchatroom.domain.UserChatRoomModel;
import com.fengwenyi.erwinchatroom.enums.FromTypeEnum;
import com.fengwenyi.erwinchatroom.enums.MsgTypeEnum;
import com.... | 43.398773 | 103 | 0.562058 |
483823fe6a0761c28364ad824602cce7ae6660c7 | 3,676 | package apache_httpcomponents.asyncclient;
import org.apache.http.HttpResponse;
import org.apache.http.client.config.RequestConfig;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.concurrent.FutureCallback;
import org.apache.http.entity.StringEntity;
import org.apache.http.impl.nio.client.Closea... | 32.821429 | 134 | 0.635745 |
231e852248faa0d6f8124cea79433435086e7b92 | 8,476 | /*
* Copyright (C) 2019 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... | 43.917098 | 90 | 0.729943 |
fc1b5c858bea700eb07760e9efbc465f10a552b9 | 1,286 | package com.atguigu.gmall.pms;
import com.atguigu.gmall.pms.mapper.SkuMapper;
import com.atguigu.gmall.pms.service.SkuAttrValueService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class G... | 38.969697 | 168 | 0.728616 |
0dbb8f92ed7a257c5450faa753ad0023c5e02006 | 1,073 | import java.util.List;
import java.util.ArrayList;
public class Vertex {
final private String id;
final private String name;
private List<Edge> _edges;
public Vertex(String id, String name) {
this.id = id;
this.name = name;
_edges = new ArrayList<Edge>();
}
public String... | 21.039216 | 43 | 0.521901 |
6bc18fd822e51988642b7889ac22fc08b9e59e7f | 4,972 | package io.cucumber.java8;
import io.cucumber.core.backend.Backend;
import io.cucumber.core.backend.Container;
import io.cucumber.core.backend.DataTableTypeDefinition;
import io.cucumber.core.backend.DefaultDataTableCellTransformerDefinition;
import io.cucumber.core.backend.DefaultDataTableEntryTransformerDefinition;
... | 33.594595 | 134 | 0.706758 |
46999eac78c309513f9e2d087709c3983ce40a1d | 2,496 | /*
* MIT License - Copyright (c) 2018 Francielle da Silva Nunes, Luís Fernando Ávila
* Criada em 25 ago 2018
*/
package br.com.iftm.lfa.controller;
import java.util.ArrayList;
import java.util.List;
import javax.swing.JOptionPane;
/**
* Classe criada para resolução do exercício correspondente a letra H A
* lingu... | 29.714286 | 82 | 0.384215 |
94ef41d21cc93a5c4bdb3282987b320cff70f5a1 | 1,763 | /*
* All GTAS code is Copyright 2016, The Department of Homeland Security (DHS), U.S. Customs and Border Protection (CBP).
*
* Please see LICENSE.txt for details.
*/
package gov.gtas.services.security;
import static gov.gtas.constant.GtasSecurityConstants.PRIVILEGE_ADMIN;
import gov.gtas.constant.GtasSecurityCon... | 18.364583 | 120 | 0.66591 |
1001d3f682341f0e70ef0027d64f6b514c1cb330 | 2,595 | /*
* 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 ... | 29.157303 | 119 | 0.674759 |
1ffeaf04ebccf19b4b1f2f5a059597b14542bab7 | 267 | package com.greg.golf.repository;
import com.greg.golf.entity.Cycle;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface CycleRepository extends JpaRepository<Cycle, Long> {
}
| 26.7 | 69 | 0.835206 |
4cb06bd2452721acd33807dc5aec5a7e831bdc53 | 1,298 | /**
* $Id: mxDomUtils.java,v 1.1 2012/11/15 13:26:39 gaudenz Exp $
* Copyright (c) 2007-2012, JGraph Ltd
*/
package com.mxgraph.util;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
/**
* Contains various DOM API ... | 22.77193 | 76 | 0.684129 |
e626b48bc3c3731bf6ac9a5450d672c19a1e45e6 | 801 | /*
*
* * Copyright OpenSearch Contributors
* * SPDX-License-Identifier: Apache-2.0
*
*/
package com.amazon.dataprepper.plugins.processor.drop;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.nullVal... | 22.885714 | 92 | 0.722846 |
de85cbe8dde903477a0b4bcc0e6d3cd9b163b42a | 640 | package com.pixelblur.DropGame.android;
import android.os.Bundle;
import com.badlogic.gdx.backends.android.AndroidApplication;
import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration;
import com.pixelblur.DropGame.MainClass;
public class AndroidLauncher extends AndroidApplication {
@Override
prote... | 32 | 81 | 0.764063 |
1494da436536f3187f8e17e161aa167b414d8051 | 3,623 | /*
* Serposcope - SEO rank checker https://serposcope.serphacker.com/
*
* Copyright (c) 2016 SERP Hacker
* @author Pierre Nogues <support@serphacker.com>
* @license https://opensource.org/licenses/MIT MIT License
*/
package com.serphacker.serposcope.di;
import com.serphacker.serposcope.models.base.Config;
impo... | 35.871287 | 117 | 0.610268 |
18c8cebc6a51b1e1d3876907f2fbed1b5558f31c | 403 | package com.eg.exam;
/*
有一家农场,养了一群小动物。养的有鸡40只,羊10只,牛2头。
其中鸡全是母鸡,每只母鸡每个月有20天下蛋,每次下蛋1颗,其余时间休息。
每年2月份农夫会人工孵化鸡蛋剩余数的20%,其余鸡蛋全部出售,并且会出售或宰杀20%母鸡。
孵化出来的小鸡全是母鸡,小鸡一年之后开始下蛋。
羊群里面有8只母羊,2只公羊。每只母羊每年10月生产5只小羊,性别随机。
每年2月农夫出售20%羊,公羊母羊各一半(若为20%的羊数为奇数,多的那一头羊为公羊)。
小羊2年后开始生产,性别随机。
公牛和母牛各1头,每2年生产1只小牛。小牛2年会后开始生产,小牛的性别随机。
现在是2017年9月1日,请问... | 19.190476 | 45 | 0.811414 |
6297320285c64e5e4d8aaa81b97c5c3aa17ae0ac | 863 | package com.haskforce.cabal.psi;
import com.haskforce.cabal.CabalFileType;
import com.haskforce.cabal.CabalIcons;
import com.haskforce.cabal.CabalLanguage;
import com.intellij.extapi.psi.PsiFileBase;
import com.intellij.openapi.fileTypes.FileType;
import com.intellij.psi.FileViewProvider;
import org.jetbrains.annotati... | 23.972222 | 62 | 0.732329 |
f74c4d002f1f72daadc173ecc0a75536ddc7184f | 235 | package com.lego.goods.dao;
import com.lego.goods.pojo.Pref;
import tk.mybatis.mapper.common.Mapper;
/****
* @Author:admin
* @Description:Pref的Dao
* @Date 2019/6/14 0:12
*****/
public interface PrefMapper extends Mapper<Pref> {
}
| 19.583333 | 50 | 0.710638 |
89454433ae6b5d29e87bee1b5efa2771d16e8056 | 1,822 | package builddb.cs4224c.document;
import com.fasterxml.jackson.annotation.JsonInclude;
public class OrderItemOrderLines {
private int ol_number;
private Timestamp ol_delivery_d;
private double ol_amount;
private int ol_supply_w_id;
private int ol_quantity;
private String ol_dist_info;
pri... | 21.690476 | 72 | 0.655324 |
edfaf56720c436bee06ea4e6331c003ef963f0a3 | 445 | package com.hardik.spring;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.AbstractApplicationContext;
import com.hardik.spring.config.AppConfig;
/**
* Application Main Class
*
*/
public class App {
public static void main(String[] args... | 23.421053 | 95 | 0.802247 |
163293c186601c2479202132dae04946be7008f2 | 246 | package com.rbkmoney.analytics.listener.handler.dominant;
import com.rbkmoney.damsel.domain_config.Operation;
public interface DominantHandler {
void handle(Operation operation, long versionId);
boolean isHandle(Operation change);
}
| 20.5 | 57 | 0.796748 |
8766d58b5bd24c2cb961b6f0e167b323a778ab70 | 205 | package racingcar.domain.game;
public abstract class GameResult {
protected GameSet gameSet;
protected GameResult(GameSet gameSet) {
this.gameSet = gameSet;
}
abstract void showResult();
}
| 15.769231 | 41 | 0.736585 |
6b07a246ee579a2e3d1c888103fdea66fdbcda30 | 633 | package org.keclipse.rcp;
import org.eclipse.jface.viewers.ITableLabelProvider;
import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.swt.graphics.Image;
/**
* List Label provider for the table viewer
*
* @author vibhu.pratap
*
*/
public class ListLabelProvider extends LabelProvider implements ITab... | 21.1 | 85 | 0.747235 |
92811ab3203639b7161ea6dc096b2bbc022dafd5 | 1,144 | package com.andyadc.shopizer.search.services.workflow;
import com.andyadc.shopizer.search.services.worker.DeleteObjectWorker;
import com.andyadc.shopizer.search.services.worker.ExecutionContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import ja... | 27.238095 | 89 | 0.741259 |
a0fd4f892d4bec2a9b84f71a8fa27178d980269d | 4,951 | /*
* 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 ... | 49.019802 | 138 | 0.726722 |
2ef8150ef0f89eaac5a28732eecebf4adff3a4c1 | 4,120 | /*
* Copyright 2015 Piotr Buda
*
* 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... | 50.864198 | 157 | 0.759466 |
fe324b6bdfcef534f68263a0c90a5c94eac205c7 | 2,958 | package com.lsh.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.*;
import java.net.URLEncoder;
@Controller
public class DownLoadCont... | 40.520548 | 135 | 0.568289 |
d3e88f749d6b9a4a10295a0cf07dacb11f5e774b | 3,437 | package brennus;
import java.util.HashMap;
import java.util.Map;
import brennus.model.BoxingTypeConversion;
import brennus.model.CastTypeConversion;
import brennus.model.Field;
import brennus.model.FieldAccessType;
import brennus.model.FutureType;
import brennus.model.LocalVariableAccessType;
import brennus.model.Met... | 29.62931 | 182 | 0.688973 |
cb83c199c950a6f690629ded109f034d52c1202e | 10,697 | package org.nci.cgr;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import htsjdk.variant.variantcontext.Genotype;
import htsjdk.variant.variantcontext.GenotypeBuilder;
import htsjdk.variant.variantcontext.GenotypesCo... | 40.366038 | 156 | 0.679723 |
0adef78d269b2aea3c0a837cd80e3353690345eb | 2,204 | /****************************************************
* Copyright (c) 2019, Grindrod Bank Limited
* License MIT: https://opensource.org/licenses/MIT
****************************************************/
package za.co.grindrodbank.dokuti.documenttag;
import java.util.List;
import java.util.Optional;
import java.util.Se... | 34.4375 | 93 | 0.709165 |
a8c29049c1fb0a6689d948cf44ea5d3d945fc6f5 | 10,227 | /*
* Copyright 2018 JDCLOUD.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 or agreed to in... | 48.014085 | 290 | 0.76738 |
35f99427a28959e1f967ba7de525937135d8cf59 | 5,823 | package org.yun.string.handler;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import java.util.function.Function;
/**
* <p>use builder mode build timeline data
* <p>example:
* <java>
* List<Pojo> ... | 28.26699 | 134 | 0.532543 |
c4cdd802f0752d05ffc9e2ae55578716d4f06b24 | 211 | package perococco.aoc.day14.structures;
import lombok.NonNull;
public interface Memory {
void setValue(int address, long value);
void setActiveMask(@NonNull Mask mask);
long sumOfAllValues();
}
| 16.230769 | 43 | 0.734597 |
7a82ba8526aba23f94f82cc69574ccb573b5062e | 4,952 | package com.example.android.miwok;
import android.content.Context;
import android.media.AudioManager;
import android.media.MediaPlayer;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import an... | 40.92562 | 152 | 0.609653 |
1c48a8621083770726e907af47ae5a4e54720404 | 5,122 | /**
* Copyright (C) 2011 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.financial.analytics.conversion;
import javax.time.calendar.Period;
import javax.time.calendar.ZonedDateTime;
import org.apache.commons.lang.Validate;
import... | 55.075269 | 153 | 0.794611 |
d40c8925aa82188588496ce6ad62cc00b1b2088c | 5,003 | /*
* Project: Speedith.Core
*
* File name: NullSpiderDiagram.java
* Author: Matej Urbas [matej.urbas@gmail.com]
*
* Copyright © 2011 Matej Urbas
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to d... | 33.577181 | 124 | 0.672596 |
4015a9219850d38c8d6dc2810ce914888a7f0044 | 225 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
package com.github.badsyntax.gradle;
public enum GradleProjectConnectionType {
WRAPPER, SPECIFICVERSION, LOCALINSTALLATION,
}
| 25 | 60 | 0.8 |
2ebb734921e94452c4481ec94f8e176b4e834d58 | 5,023 |
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... | 29.203488 | 311 | 0.681664 |
a780f1ab5615b6adb2140e308f1f118986379c33 | 10,101 | /**
Copyright © 2020 Ricardo Ferreira (riferrei@riferrei.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 ... | 44.10917 | 95 | 0.613504 |
92541f473b273aaf996f0892b98126c36f4c7cb4 | 3,024 | /*
* Copyright 2021 Ian Jones. 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 applicabl... | 39.272727 | 153 | 0.746362 |
926acd3ba5679929b079301aaa796bb1f25697e4 | 292 | package at.uibk.dps.ee.enactables.local.utility;
/**
* Constants used by the utility enactables.
*
* @author Fedor Smirnov
*/
public final class ConstantsUtility {
public static final double epsilon = 0.000_000_001;
/**
* No constructor
*/
private ConstantsUtility() {}
}
| 17.176471 | 53 | 0.695205 |
3046569f63b4ee5aad45ba85390b7dfe6c7539b2 | 164 | package com.silverknife.meizhi.features.main;
import com.silvericekey.skutilslibrary.base.BasePresenter;
public interface MainPresenter extends BasePresenter {
}
| 23.428571 | 58 | 0.847561 |
6e5abd3cba210f14c97926e2b8d5b066edfa64aa | 349 | package cn.gitlab.virtualcry.sapjco.server.handler;
import com.sap.conn.jco.JCoFunctionTemplate;
/**
* Define SAP RFC function.
*
* @author VirtualCry
*/
public interface DynamicFunctionHandler {
/**
* Register sap rfc function.
* @return The definition of SAP RFC function.
*/
JCoFunctionT... | 19.388889 | 51 | 0.704871 |
3b6996ceb39a35e0144137473c64cea580886906 | 1,747 | package org.spacehq.mc.auth;
import org.spacehq.mc.auth.properties.PropertyMap;
import java.util.UUID;
public class GameProfile {
private UUID id;
private String name;
private PropertyMap properties = new PropertyMap();
private boolean legacy;
public GameProfile(String id, String name) {
this(id == null || ... | 22.986842 | 145 | 0.639382 |
89e23a6987f169925fc3b3af1b2d2d2d5eda5414 | 188 | /**
* Author: Alexander Gatsenko (alexandr.gatsenko@gmail.com)
* Created: 2020-03-14
*/
package com.agatsenko.mongo.mapper.impl;
public abstract class FieldCollectionReaderWriter {
}
| 18.8 | 59 | 0.755319 |
4bcad1f0f932066f43df7a1a0d2d9498ab24acae | 585 | package io.serializable;
import java.io.FileInputStream;
import java.io.ObjectInputStream;
/**
* @author zhouT
* @date 2018/12/17 13:44
*/
public class ReadObject {
public static void main(String[] args) {
try {
// 创建一个ObjectInputStream输入流
ObjectInputStream ois = new ObjectInputStream(new FileInp... | 24.375 | 87 | 0.664957 |
f4d6b803acac9096e7b37268ee0f68d2c045e2e5 | 2,180 | package com.thinkgem.jeesite.test;
import java.io.IOException;
import java.sql.DriverManager;
import java.util.ArrayList;
import java.util.Base64;
import java.util.List;
import org.apache.zookeeper.KeeperException;
import org.apache.zookeeper.ZooKeeper;
import org.junit.Test;
import com.thinkgem.jeesite.base.BaseTes... | 29.066667 | 130 | 0.627982 |
a76ff17a08c663f3397e7b38f915b0dd0727b3da | 16,764 | /*
*
* Copyright 2001-2004 The Ant-Contrib 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... | 36.60262 | 97 | 0.551241 |
56343713f65e01086523050604e4b87e02c5086c | 690 | package br.com.diovani.golden.raspberry.awards.deserializer;
import java.io.IOException;
import com.fasterxml.jackson.core.JacksonException;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonDeserializer;
public class... | 21.5625 | 109 | 0.753623 |
e895722f5cc6fef7b183d555232aad221a1e6c9c | 4,318 | package model;
import services.TgApi;
import utils.BMasked;
import utils.Optioned;
import utils.Strings;
import java.nio.file.Paths;
import java.util.UUID;
import static utils.TextUtils.notNull;
/**
* @author Denis Danilin | denis@danilin.name
* 01.05.2020
* tfs ☭ sweat and blood
*/
public class TFile implement... | 21.698492 | 77 | 0.551181 |
d8d4203c2e309b419d616dabaaef13f7d22530e1 | 2,997 | package me.dylanmullen.agar.window.input;
import java.awt.Dimension;
import java.util.ArrayList;
import java.util.List;
import org.joml.Vector2f;
import org.lwjgl.glfw.GLFW;
import org.lwjgl.glfw.GLFWCursorPosCallbackI;
import org.lwjgl.glfw.GLFWMouseButtonCallbackI;
public class MouseHandler
{
private long window... | 21.407143 | 89 | 0.716383 |
cd62e43295fde6ce573f19ba88775f919d08a9c2 | 13,241 | /**
* 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 ... | 30.721578 | 131 | 0.574579 |
76da45757e5d0ff2a526d0bc0ca50d58e84c060b | 954 | package com.oc.hawk.project.domain.model.codebase.git;
import com.oc.hawk.project.domain.model.project.URLProtocol;
import org.apache.commons.lang3.StringUtils;
public class CodeBaseUrl {
public static final String PROTOCAL_SIGN = "://";
private String url;
private URLProtocol protocol;
public CodeBa... | 27.257143 | 74 | 0.62369 |
88e98a4ca53991e4b6c4fdcf63f5d369e4ee99f9 | 230 | package com.buy.tsg.service;
import javax.jws.WebParam;
import javax.jws.WebService;
@WebService(targetNamespace ="/service.jws/")
public interface SendService {
public boolean sendOA(@WebParam(name="param") String param);
}
| 20.909091 | 61 | 0.769565 |
860cc99c25b2809d53c9ce3112ce9a91eab335b1 | 6,136 | /*
* Copyright 2000-2011 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... | 39.587097 | 131 | 0.745274 |
3120715bd52cd20ba70c2359f347f3481b54dda5 | 532 | package com.lei.stu.classload;
/**
* @Description
* @Author leihaoyuan
* @Date 2019/10/21 16:55
*/
public class MyTest8 {
public static void main(String[] args) {
Fruit apple = new Apple();
Fruit orange = new Orange();
apple.test();
orange.test();
}
}
class Fruit{
pub... | 15.2 | 44 | 0.575188 |
1b3b2bf2a687d72c50b1b08c5200d4ed9f027d97 | 272 |
package proyecto_integrador_franciscosantos;
public class Rey extends Pieza {
public Rey() {
super();
}
public Rey(boolean acceso) {
super(acceso);
}
@Override
public String toString() {
return "♠";
}
}
| 12.363636 | 44 | 0.547794 |
a7d685c582c63734586ef59a0ba73561e6f2c8da | 1,892 | /*
* 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")... | 32.62069 | 77 | 0.683404 |
c2e5b7eb6060e458e7c2f3bc9f5aa9dddc421c1d | 1,939 | package dao;
import models.User;
import org.sql2o.*;
import java.util.List;
public class Sql2oUserDao implements UserDao {
private final Sql2o sql2o;
public Sql2oUserDao(Sql2o sql2o){
this.sql2o =sql2o;
}
@Override
public void add(User user){
String sql = "INSERT INTO users(userN... | 28.940299 | 157 | 0.565756 |
0cc8e9fa89c2f9428b29e80bad57dbd016105d70 | 561 | package com.company;
public class Main {
public static void main(String[] args) {
Mamiferos baleia = new Mamiferos("wale","cordado","aquático");
baleia.animalInfo();
/*
This repteis class can't be instantiated because it's an abstract class, so this code below can't be don... | 31.166667 | 115 | 0.602496 |
22996a5c6626125da7631fc7baa508a4dbdaf23f | 37,729 | /*
* Generated by the Jasper component of Apache Tomcat
* Version: Apache Tomcat/7.0.47
* Generated at: 2019-11-01 07:39:17 UTC
* Note: The last modified time of this file was set to
* the last modified time of the source file after
* generation to assist with modification tracking.
*/
package org.ap... | 66.659011 | 331 | 0.700416 |
943a54b7a2c419d587158036632909c207210b43 | 28 | test test test test test foo | 28 | 28 | 0.821429 |
38e01205256eca5c532c5daf46df0bd600e0b736 | 1,572 | /**
*
*Copyright 2014 The Darks Codec Project (Liu lihua)
*
*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... | 27.103448 | 75 | 0.67112 |
5d4a0e85bc99ba183b89a30b85e44fab61bb1a64 | 13,945 |
/*
* Janino - An embedded Java[TM] compiler
*
* Copyright (c) 2019 Arno Unkrig. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
* following conditions are met:
*
* 1. Redistributions of source code must retain... | 36.033592 | 126 | 0.606526 |
49201a46aa79e14bde71d145e27df05d1af0a17a | 493 | package com.ziroom.tech.demeterapi.common.enums;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* @author lipp3
* @date 2021/6/30 18:19
* @Description
*/
@Getter
@AllArgsConstructor
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum SkillMani... | 16.433333 | 51 | 0.661258 |
618ba66e223680c4b9b31fd1fe537b45d947dbf5 | 1,060 | package com.fincatto.nfe310.classes.cadastro;
import org.junit.Assert;
import org.junit.Test;
public class NFIndicadorContribuinteNFeTest {
@Test
public void deveRepresentarOCodigoCorretamente() {
Assert.assertEquals(NFIndicadorContribuinteNFe.NAO_CREDENCIADO_PARA_EMISSAO_NFE, NFIndicadorContribuinte... | 50.47619 | 154 | 0.823585 |
c4ee1790dd2395685da331a2507266ef3eda5de1 | 3,607 | /**
* 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... | 36.434343 | 122 | 0.701414 |
b3e5faa098508d4d7bae56ea8be64d435ad89b56 | 1,727 | package com.marverenic.music.ui;
import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.databinding.BaseObservable;
import android.graphics.drawable.Drawable;
import android.support.annotation.ColorInt;
import android.support.annotation.ColorRes;
import andr... | 28.311475 | 80 | 0.739433 |
7f914bcf05998c8fa1105a5b1040290ce3abaa40 | 1,793 | package com.giongstore.vn.runner;
import com.giongstore.vn.behavior.memento_pattern.*;
import com.giongstore.vn.creation.Cart;
import com.giongstore.vn.creation.Product;
import com.giongstore.vn.creation.ProductFactory;
/**
* Created by huytt99 on 23/08/19
*/
public class DemoMemento {
public static void main(S... | 43.731707 | 115 | 0.717234 |
f67a00d66ddee01894ffc00a515eb8ed57e3bcc0 | 852 | package command;
import connection.ConnectionListener;
import server.Application;
import server.Server;
import java.io.IOException;
/**
* Класс-команда, реализующая выход из JVM
*/
public class ExitCommand implements ServerCommand {
private final ConnectionListener connectionListener;
private final Applica... | 25.818182 | 103 | 0.704225 |
11901be5116055878903b7c27c4b857becc8cc13 | 572 | package com.facebook.imagepipeline.cache;
import com.facebook.common.references.ResourceReleaser;
import com.facebook.imagepipeline.cache.CountingMemoryCache.Entry;
class CountingMemoryCache$2 implements ResourceReleaser<V> {
final /* synthetic */ CountingMemoryCache this$0;
final /* synthetic */ Entry val$en... | 30.105263 | 68 | 0.723776 |
2aa6cbb16ff23a9f3409dccfa65205a7e5b2aa6c | 5,313 | /*
* Copyright 2006-2013 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... | 37.680851 | 208 | 0.701675 |
987b1d234f64422bdd7df7a3eea5e3256b137e67 | 1,564 | package osmparser;
import java.util.*;
public class Graph {
private final static double AVERAGE_RADIUS_OF_EARTH_CM = 6371 * 1000 * 100;
private final Map<Long, Node> graph;
public Graph() {
this.graph = new HashMap<>();
}
public void addNode(Node node) {
this.graph.put(node.getI... | 30.666667 | 95 | 0.580563 |
3173e22bd81e8c82ba9f92e6620af62c41352c87 | 1,185 | package ru.job4j.chess.firuges.black;
import org.junit.Test;
import ru.job4j.chess.ImpossibleMoveException;
import ru.job4j.chess.firuges.Cell;
import ru.job4j.chess.firuges.Figure;
import static org.junit.Assert.*;
public class BishopBlackTest {
@Test
public void whenPositionMatches() {
Figure figu... | 28.214286 | 63 | 0.647257 |
7922b49c59277198ca6047a7b9f9bf4754f7c76a | 2,065 | /*
* 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 ... | 39.711538 | 75 | 0.686683 |
50c7b69ee6d7a373f3447f296bf2fa0be0d34d0e | 1,605 | import com.didispace.lock.consul.CheckTtl;
import com.didispace.lock.consul.Lock;
import com.ecwid.consul.v1.ConsulClient;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import java.util.Random;
/**
* 测试
*/
public class TestLock {
@Test
public void testLock() th... | 28.157895 | 84 | 0.611838 |
9a6c33291dbd9cf10ae43e2b7039c6cedcd4a866 | 92 | @interface MyAnnotation {
Class value();
}
@MyAnnotation(<caret>A.class)
class MyClass {} | 15.333333 | 29 | 0.717391 |
7428a5cb6f959dcf5aaccc536c1fd8c738ce88bd | 3,198 | package spoon.test.prettyprinter;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import spoon.Launcher;
import spoon.compiler.SpoonResourceHelper;
import spoon.reflect.code.CtInvocation;
import spoon.reflect.code.CtStatement;
import spoon.reflect.code.CtThisAccess;
import spoon.reflect.code.C... | 37.623529 | 93 | 0.774859 |
93cc2d387b7eb3247a02418eb8a5a93284575a0a | 916 | /*
* Copyright (c) 2013, Inmite s.r.o. (www.inmite.eu).
*
* All rights reserved. This source code can be used only for purposes specified
* by the given license contract signed by the rightful deputy of Inmite s.r.o.
* This source code can be used only by the owner of the license.
*
* Any disputes arising in res... | 29.548387 | 80 | 0.757642 |
59f8f5c8477f18042e0ba30d442de686bf1f946b | 4,431 | package eu.fbk.das.other;
import eu.fbk.das.innowee.InnoWeeAnalyze;
import org.apache.log4j.Logger;
import org.junit.Test;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import st... | 27.867925 | 93 | 0.516813 |
6a74a4d2c5014206ac70cc1ce55e2db77e01b943 | 1,025 | package ua.oledok.algorithms.part1;
public class ArrayQueue<T> implements Queue<T> {
private int head;
private int tail;
private Object[] elements;
public ArrayQueue() {
elements = new Object[1];
}
@Override
public int size() {
return tail - head;
}
@Override
... | 19.339623 | 61 | 0.541463 |
9cc5fce82751e1a156a3abf514c0bad6ae489982 | 1,884 | package uk.gov.ons.ctp.response.action.endpoint;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
i... | 40.956522 | 116 | 0.789278 |
908a7a494aa97055444cc2c6b9470bed69264b3a | 2,372 | package nl.knaw.dans.repo.arrdf.http;
import nl.knaw.dans.repo.arrdf.xml.RsLn;
import nl.knaw.dans.repo.arrdf.xml.UrlItem;
import nl.knaw.dans.repo.arrdf.xml.Urlset;
import org.junit.Test;
import java.net.URI;
import static org.junit.Assume.assumeTrue;
/**
* Created on 2018-08-23 16:08.
*/
public class RsNavigato... | 36.492308 | 146 | 0.653035 |
fcbeacc4aa8455aeb0543d5ae43ff0acc233dbb1 | 8,279 | /**
*
*/
package com.chatcor.biz.svc;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.io.F... | 44.751351 | 183 | 0.652857 |
495cfad3546054ea29ac30012377415af2ac188c | 1,662 | /*
* Copyright 2018 B2i Healthcare Pte Ltd, http://b2i.sg
*
* 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 ... | 34.625 | 80 | 0.753309 |
af3d8960e084f0bd49b2aaabb0234b524442deb4 | 1,269 | package ru.job4j.math;
/**
* Класс статических математических операций.
* Демонстрация применения статического импорта.
*
* @author ViktorJava (gipsyscrew@gmail.com)
* @version 0.1
* @since 9/4/2021
*/
public class MathFunction {
/**
* Сумма двух чисел.
*
* @param first Первое число.
* ... | 22.660714 | 64 | 0.598897 |
ed0ad8e5ad5c3bfce563758bb26bb0c777ea85f4 | 3,615 | /* */ package mcheli.mcheli;
/* */ import java.io.File;
/* */ import java.io.PrintWriter;
/* */ import java.util.ArrayList;
/* */ import java.util.LinkedHashMap;
/* */ import mcheli.MCH_Lib;
/* */
/* */ public class MCH_SoundsJson {
/* */ public static boolean update(String path) ... | 32.863636 | 128 | 0.365422 |
0a7c84b36933f08ee9cbb1021099e3990d0dbaed | 10,631 | package com.serviciomecanico.serviciomecanico.Visualizar;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.design.widget.FloatingActionButton;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;... | 48.322727 | 156 | 0.667294 |
bda425c81fc8db369ab3a8bfc30c90e20554e294 | 1,343 | package com.salescompany.productservice.infrastructure.persistence.entity;
import com.salescompany.productservice.domain.product.Product;
import com.salescompany.productservice.domain.product.type.Category;
import com.salescompany.productservice.domain.warranty_policy.WarrantyPolicy;
import com.salescompany.productser... | 27.408163 | 89 | 0.731943 |
0a6638715e450ccca6f5746d95fa8b08d2146b5b | 3,042 | /**
* 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... | 41.108108 | 106 | 0.708087 |
c94dbec2a4204d6f074edee1d8752b072084e8d4 | 2,755 | import java.util.Scanner;
import java.util.Random;
public class CombatRoom extends Room{
private Monster monster;
private static final int ATTACK = 1;
private static final int CHECKBACKPACK = 2;
private static final int RUNAWAY = 3;
private Random randomGenerator = new Random();
private Scanner... | 40.514706 | 159 | 0.629038 |
8933ce73932f1eac696bd454bf368e694a6f333c | 14,620 | /*
* Copyright (C) 2019 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... | 39.945355 | 100 | 0.679754 |
89722e6ec23e5a8d87ec77e7766fbe8c03d97faf | 2,064 | /*-
* ============LICENSE_START=======================================================
* ONAP : APPC
* ================================================================================
* Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
* ======================================================... | 36.857143 | 93 | 0.569283 |
ab0c2c836f1b308102b2b0290e51f263dfd139d3 | 705 | package com.moment.common.util;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Properties;
public class ConfigUtil {
private static Properties pro;
static{
//InputStream input=ConfigUtil.class
//.getResourceAsStream("/conf/config.properties");
I... | 23.5 | 54 | 0.72766 |
698aad3f28e390a47acd3f7e5166f86c2245dd98 | 2,403 | package com.elderbyte.kafka.producer;
import com.elderbyte.kafka.messages.InvalidMessageException;
import com.elderbyte.messaging.annotations.MessageHeader;
import com.elderbyte.messaging.annotations.MessageKey;
import com.elderbyte.messaging.annotations.Tombstone;
import org.junit.Test;
import static org.junit.Asser... | 24.272727 | 60 | 0.622971 |
bbcb126df6e9b8668dc98b620e2944317c6b1b50 | 4,440 | package neo4jTraversal;
import java.util.ArrayList;
import java.util.HashMap;
import org.neo4j.graphdb.Direction;
import org.neo4j.graphdb.Node;
import org.neo4j.graphdb.Path;
import org.neo4j.graphdb.PathExpander;
import org.neo4j.graphdb.Relationship;
import org.neo4j.graphdb.traversal.BranchState;
import neo4jDat... | 27.407407 | 138 | 0.673423 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.