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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
fe1d5386e37670d651a851a9dc40a9528ae86888 | Java | aleepolicarps/StarWars2D | /src/main/java/upm/cmsc/starwars/states/StoryBoardState.java | UTF-8 | 1,629 | 2.765625 | 3 | [] | no_license | package upm.cmsc.starwars.states;
import org.lwjgl.input.Mouse;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.Image;
import org.newdawn.slick.Input;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.state.BasicGameState;
import org.newdawn.slick.sta... | true |
f3c156e4e23792512485534973a88af87a8ee3ff | Java | chanthoeurntuon20/backup_codeb22 | /backup-b22/lesson/src/practice1/Person.java | UTF-8 | 418 | 3.375 | 3 | [] | no_license | package practice1;
public class Person {
String name;
private int age ;
Person(){
}
Person(String name){
this.name = name;
}
Person(int age){
this.age = age;
}
Person(String name, int age){
this.name = name;
setAge(age);
getAge();
}
void setAge(int age) {
this.age = age;
... | true |
96ead4f639359f8172c8a5967f9f541d78c93f1f | Java | ShoyoNara/Revisao05 | /src/revisao05/Revisao05.java | UTF-8 | 2,675 | 3.734375 | 4 | [] | no_license |
package revisao05;
import javax.swing.JOptionPane;
/**
*
* @author samuc
*/
public class Revisao05 {
/**
* Uma empresa concederá um aumento de salário aos seus funcionários,
* variável de acordo com o cargo, conforme a tabela abaixo. Faça um
* programa que leia o salário e o código do cargo de... | true |
f984bd19923772161e09f8cd062daf7027781914 | Java | song121382/aizuji | /microservice-loverent-risk-intf-v1/src/main/java/org/gz/risk/common/request/RiskReq.java | UTF-8 | 606 | 1.875 | 2 | [] | no_license | package org.gz.risk.common.request;
import java.io.Serializable;
public class RiskReq implements Serializable {
private static final long serialVersionUID = 2708680782712837058L;
/*
* 订单号
*/
private String loanRecordId;
/**
* {@link CreditNode}
* 审批阶段,目前只支持1审和3审
*/
private String phase;
public String... | true |
e62ec2702edbee078f8e95638ef6bfdf4d195650 | Java | jleifer/CodeLavender | /src/cLPackage/DeleteTopicServlet.java | UTF-8 | 1,432 | 2.359375 | 2 | [] | no_license | package cLPackage;
import cLPackage.dataStore.Topic;
import com.googlecode.objectify.ObjectifyService;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.io.IOException;
import java.util... | true |
d80b09b71611087538115a189600df6588d4e945 | Java | fibgit/api_testing | /src/test/java/cityNamesTests.java | UTF-8 | 1,338 | 2.171875 | 2 | [] | no_license | import static io.restassured.RestAssured.*;
import static org.hamcrest.Matchers.equalTo;
import io.restassured.http.ContentType;
import org.junit.*;
public class cityNamesTests {
@Test
public void beverlyHillsTest(){
given().
when().
get("http://zippopotam.us/us/90210").
... | true |
e8b4b92b95ca0b87efb2d97306c108c6bfbdb959 | Java | ridwan3110/Apotek-Sederhana-Latihan | /Apotek/src/com/ridwan/dialog/Trx_Bytgl.java | UTF-8 | 5,534 | 1.851563 | 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.ridwan.dialog;
import com.ridwan.DAO.TransaksiDao;
import com.ridwan.Interface.TransaksiInterface;
import com.ridwan.model... | true |
10f325438594bd9fc62d7b18593c09c2540e761a | Java | 27786653/SSO | /ssoserver/src/org/jasig/cas/authentication/handler/UsernamePasswordCaptchaCredential.java | UTF-8 | 559 | 2.140625 | 2 | [] | no_license | package org.jasig.cas.authentication.handler;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import org.jasig.cas.authentication.UsernamePasswordCredential;
public class UsernamePasswordCaptchaCredential extends
UsernamePasswordCredential {
/**
*
*/
private static final lon... | true |
74a0e14fe62f9f062a4e89df68f8d822e81a3f02 | Java | haroldoramirez/biblioteca | /app/validators/SiteFormData.java | UTF-8 | 1,725 | 2.84375 | 3 | [
"Apache-2.0",
"MIT"
] | permissive | package validators;
import models.Pais;
import org.apache.commons.validator.routines.UrlValidator;
import play.data.validation.ValidationError;
import java.util.ArrayList;
import java.util.List;
public class SiteFormData {
public String titulo = "";
public String url = "";
public String pais = "";
... | true |
646cb576baba43c44409e757199494436e54f7f4 | Java | 995270418L/java_learn | /src/main/java/com/steve/ifeve/multipartline/chapter10/Taxi2.java | UTF-8 | 1,363 | 3.015625 | 3 | [] | no_license | package com.steve.ifeve.multipartline.chapter10;
import net.jcip.annotations.GuardedBy;
import net.jcip.annotations.ThreadSafe;
import java.awt.*;
import java.util.HashSet;
import java.util.Set;
/**
* Created by liu on 6/4/17.
* 线程安全的Taxi and Dispatcher 类,是通过锁住关键部分来实现的,而不是整个方法
*/
@ThreadSafe
public class Taxi2 {... | true |
923f55ec8286113a994eb93a3fdf95f56a3f6365 | Java | lishuangwei/AccountManager | /AccountManager/app/src/main/java/com/android/accountmanager/ui/account/SelectGenderFragment.java | UTF-8 | 3,700 | 2.21875 | 2 | [] | no_license | package com.android.accountmanager.ui.account;
import android.app.AlertDialog;
import android.app.Dialog;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.util.Log;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.Window;
import android.view.Window... | true |
3e8d992bf231c83935bc42b0eec854c4b433b64b | Java | akityty/module2-trien-khai-LinkedList-giong-java.util.LinkedList | /src/MyLinkedList.java | UTF-8 | 2,777 | 3.546875 | 4 | [] | no_license | public class MyLinkedList<E> {
public MyLinkedList() {
}
class Node {
private Node next;
private Object data;
private Node(Object data) {
this.data = data;
}
private Object getData() {
return this.data;
}
}
private Node head... | true |
9c966cdcb44f3c33912d2e96ad57c628e6c28cf1 | Java | jiaoyunliang/nrsd | /src/main/java/com/rsd/service/impl/BnzPackageRecordServiceImpl.java | UTF-8 | 2,001 | 2.0625 | 2 | [] | no_license | package com.rsd.service.impl;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.rsd.domain.BnzPackageRecordModel;
import com.rsd.mapper.BnzPackageRecordMapper;
import com.rsd.service.BnzPackageRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.... | true |
a3bb2e55bb4164a82e94992bfff459146e91e36f | Java | bodar/shavenmaven | /test/com/googlecode/shavenmaven/config/SectionedPropertiesTest.java | UTF-8 | 1,158 | 2.59375 | 3 | [] | no_license | package com.googlecode.shavenmaven.config;
import com.googlecode.totallylazy.Option;
import org.junit.Test;
import java.util.Properties;
import static com.googlecode.shavenmaven.config.SectionedProperties.sectionedProperties;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is... | true |
15b0127b61e24fc49d499dcdc4b8dc1896faa435 | Java | NobleYd/JavaIntroduction | /main/src/java/文件.java | UTF-8 | 151 | 1.804688 | 2 | [] | no_license | import java.io.File;
public class 文件 {
public static void main(String[] args) {
File dir ;
// dir.listFiles(filter)
}
}
| true |
976e1363a3c52466676352be80ddcb6e227f415d | Java | biligeny/pega-logviewer | /src/main/java/com/pega/gcs/logviewer/catalog/HotfixEntryDetailPanel.java | UTF-8 | 15,825 | 1.765625 | 2 | [
"Apache-2.0"
] | permissive | /*******************************************************************************
* Copyright (c) 2017 Pegasystems Inc.
*
* Contributors:
* Manu Varghese
*******************************************************************************/
package com.pega.gcs.logviewer.catalog;
import java.awt.Color;
im... | true |
d3137a8163a9c8225c742862b6cb940f837814ac | Java | brunomendola/spring-jpa-composite-pk-with-relationships | /src/main/java/net/brunomendola/demo/spring/jpa/compositepkwithrelationships/model/ProfileAction.java | UTF-8 | 987 | 2.109375 | 2 | [] | no_license | package net.brunomendola.demo.spring.jpa.compositepkwithrelationships.model;
import lombok.*;
import javax.persistence.*;
import java.io.Serializable;
@Data
@NoArgsConstructor(access = AccessLevel.PROTECTED)
@EqualsAndHashCode(of = {"profile", "action"}, callSuper = false)
@ToString(of = {"profile", "action"})
@Enti... | true |
728d9dd31dff07a7641dac4927db2ed67956eb62 | Java | xxStevensxx/Soc_projet6 | /PayMyBudy/src/test/java/com/pay/my/budy/controller/MainControllerTest.java | UTF-8 | 1,544 | 1.6875 | 2 | [] | no_license | package com.pay.my.budy.controller;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import or... | true |
3e6dac5cfe1b9c3ecfae62dcd6f42e37b2e845a8 | Java | wang-ke01/Java01_List_Set_Map | /day16_JDK5新特性/src/cn/itcast03/ListDemo.java | GB18030 | 897 | 4.09375 | 4 | [] | no_license | package cn.itcast03;
import java.util.ArrayList;
import java.util.Random;
public class ListDemo {
public static void main(String[] args) {
/*
* ϵǶױ
* ȡ101-20֮Ҫظ
*
* A:Ķ
* B:һ洢ļ
* C:һͳƱ0ʼ
* D:жͳƱǷС10
* ǣȲһǷڣھӣCount++ھͲ
*
* E:
* */
Random rd = new Random();
ArrayLis... | true |
f6181fa5ade5519658312a82e0ede5a2e31936ba | Java | zsmome/Teacher | /day09_homework_beating3_baseadapter/src/main/java/com/zsmome/day09_homework_beating3_baseadapter/util/JSONParseUtil.java | UTF-8 | 2,303 | 2.765625 | 3 | [] | no_license | package com.zsmome.day09_homework_beating3_baseadapter.util;
import android.os.AsyncTask;
import android.util.Log;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
/**
* 解析JSON
* Created by Administrator on 2017/3/26.
*/
public class JSONParseUtil {
... | true |
76f782a2fcd432d9e7a27ca22017bc7c05571e7c | Java | danmoct/Gas-Pump-Simulator | /SRC/Strategy_Classes/Ready_M1.java | UTF-8 | 193 | 2.1875 | 2 | [] | no_license |
package Strategy_Classes;
//strategy pattern
public class Ready_M1 extends Ready_Msg {
public void ready_msg()
{
System.out.println("\nREADY TO PUMP. \n");
}
}
| true |
acc975628a7b484396f78403783bd9b6a1895e30 | Java | justfordream/my-2 | /CMUPayWebPay/src/main/java/com/huateng/bean/CmuPayResponse.java | UTF-8 | 3,601 | 2.28125 | 2 | [] | no_license | package com.huateng.bean;
import org.apache.commons.lang.StringUtils;
import org.codehaus.jackson.annotate.JsonIgnore;
import org.codehaus.jackson.annotate.JsonProperty;
/**
* 省公司网厅->中国移动统一支付系统的“支付”交易<br>
* 支付响应
*
* @author Gary
*/
public class CmuPayResponse {
/**
* 商户标识
*/
@JsonProperty
private String... | true |
eeaf45dd0f8524aa5040243c9a215011e3924dd6 | Java | sofiaasseggaf/EPortfolio | /app/src/main/java/com/project/eportfolio/model/matapelajaran/MsMatapelajaran.java | UTF-8 | 4,833 | 1.953125 | 2 | [] | no_license |
package com.project.eportfolio.model.matapelajaran;
import java.io.Serializable;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class MsMatapelajaran implements Serializable, Parcelable
{
@SerializedNa... | true |
1d5f34eabef674643e68b9312993ec0e7751ffc2 | Java | GabeOchieng/ggnn.tensorflow | /data/libgdx/TiledMapPacker_printUsage.java | UTF-8 | 1,074 | 2.8125 | 3 | [] | no_license | private static void printUsage() {
System.out.println("Usage: INPUTDIR [OUTPUTDIR] [--strip-unused] [--combine-tilesets] [-v]");
System.out.println("Processes a directory of Tiled .tmx maps. Unable to process maps with XML");
System.out.println("tile layer format.");
System.out.println(" --strip-unused... | true |
b9fec784c33f90b19271ed4972f610724c9963cb | Java | brianwalker96/battleJava | /src/Ship.java | UTF-8 | 199 | 1.664063 | 2 | [] | no_license | public class Ship {
int row;
int col;
int direction;
/* 0
3 1
2
*/
int size;
public Ship (){
}
}
| true |
ba9d3e4bf1464dc17067c0a12bd58c6b23f9c3f5 | Java | rezaact/my-cool-apps | /src/main/java/id/co/hans/sample/server/utility/SessionHelper.java | UTF-8 | 2,737 | 2.453125 | 2 | [] | no_license | package id.co.hans.sample.server.utility;
import java.io.FileWriter;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http... | true |
337e9e4410b39406ca3755b10fa7388892426f27 | Java | AdemTEN/Java_Exercises | /Java_EXercises/src/Exercise_01/Exercise_01_12.java | UTF-8 | 542 | 3.921875 | 4 | [] | no_license | /*
(Average speed in kilometers) Assume a runner runs 24 miles in 1 hour, 40 minutes,
and 35 seconds. Write a program that displays the average speed in kilometers per
hour. (Note that 1 mile is 1.6 kilometers.)
*/
package Exercise_01;
public class Exercise_01_12 {
public static void main(String[] args) {
doub... | true |
3b0beb143358eaa0380281cf69ce0279972d572b | Java | AlexMcG/SapientTraining | /JavaProject/src/mainpack/Average.java | UTF-8 | 317 | 3.375 | 3 | [] | no_license | package mainpack;
//Average an array of values.
class Average {
public static void main(String args[]) {
double[] nums = {10.1, 11.2, 12.3, 13.4, 14.5};
double result = 0;
int i;
for (i = 0; i < nums.length; i++) {
result = result + nums[i];
}
System.out.println("Average is " + result / nums.length);
}
} | true |
6352510806a7a68359a7fccdefaefaae05c8a751 | Java | ayceclglgl/realm | /src/test/java/com/realm/controller/RealmControllerTest.java | UTF-8 | 4,740 | 2.1875 | 2 | [] | no_license | package com.realm.controller;
import static org.mockito.ArgumentMatchers.anyLong;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.never;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import static org.springframework.test.web.servlet.request.MockMvc... | true |
b26844d0399589cf1eaecc07cebd44c6c491e2ef | Java | pablopes/projetopais | /src/main/java/br/com/pablopes/searchpais/repository/PaisRepository.java | UTF-8 | 334 | 1.546875 | 2 | [] | no_license | package br.com.pablopes.searchpais.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import br.com.pablopes.searchpais.model.Pais;
public interface PaisRepository extends JpaRepository<Pais, Integer> , JpaSpecificationEx... | true |
db80b80ae499bca543f9e66a80994352bb1477e3 | Java | cescott/AppleCatcher | /AppleCatcher/core/src/com/andersonescott/objects/Entity.java | UTF-8 | 1,189 | 3.15625 | 3 | [
"Apache-2.0"
] | permissive | package com.andersonescott.objects;
import com.badlogic.gdx.graphics.Texture;
public abstract class Entity {
protected double[] coords = new double[2];
protected double[] velocity = new double[2];
protected double[] acceleration = new double[2];
protected Texture image;
public Entity (double[] ... | true |
fffd3b028a5535c9854fcb6d60b407757cf42666 | Java | githubwangxingxin/eclipesuanfa | /suanshu/src/com/wxx/bigdecimaltest/TestHa.java | UTF-8 | 273 | 2.03125 | 2 | [] | no_license | package com.wxx.bigdecimaltest;
import java.util.Random;
public class TestHa {
public static void main(String[] args) {
Random random=new Random();
System.out.println("aaaaaaaasa");
System.out.println("random.nextInt(1000)"+random.nextInt(10000));
}
}
| true |
1023ffb740ce91ff571209f096f981ecb904152d | Java | filsky0599/Progetto-H21 | /server/src/main/java/it/skinjobs/api/ComponentAPI.java | UTF-8 | 6,512 | 2.3125 | 2 | [] | no_license | package it.skinjobs.api;
import it.skinjobs.model.Component;
import it.skinjobs.model.ComponentFamily;
import it.skinjobs.dto.ComponentDTO;
import it.skinjobs.repository.ComponentFamilies;
import it.skinjobs.repository.Components;
import it.skinjobs.utils.Callable;
import java.util.List;
import java.util.Map;
import ... | true |
d723c259a787e19c26c5c41d6937abf7788ec59f | Java | ajeet04/NewsSource | /app/src/main/java/com/nickelfox/ajeet/newsapp/Activities/MainActivity.java | UTF-8 | 6,643 | 1.867188 | 2 | [] | no_license | package com.nickelfox.ajeet.newsapp.Activities;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.net.ConnectivityManager;
import android.support.design.widget.CollapsingToolbarLay... | true |
5e62cf59e9ed9118a7be39c8434b333c013d815b | Java | unlhive/BustersDemise | /BustersDemise/src/main/java/com/michaelstark/bustersdemise/FrequencyDataAdapter.java | UTF-8 | 434 | 2.21875 | 2 | [] | no_license | package com.michaelstark.bustersdemise;
import android.*;
import android.R;
import android.content.Context;
import android.widget.ArrayAdapter;
/**
* Created by mstark on 8/7/13.
*/
public class FrequencyDataAdapter extends ArrayAdapter<Integer>
{
public FrequencyDataAdapter(Context context)
{
super... | true |
13965bda27e6a26bce7f8072d682edb515a0e804 | Java | anhalter42/Minecraft-Bukkit-Building | /src/com/mahn42/anhalter42/building/MarkerStorage.java | UTF-8 | 1,269 | 2.375 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.mahn42.anhalter42.building;
import com.mahn42.framework.BlockRect;
import com.mahn42.framework.IMarker;
import com.mahn42.framework.IMarkerStorage;
import java.util.ArrayList;
import java.util.List;
import o... | true |
95a530b77481196dcb838b673d5d5b4c20b2525d | Java | zhaobingcn/LeetCodeL | /src/com/company/yushi/Sluation.java | UTF-8 | 2,885 | 2.953125 | 3 | [] | no_license | package com.company.yushi;
/**
* Created by zhzy on 2017/9/28.
*/
public class Sluation {
public static void main(String[] args) {
Sluation sluation = new Sluation();
String test = "my.song.mp3 11b\ngreatSong.flac 1000b\nnot3.txt 5b\nvideo.mp4 200b\ngame.exe 100b\nmov!e.mkv 10000b";
... | true |
b64c1f84e985e0591af6e8c7c413004c4e188685 | Java | banyanya/JAVA | /200607/input_keyboard_data1.java | UTF-8 | 885 | 3.203125 | 3 | [] | no_license | // import java.util.Scanner; // Scanner 사용 시 명시 필수!
// class input_keyboard_data1 {
// public static void main(String[] args) {
// Scanner scanner;
// scanner = new Scanner(System.in);
// while(true) {
// int input = -1;
// input = scanner.nextInt();
// ... | true |
8d2f7ea5491e02002d2566b11ec055e94b485219 | Java | RegaladoLeonardo/5IV9-Practica | /FInalCalculadora/app/src/main/java/com/example/calculadora/Raiz.java | UTF-8 | 804 | 2.671875 | 3 | [] | no_license | package com.example.calculadora;
//import javax.swing.JOptionPane;
public class Raiz extends Calculadora{
private double resultado;
public Raiz() {
}
public Raiz(double can1, double canM, double resultado) {
super(can1, canM);
this.resultado = resultado;
}
public void setRes... | true |
d6923a33504628eca71f134da23262d9be6c32c8 | Java | BrunoSilvaATEC/Exercicios_1 | /src/dificuldade1/Exer11.java | ISO-8859-1 | 796 | 3.734375 | 4 | [] | no_license | package dificuldade1;
import java.util.Scanner;
public class Exer11 {
/*Mdia CursoElabore um mtodo devolve a mdia de um curso de curta durao composto por 5 mdulos.
Certifique-se que o seu programa cumpre os seguintes requisitos
Declara um array do tipo double com a dimenso 5
Pede ao utilizador as... | true |
3078303af98536006c821098c396e90870042b8f | Java | mchristensson/ImageIndexer | /persistance/src/main/java/org/mac/nasbackup/persistance/mapper/ImageFileCallbackHandler.java | UTF-8 | 1,464 | 2.390625 | 2 | [
"MIT"
] | permissive | package org.mac.nasbackup.persistance.mapper;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Collection;
import org.mac.nasbackup.persistance.model.DeviceType;
import org.mac.nasbackup.persistance.model.ImageEntry;
import org.mac.nasbackup.persistance.model.Stora... | true |
194bead758aad272405cff6b22b19da23254125c | Java | duygucer/MultiThread | /YAZLAB12/src/yazlab12/YazLab12form.java | UTF-8 | 33,890 | 2.5 | 2 | [] | no_license | package yazlab12;
import java.util.ArrayList;
import java.util.Random;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.SwingUtilities;
/**
*
* @author Duygu
*/
//Sub thread nesnesi oluşturmak için gerekli class
class SubThreadsOlustur {
public int ChildThread = 0;
pub... | true |
c65b3cfc33fd07ea78fe6924f663ad79df8ac812 | Java | kamilBrodziak/guestbook | /src/main/java/helpers/UserHelper.java | UTF-8 | 1,158 | 2.28125 | 2 | [] | no_license | package helpers;
import com.sun.net.httpserver.HttpExchange;
import controller.CookieController;
import dao.LoginDAO;
import dao.SessionDAO;
import model.Login;
import java.sql.SQLException;
public class UserHelper {
private LoginDAO loginDAO;
private SessionDAO sessionDAO;
private CookieController cooki... | true |
e7521566949f884d1cbd8e755bdf24fcaa58ed5e | Java | Pingviii/Java | /src/Lessons/lesson04.java | UTF-8 | 770 | 3.484375 | 3 | [] | no_license | package Lessons;
public class lesson04 {
public static void main(String[] args) {
int i = word("penguin").length();
//System.out.println(i);
//System.out.println(showChar("Oleh",4));
//System.out.println(calculateRetail(5,50));
System.out.println(isPrime(5));
}
public static String word (String word... | true |
d291b8cc1a96b57a23d58a14b6a3fae15e120859 | Java | dalyleide/Microservices-Portifolio | /consumer-pat/consumer-pat-main/src/main/java/br/com/alelo/consumer/consumerpat/data/model/Card.java | UTF-8 | 983 | 2.34375 | 2 | [
"MIT"
] | permissive | package br.com.alelo.consumer.consumerpat.data.model;
import br.com.alelo.consumer.consumerpat.util.TypeCardsEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
@NoArgsConstructor
@AllArgsCo... | true |
8669f05abc78e84f347d6bd5bfdbb5a6f237c2dd | Java | Andyt-Nguyen/java_basics | /methodoverloading/src/MethodOverloading.java | UTF-8 | 2,220 | 4.1875 | 4 | [] | no_license | public class MethodOverloading {
/*
* In order to do method overloading is creating multiple of the same method
* names and having each function have different parameters and amount of parameters
*/
public static void main(String[] args) {
calculateScore("Tim", 5); // This function is cal... | true |
689fc201db7c4166c981c503add18772f193037f | Java | zaomaoer/FootballClub | /src/main/java/com/example/footballclub/service/ActivityService.java | UTF-8 | 1,536 | 2.15625 | 2 | [] | no_license | package com.example.footballclub.service;
import com.example.footballclub.model.Activity;
import com.example.footballclub.model.ActivitySignIn;
import com.example.footballclub.model.ActivitySignUp;
import com.example.footballclub.repository.ActivityRepository;
import com.example.footballclub.repository.ActivitySignInR... | true |
c5b63e5c9e58b2418d568b17180849b3bb8e7ef8 | Java | notcorgi/JavaTest | /TEST/smalltest/src/exceptionTest/ExceptionTest.java | UTF-8 | 851 | 3.3125 | 3 | [] | no_license | package exceptionTest;
public class
ExceptionTest {
public static void main(String[] args) {
int[] array = null;
try {
choose(array, 2);
} catch (TestException2 e) {
e.printStackTrace();
System.out.println("=========");
System.out.println(e.ge... | true |
00f7caa3c0c92cc380a3762691a1dd1eec842739 | Java | alexandraback/datacollection | /solutions_5766201229705216_0/java/starforever/Solution.java | UTF-8 | 1,371 | 3.25 | 3 | [] | no_license | import java.util.Scanner;
import java.util.LinkedList;
public class Solution
{
private int N;
private LinkedList<Integer>[] adj;
public Solution (Scanner sc)
{
N = sc.nextInt();
adj = (LinkedList<Integer>[]) new LinkedList[N];
for (int i = 0; i < N; ++i)
adj[i] = new LinkedList<Integer>();
... | true |
88971f4d6ff34ecc9152e2cdc74dc40e634010ef | Java | GCBaiduMap/GC | /app/src/main/java/gc/com/gcmapapp/activity/LoginActivity.java | UTF-8 | 5,093 | 2.140625 | 2 | [] | no_license | package gc.com.gcmapapp.activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.CheckBox;
import android.widget.EditText;
import android.widget.FrameLayout;
... | true |
0ab29dd3b529644848dc99015df73d3bf3351921 | Java | cleysonnn/URI-algunsTestes | /src/testeWHileANDFOR.java | UTF-8 | 544 | 3.265625 | 3 | [] | no_license | import java.util.Scanner;
public class testeWHileANDFOR {
public static void main(String [] args) {
Scanner info = new Scanner(System.in);
String [] num = info.nextLine().split(" ");
double a = Double.parseDouble(num[0]);
double b = Double.parseDouble(num[1]);
double c = Double.parseDouble(num[2]);
if((b... | true |
554a14e1782dcfa99596b4adda6ed69c7d12fa31 | Java | sjywying/csp | /monitorstat-web/src/main/java/com/taobao/monitor/web/vo/HostConfigPo.java | UTF-8 | 3,733 | 1.945313 | 2 | [] | no_license | package com.taobao.monitor.web.vo;
import java.util.Date;
public class HostConfigPo {
private int appId;
private String osVersion;
private String platform;
private String domainIp;
private String cpu;
private String memory;
private String javaVersion;
private String jbossVersion;
private String apacheVersion... | true |
4b77e0e281cdd47ca5af68a460f0299fc6425f19 | Java | AnuragGarg89/Framework | /src/test/java/com/autofusion/keywords/VerificationKeywords.java | UTF-8 | 58,641 | 1.945313 | 2 | [] | no_license | /*
* PEARSON PROPRIETARY AND CONFIDENTIAL INFORMATION SUBJECT TO NDA
* Copyright (c) 2017 Pearson Education, Inc.
* All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains the property of
* Pearson Education, Inc. The intellectual and technical concepts contained
* herein are propr... | true |
0f17a13d7e10768401872aa5fa7962ff71d9c40a | Java | jjunmee/final | /netfilx/src/main/java/com/jhta/netflix/bookmark/vo/BookmarkVo.java | UTF-8 | 833 | 2.125 | 2 | [] | no_license | package com.jhta.netflix.bookmark.vo;
public class BookmarkVo {
private int bookmark_num;
private int comment_num;
private int bookmark_time;
public BookmarkVo() {
}
public BookmarkVo(int bookmark_num, int comment_num, int bookmark_time) {
this.bookmark_num = bookmark_num;
this.comment_num = commen... | true |
e738f0bd7817ad1bb83a04a1a7b55ae20f9b9005 | Java | sdaschner/effective-design-principles | /src/test/java/com/sebastian_daschner/effective_design_principles/systemtest/refactored/RequestJsonBuilder.java | UTF-8 | 708 | 2.421875 | 2 | [] | no_license | package com.sebastian_daschner.effective_design_principles.systemtest.refactored;
import com.sebastian_daschner.effective_design_principles.systemtest.Order;
import javax.json.Json;
import javax.json.JsonObject;
import javax.json.JsonObjectBuilder;
class RequestJsonBuilder {
JsonObject forOrder(Order order) {
... | true |
6e510ab5304294d829b332a2af3efc1545f705cc | Java | hphua/android_uinput | /src/com/daohoangson/android/uinput/NativeMethods.java | UTF-8 | 708 | 2.171875 | 2 | [] | no_license | package com.daohoangson.android.uinput;
import java.nio.ByteBuffer;
public class NativeMethods {
public static int BTN_LEFT = 0x110;
public static int BTN_TOUCH = 0x14a;
public static native boolean open(boolean absolute, int screenWidth, int screenHeight);
public static native boolean close();
public stati... | true |
bc60d54ee1dc18581393340e57c5605a73767785 | Java | lsieun/learn-crypto | /src/main/java/lsieun/crypto/hash/updateable/HashConst.java | UTF-8 | 339 | 1.804688 | 2 | [
"MIT"
] | permissive | package lsieun.crypto.hash.updateable;
public class HashConst {
public static final int DIGEST_BLOCK_SIZE = 64;
public static final int PADDING_THRESHOLD = 56;
public static int INITIAL_HASH[] = {
0x67452301,
0xEFCDAB89,
0x98BADCFE,
0x10325476,
0... | true |
8ab2b0522ea8430ff909bcd763d5bba06ea591c0 | Java | Santosh9459/Selenium-Automation | /final-framework-testng/tests/com/training/Medium/tests/TC035_AdminAddProdRewd.java | UTF-8 | 6,663 | 2.203125 | 2 | [] | no_license | //TC_035 To verify whether application allows admin to add product with the rewards point
package com.training.Medium.tests;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.List;
import java.util.Properties;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.Javascr... | true |
37a85924f98aa2deb787932adf9c1b3f48a0e837 | Java | HenrikHey/3D-LWJGL-game | /src/company/entities/PlayerWorks/Player.java | UTF-8 | 5,634 | 2.390625 | 2 | [] | no_license | package company.entities.PlayerWorks;
import company.CollisionDetection.CheckCollision;
import company.Terrians.Terrian;
import company.entities.Entity;
import company.game.GameEngineLoop;
import company.levels.Level1;
import company.models.TexturedModel;
import org.lwjgl.input.Keyboard;
import org.lwjgl.inpu... | true |
fe515ff0631d9f1bf57374f03b38fce3192a2eb4 | Java | mrts/vaadin-javaee-clinic-patient-queue-example | /vaadin-javaee-clinic-patient-queue-example-ui/src/main/java/com/clinicpatientqueueexample/doctorsoffice/LoginView.java | UTF-8 | 2,074 | 2.328125 | 2 | [
"MIT"
] | permissive | package com.clinicpatientqueueexample.doctorsoffice;
import com.clinicpatientqueueexample.doctors.Doctor;
import com.clinicpatientqueueexample.doctors.DoctorService;
import com.vaadin.cdi.CDIView;
import com.vaadin.cdi.access.JaasAccessControl;
import com.vaadin.external.org.slf4j.Logger;
import com.vaadin.external.or... | true |
b94d450a803604f3737c5d08a6638cce9e46a8eb | Java | Mariela2020/Proyecto_QA_TestCases | /src/test/java/TestCases/ProductosTest.java | UTF-8 | 3,046 | 1.828125 | 2 | [] | no_license | package TestCases;
import Pom.*;
import Runners.DriverManagerFactory;
import Runners.DriverType;
import org.junit.Assert;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.support.ui.WebDriverWait;
import org.testng.annotations.*;
import java.net.M... | true |
36940e6b05f191b872c55f8fe67021cd405315c0 | Java | mohitbmehta/Hand-Calculator | /ModelComputation.java | UTF-8 | 750 | 3 | 3 | [] | no_license |
public class ModelComputation {
double operand1;
double operand2;
public ModelComputation() {
}
public double getOperand1() {
return operand1;
}
public void setOperand1(double operand1) {
this.operand1 = operand1;
}
public double getOperand2() {
return operand2;
}
public void... | true |
9adb1b4f0e4179c97fdce0da3a3c2e2a01839310 | Java | Ashutosh-bhardwaj879/PEPCODING-LINKED-LIST | /mergeSortOfLL16.java | UTF-8 | 3,065 | 3.640625 | 4 | [] | no_license |
class main16 {
static class Node {
Node next;
int data;
}
static class LinkedList {
Node head;
Node tail;
int size;
public void addLast(int value) {
Node temp = new Node();
temp.data = value;
temp.next = null;
... | true |
86ee8dd7999489ff52ebc4490bd702696282f05b | Java | stevewen/ihmc-open-robotics-software | /ihmc-common-walking-control-modules/src/main/java/us/ihmc/commonWalkingControlModules/momentumBasedController/PlaneContactWrenchProcessor.java | UTF-8 | 6,852 | 1.929688 | 2 | [
"Apache-2.0"
] | permissive | package us.ihmc.commonWalkingControlModules.momentumBasedController;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import us.ihmc.commonWalkingControlModules.controlModules.CenterOfPressureResolver;
import us.ihmc.euclid.referenceFrame.FramePoint2D;
import us.i... | true |
9172c1d7a76e0f79fb0cce1e702c9469f3798e92 | Java | ljx728/eyoubika | /src/com/eyoubika/user/dao/OpenAccountBriefDao.java | UTF-8 | 6,046 | 2.046875 | 2 | [] | no_license | package com.eyoubika.user.dao;
import java.sql.SQLException;
import java.util.List;
import com.eyoubika.common.BaseDao;
import com.eyoubika.common.YbkException;
import com.eyoubika.user.domain.OpenAccountBriefDomain;
/*==========================================================================================*
* Descri... | true |
4d6754abcf629b785186b52207cef006ef3ccb81 | Java | heyimpg/City_project_Spring | /city_spring/src/main/java/com/amela/Repository/CityRepository.java | UTF-8 | 2,153 | 2.5 | 2 | [] | no_license | package com.amela.Repository;
import com.amela.Models.City;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Typed... | true |
a4e3ee7ce0a9d32430550b0b0f94b437f06a167e | Java | Oleiva/myDropBox | /src/main/java/io/github/oleiva/myDropBox/controllers/UploadableController.java | UTF-8 | 330 | 1.921875 | 2 | [] | no_license | package io.github.oleiva.myDropBox.controllers;
import io.github.oleiva.myDropBox.files.support.model.FileUploadForm;
import org.springframework.web.bind.annotation.ModelAttribute;
public class UploadableController {
@ModelAttribute("uploadForm")
public FileUploadForm uploadForm() {
return new FileUploadForm... | true |
59abab37f520ec4a836a8b6bc938b74fe95387e5 | Java | mayemonkey/MVPSample | /app/src/main/java/com/zc/mvp/mvpsample/ui/activity/LoginActivity.java | UTF-8 | 2,093 | 2.359375 | 2 | [] | no_license | package com.zc.mvp.mvpsample.ui.activity;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ProgressBar;
import android.widget.TextView;
import android.widget.Toast;
import com.zc.mvp.mvpsample.R;
import com.zc.mvp.... | true |
fc37512680eb5d045698cd5fe98361cfe424eae1 | Java | mklxiaobai/gmallparent | /gmall-api/src/main/java/com/mkl/gmall/pms/service/ProductService.java | UTF-8 | 840 | 1.8125 | 2 | [] | no_license | package com.mkl.gmall.pms.service;
import com.mkl.gmall.pms.entity.Product;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mkl.gmall.to.es.EsProduct;
import com.mkl.gmall.vo.PageInfoVo;
import com.mkl.gmall.vo.product.PmsProductParam;
import com.mkl.gmall.vo.product.PmsProductQueryParam;
impor... | true |
0b207668e158fe5b7f00525053e60433a67ec61c | Java | Yashwin12/FAANG | /problems/medium/RemoveIslands.java | UTF-8 | 1,685 | 3.078125 | 3 | [] | no_license | import java.util.*;
class Program {
private int totalRow = 0;
private int totalCol = 0;
// Up, Down, Right, Left
private static int[][] DIRECTIONS = { { -1, 0 }, { 1, 0 }, { 0, 1 }, { 0, -1 } };
public int[][] removeIslands(int[][] matrix) {
totalRow = matrix.length;
totalCol = matrix[0].l... | true |
1b66ea2e2cbb7a8cd3e2b925c69093b00ee3a3fc | Java | maicol0915/test | /Project/src/main/java/dagachi/service/customer/Customer_Login_ServiceImpl.java | UTF-8 | 2,946 | 2.25 | 2 | [] | no_license | package dagachi.service.customer;
import java.util.HashMap;
import javax.inject.Inject;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
import javax.mail.internet.MimeMessage.RecipientType;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.... | true |
c91ca81b5487a0d822fda19d968a587279a24dd0 | Java | zhongxingyu/Seer | /Diff-Raw-Data/20/20_da2c68ba1266b82be3d7fc9d08550f580cd1c643/AwesomePerson/20_da2c68ba1266b82be3d7fc9d08550f580cd1c643_AwesomePerson_t.java | UTF-8 | 848 | 2.921875 | 3 | [] | no_license | package miklos.martin.learningandroid.model;
/**
* Dummy value object for showing results in the sqlite example
*/
public class AwesomePerson {
private int id;
private String name;
private int awesomeness;
public AwesomePerson( int id, String name, int awesomeness ) {
this.id =... | true |
69b93875725110fb50e8fc8a8fb2b6b820cbd17a | Java | chihwei-lin/distributed_system_assignment02 | /src/view/MainView.java | UTF-8 | 19,852 | 2.125 | 2 | [] | no_license | package view;
import java.awt.Color;
import java.awt.EventQueue;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.Point;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
impor... | true |
28e6a2efe505004ffa222e4beb3588eae89a9a7f | Java | Cmrales26/Tienda_binario_lista | /src/Metodos/Productos.java | UTF-8 | 3,249 | 2.703125 | 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 Metodos;
import Frames.InterfazAdmin;
import Objetos.Producto;
import java.io.FileInputStream;
import java.io.FileOutputStream... | true |
9f8e8b51fe40ccc8bc71e16299d932a87d38dd49 | Java | tao-tao/BusinessModuleDesign | /avicit.ui.view.navigator/src/avicit/ui/runtime/core/develope/service/ServiceWorkbenchAdapter.java | UTF-8 | 1,510 | 2.21875 | 2 | [] | no_license | package avicit.ui.runtime.core.develope.service;
import avicit.ui.runtime.core.INode;
import avicit.ui.runtime.core.node.GuizeNode;
import avicit.ui.runtime.core.node.GuizeWorkbenchAdapter;
import avicit.ui.view.module.GuizeModelFactory;
import avicit.ui.view.module.IModelFactory;
import avicit.ui.view.module.ModelMan... | true |
7f94c67780b7e9d7ef9dcc5e1168250d8f388e0c | Java | ht1625/java_note_webpage | /src/java/data_genel.java | UTF-8 | 630 | 2.3125 | 2 | [] | no_license |
public class data_genel {
//böyle bir class a bilgileri xhtml de gösterebilmek için gerekti
private String title;
private String content;
private int note_id;
public int getNote_id() {
return note_id;
}
public void setNote_id(int note_id) {
this.note_id = note_id;
}
... | true |
488e86d8eca847cbae58fcaba544fa62f2094568 | Java | Ignatoun/WTR-client-server-app | /sources/Backend/src/main/java/com/epolsoft/wtr/model/dto/ReportDetailsDTO.java | UTF-8 | 1,046 | 1.9375 | 2 | [] | no_license | package com.epolsoft.wtr.model.dto;
import com.epolsoft.wtr.model.Enums.Status;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import javax.persistence.EnumType;
import javax.persistence.Enumerated... | true |
37e09b945a4e0a3903be16432f0657d0e02fa434 | Java | zzaoen/code4master | /src/imp/designpattern/singleton/SingletonThread.java | UTF-8 | 998 | 3.703125 | 4 | [] | no_license | package imp.designpattern.singleton;
/**
* author : Bruce Zhao
* email : zhzh402@163.com
* date : 2018/4/13 14:01
* desc :
*/
public class SingletonThread extends Thread{
@Override
public void run() {
// System.out.println(HungryObject.getInstance().hashCode()); //一开始就初始化了,所以这个是线程安全的
// ... | true |
ccf9f5036f31e3d8f321282917dd711156c4c246 | Java | zhouqwerty/amazon | /src/main/java/com/amazon/base/dto/BaseRequestDto.java | UTF-8 | 513 | 2.25 | 2 | [] | no_license | package com.amazon.base.dto;
/**
* @author 岸久
* @version 1.0
* @datetime 2018.7.24 18:58
* @describe 实体类 请求包装类
* */
public class BaseRequestDto<T> {
private Long time;
private T data;
public BaseRequestDto() {
}
public Long getTime() {
return this.time;
}
public void setTime... | true |
e7b642254beeefeb3572bf05530b5489b8025a52 | Java | Hogesss/Discrete-Event-Simulation | /Simulation.java | UTF-8 | 16,500 | 3.140625 | 3 | [] | no_license | /*
Simulation.java
*Author: Benjamin Hogan
*Student No: c3256846
*Date: 29/05/2017
*Descripion:
* Class that runs the simulation and outputs all the data needed for the production line
*/
import java.util.*;
import java.text.*;
public class Simulation{
private int station, c... | true |
66f5d531b32aea97070a11aae79a11522c8298fc | Java | TeamworkGuy2/JParseCode | /src/twg2/parser/codeParser/extractors/MethodExtractor.java | UTF-8 | 8,060 | 2.28125 | 2 | [
"MIT"
] | permissive | package twg2.parser.codeParser.extractors;
import java.util.ArrayList;
import java.util.List;
import twg2.ast.interm.annotation.AnnotationSig;
import twg2.ast.interm.block.BlockAst;
import twg2.ast.interm.method.MethodSigSimple;
import twg2.ast.interm.type.TypeSig;
import twg2.parser.codeParser.Keyword;
import twg2.p... | true |
595eb152459c15006e9d38d6515408e716038bc8 | Java | elizadascalu/JavaExercises | /Java/Lab2/src/com/company/Language.java | UTF-8 | 68 | 1.835938 | 2 | [] | no_license | package com.company;
public enum Language {
JAVA, PYTHON;
} | true |
0b8c020e812eb1387727e801bf034a2c1d3f6af4 | Java | diogorosin/DevelOpenPDV-Android | /app/src/main/java/br/com/developen/pdv/room/SaleableModel.java | UTF-8 | 4,095 | 2.328125 | 2 | [] | no_license | package br.com.developen.pdv.room;
import androidx.room.DatabaseView;
import androidx.room.Embedded;
@DatabaseView(viewName = "Saleable", value = "SELECT " +
"Mer.product AS 'identifier', " +
"Cat.identifier AS 'catalog_identifier', " +
"Cat.active AS 'catalog_active', " +
"Cat.positio... | true |
535b989b19161cafeae06ac5771e4431c27f65b5 | Java | shadowjljp/Spring-MVC-design | /src/main/java/readshare/util/UnZipEpub.java | UTF-8 | 1,514 | 2.78125 | 3 | [] | no_license | package readshare.util;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Enumeration;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;
public class UnZipEpub {
// public void unzipfile() throws IOException{
// ZipFile zipFile=... | true |
f6fc20d607cbcc37af63b4a960d70a66462d9128 | Java | SimoneJohnson04/Skipping-Intro | /PetTesting.java | UTF-8 | 3,286 | 4.28125 | 4 | [] | no_license | import java.util.Scanner;
public class PetTesting {
public static void main(String[] args) {
Scanner keyboard = new Scanner(System.in);
Pet bunny;
System.out.println("Which constructor do you want? 1. Default \t2. Custom");
int choice = keyboard.nextInt();
if (choice == 1){
//creates a basic bu... | true |
200e2e73e6c27aa5504c512cb738ec928d94b92c | Java | Monil200/treesandmore | /treesandmore/src/treessandtrees/CountBattleShips.java | UTF-8 | 2,068 | 3.21875 | 3 | [] | no_license | package treessandtrees;
// similar to count islands, there is DP solution to this.
import java.util.*;
class Point {
int x,y;
Point(int xx, int yy) {
x = xx;
y = yy;
}
}
public class CountBattleShips {
public int getBattleShipCounts(char a[][], int x, int y, boolean visited[][]... | true |
b8c6a2e6b6956040989fb2cc55e9938c14ea3d6c | Java | lisaglendenning/zookeeper-lite | /zkcore/src/main/java/edu/uw/zookeeper/data/Serializers.java | UTF-8 | 9,517 | 2.359375 | 2 | [
"Apache-2.0"
] | permissive | package edu.uw.zookeeper.data;
import java.io.IOException;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Set;
import java.util.concurrent.ConcurrentMap;
import com.google.common.base.Function;
import c... | true |
785e7a79f1bd9740c185e1112b7c911a3d893c5d | Java | FlyingPumba/evolutiz | /subjects/are-we-there-yet/Wordpress_394/src/org/wordpress/android/About.java | UTF-8 | 1,640 | 2.21875 | 2 | [
"BSD-3-Clause"
] | permissive | package org.wordpress.android;
import android.app.Activity;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import ... | true |
214e9a39ae30c54ed7dda24b5419f951d71ff5da | Java | yadorogi/deploygate-android-sdk | /sample/src/main/java/com/deploygate/sample/App.java | UTF-8 | 1,127 | 2.546875 | 3 | [
"Apache-2.0"
] | permissive |
package com.deploygate.sample;
import android.app.Application;
import com.deploygate.sdk.DeployGate;
/**
* THIS CLASS IS NOT USED BY DEFAULT. To use this implementation, you have to add on AndroidManifest.xml manually.
*/
public class App extends Application {
@Override
public void onCreate() {
su... | true |
fb04bfd6d7b753201e7c37fac27ccc6b224cfb5b | Java | lomet1500/Project20201123 | /Project20201123/src/com/ydm/Address/UnivFriend.java | UTF-8 | 748 | 2.828125 | 3 | [] | no_license | package com.ydm.Address;
public class UnivFriend extends Friend {
private String univ;
private String major;
public UnivFriend(String name, String phone) {
super(name, phone);
// TODO Auto-generated constructor stub
}
public String getUniv() {
return univ;
}
public void setUniv(String un... | true |
d3763a3f305e38030d2676ef8ee9a98615ba27e3 | Java | dpopkov/learn | /ijpds/src/main/java/learn/ijpds/ch12exceptions/exercises/E1219Linking.java | UTF-8 | 2,689 | 3.875 | 4 | [] | no_license | package learn.ijpds.ch12exceptions.exercises;
import learn.csia.utils.CliAppArgs;
import java.io.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
/**
* Linking two files.
* Write a program that prompts the user to enter the name of an author and the title of one their books.
* It wr... | true |
c6cb814d1c9e457333f3c847d3698a3f6a31be07 | Java | samuelnjri/CBSE_Game | /StealMySheep/application/src/test/java/stealmysheep/ApplicationTest.java | UTF-8 | 5,921 | 1.898438 | 2 | [] | no_license | package stealmysheep;
import group12.stealmysheep.GameStates.GameModule;
import group12.stealmysheep.Manager.ModuleManager;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import static java.nio.file.Files.copy;
import java.nio.file.Path;
import j... | true |
4c98a6c8ad9152fc0d3a0ebe81a5360069f270ec | Java | peabits/idea-workspace | /idea-algorithm/程序员代码面试指南 —IT名企算法与数据结构题目最优解/src/chapter2/issue2/test/Test.java | UTF-8 | 767 | 2.90625 | 3 | [] | no_license | package chapter2.issue2.test;
import chapter2.issue2.solution.RemoveDoubleLinkedListLastKthNode;
import chapter2.issue2.solution.RemoveSingleLinkedListLastKthNode;
public class Test {
private RemoveSingleLinkedListLastKthNode singleLinkedList;
private RemoveDoubleLinkedListLastKthNode doubleLinkedList;
... | true |
57c6f78628d41fb0a1fc9c076de013bc10e9c957 | Java | parth-commits/Coronavirus | /app/src/main/java/com/example/android/coronavirus/CountryLoader.java | UTF-8 | 841 | 2.453125 | 2 | [] | no_license | package com.example.android.coronavirus;
import android.content.Context;
import android.content.AsyncTaskLoader;
import java.util.List;
public class CountryLoader extends AsyncTaskLoader<List<countryObject>> {
//query url
private String mUrl;
public CountryLoader(Context context, String url){
... | true |
7b9da24a79eac2c1fbde29a8284b643127a2c303 | Java | jWinterDay/jwd-srv | /src/main/java/com/jwd/service/auth/ILoginService.java | UTF-8 | 532 | 2.046875 | 2 | [] | no_license | package com.jwd.service.auth;
import com.jwd.model.auth.Login;
import com.jwd.model.auth.LoginResponse;
import com.jwd.model.auth.User;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public interface ILoginService {
User findByEmail(String email);
int updateRefr... | true |
02052a70b4bfc7b67cfa2ef9355d8a87d70389c3 | Java | madalinflorin/online_medication_platform | /backend/src/main/java/ro/tuc/ds2020/entities/MedicalPlansDetail.java | UTF-8 | 2,864 | 2.390625 | 2 | [] | no_license | package ro.tuc.ds2020.entities;
import org.hibernate.annotations.Type;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;
import java.sql.Time;
import java.time.LocalDate;
import java.time.LocalTime;
import java.util.Date;
import java.util.UUID;
... | true |
2cb94e4a0318d14dd39e1dcfa5d4e4bfa579447f | Java | benyben83/BloodBath | /app/src/main/java/com/example/dell_optilex_3010/bloodbath/charactercreation/Race.java | UTF-8 | 1,248 | 2.953125 | 3 | [] | no_license | package com.example.dell_optilex_3010.bloodbath.charactercreation;
public class Race {
private String name;
private int dexterity;
private int stamina;
private int intelligence;
private int knowledge;
public Race(String name, int dexterity, int stamina, int intelligence, int knowledge) {
... | true |
3a96e4f9bd828566cb28c13acd488efeb0dea875 | Java | kdheejb7/2018-Tycoon-game | /RandomforSale.java | WINDOWS-1252 | 582 | 2.90625 | 3 | [] | no_license | import java.awt.*;
import javax.swing.*;
class RandomforSale extends JPanel {
Image bg = new ImageIcon("ballon.png").getImage();
RandomforSale() {
int value = (int)(Math.random() * 10);
JLabel jlab = new JLabel("ؾ\n"+ value + " \nּ");
add(jlab);
setOpaque(false);
// setLayou... | true |
282f462ee84c92765f2a914a90febb82f8e7cee6 | Java | statKim/TIL | /Linux/Hadoop/step01_hiveTest/src/step01_hiveTest/Step01.java | UHC | 1,086 | 3.125 | 3 | [
"MIT"
] | permissive | package step01_hiveTest;
import java.sql.Connection;
import java.sql.DriverManager;
//import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
public class Step01 {
public static void main(String[] args) throws SQLException {
try {
Class.forName(... | true |
423445fe66b2b8fb0dd7c111de8511339e31fff1 | Java | ComputerArchitectureGroupPWr/JGenerilo | /src/test/java/pl/edu/pwr/iiar/zak/thermalKit/placer/ThermalPlacerTest.java | UTF-8 | 2,364 | 2.421875 | 2 | [
"MIT"
] | permissive | package pl.edu.pwr.iiar.zak.thermalKit.placer;
import edu.byu.ece.rapidSmith.design.Net;
import edu.byu.ece.rapidSmith.design.Pin;
import org.junit.Test;
import pl.edu.pwr.iiar.zak.thermalKit.ThermalDesign.ThermalDesign;
/**
* Created by pawel on 22.05.14.
*/
public class ThermalPlacerTest {
public String term... | true |