blob_id stringlengths 40 40 | language stringclasses 1
value | repo_name stringlengths 5 132 | path stringlengths 2 382 | src_encoding stringclasses 34
values | length_bytes int64 9 3.8M | score float64 1.5 4.94 | int_score int64 2 5 | detected_licenses listlengths 0 142 | license_type stringclasses 2
values | text stringlengths 9 3.8M | download_success bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|
678747bcab5dec91c3f3a8198491b02fe84e82f0 | Java | nuelbruno/Qmatic | /app/src/main/java/ae/qmatic/tacme/activity/LocationActivity.java | UTF-8 | 4,528 | 2.171875 | 2 | [] | no_license | package ae.qmatic.tacme.activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;
import android... | true |
96f1e8d7f71217af2685fa47f6e7f5fe2ec77e73 | Java | NaruemonK/OOP_359211110018 | /src/ooplab8/Trang.java | UTF-8 | 251 | 2.4375 | 2 | [] | no_license | package ooplab8;
public class Trang implements Campus{
@Override
public void getCampusName() {
System.out.println("Trang Campus.");
}
@Override
public void getArae() {
System.out.println("Sikoww Trang.");
}
}
| true |
63577a6473d04767ede09b52b72458cbff35ca3c | Java | carlosray/taco-cloud | /src/main/java/tacos/web/WebConfig.java | UTF-8 | 2,460 | 1.96875 | 2 | [] | no_license | package tacos.web;
import org.apache.activemq.artemis.jms.client.ActiveMQQueue;
import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.anno... | true |
f239134b7be13723452c44233307af64f40fd875 | Java | GuChenChen/rjgl | /src/main/java/com/fykj/scaffold/evaluation/service/IQuotationRulesSecondPartyService.java | UTF-8 | 787 | 1.875 | 2 | [] | no_license | package com.fykj.scaffold.evaluation.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fykj.scaffold.evaluation.domain.entity.QuotationRulesSecondParty;
import java.util.List;
/**
* <p>
* 报价规则乙方服务类
* </p>
*
* @author feihj
* @since 2020-03-31
*/
public interface IQuotationRulesS... | true |
98d4cf917a63c09210a7f474a35f662eeb81fae7 | Java | lastaflute/lastaflute | /src/main/java/org/lastaflute/web/servlet/request/scoped/ScopedAttributeHolder.java | UTF-8 | 2,929 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2015-2022 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | true |
6c8f4e3eabf6cb9a4d2b0e7c25d200631a695ecf | Java | mba811/osiam | /src/main/java/org/osiam/resources/controller/GroupController.java | UTF-8 | 6,148 | 1.898438 | 2 | [
"MIT"
] | permissive | /*
* Copyright (C) 2013 tarent AG
*
* 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, merge, publish,
... | true |
4f4a56bf9ba3d5f0930c38a939f2738e741e9150 | Java | pauljabernathy/Toolbox | /src/toolbox/data/AnalyzerServlet.java | UTF-8 | 7,927 | 2.703125 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package toolbox.data;
import javax.servlet.http.*;
import java.io.*;
import javax.servlet.ServletException;
import javax.servlet.RequestDispatcher;
import toolbox.Constants;
import org.apache.commons.fileuplo... | true |
e88b8e8c4eb3dd2fa747e76d7a840ac85b077da4 | Java | Ulicong/optimus-zeus | /optimus-model/optimus-model-api/src/main/java/com/optimus/module/user/web.rpc/UserInfoRpc.java | UTF-8 | 579 | 1.828125 | 2 | [] | no_license | package com.optimus.module.user.web.rpc;
import com.optimus.module.user.dal.entity.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
/**
* Created by li.huan
* Create Date 2017-06-20 16:17
*/
@Controller
public class UserInfoRpc {
@Autow... | true |
0730fb30741882adcd3d0490721887ae654d2e19 | Java | thaond/nsscttdt | /src/ext-lltnxp/ext-service/src/com/sgs/portlet/message_note/service/PmlMessageLocalService.java | UTF-8 | 2,968 | 1.890625 | 2 | [] | no_license | package com.sgs.portlet.message_note.service;
/**
* <a href="PmlMessageLocalService.java.html"><b><i>View Source</i></b></a>
*
* <p>
* ServiceBuilder generated this class. Modifications in this class will be
* overwritten the next time is generated.
* </p>
*
* <p>
* This interface defines the service. The de... | true |
9c625ac8a1d6cde99fbe28157170e837dcd31389 | Java | azabost/slf4android | /app/src/test/java/pl/brightinventions/slf4android/RobolectricTestRunner.java | UTF-8 | 832 | 2.109375 | 2 | [
"MIT"
] | permissive | package pl.brightinventions.slf4android;
import org.junit.runners.model.InitializationError;
public class RobolectricTestRunner extends org.robolectric.RobolectricTestRunner {
public RobolectricTestRunner(Class<?> testClass) throws InitializationError {
super(testClass);
}
//
// @Override
// pro... | true |
fcf53d87f1b6f79b2ceff278c88d19907df154db | Java | renanvernabrogliato/BuscaV1 | /app/src/main/java/br/usjt/ftce/desmob/clientev1/ViewHolder.java | UTF-8 | 1,039 | 2.25 | 2 | [] | no_license | package br.usjt.ftce.desmob.clientev1;
import android.widget.ImageView;
import android.widget.TextView;
/**
* Created by arqdsis on 24/03/2017.
*/
public class ViewHolder {
private ImageView fotoCliente;
private TextView nameCliente, detalheCliente;
public ViewHolder(ImageView fotoCliente, TextView nam... | true |
733aeb0b8142a2e4cfcf068aa72e7ca3dcb9f0c4 | Java | quzhaomei/admin | /src/com/rycf/gjb/annotation/MethodCache.java | GB18030 | 720 | 2.515625 | 3 | [] | no_license | package com.rycf.gjb.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* ǩ
* @author qzm
* @since 2015-5-13
*/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIM... | true |
af932f6483ad540b3358e69ece57a866e9df8dd6 | Java | svn2github/icefaces | /samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/ace/menu/MenuEvents.java | UTF-8 | 2,857 | 1.992188 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2004-2013 ICEsoft Technologies Canada Corp.
*
* 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... | true |
94e1f36245fb60c791f200a4539ca16576eff86c | Java | three-stacks/packerapi | /src/main/java/io/threestacks/packerapi/agenda/AgendaService.java | UTF-8 | 1,169 | 2.1875 | 2 | [] | no_license | package io.threestacks.packerapi.agenda;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.List;
@Service
public class AgendaService {
@Autowired
private AgendaRepository agendaRepository;
public ... | true |
d9e7eda4eb0522fd83897c4c0825e5a7954967ed | Java | diegoferose/reservaTennis | /comun/comun-dominio/src/main/java/com/ceiba/dominio/excepcion/ExcepcionReservaActiva.java | UTF-8 | 238 | 2.125 | 2 | [] | no_license | package com.ceiba.dominio.excepcion;
public class ExcepcionReservaActiva extends RuntimeException{
private static final long serialVersionUID = 1L;
public ExcepcionReservaActiva(String mensaje) {
super(mensaje);
}
}
| true |
04f79add2aac459cf82a504c78dd34354fed5cd3 | Java | XC-LGY/maven_myBatisSpringSpringMVC6 | /src/main/java/com/bf/mybatis/springboot/Application.java | UTF-8 | 1,119 | 2.328125 | 2 | [] | no_license | package com.bf.mybatis.springboot;
import java.util.List;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.S... | true |
1f3c1e4c884d39b7a8a7ee21b8bf4750f2fe5b5b | Java | Sunbefore/xiyou-shop | /xiyou-shop-product/src/main/java/com/xiyou/product/service/RedisService.java | UTF-8 | 1,054 | 2.140625 | 2 | [] | no_license | package com.xiyou.product.service;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import java.util.Set;
@FeignClient(v... | true |
6cfbdc686dbb6d36a6258cdb0c28f998a70cad7c | Java | richardtqd/mariaweb | /src/java/pe/marista/sigma/managedBean/ProcesoFilesMB.java | WINDOWS-1250 | 56,272 | 1.71875 | 2 | [] | no_license | /*
* 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 pe.marista.sigma.managedBean;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.ann... | true |
4070b6e217684dc9fc9e2ee32d41e01f5e77cc32 | Java | bellmit/MIOT-demo | /src/main/java/com/xiaomi/iot/example/typedef/Instance.java | UTF-8 | 1,315 | 2.125 | 2 | [] | no_license | package com.xiaomi.iot.example.typedef;
import org.json.JSONArray;
public class Instance {
private String description;
private String type;
private String subscriptionId;
private String status;
private JSONArray customized_services;
private JSONArray services;
public String getDescr... | true |
b144d6d48d83f65404c618c023ea7a7f74152707 | Java | joedarby/gas-android-app | /app/src/main/java/com/darby/joe/gas/data/Pipeline.java | UTF-8 | 319 | 2.140625 | 2 | [] | no_license | package com.darby.joe.gas.data;
import java.util.Date;
public class Pipeline {
public String pipelineName;
public double flowValue;
public Date timestamp;
public Pipeline(String name, double flow, Date stamp) {
pipelineName = name;
flowValue = flow;
timestamp = stamp;
}
} | true |
4a32d3167e0cf17e45f83312e62de6d71eb6fac3 | Java | Tse-ChiKit/VISRA | /app/src/main/java/com/monash/eric/mytestingdemo/SearchActivity.java | UTF-8 | 10,199 | 1.945313 | 2 | [] | no_license | package com.monash.eric.mytestingdemo;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.B... | true |
5a346133ccce306c92fce1fa0d43592985ffc512 | Java | SillyV/SillyVMovieList | /app/src/main/java/com/example/vasili/sillyvmovielist/db/MovieTableHandler.java | UTF-8 | 3,949 | 2.75 | 3 | [] | no_license | package com.example.vasili.sillyvmovielist.db;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteException;
import android.util.Log;
import java.util.ArrayList;
import java.util.List... | true |
6f30dd1cfb25fd5a9fd0ae40416ac7f5d721e14e | Java | zwd1763532517/payment | /src/main/java/com/payment/domain/paybean/VenderPayManage.java | UTF-8 | 2,540 | 2.203125 | 2 | [] | no_license | /**
* @(#)VenderPayManage.java
* Description:
* Version : 1.0
* Copyright: Copyright (c) Xu minghua 版权所有
*/
package com.payment.domain.paybean;
import com.payment.service.VenderPayService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import java.util.Ma... | true |
fa1b7287c0562746770fe8ec7a8b5daf9291e1d7 | Java | oracs/codekata | /worldclock/src/main/java/com/dy/kata/worldclock/v1/Waiter.java | UTF-8 | 291 | 2.421875 | 2 | [] | no_license | package com.dy.kata.worldclock.v1;
import com.dy.kata.worldclock.v1.impl.BeijingClock;
public class Waiter {
public void syncTime(WallClocks wallclocks, BeijingClock adjustTime) {
for (Clock clock: wallclocks.clocks) {
clock.syncTime(adjustTime);
}
}
}
| true |
0c1f83f4b4e737961c31301ece682c3cbfc631e1 | Java | yoursNicholas/springbootdubbo | /dubbo-provider/src/main/java/com/xuzhe/jpa/UserJPA.java | UTF-8 | 780 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | package com.xuzhe.jpa;
import com.xuzhe.entity.UserEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;
import java.util.List... | true |
7eaf0ced57f57b07773ab058cc7fb5fa72a5806e | Java | martinpolley/codeine | /src/directory/codeine/servlets/RsyncSourceForVersionServlet.java | UTF-8 | 1,191 | 2.34375 | 2 | [] | no_license | package codeine.servlets;
import javax.inject.Inject;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.log4j.Logger;
import codeine.model.Constants;
import codeine.servlet.AbstractServlet;
import codeine.version.RsyncSourceGetter;
public class RsyncSourc... | true |
08c6b96750ff6c18819cf7a31d5a7edbd111afc7 | Java | humwawe/leetcode | /src/main/java/minimum/number/of/days/to/make/m/bouquets/MinimumNumberOfDaysToMakeMBouquets.java | UTF-8 | 901 | 3.1875 | 3 | [] | no_license | package minimum.number.of.days.to.make.m.bouquets;
/**
* @author hum
*/
public class MinimumNumberOfDaysToMakeMBouquets {
public int minDays(int[] bloomDay, int m, int k) {
int len = bloomDay.length;
if (m * k > len) {
return -1;
}
int l = 0;
int r = (int) 1e9;... | true |
be96ea5cdabba6c792f378478d9ecc9569b265ff | Java | DevinKin/JavaNote | /BeautiOfConcurrency/src/main/java/chapter1/daemon/TestUserThread.java | UTF-8 | 493 | 2.90625 | 3 | [] | no_license | package chapter1.daemon;
/**
* @program: BeautiOfConcurrency
* @author: devinkin
* @create: 2019-07-31 15:13
* @description: 守护线程2
**/
public class TestUserThread {
public static void main(String[] args) {
Thread thread = new Thread(() -> {
for (;;) {
}
});
//... | true |
5da6ff72d6420967705b82867146a6bd8b10e73f | Java | gobbletsit/BookListingApp | /BookListingApp/app/src/main/java/com/example/android/booklistingapp/QueryUtils.java | UTF-8 | 7,205 | 2.96875 | 3 | [] | no_license | package com.example.android.booklistingapp;
import android.text.TextUtils;
import android.util.Log;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import jav... | true |
b694efabe10f22ac335bc71a09aa8d84f7e9b458 | Java | bobroalexandr/Clean-Architecture-Android | /app/src/main/java/demo/presentation/view/DemoView.java | UTF-8 | 1,647 | 2.09375 | 2 | [] | no_license | package demo.presentation.view;
import android.app.ProgressDialog;
import android.content.Context;
import android.support.design.widget.Snackbar;
import android.view.View;
import demo.R;
import demo.presentation.presenter.DataPresenter;
/**
* Created on 12.11.2015.
*/
public class DemoView<VM, P extends DataPresen... | true |
e0fb6faa6d5ecd1ad70aaaf590c05d8f23426457 | Java | ZeroOneSummer/ptm | /src/pojo/view/Invest_msg.java | UTF-8 | 1,057 | 2.046875 | 2 | [] | no_license | package pojo.view;
import java.util.Date;
/**
* 视图实体类(三表联查:invest_product,invest_type,trade_record)
* @author Administrator
*
*/
public class Invest_msg {
private String produceName;
private int invTypeId;
private double tradeMoney;
private Date tradeDate;
private int tradeStatus;
public... | true |
6f8b9f1f99251fbe1a5d8ae419b0024922c21fb7 | Java | Camelcade/Perl5-IDEA | /plugin/core/src/main/java/com/perl5/lang/perl/idea/intellilang/PerlStringLiteralEscaper.java | UTF-8 | 3,939 | 1.78125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2015-2020 Alexandr Evstigneev
*
* 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 a... | true |
ab32cab8ec6bc06d2214bb581cfbf6c9d2eddf63 | Java | sitanshu-joshi/Zakariya | /src/com/example/eventmng/MainActivity.java | UTF-8 | 6,883 | 2.046875 | 2 | [] | no_license | package com.example.eventmng;
import java.util.ArrayList;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.co... | true |
d2e56c62ef41efed8e3bd2ccc968eecb587b7ab3 | Java | glins97/TP2 | /T2/PassiveAggresive/src/com/company/Output.java | UTF-8 | 2,655 | 3.234375 | 3 | [] | no_license | package com.company;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.stream.Collectors;
public class Output {
public Output(){}
public LinkedHashMap sortMapByValues(Map<Stri... | true |
c60ffc1db10005b7ef11446bb90cbf0fed8d5f36 | Java | bishion/mvnPlugin | /src/main/java/com/bizi/plugin/Forth.java | UTF-8 | 3,147 | 2.421875 | 2 | [] | no_license | package com.bizi.plugin;
import com.bizi.utils.FileUtil;
import net.wicp.tams.commons.apiext.IOUtil;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.plugin.MojoFailureException;
import org.apache.maven.plugins.annotations.Mojo;
import org.apac... | true |
a3c824d82b6106ad149d9c960f125abc40e3e252 | Java | chrisdollar/BRS | /src/main/java/com/sotra/reservation/repository/user/UserRepository.java | UTF-8 | 263 | 1.835938 | 2 | [
"MIT"
] | permissive | package com.sotra.reservation.repository.user;
import com.sotra.reservation.model.user.User;
import org.springframework.data.repository.CrudRepository;
public interface UserRepository extends CrudRepository<User, Long> {
User findByEmail(String email);
}
| true |
5d25dd850178826f10c1a39ca16ebc96d6bef0f3 | Java | ugurk/aasuite | /tool2/src/rule/CustomerContactPresentationExt_RULE.java | UTF-8 | 625 | 2.09375 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package rule;
import javax.swing.JComponent;
/**
*
* @author Entokwaa
*/
public class CustomerContactPresentationExt_RULE extends CustomerContact_RULE {
@Override
public void runOnClick(JComp... | true |
2ca53c17fc026272306b27c1cfb7630c097c3ddb | Java | OlimpiadaFDI/Servicios | /OlimpiadaFDIModel/src/main/java/com/fdi/olimpiada/integration/persistence/entity/Insignias.java | UTF-8 | 1,725 | 2.40625 | 2 | [
"Apache-2.0"
] | permissive | package com.fdi.olimpiada.integration.persistence.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import com.fdi.olimpiada.commons.persistence.DomainObject;
/**
*
* @author agonzalez
*
*/
@Entity
@Table(name = "INSIGNIAS")
p... | true |
7c4434ed25ea290a53f786c723cbc1520b1681ff | Java | GandhiTC/SeleniumTestSnippets | /src/test/java/com/github/GandhiTC/java/SeleniumTestSnippets/code/Tables_Dynamic.java | UTF-8 | 10,696 | 2.484375 | 2 | [] | no_license | package com.github.GandhiTC.java.SeleniumTestSnippets.code;
import java.awt.AWTException;
import java.awt.Robot;
import java.awt.event.KeyEvent;
import java.text.DecimalFormat;
import java.time.Duration;
import java.util.ArrayList;
import java.util.List;
import java.util.NoSuchElementException;
import org.openqa.sel... | true |
f73df04dd41d9cb059f16042cadd6d8ba090fae6 | Java | pillik/EDDI | /xmpp-impl/src/main/java/ai/labs/xmpp/bootstrap/XmppModule.java | UTF-8 | 477 | 1.773438 | 2 | [
"Apache-2.0"
] | permissive | package ai.labs.xmpp.bootstrap;
import ai.labs.xmpp.endpoint.IXmppEndpoint;
import ai.labs.runtime.bootstrap.AbstractBaseModule;
import ai.labs.xmpp.endpoint.XmppEndpoint;
import com.google.inject.Scopes;
import lombok.extern.slf4j.Slf4j;
/**
* @author rpi
*/
@Slf4j
public class XmppModule extends AbstractBaseModul... | true |
4799b02f31a90ddb0332d1bed2a82dc8b534e711 | Java | BT23/SeleniumJava | /src/pages/CatalogueDetails.java | UTF-8 | 11,081 | 1.859375 | 2 | [] | no_license | package pages;
import java.util.List;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.How;
import org.openqa.selenium.support.PageFactory;
import org.openqa.selenium.support.ui.Exp... | true |
4ad0fcc6fc6524eed22cad497288064f0bf5d722 | Java | sdmengchen12580/bihucj | /app/src/main/java/com/aganyun/acode/utils/ChangeActUtils.java | UTF-8 | 2,341 | 1.890625 | 2 | [] | no_license | package com.aganyun.acode.utils;
import android.Manifest;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.renderscript.BaseObj;
import android.support.v4.app.ActivityCompat;
/**
* Created by 孟... | true |
2c901f86cdc11fec6e4a346d24cc8da7903067d3 | Java | jwiszowata/code_reaper | /code/my-app/functions/27/saveHighScores_HighScore.java | UTF-8 | 1,055 | 2.390625 | 2 | [] | no_license | public static boolean saveHighScores(List<HighScore> scores) {
boolean ret = false;
if (scores == null)
return false;
tidyScores(scores);
File hsf = FreeColDirectories.getHighScoreFile();
try (FileOutputStream fos = new FileOutputStream(hsf);
FreeColXMLWriter xw = new FreeColXMLWrite... | true |
f24c4898dc6d936335dbc8904ff1cd940db36ec0 | Java | WeilerWebServices/Gradle | /db-example-large-multi-project/project19/src/main/java/org/gradle/test/performance/mediumjavamultiproject/project19/p97/Production1947.java | UTF-8 | 1,967 | 1.84375 | 2 | [] | no_license | package org.gradle.test.performance.mediumjavamultiproject.project19.p97;
public class Production1947 {
private Production1944 property0;
public Production1944 getProperty0() {
return property0;
}
public void setProperty0(Production1944 value) {
property0 = value;
}
... | true |
cf3ae1a1a00c25830092a89b258f0a52edd290d7 | Java | sb-cloud-race/sb-session | /src/main/java/io/github/sbcloudrace/sbsession/user/UserController.java | UTF-8 | 2,310 | 2.28125 | 2 | [
"MIT"
] | permissive | package io.github.sbcloudrace.sbsession.user;
import io.github.sbcloudrace.sbsession.tokensession.TokenSession;
import io.github.sbcloudrace.sbsession.tokensession.TokenSessionRepository;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.... | true |
160004086a0ae8567341120b13e2e6adc5b4057b | Java | rohitner/MA39011 | /10/test1.java | UTF-8 | 1,305 | 3.171875 | 3 | [] | no_license | import java.awt.*; import java.io.*;
import java.lang.*; import javax.swing.*;
import java.applet.*;
public class test1 extends Applet
{
int x,y; String a = " ";
public void init()
{
setBackground(Color.white);
setForeground(Color.red);
}
public void paint(Graphics g)
{
try
{
BufferedReader o = new B... | true |
580f6cd52b8bd0c7449fd997140c74de7e819e9e | Java | BrunoDatoMeneses/AMOEBA3 | /AMOEBAonAMAK/src/gui/DimensionSelector.java | UTF-8 | 2,255 | 2.921875 | 3 | [] | no_license | package gui;
import java.util.List;
import java.util.concurrent.Semaphore;
import agents.percept.Percept;
import fr.irit.smac.amak.tools.RunLaterHelper;
import javafx.collections.FXCollections;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Pos;
import javafx.scen... | true |
f30a7282b901ecb48ea28bc12225ddc065ab93dd | Java | AmeerAyman/Cellular-Phone-Control-System | /src/cellular/phone/control/system/Receiver.java | UTF-8 | 2,793 | 2.359375 | 2 | [] | no_license | /*
* 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 cellular.phone.control.system;
import GUI.CellIdle;
import GUI.CellOption;
import GUI.CellRinging;
import GUI.Idle;
import GUI... | true |
931183dacf59ab345e1bfaf13a06ab5a23893645 | Java | vinaychatraofficial/Practice | /src/epi/graph/KruskalMST.java | UTF-8 | 2,650 | 3.171875 | 3 | [] | no_license | package epi.graph;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
public class KruskalMST {
public static void main(String[] args) {
List<Edge> edges = new ArrayList<>();
edges.add(new Edge(0,1,6));
edges.add(new Edge(0,2,8));
edges.add(new Edge... | true |
9bc4108abb4ab2de1d49f617065708620e6ce737 | Java | sunilkmr5775/spring-boot-card-management | /src/test/java/com/mbanq/banksystem/CardControllerIntegrationTest.java | UTF-8 | 7,135 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | package com.mbanq.banksystem;
import com.mbanq.banksystem.dto.*;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.json.JacksonJsonParser;
import org.springframework.boot.test.autoconfigure.we... | true |
ab65befa6716b20403843095fa02036632352de8 | Java | moutainhigh/cms | /cms-biz/src/main/java/com/ymkj/cms/biz/service/apply/impl/ReturnedLoanBoxServiceImpl.java | UTF-8 | 1,227 | 1.890625 | 2 | [] | no_license | package com.ymkj.cms.biz.service.apply.impl;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ymkj.base.core.biz.common.PageBean;
import com.ymkj.base.core.biz.common.PageParam;
import com.ymkj.base.core.biz.dao.BaseDao;
im... | true |
50c294ecb84c396538248f0fafe5781abf2250bc | Java | ardyputra/1441180066TugasPBO | /Tugas 3/testlaptop.java | UTF-8 | 1,014 | 2.515625 | 3 | [] | no_license | class testLaptop {
public static void main(String[] args) {
laptop akbar = new laptop();
System.out.println("warna=" +akbar.getwarna());
System.out.println("merk=" +akbar.getmerk());
System.out.println("wifi=" +akbar.getwifi());
System.out.println("batrai=" +akbar.getbaterai());
System.out.println(" ");
... | true |
6376c46c25765b89f0bbdccdd9aa32cca48e6db6 | Java | zentaury/SpringBootDemoApi | /src/main/java/com/mybooking/catalogservice/repositories/CatalogDbRepository.java | UTF-8 | 1,788 | 2.578125 | 3 | [] | no_license | package com.mybooking.catalogservice.repositories;
import com.mybooking.catalogservice.domain.entities.Author;
import com.mybooking.catalogservice.domain.entities.Book;
import com.mybooking.catalogservice.domain.entities.Category;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.... | true |
49a84730fcdf84b8d859fe9ad78f049c423465c3 | Java | TommyTeaVee/Pano360 | /app/src/main/java/org/cyanogenmod/focal/widgets/BurstModeWidget.java | UTF-8 | 4,138 | 1.960938 | 2 | [] | no_license | package org.cyanogenmod.focal.widgets;
import android.content.res.Resources;
import android.hardware.Camera;
import android.view.View;
import org.cyanogenmod.focal.CameraActivity;
import org.cyanogenmod.focal.feats.BurstCapture;
import fr.xplod.focal.R;
/**
* Burst-shooting mode widget
*/
public class BurstModeWi... | true |
8900902601febf8d27765cf0e9cfa1537b6ecf5a | Java | hyprd/spindle | /COMP160/S2/Lab18/TrafficLightPanel.java | UTF-8 | 3,257 | 3.671875 | 4 | [] | no_license | /**COMP160 lab 18 - TrafficLightPanel.java - Ethan Simmonds - September 2016*/
import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
public class TrafficLightPanel extends JPanel {
//data field declarations
private JButton red, amber, green;
private JLabel drawButtonPanel,pressPanel;
private JPanel... | true |
d2287448f78f9221c56d697db01e0b8e03f501fc | Java | Spectrum3847/Robot-Ultraviolet | /Ultraviolet/src/subsystems/Camera.java | UTF-8 | 2,509 | 2.6875 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package subsystems;
import driver.AutoAim;
import driver.CamData;
import edu.wpi.first.wpilibj.command.Subsystem;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
/**
*
* @author root
*/
pu... | true |
2a1364f7efeb7ec60e206441614e5e54eaa0ce58 | Java | katpb/spark-mongo-test | /pankaj/SparkExamples/transent/src/com/verifone/isd/vsms2/sales/ent/trans/LoyaltyProgramDetails.java | UTF-8 | 2,105 | 2.59375 | 3 | [] | no_license | package com.verifone.isd.vsms2.sales.ent.trans;
import com.verifone.isd.vsms2.sys.util.MoneyAmount;
/**
* Value object to capture the loyalty program details from transaction needed
* for transaction XML serialization. There will be one such entry for each
* loyalty program applicable to the transaction.
... | true |
1b85cbb8fbb5da08403d47706ddb7bdd2b9b547d | Java | apoorv9990/Tribal-Scale | /app/src/test/java/com/tribalscale/ExampleUnitTest.java | UTF-8 | 4,569 | 2.296875 | 2 | [] | no_license | package com.tribalscale;
import com.tribalscale.models.Person;
import com.tribalscale.network.CoreApi;
import com.tribalscale.network.responses.GetPersonsResponse;
import com.tribalscale.presenters.MainPresenter;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClas... | true |
b22c19eaf60dcaec0f5fe6afddf3c0c23b44dc9f | Java | seanbethard/ptkmodel | /ptkModel2/src/perceptron/ERC.java | UTF-8 | 2,132 | 3.109375 | 3 | [] | no_license | package perceptron;
public class ERC {
private Candidate winner;
private Candidate loser;
private double[] learningVector;
private LinguisticForm input;
private ERC equivalentTo;
private boolean accountedFor = false;
public final static int E = 0;
public final static int W = 1;
public final static int L =... | true |
9b782e303cf0d151c4af7eced4f3517231cf0328 | Java | PiotrWtr/tuner | /src/HighFrequencyAnalyser.java | UTF-8 | 782 | 3.234375 | 3 | [] | no_license | public class HighFrequencyAnalyser extends FrequencyAnalyser {
double frequency = 0;
double analyse(double[] signal, double samplingRate){
int zeros = 0;
for (int i = 0; i < signal.length - 1; i++) {
if (signal[i] <= 0 && signal[i + 1] > 0) {
zeros++;
... | true |
b8af29509f7b962703010c435d19a589ed523e76 | Java | cash2one/ionic | /hsbank_cms/doc/易宝文档/易宝接口/JAVA/src/com/yeepay/server/ServerInfo.java | UTF-8 | 636 | 1.96875 | 2 | [] | no_license | package com.yeepay.server;
public class ServerInfo {
private static String PageCharsetName = "gbk";
private static String ServerCharsetName = "iso-8859-1";
private static String YeepayCharsetName = "gbk";
public static String getPageCharsetName(){
return PageCharsetName;
}
public static void setPageCharsetNa... | true |
3b2a193614c0e3495a6992f641d9d861d1e464f8 | Java | mihigh/android-cycling | /android/src/org/mihigh/cycling/app/pe/route/GetUserHelpRunnable.java | UTF-8 | 4,533 | 2 | 2 | [] | no_license | package org.mihigh.cycling.app.pe.route;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.support.v4.app.FragmentActivity;
import com.google.gson.reflect.TypeToken;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods... | true |
54e001ced1f13d0297e438c80a395ff5b6cd8bf9 | Java | sflorezs1/Lab3 | /Final Solution/src/Vertex.java | UTF-8 | 1,092 | 3.359375 | 3 | [] | no_license | public class Vertex <E> {
private int head = 0;
private E data;
private Vertex[] neighbors = new Vertex[8];
private boolean visited;
private int level;
public Vertex(E data) {
this.data = data;
}
public Vertex(E data, int level) {
this.data = data;
this.level = ... | true |
4e675d0ace6f11aa11edb595eb865aa1691c5237 | Java | lxllxllxs/AndroidWebSocket | /src/com/lxl/im/utils/EnumUtil.java | UTF-8 | 177 | 1.671875 | 2 | [] | no_license | package com.lxl.im.utils;
public class EnumUtil {
public static enum MessageType{
Login,TextMessage,ImageMessage,RedPocketMessage,AddFriendMessage,LinkMan;
}
}
| true |
90b6a64e001bc892d5a3c8243deb5fe1ff877259 | Java | jonnypjohnston/Microsoft-SimpleWeather-Android | /shared_resources/src/main/java/com/thewizrd/shared_resources/controls/SunPhaseViewModel.java | UTF-8 | 1,834 | 2.53125 | 3 | [
"Apache-2.0"
] | permissive | package com.thewizrd.shared_resources.controls;
import android.text.format.DateFormat;
import com.thewizrd.shared_resources.DateTimeConstants;
import com.thewizrd.shared_resources.SimpleLibrary;
import com.thewizrd.shared_resources.utils.DateTimeUtils;
import com.thewizrd.shared_resources.weatherdata.Astronomy;
impo... | true |
598b325e758681fab93ba65bd24f28b00e9250ee | Java | TanayaKarmakar/ds_algo | /leetcode/src/com/app/questions/tree/BinarySearchTreeToDLLLeetcode426.java | UTF-8 | 1,222 | 3.375 | 3 | [] | no_license | package com.app.questions.tree;
public class BinarySearchTreeToDLLLeetcode426 {
static class Node {
public int val;
public Node left;
public Node right;
public Node() {}
public Node(int _val) {
val = _val;
}
public Node(int _val,Node _left,Node _right) {
val = _... | true |
122a67bff1c1f56fb54cd9262cb5353c6d17bd1d | Java | LuisFelipeJorge/POO-JAVA-USP | /Loja/src/Loja.java | UTF-8 | 4,292 | 3.140625 | 3 | [] | no_license |
public class Loja {
private Produto[] produtos;
private int capacidade;
private int quantidadeDeProdutos;
private Estoque estoque;
public Loja() {
this.capacidade = 100;
this.produtos = new Produto[this.capacidade];
this.estoque = new Estoque();
}
public Loja(int capacidade) {
this.capacidade = capa... | true |
41aab1c8f51a5296f5e3ab449b88171cb1955fc3 | Java | wyg0405/springboot-demo | /rabbitmq/src/main/java/com/wyg/rabbitmq/javaclient/exchange/direct/ConsumeLogDirect.java | UTF-8 | 1,872 | 2.671875 | 3 | [] | no_license | package com.wyg.rabbitmq.javaclient.exchange.direct;
import java.io.IOException;
import java.util.concurrent.TimeoutException;
import com.rabbitmq.client.*;
/**
* 消费产生的日志
*
* @author wyg0405@gmail.com
* @date 2019-11-16 17:06
* @since JDK1.8
* @version V1.0
*/
public class ConsumeLogDirect {
private sta... | true |
92bac8f34db56c4b977153bc2be0ea003eccbeec | Java | Mittemi/WMPM_SS15 | /code/src/main/java/carrental/MongoDbConfiguration.java | UTF-8 | 1,059 | 2.125 | 2 | [] | no_license | package carrental;
import com.mongodb.Mongo;
import com.mongodb.MongoClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.mongodb.config.AbstractMongoConfig... | true |
e739d180479d89e6e79bcf8c561ed3c27948c5aa | Java | learnwithuma/Java-8 | /src/DateAndTimeAPIExample.java | UTF-8 | 1,119 | 3.484375 | 3 | [] | no_license |
// Lambda Expression and Collections
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.time.Period;
import java.time.ZoneId;
import java.time.ZonedDateTime;
class DateAndTimeAPIExample {
public static void main(String[] args) {
LocalDate ld = LocalDate.now();
... | true |
e6e354bc8ba7382ba9f63098b5de6b8a59771e38 | Java | ElephantWithCode/ComearnApp | /wang_part/src/main/java/com/example/team/wang/engine/fragment/class_main/ClassMainFragment.java | UTF-8 | 6,489 | 2 | 2 | [] | no_license | package com.example.team.wang.engine.fragment.class_main;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.ServiceConnection;
import android.os.Bundle;
import android.os.Handler;
import android.os.IBinder;
i... | true |
081f84180cfc434b20a683874c03c8a7d80401d5 | Java | kprochazka/ass-2015 | /server/src/main/java/ass/prochka6/InvalidRequestException.java | UTF-8 | 677 | 2.53125 | 3 | [] | no_license | package ass.prochka6;
/**
* Parsing or general invalid request exception, translated by HttpProtocolHandler to HttpResponse with given Status.
*
* @author Kamil Prochazka
*/
class InvalidRequestException extends RuntimeException {
private static final long serialVersionUID = 6569838532917408380L;
private... | true |
e1f94f521330fab13a927d5e1e951ef6c8a65013 | Java | michael041/bank-accounts-program | /SavingsAccount.java | UTF-8 | 961 | 3.203125 | 3 | [] | no_license | package bankaccounts;
public class SavingsAccount extends Account {
public SavingsAccount(){
super(); //uses no-arg constructor of the super class
}
public SavingsAccount(Depositor dp, int an, String tp, double ba, String s){
super(dp,an,tp,ba,s); //uses parameterized constructor... | true |
0517116d915772d8bc0e4088eec75fa881dbc666 | Java | srcdeps/srcdeps-core | /srcdeps-core/src/main/java/org/srcdeps/core/config/tree/Node.java | UTF-8 | 2,506 | 2.359375 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright 2015-2018 Maven Source Dependencies
* Plugin contributors as indicated by the @author tags.
*
* 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... | true |
80aa3a549cd37157902544795cf3f4049b0dd706 | Java | Andy----/OOSAD2 | /week11/src/CreateOrmtestData.java | UTF-8 | 1,060 | 2.640625 | 3 | [] | no_license | /**
* Licensee: Institute of Technology Tallaght
* License Type: Academic
*/
import org.orm.*;
public class CreateOrmtestData {
public void createTestData() throws PersistentException {
PersistentTransaction t = OrmtestPersistentManager.instance().getSession().beginTransaction();
try {
Employee employee = Em... | true |
3294e6d994b0c698ded7e080c2cbec5f13b9ab86 | Java | Aayush67/SpringBootTodoWebApp | /src/main/java/com/project/springbootwebapp/SpringbootwebappApplication.java | UTF-8 | 453 | 1.679688 | 2 | [] | no_license | package com.project.springbootwebapp;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
@SpringBootApplication
//@ComponentScan("com.project.springbootwebappp")
public class Springbootweb... | true |
858a29f0f31887b4b7ed182a4a4e885546ad0dbf | Java | danghieu/dulich2009 | / dulich2009/CODE/Travel/src/com/ptit/travel/beans/SerializableBean.java | UTF-8 | 380 | 2.03125 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.ptit.travel.beans;
import java.io.Serializable;
/**
*
* @author D05CNPM
*/
public interface SerializableBean extends Serializable{
/**
* combine all the attributes of Object into a string mess... | true |
8bca1281ca61d29ca9f36b579e36871388f61364 | Java | weston100721/wonderful-spring-boot | /src/main/java/info/zhaoliang/wonderful/exception/BusinessException.java | UTF-8 | 2,304 | 2.671875 | 3 | [
"MIT"
] | permissive | package info.zhaoliang.wonderful.exception;
/**
* 业务异常.
*/
public class BusinessException extends RuntimeException {
private static final long serialVersionUID = -3982645755980473694L;
/**
* 错误描述.
*/
private String msg;
/**
* 错误代码.
*/
private String code;
/**
* 构造方法.... | true |
321bafcc8369b8c2072a66ccca1e2d97411425a1 | Java | datanucleus/tests | /jpa/TCK_1.0/src/com/sun/ts/tests/ejb30/persistence/query/flushmode/Client.java | UTF-8 | 81,928 | 1.679688 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
/*
* @(#)Client.java 1.13 06/04/17
*/
package com.sun.ts.tests.ejb30.persistence.query.flushmode;
import com.sun.javatest.Status;
import com.sun.ts.lib.harness.*;
import com.sun.ts... | true |
973dbef1d339d2ecf8cec7fd696f39c7ea5e666b | Java | Astroware/FAMIS | /FireAlertMobileInspectionSystem/src/com/astroware/famis/LocationScreen.java | UTF-8 | 5,250 | 2.125 | 2 | [] | no_license | package com.astroware.famis;
import java.util.ArrayList;
import controlClasses.DigitsToPixels;
import controlClasses.LocationControl;
import entityClasses.*;
import android.os.Bundle;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
... | true |
e6a31ba58b30ca8e905600bf434aabea8f3e8d91 | Java | DucMystery/api-book | /src/main/java/com/example/managerbookapi/model/Book.java | UTF-8 | 410 | 2.125 | 2 | [] | no_license | package com.example.managerbookapi.model;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
@Entity
@Setter
@Getter
public class Book {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Column(nullable = false)
private String name;
@Column(null... | true |
971a80b83ab5f1b9fa07eff8839a3e0000474fc3 | Java | fluorumlabs/disconnect-project | /disconnect-spring-integration/src/main/java/com/github/fluorumlabs/disconnect/spring/server/DynamicStream.java | UTF-8 | 41,341 | 2.859375 | 3 | [
"Apache-2.0"
] | permissive | package com.github.fluorumlabs.disconnect.spring.server;
import java.util.Comparator;
import java.util.Iterator;
import java.util.Optional;
import java.util.Spliterator;
import java.util.function.*;
import java.util.stream.*;
/**
* Created by Artem Godin on 2/12/2020.
*/
public class DynamicStream<T> implements Str... | true |
1f8f0938913eb00ed956cdf126e795e846c6eca6 | Java | Lyanel/Milker | /src/modele/carac/MilkCoin.java | UTF-8 | 2,137 | 2.734375 | 3 | [
"MIT"
] | permissive | package modele.carac;
import modele.ParseMilkFile;
import modele.baseObject.MilkVar;
import org.w3c.dom.Element;
public class MilkCoin extends MilkVar {
public static final String xmlCoin = "coin";
// Fields
private Float coin;
// Constructors
public MilkCoin() {
this((float) 0);
... | true |
bf91eaaf8b0eaae1b624d263377ab1288b7dcf53 | Java | dzlongju/JavaLearningTest | /src/Mashu_Price/Control.java | UTF-8 | 3,621 | 2.3125 | 2 | [] | no_license | package Mashu_Price;
import java.util.List;
public class Control {
//类目表信息
String[] catelist = {"网店/网络服务/软件",
"包装",
"电动车/配件/交通工具",
"居家布艺",
"五金/工具",
"家庭/个人清洁工具",
"模玩/动漫/周边/cos/桌游",
"自行车/骑行装备/零配件",
"节庆用品/礼品",
"彩妆/香水/美妆工具",
"鲜花速递/花卉仿... | true |
3a0c65fa240be27096b51d42072ae094877ad9cc | Java | SmartToolFactory/Bluetooth-LE-Smart-Tutorials | /Bluetooth-LE-library/src/test/java/uk/co/alt236/bluetoothlelib/device/beacon/BeaconUtilsTest.java | UTF-8 | 896 | 2.140625 | 2 | [] | no_license | package uk.co.alt236.bluetoothlelib.device.beacon;
import junit.framework.TestCase;
/**
*
*/
public class BeaconUtilsTest extends TestCase {
public void testGetBeaconTypeIBeacon() throws Exception {
assertEquals(BeaconType.IBEACON, BeaconUtils.getBeaconType(new byte[]{
0x4C, 0x00, 0x02,... | true |
d22fbcc753eeb86e5a4f6a0cb5b24606e4166c1e | Java | rogerio121/geracontrato | /src/main/java/br/com/geracontrato/model/Imovel.java | UTF-8 | 2,186 | 2.015625 | 2 | [] | no_license | package br.com.geracontrato.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "imovel")
public class Imovel {
@Id
@GeneratedValue
@Column(name = "imov_id")
int idIm... | true |
05da73a5c421b412548c06ddd288bcbc8ef09d01 | Java | 6uonp/androiddev2020 | /USTHWeather/app/src/main/java/vn/edu/usth/usthweather/ForecastFragment.java | UTF-8 | 5,678 | 2.234375 | 2 | [] | no_license | package vn.edu.usth.usthweather;
import android.app.ActionBar;
import android.graphics.Typeface;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.ImageV... | true |
24ef8484747777b0c679895171de27696d8e3dad | Java | GodLikeEcho/HVZ-GO | /HvZUI/app/src/main/java/redacted/hvzui/A_chat_room.java | UTF-8 | 1,114 | 2.203125 | 2 | [] | no_license | package redacted.hvzui;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.webkit.WebSettings;
import android.webkit.WebView;
/**
* Main class to create a webView
*/
public class A_chat_room extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInst... | true |
d5cd1560c4dc8877827626d46e952e76fad5e0da | Java | joana-team/WALA | /com.ibm.wala.util/src/com/ibm/wala/util/intset/EmptyIntSet.java | UTF-8 | 1,894 | 2.46875 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2011 - IBM Corporation.
* 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 ... | true |
8ed226da25424af8b1a28774d69358bceab4aac0 | Java | rootmelo92118/analysis | /sources/com/p051vm/p062vo/login/LoginResp.java | UTF-8 | 835 | 2.125 | 2 | [] | no_license | package com.p051vm.p062vo.login;
import java.io.Serializable;
/* renamed from: com.vm.vo.login.LoginResp */
public class LoginResp implements Serializable {
private String authKey;
private Long memberId;
private String token;
public Long getMemberId() {
return this.memberId;
}
public... | true |
3725fd6d3543820edc58162f4be5a52bad1cd604 | Java | scrocchia/kata-tennis | /kata-tennis/src/kata/tennis/play/Scores.java | UTF-8 | 4,961 | 2.984375 | 3 | [] | no_license | package kata.tennis.play;
import kata.tennis.entity.Player;
import java.util.Random;
public class Scores {
private Player firstPlayer;
private Player secondPlayer;
public static final String ADVANTAGE = "ADVANTAGE";
public static final String DEUCE = "DEUCE";
public static String... | true |
e2bf394bbe647b8233ccb4b698ee96d21d2c2bfb | Java | zhixiandev/trans1 | /bdi-dx/src/main/java/com/bdi/sp/vo/Naver.java | UTF-8 | 776 | 2.0625 | 2 | [] | no_license | package com.bdi.sp.vo;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
public class Naver {
private Message message;
public Message getMessage() {
return message;
}
public void setMessage(Message message) {
this.message = message;
}
@JsonIgnoreProperties(ignoreUnknown=true)
public class ... | true |
6404e4d34b1e35a4f568e60dd49b3bcaae0f189a | Java | arielcarlos757/AMSS | /amdocs-api-common-web-services/amdocs-api-common-abp-ws/src/main/java/com/practia/abp/exception/AACWSException.java | UTF-8 | 635 | 2.25 | 2 | [] | no_license | package com.practia.abp.exception;
import javax.xml.ws.WebFault;
import com.practia.abp.exception.fault.MessageFault;
@WebFault(name="AACWSException")
public class AACWSException extends Exception {
public static final long serialVersionUID = 1L;
public MessageFault messageFault;
public AACWSException(String ... | true |
f056b170851fbdbcfba56641de9b57da3bd21e59 | Java | cga2351/code | /DecompiledViberSrc/app/src/main/java/com/google/android/gms/internal/ads/zzu.java | UTF-8 | 429 | 1.859375 | 2 | [] | no_license | package com.google.android.gms.internal.ads;
public enum zzu
{
static
{
zzu[] arrayOfzzu = new zzu[4];
arrayOfzzu[0] = zzav;
arrayOfzzu[1] = zzaw;
arrayOfzzu[2] = zzax;
arrayOfzzu[3] = zzay;
}
}
/* Location: E:\Study\Tools\apktool2_2\dex2jar-0.0.9.15\classes_viber_2_d... | true |
8b28958458812d5148ece4b3df96eaddb32fc3ba | Java | jburgosortega/EmpresaCable | /src/capaGui/MenuPackCanales.java | UTF-8 | 22,354 | 2.046875 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package capaGui;
import capaDatos.DatosCliente;
import capaDatos.DatosProductos;
import capaDatos.DatosServicios;
import capaNegocio.NegocioProductos;
import capaNegocio.NegocioServicios;
import java.util.ArrayList;
imp... | true |
0be74d3ba61d2e2c83dd03cbdc7a27b3ff57f285 | Java | raminDutt/CoreJava | /src/main/java/coreJava/Line.java | UTF-8 | 743 | 3.359375 | 3 | [] | no_license | package coreJava;
import annotations.Serializable;
@Serializable
public class Line {
Point from;
Point to;
Point center;
public Line()
{
this(null,null);
}
public Line(Point from, Point to)
{
this.from=from;
this.to=to;
}
//@Override
public Point getCenter() {
double cx = (to.getX()+from.get... | true |
d9577b270d537b59e8bad32c1d19d2ea0e47934a | Java | LennartSannen/java_boxing-administration | /src/main/java/com/defence/administration/model/Member.java | UTF-8 | 3,941 | 2.0625 | 2 | [] | no_license | package com.defence.administration.model;
import java.time.LocalDate;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.pers... | true |
b967efa2b48bb3591de3a8ff9a967ad14c8e5ffe | Java | hzhh123/beetn | /src/main/java/com/hd/controller/bpmn/ProcessDefinitionController.java | UTF-8 | 4,120 | 2.359375 | 2 | [] | no_license | package com.hd.controller.bpmn;
import com.hd.controller.base.BaseController;
import com.hd.entity.ProcessDefinitionEntity;
import com.hd.util.PageInfo;
import org.activiti.engine.HistoryService;
import org.activiti.engine.RepositoryService;
import org.activiti.engine.history.HistoricTaskInstance;
import org.activiti.... | true |
dcc1c6a950cda350b6b4772d6750deaaddb82933 | Java | nzrscc/MMSpring | /src/main/java/it/mastermind/mmspring/services/CombinationService.java | UTF-8 | 230 | 1.765625 | 2 | [] | no_license | package it.mastermind.mmspring.services;
public interface CombinationService {
int[] check(int[] valori_inseriti, int[] soluzione);
int save(String username);
String getSoluzioneByUsername(String username);
}
| true |
7d4b1868fb9a5e1861bd8b31c1c606b264bfa0e6 | Java | ribeiro2008/calypte | /src/test/java/calypte/TXCacheHelper.java | UTF-8 | 1,518 | 2.4375 | 2 | [] | no_license | /*
* Calypte http://calypte.uoutec.com.br/
* Copyright (C) 2018 UoUTec. (calypte@uoutec.com.br)
*
* 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.or... | true |