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 |
|---|---|---|---|---|---|
c75b30d5389f1392c668041cf1671f6f277f72c9 | 5,194 | /*
* The MIT License
*
* Copyright (c) 2004-2009, Sun Microsystems, Inc.
*
* 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
... | 34.85906 | 121 | 0.651328 |
34b52a91eeb273131899734083c8b04cb44c92c9 | 2,553 | package org.jetbrains.java.decompiler.util;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
public class VarHelper {
private static final Map<String, String[]> switches = new HashMap<String, String[]>();
static {
switches.put("byte", n... | 24.314286 | 138 | 0.534665 |
75355cb658d7f00fb1cb86620dd8884b795debac | 752 | package com.xing.apidemo.newvolley;
import android.graphics.Bitmap;
import android.util.LruCache;
import com.android.volley.toolbox.ImageLoader;
public class BitmapCache implements ImageLoader.ImageCache {
private LruCache<String,Bitmap> mCache;
public BitmapCache(){
//10M
int maxSize = 10*... | 22.787879 | 61 | 0.634309 |
e30da8392ff819dee78350daa712bd2e86251815 | 1,466 | package br.com.zup.propostas.proposalregistration;
import br.com.zup.propostas.proposalanalisys.ProposalAnalysisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.ResponseEntity;
import org.springframework.w... | 33.318182 | 147 | 0.783765 |
793e5614e5f3e8fd81085dbc43dfaeb771966a67 | 974 | package cn.ttplatform.wh.group;
import java.net.InetSocketAddress;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.ToString;
/**
* @author Wang Hao
* @date 2021/4/21 13:30
*/
@Data
@ToString
@AllArgsConstructor
public class EndpointMetaData {
private String nodeId;
private String host... | 23.756098 | 95 | 0.63963 |
1a551732f064758ef19f2bfd12eed6a587a67992 | 1,608 | import org.apache.hadoop.io.FloatWritable;
import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;
import sun.reflect.generics.tree.Tree;
import java.io.IOException;
import java.util.Map;
import java.util.TreeMap;
public class TFReducer extends Reducer<N... | 32.16 | 126 | 0.63806 |
df182b63813267dd3a502c582c0a757f56694c10 | 2,937 | package com.jia.modeling.controller;
import com.alibaba.fastjson.JSON;
import com.google.gson.Gson;
import com.jia.common.entity.relation;
import com.jia.modeling.service.relationService;
import com.jia.modeling.service.relationServiceImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;... | 33.375 | 117 | 0.707184 |
bee9e67a2b91685d50588fe08d94c73cd76896c3 | 5,194 | /*-
* #%L
* Bricks Dashboard
* %%
* Copyright (C) 2018 - 2019 Ingo Griebsch
* %%
* 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
... | 44.775862 | 123 | 0.793223 |
ed11cb0398c578d508b5ebfb7b241224d11cbf9b | 4,165 | package com.gempukku.swccgo.cards.set1.dark;
import com.gempukku.swccgo.cards.AbstractSite;
import com.gempukku.swccgo.cards.GameConditions;
import com.gempukku.swccgo.cards.conditions.ControlsCondition;
import com.gempukku.swccgo.common.Icon;
import com.gempukku.swccgo.common.Side;
import com.gempukku.swccgo.common.T... | 50.180723 | 217 | 0.764946 |
8c574f49b886b415d8338ac2186be7c2f55fe93b | 5,688 | package com.github.ansonliao.selenium.utils;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.jayway.jsonpath.Configuration;
import com.jayway.jsonpath.DocumentContext;
import com.jayway.jsonpath.JsonPath;
import com.jayway.jsonpath.PathNotFoundException;
import com.jayway.json... | 37.92 | 119 | 0.637834 |
68db3f6a15693c1ece68a6ff2cceaeeeca1678cd | 3,162 | /* */ package com.fasterxml.jackson.core;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ ... | 19.886792 | 141 | 0.367805 |
0c5e5238080e8239822b955540033ca0a6edebdc | 4,049 | package com.okcoin.commons.okex.open.api.test.swap;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.okcoin.commons.okex.open.api.bean.swap.param.LevelRateParam;
import com.okcoin.commons.okex.open.api.bean.swap.result.ApiAccountsVO;
import com.okcoin.commons.okex.open.api.bean... | 36.809091 | 108 | 0.701408 |
c82e0733f6306972860e85d665aa00cf2b29f8aa | 1,477 | package security.x509;
import java.security.Security;
import java.security.cert.Certificate;
import java.security.cert.CertificateParsingException;
import org.bouncycastle.asn1.ASN1EncodableVector;
import org.bouncycastle.asn1.DERBitString;
import org.bouncycastle.asn1.DERSequence;
import org.bouncycastle.asn1.x509.A... | 38.868421 | 120 | 0.811104 |
dedc2f6ce6518c42eba34600551c2cdad43bfd59 | 27,657 | /**
* 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.content.integration.crosswalks;
import static org.dspace.builder.CollectionBuilder.... | 41.652108 | 107 | 0.645623 |
8befdbcbbb9f347257868c22da1d6b2bd52dee2c | 1,358 | /*
* Hibernate Validator, declare and validate application constraints
*
* License: Apache License, Version 2.0
* See the license.txt file in the root directory or <http://www.apache.org/licenses/LICENSE-2.0>.
*/
package org.hibernate.validator.ap.checks;
import java.util.Collections;
import java.util.Set;
import... | 27.16 | 98 | 0.773196 |
4cc98e40276cb4fc412a18a60270804865d102f8 | 1,471 | /**
* Copyright (c) 2000-present Liferay, 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 requ... | 26.267857 | 75 | 0.71312 |
6e2548d30f8480b7384ecece46791ac862ea96d5 | 1,020 | package co.popapp.util.tree;
import java.util.Comparator;
import java.util.List;
/**
* Supplies the needed behaviour to buildTree a table from a list of entities. Essentially this is
* providing a list with an Entity's parents and sorting them taking care of the parents. Ie:
*
* <pre>
* Asuming:
*
* ENTITIES: ... | 20.4 | 98 | 0.532353 |
d779b309fe6dc2e310ff47933b87993998b7e5c1 | 9,615 | /*
* Copyright 2017-2020 Frederic Thevenet
*
* 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... | 47.364532 | 126 | 0.678211 |
b6663f6ec384a90870f770848d1b6174ebb9fd18 | 768 | package calc;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import java.net.URL;
class CalcClient {
public static void main(String args[]) throws Exception {
URL url = new URL("http://127.0.0.1:9876/calc?wsdl");
QName qname = new QName("http://calc/", "CalcServerImplService");
Service ws = Ser... | 40.421053 | 98 | 0.704427 |
799e500025da90049ba273271ea977d62610f1a2 | 1,543 | package com.lelloman.lousyaudiolibrary.algorithm;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.DoubleBuffer;
public class Fft {
static {
System.loadLibrary("mylib");
}
// size of the output (complex)
public final int size;
ByteBuffer byteBuffer;
public Fft(int size){
this.siz... | 26.152542 | 77 | 0.76604 |
d53f2013575bf8d39713afcffa0421b1356950bb | 7,950 | package com.example.jackson.step;
import android.app.Service;
import android.content.Intent;
import android.content.SharedPreferences;
import android.database.sqlite.SQLiteDatabase;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.InputType;
import android.util.Log;
import... | 36.46789 | 122 | 0.642893 |
4190349eedd2a54511256cb59acf57446b8c5fde | 5,078 | package aug.bueno.coffeeshop.reward.tests;
import aug.bueno.coffeeshop.product.Product;
import aug.bueno.coffeeshop.product.SpecialProductsEnum;
import aug.bueno.coffeeshop.reward.RewardByGiftService;
import aug.bueno.coffeeshop.reward.RewardInformation;
import aug.bueno.coffeeshop.reward.tests.argument.converter.Prod... | 36.797101 | 120 | 0.681371 |
225569f9fea662f1d8b4d1597fa19e7ee281017b | 106 | package org.goodiemania.melinoe.framework.drivers;
public interface ClosableDriver {
void close();
}
| 17.666667 | 50 | 0.773585 |
736d21c625932c3debdf84d77031425898aea367 | 17,250 | package me.ci.Community;
import java.util.HashMap;
import java.util.Map;
import me.ci.WhCommunity;
import me.ci.Conquest.Buildings.Constructors.Flag;
import me.ci.Conquest.KingdomManagment.KingdomCommand;
import me.ci.Conquest.KingdomManagment.KingdomMaker;
import me.ci.Conquest.KingdomManagment.KingdomMg;
... | 40.116279 | 183 | 0.671768 |
937433999eaa3d04eff3e1f615a6788be80391b0 | 12,597 | /*
* 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 foodprofile.view;
import foodmood.controller.NavigationCntl;
import foodmood.view.UserInterface;
import foodprofile.controller... | 32.466495 | 132 | 0.571009 |
ed8dc9cceb822821bf34f22e5db3091c0a3dd93b | 213 | package com.adjust.sdk.test;
/**
* Created by pfms on 28/01/15.
*/
public enum ResponseType {
NULL, CLIENT_PROTOCOL_EXCEPTION, INTERNAL_SERVER_ERROR, WRONG_JSON, EMPTY_JSON, MESSAGE, ATTRIBUTION, ASK_IN;
}
| 23.666667 | 113 | 0.751174 |
b9babeb78505f80144afb370d34ef383ece1f90a | 3,013 | package mall.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.data.domain.Pag... | 25.752137 | 89 | 0.745105 |
ac67382643d94564ba3fd56043eefe5d6ad046a4 | 5,305 | // Generated from Logic.g4 by ANTLR 4.8
package grammar.logic;
import org.antlr.v4.runtime.Lexer;
import org.antlr.v4.runtime.CharStream;
import org.antlr.v4.runtime.Token;
import org.antlr.v4.runtime.TokenStream;
import org.antlr.v4.runtime.*;
import org.antlr.v4.runtime.atn.*;
import org.antlr.v4.runtime.... | 36.840278 | 98 | 0.620358 |
ce68b872331bf5a548890b852bf9f8ef8c5f6084 | 1,895 | /*
* @Copyright (c) 2018 缪聪(mcg-helper@qq.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 requir... | 38.673469 | 124 | 0.759894 |
50e3c2c6527173369f8d5a91863a24b4633edcb0 | 448 | /**
*
* @author Carlos Contreras
*/
public class Monomio {
public int coeficiente;
public String base;
public int exponente;
public Monomio(int coeficiente, String variable, int exponente) {
this.coeficiente = coeficiente;
this.base = variable;
this.exponente = exponente;... | 22.4 | 76 | 0.631696 |
fad5ee30e222d0b53d21357afac251aabb2fb3c4 | 597 | package es.urjc.etsii.grafo.solution;
import es.urjc.etsii.grafo.io.Instance;
import java.util.Optional;
/**
* Neighborhood that is able to generate random movements under demand
*
* @param <S> Solution class
* @param <I> Instance class
*/
public interface RandomizableNeighborhood<M extends Move<S,I>, S extends... | 24.875 | 109 | 0.696817 |
919b45f46062b3d9963ba5b36ad0a38803471aa8 | 2,151 | package codeforces;
import java.io.*;
import java.util.*;
public class K_BachgoldProblem {
final static FastReader fr = new FastReader();
final static long mod = 1000000007 ;
static void solve()
{
int n = fr.nextInt();
// we have to find maximum possible primes
// so we try to take smal... | 18.228814 | 59 | 0.48768 |
80e1ced517e6d24c271fa0bdc34f34c55d972d93 | 619 | package org.enast.hummer.dynamodel.attribute;
import org.enast.hummer.dynamodel.conmon.DataType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @author zhujinming6
* @create 2020-04-11 16:33
* @update 2020-04-11 16:33
**/
@Data
@AllArgsConstructor
@NoArgsConstructor
p... | 22.107143 | 50 | 0.757674 |
145b409a14c074897022fb6b58dc4f7c3c92f713 | 1,414 | package com.mediamonks.googleflip.pages.game.physics.levels;
import android.util.Log;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.physics.box2d.FixtureDef;
import com.mediamonks.googleflip.GoogleFlipGameApplication;
import com.mediamonks.googleflip.pages.game.FlipGameActivity;
import org.andengine.... | 28.857143 | 145 | 0.763083 |
0bba761e1394e2ac231bc3690d09201bd85030d2 | 948 | package net.vexelon.appicons.wireframe;
import net.vexelon.appicons.wireframe.entities.IconFile;
import net.vexelon.appicons.wireframe.entities.IconURL;
import java.nio.file.Path;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* Blocking API
*/
public interface BioDownloader {
/**
... | 27.085714 | 88 | 0.690928 |
ccbf8363284d5fad5d6c81c3b080746d7aad4073 | 3,196 | package com.kumaduma.epicseveninfo.Model.Tier;
import java.util.List;
public class PVPTier {
private String nameId;
private double arenaOffense;
private double arenaDefense;
private double gwOffense;
private double gwDefense;
private double average;
private List<String> recommendedSetList;... | 25.365079 | 92 | 0.681164 |
edd9c42235e9eb0ccbc9be4f3b4e9d3d4135eee3 | 242 | package org.baifei.modules.entity.response.dhl;
import lombok.Data;
import java.util.List;
@Data
public class DhlResponseStatus {
private String code;
private String message;
private List<DhlMessageDetails> messageDetails;
}
| 16.133333 | 51 | 0.764463 |
825623a6fc8e9ec886f47ea7dda5792d629f8b70 | 638 | package com.chilitech.base.manager.database;
import android.content.Context;
import java.util.List;
public interface DBHandler {
void init(Context context);
<T> long save(T t);
<T> long saveOrUpdate(T t);
<T> void delete(T t);
<T> void clear(Class<T> clazz);
<T> T getById(Class<T> cla... | 17.722222 | 74 | 0.598746 |
d3f9981dc5ad280cbd9b78823878bfe2337037e4 | 1,889 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package be.ugent.maf.cellmissy.gui.view.renderer.list;
import be.ugent.maf.cellmissy.entity.PlateCondition;
import be.ugent.maf.cellmissy.entity.result.area.AreaAnalysisGroup;
import java.awt.Component;
import ... | 34.981481 | 131 | 0.689254 |
53935354c3e98ceec7586230a3eaac6887ab6bab | 4,204 | package zielu.gittoolbox.ui.blame;
import com.intellij.openapi.util.text.StringUtil;
import jodd.util.StringBand;
import org.apache.commons.lang3.StringUtils;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import zielu.gittoolbox.ResBundle;
import zielu.gittoolbox.UtfSeq;
import z... | 37.20354 | 97 | 0.731446 |
d58b8ef1b2d0edd9104a4e9665015cce38d41477 | 438 | private static int[][][] dwgraph(int N, int[][] E) {
int[] D = new int[N];
for (int[] e : E) ++D[e[0]];
int[][][] res = new int[2][N][];
for (int i = 0; i < 2; ++i) for (int j = 0; j < N; ++j) res[i][j] = new int[D[j]];
D = new int[N];
for (int[] e : E) {
int x = e[0], y = e[1], z = e.le... | 31.285714 | 86 | 0.378995 |
1a06d99fd0752ae69665b972f403afdfc5e6b161 | 15,571 | /*
*
* This file is part of the iText (R) project.
Copyright (c) 1998-2017 iText Group NV
* Authors: Balder Van Camp, Emiel Ackermann, et al.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License version 3
* as published by the ... | 29.379245 | 116 | 0.612099 |
2cea96f40ce111fd77d4ca670fa70cf24eabeb09 | 9,936 | /***
Copyright (c) 2008-2009 CommonsWare, LLC
Portions (c) 2009 Google, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may
not use this file except in compliance with the License. You may obtain
a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless requi... | 28.388571 | 132 | 0.718398 |
74c45997eb3dc53f6ca6af4cac06c4d3e99bfab4 | 2,782 | package es.pcv.game.gui;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
import com.jogamp.opengl.GL2;
import com.jogamp.opengl.glu.GLU;
import com.jogamp.opengl.glu.GLUquadric;
... | 23.183333 | 83 | 0.6445 |
d07c59da34c528e0a150abf145ce5a7ba2dfd12f | 5,072 | package org.batfish.client;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.CommandLineParser;
import org.apache.commons.cli.DefaultParser;
import org.apache.commons.cli.HelpFormatter;
import org.apache.commons.cli.Option;
import org.apache.commons.cli.Options;
import org.apache.commons.cli.Pa... | 36.489209 | 84 | 0.707413 |
d0e4732881d1e18c44c4b1b2c12404038671e7ae | 1,727 | package com.liulishuo.filedownloader.model;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.Parcelable.Creator;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
public class FileDownloadHeader implements Parcelable {
public static final Creator<FileDownloadHea... | 27.412698 | 76 | 0.584829 |
c90dc7d6051174544d6cfc27b770cb4a05f0a079 | 3,224 | package fi.trustnet.example.issuer;
import java.net.URI;
import java.nio.charset.StandardCharsets;
import java.util.LinkedHashMap;
import org.abstractj.kalium.NaCl.Sodium;
import org.apache.commons.codec.binary.Hex;
import org.hyperledger.indy.sdk.did.DidResults.CreateAndStoreMyDidResult;
import com.github.jsonldjav... | 38.843373 | 135 | 0.788151 |
e0f37c41455888338c532f4c43ac7d09f9a344dd | 98 | package com.nanda.testlab.selenium.guru99.test;
public class LinksTest extends BaseTest {
}
| 12.25 | 47 | 0.765306 |
e80570ba1a2e8006088cde49950bc3e51b411c70 | 4,505 | package com.soundbread.history.data.db.model;
import java.util.ArrayList;
import java.util.List;
/**
* Created by fruitbites on 2017-09-17.
*/
public class Incident {
String id;
int time;
String tp;
String dynasty;
String name;
String chinese;
String photo;
String thumbOn;
Strin... | 20.477273 | 328 | 0.582686 |
8e65f3dbb55f01aec8aeb55751b054c78a29b438 | 20 | public class aa {
}
| 6.666667 | 17 | 0.65 |
c7fb2f1593e75732474a6a4665bd5684644b413c | 732 | package com.liugh.bean.chain;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Service;
@Service
public class ApplicationService {
@Autowired
private ApplicationContext context;
public void mockedClien... | 25.241379 | 62 | 0.737705 |
725362aad9b91c8d030c1d5c5cd8e2e0c7ab6ac8 | 5,031 | /*
* (c) Copyright 2018 Palantir Technologies 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 ... | 36.194245 | 115 | 0.664878 |
c22094b8def189e4b156b68961d2f87bf18c4ab2 | 1,130 | package com.kioea.www.jsqlparsertest;
import java.io.StringReader;
import junit.framework.TestCase;
import net.sf.jsqlparser.parser.CCJSqlParserManager;
import net.sf.jsqlparser.statement.truncate.Truncate;
import org.junit.Test;
public class TruncateTest extends TestCase {
private CCJSqlParserManager parserManage... | 34.242424 | 83 | 0.776106 |
52cf1e807c6940c6440bad68d6a79833bdd38b71 | 5,163 | /*
* MIT License
*
* Copyright (c) 2019 Syswin
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, m... | 22.845133 | 90 | 0.662018 |
3182e264d08fc708354a2ae56d3aa99b7c8f9c46 | 17,671 | /**
* Copyright (C) 2010-2018 Gordon Fraser, Andrea Arcuri and EvoSuite
* contributors
*
* This file is part of EvoSuite.
*
* EvoSuite is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation, eit... | 48.149864 | 111 | 0.785128 |
2a23d261066241d914746c7901a436c17be200c5 | 11,625 | /*
* Copyright (C) 2017-present, Chenai Nakam(chenai.nakam@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 r... | 43.703008 | 145 | 0.557075 |
f03325f272a1f6cf28ce68e0c25c7d893575dd98 | 568 | /*
* This Java source file was generated by the Gradle 'init' task.
*/
package it.unicam.cs.ids.c3;
import it.unicam.cs.ids.c3.javafx.JavaFXC3;
import it.unicam.cs.ids.c3.database.DBManager;
import javafx.application.Application;
import java.io.IOException;
import java.sql.SQLException;
public class App {
publ... | 27.047619 | 77 | 0.711268 |
70f3566259dc1e6f7d89300de75d0ee603597296 | 1,151 | package br.com.projeto.casa.codigo.pais.modelo;
import br.com.projeto.casa.codigo.pais.modelo.excessao.PaisNaoEncontradoException;
import br.com.projeto.casa.codigo.pais.repositorio.PaisRepositorio;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
impo... | 25.577778 | 91 | 0.67854 |
00bd2e89c56b3d53f8480d31a8615c7ef92e1dbe | 5,978 | package com.iceberg.dao;
import com.iceberg.entity.Role;
import com.iceberg.entity.UserInfo;
import com.iceberg.utils.PageModel;
import org.junit.jupiter.api.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.tes... | 28.740385 | 88 | 0.617431 |
888264d6b908aed0e13422ac4e1ae8ab2323bab1 | 8,321 | package com.femto.post.activity;
import java.util.HashMap;
import org.apache.http.Header;
import org.json.JSONObject;
import cn.sharesdk.framework.Platform;
import cn.sharesdk.framework.PlatformActionListener;
import cn.sharesdk.framework.ShareSDK;
import cn.sharesdk.sina.weibo.SinaWeibo;
import cn.sharesdk.wechat.fr... | 30.818519 | 93 | 0.696431 |
e82363023f94f80a8e119a6e9e1706593e1cfa5a | 831 | package com.stylefeng.guns.modular.api.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@ApiModel(value ="省市区")
public class ProvCityDistModel {
private Integer id;
@ApiModelProperty("地名")
private String name;
// @ApiModelProperty("0 省 1市区 2县")
// priva... | 20.775 | 47 | 0.636582 |
7db07709b73f12407941621fdd5da16971ed5110 | 3,602 | package com.wjx.android.wanandroidmvp.adapter;
import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import android... | 34.634615 | 134 | 0.722376 |
cfe19c2a578b234d78d22491aff8cb161643974a | 567 | package ExerciciosAula14e15;
import java.util.Scanner;
public class Exercicio2 {
public static void main (String[] args){
Scanner scan = new Scanner (System.in);
System.out.println("Digite um número: ");
double num1 = scan.nextDouble();
if(num1 > 0){
System.out.println("... | 33.352941 | 85 | 0.597884 |
7195484069b0346437e114aae12a270ee62a5bd5 | 1,106 | package com.shiva.jenkvExamples;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import com.itextpdf.text.Chunk;
import com.itextpdf.text.Document;
import com.itextpdf.text.DocumentException;
import com.itextpdf.text.pdf.PdfWriter;
public class ChunkExample {
public static void main(String[... | 28.358974 | 61 | 0.600362 |
dbbfc5744ceba1372f43c55c12bd4baa1d4ee53c | 4,359 | /*
* 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 ... | 33.022727 | 89 | 0.671714 |
5ad9231bc391677a2299c66c9df7aad061deaea0 | 14,260 | package net.earthcomputer.easyeditors.gui.command;
import java.io.IOException;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Set;
import com.google.common.base.Predicate;
import com.google.common.base.Predicates;
import com.google.common.collect.ImmutableSet;
import com.g... | 34.695864 | 114 | 0.706241 |
63ba9daedf7ce5a5a4e862e2cb0af4e4ff5b1f27 | 749 | package org.opendatakit.submit.ui.common;
import android.app.Application;
import androidx.lifecycle.AndroidViewModel;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import org.opendatakit.application.CommonApplication;
import org.opendatakit.database.service.UserDbInterface;
public class Ap... | 24.16129 | 66 | 0.782377 |
461778b5a98f22f67968c720bd2aa7bfcfd6d508 | 1,627 | package org.robobinding.widget.imageview;
import org.robobinding.util.PrimitiveTypeUtils;
import org.robobinding.viewattribute.property.MultiTypePropertyViewAttribute;
import org.robobinding.viewattribute.property.PropertyViewAttribute;
import android.graphics.Bitmap;
import android.graphics.drawable.Drawable;
import... | 30.698113 | 98 | 0.794714 |
d5b31a78b572f845675524bb546a330cb11542ec | 28,765 | /*******************************************************************************
* Copyright 2011 Antti Havanko
*
* This file is part of Motiver.fi.
* Motiver.fi is licensed under one open source license and one commercial license.
*
* Commercial license: This is the appropriate option if you want to use ... | 32.799316 | 228 | 0.671962 |
30af52181da2c24d1975bdf7ea9eb5d5c0ece300 | 10,652 | package io.swagger.codegen;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.samskivert.mustache.Mustache;
import io.swagger.codegen.*;
import io.swagger.codegen.languages.AbstractCSharpCodegen;
import io.swagger.models.*;
import io.swagger.models.p... | 40.501901 | 209 | 0.656684 |
d6f5cde7ace188d39f57d591cd34cec101d70131 | 4,758 | package net.minecraft.world.chunk.storage;
import net.minecraft.block.Block;
import net.minecraft.block.state.IBlockState;
import net.minecraft.init.Blocks;
import net.minecraft.world.chunk.BlockStateContainer;
import net.minecraft.world.chunk.NibbleArray;
public class ExtendedBlockStorage {
private final int fi... | 31.098039 | 155 | 0.598991 |
2b464fe5ae95a60482002e3a6aaa104cc0a253b8 | 1,402 | package Distributed_System_Java_Src.dc_socket;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.ServerSocket;
import java.net.Socket;
public class SocketServer {
public static void main(St... | 28.612245 | 79 | 0.607703 |
5b7d10cd5001559980e18a7d13480939fa05e45d | 3,129 | package org.jpo.gui.swing;
import org.jpo.testground.PlayWithFontAwesome;
import java.awt.*;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
/*
Copyright (C) 2020-2021 Richard Eigenmann.
This program is free software; you can redistribute it and/or
modify it under the ... | 35.965517 | 159 | 0.712049 |
5c2770a28aad62428ab85d40e067c9a2752ce8a5 | 347 | package com.oxchains.themis.notice.dao;
import com.oxchains.themis.notice.domain.SearchType;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
/**
* @author luoxuri
* @create 2017-10-27 10:39
**/
@Repository
public interface SearchTypeDao extends CrudRepos... | 24.785714 | 72 | 0.801153 |
72389de580f36f63f0562064bd9847a1574d2856 | 1,295 | package me.interair.lexer.mr;
import lombok.extern.slf4j.Slf4j;
import org.antlr.v4.runtime.ParserRuleContext;
import org.antlr.v4.runtime.RuleContext;
import org.antlr.v4.runtime.tree.ParseTree;
@Slf4j
class AstPrinter {
private boolean ignoringWrappers = true;
public void setIgnoringWrappers(boolean ignor... | 31.585366 | 84 | 0.599228 |
2ce84799ea39ef55b298f99f1f38c5e1ec17cea2 | 1,537 | package com.hozakan.emailchecker.ui.adapter;
import android.content.Context;
import android.database.Cursor;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CursorAdapter;
import android.widget.TextView;
import com.hozakan.emailchecker.R;
import com.h... | 27.945455 | 91 | 0.716981 |
f8bb71ae05a794de379c75b9a6d0595d4378b23d | 2,272 | /*
* #%L
* wcm.io
* %%
* Copyright (C) 2018 wcm.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 ap... | 23.183673 | 103 | 0.702025 |
0a3913aa93ecb66aadec8af1a039eafb09b8d67e | 3,012 | /*
* Copyright DataStax, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wri... | 36.289157 | 100 | 0.701859 |
8bd8442935f571c3620153d26f569a7903a9b986 | 1,710 | package com.hazelcast.yarn.mapreverser;
import com.hazelcast.yarn.api.dag.Vertex;
import com.hazelcast.yarn.api.tuple.Tuple;
import com.hazelcast.yarn.api.tuple.io.TupleInputStream;
import com.hazelcast.yarn.api.tuple.io.TupleOutputStream;
import com.hazelcast.yarn.api.container.ContainerContext;
import com.hazelcast.... | 34.2 | 122 | 0.696491 |
c2ddb81a0729c06ba936c1af81b238019bb9c9f9 | 12,506 | /*
* Copyright 2017-2019 original authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 43.273356 | 204 | 0.697665 |
cfdecfc6b925acd5417644038f1d142247296717 | 1,041 | package com.blagoy.officemaps.domain;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table
public class Door {
@Id
@GeneratedValue
private long id;
private double leftX;
private double rightX;
p... | 16.52381 | 42 | 0.610951 |
d6d320489280d8a31a886832d3700df51fd90fee | 232 | // SPDX-License-Identifier: MIT
package com.mercedesbenz.sechub.adapter.testclasses;
import com.mercedesbenz.sechub.adapter.WebScanAdapterConfig;
public interface TestWebScanAdapterConfigInterface extends WebScanAdapterConfig {
} | 29 | 81 | 0.857759 |
4d2b6d4f76f1fbce53a224521427a5ae1e30c9cb | 2,857 | package com.alternativeinfrastructures.noise.views.debug;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import android.view.View;
import android.widget.ArrayAdapter... | 40.814286 | 122 | 0.715436 |
52bc826ccc9a008391a46148f16a725ffd9a4c83 | 308 | package com.haut.music.utils;
import javax.servlet.http.HttpServletRequest;
import com.haut.music.model.User;
/**
* 获取userSession
*/
public class Request {
public static User getUserFromHttpServletRequest(HttpServletRequest request) {
return (User) request.getSession().getAttribute("user");
}
}
| 18.117647 | 79 | 0.762987 |
13fd12c4146c09e037573cc6921b97dbba97e2eb | 1,728 | package com.qaprosoft.carina.demo.cucumber.steps.manali;
import org.openqa.selenium.interactions.touch.TouchActions;
import com.qaprosoft.carina.core.foundation.cucumber.CucumberRunner;
import com.qaprosoft.carina.demo.mobile.gui.pages.common.EguruLoginPageBase;
import com.qaprosoft.carina.demo.mobile.gui.pages.commo... | 25.043478 | 78 | 0.699074 |
3b4521c53be5947416c8a8e0fd16664681128f7c | 2,635 | /*
* 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 ... | 27.447917 | 77 | 0.648577 |
e21ecd7eac6dbf395f1c93f4d306f16ebe1c4e2b | 788 | package br.com.mgr.rh.service.reajuste;
import br.com.mgr.rh.ValidacaoException;
import br.com.mgr.rh.model.Funcionario;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.temporal.ChronoUnit;
public class ValidacaoPeriodicidadeEntreReajustes implements ValidacaoReajuste {
@Override
pu... | 37.52381 | 103 | 0.755076 |
9c6f46b129f95f250f98210f920c43acdcf5d781 | 5,005 | package com.lgy.oms.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lgy.common.constant.Constants;
import com.lgy.common.utils.StringUtils;
import com.lgy.common.utils.reflect.ReflectUtils;
import com.lgy.o... | 40.362903 | 228 | 0.667333 |
3873045b53d037187791893231a48e81ca798608 | 2,227 | package nuc.web.pojo;
/**
* 部门表
*/
public class Department {
private int id;
private int department_number;
private String name;
private String manager;
private String telephone;
private String address;
private String notes;
public Department() {
}
public ... | 22.494949 | 132 | 0.527167 |
2467e97e249058d5f3d6da6a842759bc9257db35 | 3,042 | package com.doctoredapps.androidjeopardy.model;
import android.database.Observable;
import android.support.annotation.IntDef;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.HashMap;
/**
* Created by MattDupree on 10/26/14.
*/
public class Game implements Round.... | 30.42 | 95 | 0.70217 |
ed035eec3232e0ce003fa97921af68145ec480d1 | 1,020 | //Powered By ZSCAT, Since 2014 - 2020
package com.zsTrade.web.bases.model;
import javax.persistence.Table;
import com.zsTrade.common.base.BaseEntity;
/**
*
* @author zsCat 2016-11-2 17:13:42
* @Email: 951449465@qq.com
* @version 4.0v
* 优惠劵管理
*/
@SuppressWarnings({ "unused"})
@Table(name="shop_favorites")
pu... | 26.842105 | 71 | 0.742157 |
0c49361e1f3f64baee175424b6433c18f2d59143 | 144 | package br.com.sidney;
public class RedLight implements Semaphore {
@Override
public void doAction() {
System.out.println("Red.");
}
}
| 12 | 44 | 0.701389 |
0565b9579912efa30cab14e6b3d3f9de0da7358e | 76 | package com.deeal.activity.callback;
public class FashionShowCallback {
}
| 12.666667 | 36 | 0.802632 |
946367126cdb2832729f647c850351bdf7db1e6f | 2,447 | package uk.ac.ebi.subs.repository.model.templates;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;
import org.json.JSONObject;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import ja... | 25.489583 | 102 | 0.642419 |
910e5e524e72b2ca8a61e9d3aa625233cec3ab2b | 1,172 | package com.app.linio_app.Services.Firebase_Services;
import android.content.Context;
import android.support.annotation.NonNull;
import com.app.linio_app.Services.ErrorDialogs;
import com.google.android.gms.tasks.OnCompleteListener;
import com.google.android.gms.tasks.Task;
import com.google.firebase.auth.FirebaseAut... | 32.555556 | 101 | 0.697952 |
e5c2d63a1ce63818d89323c7c0a738cfbb5cc611 | 14,432 | /*
* Copyright (c) Ovidiu Serban, ovidiu@roboslang.org
* web:http://ovidiu.roboslang.org/
* All Rights Reserved. Use is subject to license terms.
*
* This file is part of AgentSlang Project (http://agent.roboslang.org/).
*
* AgentSlang is free software: you can redistribute it and/or modify
* it u... | 31.579869 | 129 | 0.713345 |
0e86254acd4dbe79045bc7c640521ac294dfc3e5 | 863 | package org.vibioh.spring.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.vibioh.ioc.Operation;
import org.vibioh.ioc.Reader;
import org.vibioh.ioc.Writer;
import org.vibioh.spring.Process;
import java.io.IOException;
import java.util.lo... | 25.382353 | 85 | 0.68482 |
ad4537068c80224fd92a7c17a46c2f7c04551efd | 2,837 | /**
*
*/
package com.cas.circuit;
import com.cas.circuit.consts.ServoConst;
/**
* @author 张振宇 2015年10月9日 下午3:28:16
*/
public final class PulseLong implements Comparable<PulseLong> {
private int resolution;
private long boutCount; // a bout count 一转信号个数
private int minorCount;
/**
*
*/
public PulseLong... | 17.842767 | 102 | 0.614734 |
3d55b341a5f0bf3f0704c3e19c25b6f74894533c | 1,500 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.6
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2019.06.12 at 09:... | 44.117647 | 226 | 0.785333 |
8fd64122c0f5ac6773d68bae16caed40949b7922 | 4,974 | package com.aurora.account.web;
import com.aurora.account.model.Activity;
import com.aurora.account.model.TempUser;
import com.aurora.account.model.User;
import com.aurora.account.service.ActivityService;
import com.aurora.account.service.ApplicantService;
import com.aurora.account.service.SecurityService;
import com.... | 29.258824 | 121 | 0.635304 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.