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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
c03f4e6915379b28fd4def021233e54105d51ccd | Java | hakeemtunde/android-journal-app | /app/src/main/java/com/andela/gudacity/scholar/journalapp/com/andela/gudacity/scholar/repository/JournalRepo.java | UTF-8 | 891 | 2.359375 | 2 | [] | no_license | package com.andela.gudacity.scholar.journalapp.com.andela.gudacity.scholar.repository;
import android.content.Context;
import com.andela.gudacity.scholar.journalapp.com.andela.gudacity.scholar.model.Journal;
import java.util.List;
public class JournalRepo {
private SQLiteConn mDb;
public JournalRepo(Conte... | true |
8feaf6a151b759d1b1fe95780981cecd07706adc | Java | UntouchedOdin0/CubikCore | /src/main/java/me/nl/YourPalJake/CubikCore/Server/CServer.java | UTF-8 | 2,052 | 2.75 | 3 | [] | no_license | package me.nl.YourPalJake.CubikCore.Server;
import me.nl.YourPalJake.CubikCore.Player.CubikPlayer;
import me.nl.YourPalJake.CubikCore.Player.CubikPlayerManager;
import me.nl.YourPalJake.CubikCore.Plugin.CubikPluginManager;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import java.util.UUID;
public class... | true |
bd58d0e181ef238b302a00919a7658bb4c41c0f6 | Java | manuelmartin-developer/Petagram | /app/src/main/java/manuelmartin/petagram/presentador/FavoritosPresenter.java | UTF-8 | 1,055 | 2.375 | 2 | [] | no_license | package manuelmartin.petagram.presentador;
import android.content.Context;
import java.util.ArrayList;
import manuelmartin.petagram.ITop5;
import manuelmartin.petagram.db.ConstructorMascotas;
import manuelmartin.petagram.pojo.Mascota;
public class FavoritosPresenter implements IFavoritosPresenter {
private ITo... | true |
8e1e30d02ba33212aa560f2b94ba412bf1160f66 | Java | ProyectoGrupo3/Primera-entrada-del-proyecto | /PROYECTO/Programa/Empresa De Camiones/ProyectoFinCurso(VFinal)/src/Modelo/Conexion.java | UTF-8 | 1,355 | 2.765625 | 3 | [] | no_license | package Modelo;
import java.sql.*;
import java.util.logging.Level;
import java.util.logging.Logger;
public class Conexion {
private static Connection con;
public static Connection getConexionGod() {
try {
String className = "oracle.jdbc.driver.OracleDriver";
String url = "jd... | true |
257d3a0e0d6f41c8255fa0c5677bb4156442fe8e | Java | liveqmock/fbi-fis | /Main/java/fis/repository/fs/dao/FsPaymentinfoMapper.java | UTF-8 | 3,723 | 1.5625 | 2 | [] | no_license | package fis.repository.fs.dao;
import fis.repository.fs.model.FsPaymentinfo;
import fis.repository.fs.model.FsPaymentinfoExample;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import java.util.List;
import java.util.... | true |
f88e45f51be8ae1e2c17fdbb380b6636953b88f7 | Java | computerwan/commons | /commons_java/src/main/java/com/edu/usst/dataStructres/sort/MergeSort.java | UTF-8 | 1,796 | 3.828125 | 4 | [
"Apache-2.0"
] | permissive | package com.edu.usst.dataStructres.sort;
/**
* Created by Wan on 2016/9/4 0004.
*/
/**
* 注:line16传入init化是传入arr.length - 1
* merge时候,传入center,第二个数组的起始值为center+1
*/
public class MergeSort {
//初始化赋值
public void init(int[] arr) {
if (arr.length > 0) {
int[] tmp = new int[arr.length];
... | true |
846ce88a2db8084b5009437e79a427e8e5fdec4b | Java | lqaxx7799/eProject2_bak | /src/services/SalaryInformationService.java | UTF-8 | 6,527 | 2.75 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package services;
import utils.ConnectionFactory;
import java.sql.Connection;
import java.util.ArrayList;
import java.sql.ResultSet;
i... | true |
614407e8d50f49dbd74b9c4fe9b115f79e2dba66 | Java | danielGz/altimetrik-weather | /src/main/java/com/altimetik/api/weather/domain/Forecast.java | UTF-8 | 1,701 | 2.46875 | 2 | [] | no_license | package com.altimetik.api.weather.domain;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@JsonIgnoreProperties(ignoreUnknown = true)
public class Forecast {
String date;
long time;
double temperature;
long sunriseTime;
long sunsetTime;
double temperatureHigh;
long temperatureHighTime;
double ... | true |
ff83e42bbab6e19c22b4994d95016197ad7a97ea | Java | krishnmoorthi/projects | /myfarm/src/main/java/com/kittyproject/myfarm/common/BirdActionConstants.java | UTF-8 | 371 | 1.695313 | 2 | [] | no_license | /**
*
*/
package com.kittyproject.myfarm.common;
/**
* @author kthangav
*
*/
public class BirdActionConstants {
public static final String FEEDING = "Feeding";
public static final String SLEEPING = "Sleeping";
public static final String MATING = "Mating";
public static final String FORAGE = "Foraging";
pu... | true |
7b23b1d9c037ecb9618c9bb22fc28f1d7d4197d6 | Java | giamato/mi-file | /mi-file/it/cnr/isti/PersistentHashMap/EntryIterator.java | UTF-8 | 2,047 | 2.890625 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package it.cnr.isti.PersistentHashMap;
import java.util.Iterator;
import java.util.Map.Entry;
/**
*
* @author Amato
*/
class EntryIterator<K,S> implements Iterator<Entry<K,S>>{
private int currentEntryHash=-1;... | true |
a4bd39bb56451c54b1cb2db8bf4ea7576c53e00a | Java | tarique313/microtext-automation | /src/com/Project498/MicroTextMain.java | UTF-8 | 354 | 2.109375 | 2 | [] | no_license | package com.Project498;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class MicroTextMain {
static WebDriver driver;
static Login signin = new Login();
public static void main(String[] args) {
driver = new FirefoxDriver();
driver.get("http://localhost:3000")... | true |
d217f94a209a565f4bf46f47a6f9e4b8c88f2ed5 | Java | zktzktzkt/BluetoothDevice | /app/src/main/java/com/example/administrator/bluetoothdevice/activity/MainActivity.java | UTF-8 | 9,369 | 1.742188 | 2 | [] | no_license | package com.example.administrator.bluetoothdevice.activity;
import android.Manifest;
import android.bluetooth.BluetoothAdapter;
import android.content.ComponentName;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.ServiceConnection;
import a... | true |
bf9b0cbba3acd7d23d2f47bd798b6d07406a45a8 | Java | ryota0624/akka-serverless-with-scala | /src/main/java/cinema/domain/Cinema.java | UTF-8 | 1,817 | 2.171875 | 2 | [] | no_license | /* This code was initialised by Akka Serverless tooling.
* As long as this file exists it will not be re-generated.
* You are free to make changes to this file.
*/
package cinema.domain;
import cinema.CinemaApi;
import com.akkaserverless.javasdk.EntityId;
import com.akkaserverless.javasdk.Reply;
import com.akkaser... | true |
19e38dc423c8130baced8d33b08663c728b4dad2 | Java | marziePrk/AccountManagerFinal | /src/main/src/presentationLayer/SearchRealCustomerServlet.java | UTF-8 | 2,347 | 2.40625 | 2 | [] | no_license | package presentationLayer;
import bussinessLogicLayer.RealCustomerLogic;
import dataAccessLayer.RealCustomer;
import util.OutputGenerator;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.Prin... | true |
c673d5b5e425ee2e2e53ec8c15e945f72816b5fa | Java | phanminhthu/LoginWebview_Erpviet-Android | /app/src/main/java/vn/izisolution/MainActivity.java | UTF-8 | 5,283 | 1.921875 | 2 | [] | no_license | package vn.izisolution;
import android.app.Dialog;
import android.content.Context;
import android.content.res.ColorStateList;
import android.graphics.Color;
import android.os.Bundle;
import android.os.Handler;
import android.support.annotation.NonNull;
import android.support.design.widget.NavigationView;
import androi... | true |
29b4cef8155a408add0ec7b42118df6be79ca783 | Java | isabella232/de.flapdoodle.mongomapper | /src/test/java/de/flapdoodle/mongomapper/AbstractMapperAdapterTest.java | UTF-8 | 1,408 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | package de.flapdoodle.mongomapper;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import com.google.common.collect.ImmutableList;
import com.mongodb.DBObject;
import de.flapdoodle.mongomapper.query.Properties;
import de.flapdoodle.mongomapper.types.StringMapper;
public class AbstractMapperAdap... | true |
3d171c60ae28017f69d7a69c405bcefae6800b2b | Java | atlan1/MCTPO-Mobile | /src/com/atlan1/mctpo/mobile/API/Widget.java | UTF-8 | 194 | 1.851563 | 2 | [] | no_license | package com.atlan1.mctpo.mobile.API;
import android.graphics.Canvas;
public interface Widget{
public void render(Canvas g);
public void tick();
public void calcPosition();
}
| true |
e0ae032a8705189e9f1bd0d449c526ea22bbeb4e | Java | nickcxm/data_structure_java | /src/main/java/search_table/RedBlackTree.java | UTF-8 | 539 | 2.671875 | 3 | [] | no_license | package search_table;
import lombok.Data;
@Data
public class RedBlackTree<Key extends Comparable<Key>,Value> {
private static final boolean RED=true;
private static final boolean BLACK=false;
private class Node{
Key key;
Value value;
Node left,right;
int sum;
boole... | true |
35dbeaae6eaf18c7b29b8664f258a7a4693e9293 | Java | PDzmitry/JavaEE_Lab | /SpringFirst/src/main/java/by/protasovitski/springfirst/service/PersonService.java | UTF-8 | 379 | 2.015625 | 2 | [] | no_license | package by.protasovitski.springfirst.service;
import by.protasovitski.springfirst.entities.Person;
import java.util.List;
import java.util.Optional;
public interface PersonService {
boolean deletePerson(long id);
boolean editPerson(Person person);
boolean addNewPerson(Person person);
List<Person> ... | true |
28b7ace0d749233856d315597babfc519de1f725 | Java | skyneko/school | /src/chuong3/bai3_11.java | UTF-8 | 572 | 3.125 | 3 | [] | no_license | package chuong3;
import java.util.Scanner;
public class bai3_11 {
private static boolean kiemTraSoChinhPhuong(int n) {
for (int i = 1; i*i <= n; ++i) {
if (i*i == n) {
return true;
}
}
return false;
}
public static void main (String[] args) {
Scanner input = new Scanner(Syste... | true |
fe540a4302548478a57aa3910ab7dfc5ac8c6311 | Java | deulkar-prasad/Competentia | /Competentia/src/test/java/Pages/LoginPage.java | UTF-8 | 3,720 | 2.25 | 2 | [] | no_license | package Pages;
import org.junit.Assert;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import Util.TestBase;
import Util.WaitHelper;
public class LoginPage extends TestBase
{
... | true |
a28079c9429fd3b2e7d537452b06a3741cc3086b | Java | edgarfurkert/corona | /spring-boot-corona-web/src/main/java/de/edgar/spring/boot/corona/web/model/charts/Series.java | UTF-8 | 396 | 2.234375 | 2 | [] | no_license | package de.edgar.spring.boot.corona.web.model.charts;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
@Data
public class Series {
public Series() {
yAxis = 0;
dashStyle = "Solid";
}
private String name;
private List<Double> data;
@JsonProperty("yAxis")
p... | true |
3b7d5d2d5f13a2ab0410d468f72d59fb19d6c005 | Java | Siddharth-Singhs/dtu_cv_generator | /app/src/main/java/com/example/android/dtu_resume/CreateResume.java | UTF-8 | 3,908 | 2.0625 | 2 | [] | no_license | package com.example.android.dtu_resume;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.CardView;
import android.view.View;
import com.example.android.dtu_resume.ResumeElement.AchievementDetail;
import com.example.android.dtu_r... | true |
34c1b7ab6acd2db3a54bd96a9545e67afd85e9b2 | Java | sashokbg/interest-calculator | /src/main/java/bg/alexander/lihva/userInterface/MyComparator.java | UTF-8 | 386 | 2.640625 | 3 | [] | no_license | package bg.alexander.lihva.userInterface;
import java.util.Comparator;
import bg.alexander.lihva.masiv.Record;
public class MyComparator implements Comparator<Record>{
@Override
public int compare(Record arg0, Record arg1) {
Record r1= arg0;
Record r2= arg1;
if(r1.getD0() == r2.getD0())
return 0;
else ... | true |
063ec19bc4ba7014a39d816ed4e14e37e83e3854 | Java | wcm-io-qa/wcm-io-qa-galenium | /modules/core/src/main/java/io/wcm/qa/glnm/mediaquery/MediaQuery.java | UTF-8 | 1,205 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | /*
* #%L
* wcm.io
* %%
* Copyright (C) 2018 wcm.io
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | true |
dd305241b74119b034693c52e03e63c2e1d9c14b | Java | allenikhil/JavaPrograms | /StringPgms/ReverseWords.java | UTF-8 | 617 | 3.265625 | 3 | [] | no_license | package StringPgms;
import java.util.*;
public class ReverseWords
{
public static void main(String[] args)
{
Scanner s=new Scanner(System.in);
System.out.println("enter words that u want to revers");
String str=s.nextLine();
System.out.println("Reverse the words is :");
... | true |
ee565a98c25a08ad9990d36e52af18dac357d6be | Java | Ablexq/MyUpdateApp | /app/src/main/java/example/com/myupdateapp/MainActivity.java | UTF-8 | 3,426 | 2.1875 | 2 | [] | no_license | package example.com.myupdateapp;
import android.app.ProgressDialog;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.support.v4.content.LocalBroadcastManager;
import android.support.v7.app.AppCompatActivity;
imp... | true |
d3d655fac28ef34d3a0ecfe83497b8ead615eb48 | Java | Frimish/LeeCode | /lc/src/leetcode/ReverseBits_190.java | UTF-8 | 550 | 3.03125 | 3 | [] | no_license | package leetcode;
public class ReverseBits_190 {
public static int reverseBits(int n) {
int res = 0;
int m = n;
for (int i = 0; i < 32; i++) {
res = res + (((m >> i) & 1) << (31 - i));
}
return (int)res;
// int ans = 0;
// int flag = 1;
// while(flag!... | true |
db001e5e1d30b5ab023851cf4e65cf6cf984af99 | Java | LucasLaacerda/orange-talents-06-template-casa-do-codigo | /src/main/java/br/com/zupacademy/lucaslacerda/casadocodigo/validacao/VerificaIdValidator.java | UTF-8 | 1,059 | 2.421875 | 2 | [
"Apache-2.0"
] | permissive | package br.com.zupacademy.lucaslacerda.casadocodigo.validacao;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Query;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
public class Veri... | true |
e9d48c8d53b4e2a082b1799885d6c7efcf9d929a | Java | MateuszLebioda/Estimate | /dao/src/main/java/com/estimate/dao/services/impl/UnitDaoImpl.java | UTF-8 | 2,804 | 2.359375 | 2 | [] | no_license | package com.estimate.dao.services.impl;
import com.estimate.dao.services.dao.AbstractDao;
import com.estimate.dao.services.dao.UnitDao;
import com.estimate.model.entities.Unit;
import com.estimate.model.entities.User;
import com.estimate.model.entities.utils.Role;
import javax.ejb.Stateless;
import javax.persistence.... | true |
1b074a8df8726185216bcc6f10db441108727c21 | Java | dxz935/SLR207 | /Clean/Myclean.java | UTF-8 | 623 | 2.53125 | 3 | [] | no_license | import java.io.IOException;
public class Myclean extends Thread{
String host;
Myclean(String host) {
this.host = host;
}
public void run(){
ProcessBuilder processBuilder = new ProcessBuilder("ssh",
"-o", "StrictHostKeyChecking=no",
"-i", "~/Desktop/id_rsa... | true |
ccac2b6f65d9bdb26db82286ad095ce8196b415c | Java | ndexbio/ndex-common | /src/main/java/org/ndexbio/xbel/model/Relationship.java | UTF-8 | 5,429 | 1.585938 | 2 | [
"BSD-3-Clause"
] | permissive | /**
* Copyright (c) 2013, 2016, The Regents of the University of California, The Cytoscape Consortium
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code m... | true |
fbdafcf546c2f7ae8e5bae336730d429dfa9e3cd | Java | VitaliiRubezhanskii/spring-cloud-meetup-demo | /beer-service/src/main/java/com/amdocs/beermanager/BeermanagerApplication.java | UTF-8 | 3,668 | 2.25 | 2 | [
"Apache-2.0"
] | permissive | package com.amdocs.beermanager;
import java.util.Arrays;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.s... | true |
7388d09bc36f753e966deb3fc20af845b3705974 | Java | liuning587/D6k2.0master | /d6k/trunk/src/web/corsair/src/main/java/com/corsair/measurement/history/HistoryValueService.java | UTF-8 | 1,024 | 2.265625 | 2 | [] | no_license | package com.corsair.measurement.history;
import com.corsair.service.ScadaMeasurementService;
import org.apache.commons.lang3.tuple.ImmutablePair;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* Created by 洪祥 on 16/3/3.
*/
@Service
public class Hist... | true |
83fbe5b19dcf886cd44d9e437368d73392b87899 | Java | patel-bhavik/Course_Assessment | /src/main/java/ncstate/csc540/proj/ui/executors/ViewStudentDetailsExecutor.java | UTF-8 | 1,714 | 2.90625 | 3 | [] | no_license | package ncstate.csc540.proj.ui.executors;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Scanner;
import ncstate.csc540.proj.common.DBFacade;
public class ViewStudentDetailsExecutor implements IExecut... | true |
914b398ddd1f570bdb0a8f27dd1fd359030c6bf4 | Java | FyodorovAlexandr/STC-24-J-FA | /src/com/fyodorov/lesson29/DuplicateMap.java | UTF-8 | 1,954 | 3.75 | 4 | [] | no_license | package com.fyodorov.lesson29;
import java.io.*;
/**
* Класс {@code DuplicateMap}
* Реализовать метод removeTheDuplicates по поиску дубликатов в исходной мапе, затем при нахождении дубликата
* удалить его из исходной мапы используя метод
* @author Alexandr Fyodorov
*/
public class DuplicateMap {
public static... | true |
3c2f9ec2af6ca56b980c6980600c75d1a0ccf5ea | Java | Matyyas/Maze_Generator | /src/Texte.java | ISO-8859-1 | 1,170 | 3.59375 | 4 | [] | no_license | import java.io.*;
public class Texte {
private int longueur;
private int largeur;
public Texte(String nomFichier) {
LireLabyrinthe(nomFichier);// objet de lecture du fichier
}
public void LireLabyrinthe( String nomFichier ) { //comment a marche
String ligne;
int j=0;
try {
BufferedReader aLire = ne... | true |
abb2b5a83e0ab8b65963452a2878e17fe8561ec6 | Java | MarcelEn/javaWebSocketTraining | /src/main/java/com/javawebsocket/training/Actions/SetId.java | UTF-8 | 146 | 1.859375 | 2 | [] | no_license | package com.javawebsocket.training.Actions;
public class SetId extends Action{
public SetId(String id){
super("SET_ID", id);
}
}
| true |
7874842396b87be3662b0802228f3b7cb09a28fa | Java | dominic22/iota-mam-heart-rate-monitor | /heart-rate-watch-publisher/app/src/main/java/com/dsi/ant/antplus/pluginsampler/Activity_Dashboard.java | UTF-8 | 13,892 | 1.609375 | 2 | [] | no_license | /*
This software is subject to the license described in the License.txt file
included with this software distribution. You may not use this file except in compliance
with this license.
Copyright (c) Dynastream Innovations Inc. 2013
All rights reserved.
*/
package com.dsi.ant.antplus.pluginsampler;
import android.app... | true |
f085cff5de694455c181eca88c0cdfe2da8395e4 | Java | rissyhr/ClassLog | /app/src/main/java/com/rissy/android/classlog/DetailActivity.java | UTF-8 | 13,749 | 1.726563 | 2 | [] | no_license | package com.rissy.android.classlog;
import android.Manifest;
import android.content.ContentResolver;
import android.content.ContentValues;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.net.Uri;
import android.os.Build;
import android.provider.MediaStore;
import android.support... | true |
e46032dfe00cc3693ae060354b79d5f2dda599fc | Java | DanoshiFusermoto/cassandra | /core/src/main/java/org/fuserleer/serialization/mapper/DsonFieldFilter.java | UTF-8 | 2,463 | 2.40625 | 2 | [] | no_license | package org.fuserleer.serialization.mapper;
import java.util.Collection;
import java.util.Map;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.SerializerProvider;
import com.fasterxml.jackson.databind.ser.BeanPropertyWriter;
import com.fasterxml.jackson.databind.ser.FilterProvid... | true |
431e1711b778081864079f140710a6ccf1b48b10 | Java | Hamid-85/Java-Abschlussprojekt-bei-der-Wifi-Wien | /Packages.java | UTF-8 | 1,549 | 2.671875 | 3 | [] | no_license | package daten_verwaltung;
public class Packages {
private int packageId;
private Freizeitpark freizeitpark;
private String packageName;
private String packageBild;
private double packagePreis;
private Boolean PackageStatus;
public Packages(int packageId, Freizeitpark freizeitpark, String packageName... | true |
bdc2e44875881aa720ee7477afea4b33dfcd8776 | Java | developerJhonAlon/Proyecto-Investigacion-ESPE | /Investigacion-war/src/java/ec/edu/espe_ctt/investigacion/controller/ProgramaController.java | UTF-8 | 51,680 | 1.5 | 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 ec.edu.espe_ctt.investigacion.controller;
import ec.edu.espe_ctt.saturno.entity.Stvsubj;
import ec.edu.espe_ctt.saturn... | true |
58d423e112bb8cbae3745edfb2e6efe26ba16ea2 | Java | vcshukla73/MaySelenium2020 | /src/main/java/SeleniumProject/SeleniumProject/AuthPop.java | UTF-8 | 1,140 | 2.21875 | 2 | [] | no_license | package SeleniumProject.SeleniumProject;
import org.openqa.selenium.Alert;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import io.github.bonigarcia.wdm.WebDriverManager;
public class AuthPop {
public static void main(String[] args) throws Inte... | true |
d2eb0a748a0f8ed5c4f6bb57b75420580606b07d | Java | shubhamgoel23/tenant | /src/main/java/com/bms/tenants/exceptions/ValidationError.java | UTF-8 | 494 | 1.882813 | 2 | [] | no_license | package com.bms.tenants.exceptions;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class ValidationError extends SubError {... | true |
59cec68616a61c8a8b599884a5b1bf4fb4f75268 | Java | ct7cxz/studySpringCloud | /cloud-client3355/src/main/java/com/ct/configClient/controller/ConfigController.java | UTF-8 | 519 | 1.929688 | 2 | [] | no_license | package com.ct.configClient.controller;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@Ref... | true |
6a39d266466cc85b146bca8a9e973fd0b5f13074 | Java | JarekSoja/WoofBase | /src/main/java/com/soja/woofbase/domain/dto/outbound/DogShowDtoOut.java | UTF-8 | 728 | 2.3125 | 2 | [] | no_license | package com.soja.woofbase.domain.dto.outbound;
import com.soja.woofbase.domain.Dog;
import com.soja.woofbase.domain.DogOwned;
public class DogShowDtoOut {
private DogOwned dog;
private String dogShowResultsURL;
private String dogShowCatalogueURL;
public DogShowDtoOut(DogOwned dog, String dogShowResu... | true |
e9e98db8271ed73d1a56bb3b6160091cdea2df69 | Java | arshathkhans/sample-employee | /Hashmap1.java | UTF-8 | 1,681 | 3.375 | 3 | [] | no_license | package mypackagetest;
import java.util.HashMap;
import mypackagetest.Notification;
import java.util.Iterator;
import java.util.Map;
import java.util.Scanner;
public class Hashmap1 implements Notification {
Map<Integer, worker> map = new HashMap<Integer, worker>();
@Override
public void add(int id, Stri... | true |
38267e2fbde16541533a9f8f6bee3b6e05e98e81 | Java | darkness399/New-Problem | /Local_Search.java | UTF-8 | 4,246 | 1.773438 | 2 | [] | no_license | public class Local_Search {
public static int[] local_search (int[][] visitorLink, int[][] resourceLink, int selectedLinkNumber, int resourceNumberInEachVertex, int[][] unvisitedPoints, int vertexNumber, int visitorNumber, int[] profit, int[] tabuList, int[] visitorTimeUpperBound, int[] goodLinkNumbers, int[][] dis... | true |
1a346a40bfe81db3abf695ae9735830d6ae440b0 | Java | bartoszkordek/AGH-Praca-inzynierska-back-end | /account/src/main/java/com/healthy/gym/account/controller/PhotoController.java | UTF-8 | 6,881 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | package com.healthy.gym.account.controller;
import com.healthy.gym.account.component.ImageValidator;
import com.healthy.gym.account.component.Translator;
import com.healthy.gym.account.exception.PhotoSavingException;
import com.healthy.gym.account.exception.UserAvatarNotFoundException;
import com.healthy.gym.account.p... | true |
ca777ae30f728404821bee3f317def3ba9feef3a | Java | pratyushmp/code_opensource_2020 | /Java/MinimumPlatforms.java | UTF-8 | 1,628 | 3.40625 | 3 | [] | no_license | // package SuperDream.Arrays;
import java.util.Scanner;
import java.util.Arrays;
public class MinimumPlatforms {
public static void main(String[] args) {
Scanner sc =new Scanner(System.in);
int tc =sc.nextInt();
for(int k=0;k<tc;k++){
int n =sc.nextInt();
int arr[] ... | true |
23d067f9918231e934b1222df894584429cae36c | Java | Balamsd7/crudoperations | /src/main/java/com/balamsd7/flightbooking/dto/PassengerDto.java | UTF-8 | 171 | 1.78125 | 2 | [] | no_license | package com.balamsd7.flightbooking.dto;
import lombok.Data;
@Data
public class PassengerDto {
private String name;
private String gender;
private int age;
}
| true |
67f1767061fe6a848403ea1b8846fec4090ead69 | Java | retroric/oric-dsk-manager--teiram | /src/main/java/com/grelobites/oric/dsk/sedoric/SedoricDescriptor.java | UTF-8 | 7,055 | 2.484375 | 2 | [] | no_license | package com.grelobites.oric.dsk.sedoric;
import com.grelobites.oric.dsk.Constants;
import com.grelobites.oric.dsk.model.Disk;
import com.grelobites.oric.dsk.model.SectorCoordinates;
import com.grelobites.oric.dsk.util.Util;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.nio.ByteBuffer;
import ja... | true |
57a3ec8e3ce4b8ac9a0ff009a92097a695fbe743 | Java | OliverZulett/Order-API | /src/main/java/com/milankas/training/services/address/AddressServiceInterface.java | UTF-8 | 342 | 1.84375 | 2 | [] | no_license | package com.milankas.training.services.address;
import com.milankas.training.dtos.address.PostAddressInputDTO;
import com.milankas.training.persistance.entities.AddressEntity;
import org.springframework.stereotype.Service;
public interface AddressServiceInterface {
AddressEntity validateAddressToSave(PostAddress... | true |
ec1dc1b17361cf566bbe7eaee418ad5a20081276 | Java | yuto14/Java_book | /Chapter2_10_3.java | UTF-8 | 2,235 | 4.0625 | 4 | [] | no_license | // 継承とコンストラクタ
// 全てのコンストラクタは先頭で必ず内部インスタンス部分(親クラス)のコンストラクタ
// を呼び出さなければならないというルールがある。
public class Hero {
public Hero(){
System.out.println("Heroのコンストラクタが動作");
}
}
public class SuperHero extends Hero {
public SuperHero(){
System.out.println("SuperHeorのコンストラクタが動作");
}
}
public class Ma... | true |
0b8d2046063e651fcdfee79ba0203364fed57736 | Java | lalaoneo/java-demo | /src/test/java/com/lori/javademo/quartz/QuartzTest.java | UTF-8 | 2,063 | 2.84375 | 3 | [] | no_license | package com.lori.javademo.quartz;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.quartz.*;
import org.quartz.impl.StdSchedulerFactory;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import java.util... | true |
ca9813d60834198a36ed3feb31fce821fed96ac4 | Java | tanaybhargava/Tapster | /src/com/tapster/utilities/TapsterNotificationHandler.java | UTF-8 | 2,216 | 1.828125 | 2 | [] | no_license | package com.tapster.utilities;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.NotificationCompat;
import com.microsoft.windowsazure.notifications.NotificationsHandler;
impo... | true |
f95ca49c100c52c5c80c3865861ddcd65f005ca4 | Java | suminskutis/osapp | /src/com/company/RealCPU.java | UTF-8 | 3,523 | 2.546875 | 3 | [] | no_license | package com.company;
public class RealCPU {
public static final int SUPERVISOR = 0;
public static final int USER = 1;
private static int PTR;
private static int PC;
private static int SP;
private static int SM;
private static int PID;
private static int MODE;
private static int ... | true |
878d563e6c9e37bb33708fa69e1654e684c9329c | Java | JCAmorim/GesMarApp | /src/pt/gesmarapp/model/Utilizador.java | UTF-8 | 981 | 2.515625 | 3 | [] | no_license | package pt.gesmarapp.model;
import java.util.Arrays;
import java.util.Date;
public class Utilizador {
public String nomeCompleto; //Exempolo: CC
public CartaoCidadao númeroCC; //Exemplo: Cartão do Cidadão
public Date dataNascimento; //Exemplo: xx-xx-xxxx
Morada morada; ... | true |
c4ee5976dc203de174f3304f6fb4e3d6bbe8066b | Java | minkal-chaudhary/Data-Structure | /DataStructure/Linked List/Detect and Remove Loop in SingleLinkedList/LinkedList.java | UTF-8 | 2,223 | 3.296875 | 3 | [] | no_license | import java.util.*;
class LinkedList
{
Node tail;
Node head=null;
static class Node
{
Node next;
int data;
public Node(int d)
{
data=d;
}
}
public void addFirst(int d)
{
Node n=new Node(d);
if(head==null)
head=n;
else
{
n.next=head;
head=n;
}
}
public void printAll()
{
Node cur=head;
while(c... | true |
728292d940df44cf0f69962c24be2cfb363fe48f | Java | bmistree/ralph | /ralph/java_lib/ralph/IUUIDGenerator.java | UTF-8 | 86 | 2.09375 | 2 | [] | no_license | package ralph;
public interface IUUIDGenerator
{
public String generate_uuid();
} | true |
03e696aeff7cb89e678677d418d633d83f684694 | Java | hkbolla/Coding-files | /Centimeter.java | UTF-8 | 217 | 2.75 | 3 | [] | no_license | import java.util.Scanner;
class Centimeter
{public static void main(String []args)
{
Scanner sc=new Scanner(System.in);
int a=sc.nextInt();
int cm;
cm=a*30;
System.out.println("The output is :" +cm);
}
}
| true |
e19043551eb05f6e457b09740667c2ca5109f0d3 | Java | mirek190/x86-android-5.0 | /external/owasp/sanitizer/src/tests/org/owasp/html/CssSchemaTest.java | UTF-8 | 3,409 | 1.976563 | 2 | [
"BSD-3-Clause"
] | permissive | // Copyright (c) 2013, Mike Samuel
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source code must retain the above copyright
// notice, this list of conditions an... | true |
d49d753cb67678e74812a59721f0803da67472b9 | Java | genomizer/genomizer-desktop | /src/requests/DeleteUserRequest.java | UTF-8 | 184 | 1.859375 | 2 | [] | no_license | package requests;
public class DeleteUserRequest extends Request {
public DeleteUserRequest(String User) {
super("deleteuser", "/admin/user/" + User, "DELETE");
}
}
| true |
a9c0449317375de04ff62a70f93af9f2318f750a | Java | psywombats/7drl2015 | /src/7drl2015-libgdx/src/net/wombatrpgs/sdrl2015/rpg/abil/EffectSummon.java | UTF-8 | 2,894 | 2.125 | 2 | [] | no_license | /**
* EffectSummon.java
* Created on Mar 14, 2015 10:19:10 PM for project 7drl2015-libgdx
* Author: psy_wombats
* Contact: psy_wombats@wombatrpgs.net
*/
package net.wombatrpgs.sdrl2015.rpg.abil;
import java.util.ArrayList;
import java.util.List;
import net.wombatrpgs.sdrl2015.core.MGlobal;
import net.wombatr... | true |
c4a36e515715dd43d0099d6ef0661158fc0790e6 | Java | 4ch1m/kick-assembler-acbg | /app/src/main/java/de/achimonline/kickassembler/acbg/module/KickAssemblerModuleBuilder.java | UTF-8 | 3,730 | 1.945313 | 2 | [
"MIT"
] | permissive | package de.achimonline.kickassembler.acbg.module;
import com.intellij.compiler.CompilerWorkspaceConfiguration;
import com.intellij.ide.fileTemplates.FileTemplate;
import com.intellij.ide.fileTemplates.FileTemplateManager;
import com.intellij.ide.util.projectWizard.ModuleBuilder;
import com.intellij.ide.util.projectWiz... | true |
882670db366b092b78bd80b9812b3b31b1421dba | Java | Zarosch/Facility | /1_8_R3/src/main/java/me/velz/facility/version/Version_1_8_R3.java | UTF-8 | 4,923 | 1.929688 | 2 | [
"MIT"
] | permissive | package me.velz.facility.version;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.Set;
import net.md_5.bungee.api.chat.TextComponent;
import net.minecraft.server.v1_8_R3.EntityPlayer;
import net.minecraft.server.v1_8_R3.IChatBaseComponent;
import net.minecraft.server.v1_8_R3.Packet... | true |
8b49d99978580ac4a3a72600c5b91351e119091b | Java | priyanka1228/modern-web-app | /mwa-wro4j/src/main/java/com/github/jknack/mwa/wro4j/UriLocatorFactoryAware.java | UTF-8 | 631 | 1.859375 | 2 | [] | no_license | package com.github.jknack.mwa.wro4j;
import ro.isdc.wro.model.resource.locator.factory.UriLocatorFactory;
import ro.isdc.wro.model.resource.processor.ResourcePostProcessor;
import ro.isdc.wro.model.resource.processor.ResourcePreProcessor;
/**
* Callback interface for {@link ResourcePreProcessor} and
* {@link Resour... | true |
c50528daafb8542adea8c0e70f6a2e5c545dcef3 | Java | JimmyRowland/toDoList | /src/main/ui/ToDoListUI.java | UTF-8 | 1,495 | 3.265625 | 3 | [] | no_license | package ui;
import model.ToDoListContainer;
import java.util.Scanner;
public class ToDoListUI {
// EFFECTS print out Welcome to 'creative todolist application\
private void printSomething() {
System.out.println("Welcome to \'creative todolist application\'");
}
// EFFECTS Print out Todolist... | true |
46642d50ec37d345f712804938f21f4fa8f5407f | Java | pivotal-cf/spring-cloud-services-starters | /spring-cloud-services-config-client-autoconfigure/src/main/java/io/pivotal/spring/cloud/config/client/OAuth2AuthorizedClientHttpRequestInterceptor.java | UTF-8 | 2,731 | 1.851563 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | true |
92428e53c81fb48387a5e902bc3515c018e70d2d | Java | AbelTarazona/HackCultura | /Culturio/app/src/main/java/com/example/culturio/activity/CulturioActivity.java | UTF-8 | 12,701 | 1.523438 | 2 | [] | no_license | package com.example.culturio.activity;
import android.Manifest;
import android.app.Dialog;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.graphics.drawable.ColorDrawable;
import android.location.Location;
import android.os.Bundle;
import android.os.Looper;
import android.suppor... | true |
775cc98418a43abe38c8b4f83185f574e9b670ab | Java | zhumuwenli/activiti-example | /src/test/java/com/ftu/act/Hello.java | UTF-8 | 339 | 1.796875 | 2 | [] | no_license | package com.ftu.act;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class Hello {
private static final Logger logger = LoggerFactory.getLogger(Hello.class);
@Test
public void hello() {
logger.debug("hello");
System.out.println("hello");... | true |
d070ea828c08ee4d60f997f8ee22ea26b6bda5bd | Java | AliSmili/ListaJava | /Tema6/src/models/Tiempo.java | UTF-8 | 1,870 | 3.078125 | 3 | [] | no_license | package models;
public class Tiempo {
private int horas;
private int minutos;
private int segundos;
// false 24H - true 12 am/pm
private boolean modoAMPM = false;
public Tiempo(int horas, int minutos, int segundos) {
if (horas > 24 || horas < 0) {
this.horas = 0;
} else {
this.horas = horas;
}
... | true |
404038c79209f1e9bfa8e21763905729e3e98b7d | Java | AnthonyMineo/MyNews | /app/src/main/java/com/denma/mynews/Views/MostPopularAdapter.java | UTF-8 | 1,767 | 2.484375 | 2 | [] | no_license | package com.denma.mynews.Views;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.bumptech.glide.RequestManager;
import com.denma.mynews.Models.MostPopularAPI.MostPopularArticl... | true |
1b4d34fed122455640086e489fadf8cd16539ae4 | Java | manosbatsis/SAVEFILECOMPANY | /api1/src/generated/java/com/heb/pm/entity/ImageMetaData_.java | UTF-8 | 2,333 | 1.554688 | 2 | [] | no_license | package com.heb.pm.entity;
import java.time.LocalDateTime;
import javax.annotation.Generated;
import javax.persistence.metamodel.SingularAttribute;
import javax.persistence.metamodel.StaticMetamodel;
@Generated(value = "org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor")
@StaticMetamodel(ImageMetaData.class)
publ... | true |
d842c7e1ca8b77ce165bc696606e1744abceaef1 | Java | tomlxq/tutorials | /core-java-modules/core-java-streams/src/main/java/com/tom/stream/sum/Item.java | UTF-8 | 179 | 1.726563 | 2 | [] | no_license | package com.tom.stream.sum;
import lombok.AllArgsConstructor;
import lombok.Data;
@Data
@AllArgsConstructor
public class Item {
private int id;
private Integer price;
}
| true |
0d8a450fdf04fdbcbb64f4737c7371d16ca8ef9e | Java | morshedmm/PDP | /homework3-Mazes/test/PerfectMazeTest.java | UTF-8 | 1,040 | 2.8125 | 3 | [] | no_license |
import static org.junit.Assert.assertEquals;
import java.awt.Point;
import mazes.GoldThief;
import mazes.Location;
import mazes.PerfectMaze;
import org.junit.Before;
import org.junit.Test;
/**
* A JUnit test class for PerfectMaze class.
*
*/
public class PerfectMazeTest {
private PerfectMaze myPerfectMaze... | true |
990da3b87ecb854b0e42a80fd94ac76d68184fa4 | Java | cfalguiere/DuchessCameraHandsOn | /ressourcesHandsOn/duchescamera/DrawView.java | UTF-8 | 1,011 | 2.296875 | 2 | [] | no_license | package com.example.duchescamera;
import android.content.Context;
import android.graphics.Canvas;
import android.util.Log;
import android.view.MotionEvent;
import android.widget.ImageView;
public class DrawView extends ImageView {
private static final String TAG = DrawView.class.getSimpleName();
pu... | true |
cab2deab2b00575a76a55642f88e456fda9dae26 | Java | wenchuan/cs239-mhp-analysis | /mhp/MhpIfelseNode.java | UTF-8 | 697 | 2.9375 | 3 | [] | no_license | package mhp;
public class MhpIfelseNode extends MhpNode {
public MhpNode e, ifnode, elsenode;
public MhpIfelseNode(MhpNode s, MhpNode s1, MhpNode s2){
e = s;
ifnode = s1;
elsenode = s2;
}
public String toString() {
String string = "If (";
string += e.toString();
string += ") then (";
if (ifnode != ... | true |
e0dae0746ae5f369a510defe088b77b7213cd0fc | Java | JackLuJ/bigFlag | /src/main/java/com/jackluan/bigflag/domain/notice/component/dataobject/NoticeConfigDo.java | UTF-8 | 445 | 1.5625 | 2 | [] | no_license | package com.jackluan.bigflag.domain.notice.component.dataobject;
import com.jackluan.bigflag.common.base.BaseDo;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;
/**
* @Author: jeffery.luan
* @Date: 2020/3/7 19:03
*/
@Data
@NoArgsConstructor
public class NoticeConfigDo extends BaseDo {
... | true |
a037ee8bf1dadb7ee188295e18618a645ebda6c9 | Java | trexik/E-Dziennik | /src/main/java/pl/coderslab/Group/GroupController.java | UTF-8 | 1,966 | 2.28125 | 2 | [] | no_license | package pl.coderslab.Group;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.*;
import pl.coderslab.Repositories.Group... | true |
9301e8ce99381911d6f81d05ce8395e6f13caeb9 | Java | he-a123/JavaStudyCode | /BigArrayDate/src/day24_IO/demo2/BufferedInputStreamDemo.java | UTF-8 | 1,033 | 3.703125 | 4 | [] | no_license | package day24_IO.demo2;
import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.IOException;
/**
* 字节输入流的缓冲流
* java.io.BufferedInputStream
* 继承InputStream,标准字节输入流
* 读取方法 read()单个字节,字节数组
*
* 构造方法:
* BufferedInputStream(InputStream in)
* 可以传递任意字节输入流,传递是谁,就提高谁的效率... | true |
9d8607ab4963429cffccaa7f0fa6677607ffc5e3 | Java | codingtonyxy/storeassistant | /StoreAssistant/src/com/storeassistant/util/TimerUtil.java | UTF-8 | 1,008 | 2.828125 | 3 | [] | no_license | package com.storeassistant.util;
import java.util.Timer;
import java.util.TimerTask;
public class TimerUtil {
public static Timer getTimer(String name){
Timer timer = new Timer(name);
return timer;
}
/**
* @param timer
* @param task
* @param delay
*/
public static void schedule(Ti... | true |
99dbc4a826c59f2e0e4a7d9734e2a483d4297d77 | Java | ruma24/java2 | /lab4.java | UTF-8 | 553 | 3.109375 | 3 | [] | no_license | package lab4;
/**
*
*/
public class Lab4 {
/**
* @param args the command line arguments
*/
int len;
int width;
void fun(int l,int w)
{
len=l;
width=w;
}
void show()
{
System.out.println(len*width);
}
public s... | true |
a55aa73bb8b35b1c4ee4f56db9a3bb24b12919a8 | Java | SCADA-LTS/Scada-LTS-E2E | /scada-lts-e2e-test/scada-lts-e2e-test-impl/src/main/java/org/scadalts/e2e/test/impl/creators/DataPointObjectsCreator.java | UTF-8 | 12,019 | 1.820313 | 2 | [
"Apache-2.0"
] | permissive | package org.scadalts.e2e.test.impl.creators;
import lombok.NonNull;
import lombok.extern.log4j.Log4j2;
import org.scadalts.e2e.page.impl.criterias.DataPointCriteria;
import org.scadalts.e2e.page.impl.criterias.DataSourceCriteria;
import org.scadalts.e2e.page.impl.criterias.DataSourcePointCriteria;
import org.scadalts... | true |
59fef72de0dc013b7798e45589864ea8a067de5a | Java | f-leno/DOO-Q_BRACIS2016 | /code/GoldMineMultiagent/src/domain/NoGoldPF.java | UTF-8 | 1,184 | 2.75 | 3 | [
"MIT"
] | permissive | /**
*
*/
package domain;
import java.util.List;
import burlap.oomdp.core.PropositionalFunction;
import burlap.oomdp.core.objects.ObjectInstance;
import burlap.oomdp.core.states.State;
import burlap.oomdp.stochasticgames.SGDomain;
/**
* @author Felipe Leno da Silva
* Propositional function that becomes true when... | true |
8496856ceded0aff3c33b246f9030f986e30f51c | Java | tranthanhtu/hackathonAD5_Weather | /NewWeather/app/src/main/java/com/example/hau/newweather/models/json/api_yahoo/QueryW.java | UTF-8 | 302 | 1.960938 | 2 | [] | no_license | package com.example.hau.newweather.models.json.api_yahoo;
import com.google.gson.annotations.SerializedName;
/**
* Created by Hau on 31/12/2016.
*/
public class QueryW {
@SerializedName("results")
private ResultW resultW;
public ResultW getResultW() {
return resultW;
}
}
| true |
2ebb28502c558ea4b9b72adc244f772a57636064 | Java | nvshah/DigitalLogic | /app/src/main/java/com/example/nipun/myapp1/FlipFlop.java | UTF-8 | 10,942 | 2.453125 | 2 | [] | no_license | package com.example.nipun.myapp1;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.InputType;
import android.text.Layout;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.EditText;
import android.widget.... | true |
9a4011aa0d6eddfa7c1e132b3188ebcacaf8391f | Java | venkat-techmileage/actreports | /src/main/java/act/reports/model/AuctionListInvoicesDetails.java | UTF-8 | 2,364 | 2.046875 | 2 | [] | no_license | package act.reports.model;
public class AuctionListInvoicesDetails {
private String invoiceId = "";
private String vehicleYear = "";
private String vehicleMake = "";
private String vehicleModel = "";
private String vehicleVIN = "";
private String licensePlateCountry = "";
private String licensePlateState = ""... | true |
0d36d05c8ec1df863a27cfd3e592c31839cc2592 | Java | vijayabhaskar007/bhaskar | /java project/src/package1/AutoItEx.java | UTF-8 | 1,089 | 2.359375 | 2 | [] | no_license | package package1;
import java.awt.AWTException;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class AutoItEx {
public static WebDriver driver;
public stati... | true |
08765045ea4b78c06b990a6f9ae1b528abfe6983 | Java | koitoer/java-sandbox | /java-8/src/main/java/com/koitoer/java/let/tree/Solution572.java | UTF-8 | 841 | 3.828125 | 4 | [] | no_license | package com.koitoer.java.let.tree;
/**
* 572. Subtree of Another Tree
* Use recursion check if if they are the same or the left part is equal or the right part is equal.
*/
public class Solution572 {
public boolean isSubtree(TreeNode s, TreeNode t) {
if (s == null) {
return t == null;
... | true |
ccd31c97a3c6b9782e9f4aab4c2912d96e864bff | Java | AY1920S1-CS2103T-F11-3/main | /src/test/java/seedu/address/logic/commands/ModelStubWithCard.java | UTF-8 | 485 | 2.75 | 3 | [
"MIT",
"LicenseRef-scancode-other-permissive"
] | permissive | package seedu.address.logic.commands;
import static java.util.Objects.requireNonNull;
import seedu.address.model.card.Card;
/**
* A Model stub that contains a single card.
*/
public class ModelStubWithCard extends ModelStub {
private final Card card;
ModelStubWithCard(Card card) {
requireNonNull(c... | true |
6daf3617f2ec26d2ccebdf5dc088ce57c79abb36 | Java | gsreeram/SimSys | /Game Generator/src/edu/utdallas/gamegenerator/Character/PlayerCharacter.java | UTF-8 | 268 | 1.796875 | 2 | [] | no_license | package edu.utdallas.gamegenerator.Character;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
@XmlRootElement(name = "PlayerCharacter")
@XmlType(name = "PlayerCharacter")
public class PlayerCharacter extends Character
{
}
| true |
cc812013a6f33fc285c18844c7cf2484d49bfc8e | Java | ZLOVE320483/Daniujia | /Daniujia/daniujia/src/main/java/com/xiaojia/daniujia/ui/frag/UserOrderDetailFragment.java | UTF-8 | 9,665 | 1.78125 | 2 | [] | no_license | package com.xiaojia.daniujia.ui.frag;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.xiaojia.daniujia.IMMsgFlag;
import com.xiaojia.... | true |
c41a4ee062cea50e19fdc1725d58db96af160502 | Java | SunChiye/CS5200 | /FlickrJavaJsonClient/src/edu/neu/cs5200/service/json/client/HttpXmlClient.java | UTF-8 | 1,083 | 2.609375 | 3 | [] | no_license | package edu.neu.cs5200.service.json.client;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
public class HttpXmlClient {
public static void main(Stri... | true |
1825da24cb98053d2c7ff537b14548d06be2a475 | Java | 1076044561/Java-Code-Demo | /Java-base/src/main/java/com/code/base/util/concurrent/unsafe/UnsafeDemo.java | UTF-8 | 1,177 | 3.0625 | 3 | [] | no_license | package com.code.base.util.concurrent.unsafe;
import sun.misc.Unsafe;
import java.lang.reflect.Field;
public class UnsafeDemo {
private volatile Integer num = 12;
public static void main(String args[]){
Unsafe unsafe = getUnsafe();
try{
String feildName = "num";
l... | true |
ce972743f8914d0cf4002c91da936386926b723c | Java | leegive/fastpowered-starter-raft | /src/main/java/com/fastpowered/raft/config/RaftProperties.java | UTF-8 | 596 | 2.046875 | 2 | [] | no_license | package com.fastpowered.raft.config;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
@Data
@ConfigurationProperties(prefix = "fastpowered.raft")
public class RaftProperties {
/**
* 是否开启Raft
*/
private boolean enable = true;
/**
* 如果Follower在... | true |
4ced6381f829d0bc636a52ffb0f9909fffb1b7f1 | Java | Ganeshmkg/Ganesh | /Palindrome.java | UTF-8 | 401 | 2.9375 | 3 | [] | no_license | package Ganesh;
import java.util.Scanner;
public class Palindrome {
public static void main(String[] args) {
int a,b,c=0,d;
System.out.println("Enter the number:");
Scanner in=new Scanner(System.in);
a=in.nextInt();
d=a;
while(a>0){
b=a%10;
c=c*10+b;
a=a/10;
}
if(c==d){
Syste... | true |
67950b0ab2305bcd8c7dc28ecb090de7066dc172 | Java | akm0012/Mobiquity_Code_Challenge | /app/src/main/java/com/andrewkingmarshall/mobiquitycodechallenge/UI_Handlers/Map_Handler.java | UTF-8 | 5,442 | 2.3125 | 2 | [] | no_license | package com.andrewkingmarshall.mobiquitycodechallenge.UI_Handlers;
import android.app.FragmentTransaction;
import android.content.Context;
import android.location.Location;
import android.location.LocationManager;
import android.util.Log;
import android.view.View;
import com.andrewkingmarshall.mobiquitycodechallenge.... | true |
b1fc7d77f6c2f28f812dafa197aa3fa19993e64d | Java | sreenubk/uccp | /src/main/java/com/lotus/uccp/ods/CpHlthMedSrc.java | UTF-8 | 2,574 | 2 | 2 | [] | no_license | package com.lotus.uccp.ods;
// Generated May 31, 2018 4:53:55 PM by Hibernate Tools 5.2.6.Final
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
imp... | true |