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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
d20d042d1be3bc554d7ac4335fa2ccbbbaf0e441 | Java | nishagr/FuelSensor | /app/src/main/java/ketank/bloodbank/Fragments/BankDonorsFragment.java | UTF-8 | 10,355 | 1.757813 | 2 | [] | no_license | package ketank.bloodbank.Fragments;
import android.content.Context;
import android.content.SharedPreferences;
import android.icu.util.ValueIterator;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Pro... | true |
777a06686041aaee799c0eb7268c2d435474f406 | Java | hodester/CIT360 | /src/jUnitTest/AgileTest.java | UTF-8 | 1,063 | 3.328125 | 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 jUnitTest;
/**
*
* @author Hodes
*/
public class AgileTest {
public int add(String s1, String s2) {
... | true |
7b57af0b6e45dbf2d005a029bcd65ac1b9d0cc8f | Java | s-santoro/lunch-crawler | /storm-crawler-master/core/src/main/java/com/digitalpebble/stormcrawler/util/MetadataTransfer.java | UTF-8 | 6,610 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | /**
* Licensed to DigitalPebble Ltd under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* DigitalPebble licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this... | true |
11320ef8e09a9c9595d9d301f2f29c33b355b8c5 | Java | LucasMoll/ProjectFettSpeck | /app/src/main/java/de/fhdw/mfwi415a/gop/kalorientagebuch/activites/AddMenuItemPopUp.java | UTF-8 | 484 | 1.679688 | 2 | [
"MIT"
] | permissive | package de.fhdw.mfwi415a.gop.kalorientagebuch.activites;
import android.app.Activity;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.PopupWindow;
import de.fhdw.mfwi415a.gop.kalorientagebuch.R;
public class AddMenuItemPopUp extends Activity {
@Override
prote... | true |
7759b75028436d37a1c84c3c52deaeb006628b36 | Java | SlaskoCZ/Argus-Pyrrhus | /Argus-Pyrrhus/src/argus/pyrrhus/Enemy.java | UTF-8 | 3,062 | 2.875 | 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 argus.pyrrhus;
/**
*
* @author Slasko
*/
public class Enemy {
public static int enemySTR;
public sta... | true |
ef3769ef9a0cc7fe06a3f72dae4ec195202f99f0 | Java | AboutaBoy/cnfeatures | /core/src/main/java/cn/features/core/controller/TestController.java | UTF-8 | 461 | 1.664063 | 2 | [] | no_license | package cn.features.core.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping(... | true |
00b5b13e908014f9dacc72caca76f97191944b85 | Java | BrianShen/fanli-scheduler-web | /src/main/java/com/fanli/scheduler/entity/EtlMetaHiveTable.java | UTF-8 | 11,360 | 1.804688 | 2 | [] | no_license | package com.fanli.scheduler.entity;
public class EtlMetaHiveTable {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column etl_meta_hivetable.global_id
*
* @mbggenerated Fri Oct 09 11:14:50 CST 2015
*/
private Long globalId;
/**
*... | true |
86e7bb7b1215336701cb2feda2f1d8a10bdc016f | Java | hec-montreal/tenjin | /api/src/main/java/ca/hec/tenjin/api/model/syllabus/SyllabusCitationElement.java | UTF-8 | 218 | 2 | 2 | [] | no_license | package ca.hec.tenjin.api.model.syllabus;
public class SyllabusCitationElement extends AbstractSyllabusElement {
public static final String TYPE = "citation";
public String getType() {
return TYPE;
}
}
| true |
68d44fedc0dee21a109b37dadc02140e253e2451 | Java | While1true/FZGJJ-master | /app/src/main/java/com/lecheng/hello/fzgjj/Activity/ReUI/ToolNewFragmnet.java | UTF-8 | 6,419 | 1.851563 | 2 | [] | no_license | package com.lecheng.hello.fzgjj.Activity.ReUI;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.DividerItemDecoration;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import... | true |
d2c9c2706d3b272aa12ae946839b0bf28145b374 | Java | sunesimonsen/changeless | /src/main/java/com/jayway/changeless/utilities/Guard.java | UTF-8 | 2,723 | 3.484375 | 3 | [
"Apache-2.0"
] | permissive | package com.jayway.changeless.utilities;
import com.jayway.changeless.intervals.Interval;
/**
* A guard class for checking preconditions on method arguments.
*/
public final class Guard {
private Guard() { /* Static class */ }
/**
* Ensured that the given argument is not null.
* @param argument the argument... | true |
68fc3b55bfb1cc2747ec96f3ce500b8a3f64f196 | Java | sathishmscict/XMPP-Demo-master-Vp | /app/src/main/java/in/quantumtech/xmpp/utils/DBConstants.java | UTF-8 | 1,125 | 1.617188 | 2 | [] | no_license | package in.quantumtech.xmpp.utils;
/**
* Created by admin on 8/24/2016.
*/
public interface DBConstants {
int CAMERA_CAPTURE_IMAGE_REQUEST_CODE = 100;
int CAMERA_CAPTURE_VIDEO_REQUEST_CODE = 200;
int GALLERY_IMAGE_REQUEST_CODE = 300;
int GALLERY_VIDEO_REQUEST_CODE = 301;
int MEDIA_TYPE_IMAGE = 1... | true |
a7ee31d73d44c2a46b0f074c71efe505d406e305 | Java | yliu224/Algorithm_Leetcode_Solution | /src/FIGHTING/Main.java | UTF-8 | 286 | 1.648438 | 2 | [] | no_license | package FIGHTING;
import FIGHTING.Leetcode.String.leetcode3;
import FIGHTING.Leetcode.leetcode61;
public class Main {
public static void main(String[] args) {
leetcode61 l61=new leetcode61();
l61.rotateRight(BuildHelper.CreateListNode("[1,2,3,4,5]"),3);
}
}
| true |
310a3ba1287c9b30402b28401f7380c2ed97c46f | Java | Tominous/LabyMod-1.9 | /bdx.java | UTF-8 | 1,267 | 1.882813 | 2 | [] | no_license | import net.minecraft.realms.RealmsButton;
public class bdx
extends bcz
{
private RealmsButton o;
public bdx(RealmsButton ☃, int ☃, int ☃, int ☃, String ☃)
{
super(☃, ☃, ☃, ☃);
this.o = ☃;
}
public bdx(RealmsButton ☃, int ☃, int ☃, int ☃, String ☃, int ☃, int ☃)
{
super(☃, ☃, ☃, ☃, ☃, ☃)... | true |
f82a561b9d96dfd59effb45489d5dff75322e30b | Java | Radomiej/Open-MMO-server | /open-mmo/src/main/java/pl/radomiej/mmo/actions/MoveToAction.java | UTF-8 | 478 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | package pl.radomiej.mmo.actions;
import pl.radomiej.mmo.models.GameAction;
public class MoveToAction extends GameAction {
public int objectId;
public float x;
public float y;
public float z;
public float rotX;
public float rotY;
public float rotZ;
@Override
public String toString() {
retu... | true |
c3dcdee8d282b4eb36c92f57abfe31c6466d64e4 | Java | SandeepDevrari/java_code | /java_all/dynamic_array_common_javaio.java | UTF-8 | 1,495 | 3.703125 | 4 | [] | no_license | import java.io.*;
class ArrayCommonJavaIO
{
InputStreamReader isr;
BufferedReader br;
int sz,i;
int arr1[],arr2[];
void input() throws IOException
{
isr=new InputStreamReader(System.in);
br=new BufferedReader(isr);
System.out.print("Enter Array Size: ");
sz=Intege... | true |
329fd82252bb767573b073c9eaa876e5e31b4074 | Java | eakurnikov/CapStruct | /src/main/java/com/private_void/app/CapStructApp.java | UTF-8 | 3,364 | 2.703125 | 3 | [] | no_license | package com.private_void.app;
import com.private_void.app.controllers.CapStructController;
import com.private_void.app.controllers.MainWindowController;
import com.private_void.app.controllers.ProgressDialogController;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
im... | true |
76722935419822c0f9272a580c5c23694549dfe6 | Java | s-constantinou/Week12Day4Lab---FantasyAdventure | /src/main/java/FantasyAdventureLab/Items/HealingTools/IHealingTool.java | UTF-8 | 158 | 2.09375 | 2 | [] | no_license | package FantasyAdventureLab.Items.HealingTools;
import FantasyAdventureLab.Players.Player;
public interface IHealingTool {
void heal(Player player);
}
| true |
fc893b03ca5ce10506d25ea4f3f26b326089cf4a | Java | josmarl/microservicios-demo | /microservice-greeting/src/main/java/com/example/Greeting.java | UTF-8 | 551 | 2.328125 | 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.example;
import java.io.Serializable;
/**
*
* @author server-itecs
*/
public class Greeting implements Serializable {
... | true |
73e9814d5dc14f58fed16cff52e7bd3690f5aa6e | Java | Sarcoline/_Crimson | /src/main/java/com/crimson/core/dto/TvShowDisplayDTO.java | UTF-8 | 1,379 | 2.109375 | 2 | [] | no_license | package com.crimson.core.dto;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;
import org.hibernate.validator.constraints.URL;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.util.ArrayList;
impo... | true |
77a29f4fcccf4aa9df6ac602c76096d7423b7eda | Java | alonly123/ezcloudserver | /ezclound-service/src/main/java/com/ezsmart/umcs/services/MonitorHostService.java | UTF-8 | 935 | 1.78125 | 2 | [] | no_license | package com.ezsmart.umcs.services;
import com.ezsmart.umcs.common.BasicResult;
import com.ezsmart.umcs.condition.MonitorHostCondition;
import com.ezsmart.umcs.domain.MonitorHost;
import java.util.List;
/**
* Created by luochunteng on 2016/4/15.
*/
public interface MonitorHostService {
public int ... | true |
7516eed12b13ddd19590f5f118fb7af88733cf28 | Java | ChezkaDEV/SE-352-Object-Oriented-Enterprise-Application-Development | /hw1/src/main/java/edu/depaul/se/account/jpa/AccountManager.java | UTF-8 | 1,978 | 2.5 | 2 | [] | no_license | package edu.depaul.se.account.jpa;
import java.util.List;
import edu.depaul.se.account.AccountNotFoundException;
import edu.depaul.se.account.IAccount;
import edu.depaul.se.account.IAccountManager;
import edu.depaul.se.account.InsufficientFundsException;
import javax.persistence.Column;
import javax.persistence.Entit... | true |
93f585312a8f1f7f9bea298ea741629822db131e | Java | knitendra5371/JAVA | /DSA/important_programs/DetectCycleInDirectedGraph.java | UTF-8 | 1,701 | 3.25 | 3 | [] | no_license | package Imp_Programs;
import java.util.Scanner;
import java.util.Stack;
public class DetectCycleInDirectedGraph {
public static final int STARTING = 0;
// public static final int WAITING = 1;
public static final int VISITED = 1;
public static boolean DFS(int[][] adj, int[] state, int src, int N) {
boolean resul... | true |
ee55c7087bb524a991372b24bc364200a3c2fe80 | Java | Silvinha01/Arquivos_Projeto_venda_ingressos_cinema_bd_interface | /LPII_venda_ingressos_cinema_bd_interface/src/venda_ingressos_cinema_bd_interface/JDesktopPaneFrame.java | UTF-8 | 1,898 | 2.40625 | 2 | [] | no_license | package venda_ingressos_cinema_bd_interface;
import controller.FilmeController;
import controller.SalaController;
import controller.SessaoController;
import controller.VendaController;
import javax.swing.JDesktopPane;
import javax.swing.JFrame;
import javax.swing.JInternalFrame;
import view.JanelaCrudFilme;
import vie... | true |
c9036fd2fe2e340c2cb167d4c8a79c08835b67c6 | Java | LiHu20160316/electrum | /android/app/src/main/java/org/haobtc/onekey/ui/fragment/BackupSuccessFragment.java | UTF-8 | 980 | 2.03125 | 2 | [
"MIT"
] | permissive | package org.haobtc.onekey.ui.fragment;
import android.view.View;
import android.widget.Button;
import org.haobtc.onekey.R;
import org.haobtc.onekey.mvp.base.BaseFragment;
import org.haobtc.onekey.ui.listener.IBackupSuccessListener;
import butterknife.BindView;
public class BackupSuccessFragment extends BaseFragment... | true |
d6f743733f662ca7ce132a7397b42877533dc2a3 | Java | MErikMC/Parkour | /src/main/java/com/merikmc/listeners/MovementListener.java | UTF-8 | 1,450 | 2.53125 | 3 | [] | no_license | package com.merikmc.listeners;
import com.merikmc.data.PlayerTracker;
import com.merikmc.events.PlayerCheckpointReachEvent;
import com.merikmc.events.PlayerFinishCourseEvent;
import com.merikmc.map.Map;
import com.merikmc.map.checkpoints.Checkpoint;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukk... | true |
83f0d879d4522c7720228623c315c65b23ff363c | Java | onixred/TelegramApi | /src/main/java/org/telegram/tl/TLNull.java | UTF-8 | 579 | 2.078125 | 2 | [
"MIT"
] | permissive | /*
* This is the source code of Telegram Bot v. 2.0
* It is licensed under GNU GPL v. 3 or later.
* You should have received a copy of the license in this archive (see LICENSE).
*
* Copyright Ruben Bermudez, 13/11/14.
*/
package org.telegram.tl;
/**
* @author Ruben Bermudez
* @version 2.0
* @brief TLNull valu... | true |
031ddbf862cfc2107316d45e209d52ccbaccb3d7 | Java | moutainhigh/guiyu-assistCall | /guiyu-parent/guiyu-common-parent/guiyu-model/src/main/java/com/guiji/common/model/process/ProcessInstanceVO.java | UTF-8 | 2,265 | 2.375 | 2 | [] | no_license | package com.guiji.common.model.process;
import com.guiji.common.model.process.ProcessStatusEnum;
import com.guiji.common.model.process.ProcessTypeEnum;
import java.io.Serializable;
import java.util.Map;
public class ProcessInstanceVO implements Serializable, Cloneable {
private String ip;
private Integer... | true |
16994e632ca0e8e2421ce35577fbd34c473587c5 | Java | kristenvondrak/Munch | /app/src/main/java/com/example/kristenvondrak/dartmunch/Database/DatabaseRecipe.java | UTF-8 | 555 | 2.40625 | 2 | [] | no_license | package com.example.kristenvondrak.dartmunch.Database;
/**
* Created by kristenvondrak on 2/10/16.
*/
public class DatabaseRecipe {
private String m_Group;
private String m_Name;
private String m_NBDNo;
public DatabaseRecipe(String group, String name, String ndbno) {
m_Group = group;
... | true |
4c11f98ab1e98c1aec2b07e4b7a977d6fc6aec00 | Java | gogoonbuntu/Lab13 | /src/main/java/edu/handong/csee/java/lab13/prob6/Main.java | UTF-8 | 332 | 2.859375 | 3 | [] | no_license | package edu.handong.csee.java.lab13.prob6;
public class Main {
public static void main(String[] args) {
UP a=new UP(3, 3); //create instances
DP b=new DP(2, 5);
DP c=new DP(4, 7);
UP d=new UP(9, 12);
Printer.print(a); //call print methods
Printer.print(b);
Printer.print(c);
Printer.print(... | true |
b3771490ed9250001649c9bff27ce5fdfd9b0f7f | Java | j-or450/Atividade | /VariavelMain.java | UTF-8 | 187 | 1.929688 | 2 | [
"MIT"
] | permissive | import Variavel;
public class VariavelMain {
public static void main(String[] args) {
Variavel variavel = new Variavel();
variavel.imprimirValores();
}
} | true |
ef7224f371cc39d535849d4ddd9935a7fba0dd24 | Java | russjr08/KronosTwit | /src/main/java/com/kronosad/projects/twitter/kronostwit/interfaces/IStatus.java | UTF-8 | 606 | 2.015625 | 2 | [] | no_license | package com.kronosad.projects.twitter.kronostwit.interfaces;
import java.util.ArrayList;
import javax.swing.DefaultListModel;
import twitter4j.Status;
/**
*
* @author russjr08
*/
public interface IStatus {
/**
*
* @return ArrayList<Status> A list of statuses.
*/
public ArrayList<S... | true |
46596d22084ebb70be078cb08457ec384b701a91 | Java | brucent/json-schema-validator | /src/test/java/org/eel/kitchen/jsonschema/main/JsonSchemaFactoryTest.java | UTF-8 | 3,196 | 2.140625 | 2 | [] | no_license | /*
* Copyright (c) 2012, Francis Galiegue <fgaliegue@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Lesser GNU General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later ve... | true |
78509a86a4a5ea3f0833ca09d9d39802d22d3e55 | Java | floodboad/zyj-hssp | /zyj-hec-master/zyj-hec/src/main/java/com/hand/hec/gld/dto/GldMappingCondGrpLn.java | UTF-8 | 1,744 | 2.09375 | 2 | [] | no_license | package com.hand.hec.gld.dto;
import com.hand.hap.mybatis.annotation.ExtensionAttribute;
import com.hand.hap.system.dto.BaseDTO;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constra... | true |
b157ec525f5015feb43e9261ec0a031fd5e8776a | Java | KangHeeWoo/Delivery | /delivery/src/main/java/com/jhta/delivery/dao/BoardDao.java | UTF-8 | 1,771 | 1.953125 | 2 | [] | no_license | package com.jhta.delivery.dao;
import java.util.HashMap;
import java.util.List;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import com.jhta.delivery.vo.BoardImgVo;
import com.jhta.delivery.vo.B... | true |
3ba309f4a50fb8e567fb5eedeac622aae8d4c40b | Java | helljav/Sistema-gestor-de-papeleria | /src/mx/uam/ayd/sgp/presentacion/VentanaPrincipalEmpleado.java | UTF-8 | 9,259 | 2.375 | 2 | [] | no_license | package mx.uam.ayd.sgp.presentacion;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.EventQueue;
import java.awt.Font;
import java.awt.Toolkit;
import javax.swing.GroupLayout;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import jav... | true |
84f62a9056456b50a4c351aeb8560e261efafa8d | Java | litios/Coleco-System | /src/Model/Grade.java | UTF-8 | 764 | 3.109375 | 3 | [] | no_license | package Model;
public class Grade {
private int value;
private int percentage;
private int id;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public int getValue() {
return value;
}
public void setValue(int value) {
... | true |
3dd031b9d3866daf9cbcf9b51226ad8f10b25012 | Java | applepie14/Starters | /startes/src/com/starters/PortfolioDAO.java | UTF-8 | 66,057 | 2.71875 | 3 | [] | no_license | package com.starters;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.*;
public class PortfolioDAO {
private Connection conn;
public PortfolioDAO(){
try{
... | true |
27a2e627f0c5501e9ff2450717d296c1362b8dd7 | Java | WRKMNO4/System_Server | /src/DataService/FinanceDataService/FinanceController.java | UTF-8 | 8,472 | 2.421875 | 2 | [] | no_license | package DataService.FinanceDataService;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.rmi.RemoteException;
import java.text.SimpleDateFormat;
import java... | true |
71350c02d2ed1f118609f65da6e4602c8e620437 | Java | codephillip/AutomatedIrrigationSystem---android | /app/src/main/java/com/codephillip/app/automatedirrigationsystem/provider/metrictable/MetrictableContentValues.java | UTF-8 | 2,771 | 2.140625 | 2 | [] | no_license | package com.codephillip.app.automatedirrigationsystem.provider.metrictable;
import java.util.Date;
import android.content.Context;
import android.content.ContentResolver;
import android.net.Uri;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import com.codephillip.app.automate... | true |
a8719b45c007e140d759786abadacdbef24fc6c1 | Java | lanwen/cgraml-maven-plugin | /src/main/java/com/github/aureliano/cgraml/code/gen/ModelSchemaInterfaceGenerator.java | UTF-8 | 741 | 2.34375 | 2 | [
"MIT"
] | permissive | package com.github.aureliano.cgraml.code.gen;
import com.github.aureliano.cgraml.code.builder.CodeBuilder;
import com.github.aureliano.cgraml.code.builder.ModelSchemaInterfaceBuilder;
import com.github.aureliano.cgraml.code.meta.ClassMeta;
public class ModelSchemaInterfaceGenerator extends AbstractCodeGenerator {
p... | true |
e3b70935a8d0eb9edaed459312cb89b187a5b7fc | Java | Kingomac/Practicas-PROII | /p5/ej2/src/ej6/PublicacionException.java | UTF-8 | 180 | 1.96875 | 2 | [] | no_license | package ej6;
/**
*
* @author Mario
*/
public class PublicacionException extends Exception {
public PublicacionException(String message) {
super(message);
}
}
| true |
0eee89f91cb2cc8583edc6a8d14d0fdcd381aae0 | Java | fridayy/dynamodb-operations | /dynamodb-mirror/src/main/java/one/leftshift/mirror/service/DefaultTableMirroringService.java | UTF-8 | 1,545 | 2.328125 | 2 | [
"MIT"
] | permissive | package one.leftshift.mirror.service;
import one.leftshift.common.concurrent.AbstractThreadPoolService;
import one.leftshift.common.dynamodb.AmazonDynamoDBFactory;
import one.leftshift.common.dynamodb.repository.SynchronousDynamoDBRepository;
import one.leftshift.common.util.Tuple;
import one.leftshift.mirror.MirrorRe... | true |
3bdd9c1d3aea5b8004f0540c69dcf0c5308795a9 | Java | Micalhl/Geography | /src/QuestionState.java | UTF-8 | 2,081 | 3.046875 | 3 | [] | no_license | public class QuestionState {
private final CityInfo info;
private final String name;
private final String enterName;
private final String enterCity;
private boolean pass;
public QuestionState(CityInfo info, String name, boolean pass, String enterName, String enterCity) {
this.info = in... | true |
98ee88b0cdc20e398fd90f7638f3106df68dc2a5 | Java | DusanGligorijevic/Zoom_meetings_Android | /app/src/main/java/rs/raf/projekatjul/dusan_gligorijevic_rn9319/MainActivity.java | UTF-8 | 4,761 | 2.453125 | 2 | [] | no_license | package rs.raf.projekatjul.dusan_gligorijevic_rn9319;
import androidx.appcompat.app.AppCompatActivity;
import androidx.lifecycle.ViewModelProvider;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.widget.Button;
import android.widget.Toas... | true |
a9974932c88ff60f729151080836c9b4d678b2a2 | Java | YousefMohsen/studypoint5 | /sp5ex4RestJsonexamPrep/src/main/java/business/DataGenerator.java | UTF-8 | 2,620 | 2.875 | 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 com.google.gson.Gson;
import com.google.gson.JsonArray;
import com.google.gson.JsonObject;
import java.util.A... | true |
51f52dc29a37fc68be7703316f9b6c65e94e6c3b | Java | Vo172/Learning | /src/main/java/com/vopt/fleetapp/models/Person.java | UTF-8 | 1,374 | 2.234375 | 2 | [
"Apache-2.0"
] | permissive | package com.vopt.fleetapp.models;
import java.util.Date;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.MappedSuperclass;
import org.springframework.format... | true |
c67e974120a43a19690b30e6782682c69d119695 | Java | shreyas-paranjape/android | /projects/AmigoDelivery/Customer/app/src/main/java/in/co/foodamigo/customer/module/catalogue/view/component/CategoryFragment.java | UTF-8 | 1,443 | 2.125 | 2 | [] | no_license | package in.co.foodamigo.customer.module.catalogue.view.component;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.util.Constant;
import... | true |
761dccb487f58b9713358b6de70b005e970eb748 | Java | qu1nzy/DiplomShop | /src/main/java/by/tms/Diplom/Controller/UserController.java | UTF-8 | 10,943 | 2.328125 | 2 | [] | no_license | package by.tms.Diplom.Controller;
import by.tms.Diplom.Entity.*;
import by.tms.Diplom.Service.Exception.UserNotFoundException;
import by.tms.Diplom.Service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.Authenticati... | true |
3a64492f01188ed3d5e029272a6a628085d75bcb | Java | bmustiata/TilePainter | /src/main/java/hellofx/Gameplay.java | UTF-8 | 4,048 | 2.140625 | 2 | [] | no_license | package hellofx;
import hellofx.dialogs.atoms.ViewAtoms;
import hellofx.fheroes2.agg.Agg;
import hellofx.fheroes2.common.Engine;
import hellofx.fheroes2.common.H2Point;
import hellofx.fheroes2.common.H2Rect;
import hellofx.fheroes2.game.Game;
import hellofx.fheroes2.gui.GameArea;
import hellofx.fheroes2.gui.LevelKind;... | true |
b41dfb303a9a3d014ee41e37fe565f7a5076eae3 | Java | KrishnaVamsii/springpractice | /src/main/java/com/practice/spring/basic/springpractice/repository/SpringRepository.java | UTF-8 | 458 | 1.84375 | 2 | [] | no_license | package com.practice.spring.basic.springpractice.repository;
import com.practice.spring.basic.springpractice.model.UserRoles;
import org.h2.engine.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
public interface SpringRepository extends JpaRepo... | true |
8f36e52de0c51fba8ab0f5a89c37c39604226182 | Java | jjk0400/junjunggyu.book | /junjunggyu.book/src/junjunggyu/book/support/dao/NoticeDao.java | UTF-8 | 244 | 2.046875 | 2 | [] | no_license | package junjunggyu.book.support.dao;
import java.util.List;
import junjunggyu.book.support.domain.Notice;
public interface NoticeDao {
List<Notice> getNotices();
Notice getNotice(int noticeNum);
int addNotice(Notice notice);
}
| true |
a2ec55bb8c8454bf4fd4cef1c696894d1e980431 | Java | weltond/DataStructure | /LeetCode/dp/Lc983MinCostForTickets.java | UTF-8 | 3,435 | 3.5625 | 4 | [] | no_license | // https://leetcode.com/problems/minimum-cost-for-tickets/
/**
Input: days = [1,4,6,7,8,20], costs = [2,7,15]
Output: 11
Explanation:
For example, here is one way to buy passes that lets you travel your travel plan:
On day 1, you bought a 1-day pass for costs[0] = $2, which covered day 1.
On day 3, you bought a 7-day... | true |
a89c93b6ecedf0b27c17a44e5037f43ea607adc2 | Java | quangngoctran/oop_javafx_demo | /src/sample/Main.java | UTF-8 | 1,668 | 2.671875 | 3 | [] | no_license | package sample;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.image.ImageView;
import javafx.scene.layout.GridPane;
import javafx.stage.Stage;
public class Main extends Application {
private GridPane createGridPane... | true |
002c647b175db63b47735afe2234e064cb47afad | Java | jzirkin/cmsc436-feelings_diary | /app/src/main/java/cmsc436/feelingsdiary/ForgotPasswordActivity.java | UTF-8 | 2,798 | 2.390625 | 2 | [] | no_license | package cmsc436.feelingsdiary;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.text.TextUtils;
import android.view.View;
import android.view.inputmethod.InputMethodManager;
import android.widget.Button;... | true |
38968e7cc4cab6460e5fb602e08a20cdb24460ed | Java | ephonsun/mircredit | /biz/loan/src/main/java/com/banger/mobile/facade/impl/LnRejectCustomerServiceImpl.java | UTF-8 | 3,790 | 2.21875 | 2 | [] | no_license | package com.banger.mobile.facade.impl;
import com.banger.mobile.Page;
import com.banger.mobile.PageUtil;
import com.banger.mobile.dao.loan.LnRejectCustomerDao;
import com.banger.mobile.domain.model.loan.LnRejectCustomer;
import com.banger.mobile.facade.loan.LnRejectCustomerService;
import org.apache.log4j.Logger;
impo... | true |
c3319d8f4c7562b35622ba002ba27fa9d5ef4df2 | Java | NikIshmametev/hh-backend-homework | /backend/src/main/java/ru/hh/backend/DAO/VacancyDao.java | UTF-8 | 959 | 2.46875 | 2 | [] | no_license | package ru.hh.backend.DAO;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import ru.hh.backend.Entity.Vacancy;
import org.springframework.stereotype.Repository;
import javax.transaction.Transactional;
import java.util.List;
import java.util.Optional;
@Repository
public class VacancyDao
{
priv... | true |
2155e765b0b7fb706c3fc7691938131ea3c0db67 | Java | jxcpu2008/internet-finance-qhhc | /internet-finance-admin/src/main/java/com/hc9/model/RepaymentSign.java | UTF-8 | 3,246 | 1.851563 | 2 | [] | no_license | package com.hc9.model;
import com.hc9.common.constant.Constant;
import com.hc9.common.util.DateUtils;
import com.hc9.common.util.StringUtil;
import com.hc9.dao.entity.Userbasicsinfo;
/**
* 还款提交数据及同步返回数据
* @author yu 2014-09-12
*
*/
public class RepaymentSign {
/**
* 商户签约订单号
*/
private String... | true |
39d299a023923604b14d2ccaa660c8e99da795d4 | Java | Romanyuta-as/JavaSchool | /source/ClassLoaders/Main.java | UTF-8 | 1,137 | 2.875 | 3 | [] | no_license | package ClassLoaders;
import java.lang.reflect.Method;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLClassLoader;
/**
* Created by Student on 01.08.2016.
*/
public class Main {
public static void main(String[] args) {
//System.out.println("1");
//try {
/... | true |
86d823cf2b1e1378b54699ffaba5edf8f966c56e | Java | timzschernitz/pokerStats | /src/main/java/edu/matc/controller/LoginFailure.java | UTF-8 | 1,405 | 2.546875 | 3 | [] | no_license | package edu.matc.controller;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSessi... | true |
19297913c9e37b3432762a93cc55a29fc48a0f0c | Java | midlocke/snake | /lapm-profiler/src/main/java/com/whhxz/snake/lapm/profiler/instrument/javassist/JavaAssistInstrumentClass.java | UTF-8 | 2,554 | 2.375 | 2 | [
"MIT"
] | permissive | package com.whhxz.snake.lapm.profiler.instrument.javassist;
import com.whhxz.snake.lapm.core.interceptor.InterceptorRegistry;
import com.whhxz.snake.lapm.core.interceptor.MethodAroundInterceptor;
import com.whhxz.snake.lapm.profiler.instrument.InstrumentClass;
import javassist.CannotCompileException;
import javassist.... | true |
418569209c102487033cb6b00286886deb62dfa8 | Java | sjnyos/androidtripbook | /app/src/main/java/com/machamasisuraj/socialapp/Adapter/UserListAdapter.java | UTF-8 | 2,200 | 2.359375 | 2 | [] | no_license | package com.machamasisuraj.socialapp.Adapter;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
... | true |
2c453b6bb87f1ee59c620506da689f5f0b3970cd | Java | liujinsheng0616/jsrml-all | /jsrml-common/src/main/java/org/jsrml/common/persistence/BaseException.java | UTF-8 | 812 | 2.4375 | 2 | [] | no_license | package org.jsrml.common.persistence;
@SuppressWarnings("serial")
public class BaseException extends Exception {
private int code;
private String codeStr;
public final static String NECESSARY_PARAM_NULL = "necessary_param_null"; // 缺少必需的参数
public final static String ENTITY_NOT_FOUND = "entity_not_found"; // 实体不... | true |
274a3951054cc901975d200f14733e9eefa83bbb | Java | Alexey79cs50/Java_introduction_course | /HomeWork10/Generics.java | UTF-8 | 1,236 | 2.890625 | 3 | [] | no_license | package HomeWork10;
final public class Generics extends HealthCare {
boolean prescription;
int batchNumber;
public Generics() {
}
public Generics(String name, int skuCode, int casePerPallet, boolean onStock, String brand, double unitPrice, boolean prescription, int batchNumber) {
... | true |
89c80dfd5d66da784bd8a1aa98fec2e135359611 | Java | tomidelucca/JourneyToMars | /src/main/java/ss/grupo3/tp4/observers/CollisionDetectorObserver.java | UTF-8 | 1,554 | 2.84375 | 3 | [] | no_license | package ss.grupo3.tp4.observers;
import ss.grupo3.tp4.logger.LogType;
import ss.grupo3.tp4.logger.Logger;
import ss.grupo3.tp4.mars.JourneyToMars;
import ss.grupo3.tp4.models.Particle;
import ss.grupo3.tp4.simulation.Simulation;
import ss.grupo3.tp4.simulation.SimulationObserver;
public class CollisionDetectorObserve... | true |
0d143bf47ab81d4e2603afba25783b29cbf40e1f | Java | jetsetpaul/refugapp | /app/src/main/java/io/github/jetsetpaul/refugapp/activity/MainActivity.java | UTF-8 | 3,613 | 2.15625 | 2 | [] | no_license | package io.github.jetsetpaul.refugapp.activity;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.widget.Toast;
import java.util.ArrayList;
import java.... | true |
2766084f2ce0314600909bdf020d181290e35d10 | Java | phwd/quest-tracker | /hollywood/com.oculus.browser-base/sources/defpackage/AbstractC0960Ps0.java | UTF-8 | 460 | 1.523438 | 2 | [] | no_license | package defpackage;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
/* renamed from: Ps0 reason: default package and case insensitive file... | true |
1f9f0567f45f2a2c64fec1da17b5375b9d6f44ea | Java | PengPengCheung/JavaDesignPattern | /src/proxypattern/Proxy.java | UTF-8 | 263 | 2.390625 | 2 | [] | no_license | package proxypattern;
public class Proxy extends Subject{
private RealObject realObject;
@Override
public void request() {
// TODO Auto-generated method stub
if(realObject == null){
realObject = new RealObject();
}
realObject.request();
}
}
| true |
5e96b65e8c149c3006ce68f81c7926879cca1a47 | Java | mchowd13/cse360assign2 | /SimpleList.java | UTF-8 | 4,240 | 4.375 | 4 | [] | no_license | /**
* @author M Redwan Chowdhury
* @class ID 386
* @Assignment Assigment #2
* @Description This file creates a list object using an array of integers.
* It adds basic operations that you can expect from a list object. Updated from assignment one.
*/
public class SimpleList {
//This class acts as ... | true |
b595fe3ab800989f340d560d289f8500b3351112 | Java | ThePBone/BudsProAnalysis | /com.samsung.accessory.atticmgr/sources/com/accessorydm/ui/dialog/model/DownloadRetryConfirmModel.java | UTF-8 | 4,378 | 1.609375 | 2 | [] | no_license | package com.accessorydm.ui.dialog.model;
import com.accessorydm.XDMDmUtils;
import com.accessorydm.agent.XDMTask;
import com.accessorydm.agent.fota.XFOTADl;
import com.accessorydm.agent.fota.XFOTADlAgentHandler;
import com.accessorydm.db.file.XDBFumoAdp;
import com.accessorydm.db.file.XDBPostPoneAdp;
import co... | true |
808ec6f7333ee310b9888dbeb3d7cabb6692e20e | Java | saadiboune/eapplication-deploy | /src/main/java/com/eapplication/eapplicationback/constantes/Comments.java | UTF-8 | 1,013 | 1.789063 | 2 | [] | no_license | package com.eapplication.eapplicationback.constantes;
public class Comments {
public static String NODE_TYPE_START = "// les types de noeuds (Nodes Types) : nt;ntid;'ntname'";
public static String ENTRY_START = "// les noeuds/termes (Entries) : e;eid;'name';type;w;'formated name'";
public static String REL... | true |
66907a3985554c55f8adb9758ea29a06759888e8 | Java | Exeter/163 | /back/server/src/ecc/_163/game/RoomRules.java | UTF-8 | 1,947 | 3.515625 | 4 | [
"MIT"
] | permissive | package ecc._163.game;
/**
* stores information about the rules of 163 for specific rooms
*/
final public class RoomRules {
/**
* number of players required before this room begins rounds of 163
*/
final public int m_numPlayers;
/**
* time per round of 163 in this room
*/
final public int m_roundDura... | true |
4237d6c56632377133c0f238e800ba6393a23c73 | Java | RomeoMedoro/sample_code | /JavaPrograms/RockPaperScissor/src/rockpaperscissor/RockPaperScissor.java | UTF-8 | 3,341 | 3.78125 | 4 | [] | no_license | /*
* Romeo Medoro.
* Intro to Java
* 9/23/2017.
* A simple rock, paper, scissor game.
*/
package rockpaperscissor;
import java.util.Scanner;
public class RockPaperScissor {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
// Variable declarations.
... | true |
6cae30d15b2e744cb32cb03fbc15ce679f608ea8 | Java | VictorEmmanuelGarcia/pet-shelter | /src/main/java/eu/lpinto/petshelter/persistence/entities/User.java | UTF-8 | 6,271 | 2.421875 | 2 | [] | no_license | /**
* User.java Created on 12-Aug-2014, 21:15:03
*
* petshelter-webapp petshelter-webapp
*
* Copyright (c) Pet Shelter - www.petshelter.info
*/
package eu.lpinto.petshelter.persistence.entities;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Iterator;
import ... | true |
4dad8f3d17d785b7dcb68581ef005b791adf9266 | Java | hanwix2/Denti_Check | /DentiCheck_test03/src/client/Denti_UI2_2_7.java | UTF-8 | 1,255 | 2.625 | 3 | [] | no_license | package client;
import java.awt.EventQueue;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
public class Denti_UI2_2_7 extends JFrame {
private JPanel contentPane;
/**
* Launch the application.
*/
public st... | true |
ae41cc3107720cd0c7dd00daa39f10b06f250d3f | Java | anandj123/hackerrank | /robotonmooneasy-java/RobotOnMoonEasyTest.java | UTF-8 | 2,154 | 2.5625 | 3 | [] | no_license | import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
public class RobotOnMoonEasyTest {
protected RobotOnMoonEasy solution;
@Before
public void setUp() {
solution = new RobotOnMoonEasy();
}
@Test(timeout = 2000)
public void testCase0() {
String[] board = n... | true |
6c28f97b57dcaad74ed2562a91d26c23f21d9ddd | Java | MateusDeFreitasRosa/TrabalhoFinalProgramacaoDispositiveisMoveis | /app/src/main/java/com/example/stack10/view/createPost.java | UTF-8 | 3,294 | 2.109375 | 2 | [] | no_license | package com.example.stack10.view;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.widget.EditText;
import android.widget.Toast;
import com.example.stack10... | true |
46d00f631b9f22b006d6ee7cf96ae001be659bf6 | Java | juemuren4449/QiNiuUpLoad-idea | /src/com/juemuren/EncryptHelper.java | UTF-8 | 1,299 | 2.890625 | 3 | [] | no_license | package com.juemuren;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.UUID;
/**
* 加密辅助类
*
* @author cychen
*/
public class EncryptHelper {
/**
* 构造函数
*/
private EncryptHelper() {
}
/**
* 转化MD5编码
*
* @param value 字符串值
... | true |
bdbb65b68ba0b557af378470c61e67e3cbe5e0d7 | Java | huyhuynh1905/Clone-App-Lazada | /AppLazada/app/src/main/java/com/huyhuynh/applazada/fragment/fragmentsanpham/FragmentLoadImageChiTietSanPham.java | UTF-8 | 1,050 | 1.789063 | 2 | [] | no_license | package com.huyhuynh.applazada.fragment.fragmentsanpham;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragmen... | true |
7b8e258a8467c0104793cef3c91a4c13c5150f81 | Java | algodat/ad-examples | /src/de/hsog/maxsubarray/Integer3.java | UTF-8 | 856 | 3.453125 | 3 | [] | no_license | package de.hsog.maxsubarray;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.util.Locale;
/**
* Integer3 dient der Abspeicherung
* zweier Arrayindices und einer Summe
* @author Trahasch
*
*/
public class Integer3 {
int lower, upper;
long sum;
Integer3() {
set(0, -1, 0);
}
Int... | true |
a7bbf41b0006e865aa933aa449abbd5e53c41855 | Java | fraubatz/fluffy-octo-umbrella | /Beispiel1/SmGroupLayer.java | ISO-8859-1 | 9,992 | 2.640625 | 3 | [] | no_license | import java.awt.*;
import java.util.*;
// ino.class.SmGroupLayer.3122.description type=line
// Die Klasse SmGroupLayer ist die Layerschicht fr alle Gruppenobjekte.
// ino.end
// ino.class.SmGroupLayer.3122.declaration
public class SmGroupLayer extends SmLayer
// ino.end
// ino.class.SmGroupLayer.3122.body
... | true |
6436c8a52608c1dc05f33e45f0d968361cb6bd62 | Java | sebastianrembisz/ssna-hsbc-srembisz | /src/test/java/SimpleSocialNetworkAppEnd2EndTest.java | UTF-8 | 5,561 | 2.25 | 2 | [] | no_license | import app.Application;
import app.api.Post;
import app.api.PostRequest;
import app.api.User;
import io.restassured.RestAssured;
import io.restassured.mapper.TypeRef;
import io.restassured.response.Response;
import io.restassured.specification.RequestSpecification;
import org.apache.commons.lang3.RandomStringUtils;
imp... | true |
2fc02f56771e900cf9535c1a9d44b5ec78dfbb64 | Java | bibixledo/servidorClinica | /src/Persistencia.java | UTF-8 | 13,686 | 2.765625 | 3 | [] | no_license |
import java.util.ArrayList;
import java.util.List;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Iterator;
import java.util.logging.Level;
import java.util.logging.Logger;
public class Persi... | true |
e5ef998de2c2394ead77e892fc8accf381712b7c | Java | zhangzlyuyx/jeecms81 | /src/src/main/java/com/jeecms/cms/action/front/VoteAct.java | UTF-8 | 5,101 | 1.84375 | 2 | [
"Apache-2.0"
] | permissive | package com.jeecms.cms.action.front;
import static com.jeecms.cms.Constants.TPLDIR_SPECIAL;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.UUID;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
... | true |
151d8db54dc634725af4134743e6f8ae05db1029 | Java | zhuobinchan/songcai_LKCG | /src/com/songcai/lkcg/dao/impl/CommodityDaoImpl.java | WINDOWS-1252 | 776 | 2.203125 | 2 | [] | no_license | package com.songcai.lkcg.dao.impl;
import java.util.List;
import com.songcai.lkcg.dao.CommodityDao;
import com.songcai.lkcg.domain.Commodity;
public class CommodityDaoImpl extends BaseDaoImpl implements CommodityDao {
@Override
public List<Commodity> getCommodityByShopId(Long shop_id) {
String hql = ... | true |
483fed5d723d46aefd268799a4de609772d61080 | Java | woshihuixiong/LeetCode | /Generate_Parentheses/src/Generate_Parentheses.java | UTF-8 | 1,832 | 3.71875 | 4 | [] | no_license | import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import java.util.Stack;
public class Generate_Parentheses {
public static void main(String[] args) {
Solution ss=new Solution();
Scanner sc = new Scanner(System.in);
System.out.print("Please input the n:");
int n = sc.nextI... | true |
f69530768e3e1664928e1363db0e4122abfa12e5 | Java | nguyenmagician/truemart | /src/main/java/com/example/truemart/DTO/CategoryFront.java | UTF-8 | 505 | 2 | 2 | [] | no_license | package com.example.truemart.DTO;
import lombok.Data;
import java.util.ArrayList;
import java.util.List;
@Data
public class CategoryFront {
private String name;
private String category_url;
private String id_url;
private FeatureProduct fproduct;
private List<DoubleProduct> dlist;
public Cate... | true |
194cc894e48a308ba068d00d6a65b04f033b38be | Java | joeysindayen/shoppingcartrevisited | /ShoppingCartRevisited/src/test/java/com/foo/shoppingcarttdd/PricingRulesTest.java | UTF-8 | 1,776 | 2.84375 | 3 | [] | no_license | package com.foo.shoppingcarttdd;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.math.BigDecimal;
import java.util.Currency;
import java.util.Iterator;
import java.util.Locale;
import org.junit.Before;
import org.junit.Test;
public class PricingRulesT... | true |
c176db83be4aeb1577d5d7e52e4cd32da7ff8465 | Java | vaingmuny/tomcat-spring-jta-atomikos | /connection-factory/src/test/java/com/mcnc/commons/dbcp/security/TestCipherProvider.java | UTF-8 | 1,514 | 2.4375 | 2 | [] | no_license | package com.mcnc.commons.dbcp.security;
import static org.junit.Assert.*;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import javax.crypto.BadPaddingException;
import javax.crypto.IllegalBlockSizeException;
import javax.crypto.NoSuchPaddingException;
import org... | true |
98f9f3dac5aed9e28e02717494cf7929cf00c9a5 | Java | Searous/Aggression-Sequence | /src/main/java/com/game/main/SpriteSheet.java | UTF-8 | 1,078 | 3.015625 | 3 | [] | no_license | package com.game.main;
import java.awt.Image;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import javax.imageio.ImageIO;
public class SpriteSheet {
private static Map<String, Image> sheet = new HashMap();
public void register(String name, String path) {
Game.step = "Register spri... | true |
532c0c96454280133018ef55f6f83821f2cd1dcc | Java | lynas/LearningSpringFrameworkFromScratch | /src/main/java/com/lynas/interfaces/Quest.java | UTF-8 | 123 | 1.6875 | 2 | [] | no_license | package com.lynas.interfaces;
/**
* Created by lynas on 1/9/16.
*/
public interface Quest {
public void emberk();
}
| true |
2f953d226038b54caee16f516adeae0215143dda | Java | GeorgeHenriqueGH/Exercicios-Curso-Nelio-Alves-Java | /PolimorfismoJava/src/view/Selecionar_Carro.java | UTF-8 | 417 | 2.1875 | 2 | [] | no_license | package view;
import utilitarios.CaixasDeDialogo;
import seletor.SelecaoMarca;
public class Selecionar_Carro {
public static void main(String[] args) { //Classe com metodo de entrada main das classes de polimorfismo
CaixasDeDialogo caixa = new CaixasDeDialogo();
caixa.CaixaDiaLogo("Carros Polimorfismo");
Se... | true |
62329bea1b442281508b69857ff4712aac9226b7 | Java | jeff137/Prediction-of-PCC-Type-Cement-Demand-Using-the-Fuzzy-Tsukamoto-Method | /src/fuzzytsukamoto/Awal.java | UTF-8 | 48,248 | 2.203125 | 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 fuzzytsukamoto;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statemen... | true |
fbdb52ca1be34a0d4879b71cd5a90da4eef5769a | Java | StefanieLily/Automation | /src/test/WebTest/com/webtest/scm/base/DispatchBase.java | UTF-8 | 2,271 | 1.976563 | 2 | [] | no_license | package com.webtest.scm.base;
import org.junit.Assert;
import org.openqa.selenium.By;
import com.webtest.scm.config.Log;
import com.webtest.scm.locator.Locator;
import com.webtest.scm.page.DispatchPage;
public class DispatchBase extends DispatchPage {
public static String DeliveryStatus;
public static String Out... | true |
8cbb9c90eee170e15c579091cf95a71238e7a7dd | Java | IgorKhorev1/prak | /src/com/company/Practice4/task1/Fruit.java | UTF-8 | 354 | 2.9375 | 3 | [] | no_license | package com.company.Practice4.task1;
import java.util.Random;
public class Fruit {
int weight;
public Fruit(int weight) {
this.weight = weight;
}
public Fruit() {
weight = new Random().nextInt(100);
}
@Override
public String toString() {
return "->" +
... | true |
25b27cc8c1ea2ef5aca5629c27c69e42f409f1e6 | Java | jashbant/ImageSearch2 | /app/src/main/java/com/search/image/imagesearch/HomeActivity.java | UTF-8 | 859 | 2.046875 | 2 | [] | no_license | package com.search.image.imagesearch;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import com.search.image.imagesearch.view.ImageViewFragment;
public... | true |
5bb45cb5cdeb380e62660f6aaafef0d87258a212 | Java | whatafree/JCoffee | /benchmark/bigclonebenchdata_partial/22423727.java | UTF-8 | 1,127 | 3.265625 | 3 | [] | no_license |
class c22423727 {
public void copyFile(String source_file_path, String destination_file_path) {
FileWriter fw = null;
FileReader fr = null;
BufferedReader br = null;
BufferedWriter bw = null;
File source = null;
try {
fr = new FileReader(source_file_pa... | true |
ad556f48f6325b1314298d96b2ee7ebc8cbed71d | Java | JeanlucE/LOLChampionsInfo | /src/ActiveAbility.java | UTF-8 | 1,420 | 2.515625 | 3 | [] | no_license | import javafx.scene.image.Image;
import org.json.JSONObject;
/**
* Created with IntelliJ IDEA.
* User: user
* Date: 10/29/14
* Time: 3:57 PM
*/
public class ActiveAbility {
private AbilityDescription description;
private String name;
private Type type;
private Image image;
public ActiveAbilit... | true |
22f20b3b74f7d4a6fd9f287680c544fdb3cc48bf | Java | mthomas8/YearUp | /Inheritance/Programmer.java | UTF-8 | 205 | 2.6875 | 3 | [] | no_license |
public class Programmer extends Worker
{
public Programmer()
{
statements = "I made a program.";
}
public static void main(String[] args)
{
Programmer Kim = new Programmer();
Kim.DoWork();
}
} | true |
f4c69d89226e76a75b96935c81e7c1cc797010c1 | Java | FilosGabriel/JavaLabs | /ex1/src/ex1/Main.java | UTF-8 | 780 | 3.734375 | 4 | [] | no_license | package ex1;
public class Main {
public static int computeNumber()
{
int n = (int)(Math.random() * 1_000_000);
n = (n*3 + 0b10101 + 0xFF) * 6;
return n;
}
public static int sumOfNumber(int n)
{
int sum=0;
while (n>0)
{
sum += n%10;
... | true |
3e8b0777da4f1f294bc351392cc9c67313fbebc9 | Java | zdd0604/BJMZ | /hJNerpAndroid_12/src/main/java/com/mznerp/business/activity/HjUpload.java | UTF-8 | 8,263 | 1.859375 | 2 | [] | no_license | package com.mznerp.business.activity;
import android.annotation.SuppressLint;
import android.content.Context;
import android.os.Handler;
import android.os.Message;
import android.util.Log;
import com.mznerp.common.Constant;
import com.mznerp.common.EapApplication;
import com.mznerp.net.HttpClientManager;
import com.m... | true |