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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
772b80ceb08c2ebded3335461a68d63a3a86bf4e | Java | prachichourasia/FrameWorkPractice | /src/com/vtiger/objectRepository/HomePageMember.java | UTF-8 | 328 | 1.703125 | 2 | [] | no_license | package com.vtiger.objectRepository;
import org.openqa.selenium.interactions.Actions;
import com.vtiger.genericlibrary.BaseClassForVtiger;
public class HomePageMember
{
public void logOutFromApp()
{
/* Actions act=new Actions(BaseClassForVtiger.driver);
act.moveToElement(signoutDD).perform();*/
... | true |
31560458f083a94949345d51687a396709ff5db1 | Java | davidmehi/LeBirtExpert | /BIRT-Best-Practices-eBook/code/ClassicModelsExample_Java/src/com/lebirtexpert/classicmodels/data/CustomerBIRTDataSet.java | UTF-8 | 1,854 | 3.1875 | 3 | [] | no_license | /**
*
*/
package com.lebirtexpert.classicmodels.data;
/**
* Object representing the Customer BIRT Data Set
* @author David Mehi (Le BIRT Expert)
*/
public class CustomerBIRTDataSet {
private int customerNumber;
private int numberOfYears;
private int visitsPerMonth;
/**
* Parses a string ... | true |
a9d6eb1eddd93e6f77450d9c7bbd099b46aa3bc9 | Java | BetaVN/cse-android-chatapp | /app/src/main/java/com/sendbird/android/sample/main/LoginActivity.java | UTF-8 | 6,870 | 2.171875 | 2 | [] | no_license | package com.sendbird.android.sample.main;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.CoordinatorLayout;
import android.support.design.widget.Snackbar;
import android.support.design.widget.TextInputEditText;
import android.support.v4.widget.ContentLoadingProgressBar;
i... | true |
1e08f7ed498a4924f4caf4969c7ffb0a153b2016 | Java | chengscott/mda | /hw2/src/Jaccard/JaccardReducer.java | UTF-8 | 648 | 2.390625 | 2 | [] | no_license | package lsh;
import java.io.IOException;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;
public class JaccardReducer extends Reducer<Text, Text, Text, Text> {
public void reduce(Text key, Iterable<Text> values, Context context)
throws IOException, InterruptedException {
Stri... | true |
54ef38dd2c0b154c57dd1c9af0aa6ad865815704 | Java | coaxys/log4slack-java | /src/main/java/com/coaxys/log4slack/SlackAppender.java | UTF-8 | 1,731 | 2.484375 | 2 | [
"Apache-2.0"
] | permissive | package com.coaxys.log4slack;
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;
import com.mashape.unirest.http.async.Callback;
import com.mashape.unirest.http.exceptions.UnirestException;
import org.apache.log4j.AppenderSkeleton;
import org.apache.log4j.Level;
import org.apache.lo... | true |
70fc27987e3841a9d0966c64dc0b5a6035b3d7c7 | Java | seonk73/Java- | /1학기/05.31_Exception/src/p151_tryCatch.java | UTF-8 | 792 | 3.75 | 4 | [] | no_license |
public class p151_tryCatch {
public static void main(String[] args) {
String[] irum = new String[3];
irum[0] = "이채린";
irum[1] = "원채린";
irum[2] = "서남경";
//try.catch문이 없으면 배열의 방은 0~2까지 있는데 length가 1~3까지 있어서 방 하나가 남아서 오류가 나게 된다.
//하지만 try.catch을 하면 전체적인 오류 발생이 아닌 예외 발생시 예외 발생을 출력해낸다.
try {
for(in... | true |
ff1dd222b2ed256b5f7e8f27fb8caa272dc4282e | Java | vancywdx/IjWorld | /src/main/java/com/lewdx/entity/GoodsBrand.java | UTF-8 | 1,717 | 2.234375 | 2 | [] | no_license | package com.lewdx.entity;
public class GoodsBrand {
private Integer id;
private String gbrandName;
private String gbrandLogo;
private String gbrandLogoThum;
private String gbrandDesc;
private Boolean flag;
public Integer getId() {
return id;
}
public void setId(Intege... | true |
be55eb19b8cbc9dbf83d339b26bd28439e01dfc2 | Java | SaurabhSalunkhe/Framingham-Heart-Study | /Frahmingham_Heart_Study/AED_Assignment_5/src/Business/Family.java | UTF-8 | 2,399 | 3.125 | 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 Business;
import java.util.Scanner;
/**
*
* @author Saurabh Salunkhe
*/
public class Family {
private PersonDirectory pe... | true |
2447daade167abd51652eccdd65a4ce28525175a | Java | Mookp14235/SimpleMessenger | /src/com/company/InboxFolder.java | UTF-8 | 557 | 2.5625 | 3 | [] | no_license | package com.company;
import java.util.ArrayList;
public class InboxFolder extends Folder
{
public InboxFolder()
{
updateArrayMessage();
}
@Override
public void updateArrayMessage()
{
messagesFolder.clear();
for (Message message : Folder.allMessage)
... | true |
7f4729ee7efb7162ff62cbfe37e44ff14ccca42b | Java | jereconjota/StockLab-desktop | /src/main/java/controlador/ControladorIPpalSecundariaInsumos.java | UTF-8 | 699 | 2.03125 | 2 | [] | no_license | package controlador;
import javafx.fxml.FXML;
import javafx.stage.Stage;
public class ControladorIPpalSecundariaInsumos {
private Stage otroStage;
/**************************** CONSTRUCTOR *********************************/
public ControladorIPpalSecundariaInsumos() {
}
/**********... | true |
c6c634676290cd002e5d145b21ae983750649112 | Java | Valousegawa/mydeezer | /app/src/main/java/com/a2017/dev/insta/mydeezer/MainActivity.java | UTF-8 | 6,405 | 2.140625 | 2 | [] | no_license | package com.a2017.dev.insta.mydeezer;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.ContextMenu;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnCreateContextMenuList... | true |
326db52f236b5e5882ade647a27725752bca4176 | Java | iosonofabio/zotero-connectors | /bookmarklet/tests/src/org/zotero/BookmarkletTester/TranslatorTester.java | UTF-8 | 2,818 | 2.21875 | 2 | [] | no_license | package org.zotero.BookmarkletTester;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedList;
import org.codehaus.jackson.map.ObjectMapper;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
class TranslatorTester {
Translator translator;
boolean isSupp... | true |
87c1618c41eff184f8b08f61fb9719ceaa04c8c7 | Java | zeroFruit/oop-dependency | /ecommerce-02/src/main/java/org/zerofruit/ecommerce/service/order/OrderService.java | UTF-8 | 1,550 | 2.203125 | 2 | [] | no_license | package org.zerofruit.ecommerce.service.order;
import org.springframework.stereotype.Service;
import org.zerofruit.ecommerce.domain.order.*;
import org.zerofruit.ecommerce.domain.shipping.Shipping;
import org.zerofruit.ecommerce.domain.shipping.ShippingRepository;
import javax.transaction.Transactional;
@Service
pub... | true |
3514c69d4faceaaeba13cb79283222533885a6f6 | Java | ElenaWelsh/JavaProgrammingSpring2019 | /src/reviewVasyl/WraperClassPractice.java | UTF-8 | 434 | 3.078125 | 3 | [] | no_license | package reviewVasyl;
public class WraperClassPractice {
public static void main(String[] args) {
int num= 10;
Integer num2 = new Integer(10);
Integer num3 = new Integer(10);
System.out.println(num==num2);//true
System.out.println(num ==num3);//true
System.out.println(num2==num3);//false automatic unboxing
Sys... | true |
c250c010e4cbe685e54a3aab443ad971116f6168 | Java | Imbomi/foodmap | /project/src/main/java/com/example/project/model/survey/dao/SurveyDAOImpl.java | UTF-8 | 1,288 | 2.015625 | 2 | [] | no_license | package com.example.project.model.survey.dao;
import java.util.List;
import javax.inject.Inject;
import org.apache.ibatis.session.SqlSession;
import org.springframework.stereotype.Repository;
import com.example.project.model.survey.dto.SurveyDTO;
import com.example.project.model.survey.dto.SurveyResultDTO... | true |
1f97c9347396c72ec414f4797eddc322203c11ce | Java | sijver/IterativeImprovementAlgorithms | /src/main/core/Neighbourhood.java | UTF-8 | 159 | 1.59375 | 2 | [] | no_license | package main.core;
/**
* Created with IntelliJ IDEA.
*/
/*
Neighbourhoods enum.
*/
public enum Neighbourhood {
TRANSPOSE,
INSERT,
EXCHANGE;
}
| true |
d37f30136d785eadd563733644cf9c0eeefa2cb0 | Java | as1124/AS-1124 | /code/extensions/javaMail/src/com/huangjw/javax/mail/model/EMailAttachment.java | UTF-8 | 191 | 1.695313 | 2 | [] | no_license | package com.huangjw.javax.mail.model;
/**
* 附件模型
*
* @author huangjw(mailto:as1124huang@gmail.com)
*
*/
public class EMailAttachment {
private String fileName;
private int size;
}
| true |
ce57e58e5ff43ec966f7f40943526e41e0a95926 | Java | johnz133/Insight_Blackjack | /src/Player.java | UTF-8 | 3,189 | 3.6875 | 4 | [] | no_license | import java.util.*;
public class Player {
private String name;
private int money;
private List<Card> hand;
private int numAce;
private int value;
private int higherValue;
//Constructor for the player class
Player(String name, int money) {
this.name = name;
this.money = money;
hand = new ArrayList<Card>... | true |
aed09133abf67252e90f6e264a6b4f8a544cd645 | Java | p4535992/sinekarta | /sinekarta-ds-patched-repo/src/main/java/org/sinekartads/dto/tools/SignatureService.java | UTF-8 | 6,598 | 2.40625 | 2 | [] | no_license | /*
* eID Applet Project.
* Copyright (C) 2008-2009 FedICT.
* Copyright (C) 2014 e-Contract.be BVBA.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License version
* 3.0 as published by the Free Software Foundation.
*
* This software is dis... | true |
1decb1df284cca3a0e73aa6ec65e5a53a15076dc | Java | ukbieso/tiltaksgjennomforing-api | /src/main/java/no/nav/tag/tiltaksgjennomforing/varsel/kafka/KafkaMockServer.java | UTF-8 | 1,160 | 1.953125 | 2 | [
"MIT"
] | permissive | package no.nav.tag.tiltaksgjennomforing.varsel.kafka;
import kafka.server.KafkaConfig;
import lombok.extern.slf4j.Slf4j;
import no.nav.tag.tiltaksgjennomforing.varsel.kafka.Topics;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.context.annotation.Profile;
import org.springframework... | true |
77fb75c3d7301913f1c87f807d11e1fa8ff76038 | Java | rmhuff-zipcode/Maven.TalkingPets | /src/main/java/io/zipcoder/polymorphism/Cat.java | UTF-8 | 284 | 3.1875 | 3 | [] | no_license | package io.zipcoder.polymorphism;
public class Cat extends Pet{
String speak = "meow!";
public Cat(String name){
super(name);
}
public String speak(){
return speak;
}
public void setSpeak(String speak){
this.speak = speak;
}
}
| true |
0817c078adde1bccfd7ba9fd2b3cb3b078346134 | Java | DHARMENDRAAGAWANE/JavaTraining | /unmaze/src/main/java/com/mt/unmaze/entity/MaterialTransactionMaster.java | UTF-8 | 11,868 | 1.992188 | 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 com.mt.unmaze.entity;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Basic;
import javax.persist... | true |
ef83daa82e6e4ae64ca5351ed04800fcb51a06f0 | Java | CynicFromYz/studyTasks | /src/main/java/com/waiqin365/firstdemo/sometest/Test0512.java | UTF-8 | 614 | 2.984375 | 3 | [] | no_license | package com.waiqin365.firstdemo.sometest;
/**
* @author cynic
* @version 1.0
* @createTime 2020/5/12 19:52
*/
public class Test0512 {
public static void main(String[] args) {
Integer i01 = 59;
int i02 = 59;
Integer i03 =Integer.valueOf(59);
Integer i04 = new Integer(59);
... | true |
42840b5c16b0454893ebc5daf13bda6ca076e591 | Java | AlonsoUchida/Java | /WsEcommerce/src/main/java/com/valmar/ecommerce/model/InformacionProducto.java | UTF-8 | 1,543 | 2.140625 | 2 | [] | no_license | package com.valmar.ecommerce.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence... | true |
ea38441d60d8f2768bf23b8806ed480a727fb0d6 | Java | de-tu-berlin-tfs/Henshin-Editor | /de.tub.tfs.henshin.tgg.examples/Examples/CD2RDBM/de.tub.tfs.henshin.CD2RDBM.models/src/source/Association.java | UTF-8 | 4,307 | 1.757813 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2010-2015 Henshin developers. 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 ava... | true |
61122b98d2c410629d88adbb8ad8af9a958dd198 | Java | liuhnew/- | /src/main/java/com/jykj/entity/StockOddGoods.java | UTF-8 | 1,942 | 2.03125 | 2 | [] | no_license | package com.jykj.entity;
public class StockOddGoods {
private Integer id;
private String name;
private String model;
private String code;
private String unit;
private String amount;
private String remarks;
private Integer supplier;
private String purchaseNum;
private St... | true |
c5dea7e64ebe71c829c4cb3a69bad5235cf276df | Java | quidjiboo/fishgame_backup | /fishgame/core/src/com/mygdx/jumpfish/util/AssetsMy_old_beforfonts.java | WINDOWS-1252 | 14,735 | 1.851563 | 2 | [] | no_license | package com.mygdx.jumpfish.util;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.assets.AssetDescriptor;
import com.badlogic.gdx.assets.AssetErrorListener;
import com.badlogic.gdx.assets.AssetManager;
import com.badlogic.gdx.audio.Music;
import com.badlogic.gdx.audio.Sound;
import com.badlogic.gdx.graphics.Color;... | true |
e916d2856bd2b70ef49b86749dd0e888f7b7cb58 | Java | YarlinWare/POO-G85 | /Calculadora/src/calculadora/Principal.java | UTF-8 | 2,177 | 3.78125 | 4 | [] | no_license |
package calculadora;
import calculadora.logica.CalculadoraBinaria;
import calculadora.logica.CalculadoraDecimal;
import calculadora.logica.CalculadoraHexadecimal;
import calculadora.logica.CalculadoraOctal;
import calculadora.Operaciones;
import calculadora.logica.Calculadora;
import java.util.Scanner;
public class P... | true |
b1f2e866efe1ca6988640a87dacfceedd36cceb5 | Java | Corosauce/hostileworlds | /src/main/java/hostileworlds/client/item/WeaponRenderer.java | UTF-8 | 4,633 | 1.992188 | 2 | [] | no_license | package hostileworlds.client.item;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.inventory.GuiContainerCreative;
import net.minecraft.client.gui.inventory.GuiInventory;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.client.renderer.entity.RenderManager;
import net.minec... | true |
9f48ba024fa63da4a2cbb53ac44b4792cd735bd6 | Java | NoureddineK/VideoGenProject | /VideoGenTransformer/xtend-gen/VideoGenTest1XtendVersion.java | UTF-8 | 6,744 | 1.984375 | 2 | [] | no_license | import com.google.common.base.Objects;
import fr.istic.videoGen.AlternativesMedia;
import fr.istic.videoGen.ImageDescription;
import fr.istic.videoGen.MandatoryMedia;
import fr.istic.videoGen.Media;
import fr.istic.videoGen.MediaDescription;
import fr.istic.videoGen.OptionalMedia;
import fr.istic.videoGen.VideoDescript... | true |
2b17459fb43f1ab4701ea6caddd480156cc8227a | Java | igorgsousa/livro | /parte-04/Topicos-avancados/Classes abstratas/Empregado.java | UTF-8 | 835 | 3.40625 | 3 | [
"MIT"
] | permissive | public class Empregado extends Humano {
private int idEmpregado;
public Empregado (String seuNome, String seuGenero, int id){
super(seuNome,seuGenero);
this.idEmpregado=id;
}
//lembra do metodo da nossa classe abstrata?
//aqui realizamos a implementacao dele
@Override
publi... | true |
810b0b0de8a8d214bd9c8cdbe02c10652eec438c | Java | ClientPlayground/Melon-Client | /com/replaymod/replaystudio/us/myles/ViaVersion/api/type/types/minecraft/OptPositionType.java | UTF-8 | 783 | 2.359375 | 2 | [] | no_license | package com.replaymod.replaystudio.us.myles.ViaVersion.api.type.types.minecraft;
import com.github.steveice10.netty.buffer.ByteBuf;
import com.replaymod.replaystudio.us.myles.ViaVersion.api.minecraft.Position;
import com.replaymod.replaystudio.us.myles.ViaVersion.api.type.Type;
public class OptPositionType extends Ty... | true |
9a25429054cd1b4b0ad0b548c6cad27a77eb076e | Java | thyferny/indwa-work | /AlpineMinerWorkFlow/src/com/alpine/datamining/api/impl/visual/AdaboostTableVisualizationType.java | UTF-8 | 551 | 1.875 | 2 | [] | no_license | /**
* ClassName AdaboostTableVisualizationType.java
*
* Version information: 1.00
*
* Data: 2011-9-12
*
* COPYRIGHT (C) 2010 Alpine Solutions. All Rights Reserved.
**/
package com.alpine.datamining.api.impl.visual;
import com.alpine.datamining.api.AnalyticOutPut;
import com.alpine.datamining.api.VisualizationO... | true |
ccc040531c05f42de252b18dffbfe1c3a6c93d6e | Java | tectonicus/tectonicus | /src/main/java/tectonicus/blockTypes/TripwireHook.java | UTF-8 | 5,631 | 2.109375 | 2 | [
"BSD-3-Clause"
] | permissive | /*
* Copyright (c) 2022 Tectonicus contributors. All rights reserved.
*
* This file is part of Tectonicus. It is subject to the license terms in the LICENSE file found in
* the top-level directory of this distribution. The full list of project contributors is contained
* in the AUTHORS file found in the same loc... | true |
de49861895cda2379709cc32cdd9432349fffc83 | Java | MakisuCruse/ProgrammingLearning | /DesginPattern/ObserverPattern/ObserverPatternPush/src/main/java/Current/Client.java | UTF-8 | 334 | 1.953125 | 2 | [] | no_license | package Current;
/**
* Created by makisucruse on 2016/10/19.
*/
public class Client {
public static void main(String[] args) {
Watched watched = new Watched();
Watcher watcher=new Watcher(watched);
watched.setData("state1");
watched.setData("state2");
watched.setData("stat... | true |
765c66b83e2e2738fb4d4be2a00717a2a8917c53 | Java | Asmot/Lazyloading | /LazyLoadingDemo/src/com/example/lazyloadingdemo/MainActivity.java | UTF-8 | 683 | 2.109375 | 2 | [] | no_license | package com.example.lazyloadingdemo;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.ListView;
public class MainActivity extends ActionBarActivity {
private ListView mListView;
ListAdapter mAdapter;
@Ove... | true |
273a7d277b53beb906d833dc6ec9df4c00f0fcb7 | Java | Banbari/InterviewBit_Solution | /5. Bit Manipulation/Reverse Bits.java | UTF-8 | 352 | 2.71875 | 3 | [] | no_license | public class Solution {
public long reverse(long a) {
StringBuffer s=new StringBuffer(Long.toBinaryString(a));
int i=s.length();
s=s.reverse();
//System.out.println(s);
for(i++;i<=32;i++)
s.append("0");
long rs=Long.parseLong(s.toString(),2);
//System.out.println(s+" "+s.length(... | true |
b2752ca3825b47af4b526bc7f933589377aa3428 | Java | smartenit-eu/smartenit | /sbox/db/dto/src/main/java/eu/smartenit/sbox/db/dto/SystemControlParameters.java | UTF-8 | 2,742 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright (C) 2015 The SmartenIT consortium (http://www.smartenit.eu)
*
* 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
*
*... | true |
b57dd7e3260c8237a8a7ad322ca3ccc43c58349d | Java | somya1212/DSA-for-SDE-interview | /LinkedLists/Reverse-LL-inGroups-sizeK.java | UTF-8 | 1,172 | 3.921875 | 4 | [
"MIT"
] | permissive | /*
Given a linked list of size N. The task is to reverse every k nodes (where k is an input to the function) in the linked list.
Input:
First line of input contains number of testcases T. For each testcase, first line contains length of linked list and next line contains the linked list elements.
Output:
For each tes... | true |
7bc754241bd9f6df3ea891d838a000453a405397 | Java | ercanku/spring-boot-playwright | /src/main/java/com/example/app/PlaywrightSpringApplication.java | UTF-8 | 564 | 1.875 | 2 | [] | no_license | package com.example.app;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class PlaywrightSpringApplication implements CommandLineRunner {
public static void main(String[] args) {
org.springframework.boo... | true |
e3e5f687d56052dbbb3f7e675e37131ea18ce7ac | Java | TeamZenithKTH/zPuzzle | /app/src/main/java/com/teamzenith/game/zpuzzle/controller/ImageChooser.java | UTF-8 | 5,963 | 2.203125 | 2 | [] | no_license | package com.teamzenith.game.zpuzzle.controller;
import android.Manifest;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.provider.MediaStore;
import android.support.v4.app.Acti... | true |
b6b02e5e23a27d8ec4a815d0dc2723b3647f7083 | Java | broadinstitute/dig-diabetes-portal | /src/java/org/broadinstitute/mpg/diabetes/metadata/result/KnowledgeBaseResultParser.java | UTF-8 | 9,788 | 2.21875 | 2 | [] | no_license | package org.broadinstitute.mpg.diabetes.metadata.result;
import org.broadinstitute.mpg.diabetes.knowledgebase.result.PropertyValue;
import org.broadinstitute.mpg.diabetes.knowledgebase.result.PropertyValueBean;
import org.broadinstitute.mpg.diabetes.knowledgebase.result.Variant;
import org.broadinstitute.mpg.diabetes.... | true |
b6a7b956ebd3cf81686a3ebfb693f5de6406d5ac | Java | Suliv4n/badasstank | /BadassTank/src/fr/sulivan/badasstank/util/Timer.java | UTF-8 | 689 | 2.828125 | 3 | [] | no_license | package fr.sulivan.badasstank.util;
public class Timer {
private Runnable onFinish;
private boolean start = false;
private int time = 0; //ms
private int current = time;
public Timer(int time){
this.time = time;
this.current = time;
}
public void update(int delta){
if(start){
current = Math.max(cur... | true |
c21b00cbb956f425fe61f6517e6b5729fb69143a | Java | Plain-Solutions/tt-core | /src/test/java/org/tt/core/sql/SQLMTestWrapper.java | UTF-8 | 2,405 | 1.859375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2014 Plain Solutions
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writin... | true |
26b4a7ac3a262a77b9f04b1982c9d34f6f7cc710 | Java | eusouajoana/TrivialPursuit-A-C-Edition | /whowanttobeacodecadet/src/org/academiadecodigo/variachis/fila2/whowanttobeacodecadet/trivialpursuit/grid/position/GridPosition.java | UTF-8 | 302 | 2.09375 | 2 | [] | no_license | package org.academiadecodigo.variachis.fila2.whowanttobeacodecadet.trivialpursuit.grid.position;
public interface GridPosition {
int getCol();
int getRow();
void setPos(int var1, int var2);
void show();
void hide();
boolean equals(GridPosition var1);
int getCellsize();
}
| true |
f20d49f4009474007ed35fd726b7b035bc370351 | Java | S180231891/java_data_structure_Test | /src/Delete_Tree_11.java | UTF-8 | 2,946 | 3.6875 | 4 | [] | no_license | public class Delete_Tree_11 {
public static void main(String[] args) {
BiyTree biyTree = new BiyTree();
Tree root = new Tree(1, "宋江");
Tree node2 = new Tree(2, "卢俊义");
Tree node3 = new Tree(3, "无用");
Tree node4 = new Tree(4, "林冲");
Tree node5 = new Tree(5, "关圣");
... | true |
55388fb1bc7cc7bc7aefd2de88b792c6d6fd78aa | Java | petersonbonib/ProjetoSW2 | /2018-06-25 FONTES e Manual Usuario/PetsFinder2.0/app/src/main/java/com/ps2/petsfinder/petsfinder/RegistroAnimalActivity.java | UTF-8 | 16,041 | 1.546875 | 2 | [] | no_license | package com.ps2.petsfinder.petsfinder;
import android.annotation.SuppressLint;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.net.Uri;
import android.provider.MediaSt... | true |
f403442ee1cbfc8c3e84d71bc4074fa85ae258d6 | Java | neoshell/TelegramMessageAnalysisBot | /telegram-message-analysis-bot/src/main/java/com/neoshell/telegram/messageanalysisbot/database/DatabaseInterface.java | UTF-8 | 6,030 | 2.90625 | 3 | [] | no_license | package com.neoshell.telegram.messageanalysisbot.database;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import com.neoshell.telegram.messageanalysisbot.Message;
import com.neoshell.telegram.messageanalysisbot.MessageType;
import com... | true |
c5f5cd249487a44961edb6abd07d4696748f7935 | Java | RuoyanMeng/Search-Engine | /as/ir/Searcher.java | UTF-8 | 13,044 | 2.296875 | 2 | [] | no_license | /*
* This file is part of the computer assignment for the
* Information Retrieval course at KTH.
*
* Johan Boye, 2017
*/
package ir;
//import com.sun.xml.internal.ws.api.streaming.XMLStreamReaderFactory.Default;
import java.util.*;
import java.util.Collections.*;
import java.io.*;
/**
* Searches an inde... | true |
8767c040b26ba6ed50a5cafea1caa41f93c329b5 | Java | aahmadai/vocbench | /vocbench-web/vocbench-web-main/src/main/java/org/fao/aoscs/client/module/statistic/widgetlib/UIStatsAgrovoc.java | UTF-8 | 4,791 | 2.109375 | 2 | [] | no_license | /**
*
*/
package org.fao.aoscs.client.module.statistic.widgetlib;
import java.util.HashMap;
import org.fao.aoscs.client.locale.LocaleConstants;
import org.fao.aoscs.domain.StatsAgrovoc;
import org.fao.aoscs.domain.TermSubVocabStat;
import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.... | true |
829da3ef80b75e5ab98b6a78ed9645c1c39e84a5 | Java | ShikhaSoni/Distributed-Sort-RaspberryPi | /ProgramFiles/src/CountSum.java | UTF-8 | 1,893 | 3.21875 | 3 | [] | no_license | import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.HashMap;
/**
*
* @author Ganesh
*
*/
public class CountSum {
static HashMap<Character, Integer> charCountMap = new HashMap<Character, Integer>();
static HashMap<Character, Lon... | true |
87515d6a8a68915dd2d170e7056e7bbad3881f54 | Java | jambulud/devonfw-testing | /example/src/test/java/com/capgemini/mrchecker/selenium/projectX/MainPageTest.java | UTF-8 | 615 | 1.570313 | 2 | [
"Apache-2.0"
] | permissive | package com.capgemini.mrchecker.selenium.projectX;
import com.capgemini.mrchecker.core.groupTestCases.testSuites.tags.TestsSelenium;
import com.capgemini.mrchecker.selenium.pages.projectX.MainPage;
import com.capgemini.mrchecker.test.core.BaseTest;
import org.junit.Test;
import org.junit.experimental.categories.Catego... | true |
62e660895cb56d23a47a4c93b4b40698ffe710c6 | Java | lorentmustafa/RegionalSnowForecast-MP | /app/src/main/java/com/fiek/regionalsnowforecast/ProfileFragment.java | UTF-8 | 9,637 | 1.609375 | 2 | [] | no_license | package com.fiek.regionalsnowforecast;
import android.app.Activity;
import android.content.ContentResolver;
import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.graphics.Bitmap;
import android.net.Uri;
import android.os.AsyncTask;
import android.o... | true |
356cc447b6268624ca2a6831423c7a8288e3cbe4 | Java | lchpersonal/techoa | /src/main/java/com/tech/oa/controller/login/LoginController.java | UTF-8 | 1,646 | 2.109375 | 2 | [] | no_license | package com.tech.oa.controller.login;
import com.baitian.fourb.common.result.Result;
import org.activiti.engine.IdentityService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.b... | true |
88b986a04daf8e8deabc94f9a0507202a2b4255d | Java | iamraafi/WEBAPDE_MP3 | /WEBAPDE_MP2/src/utility/LogInCheck.java | UTF-8 | 390 | 2.765625 | 3 | [] | no_license | package utility;
import java.util.ArrayList;
import models.Person;
public class LogInCheck {
public static Person LoggingIn(String username,String password){
ArrayList<Person> PList=CreatePersonList.AccessPersonList();
for(Person person:PList){
if((person.getPassword().equals(password))
&&(person.getUse... | true |
428d1cb35c519f237c380ceb4989a5d5c0f14d61 | Java | liu67224657/toolsplatform | /webapps/activity/src/com/enjoyf/activity/controller/base/ActivityConstants.java | UTF-8 | 279 | 1.632813 | 2 | [] | no_license | package com.enjoyf.activity.controller.base;
/**
* Created by zhimingli on 2016/8/24 0024.
* 定义一些通用的常量
*/
public class ActivityConstants {
/**
* 定义公共的redis或者memcache前缀
*/
public static String KEY_PREFIX = "_activity_";
}
| true |
2844e0dec2ddc1b3bb76ab5516b75d49b1d9ec82 | Java | TinySandies/BookStore | /src/com/tiny/service/ServiceFactory.java | UTF-8 | 520 | 1.890625 | 2 | [] | no_license | package com.tiny.service;
public class ServiceFactory {
public static ICategoryService getCategoryService() { return new CategoryServiceImpl(); }
public static IUserService getUserService() {
return new UserServiceImpl();
}
public static IProductService getProductService() { return new Produ... | true |
d839ad0cf8595e6d521ce756eeea4d1bdae1059b | Java | savesCZ/SimpleAuth | /src/main/java/cz/saves/AuthMeV2/JoinRegister.java | UTF-8 | 5,094 | 2.484375 | 2 | [] | no_license | package cz.saves.AuthMeV2;
import org.bukkit.plugin.java.*;
import java.io.File;
import java.io.IOException;
import java.util.*;
import org.bukkit.entity.*;
import org.bukkit.potion.*;
import org.bukkit.event.*;
import org.bukkit.event.player.*;
import org.bukkit.command.*;
import org.bukkit.configuration.file.YamlCo... | true |
e4c2aeec78aad8af74252b3914ea9cbbc3011fae | Java | steven-maasch/BHTPUB | /ESA/org.dieschnittstelle.jee.esa.shared.entities.erp/src/org/dieschnittstelle/jee/esa/erp/entities/StockItem.java | UTF-8 | 3,604 | 2.09375 | 2 | [] | no_license | package org.dieschnittstelle.jee.esa.erp.entities;
import java.io.Serializable;
import javax.persistence.Access;
import javax.persistence.AccessType;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.ManyToOne... | true |
ba785e608c804879e6da75fb131ffe676bd0f21c | Java | Shomira/poo2020 | /poo2020/src/polimorfismo_Figura/Cuadrado2.java | UTF-8 | 483 | 2.78125 | 3 | [] | no_license | package polimorfismo_Figura;
public class Cuadrado2 extends Figura2 {
private double ladoCuad;
/**
* Metodo p[ara establecer el vALOR DE LA CVARIABLE LADO CUADRADO
* @param ladoCuad
*/
public void setLadoCuad(double ladoCuad) {
this.ladoCuad = ladoCuad;
}
/**
* Metod... | true |
ac824f0108057e9e980506cebc89edae4d039b99 | Java | gaohanghang/technology | /src/慕课网/装饰者模式/Sugar.java | UTF-8 | 378 | 3.140625 | 3 | [] | no_license | package 慕课网.装饰者模式;
/**
* @Description
* @Author Gao Hang Hang
* @Date 2020-07-12 19:53
**/
public class Sugar extends Decorator{
public Sugar(Drink drink) {
super(drink);
}
@Override
public double money() {
return super.money() + 2.1;
}
@Override
public String desc() ... | true |
9e5c341816772bd1c3666d78812eabf5b3db9895 | Java | coolczatka/student-id-scanner | /app/src/main/java/com/example/ntp_projekt/StudentDetailsActivity.java | UTF-8 | 1,988 | 2.328125 | 2 | [] | no_license | package com.example.ntp_projekt;
import android.database.Cursor;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.RecyclerView;
import android.widget.TextView;
import java.util.ArrayList;
public class StudentDetailsActivity extends BaseActivity {
ArrayLi... | true |
6122e6241ae3081297c339f9320c4e4d1a95620a | Java | progdev8201/self-serve-api | /src/main/java/com/model/dto/requests/MakeOrderRequestDTO.java | UTF-8 | 1,991 | 2.109375 | 2 | [] | no_license | package com.model.dto.requests;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import com.model.dto.BillDTO;
import com.model.dto.ProductDTO;
import com.model.entity.Bill;
import java.util.Map;... | true |
098a642b380f20acb0eac5da7eab21d163ae648c | Java | 7sco/Buzzfeed-Android-App | /app/src/main/java/com/example/franciscoandrade/buzzfeedquiz/Question2.java | UTF-8 | 526 | 2.484375 | 2 | [] | no_license | package com.example.franciscoandrade.buzzfeedquiz;
import java.util.ArrayList;
import java.util.HashMap;
/**
* Created by franciscoandrade on 11/17/17.
*/
public class Question2 {
String question;
HashMap<String, Integer > list;
public Question2(String question, HashMap<String, Integer> list) {
... | true |
db71e0e35e4f990a886a0e98e2dd9e66906be35c | Java | kishoretechnet/JavaPrograms | /collegeprgs/src/collegeprgs/temp.java | UTF-8 | 233 | 2.59375 | 3 | [] | no_license | package collegeprgs;
public class temp {
public static void main(String[] args) {
double fah=98.4;
double celcius=(5*(fah-32.0)/9.0);
System.out.println("fahrenheit:"+fah);
System.out.println("celcius:"+celcius);
}
}
| true |
d1602f5765db7f859671d2d11b237c5129b2c293 | Java | moutainhigh/txRepository | /mlcx-fs-core/src/main/java/cn/com/shopec/core/car/service/CarOnlineCountService.java | UTF-8 | 531 | 2.03125 | 2 | [] | no_license | package cn.com.shopec.core.car.service;
import java.util.Map;
import cn.com.shopec.core.car.model.CarOnlineCount;
import cn.com.shopec.core.common.BaseService;
/**
* 车辆上下线统计 服务接口类
*/
public interface CarOnlineCountService extends BaseService {
/**
* 添加车辆上下线统计
*
* @param carOnlineCount
*/
public void ... | true |
ca05a4abeeb054a1c0e8eb7b24dcd06ad7dcdc79 | Java | zhizhiping123/dangdang | /src/entity/DDBookCriteria.java | UTF-8 | 26,417 | 2.265625 | 2 | [] | no_license | package entity;
import java.util.ArrayList;
import java.util.List;
public class DDBookCriteria {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public DDBookCriteria() {
oredCriteria = new ArrayList<Criteria>();
}
... | true |
a1cc1b983f8745b2cd625c6a01b0e16a0f0f0260 | Java | NicolaGilberti/BigData | /src/main/java/it/unitn/spark/project/custom_classes/StoreForward.java | UTF-8 | 273 | 2.3125 | 2 | [] | no_license | package it.unitn.spark.project.custom_classes;
public enum StoreForward {
STORE_FORWARD("Y"), NOT_STORE_FORWARD("N");
private String status;
StoreForward(String b) {
this.status = b;
}
public String getStatus() {
return this.status;
}
}
| true |
34d50ca7753ab618b37a9e0ba8655131e91e6f5d | Java | ayshik-halder/archives-java | /Overriding/MethodOverriding1.java | UTF-8 | 768 | 4.1875 | 4 | [] | no_license |
class point2D {
int x;
int y;
point2D(int x, int y) {
this.x = x;
this.y = y;
}
void display() {
System.out.println("x = " + x + " || y = " + y);
}
}
class point3D extends point2D {
int z;
point3D(int z) {
this.z = z;
}
void display() {
... | true |
e74c603bd626bb1d95a870c4a02a96a2967ead14 | Java | fengjiny/demo | /src/main/java/language/s.java | UTF-8 | 230 | 2 | 2 | [] | no_license | package language;
import java.util.HashSet;
import java.util.Set;
public class s {
private static void test(){
Set<Integer> set = new HashSet<>();
set.add(1);
set.add(2);
set.add(3);
}
}
| true |
7c138089446596bb7f90a1f82ca8d8680afd8a89 | Java | diazclaudia/LambdaCourse | /src/section5/exerciseStream1/StreamTest.java | UTF-8 | 841 | 4.0625 | 4 | [] | no_license | package section5.exerciseStream1;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Stream;
public class StreamTest {
public static void main(String[] args) {
List<Integer> numbers = Arrays.asList(1,2,3,4,5);
Stream<Integer> numStream = numbers.stream();
int sum = numStream.filter... | true |
17e4039ee6b01369538b87a830257a6eaccadb93 | Java | TraningCenter2018-2019/V_V_Denisov_second_task | /src/test/java/testmodel/OneFieldObject.java | UTF-8 | 1,011 | 2.828125 | 3 | [
"MIT"
] | permissive | package testmodel;
public class OneFieldObject {
private String stringField;
public OneFieldObject() {
}
public OneFieldObject(String stringField) {
this.stringField = stringField;
}
public String getStringField() {
return stringField;
}
public void setStringField(St... | true |
dba81f7eaa840ef92e43526d30f12312e028418b | Java | Ethan0pia/Side-Projects | /Runescape Bots- Java/SpiritualMages/root/leaves/WalkMob.java | UTF-8 | 1,205 | 2.484375 | 2 | [] | no_license | package com.ethan0pia.bots.SpiritualMages.root.leaves;
import com.ethan0pia.bots.SpiritualMages.OpiaSpiritualMages;
import com.runemate.game.api.hybrid.Environment;
import com.runemate.game.api.hybrid.local.hud.interfaces.Bank;
import com.runemate.game.api.hybrid.location.Area;
import com.runemate.game.api.hybrid.loca... | true |
a55c166e4e2f2356471081a6e8ffc1e09483c962 | Java | Denistr/ConsoleCalculator | /src/ru/ncedu/istratenko/CC/ConfigurationSign.java | UTF-8 | 1,381 | 3.125 | 3 | [] | no_license | package ru.ncedu.istratenko.CC;
import java.io.*;
import java.util.*;
/**
* Created by denis on 12.10.15.
*/
/**
* Responsible for obtaining the path to a class that is responsible
* for processing introduced arifmiticheskoy operations / functions
* @author Denis Istratenko
*/
public class ConfigurationSign {... | true |
4b082b71baee5a9596bfce7a28c11b4356296678 | Java | O-Abdelaaziz/stockmanagementsystem | /backend/stockmanagementsystemserver/src/main/java/com/stockmanagementsystem/server/controllers/api/FournisseurApi.java | UTF-8 | 2,608 | 2.296875 | 2 | [] | no_license | package com.stockmanagementsystem.server.controllers.api;
import com.stockmanagementsystem.server.dto.FournisseurDto;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import org.springframework.http.Med... | true |
ccb95d097c04521574080dd6ac98f3f7d2a35a2e | Java | codebbgr/cbbini4j | /src/main/java/gr/cobebb/cbbini4j/OptionMap.java | UTF-8 | 1,423 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2013-2020
* codebb.gr
*/
/**
* Changelog ========= 04/04/2020 (gmoralis) - Let OptionMap.as accept ClassLoader as the second
* argument (jetbrains patch) 03/04/2020 (gmoralis) - Initial commit from ini4j project
*/
package gr.cobebb.cbbini4j;
public interface OptionMap extends MultiMap<String, Str... | true |
5523ab1df71cfd837be2eae9378dca2cfc57a1b2 | Java | Rohit-1609/Core_Java | /Section3/src/com/fileHandling11/TestCar.java | UTF-8 | 1,045 | 3.171875 | 3 | [
"MIT"
] | permissive | package com.fileHandling11;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
public class TestCar
{
public static void main(String[] args) throws Exception
{
Car c1=new Car("Benz",560000);
System.out.println("c1 :"+c1);
System.... | true |
fc6ae27acd85abb63072c7d02a099ad6e4c82e8b | Java | bl4ckcode/SCES | /app/src/main/java/com/bl4ckcode/sces/models/impl/EcommerceposFactoryImpl.java | UTF-8 | 3,960 | 2 | 2 | [] | no_license | package com.bl4ckcode.sces.models.impl;
import com.bl4ckcode.sces.models.Categoria;
import com.bl4ckcode.sces.models.Cliente;
import com.bl4ckcode.sces.models.EcommerceposFactory;
import com.bl4ckcode.sces.models.EcommerceposPackage;
import com.bl4ckcode.sces.models.ItensPedido;
import com.bl4ckcode.sces.models.Pedido... | true |
d003df35d812e6ef194e1469c76fd2a966be8863 | Java | aitorlomu/Moviles | /com.ies.BDCoches/src/com/example/com/ies/bdcoches/GestorBD.java | UTF-8 | 1,200 | 2.15625 | 2 | [] | no_license | package com.example.com.ies.bdcoches;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteOpenHelper;
public class GestorBD extends SQLiteOpenHelper {
public GestorBD(Context context, String ... | true |
a6e785556c5c7b10d005e1a9a5984b14cd2ba3d9 | Java | syed2nashar/completeproject | /src/main/java/com/springhibangular/dao/BookDAO.java | UTF-8 | 315 | 2.171875 | 2 | [] | no_license | package com.springhibangular.dao;
import java.util.List;
import com.springhibangular.model.Book;
public interface BookDAO {
// save
long save(Book book);
// get single
Book get(long id);
// get all
List<Book> list();
//update
void update(long id, Book book);
// delete
void delete(long id);
}
| true |
ab93258a80f7a41d3812417ea8527eb7758b572e | Java | divyank00/Evento | /frontend/app/src/main/java/com/example/collegeproject/MainActivity.java | UTF-8 | 3,078 | 1.984375 | 2 | [] | no_license | package com.example.collegeproject;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Toast;
import androidx.appcompat.app.AppCompatActivity;
import androidx.lifecycle.Observer;
import androidx.lifecycle.ViewModelProvider;
import com.example.collegeproject.auth.AuthActivity;
import com.e... | true |
ca5a292f334d7b3ffc0e0fd82f1af5ae07f4c257 | Java | Caaarlowsz/plugins-internet | /_KitPvP e HG/PvP Kombo/src/me/rafael/vinagre/KomboPvP/Listeners/Players.java | WINDOWS-1252 | 30,475 | 1.882813 | 2 | [] | no_license | package me.rafael.vinagre.KomboPvP.Listeners;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.Sound;
import org.bukkit.World;
import org.bukkit.block.Block;
import org.bukkit.entity.Item;
import org.bukkit.entity.Player;
import org.bukkit.entity.Player.Spigot;
import... | true |
e810473627d97e821b86ec2e7d20d0d5d5aa0257 | Java | davidguo1996/Leetcode-Contest | /Weekly Contest 199/1528 Shuffle String.java | UTF-8 | 988 | 3.78125 | 4 | [] | no_license | /**
Given a string s and an integer array indices of the same length.
The string s will be shuffled such that the character at the ith position moves to indices[i] in the shuffled string.
Return the shuffled string.
Example 1:
Input: s = "codeleet", indices = [4,5,6,7,0,2,1,3]
Output: "leetcode"
Explanation: As... | true |
147ed3d33063fe226a1db4225edcab381087b87d | Java | thanuja22/BasicJavaPrograms | /src/com/jda/ObjectOrientedPrograms/Transaction.java | UTF-8 | 1,353 | 2.9375 | 3 | [] | no_license | package com.jda.ObjectOrientedPrograms;
public class Transaction {
private String name;
private String stockname;
private int amount;
private int stock;
private String timeStamp;
public Transaction(String name, String stockname, int amount, int stock, String timeStamp){
// this.mobileno = mobileno;
this.name ... | true |
c6e683f5406cd61caaa08e910df9956a10b5d57c | Java | mukulmh/javafxprojects | /IdeaProjects/Fitness Tracker/src/main/java/bd/edu/seu/Fitness.java | UTF-8 | 854 | 2.859375 | 3 | [] | no_license | package bd.edu.seu;
import java.time.LocalDate;
public class Fitness {
private double weight;
private int sysBp;
private int diaBp;
private LocalDate date;
public Fitness(LocalDate date, double weight, int sysBp, int diaBp) {
this.weight = weight;
this.sysBp = sysBp;
this.... | true |
ba2f0260a088c07e47967bed83ad0644d4a4a315 | Java | ExcellentDoctor/ExcellentDoctor | /consumer/src/main/java/com/tpkd/consumer/controller/DoctorController.java | UTF-8 | 1,443 | 2 | 2 | [] | no_license | package com.tpkd.consumer.controller;
import com.tpkd.common.dto.Dto;
import com.tpkd.common.vo.doctor.DoctorSelectVo;
import com.tpkd.consumer.services.DoctorService;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web... | true |
d369c052c0c2bb4df0910c564efc25b545d5aa5b | Java | Buggy77/fibeso | /src/main/java/com/fibeso/captacion/pfuneraria/dto/VariablesDto.java | UTF-8 | 202 | 1.601563 | 2 | [] | no_license | package com.fibeso.captacion.pfuneraria.dto;
import lombok.Data;
@Data
public class VariablesDto {
private String servicio;
private String paquete;
public VariablesDto() {
}
}
| true |
bfd54ba43f4193ed9e93b05e6e81cdccb4cf28bf | Java | ashwin74/ARFurnitureApp | /app/src/main/java/com/example/ashwin/arshop/Notification.java | UTF-8 | 1,798 | 2.015625 | 2 | [] | no_license | package com.example.ashwin.arshop;
import android.content.Intent;
import android.content.SharedPreferences;
import android.preference.PreferenceManager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;
... | true |
2cca5645839097d4e035acec333338b231746b6c | Java | xxxxxxxxxxj/pet_android_3.4.0 | /app/src/main/java/com/haotang/pet/adapter/MemberLevelDesAdapter.java | UTF-8 | 1,950 | 2.359375 | 2 | [] | no_license | package com.haotang.pet.adapter;
import java.util.List;
import android.app.Activity;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.haotang.pet.R;
import com.haotang.pet.entity.MemberLevelDes;
import com.haotang.pet.util.Utils;
import com.haotang.pet.view.CommonAd... | true |
e8ba7ae7fb4d9e8179f7223b26f556ab44be7814 | Java | teiphu/leetcode | /src/main/java/com/teiphu/DiagonalSum.java | UTF-8 | 338 | 3.203125 | 3 | [] | no_license | package com.teiphu;
/**
* 5491. 矩阵对角线元素的和
*/
public class DiagonalSum {
public int diagonalSum(int[][] mat) {
int sum = 0;
for (int i = 0; i < mat.length; i++) {
if (i == (mat.length - 1 - i)) {
sum += mat[i][i];
} else {
sum += mat[i][i] + mat[i][mat.length - 1 - i];
}
}
return sum;
}
}
| true |
ed045e09ee31e6f565d33e0437c4602c44c9426a | Java | ayushvpaliwal/dbms-project-coaching | /src/main/java/com/dbms/coaching/dao/rowmappers/CourseSubjectRowMapper.java | UTF-8 | 785 | 2.5625 | 3 | [] | no_license | package com.dbms.coaching.dao.rowmappers;
import java.sql.ResultSet;
import java.sql.SQLException;
import com.dbms.coaching.models.CourseSubjectDetails;
import com.dbms.coaching.models.Subject;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.jdbc.core.RowMapper;
public class C... | true |
1828e910b2281b417a68529b9b7c43e2f691eb25 | Java | ailot/mystyle | /designPattern/src/main/java/com/ailot/design/factory/JavaVideo.java | UTF-8 | 328 | 2.203125 | 2 | [] | no_license | /*
* LY.com Inc.
* Copyright (c) 2004-2019 All Rights Reserved.
*/
package com.ailot.design.factory;
/**
* @author ailot
* @version JavaVideo.java, 2019年03月18日 下午11:15
*/
public class JavaVideo implements IVideo{
@Override
public void record() {
System.out.println("录制java视频");
}
}
| true |
02d0476f4cfd032920934536429ddc1778b46441 | Java | sunilbluss/Tutorialpointsmodelservices | /src/main/java/org/bluss/tutorials/tutorialspoint/modelservices/TutDetailModelService.java | UTF-8 | 937 | 2.390625 | 2 | [] | no_license | package org.bluss.tutorials.tutorialspoint.modelservices;
import java.io.IOException;
import org.bluss.tutorials.tutorialspoint.model.HomeModel;
import org.bluss.tutorials.tutorialspoint.model.TutDetailModel;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import com.bluss.tutorials.tutorialspoint.utilitymo... | true |
a8df75e30267f49c0aed238e45e48c8c9f0393d9 | Java | ApollonBar/BucketChat | /app/src/main/java/us/xingkong/bucketchat/app/network/Network.java | UTF-8 | 9,736 | 2.328125 | 2 | [] | no_license | package us.xingkong.bucketchat.app.network;
import java.io.IOException;
import java.util.ArrayList;
import network.TestClient;
import network.bucketobject.Message;
import network.bucketobject.Query;
import network.bucketobject.USER;
import network.connection.Connection;
import network.listener.BucketListener;
import ... | true |
3c2d2872b44422cc1ba12ad79c4683ed8232ce4e | Java | sodonnel/hdfs-zip-reader | /src/main/java/com/sodonnel/hadoop/zip/ZipExtractor.java | UTF-8 | 3,130 | 2.96875 | 3 | [] | no_license | package com.sodonnel.hadoop.zip;
import java.io.IOException;
import java.util.concurrent.CompletionService;
import java.util.concurrent.ExecutorCompletionService;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.regex.Pattern;
public class ZipExtractor {
priva... | true |
93ca0714825303b1df81d636f68252df947a4dac | Java | cmFodWx5YWRhdjEyMTA5/smell-and-machine-learning | /ast_results/mjdenham_and-bible/app/src/main/java/net/bible/android/view/activity/readingplan/actionbar/ReadingPlanDictionaryActionBarButton.java | UTF-8 | 725 | 1.757813 | 2 | [] | no_license | // isComment
package net.bible.android.view.activity.readingplan.actionbar;
import net.bible.android.control.ApplicationScope;
import net.bible.android.control.page.window.ActiveWindowPageManagerProvider;
import org.crosswire.jsword.book.Book;
import javax.inject.Inject;
/**
* isComment
*/
@ApplicationScope
public ... | true |
a51e48aa8f44f73aeeb912953054f273b152dde6 | Java | RyanTech/meetup-server | /meetup-server-client/src/main/java/com/galaxy/meetup/server/client/domain/request/EditActivityRequest.java | UTF-8 | 3,178 | 1.664063 | 2 | [] | no_license | /**
* galaxy inc.
* meetup client for android
*/
package com.galaxy.meetup.server.client.domain.request;
import java.util.List;
import com.galaxy.meetup.server.client.domain.ApiaryFields;
import com.galaxy.meetup.server.client.domain.EditSegments;
import com.galaxy.meetup.server.client.v2.request.Request... | true |
3311aed3312d8581c493e24b7ffc7dd62b20f49c | Java | lazyZy/signBai | /volunteer/src/main/java/com/zcz/www/entity/TeamExample.java | UTF-8 | 25,168 | 2.109375 | 2 | [] | no_license | package com.zcz.www.entity;
import org.springframework.stereotype.Component;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
@Component
public class TeamExample {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table team
*
... | true |
1a526af8276bca26764cf932ef2d05440c334761 | Java | alexchagan/Polynomial-Calculator | /projekti/src/gui/GraphGUI.java | UTF-8 | 1,940 | 2.78125 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package gui;
import java.awt.Color;
import java.awt.Component;
import java.awt.Container;
import java.awt.Cursor;
import java.awt.Dimension;
import java.awt.Graphics;
import java.util.ArrayList;
import java.util.List;
i... | true |
f1a2adbecc74311e8ec2cfd43168d6766b0da093 | Java | P79N6A/icse_20_user_study | /methods/Method_43193.java | UTF-8 | 210 | 1.53125 | 2 | [] | no_license | @Override public String toString(){
return "BithumbBalance{" + "totalKrw=" + totalKrw + ", inUseKrw=" + inUseKrw + ", availableKrw=" + availableKrw + ", additionalProperties=" + additionalProperties + '}';
}
| true |