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 |
|---|---|---|---|---|---|
7c79283aafc8b3c28b9d4233973db8cc197abc50 | 1,413 | import java.text.NumberFormat;
import java.util.Locale;
import java.util.concurrent.atomic.AtomicInteger;
public class Customer {
private static final AtomicInteger maxId = new AtomicInteger(0);
private static final NumberFormat formatter = NumberFormat.getCurrencyInstance(Locale.US);
private final int id;... | 27.705882 | 131 | 0.640481 |
3bc0fcecfe6d0e4032d92e03855f78971fa84e99 | 688 | package net.notejam.spring.security;
import org.springframework.stereotype.Controller;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
import net.notejam.spring.URITemplates;
/**
* Login controller.
*... | 28.666667 | 82 | 0.799419 |
1e43a9391dbf75238c16207b3ac8e1fe10b196eb | 50,614 | /*
*AVISO LEGAL
© Copyright
*Este programa esta protegido por la ley de derechos de autor.
*La reproduccion o distribucion ilicita de este programa o de cualquiera de
*sus partes esta penado por la ley con severas sanciones civiles y penales,
*y seran objeto de todas las sanciones legales que correspondan.
*Su... | 33.630565 | 731 | 0.763109 |
abb0ee688d14bbfe9aaa9bdd768ca5b589855aa2 | 1,501 | package com.zhengzhou.hadoop.webkpi;
import java.io.IOException;
import java.net.URISyntaxException;
import java.util.HashMap;
import java.util.Map;
public class KPIJob {
//定义全局变量 hdfs地址url
public static final String HDFS = "hdfs://127.0.0.1:9000";
public static void main(String[] args) throws ClassNotF... | 44.147059 | 129 | 0.672219 |
c871d5bd33498a70dc83d3b785f20218de68def4 | 457 | package com.relaxed.common.risk.engine.rules.statistics.executor;
import com.relaxed.common.risk.engine.rules.statistics.AggregateExecutor;
import com.relaxed.common.risk.engine.rules.statistics.domain.IAggregateParam;
/**
* @author Yakir
* @Topic AbstractAggregateExecutor
* @Description
* @date 2021/8/30 16:38
... | 28.5625 | 114 | 0.789934 |
0dbac351a57f70746b5a79e54962c872004ef63f | 2,389 | package net.mattlabs.crewchat.listeners;
import net.mattlabs.crewchat.Channel;
import net.mattlabs.crewchat.CrewChat;
import net.mattlabs.crewchat.util.ChannelManager;
import net.mattlabs.crewchat.util.PlayerManager;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listene... | 38.532258 | 129 | 0.675178 |
293cace1c40a03661738e48bee08a577f3068ee1 | 422 | import edu.princeton.cs.algs4.StdOut;
public class TestMutability {
private int me;
public TestMutability(int me) {
this.me = me;
}
private void mutateMe(TestMutability taget) {
taget.me = 4;
}
// do unit testing of this class
public static void main(String[] args) {
TestMutability testme = new TestMut... | 19.181818 | 48 | 0.71327 |
416bf1d6e723d78d795c5bd368c211102d71981d | 503 | package com.example.elk;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
/**
* @Author: vector
* @Date: 2020/8/15 22:43
*/
@SpringBootApplication(exclude = DataSou... | 26.473684 | 79 | 0.787276 |
b325293d3ee8a2c9486f3bb3deef79ea25ad56a2 | 7,484 | /**
* 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"... | 28.348485 | 136 | 0.686665 |
6b1c2ab5b6e1804da5a7bcc12a58bb98bfeeb195 | 7,371 | package be.kwakeroni.scratch.test;
import be.kwakeroni.parameters.basic.client.model.Ranged;
import be.kwakeroni.parameters.basic.client.model.Simple;
import be.kwakeroni.parameters.basic.client.query.EntryQuery;
import be.kwakeroni.parameters.basic.client.query.RangedQuery;
import be.kwakeroni.parameters.basic.client... | 46.651899 | 146 | 0.708045 |
b238b3bf8f97320e29e8ceefa58e111076aae81d | 1,095 | package ru.dns.qa;
import java.util.ArrayList;
import java.util.List;
public class VirtualBasket {
private static List<VirtualProduct> virtualBasket = new ArrayList<>();
public static void addToBasket(VirtualProduct virtualProduct){
virtualBasket.add(virtualProduct);
}
public static void de... | 26.071429 | 84 | 0.674886 |
c1dbec9daed36c0608dbd9568c0bcb6f8141bf29 | 4,958 | package com.jaspersoft.jasperserver.api.metadata.security;
import com.jaspersoft.jasperserver.api.metadata.user.service.impl.InternalURIDefinition;
import org.springframework.security.acls.domain.AccessControlEntryImpl;
import org.springframework.security.acls.model.*;
import org.springframework.util.Assert;
i... | 33.275168 | 165 | 0.636345 |
b47bf61da6dd5fd2565a89890b9eebac19fd34f4 | 446 | package com.ty.user.service.impl;
import com.ty.user.entity.RoleEntity;
import com.ty.user.dao.RoleDao;
import com.ty.user.service.RoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 服务实现类
* </p>
*
* @author taleyoung
* @si... | 21.238095 | 94 | 0.762332 |
18e85cebc7336352a39bad19689514d238887c7a | 373 | package com.synopsys.integration.detector.result;
import java.util.Set;
import org.apache.commons.lang3.StringUtils;
public class YieldedDetectorResult extends FailedDetectorResult {
public YieldedDetectorResult(Set<String> yieldedTo) {
super(String.format("Yielded to detectors: %s", StringUtils.join(yie... | 31.083333 | 120 | 0.772118 |
56a1324541ca05d052f46e7bbb8c2c7bcd098135 | 3,203 | package es.redmic.vesselslib.dto.vesseltype;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import es.redmic.brokerlib.avro.common.CommonDTO;
@JsonIgnorePropertie... | 21.938356 | 118 | 0.640337 |
cce778e498cf8a5cf2d0e7b1fe9743ddb8e2ab5a | 8,638 | package graphql.java.generator.type;
import java.lang.reflect.Type;
import java.util.List;
import java.util.Set;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import graphql.java.generator.BuildContext;
import graphql.java.generator.BuildContextAware;
import graphql.introspection.Introspection.TypeKind;
i... | 36.142259 | 100 | 0.671799 |
8971afe225ad4580a76c0860cb9e00c706649cee | 728 | /** Generated Assertion Class - DO NOT CHANGE */
package au.org.greekwelfaresa.idempiere.test.assertj.ad_ldapaccess;
import javax.annotation.Generated;
import org.compiere.model.X_AD_LdapAccess;
/** Generated assertion class for AD_LdapAccess
* @author idempiere-test model assertion generator
* @version Release 6... | 36.4 | 106 | 0.789835 |
53835f7bfcd1f03a30aa27d938eb071c5090fee2 | 11,922 | /**
* Copyright (c) 2009-2011 University of Cardiff and others
*
* 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... | 39.87291 | 118 | 0.56207 |
764beba50a40cd45ee5b97713453e30bdf04cc68 | 648 | package com.brianway.learning.spring.aop.aspectj;
public class SmartSeller implements Seller {
public int sell(String goods, String clientName) {
System.out.println("SmartSeller: sell " + goods + " to " + clientName + "...");
return 100;
}
protected int showGoods(String goods) {
... | 28.173913 | 88 | 0.584877 |
61ca9ee5ac9c909056d73c78f62ebb43080cbf01 | 992 | package org.panda_lang.pandomium.util;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.StringReader;
class JarUtilsTest{
@Test
void testFindVersion() throws IOException {
A... | 31 | 85 | 0.603831 |
ed166e5b93255dd3a69c3c09e2aec8e37a977e9e | 5,496 | /* Copyright 2016 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 required by applicable law or agreed to in ... | 36.157895 | 100 | 0.612263 |
58b8da54ab2f548e4d59ef653affb6caf38a3149 | 87 | package rx;
/**
* Created by kbahr on 10/20/14.
*/
public class ObservableTests {
}
| 10.875 | 32 | 0.655172 |
080290b3c996eaa6e6ba30ff53614d17f66ce8e6 | 10,080 | /*
* Copyright (c) 2017 Gowtham Parimelazhagan.
*
* 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 ... | 33.377483 | 157 | 0.676091 |
8591589594b58f7e9a6a282ded5b963e0af3594b | 1,762 | /*******************************************************************************
* Copyright (c) 2011 Google, Inc.
* 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 available at
* ... | 27.968254 | 81 | 0.511918 |
60b1455ec1e61f9d9e8c315446aee5cbb42a1a29 | 2,025 | /*
* Copyright 2013-present Facebook, 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... | 26.644737 | 93 | 0.722963 |
83cf4296a0665e096aea2fc5912e7662d0643fde | 431 | package pu.study.framework.bean;
import java.util.Map;
/**
* Created by project on 2016/4/20.
*/
public class Data {
/**
* 模型数据
*/
private Map<String,Object> model;
public Data(Map<String, Object> model) {
this.model = model;
}
public Map<String, Object> getModel() {
... | 16.576923 | 53 | 0.582367 |
2f7ab4b42519fe6736c4b4362d3af2096f4ade56 | 30,528 | class JQ5e {
public WzKCg L6znFqU;
public static void lPIBSO (String[] eyylZ) throws Xd3Ze2 {
boolean q = !-true[ !--true[ !new int[ --!3252[ 41991207.l9To]].l()]] = --null._RBo5;
void FxNJ79H = VtIuOc[ -true.Nbmc1Z73xY];
boolean nY6jpXs9;
boolean[] QSluroaw = -this.tXlHljuw ... | 39.905882 | 344 | 0.497674 |
b6ca3d735d303d0cbb20377098be353e08f3dc78 | 3,409 | /* */ package jp.cssj.sakae.pdf.g.b;
/* */
/* */ import java.io.FilterOutputStream;
/* */ import java.io.IOException;
/* */ import java.io.OutputStream;
/* */
/* */
/* */
/* */
/* */
/* */ public class b
/* */ implements e
/* */ {
/* 14 */ private final int[] a = new int... | 32.466667 | 91 | 0.422998 |
f4bb51514c4a2087fe62fd3c7e3d3c792476ddd8 | 509 | package io.amoe.cloud.gateway;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
/**
* @author Amoe
* @date 2020/4/17 17:27
*/
@EnableDiscoveryClient
@SpringBootApplication... | 28.277778 | 72 | 0.779961 |
dfb13366c05d701ca086332c18e58455910a30ba | 10,286 | /****************************************************************************
Copyright 2004, Colorado School of Mines and others.
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.apac... | 32.653968 | 77 | 0.619094 |
dc062ac9f6f5ca9de71afb74b21160ea8cf48614 | 6,739 | // Copyright 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.content.browser;
import android.util.Log;
import android.view.MotionEvent;
import org.chromium.base.CalledByNative;
// This class ... | 38.729885 | 94 | 0.657368 |
b6d2a0af988170b6fc7dde47942d64d7610ec125 | 1,139 | package org.bian.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.Valid;
/**
* BQTestingSpecificationRetrieveInputModelTestingSpecification... | 34.515152 | 194 | 0.841089 |
f54488bc42991100a16fc92bca0bbc39cc1ad608 | 3,527 | package org.folio.marccat.dao;
import net.sf.hibernate.HibernateException;
import net.sf.hibernate.Query;
import net.sf.hibernate.Session;
import org.folio.marccat.business.common.View;
import org.folio.marccat.dao.persistence.Descriptor;
import org.folio.marccat.dao.persistence.PUBL_HDG;
import java.util.List;
/**
... | 32.063636 | 204 | 0.683017 |
2e0c46468b0407d642f75ba728165f3aa5b21e69 | 245 | package com.violetbeach.daengbu.controller.v1.command;
import lombok.Data;
import lombok.experimental.Accessors;
@Data
@Accessors(chain = true)
public class ChangePasswordCommand {
private String newPassword;
private String oldPassword;
} | 18.846154 | 54 | 0.808163 |
9819cf090aab86cf41b37ab451bf4af5c45dddbe | 439 | package com.cesi.ressourcesrelationnelles.domain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
@NoArgsConstructor
@AllArgsConstructor
@Data
@Document(collection = "St... | 21.95 | 62 | 0.8041 |
48f206e7b99eb748988a50fa2c1bf37977077162 | 271 | package com.jcodes.mongodb;
public class Home {
private String address;
public Home(String address) {
super();
this.address = address;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
} | 15.055556 | 41 | 0.701107 |
f70910dd9a7c1c0f560350c45f6053ea5b6b517a | 835 | package io.smallrye.reactive.messaging.amqp.fault;
import static io.smallrye.reactive.messaging.amqp.i18n.AMQPLogging.log;
import java.util.concurrent.CompletionStage;
import io.smallrye.reactive.messaging.amqp.AmqpMessage;
import io.smallrye.reactive.messaging.amqp.ConnectionHolder;
import io.vertx.mutiny.core.Cont... | 32.115385 | 117 | 0.755689 |
e7ded1c16c989718282b8cbd665ece6f112442c9 | 14,411 | /**
* 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... | 37.237726 | 101 | 0.68753 |
71780930032aec2a6c5ab7242f83d15acb02f250 | 1,715 | package com.thanos.contract.mockserver.infrastructure.dto;
import com.thanos.contract.mockserver.domain.mockserver.model.Contract;
import com.thanos.contract.mockserver.domain.mockserver.model.ContractField;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import ja... | 32.358491 | 109 | 0.6793 |
4215aa398acbc154bc98926d5499866c20ca96a9 | 542 | /*
* This snippet shows how to get an environment variable
* (e.g. the PATH environment variable here).
*
* For more information, read "Le guide de survie Java" (chap. 2)
* (by Timothy Fisher, ed. CampusPress).
*
* Usage:
* - compile: javac EnvironmentVariables.java
* - execute: java EnvironmentVariables
*/
... | 24.636364 | 65 | 0.673432 |
25f5ce418538c1ac4ec72a1b79eb84d5d3efb63e | 1,504 | package player.project.com.musicplayer.Controllers;
import android.content.Context;
import android.content.SharedPreferences;
import player.project.com.musicplayer.Ultilities.Constant;
/**
* Created by Cuong on 2/4/2018.
*/
public class SettingManager {
int sMode;
int rMode;
Context context;
priva... | 29.490196 | 83 | 0.700133 |
ba369fe5e088cb1d77b2d96d1d6da62604cab5b3 | 480 | /*
* 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 edu.eci.arsw.parcial.services;
import java.io.IOException;
/**
*
* @author 2110111
*/
public interface HttpConnection {
... | 20 | 79 | 0.670833 |
0dcb3a86f3747e9da68fd82e86b42e92b6caf594 | 1,004 | package io.bokun.inventory.plugin.harness.validation;
import javax.annotation.*;
import com.google.inject.*;
import io.bokun.inventory.common.api.grpc.*;
/**
* Ensures fields of given {@link Reservation} are set.
*
* @author Mindaugas Žakšauskas
*/
public final class ReservationValidator implements Validator<Res... | 28.685714 | 103 | 0.696215 |
fc696a219696fab6b88abe8c0098a83799113daa | 1,207 | /*
* File: KeyValuePair.java
* Authors: Justin Basilico
* Company: Sandia National Laboratories
* Project: Cognitive Foundry
*
* Copyright November 28, 2010, Sandia Corporation.
* Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive
* licens... | 24.14 | 78 | 0.618061 |
72ce0cac28872877f42a6d1784b81b31239d7529 | 14,254 | package com.fence.airdrop.service;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.os.Environment;
import android.os.Handler;
import android.os.IBinder;
import android.os.Message;
import android.support.annotation.Nullable;
import android.text.TextUtils;
impor... | 34.936275 | 138 | 0.545601 |
26532219811d952d02125402c216d089bb477a22 | 3,431 | /*
* 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.31 | 100 | 0.675896 |
d5805a443f2484956156028b202aa3063b8cfcbe | 1,055 | package Chapter9_ConstructorAndGC;
import java.util.ArrayList;
public class TestLifeSupportSim {
public static void main(String[] args) {
ArrayList list = new ArrayList();
V2Radiator v2 = new V2Radiator(list); // 5 個對象
System.out.println("------------------------------------");
V3Radiator v3 = new V3Radiat... | 18.508772 | 94 | 0.633175 |
2fc3cf639ca2d14a6ca691c18460f1a0151c2cd7 | 5,449 | /*-
* ============LICENSE_START=======================================================
* ONAP - SO
* ================================================================================
* Copyright (C) 2017 - 2019 AT&T Intellectual Property. All rights reserved.
* ======================================================... | 46.177966 | 156 | 0.701964 |
72b342031c3202b02b86be2ec85a42dfef8d006b | 1,652 | package com.macro.mall.controller;
import com.macro.mall.common.api.CommonResult;
import com.macro.mall.model.PmsSkuStock;
import com.macro.mall.service.PmsSkuStockService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
impo... | 36.711111 | 143 | 0.736683 |
d3be12d555dd3392539faae7bb9317f8770bcdd5 | 5,775 | package com.ruoyi.project.compdata.productPrincipal.service.impl;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Date;
import java.util.Map;
import java.util.function.Function;
import java.util.stream.Collectors;
import org.springframework.beans.factory.annotation.Aut... | 31.906077 | 156 | 0.634459 |
2fb53df7c2740293430362f8d6f506edbca3b162 | 1,419 | package com.example.controlbank.activity.detail;
import android.app.Activity;
import android.app.Dialog;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
import androidx.annotation.Nullable;
import com.example.controlbank.R;
import com.example.controlbank... | 30.847826 | 167 | 0.650458 |
7c39c4fb183db7b3c94f3dff68c34a5c700b0db8 | 3,843 | package at.ac.tuwien.inso.ticketline.server.unittest.service;
import at.ac.tuwien.inso.ticketline.dao.EmployeeDao;
import at.ac.tuwien.inso.ticketline.model.Employee;
import at.ac.tuwien.inso.ticketline.model.Permission;
import at.ac.tuwien.inso.ticketline.server.exception.ServiceException;
import at.ac.tuwien.inso.ti... | 32.846154 | 97 | 0.671611 |
7ee5b38c1d14d647a6b84a1becb3f6fa4116ae53 | 1,025 | package com.artemis.io;
import com.artemis.Component;
import com.artemis.utils.Bag;
import com.badlogic.gdx.utils.Json;
import com.badlogic.gdx.utils.JsonValue;
public class TransmuterEntrySerializer implements Json.Serializer<ArchetypeMapper.TransmuterEntry> {
SaveFileFormat.ComponentIdentifiers identifiers;
@Ove... | 32.03125 | 100 | 0.765854 |
746a58566f3e14c294fa8fcb2a097edcdcfd2ac3 | 1,642 | package com.sunit.global.singleLogin.po;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
/**
*
*
* 类名称:ClusterSingleLogin
* 类描述: 用于记录当前登录用户的... | 21.893333 | 67 | 0.714373 |
f44af97bacba9669885b080765a890634aa1fbac | 9,073 | /**
* Copyright 2017 Syncleus, Inc.
* with portions copyright 2004-2017 Bo Zimmerman
*
* 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.47549 | 175 | 0.48716 |
fbc3004e6745eda2ce4b2e62784eadc1ef24dfd4 | 5,339 | package com.google.android.mms;
/*
* #%L
* Matos
* $Id:$
* $HeadURL:$
* %%
* Copyright (C) 2010 - 2014 Orange SA
* %%
* 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... | 31.97006 | 107 | 0.739277 |
f0d69488ac70070b837c16a7628435004fd55f32 | 901 | package mantra.symbols;
import org.antlr.v4.runtime.tree.ParseTree;
public abstract class ScopedSymbol extends BaseScope implements Symbol, Scope {
public String name; // All symbols at least have a name
// public Type type;
public Scope scope; // All symbols know what scope contains them.
public ParseTr... | 29.064516 | 79 | 0.710322 |
728c87629bf51526165f453ca9716ee22bba0526 | 1,537 | /*
* 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 com.progenia.sigdep01_01.systeme.data.business;
import com.progenia.sigdep01_01.systeme.data.entity.SystemePeriodiciteRembours... | 32.702128 | 107 | 0.785947 |
b438e5eaf258d65470902501d356e4f38ae1c63f | 1,281 | package me.kareluo.imaging.gallery.model;
import android.net.Uri;
/**
* Created by felix on 2017/12/26 上午11:21.
*/
public class IMGImageViewModel {
private Uri uri;
private boolean isSelected;
private boolean isOriginal;
private int width;
private int height;
private long size;
p... | 16.21519 | 47 | 0.58548 |
7d7c49e435cbdd13997c46cd0e776da7c801f0c4 | 2,657 | import org.jbox2d.collision.shapes.CircleShape;
import org.jbox2d.collision.shapes.PolygonShape;
import org.jbox2d.dynamics.*;
import java.awt.geom.Rectangle2D;
/**
* CG2D
* Class PhysicsBody
* Created by Stefan Mermans on 23/03/2016.
*/
class PhysicsBody {
private BodyDef bodyDef;
private Body body;
... | 32.802469 | 110 | 0.645841 |
dbcf20ee73e533c125d87039c7452a4626a16beb | 4,727 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/type/dayofweek.proto
package com.google.type;
/**
* <pre>
* Represents a day of week.
* </pre>
*
* Protobuf enum {@code google.type.DayOfWeek}
*/
public enum DayOfWeek
implements com.google.protobuf.ProtocolMessageEnum {
/**
... | 20.915929 | 80 | 0.591073 |
888c400ff101c6efb442155b9f20fabe5a541bcf | 3,148 | /*
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*
* The Apereo Foundation licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may... | 34.217391 | 102 | 0.769695 |
17ad4a57e32b6c5a3936c95ef39ea8416775e162 | 1,124 | package com.yuenov.open.fragments.baseInfo;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import butterknife.ButterKnife;
public ab... | 22.48 | 132 | 0.685053 |
58dad24b63894dc85f282eed54734cd01513ecf2 | 322 | package edu.diegod5000.itopapps;
import android.app.Application;
import com.facebook.drawee.backends.pipeline.Fresco;
/**
* Created by diego-d on 16/02/16.
*/
public class MApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
Fresco.initialize(this);
}
... | 18.941176 | 52 | 0.692547 |
8cf7af0dd811039cde8471cd20fb740d72f5d1c6 | 3,645 | /*
* 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 ... | 43.392857 | 117 | 0.710014 |
6807574548c5e418dca46d81fc47210d61eaf08e | 540 | package cracking_the_coding_interview.chapter_01.exercise_01;
import java.util.Arrays;
class SolutionFollowUp {
private static final int NUMBER_OF_CHARS = 128;
boolean isUnique(final String s) {
if (s.length() > NUMBER_OF_CHARS) {
return false;
}
final char[] chars = s.t... | 20.769231 | 61 | 0.55 |
e88b0c3ba3ac1dc68fa1ef792b40f10326f9ffd1 | 1,649 | package artifality.block;
import artifality.block.base.BuddingCrystalBlock;
import artifality.block.base.CrystalBlock;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.server.world.ServerWorld;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Directio... | 40.219512 | 140 | 0.690115 |
7cf17dc1e8b572d16b0dc926e9f2ec08b1f0f1fc | 4,070 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 37 | 98 | 0.732924 |
4b10a8499e6c363965e16e68a570b6fd34bc67d5 | 16,941 | /*
* Copyright 2010 MIT Strategic Engineering Research Group
*
* 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... | 36.044681 | 140 | 0.729886 |
995abc01048fca63f3a7b7770a87ed945b387c02 | 3,366 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | 26.928 | 70 | 0.756982 |
628b36aeb7af0f312ae6466d40f0496504bdc5a5 | 480 | #set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.pe.processor.${packageName};
import org.apache.flink.api.common.functions.FlatMapFunction;
import org.apache.flink.util.Collector;
import org.apache.streampipes.model.runtime.Event;
public class ${classNamePrefi... | 24 | 74 | 0.727083 |
4c1f38cebed4438da5a808694906da48078d7b2c | 282 | package org.corywixom.cache.business.mapping;
import org.corywixom.cache.core.base.IMapper;
import org.corywixom.cache.common.entities.CacheItem;
import org.corywixom.cache.common.model.CacheItemDTO;
public interface ICacheItemMapper extends IMapper<CacheItem, CacheItemDTO> {
}
| 31.333333 | 77 | 0.833333 |
7d79a89d349980988c6036704d336ebf45f3830f | 2,809 | package com.sap.olingo.jpa.processor.cb.impl;
import java.util.Optional;
import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;
import javax.persistence.DiscriminatorColumn;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
imp... | 33.843373 | 98 | 0.705233 |
970c61856e63b1c22ff4a9b0a09c5ff86ad7b082 | 2,800 | package it.unibo.bmbman.model.utilities;
import it.unibo.bmbman.model.TerrainFactoryImpl;
import it.unibo.bmbman.view.utilities.ScreenToolUtils;
/**
* Class to manage the position of entities.
*/
public class Position {
private int x;
private int y;
private static final int TILEDIM = TerrainFactoryImpl.... | 25 | 99 | 0.541071 |
9f2ffd702a4babc3ba9b9c214e8bf8e67686635c | 1,924 | /**
* Licensed to Apereo under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Apereo licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in ... | 40.93617 | 122 | 0.743243 |
23b47b1523dfea707babbb956244040425594e47 | 1,018 | package com.situjunjie.gulimall.ware.exception;
import com.situjunjie.common.exception.BizCodeEnum;
public class NoStockException extends RuntimeException{
private Long skuId;
private Integer require;
private Integer currentStock;
public NoStockException(Long skuId, Integer require, Integer currentS... | 24.238095 | 117 | 0.666994 |
ea355c4545b15e08cf8caeb0aeb8ee09af64ea94 | 2,744 | /*
* Copyright 2002-2006 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 re... | 31.906977 | 82 | 0.75984 |
6b88a061689d2ee2cc51f5f5525e458f97d9bebc | 5,642 | /*
* Copyright (C) 2020 Beijing Yishu Technology Co., Ltd.
*
* 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 ... | 38.643836 | 124 | 0.629387 |
4d9d3a6f19c3e5af3a3d959f00fc4784dd36b5ff | 289 | package jp.crestmuse.cmx.sound;
import javax.sound.midi.Receiver;
import javax.sound.midi.Track;
public interface SequenceGeneratable {
/**
* 続く場合trueを返す
*/
public boolean changeMeasure(Track track, long measureTick);
public void sendInitializingMessages(Receiver r);
}
| 18.0625 | 62 | 0.754325 |
ac7ab06cffd8d4b3b50ccd27ee1466db98068fb2 | 3,913 | /*
* Copyright (c) 2019-2020 GeyserMC. http://geysermc.org
*
* 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,... | 38.362745 | 112 | 0.693841 |
12cef86f0e4259da80bc8da51aa1a29764728008 | 436 | package com.food.services.Menu;
import java.util.List;
import com.food.domain.MenuVO;
public interface MenuService {
public void insert(MenuVO vo)throws Exception;
public List<MenuVO> select(String u_id)throws Exception;
public void update(MenuVO vo)throws Exception;
public void updateState(MenuVO vo)thr... | 19.818182 | 57 | 0.775229 |
ee20b40b33b0871d602e2187b6aaf39f282aa545 | 528 | package dependencies;
import org.springframework.context.annotation.DependsOn;
import org.springframework.stereotype.Component;
/**
* @author yihuier
* @Date 2020/11/26 10:19
* @Description
*/
@Component
//@DependsOn({"simpleBean2"})
public class SimpleBean1 {
// private SimpleBean2 simpleBean2;
public Simp... | 20.307692 | 56 | 0.727273 |
118981ba6b30feec9982d7c12f44ce59ec112533 | 5,498 | package org.ffmpeg.avformat57;
import com.sun.jna.Callback;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
import com.sun.jna.ptr.LongByReference;
import org.ffmpeg.avcodec57.AVPacket;
import org.ffmpeg.avdevice57.AVDeviceCapabilitiesQuery;
import org.ffmpeg.avdevice57.AVDeviceInfoList;
import java.util.Arr... | 43.291339 | 356 | 0.754274 |
2cc24cabf20d5658c02222220aff3bcf60271c76 | 2,489 | /**
* Project: com.dianping.zebra.zebra-client-0.1.0
* <p/>
* File Created at 2011-6-15
* $Id$
* <p/>
* Copyright 2010 dianping.com.
* All rights reserved.
* <p/>
* This software is the confidential and proprietary information of
* Dianping Company. ("Confidential Information"). You shall not
* d... | 34.569444 | 106 | 0.723182 |
180d1c484a285bc4c3ddd2095dde2ebb1f3d95fb | 2,054 | /*
* 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 ... | 25.358025 | 75 | 0.67186 |
aaf94df485daf004fee9a0b1bd299d1690685d25 | 11,254 | /*
* Copyright (c) 2010-2020 Tencent Cloud. All rights reserved.
*
* 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 ... | 30.748634 | 106 | 0.585303 |
94cb1308c0b6fb24544f118b9374a75c1fff5d6c | 279 | package com.qianmi.open.api.qmcs.endpoint;
import java.util.Map;
public interface MessageHandler {
public void onMessage(EndpointContext context) throws Exception;
// just got msg that can not reply
public void onMessage(Map<String, Object> message, Identity messageFrom);
} | 31 | 74 | 0.795699 |
1f054ac3bc02c5870a9ce8dfdd43403f276717c0 | 2,805 | package com.ramasolutions.petagramins.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.recyclerview.widget.RecyclerView;
... | 31.875 | 113 | 0.662745 |
e0555efd3b13258557be3b4dafb9f25876254e42 | 3,220 | package org.jbehave.core.configuration;
import com.thoughtworks.paranamer.NullParanamer;
import com.thoughtworks.paranamer.Paranamer;
import org.jbehave.core.embedder.StoryControls;
import org.jbehave.core.failures.FailureStrategy;
import org.jbehave.core.failures.PassingUponPendingStep;
import org.jbehave.core.failu... | 46 | 87 | 0.770807 |
2bdabe9cf076ef673ea5e1f9278926e942da271c | 3,223 |
package mage.cards.g;
import java.util.UUID;
import mage.MageObject;
import mage.abilities.Ability;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.mana.GenericManaCost;
import mage.abilities.effects.RedirectionEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import ... | 32.23 | 157 | 0.68942 |
1926e944bcd79d9fc724fa3c9071c79b4b8f6509 | 24,851 | /*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 38.648523 | 127 | 0.664199 |
071c2a977882b2099b4a85670272c5437e1c4105 | 2,943 | //package com.demo.security;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.core.annotation.Order;
//import org.springframework.security.config.ann... | 35.457831 | 110 | 0.595311 |
12391b1c928c06b27517131fd727bdb7ef07d8d5 | 595 | package org.gwoplock.scheduledepo;
import java.io.File;
import java.io.IOException;
import org.gwoplock.scheduledepo.dateAndTime.Appointment;
public class App {
public static void main(String[] args) {
System.out.println(Appointment.getCurrentTime());
File toRead = null;
if (args.length ==... | 25.869565 | 57 | 0.586555 |
db3eb62d0cf9b75b0c134b1a0f3b7e552f7bddcb | 1,226 | package org.spring.classscanner; /*
* Copyright [2015] [Jeff Lee]
*
* 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... | 28.511628 | 109 | 0.696574 |
9debe86158949c0e80692a7c418906bb3c2e5332 | 2,117 | package org.apache.xpath;
import org.apache.xml.utils.QName;
import org.apache.xpath.objects.XObject;
public class Arg {
private QName m_qname;
private XObject m_val;
private String m_expression;
private boolean m_isFromWithParam;
private boolean m_isVisible;
public final QName getQName() {
r... | 22.763441 | 81 | 0.645253 |
b49c1fcc222af6ca966701859bc4b575a1d98862 | 4,654 | package io.ona.kujaku.utils;
import com.mapbox.mapboxsdk.geometry.LatLng;
import org.junit.Assert;
import org.junit.Test;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import io.ona.kujaku.BaseTest;
import io.ona.kujaku.location.clients.SphericalUtil;
public class SphericalUtilTest ... | 44.32381 | 104 | 0.692952 |
ff8f14add721ea172831c63cd9280ed5af6a8475 | 1,311 | /*
* Copyright 2008-2009 LinkedIn, 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 agre... | 25.705882 | 80 | 0.683448 |
880540fad6baac36fb69b5ced09f14fc1fff4669 | 428 | package uk.co.codelity.event.sourcing.common.exceptions;
/**
* Thrown when an error occurred while persisting events.
*/
public class EventPersistenceException extends Exception {
public EventPersistenceException() {
}
public EventPersistenceException(String message) {
super(message);
}
... | 23.777778 | 71 | 0.719626 |
309166d15f96ffc8e9fdc7b6376cbee1c0573293 | 2,209 | package com.lechucksoftware.proxy.proxysettings.db;
import android.os.Parcel;
import android.os.Parcelable;
import java.util.UUID;
/**
* Created by Marco on 13/09/13.
*/
public class TagEntity extends BaseEntity implements Parcelable
{
private String tag;
private Integer tagColor;
public TagEntity()
... | 21.038095 | 88 | 0.584427 |
e2b4fa4dea0fc7d8497dd16b43b61b49dcb46a64 | 1,736 | package io.stringx;
import android.content.Context;
import android.preference.Preference;
import android.util.AttributeSet;
import io.stringx.sdk.R;
/**
* Stores {@link StringX} settings
*/
public class StringXPreference extends android.preference.CheckBoxPreference {
public StringXPreference(final Context co... | 31 | 106 | 0.615207 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.