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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
f5ead3ea7ff932e769e69d5d87ae6b2ac4e431ef | Java | Rizieq/Barangku | /createBarang/CreateActivity.java | UTF-8 | 3,476 | 1.929688 | 2 | [] | no_license | package com.rizieq.barangku.createBarang;
import android.app.ProgressDialog;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.T... | true |
870fa05b9fad2ec347b365ee9a5743f25e160d02 | Java | rohitggarg/PairToPeer | /PtPMobile/src/com/ptp/androidui/enums/Method.java | UTF-8 | 81 | 1.921875 | 2 | [] | no_license | package com.ptp.androidui.enums;
public enum Method {
POST,DELETE, PUT;
}
| true |
f3f6de45f0ee5227cd8d66b36f5af7ad4869fd8f | Java | DogfishDiscgolf/Green-Knights-Casino | /src/main/java/jackson/rick/cards/french/suit/Club.java | UTF-8 | 2,243 | 3.171875 | 3 | [] | no_license | package jackson.rick.cards.french.suit;
/**
* Created by rickjackson on 2/4/17.
*/
class Club implements Suit {
private String suit;
private String symbol;
private String color;
private String blackSymbol;
private String whiteSymbol;
private int highValue;
private int lowValue;
C... | true |
3d0c146a2a670f63011e88a0c0855b0b26d656f5 | Java | ChristopherJHart/SLEUTHhound | /Main.java | UTF-8 | 10,104 | 2.328125 | 2 | [] | no_license | import java.io.IOException;
import java.io.PrintStream;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import javax.imageio.ImageIO;
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.Fil... | true |
319c4af719bf8be4fd9a2207cb9dea4588642c69 | Java | mganandraj/HubAppHost | /packages/mobile/android/hubapphost/src/main/java/com/microsoft/hubapphost/modules/PlatformAppManagerModule.java | UTF-8 | 954 | 1.804688 | 2 | [] | no_license | package com.microsoft.hubapphost.modules;
import com.microsoft.hubapphost.impls.TeamsSdkSimPlatformAppFactory;
import com.microsoft.teams.mobilemodules.IPlatformAppManager;
import com.microsoft.teams.mobilemodules.PlatformAppManager;
import com.microsoft.teams.sdk.ISdkRunnerAppManager;
import com.microsoft.teams.stora... | true |
01110963f54ec3fda98c3de01f5ff63231a62eac | Java | zhaiyjgithub/Mall | /src/main/java/com/westriver/service/Impl/IProductServiceImpl.java | UTF-8 | 6,713 | 2.421875 | 2 | [] | no_license | package com.westriver.service.Impl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.google.common.collect.Lists;
import com.westriver.common.ServerResponse;
import com.westriver.dao.CategoryMapper;
import com.westriver.dao.ProductMapper;
import com.westriver.pojo.Category;
im... | true |
bac995bf4847f7f2f3783b9411566387133fa19c | Java | akimmig/gazetteer | /src/main/java/org/dainst/gazetteer/controller/RecordGroupController.java | UTF-8 | 3,161 | 2.078125 | 2 | [] | no_license | package org.dainst.gazetteer.controller;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.dainst.gazetteer.dao.PlaceRepository;
import org.dainst.gazetteer.dao.RecordGroupRepository;
import org.dainst.gazetteer.dao.UserRepository;
import ... | true |
e758ec5491b8d6dacb9cc5b4dbd530e01e4bf5d4 | Java | Sh-Holmes0/OOP | /Shape Painter/src/mCircle/MCircle.java | UTF-8 | 3,055 | 2.9375 | 3 | [] | no_license | package mCircle;
import java.util.List;
import codes.IShape;
import codes.MEllipse;
import codes.Point;
import codes.UndoRedo;
import javafx.event.EventHandler;
import javafx.scene.control.Button;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.Pane;
import javafx.scene.paint.Paint;
import javafx.sce... | true |
f596ebf2ea8dbc8ef88195f5e47f088fe34b7c0b | Java | octupuschan/dangam_chat | /src/main/java/com/dangam/namu/core/config/TenantIdSetInterceptor.java | UTF-8 | 1,075 | 1.953125 | 2 | [] | no_license | package com.dangam.namu.core.config;
import java.util.logging.Logger;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;
import com.dangam.na... | true |
8174e5683b9b30cf749d671d6ce66aee8ba7cec2 | Java | michaelzherdev/money-transfer | /src/main/java/com/mzherdev/accounts/exception/BadRequestAppException.java | UTF-8 | 272 | 1.976563 | 2 | [] | no_license | package com.mzherdev.accounts.exception;
import io.micronaut.http.HttpStatus;
public class BadRequestAppException extends AccountAppException {
public BadRequestAppException(String message) {
super(message);
status = HttpStatus.BAD_REQUEST;
}
}
| true |
80a626d7f2016a2e7235ebb36e1ff7bf0ca2d4d3 | Java | lvvi/geotoolkit | /modules/referencing/geotk-referencing/src/test/java/org/geotoolkit/referencing/factory/ReferencingFactoryContainerTest.java | UTF-8 | 6,463 | 1.898438 | 2 | [] | no_license | /*
* Geotoolkit.org - An Open Source Java GIS Toolkit
* http://www.geotoolkit.org
*
* (C) 2010-2012, Open Source Geospatial Foundation (OSGeo)
* (C) 2010-2012, Geomatys
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Publi... | true |
a7b898e1efca1201024c250bcfe34bd905b6f915 | Java | Md-Imtiaz-Hossain/todo-list | /src/main/java/com/imtiaz/controller/TodoItemController.java | UTF-8 | 2,439 | 2.265625 | 2 | [] | no_license | package com.imtiaz.controller;
import com.imtiaz.model.TodoData;
import com.imtiaz.model.TodoItem;
import com.imtiaz.service.TodoItemService;
import com.imtiaz.util.AttributeNames;
import com.imtiaz.util.Mappings;
import com.imtiaz.util.ViewNames;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.fact... | true |
8a60db8fb968b4b14460c2733f3e76d1dd3455f8 | Java | JonkeyGuan/disaster-simulator | /src/test/java/com/redhat/cajun/navy/datagenerate/GenerateFullNamesTest.java | UTF-8 | 1,002 | 2.53125 | 3 | [] | no_license | package com.redhat.cajun.navy.datagenerate;
import static org.hamcrest.CoreMatchers.anyOf;
import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.hamcrest.MatcherAssert.assertThat;
import java.io.File;
import org.junit.Test;
public class Gener... | true |
9211054d8336823d0387c76dea6a9605bc6293d2 | Java | mekanism/Mekanism | /src/main/java/mekanism/common/tile/prefab/TileEntityElectricMachine.java | UTF-8 | 7,283 | 1.796875 | 2 | [
"MIT"
] | permissive | package mekanism.common.tile.prefab;
import java.util.List;
import mekanism.api.IContentsListener;
import mekanism.api.math.FloatingLong;
import mekanism.api.providers.IBlockProvider;
import mekanism.api.recipes.ItemStackToItemStackRecipe;
import mekanism.api.recipes.cache.CachedRecipe;
import mekanism.api.recipes.cac... | true |
a8e9f8d39a19de65d538e33c6fa0c7e31b8755fe | Java | taushanski/misc | /Transmogrifier_JavaNIO/src/server/SingleThreadedSelectorNonBlockingServer.java | UTF-8 | 1,812 | 2.890625 | 3 | [] | no_license | package server;
import handlers.ReadHandler;
import handlers.WriteHandler;
import handlers.AcceptHandler;
import handlers.Handler;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.ByteBuffer;
import java.nio.channels.SelectionKey;
import java.nio.channels.Selector;
import java.nio.channe... | true |
fb7214aac05c6bdb50f9a53dd7b3d7d369fe18ff | Java | ebramohamed/hotel-reservation-system | /src/java/Models/Hotel.java | UTF-8 | 4,230 | 2.46875 | 2 | [] | no_license | package Models;
public class Hotel
{
private int id;
private int userId;
private String name;
private String description;
private String phoneNumber;
private String imagePath;
private double rates;
private int numberOfRates;
private int stars;
private String addre... | true |
e9f74a56ed643dc66eb193b6ed6f6787793a6c15 | Java | toliask/testg | /core/src/main/java/com/dd/core/MovableEntity.java | UTF-8 | 1,469 | 2.546875 | 3 | [] | no_license | package com.dd.core;
import playn.core.Image;
public class MovableEntity {
private float x, y, vx, vy, px, py;
private Image img;
private String desc;
public MovableEntity() {
x = 0;
y = 0;
vx = 0;
vy = 0;
img = null;
desc = "no desc";
}
public MovableEntity(int x, int y, Image... | true |
3abe5bb19b13f4f6955f7366e9ef5b82de66baf2 | Java | guyoungnam/Study_JAVA | /04Day/src/ArrayTest7.java | UTF-8 | 267 | 2.453125 | 2 | [] | no_license | import java.util.Arrays;
// 컴파일: javac ArrayTest7.java
// 실행 : java ArrayTest7 문자열 문자열 .....
public class ArrayTest7 {
public static void main(String [] args) {
for (String s : args) {
System.out.println(s);
}
}
}
| true |
82f166cab172995ebe09dd2231e295d64e832b8e | Java | JiaDale/Tools | /src/main/java/com/jdy/design/strategy/Pay.java | UTF-8 | 81 | 2.09375 | 2 | [] | no_license | package com.jdy.design.strategy;
public interface Pay {
String getType();
}
| true |
c37191d41241f2fcac4e9708dd1310c64ec45a2a | Java | wsxhxtc/wxlb | /app/src/main/java/com/project/jsproject/persistence/LocalActionPlanDataSource.java | UTF-8 | 2,295 | 2.15625 | 2 | [] | no_license | package com.project.jsproject.persistence;
import com.project.jsproject.ActionPlanDataSource;
import com.project.jsproject.dao.ActionPlanDao;
import com.project.jsproject.dao.ExerciseRecordDao;
import com.project.jsproject.dao.PlanTaskDao;
import com.project.jsproject.entity.ActionPlan;
import com.project.jsproject.en... | true |
e824311d2b3bc064d48136bbef738126a33bb066 | Java | kingFeng666/DataStructs666 | /src/面试题/Test1.java | UTF-8 | 900 | 3.25 | 3 | [] | no_license | package 面试题;
/**
* @ClassName: Test1
* @Description:
* @Author: 李峰
* @Date: 2020 年 11月 29 19:18
* @Version 1.0
*/
import java.util.Scanner;
public class Test1 {
public static boolean judge(int number){
int count = 0;
for (int i = 2; i <number ; i++) {
if(number%i ==... | true |
afa74184d4f57363ac8199a5f77c5501f85f6be3 | Java | jpcuve/clsb | /src/main/java/legacyb3/core/UMBalance.java | UTF-8 | 1,565 | 2.5625 | 3 | [] | no_license | package legacyb3.core;
public class UMBalance extends ClsObject {
private UMPositionWithSM umPos;
private SM sm;
private UM um;
private BalanceType bt;
private Currency ccy;
private double amount;
// constructors
public UMBalance(UMPositionWithSM umPos, SM sm, UM um,BalanceType bt, Currency c, double am){
... | true |
17d6c5159510a5e2ad4c5f909c4aa16d956485ea | Java | jr538900/Misc | /Assignment 1_Peters_jpeters/Robot.java | WINDOWS-1252 | 7,829 | 3.953125 | 4 | [] | no_license | /*CSCI 1101 Assignment 1 Robot.java
This program creates a robot object, with attributes name, x and y position, direction and points collected.
<Jeremy Peters> <B00707976> <Feb 6, 2017> */
public class Robot
{
//Attributes
private String name; //Stores the name of the robot
private int x; ... | true |
7702a3ff75e8e5110650e66f4c294a9ccb16a2e6 | Java | esdrasjnr/knot-setup-android | /app/src/main/java/br/org/cesar/knot_setup_app/KnotSetupApplication.java | UTF-8 | 1,120 | 2.53125 | 3 | [] | no_license | package br.org.cesar.knot_setup_app;
import android.app.Application;
import br.org.cesar.knot_setup_app.model.BluetoothDevice;
import br.org.cesar.knot_setup_app.wrapper.BluetoothWrapper;
import br.org.cesar.knot_setup_app.wrapper.NetworkWrapper;
// This class is used for sharing bluetooth between activities
public ... | true |
a9edd68a7ae3aeb1eb2360fc58995a1084f95774 | Java | rmanyam/test-repo | /src/main/java/com/newsuk/model/web/WebPageFactory.java | UTF-8 | 569 | 2.359375 | 2 | [] | no_license | package com.newsuk.model.web;
import com.newsuk.model.web.exceptions.PageOperationException;
import org.openqa.selenium.WebDriver;
/**
* Created by ranjithmanyam on 10/09/2014.
*/
public class WebPageFactory {
public static HTMLPage resolvePage(WebDriver driver){
return resolvePage(driver.getCurrentUrl... | true |
4b7e1ca1873551b403442aad4f14ec66c400ffcb | Java | NetanelShimoni/SportUp2020 | /app/src/main/java/com/example/sportup/Dialog_messgae.java | UTF-8 | 1,424 | 2.359375 | 2 | [] | no_license | package com.example.sportup;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.ap... | true |
cb27db72a3d74e9c35a474e1c46e413968dff3ba | Java | uofscgaopeng/community-detection | /GraphRunner.java | UTF-8 | 883 | 2.75 | 3 | [] | no_license | package mygraph;
public class GraphRunner {
public static void main(String[] args) {
// TODO Auto-generated method stub
MyGraph graph = new MyGraph();
MyGraphLoader loader = new MyGraphLoader();
loader.loadGraph(graph, "data/football.txt");
//loader.loadGraph(graph, "data/... | true |
54f3000ac167f6348fa2018c93187a97f4fea0ab | Java | aparna1542/Object-Oriented-Programming | /OOAD/src/cci/arrays/strings/ArrayDuplicate.java | UTF-8 | 736 | 3.984375 | 4 | [] | no_license | /**
*
*/
package cci.arrays.strings;
import java.util.HashSet;
/**
* @author Aparna Ganesh
* Leetcode problems
* Program to check if a given array contains duplicate or not
*/
public class ArrayDuplicate {
public static boolean checkDuplicate(int[] arr) {
//check if arr is null
if(arr.len... | true |
8c4e9ae30bd33a6d910c2f7585b8c43f99b600b6 | Java | RedElect/ses-server | /ses-app/ses-mobile-rps/src/main/java/com/redescooter/ses/mobile/rps/dao/inwhorder/InWhousePartsBMapper.java | UTF-8 | 1,826 | 1.953125 | 2 | [
"MIT"
] | permissive | package com.redescooter.ses.mobile.rps.dao.inwhorder;
import com.redescooter.ses.mobile.rps.dm.OpeInWhousePartsB;
import com.redescooter.ses.mobile.rps.vo.inwhorder.InWhOrderProductDTO;
import com.redescooter.ses.mobile.rps.vo.inwhorder.InWhOrderProductDetailDTO;
import org.apache.ibatis.annotations.Param;
import jav... | true |
b2072ef4054d59dad3fc3552fa3676e757f3506f | Java | jayramrout/Batch30 | /RmiServer/src/test/java/jrout/batch30/rmiserver/impl/EmployeeImplTest.java | UTF-8 | 519 | 2.171875 | 2 | [] | no_license | package jrout.batch30.rmiserver.impl;
import jrout.batch30.rmiserver.IEmployee;
import org.junit.Ignore;
import org.junit.Test;
import static org.junit.Assert.*;
public class EmployeeImplTest {
@Test
public void getEmployeeNameWithIdTest() throws Exception {
IEmployee employee = new EmployeeImpl();
... | true |
3f3b80502dad0d901b74cae89946509872a43204 | Java | zhongxingyu/Seer | /Diff-Raw-Data/27/27_c2d2f16e3e9c7735ddbdeb853d2d2f0ea7d2137b/E2EDistributionTest/27_c2d2f16e3e9c7735ddbdeb853d2d2f0ea7d2137b_E2EDistributionTest_t.java | UTF-8 | 14,491 | 1.679688 | 2 | [] | no_license | /*
* This program is part of the OpenLMIS logistics management information system platform software.
* Copyright © 2013 VillageReach
*
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation,... | true |
bc14d22df1fa636c70371010e21ac10888879fa6 | Java | eardic/Chess-Knight-Problem-Solver | /src/gyte/ai/eardic/chessknight/board/ChessBoard.java | UTF-8 | 6,736 | 2.859375 | 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 gyte.ai.eardic.chessknight.board;
import aima.core.agent.Action;
import gyte.ai.eardic.chessknight.knight.Knight;
imp... | true |
552ff2e613d20d161a2bfa7442db9df89a24e7ef | Java | jaasilva/ReDstm | /src/java/org/deuce/transform/ExcludeTM.java | UTF-8 | 366 | 1.820313 | 2 | [] | no_license | package org.deuce.transform;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.CLASS;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
/**
* Annotated class won't suffer ANY instrumentation.
*
* @author Tiago Vale
*/
@Target(TYPE)
@... | true |
d1e475fb41d78b13dc1728fb57de7d9e15f2611a | Java | phdezann/connectus | /connectus-android-app/app/src/test/java/org/connectus/DateFormatterTest.java | UTF-8 | 2,392 | 2.1875 | 2 | [
"MIT"
] | permissive | package org.connectus;
import dagger.Component;
import org.connectus.dagger.AndroidModule;
import org.connectus.dagger.AppModule;
import org.connectus.dagger.ConnectusComponent;
import org.connectus.support.RobolectricTestBase;
import org.joda.time.DateTime;
import org.joda.time.DateTimeZone;
import org.joda.time.form... | true |
b4b14b922af3b7bc9deaf6e626eaa7ef4d9cd3f6 | Java | mrlzy/reactjs | /src/main/java/com/mrlzy/shiro/filter/WeiXinClientFilter.java | UTF-8 | 2,880 | 2.125 | 2 | [] | no_license | package com.mrlzy.shiro.filter;
import com.mrlzy.shiro.session.ShiroSessionUtils;
import com.mrlzy.shiro.weixin.client.WeiXinWebClient;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.shiro.web.filter.AccessControlFilter;
import org.apache.shiro.web.util.WebUtil... | true |
2da1327cece5ab3929d1f26e5f03c71c73f94391 | Java | AlibaySyntax/SeleniumJava | /SeleniumJava/src/com/syntax/syntax15ExceptionHandlingAndFuncDevs/ThrowExample.java | UTF-8 | 729 | 3.046875 | 3 | [] | no_license | package com.syntax.syntax15ExceptionHandlingAndFuncDevs;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.*;
import java.io.FileNotFoundException;
public class ThrowExample {
public static void main(String[] args) throws Throwable {
try {
multpleSleep();
read("");
}catch(FileNotFoundExcept... | true |
26a2521ca57f062af3a0da36aa9d707f9bd5f80c | Java | MarcinPelech/ICT_AP | /test2/src/test2/GuiApp.java | UTF-8 | 3,257 | 3.09375 | 3 | [] | no_license | package test2;
import java.awt.BorderLayout;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JTextField;
import javax.swing.JLabel;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.io.B... | true |
7d55cdbbcd2d9004a1fd903196a7e71a976e9d43 | Java | Gramazski/WebFrilance | /src/main/java/servlets/ProjectServlet.java | UTF-8 | 2,993 | 2.46875 | 2 | [] | no_license | package servlets;
import DAO.UserInfoDAO;
import DAO.project.info.ProjectInfoDAO;
import entity.jsp.main.advertising.AdvertisingFrilancerClass;
import entity.jsp.main.frilancer.FrilancerTopClass;
import entity.jsp.project.stats.ProjectStatsClass;
import entity.project.info.ProjectInfo;
import entity.user.info.UserInfo... | true |
50061a534c6f14ce40cd29b52137ade608672609 | Java | NagaPadminiSelenium/FractionCalculator | /src/main/java/com/onelogin/fractioncalc/model/MixedNum.java | UTF-8 | 4,187 | 3.265625 | 3 | [] | no_license | package com.onelogin.fractioncalc.model;
//TODO negative numbers
//TODO support floats
/**
* Encapsulates a Mixed number that consists of a whole number and a fraction.
* It also represents just a whole number, just a fraction or a mixed number.
*
*/
public class MixedNum {
private Integer whole;
private Fracti... | true |
da7a18bd5cf55aad929c068d713c706d398a1c29 | Java | CharlesJeremy/CheggHackathon15 | /src/NaiveBayesClassifier/NaiveBayesMainClassifier.java | UTF-8 | 2,590 | 2.84375 | 3 | [] | no_license | package NaiveBayesClassifier;
import java.util.List;
import ProjectWideResources.ClassifierConstants;
import Student.Student;
public class NaiveBayesMainClassifier implements ClassifierConstants{
private List<Student> studentsTrainingData;
private int[][] currentFrequencyTable;
private double probabilityUsed... | true |
5d1987b867a701e641a006a79dd6918edec5dde3 | Java | sergioqf/Visminer-SQFversion | /src/org/visminer/git/local/AnalyzeRepository.java | UTF-8 | 5,105 | 2.265625 | 2 | [] | no_license | package org.visminer.git.local;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.jgit.api.errors.GitAPIException;
import org.eclipse.jgit.errors.AmbiguousObjectException;
import org.eclipse.jgit.errors.CorruptObjectException;
import org.eclipse.jgit.errors.IncorrectObje... | true |
5dbe0f123ba902bbb46b95de6b8b7d718727ca49 | Java | capnoid/megatron-java | /src/se/sitic/megatron/mail/MimeMapper.java | UTF-8 | 2,737 | 2.78125 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package se.sitic.megatron.mail;
import java.io.File;
import java.util.HashMap;
import java.util.Map;
/**
* Maps an URL or filename to a MIME-type.
*/
public class MimeMapper {
private static final String DEFAULT_MIME_TYPE = "application/octet-stream";
private static final String DEFAULT_EXTENSION = "bin";
... | true |
96538468f5b3f915205b846f605fffd35155c20a | Java | maginazt/leetcode | /src/main/java/com/maginazt/page12/Number1143.java | UTF-8 | 1,791 | 3.09375 | 3 | [] | no_license | package com.maginazt.page12;
import org.junit.Assert;
/**
* @author: zhaotao
* @date: 2020/12/2 11:04
*/
public class Number1143 {
public int longestCommonSubsequence(String text1, String text2) {
int[][] mat = new int[text1.length()][text2.length()];
mat[0][0] = text1.charAt(0) == text2.charA... | true |
e94b267201f9ce3f26d7d2dcd6c548bcf142011f | Java | simonet85/intech | /src/main/java/fr/aseure/tp012/ex7/App.java | UTF-8 | 905 | 3.703125 | 4 | [
"MIT"
] | permissive | package fr.aseure.tp012.ex7;
public class App {
public static void main(String[] args) {
Student s1 = new Student().setGrade(13);
Student s2 = new Student().setName("Anthony").setGrade(12);
System.out.println(s1);
System.out.println(s2);
Person<Student> p1 = new Person<Stu... | true |
9034043ba3b8189e269428ada8e2679508007cf8 | Java | evgeniy-panferov/education | /javacore/src/solid/dependencyinversion/ApiTemplate.java | UTF-8 | 280 | 2.046875 | 2 | [] | no_license | package solid.dependencyinversion;
import java.time.LocalDate;
public class ApiTemplate {
private String apiName;
public ApiTemplate(String apiName) {
this.apiName = apiName;
}
public LocalDate getLocalDate() {
return LocalDate.now();
}
}
| true |
820242b1e3685c425f03a832f4e1f4f705a0921c | Java | raull240/Leetcode-Practice | /Practice-Problems-Leetcode/src/thirtyDaysofCode/ProductExceptSelf.java | UTF-8 | 1,336 | 3.828125 | 4 | [] | no_license | package thirtyDaysofCode;
/**
* @author rahulrao
*
* Given an array nums of n integers where n > 1, return an array output
* such that output[i] is equal to the product of all the elements of
* nums except nums[i].
*
* Example:
*
* Input: [1,2,3,4] Output: [24,12,8,6... | true |
6917fc5afbabfb85fba07d781a0aad8c553de6a4 | Java | yaochaochen/spring-boot-dive | /spring-boot-dive/spring-boot-security/src/main/java/com/security/dive/jwt/JwtTokenPair.java | UTF-8 | 210 | 1.8125 | 2 | [] | no_license | package com.security.dive.jwt;
import lombok.Data;
import java.io.Serializable;
@Data
public class JwtTokenPair implements Serializable {
private String accessToken;
private String refreshToken;
}
| true |
80b72475e7f64fbc5ffdda7c427c42196cc8bcbb | Java | JohnShenAsync/undergraduate | /src/net/basilwang/widget/CurriculumWidgetLoader.java | UTF-8 | 1,791 | 2.140625 | 2 | [] | no_license | /*
* Copyright (C) 2011 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | true |
018df88fcb7c709c30615701421c5c3702a60b5c | Java | salonikarnik/program-creek | /src/SearchForARange.java | MacCentralEurope | 1,161 | 3.8125 | 4 | [] | no_license | /*
* Given a sorted array of integers, find the starting and ending position of a given target value.
* Your algorithms runtime complexity must be in the order of O(log n).
* If the target is not found in the array, return [-1, -1].
*/
public class SearchForARange {
public static void main(String args[]){
Se... | true |
046df6893f7319e8cc3faf8e8ddbaab0aaa98a06 | Java | clycheng2015/vinci | /vinci/lib_vinci/src/main/java/com/lewis/lib_vinci/utils/StringUtils.java | UTF-8 | 19,351 | 2.953125 | 3 | [] | no_license | package com.lewis.lib_vinci.utils;
import android.text.TextUtils;
import android.util.Log;
import com.lewis.lib_vinci.LibConstants;
import java.io.UnsupportedEncodingException;
import java.math.BigDecimal;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iter... | true |
4bcde6e4d1a91cdb87ea86dde2cfa9154d622c4b | Java | johntahod/NetworkingProtocol_Pro | /src/Entity2.java | UTF-8 | 3,130 | 3.4375 | 3 | [] | no_license | public class Entity2 extends Entity {
// Perform any necessary initialization in the constructor
public Entity2() {
initT(); // Call the necessary function, which sets entire table to 999 / infinity
int[] distanceArray = {3, 1, 0, 2}; // Network Simulator. Line 43
for (int i = 0 ; i < 4 ; i++) {
distanceTabl... | true |
85a3a695e6128c89b622f10d4d1d5d9e89530ead | Java | BackCorp/EDSD | /src/main/java/com/edsd/domain/Edsd.java | UTF-8 | 7,182 | 2.21875 | 2 | [] | no_license | package com.edsd.domain;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.edsd.config.DuplicateEdsdNotAllowException;
import com.edsd.model.NonLogement;
import com.edsd.model.NonLogementEdsd;
import com.edsd.model.Primes... | true |
7be7cd146a5eef447b7a8bd8e3d9cc7c33750036 | Java | Amenghe/AssesibilityEvaluate | /ChainExtractor/src/main/java/hezt/assesibilityevaluate/chainextractor/model/stg/input/EdgeTag.java | UTF-8 | 2,027 | 2.375 | 2 | [] | no_license | package hezt.assesibilityevaluate.chainextractor.model.stg.input;
public class EdgeTag {
private String typeOfUiElement;
private String handlerMethod;
private String resId;
public String getTypeOfUiElement() {
return typeOfUiElement;
}
public void setTypeOfUiElement(String typeOfUiEl... | true |
86a633d7b5b531b937b304d5ce784f6cb6f795ba | Java | Oberonru/Thumbtack | /src/main/java/net/thumbtack/school/windows/v4/RadioButton.java | UTF-8 | 2,798 | 3.28125 | 3 | [] | no_license | package net.thumbtack.school.windows.v4;
import net.thumbtack.school.windows.v4.base.WindowException;
import net.thumbtack.school.windows.v4.base.WindowState;
public class RadioButton extends RoundButton {
/**
* Круглая кнопка, внутри которой может быть точка. Несколько таких кнопок, объединенных в группу, ... | true |
b88206703a8edb1b58b5a936d45790d7dd062ace | Java | aritzg/Barazkide-android | /src/main/java/net/sareweb/android/barazkide/adapter/MemberAdapter.java | UTF-8 | 1,981 | 2.296875 | 2 | [] | no_license | package net.sareweb.android.barazkide.adapter;
import java.util.List;
import net.sareweb.android.barazkide.R;
import net.sareweb.android.barazkide.image.ImageLoader;
import net.sareweb.android.barazkide.model.Garden;
import net.sareweb.android.barazkide.util.Constants;
import net.sareweb.lifedroid.model.User;
import... | true |
7bc0390353930a602ec2909eec0e91bf6e3d135c | Java | MohammedSaliya/QuickezeDesgin | /app/src/main/java/com/spiderindia/quickezedesgin/Bean/AllServices.java | UTF-8 | 561 | 2.296875 | 2 | [] | no_license | package com.spiderindia.quickezedesgin.Bean;
/**
* Created by pyr on 18-Sep-18.
*/
public class AllServices {
private Integer image;
private String title;
public AllServices(Integer image, String title) {
this.image = image;
this.title = title;
}
public Integer getImage() {
... | true |
ddf46449b8d8f0edec958def0b7b2ab9cc4f4a32 | Java | dieupxse/mdeal_backend | /mDeal/mdeal-module/CtnetCommonUltil/src/com/ftl/util/BriefLogFormatter.java | UTF-8 | 1,508 | 2.625 | 3 | [] | no_license | package com.ftl.util;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.text.MessageFormat;
import java.util.Date;
import java.util.logging.Formatter;
import java.util.logging.Level;
import java.util.logging.LogRecord;
public class BriefLogFormatter
extends Formatter
{
Date dat = n... | true |
7969ed5d22785b2011edba9a97e434ddb01c9478 | Java | mikedream89/mk_android | /javaDemo/src/com/demo/thread/MCallable.java | UTF-8 | 978 | 3.671875 | 4 | [] | no_license | package com.demo.thread;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.FutureTask;
public class MCallable {
// callable 是有返回值的,runnable是没有返回值的
public static class WorkThread implements Callable<Boolean>{
@Override
public Bool... | true |
f803ab17904ef64c923c00dd2c1514a9f86ce636 | Java | gbrlas/Java_homeworks | /HW11/webserver/src/main/java/hr/fer/zemris/java/webserver/RequestContext.java | UTF-8 | 15,001 | 2.609375 | 3 | [] | no_license | package hr.fer.zemris.java.webserver;
import java.io.IOException;
import java.io.OutputStream;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import ja... | true |
897f00618c8e92f98e12cbce450a9aa73d00ad29 | Java | google-code/ascent-design-studio | /gems/code/gems-ajax/src/org/gems/ajax/client/model/MetaProperty.java | UTF-8 | 1,528 | 2.25 | 2 | [] | no_license | package org.gems.ajax.client.model;
import java.io.Serializable;
/*******************************************************************************
* Copyright (c) 2007 Jules White. All rights reserved. This program and the
* accompanying materials are made available under the terms of the Eclipse
* Public License v... | true |
f980d0cc2da7a9ee8bf1aa53b9a35a074a65c30e | Java | cckmit/oo | /webService/slcf-web/src/main/java/com/slfinance/shanlincaifu/controller/UserEmailController.java | UTF-8 | 3,601 | 2.046875 | 2 | [] | no_license | /**
* @(#)UserEmailController.java 1.0.0 2015年4月22日 下午7:26:19
*
* Copyright © 2015 善林金融. All rights reserved.
*/
package com.slfinance.shanlincaifu.controller;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
im... | true |
d775f94c53d64a88e10d042e1be561849dbe9224 | Java | gontsezuka/BlogApp-SpringBackend | /src/main/java/com/zukalover/BlogApplication/exceptions/BlogApplicationException.java | UTF-8 | 259 | 2.109375 | 2 | [] | no_license | package com.zukalover.BlogApplication.exceptions;
public class BlogApplicationException extends RuntimeException {
public BlogApplicationException(String message)
{
super(message);
}
//Building Rest, we do not expose technical information to user
}
| true |
5a41d589d39fe3d83150cc98dfbd0b7c98ca275b | Java | cpythoud/dbbeans-util | /src/org/dbbeans/util/json/JsonArrayOfDateTimesElement.java | UTF-8 | 863 | 2.984375 | 3 | [
"Apache-2.0",
"BSD-2-Clause"
] | permissive | package org.dbbeans.util.json;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
/**
* This class represents a json element with an array of dates and times value.
*/
public class JsonArrayOfDateTimesElement extends JsonArrayOfStringsElement {
/**
* Creates the json element an... | true |
5e2fc1884cc5867aaf24a579379f8dde221f7d5f | Java | Quang-Phuc/Ominext-Ex | /Test/src/myMain.java | UTF-8 | 832 | 2.671875 | 3 | [] | no_license | import java.util.List;
import java.util.stream.Collectors;
public class myMain {
Time time = new Time();
Users users = new Users();
List<Time> times = time.insertTime();
List<Users> usersList = users.insertUser();
public static void main(String[] args) {
}
public void show... | true |
a77626af816781b8c0d2d05c5c2694f22a142fa2 | Java | devBuzzy/Mineward | /CoreAPI/MinewardCore/src/mineward/core/account/Account.java | UTF-8 | 1,239 | 2.421875 | 2 | [] | no_license | package mineward.core.account;
import java.util.UUID;
import mineward.core.common.Rank;
import mineward.core.punish.Punishment;
public class Account {
private Rank rank;
private UUID uuid;
private int coins;
private long timeonline;
private long xp;
private Punishment mute;
private String[] ig... | true |
d8f1e8757586a51d83d9bd4462e64b32739a4ea9 | Java | ruraomsk/dnp3 | /src/ruraomsk/list/ru/cthulhu/SlaveFS.java | UTF-8 | 740 | 1.796875 | 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 ruraomsk.list.ru.cthulhu;
import com.tibbo.aggregate.common.datatable.DataTable;
import java.util.HashMap;
/**
* ... | true |
7b54bf71b4d0d891d3d4085ef510792d8d1a428b | Java | jayparkml/Learning_Java_Apps | /Exercise Files/Chapter 02/Review/src/com/toddperkins/Review.java | UTF-8 | 1,835 | 3.828125 | 4 | [] | no_license | package com.toddperkins;
import java.io.IOException;
import java.nio.file.*;
import java.util.List;
public class Review {
public static void main(String[] args) {
try {
loadFile("file.txt");
} catch (IOException e) {
System.out.println(e);
}
}
static void loadFile(String filename) throws IOExcepti... | true |
a47f2274a03a0f32075a912878af5190fa521730 | Java | ktulinho/thorntail | /testsuite/testsuite-microprofile-jwt/src/test/java/org/wildfly/swarm/microprofile/jwtauth/keys/FileResourceTest.java | UTF-8 | 2,396 | 1.914063 | 2 | [
"Apache-2.0"
] | permissive | package org.wildfly.swarm.microprofile.jwtauth.keys;
/**
* Copyright 2017 Red Hat, Inc, and individual contributors.
* <p>
* 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
* <p>
* http:/... | true |
1c979f34a531d3b38397e7161e9efe9bed496956 | Java | qub2qub/springMvcShowcase | /src/main/java/org/springframework/samples/mvc/validation/ValidationController.java | UTF-8 | 1,079 | 2.375 | 2 | [] | no_license | package org.springframework.samples.mvc.validation;
import javax.validation.Valid;
import org.springframework.stereotype.Controller;
import org.springframework.validation.BindingResult;
import org.springframework.validation.FieldError;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springfr... | true |
225855ff5e1959c1e8830451159e32382f542109 | Java | wooai/go-yea | /go-yea-permission/src/main/java/com/team/goyea/permission/service/impl/PermissionServiceImpl.java | UTF-8 | 5,595 | 2 | 2 | [] | no_license | package com.team.goyea.permission.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.team.goyea.permission.model.MenuInfo;
import com.team.goyea.permission.model.OperationInfo;
import com.team.goyea.permission.... | true |
300ef4e45670c8763394d6e72e35c62d0c75c969 | Java | Vineeth148/learningGit | /Main.java | UTF-8 | 4,043 | 3.28125 | 3 | [] | no_license | package com.company;
public class Main {
public static void main(String[] args) {
BankAccount bankAccount = new BankAccount();
bankAccount.setAccountBalance(2000);
System.out.println(bankAccount.getAccountBalance());
System.out.println(bankAccount.withdraw(1500));
// print... | true |
2c049c5e44d8e88a21a801714b047b20a017013c | Java | bharanitest/seleniumbasic | /src/sample/Loginpage.java | UTF-8 | 784 | 2.28125 | 2 | [] | no_license | package sample;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
public class Loginpage {
//declare
@FindBy(id="username")
private WebElement usernametb;
@FindBy(name="pwd")
pr... | true |
a0ff852899bb59f6474e6fd6e75b88a38c940839 | Java | delpo/facturacion | /src/terminal/MenuFacturas.java | UTF-8 | 4,032 | 2.984375 | 3 | [] | no_license | package terminal;
import java.io.Serializable;
import java.util.Scanner;
import facturacion.CodigoFactura;
import facturacion.ExcepcionFacturaNoEncontrada;
import facturacion.NIF;
import facturacion.Operador;
public class MenuFacturas implements Serializable{
/**
*
*/
private static final long serialVersionU... | true |
3d793608fdc4f39813ebea6660f7f5726f0a9a47 | Java | jamesxuhaozhe/LeetCode-Java-Kotlin | /Java-Kotlin/src/main/java/jianzhi/jz20.java | UTF-8 | 625 | 2.984375 | 3 | [
"MIT"
] | permissive | package jianzhi;
import java.util.Stack;
public class jz20 {
private Stack<Integer> s1 = new Stack<>();
private Stack<Integer> s2 = new Stack<>();
public void push(int node) {
s1.push(node);
if (s2.isEmpty() || s2.peek() > node) {
s2.push(node);
} else if (s2.peek(... | true |
a63c972622cbe9582d4501a6e7dcad44a70b0b0f | Java | LuisValentim1/TQS_Labs | /Lab05/Books/src/test/java/BookSearchSteps.java | UTF-8 | 1,828 | 2.90625 | 3 | [] | no_license | import static org.junit.jupiter.api.Assertions.assertEquals;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import io.cucumber.java.en.Given;
import io.cucumber.java.en.Then;
import io.cucumber.java.en.When;
public class BookSearchSteps{
private Library ... | true |
82bad53e19ff7bdecb606d07f189a579dbb165ac | Java | MatthewSetzer/Finders | /app/src/main/java/com/example/finders/MapsActivity.java | UTF-8 | 36,905 | 1.5625 | 2 | [] | no_license | package com.example.finders;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.graphics.Color;
import android.location.Criteria;
import android.locati... | true |
33759e8e3f431c23b7197314f960cc3c74df305e | Java | VitalieS/computer-database | /src/main/java/com/excilys/computerdatabase/presentation/cliui/ComputerView.java | UTF-8 | 9,579 | 2.8125 | 3 | [] | no_license | package com.excilys.computerdatabase.presentation.cliui;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.excilys.computerdatabase.model.Computer;
import com.excilys.co... | true |
7ec6082eec478225456e5560603c32efec5bb20c | Java | chrome6/delivery | /SangHoon/src/Package/compcountprocess.java | UHC | 1,070 | 2.921875 | 3 | [] | no_license | package Package;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Scanner;
public class compcountprocess {
public static void saveuser(String id, int count) {
try {
FileWriter writer = new FileWriter(new File("datacomp/" + i... | true |
f73bd6b46ca868d943c3392cd4d58a9e0acba1ef | Java | bndly/bndly-commons | /schema/schema-fixtures/src/main/java/org/bndly/schema/fixtures/impl/PersistenceItem.java | UTF-8 | 3,196 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | package org.bndly.schema.fixtures.impl;
/*-
* #%L
* Schema Fixtures
* %%
* Copyright (C) 2013 - 2020 Cybercon GmbH
* %%
* 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... | true |
75517861fbb08a1633c811cf7d8a5bb6fceefa55 | Java | kotara88/University | /src/test/java/com/foxminded/university/domain/LessonTest.java | UTF-8 | 877 | 2.859375 | 3 | [] | no_license | package com.foxminded.university.domain;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
public class LessonTest {
private Student firstStudent;
private Student secondStudent;
private Lesson lesson;
@Before
public void initialize(){
firstStudent = new St... | true |
6e5e3f2013b48e7e4ddf4764b2f31be900841a8d | Java | javagossip/dorado | /dorado-core/src/main/java/ai/houyi/dorado/rest/http/impl/HttpResponseImpl.java | UTF-8 | 2,826 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2017 The OpenDSP Project
*
* The OpenDSP Project licenses this file to you 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
*
* Unl... | true |
1c9d91a2b839815965c9ce2c6cec7b116ce7f4f4 | Java | eduardowmu/SpringProjects | /MVCproj/src/main/java/com/edu/exemplo/boot/controle/FuncionarioController.java | UTF-8 | 5,518 | 2.234375 | 2 | [] | no_license | package com.edu.exemplo.boot.controle;
import java.time.LocalDate;
import java.util.List;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Controller;
import org.springframe... | true |
9df2be529f6c45d4b0033c406a79370b85848d22 | Java | shredoreo/lgjava | /3-5-SCA/sc-homework-2/service-code-8081/src/main/java/com/shred/sc/controller/CodeController.java | UTF-8 | 1,181 | 1.960938 | 2 | [] | no_license | package com.shred.sc.controller;
import com.shred.sc.CodeService;
import com.shred.sc.EmailService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.annotation.Reference;
import org.springframework.web.bind.annotation.*;
@RestController
@... | true |
cb9534531f08d83e41d3588a54650bf828fcd62e | Java | yayajack123/BisnisDirektori | /app/src/main/java/id/ac/bisnisdirektori/AdapterListProductCategory.java | UTF-8 | 3,285 | 2.03125 | 2 | [] | no_license | package id.ac.bisnisdirektori;
import android.app.Activity;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.RatingBar;
import android.widget.TextView;
... | true |
56dce1fd451d224581b68f71a8686191729684da | Java | TodDim/TechModuleExcercises | /CountingSystems/Mantissa.java | UTF-8 | 1,393 | 3.890625 | 4 | [] | no_license | package CountingSystems;
import java.util.Scanner;
//Да се напише програма, която определя (отпечатва) стойността на мантисата, знака на мантисата и стойността на експонентата за числа от тип float и double.
public class Mantissa {
public static void main(String a[]) {
Scanner scanner=new Scanner(System.in... | true |
9487f977faa924f8abc75af5d41faf08c5f65dce | Java | WangZhen0908/XposedDemo | /hookbase/src/main/java/com/moon/xposed/hookbase/BaseMethodHook.java | UTF-8 | 393 | 1.84375 | 2 | [] | no_license | package com.moon.xposed.hookbase;
import java.util.List;
import de.robv.android.xposed.XC_MethodHook;
/**
* author WangZhen
* created 2019/3/2 14:09
*/
public abstract class BaseMethodHook extends XC_MethodHook {
/**
* 获取需要进行hook的方法列表
*
* @return 需要进行hook的方法列表
*/
public abstract List<... | true |
d1ec41bbe451cd48102e162fd017e8f06aef7b73 | Java | kofelo123/hkitSource | /javaworkspace/class/이규민/Homework3/src/homework3_1/Homework3_1.java | UTF-8 | 316 | 3.109375 | 3 | [] | no_license | package homework3_1;
public class Homework3_1 {
public static void main(String[] args) {
// TODO Auto-generated method stub
int num = 1;
for(int i=0; i<15; i++)
{
if(i == 14)
{
num += i;
System.out.println(num);
}
else
{
num += i;
System.out.print(num+", ");
}
}
}
}
| true |
8319912cdbca4efe157b84d0dcfa2f8dfc6b0a70 | Java | sagnik150699/Mobile-Store-Printout-System | /Mobile Store printout system/MobileStoreManagementProject/src/mobilestoremanagementproject/Frame2.java | UTF-8 | 14,078 | 2.609375 | 3 | [] | no_license | package mobilestoremanagementproject;
public class Frame2 extends javax.swing.JFrame {
int count=0;
public Frame2() {
initComponents();
billheader();
}
private void billheader(){
textbill.setText(" ABC MOBILE STORE"+"\n"+" Contacts No:-9874426925"+"\n"+" ... | true |
306bf560b652da1e9deefeba17543d2bb9aad33a | Java | a-larrondo/mscol-playFramework2 | /app/controllers/Usuarios.java | UTF-8 | 235 | 2 | 2 | [] | no_license | package controllers;
import models.Usuario;
import play.mvc.Controller;
public class Usuarios extends Controller {
public static Usuario tipoUsuario(String email) {
Usuario user = Usuario.getUsuario(email);
return user;
}
}
| true |
c1491fb78a74466b8af1ed9f99509682c48923ea | Java | IF18-B-Recycle/Recycle_App | /app/src/main/java/com/example/recycle_app/User/Model/Pengguna.java | UTF-8 | 1,511 | 2.125 | 2 | [] | no_license | package com.example.recycle_app.User.Model;
public class Pengguna {
public String firstName, lastName, email, password, alamat, noHp;
private String key;
public Pengguna() {
}
public Pengguna(String firstName, String lastName, String email, String password, String alamat, String noHp) {
... | true |
b0e814069fa23ab0c1adcb124349286522a8570c | Java | ZerocksX/Java-Course-2017 | /hw16-0036492049-2/src/main/java/hr/fer/zemris/java/hw16/jvdraw/model/OvalObject.java | UTF-8 | 1,422 | 3.515625 | 4 | [] | no_license | package hr.fer.zemris.java.hw16.jvdraw.model;
import java.awt.*;
/**
* Oval object
*
* @author Pavao Jerebić
*/
public class OvalObject extends GeometricalObject {
/**
* center x
*/
private int x;
/**
* center y
*/
private int y;
/**
* radius
*/
private int r;... | true |
80b8b34dab95b4c0eb853bafdb8a353c1f028066 | Java | 1239008581/ccsu-service | /src/main/java/com/hang/pojo/vo/BaseRes.java | UTF-8 | 452 | 1.914063 | 2 | [] | no_license | package com.hang.pojo.vo;
import com.fasterxml.jackson.annotation.JsonView;
import com.hang.pojo.data.InformationDO;
import lombok.Data;
/**
* @author hangs.zhang
* @date 2019/1/25
* *****************
* function:
*/
@Data
@JsonView(InformationDO.SimpleInformation.class)
public class BaseRes<T> {
/**
* ... | true |
71434df129fc48d4b9f0d3e6839315db8cf8fea9 | Java | vjotov/long_division | /src/main/java/com/company/Util.java | UTF-8 | 210 | 2.65625 | 3 | [] | no_license | package com.company;
public class Util {
public static int getNumberLength(int number) {
if(number == 0)
return 1;
else
return (int) Math.log10(number) + 1;
}
}
| true |
6c1f17b73fd9f2423284eefa1f3d2e5da3d369c1 | Java | mrzhqiang/helper | /helper/src/main/java/com/github/mrzhqiang/helper/StackTraces.java | UTF-8 | 915 | 3.359375 | 3 | [
"Apache-2.0"
] | permissive | package com.github.mrzhqiang.helper;
import java.io.PrintWriter;
import java.io.StringWriter;
/**
* 堆栈工具。
* <p>
* 实际上可以用 Throwables 类替代当前类,但本工具类可以结合 IDEA 的调试模式,给出详细的堆栈内容。
* <p>
* 当在生产环境中运行时,可以屏蔽堆栈打印,以提升性能。
*/
public final class StackTraces {
private StackTraces() {
// no instances
}
/**
... | true |
dda94cccf5929542d0c38ea5177876739b00b8d6 | Java | treejames/HuaMeng | /app/src/main/java/com/bm/hm/cache/CacheFragment.java | UTF-8 | 10,868 | 1.804688 | 2 | [] | no_license | package com.bm.hm.cache;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.ListView;
i... | true |
7dacf500e4c4d950e7713efd00796e24ae510e7d | Java | tanhaichao/leopard-test | /leopard-jetty/src/main/java/io/leopard/jetty/impl/WebServerJettyImpl.java | UTF-8 | 2,960 | 1.867188 | 2 | [
"Apache-2.0"
] | permissive | package io.leopard.jetty.impl;
import java.io.IOException;
import java.net.BindException;
import org.eclipse.jetty.annotations.AnnotationConfiguration;
import org.eclipse.jetty.server.Handler;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.handler.HandlerCollection;
import org.eclips... | true |
dbccbb161d62f7d8f4f0961ec70a43bd2dd0bfcc | Java | JonasGaidukevicius/AkademijaIT | /pamoka_20181105 (exceptions truputi)/src/lt/vtvpmc/ems/akademijait/jonas/JavaException2.java | UTF-8 | 241 | 2.078125 | 2 | [] | no_license | package lt.vtvpmc.ems.akademijait.jonas;
public class JavaException2 {
public static void main(String[] args) {
//Unchecked exceptions
Object object = null;
System.out.println(object.toString());
}
}
| true |
3b8a4a4f5eb06ea24046a7bdba02e5b2aefeaf06 | Java | nangongyibin/Java_Study | /src/main/java/com/ngyb/study/xml/Book.java | UTF-8 | 630 | 2.734375 | 3 | [] | no_license | package com.ngyb.study.xml;
/**
* 作者:南宫燚滨
* 描述:
* 邮箱:nangongyibin@gmail.com
* 日期:2020/7/19 20:02
*/
public class Book {
String name;
String price;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getPrice()... | true |
576fe291899561788febc582af59699f5946f7ee | Java | Moutendy/importexport | /src/main/java/com/example/importexport/repository/AgentRepository.java | UTF-8 | 235 | 1.601563 | 2 | [] | no_license | package com.example.importexport.repository;
import com.example.importexport.model.AgentModel;
import org.springframework.data.jpa.repository.JpaRepository;
public interface AgentRepository extends JpaRepository<AgentModel,Long> {
}
| true |
2d8926a24a7c3c40dc74118742cef3a80b1163d5 | Java | nico-233/NPL-using-JAVA | /sonnetgenerator/src/com/sonnetgenerator/analyzer/Logger.java | UTF-8 | 725 | 2.8125 | 3 | [] | no_license | package com.sonnetgenerator.analyzer;
import com.sonnetgenerator.analyzer.IO;
/**
* com.sonnetgenerator.analyzer.Logger records all the detailed debugging information to a local file.
*
* This module is the essential part for debugging process.
*/
public class Logger {
private IO ioInstance = new IO();
priva... | true |