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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
1eae55ef865f21dfee861146a1a06c8445f4a1f4 | Java | acslocum/testInvocationSpeed | /src/info/sample/Looper.java | UTF-8 | 1,072 | 3.09375 | 3 | [] | no_license | package info.sample;
import java.util.Random;
public class Looper {
static long seed;
public Looper(long aSeed) {
seed = aSeed;
}
public boolean loopDynamic(int count) {
Random rand = new Random(seed);
boolean result = false;
for(int i=0; i<count; i++){
if(rand.nextBoolean()) {
result = new Bar... | true |
17e9ee858ebe51e1f64cdd01a2bf89075e2572fc | Java | thegauravjawla/pepCoding | /java/07.07.19/subSequence.java | UTF-8 | 543 | 3.1875 | 3 | [] | no_license | import java.util.*;
public class subSequence
{
public static void seq(String s, String ans)
{
if(s.length() == 0)
{
System.out.println(ans);
return;
}
char firstChar = s.charAt(0);
String restString = s.substring(1, s.length());
seq(restSt... | true |
c8aa9e154b642012c536f28257d0cc1d74e2a1b6 | Java | Vyacheslav-Lapin/SpringFundamentals4 | /src/main/java/BankApplication.java | UTF-8 | 272 | 2.453125 | 2 | [] | no_license | public class BankApplication {
private CompanyReport companyReport;
public void setCompanyReport(CompanyReport companyReport) {
this.companyReport = companyReport;
}
public CompanyReport getCompanyReport() {
return companyReport;
}
}
| true |
9b633fcce4c729400ad395f635bcb9f29ed7e3a3 | Java | Lamashino/Teaching-B4J-Spanish | /Tema 19 - Proyecto Final/Tema 19 - Solución/B4J/Objects/src/b4j/example/anotherprogressbar.java | UTF-8 | 32,703 | 1.828125 | 2 | [
"CC-BY-4.0"
] | permissive | package b4j.example;
import anywheresoftware.b4a.debug.*;
import anywheresoftware.b4a.BA;
import anywheresoftware.b4a.B4AClass;
public class anotherprogressbar extends B4AClass.ImplB4AClass implements BA.SubDelegator{
public static java.util.HashMap<String, java.lang.reflect.Method> htSubs;
private void inne... | true |
d344025dc4768dac64bbb359f4d444f53af60cb8 | Java | AiRisska/JavaGameHeroes | /src/main/java/ru/game/Tank.java | UTF-8 | 271 | 2.265625 | 2 | [] | no_license | package ru.game;
public class Tank extends Avatar {
void Pers() {
proff = "Танк";
attribute = "CON";
attr = 1;
sayAboutPers();
}
void attack() {
skill = "Агр!";
attack(skill);
attr++;
}
}
| true |
55ffad4b3119792c1d1f7d43fb80238f6cb24299 | Java | EleonoraDM/HELL | /entities/heroes/Assassin.java | UTF-8 | 817 | 2.5625 | 3 | [] | no_license | package entities.heroes;
import common.Config;
public class Assassin extends HeroImpl {
public Assassin(String name) {
super(name);
this.setStrength(Config.ASSASSIN_DEFAULT_STRENGTH);
this.setAgility(Config.ASSASSIN_DEFAULT_AGILITY);
this.setIntelligence(Config.ASSASSIN_DEFAULT_I... | true |
696248822abfc9bc122ac477976e2b6264eb7722 | Java | smali2/rest_core | /src/main/java/com/cp8202/project/calc_cloud/model/Memory.java | UTF-8 | 235 | 1.679688 | 2 | [] | no_license | package com.cp8202.project.calc_cloud.model;
import java.util.ArrayList;
public class Memory {
private static ArrayList<Double> saved = new ArrayList<>();
public static ArrayList<Double> getSaved() {
return saved;
}
}
| true |
b942e1577a56463245ced2e903ddcb5b790b1eda | Java | sonnylazuardi/react-native-android-tablayout | /src/main/java/com/xebia/reactnative/Installer.java | UTF-8 | 424 | 2.03125 | 2 | [] | no_license | package com.xebia.reactnative;
class Installer {
private GradleModifier groovyModifier = new GradleModifier();
private JavaModifier javaModifier = new JavaModifier();
public static void main(String[] args) throws Exception {
new Installer().run();
}
private void run() throws Exception {
groovyModif... | true |
b1aefa7a609e3fe98d334c1dfce63b00e165798c | Java | aq1e/CSC207-Final-Project | /phase2/src/convention/exception/SpeakerDoubleBookingException.java | UTF-8 | 479 | 2.578125 | 3 | [] | no_license | package convention.exception;
import convention.calendar.TimeRange;
import java.util.UUID;
/**
* Thrown when a speaker is scheduled to be at more than one event concurrently
*/
public class SpeakerDoubleBookingException extends RuntimeException {
public SpeakerDoubleBookingException(UUID speakerUUID, TimeRange... | true |
0880d00929d89bb9f99ce17f72dc95875d5ee8b3 | Java | sethcg/EMNIST-Digit-Predictor | /src/main/java/emnist_digit_predictor/Cell.java | UTF-8 | 3,370 | 3.328125 | 3 | [] | no_license | package emnist_digit_predictor;
import java.awt.Color;
import java.awt.image.BufferedImage;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.event.EventHandler;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.StackPane;
public class Cell extends Stac... | true |
dd415a133cd0ac23d7a190aea8b6bc13d21400fa | Java | yelinag/GridDriver | /src/Exploration/RobotMap.java | UTF-8 | 10,416 | 2.796875 | 3 | [
"MIT"
] | permissive | package Exploration;
import java.util.ArrayList;
import java.util.concurrent.TimeUnit;
import Exploration.SimulationMain.Node;
public class RobotMap {
protected ArrayList<Grid> vertex;
// static CrunchifyLinkedList edges[] = new
// CrunchifyLinkedList[(TOTAL_HORIZONTAL_TILES-1) *
// (TOTAL_VERTICAL_TI... | true |
e4e322b35bcabc7430febb25b148b6cfd7fbb40b | Java | VatsalaAgrawal/Assignment | /LayeredArchitecture/src/com/techment/utitity/CollectionUtil.java | UTF-8 | 676 | 2.765625 | 3 | [] | no_license | package com.techment.utitity;
import java.util.HashMap;
import java.util.Map;
import com.techment.model.Employee1;
public class CollectionUtil {
static Map<Integer, Employee1> employees=new HashMap<Integer,Employee1>();
static {
employees.put(1,new Employee1(1,"Vatsala","hr",78000));
employee... | true |
f279356afef9845d7ef6e9fa4b8c063ee182a0d5 | Java | Trungri/estate-jsp-servlet-jdbc | /src/main/java/com/estate/utils/HttpClientUtils.java | UTF-8 | 1,141 | 2.6875 | 3 | [] | no_license | package com.estate.utils;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.util.EntityUtils;
import org.apache.log4j.Logger;
public class HttpClientUtils {
final stat... | true |
94bd81fd6a16e078143b2ae4448b3fd6a2f244ca | Java | michelleDB/proyecto_DAM-DAW | /src/java/modelo/Usuario.java | UTF-8 | 4,823 | 2.3125 | 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 modelo;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sq... | true |
25dca03955b56791772394a473523cc140647694 | Java | JVMarks/Java_Projects | /lista_de_exercicios3/src/lista_de_exercicios3/Repeticao.java | UTF-8 | 751 | 3.15625 | 3 | [
"MIT"
] | permissive | package lista_de_exercicios3;
import java.util.Scanner;
public class Repeticao {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner teclado = new Scanner(System.in);
String usuario;
int contador;
do {
contador = 2;
while(contador... | true |
d6b161d96305b2d2059f18f62aadd2e875a22b06 | Java | kuli4/otus-java-homework | /hw14-mvc/src/main/java/pro/kuli4/otus/java/hw14/services/DbServiceUserImpl.java | UTF-8 | 2,460 | 2.765625 | 3 | [
"MIT"
] | permissive | package pro.kuli4.otus.java.hw14.services;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import pro.kuli4.otus.java.hw14.dao.UserDao;
import pro.kuli4.otus.java.hw14.entities.AddressDataSet;
import pro.kuli4.otus.java.hw14.entities.PhoneDataSet;
import pro.kuli4.otus.java.hw14.entiti... | true |
0fc0feef1fe1c52647c274d33f8de8b09e4be003 | Java | skjolber/xml-log-filter | /impl/stax-soap-header/src/main/java/com/github/skjolber/xmlfilter/stax/soap/AbstractSingleXPathStAXSoapHeaderXmlFilter.java | UTF-8 | 1,013 | 1.960938 | 2 | [
"Apache-2.0"
] | permissive | package com.github.skjolber.xmlfilter.stax.soap;
import org.codehaus.stax2.XMLInputFactory2;
import org.codehaus.stax2.XMLOutputFactory2;
import com.github.skjolber.indent.Indent;
import com.github.skjolber.xmlfilter.stax.AbstractSingleXPathStAXXmlFilter;
public class AbstractSingleXPathStAXSoapHeaderXmlFilter exten... | true |
3f442fb63d4642cb0b3b3f53b26ac76f3acfcd39 | Java | tomPolesovsky/car-park | /carpark-service/src/main/java/cz/pa165/carpark/service/service/ReservationSettingsServiceImpl.java | UTF-8 | 2,306 | 2.546875 | 3 | [] | no_license | package cz.pa165.carpark.service.service;
import cz.pa165.carpark.persistence.dao.ReservationSettingsDao;
import cz.pa165.carpark.persistence.entity.Employee;
import cz.pa165.carpark.persistence.entity.ReservationSettings;
import org.springframework.stereotype.Service;
import javax.inject.Inject;
import java.util.Lis... | true |
11338fa5020b1ee7fc5d5d2b92b56a00fea552c7 | Java | ricardopereira33/FSD | /distobj/src/main/java/manager/Data/Context.java | UTF-8 | 1,177 | 2.40625 | 2 | [] | no_license | package manager.Data;
import io.atomix.catalyst.buffer.BufferInput;
import io.atomix.catalyst.buffer.BufferOutput;
import io.atomix.catalyst.serializer.CatalystSerializable;
import io.atomix.catalyst.serializer.Serializer;
import io.atomix.catalyst.transport.Address;
public class Context implements CatalystSerializab... | true |
319ecb1e92498d7150b689576b63255899c94528 | Java | latbeo0/fast-delivery-application | /app/src/main/java/com/uniapp/fastdeliveryappilcation/viewholder/ActiveSubscriptionViewHolder.java | UTF-8 | 1,004 | 1.914063 | 2 | [] | no_license | package com.uniapp.fastdeliveryappilcation.viewholder;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.cepheuen.elegantnumberbutton.view.ElegantNumberButton;
import com.uniapp.fast... | true |
9877e4373c463a7b6ab0c374de0acaacb03a4ac7 | Java | WackyCoders/BlowThem-Server | /server/DataBaseConnector/DataBaseConnector.java | UTF-8 | 13,737 | 2.515625 | 3 | [] | no_license | package server.DataBaseConnector; /**
* Created by foban on 16.07.14.
*/
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.sql.*;
import server.Garage.Purchase;
//import javax.servlet.*;
//import javax.servlet.http.*;
public class DataBaseConnector {
private final String driverName =... | true |
8495a2bb1dc5604b016359141bbe17583c4591f5 | Java | dydolino/JavaEE2 | /Library/src/Funcions/LibraryRead.java | UTF-8 | 1,084 | 3.09375 | 3 | [] | no_license | package Funcions;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
public class LibraryRead {
public LibraryRead() {
}
public void read(Connection connection) {
Statement statement = null;
try {
statement = conne... | true |
f056cf2f8ddfac4e2e0a5f6813ba09a3657003b3 | Java | BartoszKonkol/projects | /RHN/1.6.2.1/event/ISignEvent.java | UTF-8 | 202 | 1.765625 | 2 | [] | no_license | package net.polishgames.rhenowar.util.event;
import org.bukkit.block.Sign;
import net.polishgames.rhenowar.util.Rhenowar;
public interface ISignEvent extends Rhenowar
{
public Sign giveSign();
}
| true |
addff1c2567e8c95153dc0448476602b07917025 | Java | Cargon16/AcideTFG | /src/acide/gui/menuBar/configurationMenu/menuMenu/AcideMenuMenu.java | ISO-8859-1 | 19,745 | 1.773438 | 2 | [] | no_license | /*
* ACIDE - A Configurable IDE
* Official web site: http://acide.sourceforge.net
*
* Copyright (C) 2007-2014
* Authors:
* - Fernando Senz Prez (Team Director).
* - Version from 0.1 to 0.6:
* - Diego Cardiel Freire.
* - Juan Jos Ortiz Snchez.
* - Delfn Ruprez Caas.
* ... | true |
a31b9e5a656c69133203d209db6f21258ac52c9a | Java | ericwang094/leetcode | /src/LeetcodeGeneral/LRUCache_SinglyLinkedList_146.java | UTF-8 | 2,242 | 3.28125 | 3 | [] | no_license | package LeetcodeGeneral;
import java.util.HashMap;
import java.util.Map;
import TwoPointers.ListNode;
import java.util.HashMap;
import java.util.Map;
public class LRUCache_SinglyLinkedList_146 {
public class LRUCache {
private class ListNode {
int val;
int key;
ListNode next;
public ListNode(int key,... | true |
983cb5eb6af12c33d7fb3a0ea987a234b213bbdb | Java | cduvvuri18/EmbeddedHornetQSpringExample | /src/main/java/com/bioimagene/iii/ims/messaging/publish/ImsMessagePublisher.java | UTF-8 | 148 | 1.65625 | 2 | [] | no_license | package com.bioimagene.iii.ims.messaging.publish;
public interface ImsMessagePublisher {
void publishToConnectVOutboundQueue( String text );
}
| true |
4cec642a5a1754ae0f814e206156fcb76682cc31 | Java | vamshigunda1/ReportCenterAutomation | /reportceneter_pom/src/test/java/com/truven/advantagesuite/testcase/CrossTabReport.java | UTF-8 | 2,054 | 1.875 | 2 | [] | no_license | package com.truven.advantagesuite.testcase;
import org.testng.annotations.Test;
import com.truven.advantagesuite.pages.AHRW;
import com.truven.advantagesuite.pages.LoginPage;
import com.truven.advantagesuite.pages.PackageSelection;
import com.truven.advantagesuite.pages.RunNSaveReport;
import com.truven.advantagesuit... | true |
10493d5f801c0f9d6acd721a64c5f3a3b67ec603 | Java | cjhox/Rupert | /Code/Projekt Rupert/src/shared/com/UpdateHealth.java | ISO-8859-1 | 560 | 2.1875 | 2 | [] | no_license | package shared.com;
/**
* UpdateHealth ist das Serialisierbare Objekt, welches nach der Kampfphase vom
* Server an den Client gesendet wird. UpdateHealth enthlt eine List, welche
* alle vom Server durchgefhrten Zge in der korrekten Reihenfolge enthlt
* damit der Client seine Units entsprechend konsistent Updaten k... | true |
8747a9875735210a89dad817af3ebfd1310ab4de | Java | valdemirsm/projetos | /EstudoAlgaWorks/src/br/com/valdemir/converter/ClienteConverter.java | UTF-8 | 1,049 | 2.3125 | 2 | [] | no_license | package br.com.valdemir.converter;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.convert.Converter;
import javax.faces.convert.FacesConverter;
import br.com.valdemir.model.Cliente;
import br.com.valdemir.repository.ClienteRepository;
import br.com.valdemir.util.... | true |
9f0a07d1d7fd0c511184ea6b9a50a58d197d2fc6 | Java | Valarath/Java-SE-2-homework | /src/main/java/cz/unicorncollege/bt/commands/MeetingRoomCommandName.java | UTF-8 | 1,406 | 2.484375 | 2 | [] | no_license | package cz.unicorncollege.bt.commands;
import cz.unicorncollege.bt.commands.meeting.room.AddRoom;
import cz.unicorncollege.bt.commands.meeting.room.EditRoom;
import cz.unicorncollege.bt.commands.meeting.room.ShowRooms;
import cz.unicorncollege.bt.commands.support.Process;
import cz.unicorncollege.bt.model.MeetingCentr... | true |
4cb41325d123cca6bbeb8b8cbe20dce525637ca3 | Java | stephen1706/astro | /app/src/main/java/com/stephen/astro/Constants.java | UTF-8 | 426 | 2.03125 | 2 | [] | no_license | package com.stephen.astro;
import java.util.concurrent.TimeUnit;
/**
* Created by stephenadipradhana on 12/28/16.
*/
public interface Constants {
long SERVER_TIMEZONE = TimeUnit.HOURS.toMillis(8);//server time is +8 GMT, request must be in +8 not in UTC
String REALM_DATABASE_NAME = "weather.realm";
in... | true |
e37fda224f9dca59e830d08dd7a8a298366e32cd | Java | boricles/aemet | /tools/VisualizadorAemet/src/main/java/es/upm/fi/dia/oeg/map4rdf/client/widget/StatisticsSelectionDialog.java | MacCentralEurope | 3,787 | 2.046875 | 2 | [
"MIT"
] | permissive | /**
* Copyright (c) 2011 Ontology Engineering Group,
* Departamento de Inteligencia Artificial,
* Facultad de Informtica, Universidad
* Politcnica de Madrid, Spain
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softw... | true |
bd8ad9d91d90cc86436b8f52fdb4e1f654b4757b | Java | AmbroseNTK/GamelibGdxDemo1 | /core/src/kiet/nguyentuan/libgdx/demo1/GoldCoin.java | UTF-8 | 1,119 | 2.421875 | 2 | [] | no_license | package kiet.nguyentuan.libgdx.demo1;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
/**
* Created by nguye on 21/11/2016.
*/
public class GoldCoin extends AbstractGameObject {
private TextureRegion regGoldCoin;
public boolean collected;
public Gol... | true |
d6f61ba9441b2b2cf9794c92b7ce9e85d6a4388c | Java | DrXrayW/practice | /src/xray/leetcode/bits/GrayCode.java | UTF-8 | 675 | 3.265625 | 3 | [] | no_license | package xray.leetcode.bits;
import java.util.ArrayList;
import java.util.List;
/*
* 00 - 0
01 - 1
11 - 3
10 - 2
IN SHORT:
long gray = i^(i>>1) ;
*/
public class GrayCode {
public List<Integer> grayCode(int n) {
List<Integer> result = new ArrayList<Integer>();
int N = 32;
if((n<=0)||... | true |
b3d2015cf85dc25b474b2ab3ee3c815ae5945ca6 | Java | Vince-Lu177/practice | /JavaTest/Tree2str.java | UTF-8 | 1,691 | 4.03125 | 4 | [] | no_license | package practice.practice.JavaTest;
public class Tree2str {
class TreeNode{
public int val;
public TreeNode left;
public TreeNode right;
public TreeNode(int val) {
this.val = val;
}
}
//二叉树创建字符串
//根据先序遍历的方式,将一个二叉树转换成一个由括号和整数组成的字符串,空节点则用一对空括号"()"表示
... | true |
2f81cce8f8eeed786c5e3b243c8c01c044bbbb81 | Java | GameDevCompanyName/AndroidProject | /app/src/main/java/ru/gdcn/beastmaster64revelations/GameClass/Actions/BasicHeal.java | UTF-8 | 1,311 | 2.65625 | 3 | [] | no_license | package ru.gdcn.beastmaster64revelations.GameClass.Actions;
import ru.gdcn.beastmaster64revelations.GameInterface.Action.Action;
import ru.gdcn.beastmaster64revelations.GameInterface.Action.ActionResult;
import ru.gdcn.beastmaster64revelations.GameInterface.Action.ActionType;
import ru.gdcn.beastmaster64revelations.Ga... | true |
6d1e7ab2bade589d911e2c0d4ccc2e3d1d81308e | Java | sungsikyang92/framework | /springIOC5-dbcp/src/model/AccountDAO.java | UTF-8 | 408 | 2.046875 | 2 | [] | no_license | package model;
import java.sql.SQLException;
public interface AccountDAO {
/* 메서드 오버라이딩 규칙: 메서드명, 매개변수 동일해야 하고
* 접근제어자는 하위로 갈수록 범위가 좁아져서는 안되고
* 상위 메서드에서 선언한 Exception 또는 하위 Exception만 throws 가능하다.
*/
public AccountVO findAccountById(String id) throws SQLException;
}
| true |
f5c47bd2b026d39825fafa2986e6c51b74471d85 | Java | tagban/bnubot | /BNUBot/src/net/bnubot/util/MirrorSelector.java | UTF-8 | 3,361 | 2.6875 | 3 | [] | no_license | /**
* This file is distributed under the GPL
* $Id$
*/
package net.bnubot.util;
import java.io.IOException;
import java.net.ConnectException;
import java.net.Inet4Address;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.net.SocketException;
import java.net.Socket... | true |
199424bb0f7f7cc97df8ef47e63ade5aadaa7a1a | Java | mTomczak/CustomerCreditApp | /Product/src/test/java/app/controller/ProductControllerTest.java | UTF-8 | 945 | 2.328125 | 2 | [] | no_license | package app.controller;
import app.model.Product;
import app.repository.ProductRepository;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import static org.junit.jupiter.api.Assertions.*;
@SpringBootTest
c... | true |
ca6a5696b774d7f05f0109e1e1794a6a842167fa | Java | Ziongorlik/BuyMeProjectUpgraded | /src/test/java/pages/IntroPage.java | UTF-8 | 2,970 | 2.734375 | 3 | [] | no_license | package pages;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.testng.Assert;
import java.sql.SQLException;
import java.util.List;
/***
* Intro page management
*/
public class IntroPage extends BasePage{
public IntroPage() throws SQLException {
super();
}
/***... | true |
6c4cd78ac5cdd0d1a963d38d94c617f2ac3f8943 | Java | mathieu-ma/montagnesdor | /mdo-core/api/src/main/java/fr/mch/mdo/restaurant/dao/restaurants/IRestaurantReductionTablesDao.java | UTF-8 | 703 | 1.9375 | 2 | [] | no_license | package fr.mch.mdo.restaurant.dao.restaurants;
import java.util.List;
import fr.mch.mdo.restaurant.dao.IDaoServices;
import fr.mch.mdo.restaurant.dao.beans.RestaurantReductionTable;
import fr.mch.mdo.restaurant.exception.MdoException;
public interface IRestaurantReductionTablesDao extends IDaoServices
{
L... | true |
93f2d07b0fe15736a743dc3d176ec9113ed15070 | Java | wesjones15/CR-MacroLabs-OOP-ATM | /src/main/java/com/zipcodewilmington/Checking.java | UTF-8 | 196 | 1.953125 | 2 | [] | no_license | package com.zipcodewilmington;
public class Checking extends Account {
public Checking(Double balance, Integer userId, Integer accountId) {
super(balance, userId, accountId);
}
}
| true |
66ac78420b68948662c0db8815992ed4565ccbab | Java | Gregaryw/high-song | /common/common-mybatis/src/main/java/com/high/core/enums/FieldFill.java | UTF-8 | 229 | 1.734375 | 2 | [] | no_license | package com.high.core.enums;
/**
* @Author: HarlanW
* @Date: 2019/4/8 0008
* @Version: 1.0
*/
public enum FieldFill {
/**
*
*/
DEFAULT,
INSERT,
UPDATE,
INSERT_UPDATE;
FieldFill() {
}
}
| true |
fc8a251decd8361b2751097a52eb431765be8daa | Java | lon-io/consonance-java | /assignments/A2/Nim.java | UTF-8 | 2,430 | 3.59375 | 4 | [] | no_license | import java.util.Scanner;
public class NimGame {
public static void main(String[] args){
String player1, player2;
int A, B, C, check=0;
char pile1;
char pile2;
Scanner input = new Scanner(System.in);
// take in names from users
System.out.print("Player 1, enter your name: ");
player1 = input.next... | true |
0178334eab67a0708add182568ea9862881547e0 | Java | crnk-project/crnk-framework | /crnk-core/src/main/java/io/crnk/core/module/internal/DefaultRepositoryInformationProviderContext.java | UTF-8 | 970 | 1.976563 | 2 | [
"Apache-2.0"
] | permissive | package io.crnk.core.module.internal;
import io.crnk.core.engine.information.InformationBuilder;
import io.crnk.core.engine.information.repository.RepositoryInformationProviderContext;
import io.crnk.core.engine.information.resource.ResourceInformationProvider;
import io.crnk.core.engine.parser.TypeParser;
import io.c... | true |
c13727b91ef3f700ee55163345881d0dadc54d11 | Java | BinSlashBash/xcrumby | /src-v2/org/apache/commons/codec/language/bm/Languages.java | UTF-8 | 6,417 | 2.375 | 2 | [] | no_license | /*
* Decompiled with CFR 0_110.
*/
package org.apache.commons.codec.language.bm;
import java.io.InputStream;
import java.util.Collections;
import java.util.EnumMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Map;
import java.util.NoSuchElementException;
import java.util.Scanner;
import jav... | true |
ad7618cdc56ee4b8e04917aa457c84a01f770069 | Java | switchYello/wxutil | /src/main/java/com/github/wxutil/XmlUtils.java | UTF-8 | 2,024 | 2.5625 | 3 | [] | no_license | package com.github.wxutil;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.SAXException;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
i... | true |
bb87525f72a24b58c92a4e35da5cc1c208d11d06 | Java | dark-matter-org/dark-matter-mvw | /src/org/dmd/dmp/server/servlet/base/EventBusIF.java | UTF-8 | 2,303 | 2.015625 | 2 | [] | no_license | // ---------------------------------------------------------------------------
// dark-matter-data
// Copyright (c) 2012 dark-matter-data committers
// ---------------------------------------------------------------------------
// This program is free software; you can redistribute it and/or modify it
// under the... | true |
d7ed578d3d3487c303fb79284a1c0bed9f7f7028 | Java | datasphere-oss/datasphere-integration | /Platform-4.0/src/com/datasphere/hdstore/base/HDStoreBase.java | UTF-8 | 917 | 2.546875 | 3 | [] | no_license | package com.datasphere.hdstore.base;
import java.util.*;
import com.datasphere.hdstore.*;
public abstract class HDStoreBase<T extends HDStoreManagerBase> implements HDStore
{
private final HDStoreManager manager;
private final String name;
private final Map<String, Object> properties;
protected H... | true |
e785b9610c96cc45392e6b232a5c636a9fc58ff7 | Java | ShwethaThammaiah/openmrs-module-muzimaforms-1 | /omod/src/main/java/org/openmrs/module/muzimaforms/resource/MuzimaFormResource.java | UTF-8 | 5,871 | 1.914063 | 2 | [] | no_license | package org.openmrs.module.muzimaforms.resource;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.openmrs.annotation.Handler;
import org.openmrs.api.context.Context;
import org.openmrs.module.muzimaforms.MuzimaConstants;
import ... | true |
420ad056b13a8590766e4c3597bf3013a11319c7 | Java | Flowy/space-find | /src/test/java/com/flowyk/spacefind/entity/SquareIteratorTest.java | UTF-8 | 822 | 2.90625 | 3 | [] | no_license | package com.flowyk.spacefind.entity;
import org.junit.Assert;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
public class SquareIteratorTest {
@Test
public void oneRow() {
Room.SquareIterator iterator = new Room.SquareIterator(1, 4);
List<Position> result = new Arr... | true |
5c71a28ca1bc71437b114652ea8c7ed1b0e36022 | Java | mobecco/java-blog-tutorials | /runnable-war/src/main/java/HelloServlet.java | UTF-8 | 680 | 2.34375 | 2 | [] | no_license | import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
/**
* Created with IntelliJ IDEA.
* User: Ulises Fasoli
* Date: 13.11.13
* Time: 14:03
*/
@WebServlet(name = "... | true |
eb2a9a046ef6fd09af74fd2d1a615ee373176dbe | Java | GuilhermeJWT/orange-talents-04-template-ecommerce | /src/main/java/br/com/zupacademy/guilhermesantos/mercadolivre/dto/ModelPagSeguroDTO.java | UTF-8 | 1,167 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | package br.com.zupacademy.guilhermesantos.mercadolivre.dto;
import javax.validation.constraints.NotNull;
import br.com.zupacademy.guilhermesantos.mercadolivre.enums.StatusResponsePagSeguro;
import br.com.zupacademy.guilhermesantos.mercadolivre.model.ModelCompra;
import br.com.zupacademy.guilhermesantos.mercadolivre.m... | true |
4cc53429f24a5e0a29723c14f98edd9f222371f8 | Java | Wobum/JZOffer | /src/Chapter02/Algorithm08.java | UTF-8 | 1,574 | 3.453125 | 3 | [] | no_license | package Chapter02;
public class Algorithm08 {
/**
* @Auther: Wobum
* @Date: 2018/12/3 20:18
* @Description: 二叉树的下一个节点
*/
public static class Node{
public int value;
public Node left;
public Node right;
public Node father;
public Node(int value){
... | true |
9cc904cdb2e91f539ba211ac2fe8243495c98be2 | Java | dstack-group/Butterfly | /butterfly/sonarqube-producer/src/main/java/it/unipd/dstack/butterfly/producer/sonarqube/App.java | UTF-8 | 688 | 2.015625 | 2 | [
"MIT"
] | permissive | /**
* @project: Butterfly
* @author: DStack Group
* @module: sonarqube-producer
* @fileName: App.java
* @created: 2019-03-07
*
* --------------------------------------------------------------------------------------------
* Copyright (c) 2019 DStack Group.
* Licensed under the MIT License. See Licen... | true |
c0f5400674298db6b9d584dcaff561be0617ddc0 | Java | CodingPractise/HouseBooking | /src/com/psg/guesthousebooking/model/Guest.java | UTF-8 | 808 | 2.703125 | 3 | [] | no_license | package com.psg.guesthousebooking.model;
/**
* Used to represent the guests of the guest house
* @author Rajasri
*
*/
public class Guest {
private String address;
private String firstName;
private int guestId;
private String lastName;
private long mobileNo;
public Guest(String firstName, S... | true |
53d2f402272b6ac59af4e38e39b5a8b365cfd2bd | Java | ontopia/ontopia | /ontopia-navigator/src/main/java/net/ontopia/topicmaps/nav/utils/comparators/ContextNameGrabber.java | UTF-8 | 4,260 | 2.4375 | 2 | [
"Apache-2.0"
] | permissive | /*
* #!
* Ontopia Navigator
* #-
* Copyright (C) 2001 - 2013 The Ontopia Project
* #-
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-... | true |
0864b79e77e8142a6d06513ceefef4aff76075b5 | Java | jailcomfranssa/academico-JSF | /src/main/java/br/edu/ifpb/fcgp/academico/bean/CadastroCoodernadorBean.java | UTF-8 | 1,745 | 2.3125 | 2 | [] | no_license | package br.edu.ifpb.fcgp.academico.bean;
import java.io.Serializable;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.faces.view.ViewScoped;
import javax.inject.Inject;
import javax.inject.Named;
import br.edu.ifpb.fcgp.academico.controller.CoodernadorController;
import br.edu.ifpb.fcgp.ac... | true |
24f282a4f80ec11beac28e528eeb0dd4823e1c28 | Java | lenmoyouziJiangjun/JavaLearn | /DataStructuresAndAlgorithms/src/algorithms/leetcode/LeetCode40.java | UTF-8 | 3,324 | 3.484375 | 3 | [] | no_license | package algorithms.leetcode;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import static algorithms.leetcode.LeetCodeTest.printList;
/**
* Version 1.0
* Created by lll on 2020-02-10.
* Description
*
* <pre>
*
* 给定一个无重复元素的数组 candidates 和一个目标数 target ,找出 candidates 中所有可以使数字和为 t... | true |
36fd2aaa703218989f4a94973c7d2b88fee7fcfd | Java | xiaoma800820/MediaAndAdvert | /src/main/java/com/xiaoma/dao/SysAccountSettleRecordMapper.java | UTF-8 | 1,313 | 1.8125 | 2 | [] | no_license | package com.xiaoma.dao;
import com.xiaoma.bean.bo.SysAccountSettleRecordExample;
import com.xiaoma.bean.po.SysAccountSettleRecord;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
import com.xiaoma.bean.vo.AdvertiserSettleVO;
import org.apache.ibatis.annotations.Param;
public interface SysA... | true |
de28f313a26149940dc698a3de453343831862de | Java | Magueye717/GestionCommande | /src/main/java/com/GestionCommande/Service/CategorieRestController.java | UTF-8 | 1,243 | 2.171875 | 2 | [] | no_license | package com.GestionCommande.Service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.spr... | true |
0f220edff71f1be3bca66061ec22f636587fe10f | Java | weiyu0424/ThinkInJava | /src/com/weiyu/thinkinginjava/huawei/Main.java | UTF-8 | 3,114 | 3.0625 | 3 | [] | no_license | package com.weiyu.thinkinginjava.huawei;
import java.util.Scanner;
public class Main {
private static int[] distance = null;
private static int[] pre = null;
public static void minPath(int[][] array, int nodes, int sourcenode){
boolean[] visit = new boolean[nodes];
for(int i = 0;i < node... | true |
b321bbe8ef4193bcce6e4a08adfa8d212267aee7 | Java | lf2035724/aucross-commons | /src/main/java/com/ylink/ylpay/common/project/account/app/AccountOptAppService.java | UTF-8 | 2,060 | 2.171875 | 2 | [] | no_license | /**
* 版权所有(C) 2012 深圳市雁联计算系统有限公司
* 创建: Iquil 2012-10-30
*/
package com.ylink.ylpay.common.project.account.app;
import com.ylink.ylpay.common.project.account.dto.RegAccountReturnDTO;
import com.ylink.ylpay.common.project.account.dto.RegNormalAccountDTO;
import com.ylink.ylpay.common.project.account.dto.RegPayablesA... | true |
4a20b76c83c3bf53c6fd6dc12c3c1385ad1593c2 | Java | LuckyBanana/UM2Client | /src/Client.java | ISO-8859-1 | 20,000 | 2.109375 | 2 | [] | no_license | import java.awt.Desktop;
import java.io.EOFException;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.MalformedURLException;
import... | true |
c98afa46eb9f2865c45853319d5dd43a4577481e | Java | siddu427/NEWSRPINGBOOTWORKSPACE | /SpringBoot2ControllerToUiDataExListModels/src/main/java/in/nit/service/EmployeeService.java | UTF-8 | 353 | 2.359375 | 2 | [] | no_license | package in.nit.service;
import java.util.List;
import org.springframework.stereotype.Component;
import in.nit.model.Employee;
@Component
public class EmployeeService {
public List<Employee> getAllEmployees(){
return List.of(
new Employee(10,"A",3.3),
new Employee(11,"B",3.8),
new Empl... | true |
443a035e2effe6b410dc33ae46c0ec1d0668096a | Java | Gekkio/jawwa | /zk-highcharts/src/main/java/fi/jawsy/jawwa/zk/highcharts/impl/HighchartsImpl.java | UTF-8 | 400 | 1.757813 | 2 | [
"Apache-2.0"
] | permissive | package fi.jawsy.jawwa.zk.highcharts.impl;
import fi.jawsy.jawwa.zk.highcharts.Highcharts;
import fi.jawsy.jawwa.zk.highcharts.PointSeries.Point;
public final class HighchartsImpl {
private HighchartsImpl() {
}
public static Highcharts.Options createOptions() {
return new OptionsImpl();
}
... | true |
ec454689ec3f14ffa9a241d7b7963f0fc431d8a7 | Java | parveensuyan/Health-and-Nutrition-Diet | /FlexibilityActivityList.java | UTF-8 | 4,880 | 2.28125 | 2 | [] | no_license | package com.example.parveen.healthconsultantsandnutrition;
import android.content.Intent;
import android.database.Cursor;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.w... | true |
f1290f62b693a25bc591e2e2822153f4b39ff217 | Java | bra1nb3am3r/OneTapVideoDownload | /app/src/main/java/com/phantom/onetapvideodownload/DownloadsFragment.java | UTF-8 | 1,346 | 2.15625 | 2 | [] | no_license | package com.phantom.onetapvideodownload;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
public class Down... | true |
cc3fb0e8b2a08a95e29654a7ace522bbac1adec6 | Java | Outbreak-AFA/outbreak-tactics | /Outbreak/src/com/surtados/outbreak/Models/Personagem.java | UTF-8 | 21,008 | 2.3125 | 2 | [
"MIT"
] | permissive | package com.surtados.outbreak.Models;
import com.surtados.outbreak.Utils.Dados;
import com.surtados.outbreak.components.FieldTile;
import com.surtados.outbreak.components.TeamBox;
import javafx.scene.layout.GridPane;
import java.util.ArrayList;
import static com.surtados.outbreak.Screens.Field.FieldController.getNod... | true |
b5009ffd4f04459fcdf8a8e61ba202c4a3de91a7 | Java | OnSunday/crud-plus | /src/main/java/com/jfeat/crud/plus/agent/CRUDServiceChildAgent.java | UTF-8 | 10,948 | 2.1875 | 2 | [] | no_license | package com.jfeat.crud.plus.agent;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.jfeat.crud.base.exception.BusinessCode;
import com.jfeat.crud.base.exception.BusinessException... | true |
127d123626ffe1744b37aa572441c0415f7197a3 | Java | atul-vyshnav/2021_IBM_Code_Challenge_StockIT | /src/StockIT-v1-release_source_from_JADX/sources/com/google/android/gms/internal/ads/zzcya.java | UTF-8 | 1,533 | 1.585938 | 2 | [
"Apache-2.0"
] | permissive | package com.google.android.gms.internal.ads;
import android.os.IBinder;
import com.google.android.gms.ads.AdError;
/* compiled from: com.google.android.gms:play-services-ads@@19.4.0 */
final class zzcya implements zzbvo {
private final /* synthetic */ zzctc zzgqq;
private boolean zzgrf = false;
private fi... | true |
e197582d84c3a073869dcce18ad71b12639aee51 | Java | cdosousa/scgos | /src/br/com/gfc/modelo/Lancamentos.java | UTF-8 | 13,541 | 2 | 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 br.com.gfc.modelo;
/**
*
* @author Cristiano de Oliveira Sousa
* @version 2018_03Alpha criado em 14/02/2017
*/
public cla... | true |
63dabf343e053caf01c6b6c4d2e8734045993c03 | Java | Hariae/Linked-List-1 | /RemoveNthNodeFromEnd.java | UTF-8 | 1,859 | 4.09375 | 4 | [] | no_license | /**
* Time Complexity: O(n)
* Space Complexity : O(1) no extra space
* Leetcode : Yes
* Idea:
* 1. Calculate size of list
* 2. Iterate till you find the position from end
* 3. Make the next node of previous point to current node's next
*/
class RemoveNthNodeFromEnd {
public static class ListNode {
... | true |
50ca412bd3bbeb36fee8ac7f498e9ff20134bef4 | Java | CyrilTheAndroid/InformationsPositives | /app/src/main/java/com/pinalopes/informationspositives/storage/UserSettings.java | UTF-8 | 2,659 | 2.40625 | 2 | [] | no_license | package com.pinalopes.informationspositives.storage;
import com.pinalopes.informationspositives.R;
import java.util.ArrayList;
import java.util.List;
import static com.pinalopes.informationspositives.Constants.INDEX_OF_FAILURE;
public class UserSettings {
private final List<Integer> categoriesSelected;
pri... | true |
cd6b8846c091f672f7b269a037cb713baca647f9 | Java | javajing/soa2 | /service/src/main/java/com/zjy/service/AppWorkOrderServiceImpl.java | UTF-8 | 401 | 1.820313 | 2 | [] | no_license | package com.zjy.service;
import com.zjy.enums.WorkOrderType;
import org.springframework.stereotype.Service;
import javax.annotation.PostConstruct;
/**
*
*/
@Service
public class AppWorkOrderServiceImpl extends WorkOrderBaseServiceImpl implements AppWorkOrderService {
@PostConstruct
public void AfterSaleWo... | true |
158a75eaee993953dd3753508bba6ad970cb284d | Java | nicopaolillo/almacen-granate | /src/almacen/entidades/ItemCarrito.java | UTF-8 | 790 | 3.28125 | 3 | [] | no_license | package almacen.entidades;
public class ItemCarrito {
//atributos
private Articulo articulo;
private int cantidad;
//constructor
public ItemCarrito (Articulo articulo,int cantidad){
this.articulo=articulo;
this.cantidad=cantidad;
}
//get y set
public Articulo getArticulo() {
return articulo;
}
pub... | true |
a5fb63bf1d159aa3410626c311678db9c817f89f | Java | sven-zhou/sven_code | /coderobot/src/com/auto/coder/convert/ConvertType.java | UTF-8 | 162 | 1.578125 | 2 | [] | no_license | /**
*
*/
package com.auto.coder.convert;
/**
* @author hanman
*
*/
public interface ConvertType {
public String getType(String mysqlType);
}
| true |
a60ee44146878cf106025f97421b4c70529dd606 | Java | cha63506/CompSecurity | /youtube-source/src/com/google/android/apps/youtube/core/utils/ai.java | UTF-8 | 1,080 | 1.695313 | 2 | [] | no_license | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.google.android.apps.youtube.core.utils;
import android.content.ContentResolver;
import android.net.Uri;
import com.google.android.ap... | true |
20f668c358f9944f98a18d7717fc4d149282bd5a | Java | michaelmosmann/wicket-praxis | /de.wicketpraxis--pom/webapp/src/main/java/de/wicketpraxis/web/converter/CustomConverterLocator.java | UTF-8 | 1,050 | 2.140625 | 2 | [] | no_license | /*****************************************
* Quelltexte zum Buch: Praxisbuch Wicket
* (http://www.hanser.de/978-3-446-41909-4)
*
* Autor: Michael Mosmann
* (michael@mosmann.de)
*****************************************/
package de.wicketpraxis.web.converter;
import java.util.HashMap;
import java.util.Map;
impo... | true |
f41ea722c8aaed85a549ae5553fcbb89b866ea5f | Java | Gnod/Memo | /src/com/gnod/memo/tool/StringHelper.java | UTF-8 | 174 | 2.09375 | 2 | [] | no_license | package com.gnod.memo.tool;
public class StringHelper {
public static Boolean isNullOrEmpty(String input){
return (input == null || input.equalsIgnoreCase(""));
}
}
| true |
c065bc74427ab79fe3b5ee06f70a3496a71f2a51 | Java | lucasgenial/comunicav2 | /src/main/java/br/com/cicom/comunicacicom/DSPrimary/model/rh/Funcao.java | UTF-8 | 3,574 | 2.265625 | 2 | [] | no_license | package br.com.cicom.comunicacicom.DSPrimary.model.rh;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.p... | true |
51b0c11d1d4bed3c4f2d3ae331c16875ca68eacc | Java | dacom-utfpr-cm/atividade-4-semaforos-LuizASSilveira | /ex7/Main.java | UTF-8 | 1,051 | 3.75 | 4 | [] | no_license | package ex7;
import java.util.ArrayList;
import java.util.concurrent.Semaphore;
/**
* Semáforos podem ser usadas para representar uma fila.Faça um código que implemente duas filas (F1 e F2) com
* semáforos. As threads colocadas na F1 sópodem executar se tiver um par na F2. Nesse caso, ambas
* as threads na primeir... | true |
0de304b3f64c8a65ed5d6878682ab45a8cc0e417 | Java | mwagner19446/javaPracticeUCSC | /finalproject/src/finalproject/LetterGrader.java | UTF-8 | 22,279 | 3.5 | 4 | [] | no_license | package finalproject;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.Scanner;
import java.util.StringTokenizer;
import java.util.*;
/**
* This is a solution for the Final fo... | true |
74d573fdeffe646ab25d2f854a598af9c1c1f211 | Java | Grise/DDS_Videoclub | /DDS_Videoclub/src/presentacion/control/ControladorAdministracion.java | UTF-8 | 1,905 | 2.453125 | 2 | [] | no_license | package presentacion.control;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.stage.Modality;
import javafx.stage.Stage;
import javafx.stage.StageStyle;
import java.net.URL;
import java.util.ResourceBundle;
import presentacion.control.ControladorCasoDeUso;
public class ControladorAdminis... | true |
b48515c79003f900802fa54f7e43d0146fccbf5d | Java | JAAC8/-Pr-ctica-de-laboratorio-05-Gesti-n-de-Tickets-Parqueadero- | /src/main/java/ec/edu/ec/dao/DAOVehiculo.java | UTF-8 | 2,012 | 2.640625 | 3 | [
"MIT"
] | permissive | /*
* 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.ec.dao;
import ec.edu.ec.modelo.Cliente;
import ec.edu.ec.modelo.Vehiculo;
import java.util.Set;
import java.util.HashS... | true |
88e1bd1da261f1dbe84c6e8489b92f0aa774c420 | Java | Abdullah272056/GridView | /app/src/main/java/com/example/gridview/CustomAdapter.java | UTF-8 | 1,745 | 2.390625 | 2 | [] | no_license | package com.example.gridview;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
public class CustomAdapter extends BaseAdapter {
Context co... | true |
a122503bbf182fb95ef7b0069e2c3460d63e6121 | Java | khshanovskyi/electron | /src/main/java/ua/electron/controller/order/OrderActionsController.java | UTF-8 | 3,037 | 2.140625 | 2 | [] | no_license | package ua.electron.controller.order;
import org.apache.log4j.Logger;
import ua.electron.entity.Constant;
import ua.electron.entity.Order;
import ua.electron.service.topLevel.orderService.IOrderService;
import ua.electron.service.topLevel.shoppingCartService.ICookieShoppingCartService;
import ua.electron.service.topLe... | true |
70680e9cbdb0af29e6f9b4832f46ea2bf8ac8f53 | Java | aswini50/apiChallengesFramework | /tech-assesment/src/test/java/com/api/automation/testNG/HeartbeatTest.java | UTF-8 | 1,873 | 2.046875 | 2 | [] | no_license | package com.api.automation.testNG;
import org.testng.annotations.Test;
import com.api.automation.ApiChallengerUtil;
import junit.framework.Assert;
public class HeartbeatTest extends BaseTest {
public static String basePath;
@Test(priority = 1)
public void deleteHeartbeat() {
basePath = ApiChallengerUtil.props... | true |
089e3066d4ab232e1cbb89d141df3b928eb2d4df | Java | zhongxingyu/Seer | /Diff-Raw-Data/3/3_6f202769d67f886362d83a2443d28b656ad57aaa/LayoutLib/3_6f202769d67f886362d83a2443d28b656ad57aaa_LayoutLib_t.java | UTF-8 | 33,186 | 1.898438 | 2 | [] | no_license | /* -*- tab-width: 4 -*-
*
* Electric(tm) VLSI Design System
*
* File: LayoutLib.java
*
* Copyright (c) 2003 Sun Microsystems and Static Free Software
*
* Electric(tm) is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the... | true |
8229da3ff0edb86945e5f9563665383a899d5377 | Java | IvanStephenYuan/JRAP_Lease | /jrap-core/src/main/java/com/jingrui/jrap/testext/dto/UserDemo.java | UTF-8 | 3,717 | 1.765625 | 2 | [] | no_license | /*
* Copyright ZheJiang JingRui Co.,Ltd.
*/
package com.jingrui.jrap.testext.dto;
import java.util.Date;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import com.jingrui.jrap.core.annotation.MultiLanguage;
import com.jingrui.jrap.core.annotation.MultiLanguag... | true |
a88d51a4e93a05c0db07a1abb6cc613ef757ec28 | Java | kerrimov/modul | /modul1/src/Array/Array_main.java | UTF-8 | 912 | 3.578125 | 4 | [] | no_license | package Array;
import java.util.Scanner;
public class Array_main {
public static void main(String[] args) {
System.out.println("На сколько элементов массив?");
Scanner scr = new Scanner(System.in);
int n = scr.nextInt();
int[] mas = new int[n];
int count = 1;
int j;... | true |
7fd7161e3733d1447cffbdb0b62915a94a44ec3a | Java | woshijunbin/dtzf | /WEB-INF/src/module/map/entity/Fyxxb.java | UTF-8 | 9,276 | 2.078125 | 2 | [] | no_license | package module.map.entity;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
/**
* @author User
*/
@S... | true |
310306f77c975269c8710b68078c2a0e805d4700 | Java | SamuelC98/Assignment1Part2 | /src/Vertex.java | UTF-8 | 845 | 2.84375 | 3 | [] | no_license | import java.util.NoSuchElementException;
public class Vertex<Type> {
public Type data;
public EdgeNode firstEdge;
public Vertex(Type d){
data = d;
firstEdge = null;
}
public Vertex() {
}
//set method
public void setData(Type data) {
if(data == "") throw new... | true |
68322f55afdefe70e115eb2631165cbd5fd8c001 | Java | DiegoJL97/RL-Predictions | /RL-Predictions/src/main/java/diegojl97/rlpredictions/model/User.java | UTF-8 | 3,097 | 2.40625 | 2 | [] | no_license | package diegojl97.rlpredictions.model;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.ElementCollection;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationT... | true |
451cce57432a9b60409ba5221c72037f97707f99 | Java | javaljj/algorithm | /src/leetcode/array/字符串中的第一个唯一字符.java | UTF-8 | 664 | 3.5 | 4 | [] | no_license | package leetcode.array;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Set;
public class 字符串中的第一个唯一字符 {
public int firstUniqChar(String s) {
Map<Character, Integer> maps = new LinkedHashMap<>();
for (int i = 0; i < s.length(); i++) {
maps.put(s.charAt(i), maps.... | true |
fb4d2d280f7fafb68d69e80b0c81be0e56d437ed | Java | ShmulikChicvashvili/webcourse | /project/src/com/technion/coolie/ug/Server/ServerCourseToTrack.java | UTF-8 | 1,146 | 2.359375 | 2 | [] | no_license | package com.technion.coolie.ug.Server;
import java.util.List;
import com.technion.coolie.ug.model.Semester;
public class ServerCourseToTrack {
int id;
String courseId;
Semester semester;
List<String> trackingStudents;
int freePlaces;
public ServerCourseToTrack(final String courseId, final Semester semester,
... | true |
0dec109d6664ab8d33499cb9796524d976f384b6 | Java | lrchao/FakeJob | /library/src/main/java/com/lrchao/fakejob/ui/activity/register/RegisterContract.java | UTF-8 | 443 | 1.851563 | 2 | [] | no_license | package com.lrchao.fakejob.ui.activity.register;
import com.lrchao.fakejob.mvp.MvpView;
/**
* Description:
*
* @author lrc19860926@gmail.com
* @date 2017/6/26 下午2:34
*/
public interface RegisterContract {
interface View extends MvpView {
void showToast(CharSequence s);
void finishPage();
... | true |
2f976832f8519ea6c8f2fb351511f09faee4ceda | Java | xiaotdl/CodingInterview | /LeetCode/java/src/fibonacci/Solution.java | UTF-8 | 856 | 3.796875 | 4 | [] | no_license | package fibonacci;
/**
* Created by Xiaotian on 12/13/17.
*/
public class Solution {
// tag: math, dp, iterative
// time: O(n)
// space: O(1)
/*
* @param n: an integer
* @return: an integer f(n)
*/
public int fibonacci(int n) {
int a = 0;
int b = 1;
for (int... | true |
c71c2bad3ce282760bb21eb1fe451c77eea78081 | Java | snsdTJ/order_dish | /src/com/example/orderservice/dao/OrderDetailDao.java | GB18030 | 5,492 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | /************************************************************
* Ȩ (c)2011, hxf<p>
* ļ TableInfoDao.java<p>
*
* ʱ 20151016 4:20:33
* ǰ汾ţv1.0
************************************************************/
package com.example.orderservice.dao;
import java.util.ArrayList;
import java.util.List;
import com.... | true |
68bf09e073b033d96806371e8fb7816bf0c58d32 | Java | Choukouali2014/CMSC-204 | /Thread Lab/CarQueue.java | UTF-8 | 845 | 3.109375 | 3 | [] | no_license | import java.util.LinkedList;
import java.util.Queue;
import java.util.Random;
public class CarQueue{
private Queue<Integer> queue;
private Random rdm = new Random();
public CarQueue() {
queue = new LinkedList<Integer>();
queue.add(rdm.nextInt(4));
queue.add(rdm.nextInt(4));
queue.add(rdm.nextInt(4));
que... | true |