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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
3ee8660217756b2e9f55ad995ee0df8f576f61f6 | Java | theguy951357/intro_oop201 | /robots/src/edu/unca/csci201/Car.java | UTF-8 | 404 | 3.078125 | 3 | [] | no_license | package edu.unca.csci201;
public class Car {
private int mileage;
private int tank;
private String model;
public Car(int mileage, int tank, String model) {
this.mileage = mileage;
this.tank = tank;
this.model = model;
}
public int getMileage() {
return mileage;
}
public int getTan... | true |
2d297f7a3723665ac74f214cdf6a349c8e68ffb5 | Java | DeblaSamples/SinaWeiboAlbum | /CoBoxWeiboAblum/src/com/cocoonshu/sina/weibo/network/auth/Unauthorize.java | UTF-8 | 1,577 | 2.25 | 2 | [] | no_license | package com.cocoonshu.sina.weibo.network.auth;
import org.json.JSONException;
import org.json.JSONObject;
import com.cocoonshu.network.HttpAPI;
import com.cocoonshu.network.HttpMethod;
import com.cocoonshu.sina.weibo.Account;
import com.cocoonshu.sina.weibo.Weibo;
import com.cocoonshu.sina.weibo.network.WeiboAPI;
imp... | true |
8a9383b6f88b4bd935b370ecaece043cf01f39b2 | Java | victerpaul/Java-Programs---Java-Concepts-Demo | /MethodWithReturnValue.java | UTF-8 | 267 | 3.0625 | 3 | [] | no_license | class Test
{
int x,y;
public int sum(int x, int y)
{
return x+y;
}
}
class MethodWithReturnValue
{
public static void main(String a[])
{
int result;
Test mat=new Test();
result = mat.sum(11,22);
System.out.print(result);
}
} | true |
9de2cca8016ffd08f9b55f9793e5e18f2b727b36 | Java | Te4o/MyLibrary | /src/main/java/com/softserve/academy/model/Comment.java | UTF-8 | 1,473 | 2.4375 | 2 | [] | no_license | /**
*Comment.java
*
*created at Nov 15, 2015
*
*@author Vasil Sokolov <vasilsokolov@abv.bg>
*
* Copyright (c) 2015 . All Rights Reserved.
*/
package com.softserve.academy.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence... | true |
e1f07bd9d3522a3b21ecc44f6999792e619ad5ab | Java | yhysmile/pzjuser | /customer-service/src/main/java/com/pzj/common/util/MQUtil.java | UTF-8 | 4,065 | 2.40625 | 2 | [
"Apache-2.0"
] | permissive | package com.pzj.common.util;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.alibaba.rocketmq.client.exception.MQClient... | true |
f1c3b9d858f7b08659142048b12206d2f339a869 | Java | remicaumette/arion | /arion-core/src/main/java/com/arionmc/arioncore/api/nms/TitleBuilder.java | UTF-8 | 2,246 | 3.21875 | 3 | [] | no_license | package com.arionmc.arioncore.api.nms;
public class TitleBuilder {
private String title;
private String subtitle;
private int fadeIn;
private int stay;
private int fadeOut;
public TitleBuilder() {
}
/**
* Défini le titre.
*
* @param title Le titre.
* @return Le bui... | true |
3fc264123475d2df22fc7a7d4eeee55ab89adab6 | Java | leonkielstra/BPEL-to-BPMN-converter | /src/test/java/factories/BPMNBuilderFactory.java | UTF-8 | 445 | 1.796875 | 2 | [
"Apache-2.0"
] | permissive | package factories;
import org.bpel2bpmn.utilities.builders.BPMNBuilder;
import org.camunda.bpm.model.bpmn.instance.Definitions;
public class BPMNBuilderFactory {
public static BPMNBuilder create() {
BPMNBuilder builder = new BPMNBuilder();
Definitions definitions = builder.createDefinitions("bpe... | true |
4d5873b9dfa0fa6fcb3fb38039c539abad143866 | Java | jbescos/helidon | /nima/webserver/webserver/src/main/java/io/helidon/nima/webserver/LoomServer.java | UTF-8 | 8,927 | 1.820313 | 2 | [
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"LGPL-2.0-or-later",
"LicenseRef-scancode-philippe-de-muyter",
"LGPL-2.1-or-later",
"LicenseRef-scancode-unicode",
"LicenseRef-scancode-warranty-disclaimer",
"EPL-1.0",
"Classpath-exception-2.0",
"LicenseRef-scancode-protobuf",
"APSL-1.0",
"G... | permissive | /*
* Copyright (c) 2022 Oracle and/or its affiliates.
*
* 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 applic... | true |
68191d39d33ef7595d89749dc5d95329a73a4955 | Java | woniukeji/JianGuo_Server | /src/com/jianguo/sql/T_hobby_Sql.java | UTF-8 | 6,080 | 2.21875 | 2 | [] | no_license | package com.jianguo.sql;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import com.jianguo.bean.T_hobby_time_Bean;
import com.jianguo.bean.T_hobby_type_Bean;
import com.jianguo.util.DButil;
publ... | true |
30f720ac3f23e7e54f4042223181dabe6ee4222e | Java | thomascherickal/hedera-services | /hedera-node/src/test/java/com/hedera/services/context/properties/ScreenedSysFilePropsTest.java | UTF-8 | 6,542 | 1.960938 | 2 | [
"Apache-2.0"
] | permissive | package com.hedera.services.context.properties;
/*-
*
* Hedera Services Node
*
* Copyright (C) 2018 - 2021 Hedera Hashgraph, LLC
*
* 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... | true |
77c13a1aa68ba09221f3368b0981ad49e4bb7d2b | Java | KkukYang/bitWeb | /WebProject_20201103/src/main/java/ajax/sawon/db/SawonDao.java | UTF-8 | 4,412 | 2.59375 | 3 | [] | no_license | package ajax.sawon.db;
import oracle.db.OracleConnect;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
public class SawonDao {
OracleConnect db;
public SawonDao() {
db = OracleC... | true |
4ff05e729bcdf31083fb3b4e53adea107e446b5c | Java | sevrukandrey/carsReader | /src/test/java/com/playtika/automation/web/CarsReaderControllerIntegrationTest.java | UTF-8 | 2,300 | 2.3125 | 2 | [] | no_license | package com.playtika.automation.web;
import com.playtika.automation.service.CarsReaderService;
import org.apache.commons.io.FileUtils;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TemporaryFolder;
import org.junit.runner.RunWith;
import org.springframework.beans.factory... | true |
0db1cc8c1df253a20c2ef7615a810a853552e18f | Java | gusbru/PlotInJava | /src/sample/MonteCarloIntegral.java | UTF-8 | 1,017 | 2.890625 | 3 | [] | no_license | package sample;
import javafx.scene.chart.XYChart;
import java.util.Random;
public class MonteCarloIntegral implements Runnable
{
private final double BOLTZMANN_K = 1.38064E-23;
private XYChart.Series data;
private double temperature, mass, vmin, vmax;
private int numberOfPoints;
private Random r... | true |
afd3c790de4808b59bf777f95042dd8ffc6a7872 | Java | Kevin-Sim/Sudoku | /src/ea/EA.java | UTF-8 | 3,433 | 3.015625 | 3 | [] | no_license | package ea;
import java.util.ArrayList;
import java.util.Random;
import sudoku.Gui;
import sudoku.SudokuChecker;
public class EA {
static Random rnd = Parameters.rnd;
public static void main(String[] args) {
ArrayList<Individual> population = new ArrayList<>();
for (int i = 0; i < Parameters.populationSize; ... | true |
9b79c5bd0c9053aa75a609f2e46dc536cb776354 | Java | Sagot86/TestProject | /arrays/src/main/java/array/Element.java | UTF-8 | 249 | 1.851563 | 2 | [] | no_license | package array;
import lombok.Data;
import lombok.RequiredArgsConstructor;
/**
* Element.
*
* @author Igor_Orlov
*/
@Data
@RequiredArgsConstructor
public class Element {
private final int xCoordinate;
private final int yCoordinate;
}
| true |
d343dc658acc53a8259938bc1239d9f73a73b440 | Java | health-program/hangfeng | /src/main/java/com/paladin/hf/model/org/OrgUnit.java | UTF-8 | 2,133 | 1.882813 | 2 | [] | no_license | package com.paladin.hf.model.org;
import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import com.paladin.framework.common.UnDeleteBaseModel;
public class OrgUnit extends UnDeleteBaseModel {
public final static int UNIT_TYPE_AGENCY = 1;
public final static int UN... | true |
2a8f424bf7b7a3001bc0570b91539d4b78731057 | Java | manxist256/MovingBit | /src/Practice/ReplaceAll0With5.java | UTF-8 | 726 | 3.25 | 3 | [
"Apache-2.0"
] | permissive | /*
* 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 Practice;
import java.util.Scanner;
/**
*
* @author mankank
*/
public class ReplaceAll0With5 {
public static void main... | true |
5dec25edb181ffbfdcd1e44db859127374095631 | Java | swaroop-m/OnlineShopping | /src/main/java/com/cg/onlineshopping/service/IAddressService.java | UTF-8 | 650 | 2.015625 | 2 | [] | no_license | package com.cg.onlineshopping.service;
/*
* @Author: Shrestha Chowdhury (JEEFSI_Uni41)
* Code starts here
*/
import java.util.List;
import org.springframework.stereotype.Service;
import com.cg.onlineshopping.entities.Address;
@Service
public interface IAddressService {
public Address addAddress(Address add);// ... | true |
179a65226a8fca44934ba494b23689ebbde9d917 | Java | leon4evil/MaMusicList | /app/src/main/java/com/example/tuill/mamusiclist/AllowStorageReadin.java | UTF-8 | 1,985 | 2.125 | 2 | [] | no_license | package com.example.tuill.mamusiclist;
import android.Manifest;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.v4.app.ActivityCompat;
import android.support.v4.app.DialogFragment... | true |
0baa198c3ad25ece13be44b5cf50280a7e16b375 | Java | goldenboy777/TangledMaze | /src/me/tangledmaze/gorgeousone/utils/Constants.java | UTF-8 | 825 | 2.171875 | 2 | [
"MIT"
] | permissive | package me.tangledmaze.gorgeousone.utils;
import org.bukkit.ChatColor;
import org.bukkit.Material;
public class Constants {
public static final String
insufficientPerms = ChatColor.RED + "You do not have the Permission for this command.",
buildPerm = "tm.build",
vipPerm = "tm.build.vip",
staffPerm ... | true |
ff7b58911e357eb9feb7289d1d4b821e1bd20a00 | Java | itwospace/NaTicket | /app/src/main/java/com/NaTicket/n/holidays/Holiday_Filters_Activity.java | UTF-8 | 11,608 | 1.921875 | 2 | [] | no_license | package com.NaTicket.n.holidays;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.crystal.c... | true |
e1044817a10607e93156f4be79e1f8b194fbb095 | Java | easleydp/brew-pilot | /Java/tempctrl/src/main/java/com/easleydp/tempctrl/util/StringUtils.java | UTF-8 | 2,315 | 3.296875 | 3 | [
"MIT"
] | permissive | package com.easleydp.tempctrl.util;
import java.util.*;
import java.util.stream.*;
public class StringUtils
{
public static String substringBetween(String str, String before, String after)
{
int i = str.indexOf(before);
int j = str.indexOf(after, i + before.length());
if (i == -1)
... | true |
cb2ca26e708b01c18f6805194bf39524fd3e1b57 | Java | Romo4ka-bot/java_lab_2020_semester3 | /05. WebApp/src/main/java/ru/itis/javalab/repositories/UsersRepositoryJdbcTemplateImpl.java | UTF-8 | 5,627 | 2.359375 | 2 | [] | no_license | package ru.itis.javalab.repositories;
import org.springframework.dao.EmptyResultDataAccessException;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.RowMapper;
import org.springframework.jdbc.core.namedparam.MapSqlParameterSource;
import org.springframework.jdbc.core.namedparam.... | true |
ff042dc74eea0b45564ce300c814434a1d1a7ac1 | Java | whlee21/gaia | /gaia-shared/src/main/java/gaia/crawl/datasource/DataSourceAPI.java | UTF-8 | 3,952 | 1.648438 | 2 | [] | no_license | package gaia.crawl.datasource;
import java.util.Date;
import java.util.Map;
public interface DataSourceAPI {
public static final String URL = "url";
public static final String EXCLUDE_PATHS = "exclude_paths";
public static final String INCLUDE_PATHS = "include_paths";
public static final String CRAWL_BOUNDS = "bo... | true |
d4b711f23aaa172ce092c7107e0de17aef925c2a | Java | luojiangyu/gouwu | /src/main/java/com/ljy/dao/UserMapper.java | UTF-8 | 193 | 1.679688 | 2 | [] | no_license | package com.ljy.dao;
import org.springframework.stereotype.Repository;
import com.ljy.vo.User;
@Repository
public interface UserMapper {
public User checkUserInfo(User user);
}
| true |
9bdc0bf73edbb0118f94e296bb6d34278ff3f44c | Java | matiasezequieI/POO_PATTERNS | /src/visitor/Items.java | UTF-8 | 100 | 1.75 | 2 | [] | no_license | package visitor;
public interface Items {
public int aceitar(CarrinhoVisitor visitor);
}
| true |
b11f96c3b0bda2ef96ba1c71077836bb51bfb95e | Java | DjVidiX/TAS-FirstProject | /Marek/Klient.java | UTF-8 | 1,686 | 2.828125 | 3 | [] | no_license | import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.RMISecurityManager;
import java.rmi.RemoteException;
import java.util.*;
public class Klient {
private int id;
private String ready;
private Interfejs interf = null;
private List<Player> players_list ... | true |
de86a02c4afa622bddc7d9f596f96f601b3a65e6 | Java | surachman/iconos-tarakan | /pk-ejb/src/java/com/pelindo/ebtos/ejb/remote/DeliveryOperationRemote.java | UTF-8 | 1,301 | 1.757813 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.pelindo.ebtos.ejb.remote;
import javax.ejb.Remote;
/**
*
* @author R. Seno Anggoro A
*/
@Remote
public interface DeliveryOperationRemote {
public void handleDeliveryConfirm(com.pelindo.ebtos.model.... | true |
f7deb2830039422eeddc6806e8ed91d29450c4d5 | Java | vklonin/QA_GURU_3_0 | /src/test/java/Task2.java | UTF-8 | 1,108 | 2.140625 | 2 | [] | no_license | import com.codeborne.selenide.*;
import org.junit.jupiter.api.Test;
import static com.codeborne.selenide.Condition.*;
import static com.codeborne.selenide.Selectors.*;
import static com.codeborne.selenide.Selenide.*;
public class Task2 {
@Test
void checkSoftAssertion(){
// open Selenide link in git ... | true |
a1593b74e3b04d0d2bb2cc226d90872fd324083a | Java | KevenDvorianoff/Comixaire | /src/main/java/com/github/brokenswing/comixaire/controller/StatsController.java | UTF-8 | 1,452 | 2.21875 | 2 | [] | no_license | package com.github.brokenswing.comixaire.controller;
import com.github.brokenswing.comixaire.di.InjectValue;
import com.github.brokenswing.comixaire.exception.InternalException;
import com.github.brokenswing.comixaire.facades.clients.ClientsFacade;
import com.github.brokenswing.comixaire.facades.item.LibraryItemFacade... | true |
580e298afe1fb448226d7606750cb0472f073385 | Java | plibin/regadb | /jhivgensim/src/net/sf/hivgensim/queries/framework/QueryOutput.java | UTF-8 | 442 | 2.4375 | 2 | [] | no_license | package net.sf.hivgensim.queries.framework;
import net.sf.hivgensim.queries.output.ToObjectList;
public abstract class QueryOutput<DataType, OutputType> implements IQuery<DataType>{
private OutputType out;
public QueryOutput(OutputType out){
this.out = out;
}
public void output(ToObjectList<DataType> list)... | true |
6f1fecf32ee316b564266e319843faa23f52cdae | Java | league-level4-student/level4-module4-codeavenger1 | /src/asdf/PigLatin.java | UTF-8 | 1,381 | 3.15625 | 3 | [] | no_license | package asdf;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTextField;
public class PigLatin {
public static void main(String[] args) {
PigLatin pig = new PigLatin();
pig.main2();
pig.isLetter('a');
}
public static void main2() {
JFrame frame = new J... | true |
63ee1d02a450e09b177fb9d73cf5ce8d35ed7e39 | Java | AfonyaAnf/TestMagnit | /app/src/main/java/com/example/alexey/test/db/StationEntityDao.java | UTF-8 | 1,416 | 2.09375 | 2 | [] | no_license | package com.example.alexey.test.db;
import android.arch.lifecycle.LiveData;
import android.arch.persistence.room.Dao;
import android.arch.persistence.room.Insert;
import android.arch.persistence.room.OnConflictStrategy;
import android.arch.persistence.room.Query;
import com.example.alexey.test.model.entity.StationEnt... | true |
505d341ab0184b6911db3f5f2f9619217606fcef | Java | fracz/refactor-extractor | /results-java/androidannotations--androidannotations/d1be16f9705a4ac907924b6f1b3748d3e1dd6a48/after/UiThreadExecutor.java | UTF-8 | 2,590 | 2.515625 | 3 | [] | no_license | /**
* Copyright (C) 2010-2015 eBusiness Information, Excilys 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 ... | true |
62ae60702b3005ca4bb2fe79549ee6ba5b84aca1 | Java | fportillo/jaxb-poc | /src/main/java/br/com/almana/domain/City.java | UTF-8 | 1,289 | 2.5 | 2 | [] | no_license | package br.com.almana.domain;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import org.apache.commons.lang.builder.EqualsBuil... | true |
d5170872ea909a12e6c9c2c39007f2dd40087c82 | Java | wangchao550586585/Head-First-Design-Patterns | /src/BehavioralPattern/L_State/a/GumballMachine.java | UTF-8 | 2,353 | 3.4375 | 3 | [] | no_license | package BehavioralPattern.L_State.a;
public class GumballMachine {
// 存储糖果机4状态,糖果售空,没有25分(糖果25/1个),有25分,出售
final static int SOLD_OUT = 0;
final static int NO_QUARTER = 1;
final static int HAS_QURATER = 2;
final static int SOLD = 3;
// 跟踪当前状态,默认没糖果
int state = SOLD_OUT;
// 追踪机器糖果数目
int count = 0;
public Gum... | true |
6412d656d318c52715b8b64ed791b4e5842a402f | Java | rhythmic-zone/v2.0 | /cloud/src/main/java/com/medzone/cloud/defender/ConnectivityReceiver.java | UTF-8 | 1,103 | 2.140625 | 2 | [] | no_license | /**
*
*/
package com.medzone.cloud.defender;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
/**
* @author ChenJunQi.
*
*/
public class ConnectivityReceiver extends BroadcastReceiver... | true |
561fcf7e3b8bc7dee260bea56ece9e673343919b | Java | ktc45622/WaterQuality | /src/java/database/DataFilter.java | UTF-8 | 6,754 | 2.015625 | 2 | [] | no_license | /* BSD 3-Clause License
*
* Copyright (c) 2017, Louis Jenkins <LouisJenkinsCS@hotmail.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must ret... | true |
acdb17aafd2d64942cd4bf1cf7f6cb95ff71b6bb | Java | hhiden/kafka-tests | /annotated-processor/src/main/java/com/redhat/processor/container/MessageHandlerApplication.java | UTF-8 | 3,042 | 2.8125 | 3 | [] | no_license | package com.redhat.processor.container;
import com.redhat.processor.annotations.MessageProcessor;
import eu.infomas.annotation.AnnotationDetector;
import java.lang.annotation.Annotation;
import java.util.ArrayList;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
* This class provides an entry po... | true |
4799f75f2eca9259f09ac1e050efa73089afd49b | Java | NexusLinkTeam/2DoList | /app/src/main/java/com/jacob/www/a2dolist/ui/adapter/GroupAdapter.java | UTF-8 | 5,007 | 1.898438 | 2 | [] | no_license | package com.jacob.www.a2dolist.ui.adapter;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.support.v7.widget.RecyclerView;
import android.text.TextUtils;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import... | true |
eda3996d070fdde9831ac8559448950209859663 | Java | HaochengLEE/JavaCore | /src/main/java/com/oo/Interface/INet.java | UTF-8 | 621 | 2.953125 | 3 | [] | no_license | package com.oo.Interface;
/**
* @author lihaocheng
* @create 2019-02-02 11:52 AM
**/
public interface INet {
public void network();
//接口中的常量,默认public static final
int time = 123;
//default:默认方法,可以带方法体 可以在实现类中重写,并可以通过接口引用调用
default void connection(){
System.out.println("It is a forma... | true |
787a6c6aeb71653059ccbb479535d1045f2f9ba6 | Java | ErikVergani/Java-POO | /src/Aula4/trianguloCalculo.java | UTF-8 | 428 | 3.09375 | 3 | [
"MIT"
] | permissive | package Aula4;
public class trianguloCalculo {
double ladoA = 0;
double ladoB = 0;
double ladoC = 0;
public double calcularPerimetro() {
double perimetro = ladoA + ladoB + ladoC;
return perimetro;
}
public double calcularArea() {
double sp = calcularPerimetro() / 2;
... | true |
3508f4569d81d1eb3fa395067bf1b9a4368cc76f | Java | WorstCase00/Music | /src/main/java/mst/music/scoring/ScoringModel.java | UTF-8 | 3,097 | 2.46875 | 2 | [] | no_license | package mst.music.scoring;
import be.tarsos.dsp.AudioEvent;
import be.tarsos.dsp.pitch.PitchDetectionResult;
import mst.music.scoring.calc.ScoreCalculation;
import mst.music.track.TrackDefinition;
import mst.music.track.TrackingState;
import org.slf4j.LoggerFactory;
public class ScoringModel {
private static final o... | true |
d8bb79351760cd4c320d962a8f847aebe0eea8d1 | Java | susann/SpellFlow-DOCs | /SpellFlowEditor.diagram_snippet/src/SpellFlowLanguage/diagram/helperClasses/actions/GotoReferences.java | UTF-8 | 233 | 1.632813 | 2 | [] | no_license | package SpellFlowLanguage.diagram.helperClasses.actions;
import org.eclipse.jface.action.MenuManager;
public class GotoReferences extends MenuManager {
public GotoReferences() {
super();
this.setMenuText("References");
}
}
| true |
62a534c938af91eaa9446d7cf143c9749a2659f7 | Java | jiusan2016/resources | /filter/SessionFilter.java | UTF-8 | 2,256 | 1.867188 | 2 | [] | no_license | package com.chngenesis.startrek.filter;
import java.io.IOException;
import java.util.Date;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.se... | true |
06254cf7eb997eb5bdb7cd40add72de03092c4a9 | Java | devx001/personal_java | /DecoratorFood/src/componentes/ComboBasico.java | UTF-8 | 477 | 2.234375 | 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 componentes;
/**
*
* @author Alejo
*/
public class ComboBasico extends Combo{
public ComboBasico() {
desc... | true |
b7c358714c22fb2679323dc3ee5fb30ccb3afef7 | Java | kma952727/marketProject | /src/main/java/com/example/demo/service/ProductService.java | UTF-8 | 1,753 | 2.140625 | 2 | [] | no_license | package com.example.demo.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.example.demo.config.FileUtils;
import com.example.demo.mapper.ProductMappe... | true |
b48901d71db9ea98bf73f902983deb0f8b9eb4bb | Java | kittiphongaum/KeepWordTeachV3 | /src/main/java/com/cs/bru/model/DateofTeach.java | UTF-8 | 5,342 | 1.9375 | 2 | [] | no_license | package com.cs.bru.model;
import com.cs.bru.bean.SumTsdPsd;
import com.cs.bru.bean.TeachSeachBean1;
public class DateofTeach {
private int dtimeId;
private String dateofteachId;
private int weekofyearDft;
private String dayofyearDft;
private String monthofyearDft;
private String yearofteachDft;
private int tud... | true |
7e44af6b7600cc0694ce198ac52c02fc5ee64ed3 | Java | Vosec/RDBproject | /InsertGenerator/src/entity/Jizda.java | UTF-8 | 1,038 | 2.421875 | 2 | [] | no_license | package entity;
import java.sql.Timestamp;
public class Jizda implements Entity {
private String linka;
private String spz;
private String cislo_rp;
private Timestamp cas;
public Jizda(String linka, String spz, String cislo_rp, Timestamp cas) {
this.linka = linka;
this.spz = spz;
this.cislo_rp... | true |
82fe8831a26c564d5759d6c1877a3b35db5c2f57 | Java | Tomislav776/Foodzye | /app/src/main/java/com/example/tomipc/foodzye/adapter/FoodAdapter.java | UTF-8 | 3,122 | 2.625 | 3 | [] | no_license | package com.example.tomipc.foodzye.adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.Filter;
import android.widget.TextView;
import com.example.tomipc.foodzye.R;
import com.ex... | true |
458079e80c41ae7920f617373bde68c8d0d2f926 | Java | wcm-io-qa/wcm-io-qa-galenium | /modules/icing/src/main/java/io/wcm/qa/glnm/junit/seljup/ViewportWidthProvider.java | UTF-8 | 1,467 | 1.90625 | 2 | [
"Apache-2.0"
] | permissive | /*
* #%L
* wcm.io
* %%
* Copyright (C) 2020 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... | true |
75ba97c8db7a7cf05c9547206b2b8f44b53a0442 | Java | jacobacon/Time-Manage | /src/main/java/com/jacobacon/timemanage/server/shiro/UserDAO.java | UTF-8 | 2,256 | 2.375 | 2 | [
"Apache-2.0"
] | permissive | package com.jacobacon.timemanage.server.shiro;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.googlecode.objectify.ObjectifyService;
import com.googlecode.objectify.Work;
import com.googlecode.objectify.cmd.Query;
import static com.googlecode.objectify.ObjectifyService.ofy;
import ja... | true |
1deb0ad1fa70cd6d53379973ea9c3c1b65656460 | Java | schelrobin/geppetto | /org.cloudsmith.geppetto.pp.dsl.tests/src/org/cloudsmith/geppetto/pp/dsl/tests/TestFailingSerialization.java | UTF-8 | 6,659 | 2.25 | 2 | [] | no_license | /**
* Copyright (c) 2011 Cloudsmith Inc. and other contributors, as listed below.
* 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
* http://www.eclipse.org/legal/epl-... | true |
b858a6f6c51b9a7a98165bde625bebf8b85e8801 | Java | dananjaya123/click_computer_parts-system | /Server/src/lk/ijse/gdse/computerParts/entity/UserSeting.java | UTF-8 | 1,054 | 2.609375 | 3 | [] | no_license | package lk.ijse.gdse.computerParts.entity;
import javax.persistence.Entity;
import javax.persistence.Id;
@Entity
public class UserSeting {
@Id
String name;
String password;
String solt;
public UserSeting() {
}
public UserSeting(String name, String password, String solt) {
this.na... | true |
54ec9188d0ee4275629f2362fd4845b7d4775125 | Java | Yogiraj24/iijnmApp | /src/com/hp/supplier/dto/Contactsreferences.java | UTF-8 | 53,791 | 1.96875 | 2 | [] | no_license | /*
* This source file was generated by FireStorm/DAO.
*
* If you purchase a full license for FireStorm/DAO you can customize this header file.
*
* For more information please visit http://www.codefutures.com/products/firestorm
*/
package com.hp.supplier.dto;
import com.hp.supplier.dao.*;
import com... | true |
7b74eff4c1f5849169657e7313dbd3ae934e5710 | Java | tanvipnabar/AndroidNEW | /AppFirst/src/com/appfirst/datatypes/PolledDataData.java | UTF-8 | 1,666 | 2.046875 | 2 | [] | no_license | /*
* Copyright 2009-2011 AppFirst, 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 ag... | true |
6f3bb76ca47fa374780ebb6e75c4e69aea053944 | Java | MonikaFoks/ProdCons | /Producer.java | UTF-8 | 648 | 3.015625 | 3 | [] | no_license | package Lab5;
class Producer extends Thread
{
private char stuff = 'A';
private Bufor bufor;
private int id;
private boolean paused;
public void play() {
paused = false;
}
public void pause() {
paused = true;
}
public Producer(Bufor bufor, int id) {
this.bufor... | true |
9fae5a64c8ec03cff218f834ddc771af7b7c3e5c | Java | cheers32/tradepartner | /AlgosRef/src/Q150_Q199/Q155.java | UTF-8 | 1,771 | 3.734375 | 4 | [] | no_license | package Q150_Q199;
import java.util.Stack;
public class Q155 {
static class MinStack { // 2N space, constant time
Stack<Integer> stack;
Stack<Integer> min;
/** initialize your data structure here. */
public MinStack() { // easy solution, 2N space, constant time
stack... | true |
c927970a7bde58be1662255636b1a97c60d9a7dd | Java | falcondb/Misc | /Java-projects/lintcode/MyArray.java | UTF-8 | 3,585 | 3.859375 | 4 | [] | no_license | public class MyArray {
public static void main(String[] args) {
int[] d = { -11, 12, 3, 17, 5 };
System.out.println(new MyArray().firstMissingPositive(d, d.length));
}
/*
* Given an array and a value, remove all instances of that value in place
* and return the new length.
*
* The order o... | true |
e38660ec05ae91fe527fa2d888536718de4259cc | Java | bakshidwarak/DSAndAlgo | /src/leetcode/sorttransformedarray/SortTransformedArray.java | UTF-8 | 1,368 | 3.96875 | 4 | [] | no_license | package leetcode.sorttransformedarray;
/**
* 360. Sort Transformed Array Medium
*
* 199
*
* 59
*
* Favorite
*
* Share Given a sorted array of integers nums and integer values a, b and c.
* Apply a quadratic function of the form f(x) = ax2 + bx + c to each element x
* in the array.
*
* The returned ar... | true |
6a686002e016bddbc0fb6fa05117cbe027c35bea | Java | raybrm/IPL | /2BIN/PAE/projet-ae-groupe-01/src/main/java/be/ipl/pae/biz/devis/DevisImpl.java | UTF-8 | 3,623 | 2.296875 | 2 | [] | no_license | package be.ipl.pae.biz.devis;
import be.ipl.pae.biz.EtatAmenagements;
import java.time.LocalDate;
public class DevisImpl implements DevisBiz, Cloneable {
private int idDevis;
private int idClient;
private LocalDate dateDevis;
private double montantTotal;
private int dureeTravaux;
private int photoPrefere... | true |
79a3cabd646fef0657c17dde4f08b140234dd212 | Java | Horsmann/toobee | /de.unidue.ltl.toobee.twitter/src/test/java/de/unidue/ltl/toobee/twitterUtils/TestRawJsonReaderLocalFileSystem.java | UTF-8 | 4,464 | 2.171875 | 2 | [] | no_license | package de.unidue.ltl.toobee.twitterUtils;
import static org.apache.uima.fit.factory.CollectionReaderFactory.createReader;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.io.File;
import java.io.IOException;
import org.apache.uima.UIMAException;
import org.apache.u... | true |
9e061f057979e89a4fdaaeffc0e8d056b9869a7d | Java | EricSchilha/GdxThreeCI | /core/src/gdx/threeci/GamMain.java | UTF-8 | 891 | 2.8125 | 3 | [] | no_license | package gdx.threeci;
import com.badlogic.gdx.Game;
import com.badlogic.gdx.scenes.scene2d.Stage;
public class GamMain extends Game {
ScrMenu scrMenu;
ScrPlay scrPlay;
ScrGameover scrGameover;
int nScreen; // 0 for menu, 1 for play, and 2 for game over
public void updateState(int _nScreen) {
nScreen = _nScreen... | true |
53b3accf0df3374c8cb6682f4dbb5dcb9e3b415f | Java | naltang/bug_practice | /bug.java | UTF-8 | 3,269 | 3.421875 | 3 | [
"MIT"
] | permissive | import java.util.Scanner;
class Bug
{
public static void bug_stack_overflow()
{
}
public static void bug_buffer_overflow()
{
}
public static void bug_arithmetic_overflow()
{
}
public static void bug_arithmetic_underflow()
{
}
public static void bug_loss_of_ar... | true |
8c165f4ef37ba1dd070f0e0128c9400dcfd63529 | Java | p524/Tuboroidon524 | /Tuboroid/src/info/narazaki/android/tuboroid/FlickDetector.java | UTF-8 | 1,752 | 2.546875 | 3 | [] | no_license | package info.narazaki.android.tuboroid;
import android.app.Activity;
import android.view.MotionEvent;
import android.view.ViewConfiguration;
import android.view.GestureDetector.OnGestureListener;
public abstract class FlickDetector {
// フリックで戻る
// # もっとマシなやりかたがありそう
public abstract static class OnFlickListener impl... | true |
373c53f43370d47aa780fb9f325fd83ff2f29fd6 | Java | josecarloscanova/spf4j | /spf4j-avro/src/main/java/org/spf4j/avro/schema/SchemasWithClasses.java | UTF-8 | 1,461 | 2.71875 | 3 | [] | no_license |
package org.spf4j.avro.schema;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.HashMap;
import java.util.Map;
import org.apache.avro.Schema;
/**
* A visitor that recursively visits a schema and returns a map like:
* java class name -> Schema
* for every Schema encountered that has a ja... | true |
86c4fe166707818f41fd7629477f237de28c37af | Java | viralpatelsait/Week05LabMyLogin | /src/java/services/AccountService.java | UTF-8 | 766 | 2.59375 | 3 | [] | 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 services;
import java.util.ArrayList;
import models.User;
/**
*
* @author 834171
*/
public class AccountServ... | true |
52beb43ce89862f401b13324c971d34dcfc20286 | Java | tadeucruz/projectrisc | /src/br/pucminas/tadeucruz/risc/Memoria.java | UTF-8 | 2,700 | 2.453125 | 2 | [] | no_license | /*
This file is part of ProjectRisc.
ProjectRisc is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
ProjectRisc is distributed in the hope tha... | true |
154d0020764065f7eee7f5a29914e8133447ec5c | Java | jonesmaXd/BonusMembers2 | /src/main/java/no/ntnu/oblig2/GoldMembership.java | UTF-8 | 770 | 2.96875 | 3 | [] | no_license | package no.ntnu.oblig2;
public class GoldMembership extends Membership{
private final float POINTS_SCALING_FACTOR_LEVEL_1 = 1.3f;
private final float POINTS_SCALING_FACTOR_LEVEL_2 = 1.5f;
public GoldMembership(int points) {
super(points);
}
@Override
public int registerPoints(int bonu... | true |
e53a14ec66109ad4ce269c1e5d90bc278ef51b7c | Java | it114112tm1415fyp/client-android | /app/src/main/java/it114112tm1415fyp/com/client_android/ShipmentLocationList_Adapter.java | UTF-8 | 2,731 | 2.421875 | 2 | [] | no_license | package it114112tm1415fyp.com.client_android;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import java.util.ArrayList;
import java.util.TreeSet;
public class ShipmentLoca... | true |
a48b4e724507b8abbf6fe95bb0fabcb8f134909b | Java | jbplevin/android_project | /MyFoodTracker/app/src/main/java/com/example/user/myfoodtracker/LogItemDao.java | UTF-8 | 959 | 2.0625 | 2 | [] | no_license | package com.example.user.myfoodtracker;
import android.arch.persistence.room.Dao;
import android.arch.persistence.room.Delete;
import android.arch.persistence.room.Insert;
import android.arch.persistence.room.Query;
import android.arch.persistence.room.TypeConverter;
import android.arch.persistence.room.Update;
import... | true |
57a23c8e03231cd598f239a51ae2a53e8e72eb68 | Java | stphung/azura | /src/experiment/physics/objects/SphericalMass.java | UTF-8 | 113 | 1.65625 | 2 | [] | no_license | package experiment.physics.objects;
public interface SphericalMass extends PointMass {
double getRadius();
} | true |
64fa2ad2596f0e2f7ebb8762d6f6fa594c1d775a | Java | seungmi9191/chapter01 | /src/com/javaex/ex01/Ex02.java | UTF-8 | 393 | 3.0625 | 3 | [] | no_license | package com.javaex.ex01;
public class Ex02 {
public static void main(String[] args) {
double var01 = 3.14;
float var02 = 3.14f;
System.out.println(var01);
System.out.println(var02);
double var03=0.123456789123456789111235488565453215;
float var04=0.123456789123456789111235488565453215f;
... | true |
dad860577928f051569f583c952958879c1e6b9d | Java | yunlei/sjtu-database-mla | /src/Parse/Yylex.java | UTF-8 | 77,481 | 2.515625 | 3 | [] | no_license | package Parse;
import ErrorMsg.ErrorMsg;
class Yylex {
private final int YY_BUFFER_SIZE = 512;
private final int YY_F = -1;
private final int YY_NO_STATE = -1;
private final int YY_NOT_ACCEPT = 0;
private final int YY_START = 1;
private final int YY_END = 2;
private final int YY_NO_ANCHOR = 4;
pri... | true |
6763c6525609d83976ea71a7f70689ea82e444bc | Java | calculon102/breakout-clone | /src/de/pixelgerecht/breakout/subject/ScoreText.java | UTF-8 | 1,192 | 2.4375 | 2 | [] | no_license | package de.pixelgerecht.breakout.subject;
import static de.pixelgerecht.breakout.config.BreakoutConfigs.HUD_FONT_NAME;
import static de.pixelgerecht.breakout.config.BreakoutConfigs.HUD_FONT_SIZE;
import static de.pixelgerecht.breakout.config.BreakoutConfigs.HUD_SCORE_COLOR;
import static de.pixelgerecht.breakout.confi... | true |
a88ad5c7081895d87d4cb87eeb632be6bb8b51a3 | Java | mrmattherndon/Project2 | /Geo/src/Group.java | UTF-8 | 1,261 | 3.671875 | 4 | [] | no_license | /**
*This class abstracts a "group" into an object that is capable of accepting an arbitrary number of Info objects as constructor arguments.
* </P>
* @version 1.0
*/
public class Group {
/* *An instance variable of Group, is an array of Info of arbitrary length*/
private Info[] Info;
/* *Another instance vari... | true |
786a2a0f155386bcd92663b09d9d46962e1edae2 | Java | Davey1-2/BasicArena-main | /src/main/java/cz/educanet/arena/data/GladiatorDatabase.java | UTF-8 | 1,438 | 3.109375 | 3 | [
"MIT"
] | permissive | package cz.educanet.arena.data;
import cz.educanet.arena.logic.Gladiator;
import java.io.*;
/**
* Utils class that saves and loads gladiators.
*/
public class GladiatorDatabase {
/**
* @param filename path to the gladiator file.
* @return loaded Gladiator
*/
public static Gladiator loadGlad... | true |
4dbff98d0dc4e0da34c320d2639ac45ce4d44185 | Java | Jiganesh/Java | /Learning Java/Reduce.java | UTF-8 | 208 | 2.921875 | 3 | [] | no_license | import java.util.stream.IntStream;
public class Reduce{
public static void main(String[] args) {
int [] x = {1,2,3,4,5};
System.out.println(IntStream.of(x).reduce(0,(a,b)-> a+b));
}
} | true |
9394eaa1497f70788e68dca7beeb76188215aca9 | Java | ChiRains/forest | /orderform/orderform-component/src/main/java/com/qcloud/component/orderform/service/RefundOrderService.java | UTF-8 | 780 | 1.882813 | 2 | [] | no_license | package com.qcloud.component.orderform.service;
import java.util.List;
import com.qcloud.component.orderform.model.RefundOrder;
import com.qcloud.component.orderform.model.query.RefundOrderQuery;
import com.qcloud.pirates.data.Page;
public interface RefundOrderService {
public boolean add(RefundOrder re... | true |
c7cdb09b82c7429c316505256048ff3405bcc34f | Java | aolarte/test-harness | /java/lang/src/main/java/com/andresolarte/harness/lang/algo/BinarySearchTree.java | UTF-8 | 5,096 | 3.53125 | 4 | [] | no_license | package com.andresolarte.harness.lang.algo;
import java.util.Arrays;
public class BinarySearchTree {
class Node {
final int data;
Node left;
Node right;
public Node(int data) {
this.data = data;
left = null;
right = null;
}
}
p... | true |
8e0ee24acd51d91a3d86c8a07997aaf840d5e06d | Java | sanseongKo/codingtest | /src/baekjun/Joseputh.java | UTF-8 | 547 | 2.796875 | 3 | [] | no_license | package baekjun;
import java.util.LinkedList;
import java.util.Queue;
public class Joseputh {
public static void main(String[] args) {
}
public static int[] solution(int n, int m) {
int[] result = new int[m];
Queue<Integer> que = new LinkedList<Integer>();
int l = 1;
int k = 0;
int tmp = 0;
for(int ... | true |
eb2de57f9d5bf24a1d632d6ff6e839d7cb6aaef8 | Java | liyunlog0621/Spring | /batch/src/main/java/com/lyl/batch/restart/RestartReader.java | UTF-8 | 5,262 | 2.46875 | 2 | [] | no_license | //package com.lyl.batch.restart;
//
//import com.lyl.batch.model.City;
//import org.springframework.batch.item.ExecutionContext;
//import org.springframework.batch.item.ItemStreamException;
//import org.springframework.batch.item.ItemStreamReader;
//import org.springframework.batch.item.NonTransientResourceException;
/... | true |
7b8a2d085d588b0bb599c9abfd26a64879af0d29 | Java | LosMoros/JavaRepo | /minitest/src/test/java/minitest/FizzBuzzTest.java | UTF-8 | 1,322 | 2.90625 | 3 | [] | no_license | package minitest;
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class FizzBuzzTest {
FizzBuzz testObject;
@Before
public void setUp() throws Exception {
testObject = new FizzBuzz();
}
@After
public void tearDown() throws Exception {
}
/... | true |
37b39fbd375c13e209d6cb8230b99b42b9cdaeb8 | Java | wangsiyue/HR | /src/main/java/com/yc/biz/impl/ConfigPublicCharBizImpl.java | UTF-8 | 2,159 | 2 | 2 | [] | no_license | package com.yc.biz.impl;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.yc.bean.ConfigFileFirstKind;
import com.yc.bean.ConfigFileSecondKind;
import com.yc.bean.ConfigFileThirdKind;
import com.yc.bean.ConfigPublicChar;
import com.yc.biz.Con... | true |
2147f95ec1c22e80e39ea19923675e2b0559d751 | Java | caoshen/bluetooth | /speex/src/main/java/io/github/caoshen/speex/Speex.java | UTF-8 | 430 | 2.21875 | 2 | [] | no_license | package io.github.caoshen.speex;
/**
* @author caoshen
* @date 2020/11/20
*/
public class Speex {
static {
System.loadLibrary("speex");
}
public native int open(int compression);
public native int getFrameSize();
public native int decode(byte[] encoded, short lin[], int size);
pu... | true |
9830ee4b15d1796e677261d9770084ae418e4fd5 | Java | dujuejue/leetcodeAnswer | /src/code/Test187.java | UTF-8 | 609 | 3.0625 | 3 | [] | no_license | package code;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
public class Test187 {
public List<String> findRepeatedDnaSequences(String s) {
List<String> result = new ArrayList<>();
Set<String> set1 = new HashSet<>();
Set<String> set2 = n... | true |
493b46acabe9b8ce28659abb5ae860aac2259c92 | Java | Rishabh8721/vaccine-check | /app/src/main/java/com/floplabs/vaccinecheck/model/CowinData.java | UTF-8 | 513 | 2.359375 | 2 | [] | no_license | package com.floplabs.vaccinecheck.model;
import java.util.List;
public class CowinData {
private List<Center> centers;
public CowinData(List<Center> centers) {
this.centers = centers;
}
public List<Center> getCenters() {
return centers;
}
public void setCenters(List<Center> ... | true |
347391ebf9aaa9ec9bc24fa20621c719a7975b5d | Java | tobasschu/bucketservice | /src/test/java/de/tschumacher/bucketservice/service/S3ServiceTest.java | UTF-8 | 1,952 | 1.820313 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2017 Tobias Schumacher
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | true |
6138f31769fbcf1ca88938660c8a776f90e1dc3a | Java | wwkjddyh/oa | /platform/src/main/java/com/oa/platform/web/handler/GlobalExceptionHandler.java | UTF-8 | 1,952 | 2.46875 | 2 | [] | no_license | package com.oa.platform.web.handler;
import com.oa.platform.biz.FileBiz;
import com.oa.platform.common.StatusCode;
import com.oa.platform.exception.PlatformException;
import com.oa.platform.util.StringUtil;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springfra... | true |
4a59b7fb39389ff62316a12406ba55acfa571d5a | Java | LiewJunTung/Travel-Companion | /app/src/main/java/com/liewjuntung/travelcompanion/models/pixabay/PixabayResult.java | UTF-8 | 581 | 2.265625 | 2 | [] | no_license | package com.liewjuntung.travelcompanion.models.pixabay;
import com.google.gson.annotations.SerializedName;
import java.util.List;
/**
* Popular Movie App
* Created by jtlie on 9/16/2016.
*/
public class PixabayResult {
@SerializedName("total")
private int total;
@SerializedName("totalHits")
priv... | true |
9cc74aef2e86e9a70f62f65147b8906a3882a167 | Java | qianghuanbaby/chart-room2 | /src/main/java/com/qh/client/entity/User.java | UTF-8 | 319 | 1.734375 | 2 | [] | no_license | package com.qh.client.entity;
import lombok.Data;
import java.util.Set;
/**
* Author:qh
* Created:2019/8/24
* 实体类,用户操作的
*/
@Data
public class User {
private Integer id;
private String userName;
private String password;
private String brief;
private Set<String> userNames;
}
| true |
87d27b1336e872ff20c689840b46127c2d6db1b3 | Java | capSAR273/kiji-enron-emails | /mr/src/main/java/org/kiji/enronemail/produce/SentimentProducer.java | UTF-8 | 3,871 | 2 | 2 | [] | no_license | /**
* (c) Copyright 2013 WibiData, Inc.
*
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* 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... | true |
2cc53d19e1946876f485dea12eef79b85d0e6c73 | Java | StoyanZhulev/SoftUni | /Java/Java Fundamentals/JavaOOP Advanced/Exercises/Ex05_Reflection/src/Pr03_BarracksWars/core/CommandInterpreter.java | UTF-8 | 1,149 | 2.9375 | 3 | [] | no_license | package Pr03_BarracksWars.core;
import Pr03_BarracksWars.contracts.Executable;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
public class CommandInterpreter implements Pr03_BarracksWars.contracts.CommandInterpreter{
private static final String COMMAND_PACKAGE =... | true |
18e230b21266e1047e653584ebb422a1e0f52d40 | Java | elrimo/ServeurPFE | /src/main/java/com/pfe/localisation/service/PointAccesService.java | UTF-8 | 361 | 1.65625 | 2 | [] | no_license | package com.pfe.localisation.service;
import java.util.List;
import com.pfe.localisation.object.Pointacces;
public interface PointAccesService {
void ajoutAP(Pointacces pa);
Pointacces findAPById(int id);
List<Pointacces> findAllAP();
void updateAP(Pointacces etage);
void deleteAP(Pointacces etage);
Pointacces... | true |
8510a923aa2a6d5e382154cbd88cd0635773a9c5 | Java | yllture/sharing_gradle | /bloggertest/.svn/pristine/f7/f76449bc60793fca2ffa96a234cc38d3544fa4ec.svn-base | UTF-8 | 4,094 | 2.09375 | 2 | [] | no_license | //package com.neuedu.controller;
//
//import com.paypal.api.payments.Links;
//import com.paypal.api.payments.Payment;
//import com.paypal.base.rest.PayPalRESTException;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframew... | true |
71fa22a28c8024b75e77e625eb9466a9b1ae5bbe | Java | Tencent/bk-base | /src/datahub/cache/base/src/main/java/com/tencent/bk/base/datahub/cache/CacheUtils.java | UTF-8 | 4,245 | 2.265625 | 2 | [
"MIT"
] | permissive | /*
* Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available.
*
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
*
* BK-BASE 蓝鲸基础平台 is licensed under the MIT License.
*
* License for BK-BASE 蓝鲸基础平台:
* ----------------------------------------------... | true |
27c5cc712c78e1bd120f682b9e38f2d2605516c5 | Java | tumastic/mytest | /hm62_mybatis_class1_tp1/src/main/java/com/itheima/dao/UserDAO.java | UTF-8 | 289 | 1.921875 | 2 | [] | no_license | package com.itheima.dao;
import com.itheima.entity.UserInfo;
import java.util.List;
/**
* 数据层接口
*/
public interface UserDAO {
/**
* 查询所有的方法
* @return
* @throws Exception
*/
public List<UserInfo> findAllUsers()throws Exception;
}
| true |
920a2e53ee6b8309a0961c7778d333cef9dcb092 | Java | veerwang/javatest | /9_file_dir/FileOperation.java | UTF-8 | 972 | 2.859375 | 3 | [] | no_license | import java.io.*;
import java.io.OutputStreamWriter;
public class FileOperation {
static String Version = "V1.00";
public static void Create_File(String filename)
{
File file = new File(filename);
if ( file.exists() ) {
file.delete();
}
else {
try {
file.createNewFile();
} catch ( Exception e )... | true |
b31f0719938e126741664ddc3889c58bf1645872 | Java | CHINA-LOONG/ElinDriverSchool | /app/src/main/java/com/elin/elindriverschool/activity/StuForOrderActivity.java | UTF-8 | 14,037 | 1.773438 | 2 | [] | no_license | package com.elin.elindriverschool.activity;
import android.app.DatePickerDialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.app.AlertDialog;
import androi... | true |
2102f2b098506c066ee8c4a1d19b165c6fe5b72d | Java | weichk/yiji-sdk | /openapi-sdk-message/src/main/java/com/yiji/openapi/message/common/cashier/UnionCashierWebPayRequest.java | UTF-8 | 1,705 | 1.9375 | 2 | [] | no_license | package com.yiji.openapi.message.common.cashier;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import org.hibernate.validator.constraints.Length;
import com.yiji.openapi.message... | true |