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 |
|---|---|---|---|---|---|
e00ce941b0e6526c6a5a7d2f18a80cba37d21b8b | 4,118 | package de.aspera.locapp.cmd;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Iterator;
import java.util.List;
import org.apache.commons.io.FileUtils;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.Cell;
import org.ap... | 34.898305 | 132 | 0.688441 |
2cb5d659cec1ecfd6ebf2a01b24084324f42c1a0 | 13,197 | /*
* Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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/li... | 45.506897 | 120 | 0.665757 |
adbde69724595a6078a94705f4cfbbbb86c6fe2d | 1,641 | package motherlode.client.render;
import javax.annotation.Nullable;
import motherlode.Motherlode;
import motherlode.client.model.entity.ModelMole;
import motherlode.entity.passive.EntityMole;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.client.renderer.entity.Render;
import net.minecraft.... | 31.557692 | 122 | 0.797684 |
f95e6aee670ec39728ce2690061e97da7be31c6d | 347 | package br.com.solutis.desafio.repository;
import br.com.solutis.desafio.domain.Cliente;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
@Repository
public interface ClienteRepository extends JpaRepos... | 24.785714 | 72 | 0.838617 |
f5612a4e794505781141c5c8fe861ffe5f1ed701 | 2,035 | /*******************************************************************************
* Copyright (c) 2009 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is a... | 27.876712 | 81 | 0.663391 |
05e8cd2ecd304f8654685c42984d2d5d649e8f9f | 556 | package CS561.recipebox.Nutrient;
import java.util.ArrayList;
public class NutrientItem
{
private String text;
public NutrientItem(String s)
{
text = s;
}
public String getString()
{
return text;
}
public static ArrayList<NutrientItem> createNutrientList(String[] Nut... | 18.533333 | 79 | 0.597122 |
2de32aed362fb43fa329b35de7be09cc12402b21 | 2,255 | package org.biopax.cytoscape.causalpath;
import org.biopax.cytoscape.causalpath.Panel.LegendPanel;
import org.cytoscape.application.CyApplicationManager;
import org.cytoscape.application.swing.CySwingApplication;
import org.cytoscape.application.swing.CytoPanelComponent;
import org.cytoscape.application.swing.CyActio... | 35.234375 | 130 | 0.784479 |
7019efb329367038af4ae53d077028ae6b23c327 | 263 | package com.smzdm.soy.invoker;
import com.smzdm.soy.domain.InvokerContext;
import com.smzdm.soy.exception.SoyException;
/**
* Created by zhengwenzhu on 16/10/28.
*/
public interface Invoker {
String invoke(InvokerContext context) throws SoyException;
}
| 18.785714 | 62 | 0.764259 |
25fab9d07fa2984f794fdae67baf1a72e6417574 | 153 | package com.uploadcare.data;
import java.util.List;
public class UploadMultipartStartData {
public String uuid;
public List<String> parts;
}
| 13.909091 | 39 | 0.745098 |
17907aed3f8d8cca5bb89b77bcf2b3d2a323b5f7 | 5,083 | /*
* Copyright to 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 applicabl... | 32.375796 | 97 | 0.558332 |
9c12421be5a60c2f7d1aaa80e5ecfda269459e6a | 3,033 | package lab.chabingba.eventorganizer.Helpers;
import lab.chabingba.eventorganizer.Helpers.Constants.DatabaseConstants;
/**
* Created by Tsvetan on 2015-05-26.
*/
//DON'T forget to convert table name before using it.
public final class QueryHelpers {
public static String createQueryForEventTable(String tableN... | 32.265957 | 206 | 0.672272 |
6594fcd2e26266f54268038f2fb1be57fd183fa6 | 4,387 | import grid.letter.LetterRotate;
import grid.logic.LogicStatus;
import grid.logic.flatten.FlattenLogicer;
import grid.puzzlebits.Direction;
import grid.puzzlebits.Path.Path;
import grid.puzzlebits.Turns;
import grid.solverrecipes.singleloopflatten.EdgeState;
import grid.spring.GridFrame;
import grid.spring.GridPanel;
... | 33.746154 | 107 | 0.557784 |
ef6e06993596c19e03acff59af9ee45fe248942f | 866 | package com.example.app;
import com.google.common.base.Optional;
/**
* Examples from webinar: Working with optionals
*/
public class Optionals {
public static void main(String[] args) {
Optional<Integer> possible = Optional.of(5);
Optional<Integer> absentInteger = Optional.absent();
Sys... | 28.866667 | 65 | 0.665127 |
cadbe0c9ed17b94327cb6cca4ffa83ebad5e0d54 | 182 | package b.l.d.o.e0;
import b.l.d.d;
import com.google.firebase.auth.FirebaseAuth;
public final class i0 extends FirebaseAuth {
public i0(d dVar) {
super(dVar);
}
}
| 16.545455 | 45 | 0.664835 |
43b1e4e4b1c32805eff5fb50c2a689974c8f8065 | 182 | package music.dao;
import org.springframework.data.repository.CrudRepository;
import music.domain.Album;
public interface AlbumDAO extends CrudRepository<Album, Integer>{
}
| 12.133333 | 65 | 0.796703 |
579fc5a775460e0310687bac1e0a6f9765d6ff0f | 1,858 | //
// Nexus Server - server-side support for Nexus distributed application framework
// http://github.com/threerings/nexus/blob/master/LICENSE
package com.threerings.nexus.server;
import com.google.common.collect.Maps;
import com.threerings.nexus.distrib.DistribUtil;
/**
* A map whose contents are mirrored across ... | 34.407407 | 98 | 0.660388 |
8e4dbccfcdd66eeaee9b349f569a9bc7ac33ac78 | 3,494 | package org.proteored.miapeapi.xml.ms.merge;
import java.util.ArrayList;
import java.util.List;
import org.proteored.miapeapi.interfaces.ms.ResultingData;
import org.proteored.miapeapi.xml.merge.MiapeMerger;
public class MiapeMSResultingDataMerger implements
MiapeMerger<List<ResultingData>> {
private static Miape... | 33.27619 | 77 | 0.723812 |
1e273543f823a137605c569cecaa43a995edca5a | 2,243 | /**
* Copyright 2014
* SMEdit https://github.com/StarMade/SMEdit
* SMTools https://github.com/StarMade/SMTools
*
* 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.... | 29.12987 | 128 | 0.68123 |
4d2009637a83b7c1c2145b60f364505543115f80 | 5,981 | /**
* Copyright © 2018 Mayo Clinic (RSTKNOWLEDGEMGMT@mayo.edu)
*
* 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 ... | 31.314136 | 110 | 0.713593 |
d6ee38763ad3468d6babc0295c114e67c44189d1 | 758 | package com.edge.stocks.product.kc.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.edge.stocks.product.kc.entity.ERP_Stock_Status;
public interface KC_StatusDao {
// 新增库存状态
public void saveStockStatus(ERP_Stock_Status status);
// 编辑库存
public void editStockStatu... | 26.137931 | 90 | 0.765172 |
8077f8bc06a2b0ed66974a1cc037b5d44c08abf4 | 174 | package interfaces;
////Have eatPlants method in both interfaces one with int and one with void
public abstract class AbstractBear_05 implements Herbivore_04,Omnivore_04 {
}
| 34.8 | 75 | 0.821839 |
a1ddfee8d6fdebac388eedd6e06cea8ab22056d8 | 421 | package de.studiocode.invui.util;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
public class IOUtils {
public static void copy(InputStream in, OutputStream out, int bufferSize) throws IOException {
byte[] buffer = new byte[bufferSize];
int len;
w... | 23.388889 | 98 | 0.631829 |
7c402579cd1f0c52c7cdabcb3d514eefe7551852 | 7,063 | class t9D {
}
class vPM8 {
public void jbKFMjyo1H_;
public static void RyDbIsDu (String[] CUSy) {
;
----( -new CI().FtvszX).wHUZ8YZAP34o;
boolean[][] kGsX;
UeM7rar0jbghB1[][] jCEJ2N6;
boolean[][][] DVVMGlea = this[ !!!-!false.CS_Tca()];
pzdw cE2SYN54Bgjze9;
... | 39.679775 | 294 | 0.506725 |
f8b7ded4685d1712bbf31ca70ead571182709d31 | 870 | // Test to make sure null arrays throw the right execption
public class Array_3
{
static Object foo ()
{
return null;
}
static int[] bar ()
{
return null;
}
public static void main(String args[])
{
boolean ok = false;
int nn = 0;
try
{
int[] x = (int[])foo();
nn = x.lengt... | 14.5 | 58 | 0.509195 |
fb046c1d157c8950f646b82a3b6784cb9481bee1 | 5,744 | package com.dayofpi.super_block_world.common.blocks;
import com.dayofpi.super_block_world.client.sound.SoundInit;
import com.dayofpi.super_block_world.registry.block.PlantBlocks;
import com.dayofpi.super_block_world.registry.main.BlockInit;
import com.dayofpi.super_block_world.registry.main.TagInit;
import net.minecra... | 49.517241 | 173 | 0.696901 |
123a29f8dc43283e51e30b3a39da5d856892d4e3 | 2,837 | package com.sdet.auto.springboot2api.controller;
import com.fasterxml.jackson.databind.ser.FilterProvider;
import com.fasterxml.jackson.databind.ser.impl.SimpleBeanPropertyFilter;
import com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider;
import com.sdet.auto.springboot2api.exceptions.UserNotFoundException;
... | 37.328947 | 116 | 0.702503 |
704edd33695b7e5e85fbdbc23cfcb72cae07d296 | 2,356 | package cc.gasches.geodata.config;
import java.util.Arrays;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.HttpMethod;
import org.springframework.security.config... | 37.396825 | 102 | 0.699066 |
ba48c24b1c820af88e0c2bf45675b5264de6000a | 2,603 | package cn.easy4j.framework.interceptor;
import cn.easy4j.common.enums.HttpStatusEnum;
import cn.easy4j.common.exception.BusinessException;
import cn.easy4j.framework.annotation.CheckRepeatSubmit;
import cn.easy4j.framework.strategy.CheckRepeatSubmitStrategy;
import org.apache.commons.lang3.StringUtils;
import org.spr... | 32.949367 | 129 | 0.729543 |
a5232813c862c0bd3490a7f2b548bc7ea199d056 | 1,446 | package me.shouheng.vmlib.holder;
import android.arch.lifecycle.MutableLiveData;
import android.util.SparseArray;
import java.util.HashMap;
import java.util.Map;
import me.shouheng.vmlib.base.SingleLiveEvent;
import me.shouheng.vmlib.bean.Resources;
/**
* One holder for {@link android.arch.lifecycle.LiveData}
*
... | 30.765957 | 99 | 0.654219 |
372d1cb8fb4ad9aede78fe1dff4369537c7a9a44 | 3,111 | /*
* Copyright 2018
* Matías Roodschild <mroodschild@gmail.com>.
* Jorge Gotay Sardiñas <jgotay57@gmail.com>.
* Adrian Will <adrian.will.01@gmail.com>.
* Sebastián Rodriguez <sebastian.rodriguez@gitia.org>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file ... | 31.744898 | 135 | 0.578592 |
7eef821067326f939f69c0da18e826ee45f5ac83 | 2,384 | package github.zgqq.intellij.enhance;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.actionSystem.LangDataKeys;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.... | 41.824561 | 103 | 0.667366 |
8eaf32fffad44f71208560e42314f7f8e798d27a | 702 |
/**
* Write a description of class Camara here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Camara
{
private Point3D from;
private Point3D to;
private Point3D up;
private double angleh;
private double anglev;
private double zoom;
private double fro... | 20.057143 | 45 | 0.55698 |
bc7eea22ccbfc73c18842cdd37a2930c54677915 | 3,781 |
package com.iclnbi.iclnbi_v2_00;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java ... | 30.491935 | 146 | 0.640836 |
bca96a2cb143d594f5f5ce83b8ed7462fec83881 | 11,011 | package novemberizing.rx;
import novemberizing.ds.Executable;
import novemberizing.ds.Executor;
import novemberizing.ds.func.Single;
import novemberizing.rx.operators.Completion;
import novemberizing.rx.operators.Composer;
import novemberizing.rx.operators.Condition;
import novemberizing.rx.operators.Sync;
import nove... | 30.843137 | 168 | 0.53937 |
4b65791b0251df886f359e813fc44c5bbe5cbe52 | 2,818 | package edu.jhu.thrax.util;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Scanner;
import java.util.zip.GZIPInputStream;
public class Intersect
{
p... | 30.301075 | 105 | 0.544713 |
ddaec3c6cda17a5f96e72123ce39327153d4de36 | 545 | package org.colorcoding.ibas.bobas.repository;
import org.colorcoding.ibas.bobas.core.RepositoryException;
public class InvalidTokenException extends RepositoryException {
private static final long serialVersionUID = 1420946876180404469L;
public InvalidTokenException() {
super();
}
public InvalidTokenExcepti... | 20.185185 | 68 | 0.788991 |
66790f6a0d58885c09b009e247d963384519d4bf | 930 | package cn.cici.frigate.config.server.jpa;
import cn.cici.frigate.config.server.entity.ServiceConfig;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import java.util.List;
/**
* @author xie... | 34.444444 | 94 | 0.768817 |
4fd9874dd8b9a37e531338874052895e976afe3a | 4,170 | package com.example.hxk.webviewx5;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import com.example.hxk.webviewx5.utils.X5WebView;
import com.tencent.smtt.sdk.CookieManager;
import com.tencent.smtt.sdk.CookieSyncManager;
import com.tencent.smtt.sdk.QbSdk;
import com.tencent.smtt... | 25.272727 | 105 | 0.71295 |
c95db2b031c1491346ea82160aa525f623467cd1 | 774 | package org.apache.spark.sql.catalyst.plans.logical;
/**
* The enumeration of join strategy hints.
* <p>
* The hinted strategy will be used for the join with which it is associated if doable. In case
* of contradicting strategy hints specified for each side of the join, hints are prioritized as
* BROADCAST over SH... | 45.529412 | 151 | 0.757106 |
c1bd32d38fb9bd32837330dd01904990498d8d4d | 3,897 | /*
* 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")... | 43.786517 | 99 | 0.679497 |
0e93c7b3d595c5dbd3951c065e39b95a519c96fe | 18,355 | /*
* Copyright 2000-2012 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... | 37.382892 | 198 | 0.732498 |
eb3b75f20b3d4bfc4658435f0090521702f2a708 | 539 | package com.sharedpermission.www.sharedpermission;
import android.app.Application;
import com.sharedpermission.android.SharedPrefrenceHelper;
/**
* Created by Rushabh-qs on 19-12-2017.
*/
public class TestApp extends Application {
@Override
public void onCreate() {
super.onCreate();
Share... | 25.666667 | 137 | 0.742115 |
eb46b110e0a7854fa616fa26cd2c25b2bbd0ed6d | 212 | class ques1{
public static void main(String[] args) {
int i = 2;
int j = 3;
int n = 92;
while(i <= n) {
System.out.printf(i+" ");
i = i + j;
j = j + 2;
}
}
}
//Output
//2 5 10 17 26 37 50 65 82
// logic
| 10.6 | 42 | 0.528302 |
f599489c03d5983ebfe390ae6bd7fc422c9db82b | 356 | /**
* ぬるぽ
* @author PotatoTimeKun (https://github.com/PotatoTimeKun)
*
*/
public class nullpo {
public static void main(String[] args){
try{
throw new NullPointerException();
}catch(NullPointerException e){
System.out.println("ぬるぽ");
System.out.p... | 20.941176 | 60 | 0.533708 |
75e065a9a95b29f81c52009e8f1f0101ef5dd547 | 191 | package cn.edu.nju.software.sda.app.service.impl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
@Slf4j
@Service
public class GroupRelationServiceImpl {
}
| 19.1 | 49 | 0.816754 |
4baca8feb5dd24c5c5bafa8b0ecc322e9ca40d4c | 725 | import java.util.*;
import java.math.BigInteger;
public class c3{
public static void main(String[] args){
int t;
BigInteger zero = new BigInteger(String.valueOf(0));
BigInteger one = new BigInteger(String.valueOf(1));
Scanner s = new Scanner(System.in);
t = s.nextInt();
BigInteger tot... | 25 | 57 | 0.546207 |
96f72815f75cd29f33059fd10f26238ea5037008 | 1,136 | /*
* Copyright 2008-2009 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... | 30.702703 | 75 | 0.723592 |
45c63c74f2c1155c7365b10885b9dfd200cc08d5 | 709 | package fungsi_ponsel;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
MethodTransaksi mt = new MethodTransaksi();
do {
switch(mt.state) {
case 0:
mt.menuLogin();
break;
case 1:
mt.menuAdmin();
break;
case 2:
mt.menuPelanggan();
... | 19.694444 | 60 | 0.569817 |
1cbd0c9783e96e8d35835ae40e62236a4d747fb6 | 6,104 | package game.models.single;
import game.models.ModelLearnableBase;
import game.trainers.GradientTrainable;
import game.trainers.Trainer;
import game.utils.GlobalRandom;
import java.util.Random;
import configuration.models.ModelConfig;
import configuration.models.TrainerSelectable;
import configuration.mod... | 30.984772 | 100 | 0.582241 |
8f02f1d19306443e700fa4816e87945bd6637b6d | 3,460 | /*
* 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 ... | 34.949495 | 88 | 0.807514 |
e9ee60b96e0306c657e531221c5689f4c19360d9 | 6,992 | 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... | 14.72 | 813 | 0.797054 |
9d6678c50d313ccfa11f4b37c563d213781347b4 | 1,557 | package com.idaniu.maga.shopping.activity;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import com.idaniu.maga.shopping.R;
/**
* yb新建的用于点击头图后跳到的下一级页面,写了一个webview来... | 30.529412 | 80 | 0.695568 |
aa2eed38775766e190f8a4da14697d52b2f1b581 | 3,466 | package sri.os.dom;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Stack;
public class HTMLDocument {
private HashMap<String, ArrayList<HTMLNode>> idNodes, classNodes;
private HashMap<String,Boolean> blackList;
private String innerHTML;
private char[] rawData;
p... | 17.774359 | 69 | 0.642527 |
c83974703fe268ecf4c2c39e7925577202af5e07 | 69 | package com.lko.comprehend.cloud.aws;
public class AwsS3Adapter {
}
| 13.8 | 37 | 0.782609 |
0331c38cfa1122b2bfcfb7c8a69133462f581ae0 | 28,446 | package fr.ujm.tse.lt2c.satin.inferray.datastructure;
import java.lang.ref.SoftReference;
import java.util.Arrays;
import java.util.Random;
import java.util.concurrent.atomic.AtomicInteger;
import org.apache.log4j.Logger;
import cern.colt.list.LongArrayList;
/**
* <p>
* This class is primarily used to represent a... | 24.930762 | 119 | 0.62638 |
cd74b96737ae306218c374f2fbf13b6953f28d5d | 15,258 | package com.u9porn.ui.basemain;
import android.content.Context;
import android.os.Build;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.android.material.tabs.TabLayout;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentMan... | 36.156398 | 180 | 0.656574 |
78994aa2affcc1ac3b60ef0384a73c267ff6ad59 | 2,046 | //,temp,HypervDirectConnectResource.java,1616,1661,temp,HypervDirectConnectResource.java,1217,1267
//,3
public class xxx {
protected Answer execute(final DnsMasqConfigCommand cmd) {
if (s_logger.isInfoEnabled()) {
s_logger.info("Executing dnsmasqConfig command: " + s_gson.toJson(cmd));
}... | 40.117647 | 148 | 0.587488 |
313defc35a2107755b15fd495c09f713719a3a38 | 4,182 | // Copyright 2014 The Bazel Authors. 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 appl... | 42.673469 | 100 | 0.712817 |
bd5d66698fafea17058eeb48b3c7e9c8d1725560 | 7,011 | /*
* Copyright (c) 2020. https://rxmicro.io
*
* 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 o... | 44.373418 | 131 | 0.643988 |
630b7f8f95dabbfa8e6161a56f80cd3ce0d88ac5 | 7,499 | package kit.starter.com.starterkit;
import android.provider.ContactsContract;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;
import com.android.volley.AuthFailureError;
import com.android.volley.Request;
import com.android.volley.Req... | 40.978142 | 141 | 0.589412 |
1b22f6a5b6530e8e4a34789b1b671c3e597d1799 | 389 | package com.fengwenyi.javalib.constant;
/**
* Http Media Type
* @author Erwin Feng
* @since 2020/5/11 12:08 上午
*/
public class MediaTypeConstant {
/** application/json */
public static final String APPLICATION_JSON_VALUE = "application/json";
/** application/...form... */
public static final Stri... | 22.882353 | 93 | 0.699229 |
18ac060b48c56d6515b6e7d321b6db0c1f7c7544 | 7,201 | package com.elementary.tasks.backups;
import android.app.ProgressDialog;
import android.content.Context;
import android.os.AsyncTask;
import android.os.Environment;
import android.os.StatFs;
import com.elementary.tasks.R;
import com.elementary.tasks.core.cloud.Dropbox;
import com.elementary.tasks.core.cloud.Google;
i... | 32.29148 | 108 | 0.573115 |
c2d391e11be64687ea3bd818af70c63e8cf5bf25 | 1,341 | package com.produtos.apirest.models;
import java.io.Serializable;
import java.math.BigDecimal;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
... | 20.953125 | 112 | 0.744221 |
e4522ad8a7c0583c28a0ce0c77a3ba378947dc71 | 372 | package swaping;
/**
* @author : akashdhar
* @date : 16-06-2019
* @time : 10:19 AM
*/
public class SwapUsingBitwiseXOR {
public static void main(String[] args) {
int a = 12;
int b = 25;
System.out.printf("%d %d\n", a, b);
a = a ^ b;
b = a ^ b;
a = a ^ b;
... | 13.777778 | 44 | 0.462366 |
d15356bff791c8235be3911cecd4217b310fc829 | 2,654 | /**
* The MIT License (MIT)
*
* Copyright (c) 2016 Alexey Saenko
*
* 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 us... | 33.175 | 80 | 0.712133 |
7fbbe033f07574776ce4d360ecdac1029734ee2b | 2,809 | /*
* Copyright 2016 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... | 35.1125 | 87 | 0.749021 |
2a8bdb197c918e10e6b107e5a8df8717f111624e | 2,686 | package com.cy.util.mail;
import org.springframework.core.io.FileSystemResource;
import org.springframework.mail.javamail.JavaMailSenderImpl;
import org.springframework.mail.javamail.MimeMessageHelper;
import java.io.File;
import java.io.UnsupportedEncodingException;
import java.net.MalformedURLException;
import java... | 33.575 | 132 | 0.734177 |
6b1825d918adeb135c9e34e109f4e109742f4803 | 862 | package com.ruoyi.cloudDesktop.domain;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
public class UserDemo extends BaseEntity {
private static final long serialVersionUID = 1L;
/** 账号 */
@Excel(name = "用户id")
private String userId;
/** 账号 */
@Exce... | 20.52381 | 52 | 0.575406 |
b5e1e7209badfb60397c5ee6dd2146d116a968ee | 3,458 | package dfs_tests;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.util.List;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import digraph.DiGraph;
import graph.Graph;
import dfs_applications.DFS;
public class TestFindPath {
@Before
pu... | 28.578512 | 65 | 0.669173 |
0e29e86ef66bdcdd3860c706795a6f563cfcc997 | 1,341 | /*
* Copyright (c) 2019 Santanu Sinha <santanu.sinha@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 by ... | 31.928571 | 87 | 0.730798 |
14b59eadb538ad1d41f312d1e8a7c8ceb39eb9f4 | 426 | package pl.edu.agh.student.danielkurosz.Punkt;
public class Punkt3D extends Punkt2D{
protected double z;
public Punkt3D(double _x, double _y,double _z) {
super(_x, _y);
z=_z;
}
public double getZ() {
return z;
}
public void setZ(double z) {
this.z = z;
}
... | 19.363636 | 68 | 0.579812 |
8993c0287bc7d89849ee1e9e9e38bb1bf9f4d8b6 | 4,062 | /*
* Created on 15 fevr. 2004
*/
package com.foc.gui.table.cellControler.editor;
import java.awt.Color;
import java.awt.Component;
import javax.swing.*;
import javax.swing.border.Border;
import com.foc.Globals;
import com.foc.gui.DisplayManager;
import com.foc.gui.table.FTable;
import java.awt.event.... | 27.632653 | 162 | 0.625062 |
ebb54fbbf82becfda085c5ccca069272332b4010 | 1,189 | package org.jp.illg.dstar.service.remotecontrol.model.command;
import java.nio.ByteBuffer;
import java.util.Arrays;
import org.jp.illg.dstar.service.remotecontrol.model.RemoteControlCommandType;
import com.annimon.stream.Optional;
import lombok.Getter;
import lombok.Setter;
public class NakCommand extends RemoteCo... | 19.177419 | 78 | 0.720774 |
5aa60c6b0cf72d5180ac66014242cc70f26035a5 | 64 | package com.hht.floatbar.base;
public interface BaseView {
}
| 9.142857 | 30 | 0.75 |
7644072d4c4d956ddcca4dca8bb4d70e3ad80758 | 510 | package Assignments;
import com.plink.dolphinnet.*;
import java.util.*;
import java.util.zip.*;
import java.io.*;
/**
This assignments returns the data from an RSS news source.
*/
public class Packet extends Assignment implements Serializable{
/////////////////////////
// Constructor.
public Packet(... | 18.214286 | 64 | 0.62549 |
f5f02743f7bebb49777bca9c6797151fed69b0e4 | 365 | package com.github.gv2011.quarry.util;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.*;
import org.junit.Test;
import com.github.gv2011.quarry.bits.BinMath;
public class BinMathTest {
@Test
public void testTwoToThePowerOf() {
for(int i=0; i<=62; i++){
assertThat(BinMath.twoToThePowe... | 18.25 | 68 | 0.717808 |
f7614c26bf1a8aad4fc1519946c531a47edc8bec | 2,455 | package ru.wapstart.plus1.sdk;
import java.util.Map;
abstract class MraidCommand {
protected Map<String, String> mParams;
protected MraidView mView;
MraidCommand(Map<String, String> params, MraidView view) {
mParams = params;
mView = view;
}
abstract void execute();
protected int getIntFromParamsForKey(S... | 24.55 | 84 | 0.733198 |
f33e11311951db34907318bd96cbce77087ae5c9 | 5,979 | package com.genius.primavera.application.article;
import com.genius.primavera.domain.ArticleNotFoundException;
import com.genius.primavera.domain.PageRequest;
import com.genius.primavera.domain.Paged;
import com.genius.primavera.domain.mapper.article.ArticleCommentMapper;
import com.genius.primavera.domain.mapper.arti... | 34.560694 | 141 | 0.794949 |
dd0e8e81694c81cac727cecc1da8b2f953e5e68f | 3,110 | package com.frek2816.androidlab;
import android.annotation.SuppressLint;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.widget.CardView;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view... | 32.736842 | 101 | 0.694212 |
bcb66f933f1009bbaad309d4417339ccb1fc134d | 580 | package dima.listener;
import dima.event.ContainerStatusChangeEvent;
import dima.event.DockerStatusChangeEvent;
import dima.event.ScanEvent;
import dima.event.ScannedEvent;
public interface IDockerListenable {
default public void onScan(ScanEvent event) {
}
default public void onScanned(ScannedEvent event)... | 19.333333 | 75 | 0.781034 |
003534e622e4ba425f779b63e80bb88e7e73e1e3 | 794 | package com.baoyongan.java.eg.pattern.cor.traditional;
/**
* 处理request3请求
* Created by bao on 2017/2/27.
*/
public class HandlerImpl3 implements Handler {
private Handler handler;
public HandlerImpl3(Handler handler) {
this.handler = handler;
}
public void setHandler(Handler handler) {
... | 24.060606 | 96 | 0.624685 |
29098496b92b15f27a8a28ff230940ba2eba7be3 | 2,031 | //,temp,XMLConverterHelper.java,119,153,temp,XmlConverter.java,950,984
//,3
public class xxx {
public DocumentBuilderFactory createDocumentBuilderFactory() {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setNamespaceAware(true);
factory.setIgnoringElementCont... | 50.775 | 103 | 0.635647 |
2eda9995928a43fa6dee8a861f07355a7af33174 | 810 |
public class TokenTuple {
private String content, rawContent;
private int line, column;
public TokenTuple(String content, String rawContent, int line, int column) {
super();
this.content = content;
this.rawContent = rawContent;
this.line = line;
this.column = column;
}
public String getContent() {
ret... | 19.756098 | 77 | 0.702469 |
7f8dc180b6ba10c6ecbef7af62ac779ab3b65ef3 | 1,849 | /**
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech) (3.2.1-SNAPSHOT).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.prokarma.pkmst.controller;
import io.swagger.annotations.*;
import org.springframework.http.ResponseEntity;
import org.... | 45.097561 | 376 | 0.750676 |
6a6ac6eecf54adfede28c8d06f17e2398c30cda3 | 23,258 | /**
* 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... | 44.049242 | 99 | 0.595408 |
35925b53aa929a149bb9452ac7284041b003b485 | 692 | package de.bitbrain.jpersis.util;
import de.bitbrain.jpersis.drivers.Driver;
import de.bitbrain.jpersis.drivers.sqllite.SQLiteDriver;
import org.testcontainers.containers.GenericContainer;
public class SQLiteDriverFactory extends DriverFactory {
private final String DB;
public SQLiteDriverFactory(String db)... | 23.862069 | 80 | 0.726879 |
4162afbdc6e8f0cc7a6baeb06bade18a35ba16c4 | 73 | package org.nanotek;
public interface Copier<K> {
void copy(K k);
}
| 9.125 | 28 | 0.671233 |
71e0cb24f6a4bf7a9520118eb353b8b66a087a82 | 256 | package rs.raf.infview.util.io.file;
import java.util.Map;
import java.util.Set;
import rs.raf.infview.model.Record;
import rs.raf.infview.model.Attribute;
public interface RecordCounter {
Set<Record> count(Map<Integer, Attribute> avgInfo);
} | 23.272727 | 53 | 0.75 |
93b465ffdb507cf2a668da21010d5e30dcda62c0 | 3,197 | package org.knowm.xchange.examples.gateio.marketdata;
import java.io.IOException;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.ExchangeFactory;
import org.knowm.xchange.currency.CurrencyPair;
import org.knowm.xchange.dto.marketdat... | 38.987805 | 99 | 0.777917 |
36db9197c31ddc016521820f7acbd1c8af244054 | 3,167 | // Author: Jamie Hunter, 2019
// Refer to LICENSE.TXT for copyright and license information
//
package org.jprolog.parser;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* Base class, manage reg-ex matching over an entire line of input
*/
public abstract class LineMatcher {
private final Pa... | 20.564935 | 78 | 0.518787 |
9a2552cb5b37aadf7be5568268e2f901e2336fb2 | 1,356 | package it.unisa.scanapp.repository;
import it.unisa.scanapp.domain.Transaction;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.*;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.... | 41.090909 | 124 | 0.800147 |
c2eb92336a4dc86ebfff819fb1bd88081d214612 | 86,042 | /*
* Copyright 2015-2017 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... | 41.687016 | 954 | 0.674461 |
b8eebe74402020686af35b84a5a8b4272489db42 | 204 | package io.github.jacobcaraballo.redhoppers;
import net.fabricmc.api.ClientModInitializer;
public class ClientMain implements ClientModInitializer {
@Override
public void onInitializeClient() {
}
}
| 18.545455 | 57 | 0.813725 |
6bcfb9be30701c5e9c86e44fa6989cdb2bd63a8c | 2,479 | /*
* Copyright (C) 2021 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.430556 | 91 | 0.701896 |
0143825c9cfff8ca115ecc302157cdc1287d2183 | 16,029 | // ============================================================================
//
// Copyright (C) 2006-2015 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... | 35.462389 | 174 | 0.531724 |
500ee1ed85b80c93eba398aef6d6abf32dcef592 | 306 | package br.com.itau.techinsiders.ibank.repository;
import br.com.itau.techinsiders.ibank.models.Pessoa;
import org.springframework.data.repository.CrudRepository;
public interface PessoaRepository extends CrudRepository<Pessoa, Long> {
public Pessoa findPessoaByTelefone(String telefone);
}
| 27.818182 | 73 | 0.80719 |
ac39adc780c8fd0583eb969ee1ba5032b5199740 | 7,674 | /*
* 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 hospmansys;
/**
*
* @author SreeHome
*/
public class Menu extends javax.swing.JFrame {
/**
* Creates new form Men... | 46.228916 | 154 | 0.631222 |
ddd602a0cb2db310cec215bea4b2a99ac17a1f4e | 382 | package com.github.peacetrue.result.exception;
import javax.annotation.Nullable;
/**
* arguments as data
*
* @author xiayx
*/
public abstract class SimplifiedExceptionConverter<T extends Exception> extends AbstractExceptionConverter<T, Object[]> {
@Nullable
@Override
protected Object[] resolveArgumen... | 21.222222 | 121 | 0.722513 |
0a6c0f026bd5e5955b90879704e8f42754bac880 | 4,560 | package com.anahuac.calidad.dbunit;
import com.anahuac.calidad.doublesDAO.Alumno;
import org.dbunit.Assertion;
import org.dbunit.DBTestCase;
import org.dbunit.PropertiesBasedJdbcDatabaseTester;
import org.dbunit.database.IDatabaseConnection;
import org.dbunit.dataset.IDataSet;
import org.dbunit.dataset.ITable;
import ... | 35.905512 | 127 | 0.665789 |
16d4580594ff72d449774e711e9f93681731998b | 31,282 | /**
* The contents of this file are subject to the license and copyright
* detailed in the LICENSE and NOTICE files at the root of the source
* tree and available online at
*
* http://www.dspace.org/license/
*/
package org.dspace.app.rest;
import static com.jayway.jsonpath.matchers.JsonPathMatchers.hasJsonPath;
... | 66.135307 | 118 | 0.594783 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.