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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
4c57f55b5fc86ba25b994cfdf83348798788b700 | Java | lujoca12/ActasGrado-2.0 | /src/java/org/uteq/sesion/ExamenComplexivoFacadeLocal.java | UTF-8 | 727 | 1.882813 | 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 org.uteq.sesion;
import java.util.List;
import javax.ejb.Local;
import org.uteq.model.ExamenComplexivo;
/**
*
... | true |
6662616f36fa90c9f4708ad6cf364249fe7e784c | Java | saarthak08/FormSubmissionPortal-AndroidClient | /app/src/main/java/com/sg/formsubmissionportal_androidclient/ui/MainActivity/MainActivity.java | UTF-8 | 6,682 | 1.71875 | 2 | [] | no_license | package com.sg.formsubmissionportal_androidclient.ui.MainActivity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.os.Bundle;
import com.google.android.material.floatingactionbutton.FloatingActionButton;
import com.google.android.material.snackbar... | true |
5f2bbc4ca55eed8198762cadd35b0fe5fed9ff5e | Java | tiansiyu0210/java-8-practice | /src/main/java/src/main/java/Concurrency/DeadLockDemo/mainTest.java | UTF-8 | 812 | 3.109375 | 3 | [] | no_license | package src.main.java.Concurrency.DeadLockDemo;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
public class mainTest {
public static void main(String[] args) {
Fox fox1 = new Fox();
Fox fox2 = new Fox();
Water water = new Water();
Food food = n... | true |
d95d5c113154d9c5a26b7c80d88184b17f2f1c65 | Java | honeycombio/beeline-java | /beeline-core/src/test/java/io/honeycomb/beeline/tracing/propagation/HttpClientPropagatorTest.java | UTF-8 | 7,429 | 1.867188 | 2 | [
"Apache-2.0"
] | permissive | package io.honeycomb.beeline.tracing.propagation;
import io.honeycomb.beeline.tracing.Span;
import io.honeycomb.beeline.tracing.Tracer;
import io.honeycomb.libhoney.shaded.org.apache.http.HttpHeaders;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.m... | true |
2a63884db13183979dfa451e3378ff4dbd314330 | Java | truar/bank-kata | /src/main/java/com/zenikata/bank/domain/SGBankAccount.java | UTF-8 | 1,127 | 2.984375 | 3 | [] | no_license | package com.zenikata.bank.domain;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
public class SGBankAccount implements BankAccount {
private static final BigDecimal ZERO = new BigDecimal(0);
private final Clock clock;
private final List<Transaction> transactionsHistory =... | true |
004a2ed209fc0d161aa46087a12a7440a6979b65 | Java | nkhuyu/xpresso | /src/main/java/com/wantedtech/common/xpresso/HappyObject/HappyObject.java | UTF-8 | 454 | 2.5 | 2 | [
"MIT"
] | permissive | package com.wantedtech.common.xpresso.HappyObject;
import com.wantedtech.common.xpresso.helpers.Equals;
import com.wantedtech.common.xpresso.helpers.HashCode;
public class HappyObject {
Object lhs;
public HappyObject(Object o){
this.lhs = o;
}
public int hashCode(){
return new HashCode(this.lhs, new Str... | true |
15699930a6a7b68f1bfef243dae9617b91fd4b0c | Java | tianwyam/spring-cloud-learn | /spring-cloud-learn-hystrix-books-service/src/main/java/com/tianya/springcloud/hystrix/controller/BooksController.java | UTF-8 | 1,475 | 2.1875 | 2 | [] | no_license | package com.tianya.springcloud.hystrix.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springfra... | true |
b2038d0685d46184bbb87651db255a10a90e99c6 | Java | iochti/process-rule-type | /src/main/java/iochti/processRuleType/document/ProcessRuleDocumentAdapter.java | UTF-8 | 743 | 2.03125 | 2 | [] | no_license | package iochti.processRuleType.document;
import iochti.processRuleType.dto.ProcessRuleTypeDTO;
import org.springframework.stereotype.Service;
@Service
public class ProcessRuleDocumentAdapter {
public ProcessRuleTypeDTO buildDTO(ProcessRuleTypeDocument document) {
ProcessRuleTypeDTO result = new ProcessRuleTypeD... | true |
f9897c5db97762e95187a5ed4f2727f021f90105 | Java | liyajiele/shengaAPP | /usercore/src/main/java/com/sxp/sa/user/dao/UserDao.java | UTF-8 | 531 | 1.914063 | 2 | [] | no_license | package com.sxp.sa.user.dao;
import com.sxp.sa.user.entity.User;
import java.util.List;
/**
* Created by miss on 2017/2/17.
*/
public interface UserDao {
/**
* 根据用户名查找用户
* @param username
* @return
*/
User findByUsername(String username, Integer status);
/**
* 根据id查询用户信息
... | true |
24138ece18a8fc153f3f82e07fa957b0766a8355 | Java | shaojun-zhu/dota | /src/main/java/com/zsj/dota/Handler/DotaHandler.java | UTF-8 | 544 | 1.953125 | 2 | [] | no_license | package com.zsj.dota.Handler;
import com.zsj.dota.entitty.Dota;
import com.zsj.dota.repository.DotaRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;... | true |
6a968ffeaba005edb6ef177caf84a09ab7583fe4 | Java | chme/db-doc-generator | /src/main/java/io/github/chme/dbdocgenerator/OutputConfiguration.java | UTF-8 | 1,361 | 2.140625 | 2 | [
"MIT"
] | permissive | package io.github.chme.dbdocgenerator;
import java.util.List;
import java.util.Optional;
import org.apache.commons.lang3.StringUtils;
import io.quarkus.arc.config.ConfigProperties;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.Singular;
@Co... | true |
9191a0b363ab9ecb958e0fdbc7d0581f5edcb6c8 | Java | utamaro/UsoBasic | /src/jp/gr/java_conf/utamaro/usobasic/client/Interrupt.java | UTF-8 | 848 | 2.640625 | 3 | [] | no_license | package jp.gr.java_conf.utamaro.usobasic.client;
import java.util.logging.Logger;
public class Interrupt{
public enum STATE{
ON,OFF,STOP
};
private STATE state=STATE.OFF;
private int line=0;
private boolean pending=false;
private static ProgramContext context=null;
private static Logger logger = Logger.getL... | true |
43077adf1e758d8fc5f9407026154f703b015e52 | Java | gatechatl/DRPPM | /src/rnaseq/pcpa/AddChr.java | UTF-8 | 1,540 | 2.953125 | 3 | [] | no_license | package rnaseq.pcpa;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.DataInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileWriter;
import java.io.InputStreamReader;
/**
* Specialized class for adding chr to bed files
* @author tshaw
*
*/
public class... | true |
eee6489d6eb76962bfac36bf1ffe9ab5da6f6bbe | Java | elastic/elasticsearch-java | /java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/StringStatsAggregate.java | UTF-8 | 10,655 | 1.773438 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not u... | true |
0ff4b1f48d209c999a83675d10f009ad80a18407 | Java | jmfdezb/calculadora | /src/calculadora/controladores/EntradaTeclado.java | UTF-8 | 847 | 2.40625 | 2 | [] | no_license | package calculadora.controladores;
import javax.swing.ActionMap;
import javax.swing.InputMap;
import javax.swing.JComponent;
import javax.swing.JPanel;
import javax.swing.KeyStroke;
public class EntradaTeclado {
private static final AtajosTeclado[] ATAJOS = AtajosTeclado.getAtajos();
public EntradaTeclado(JPanel ... | true |
c469c73e4dfb8d2ad778e028db34446e987b09e0 | Java | waterif/hermes | /hermes-consumer/src/main/java/com/ctrip/hermes/consumer/engine/pipeline/ConsumerValveRegistry.java | UTF-8 | 747 | 1.679688 | 2 | [
"Apache-2.0"
] | permissive | package com.ctrip.hermes.consumer.engine.pipeline;
import org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable;
import org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException;
import org.unidal.lookup.annotation.Named;
import com.ctrip.hermes.consumer.build.BuildConstants;
impor... | true |
c3bb33d20a182743700a09e88e1ddbe2b9688073 | Java | heamaya/keep-on-coding | /jhtp/src/chapter16/exercise17/SortWords.java | UTF-8 | 817 | 3.390625 | 3 | [] | no_license | package chapter16.exercise17;
import java.util.Scanner;
import java.util.TreeSet;
import java.util.regex.Pattern;
import java.util.stream.Collectors;
public class SortWords {
public static void main(String [] args) {
final Scanner scanner = new Scanner(System.in);
System.out.print("Enter a senten... | true |
e842bc23ac9c8ef2d843adb0daef21e39ff81516 | Java | krutipandya/Project_Management | /CMPE275_TermProject/src/main/java/com/sjsu/cmpe275/projectmanager/configuration/WebSecurityConfig.java | UTF-8 | 2,186 | 2.015625 | 2 | [] | no_license | package com.sjsu.cmpe275.projectmanager.configuration;
import javax.sql.DataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
im... | true |
a677e969ad31c43334a3176a0d74e4aad29e357d | Java | JacobM184/PCPartShowcase | /app/src/main/java/com/example/pcpartsoftware/Client.java | UTF-8 | 1,558 | 2.46875 | 2 | [] | no_license | package com.example.pcpartsoftware;
import android.os.Parcel;
import android.os.Parcelable;
public class Client {
private final int clientID;
private final String name;
private final String username;
private static int clientNum = 0;
private final String email;
private final String password;
... | true |
5b6cee0d7d74c589b85517e1bf566d4247db98ff | Java | uwitec/CarRentalSystemAndroid | /CarRentalSystem/src/solis/freddy/CarRentalSystem/RemoveReservation.java | UTF-8 | 5,469 | 2.953125 | 3 | [] | no_license | /*Title:RemoveReservation
* Name:Freddy Solis
* Date: May 8, 2012
* ID: 0338
* Abstract: This class is meant for the remove reservations activity. This activity will ask the
* user to chose an reservation they would like to cancel, then it will ask them to confirm and then it will
* remove the reservation. if th... | true |
95b16fe2695819daf345fd8f9e469cc8c92a5e2d | Java | CieloSun/spring-boot-demo | /src/main/java/com/example/demo/Controller/HelloController.java | UTF-8 | 774 | 2.0625 | 2 | [] | no_license | package com.example.demo.Controller;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
... | true |
cbdfb01a93c6253b86c550dd95444c6e31821ace | Java | lengockien2000/ISD.ICT.20201-08-EcoBike | /FinalProject/Construction/EcoBike/src/controller/ViewBikeController.java | UTF-8 | 2,850 | 3.03125 | 3 | [] | no_license | package controller;
import common.exception.ViewBikeException;
import entity.bike.*;
import java.sql.SQLException;
import java.time.LocalDateTime;
import java.time.temporal.ChronoUnit;
import java.util.HashMap;
/**
* This class controls the flow of events in view bike screen
* @author Duong Thi Hue
* @version 1.0
... | true |
49bb51b8cc10ed7eb7cf1a3fd632d54dc0b9245f | Java | Dragonstei/Project4Her | /Code/SaatBank/API/src/main/java/nl/hro/stkb/api/WithdrawResponse.java | UTF-8 | 1,272 | 2.140625 | 2 | [] | no_license | package nl.hro.stkb.api;
import org.codehaus.jackson.annotate.JsonProperty;
public class WithdrawResponse {
@JsonProperty
private boolean response;
@JsonProperty
private long newSaldo;
@JsonProperty
private long bedragGepint;
@JsonProperty
private String iban;
@JsonPro... | true |
de3b76a74676df3c5e5b7a50949681c8ef8b93c0 | Java | reo7sp/SBF-Bukkit-Plugin | /src/net/sbfmc/logging/DebugUtils.java | UTF-8 | 2,743 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | /*
Copyright 2014 Reo_SP
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 applicable law or agreed to in writing, software
dist... | true |
b29fda5c264d544bbd67c8be2ecbc031c20ea836 | Java | wangnaiwen/BabyTest | /src/service/FindPrsByUserIdService.java | UTF-8 | 415 | 2.09375 | 2 | [] | no_license | package service;
import java.util.List;
import dao.PrDAO;
import domain.Pr;
import service.dao.BasePrServiceDAO;
import service.dao.FindPrsByUserIdServiceDAO;
public class FindPrsByUserIdService extends BasePrServiceDAO implements FindPrsByUserIdServiceDAO{
@Override
public List<Pr> findPrsByUserId(int userId, in... | true |
d2e1775150cf8da4fea2931d14051900f6568a8d | Java | eloksolution/elokdivaz | /AppUsers/src/main/java/in/eloksolutions/divaz/activities/Company.java | UTF-8 | 420 | 1.664063 | 2 | [] | no_license | package in.eloksolutions.divaz.activities;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import in.eloksolutions.divaz.R;
/**
* Created by welcome on 4/13/2018.
*/
public class Company extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
... | true |
1b1f7499769ceaeb6138497347fcc093c1b1077d | Java | punch2475-cmis/punch2475-apcs-cmis | /THEFINAL/move.java | UTF-8 | 134 | 1.507813 | 2 | [] | no_license | import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
public interface move
{
public void movement();
}
| true |
dc4c0319e21889fc4cd6c77287adc7d443e90ba6 | Java | Xumpy/vastgoed | /src/main/java/com/xumpy/vastgoed/scrape/era/EraVastgoed.java | UTF-8 | 395 | 2.34375 | 2 | [] | no_license | package com.xumpy.vastgoed.scrape.era;
import com.xumpy.vastgoed.interfaces.Vastgoed;
public class EraVastgoed extends Vastgoed {
@Override
public boolean equals(Object object) {
if (object instanceof Vastgoed){
Vastgoed vastgoed = (Vastgoed) object;
return this.getUniqueName()... | true |
7dd6f9f5186b149379e6b4a5ced5366e09cb3e6d | Java | zxia904/learn | /learnnetty/src/main/java/me/zxia/learn/chat/protocol/IMessage.java | UTF-8 | 1,089 | 2.546875 | 3 | [] | no_license | package me.zxia.learn.chat.protocol;
public class IMessage {
private String from;
private String content;
private String to;
private Integer groupId;
public IMessage(String content) {
this.content = content;
}
public IMessage(String from, String to, String cont... | true |
3b1c3e516181e4bee8696372b89927ea699f8032 | Java | gcasasbe7/save-all-the-robots | /app/src/main/java/pis03_2016/savealltherobots/view/viewclass/SimpleClickHandler.java | UTF-8 | 6,931 | 2.359375 | 2 | [] | no_license | package pis03_2016.savealltherobots.view.viewclass;
import android.app.Activity;
import android.view.View;
import android.widget.AdapterView;
import android.widget.FrameLayout;
import android.widget.ImageView;
import pis03_2016.savealltherobots.R;
import pis03_2016.savealltherobots.controller.GamePlayControl... | true |
83398f763c5c8895022bbaeafa21d716dc19ba77 | Java | EsraaAbuHana/data-structures-and-algorithms | /Data-Structures/graph/lib/src/main/java/DepthFirst/DepthFirst.java | UTF-8 | 958 | 3.203125 | 3 | [] | no_license | package DepthFirst;
import graph.Edge;
import graph.Graph;
import graph.Vertex;
import stacksandqueues.Node;
import stacksandqueues.Queue;
import stacksandqueues.Stack;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Set;
public class DepthFirst extends Graph{
public static void main(String[]... | true |
018f83938d76eb76ba3b6b6643a4c50afda4bf25 | Java | franklinxkk/sharebasketball | /javaserver/src/main/java/com/bblanqiu/module/mqtt/almq/MqttSSLConfig.java | UTF-8 | 1,525 | 2.375 | 2 | [] | no_license | package com.bblanqiu.module.mqtt.almq;
import java.io.InputStream;
import java.security.KeyStore;
import java.security.cert.Certificate;
import java.security.cert.CertificateException;
import java.security.cert.CertificateFactory;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLSocketFactory;
import javax.ne... | true |
ce2705ac65eb6c189053f07c1a2a9fda641819cb | Java | Blazebit/blaze-faces | /blaze-faces-apt/src/main/java/com/blazebit/blazefaces/apt/model/Renderer.java | UTF-8 | 1,752 | 2.640625 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package com.blazebit.blazefaces.apt.model;
public class Renderer {
private String type;
private String clazz;
private String componentFamily;
public Renderer() {
}
public Renderer(String type, String clazz, String componentFamily) {
this.type = type;
this.clazz = clazz;
this.componentFamily = component... | true |
5c783d1ba6696f58d5736a3a50b39074c37da29a | Java | inepex/inechart | /inechart/src/main/java/com/inepex/inechart/chartwidget/misc/ZIndexComparator.java | UTF-8 | 274 | 2.140625 | 2 | [] | no_license | package com.inepex.inechart.chartwidget.misc;
import java.util.Comparator;
public class ZIndexComparator implements Comparator<HasZIndex> {
@Override
public int compare(HasZIndex arg0, HasZIndex arg1) {
return arg0.getZIndex() - arg1.getZIndex();
}
}
| true |
8c47e597d5e97d6fb672c43467b82a000c07b848 | Java | unwin322/TPD | /Framework4/app/src/main/java/com/tpdappframework/mahesh/framework4/PrePunctureOffsetLeft60.java | UTF-8 | 639 | 1.820313 | 2 | [] | no_license | package com.tpdappframework.mahesh.framework4;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
/**
* Created by Mahesh on 26/02/2018.
*/
public class PrePunctureOffsetLeft60 extends Calculator_or_Stepbystep_Menu {
@Override
protected void onCreate(Bundle savedInstanceSta... | true |
aa9fb212c0f879cc992597c565f84f592dbd7097 | Java | FutureGraphics/XtremeEssentials | /src/essentials/future/code/Commands/HealCommand.java | ISO-8859-1 | 2,948 | 2.484375 | 2 | [] | no_license | package essentials.future.code.Commands;
import java.util.ArrayList;
import java.util.List;
import org.bukkit.Bukkit;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import essentials.future.code.Config... | true |
bfb9dd2424ce460bb9b19ab7e0c0eb0de0282666 | Java | Ghazibenslama/SMD-master | /src/org/apromore/service/GraphService.java | UTF-8 | 1,377 | 2.28125 | 2 | [] | no_license | package org.apromore.service;
import org.apromore.dao.model.Content;
import org.apromore.graph.JBPT.CPF;
import java.util.List;
/**
* Interface for the Graphing Service. Defines all the methods that will do the majority of the work for
* the Apromore application.
*
* @author <a href="mailto:cam.james@gmail.com">... | true |
cc1042e861bc2dc9a87b61b7714c7f276a49d96e | Java | pcalvoa/examples | /AdminWeb/src/com/tid/util/Formatter.java | UTF-8 | 8,462 | 2.703125 | 3 | [] | no_license | package com.tid.util;
import com.tid.Fields;
import com.tid.atica.htc.core.bean.CentroVO;
import com.tid.atica.htc.core.bean.ServicioVO;
import com.tid.atica.htc.core.bean.UserVO;
import com.tid.atica.htc.filtro.consultas.bean.Entidad;
import com.tid.pojo.Client;
import com.tid.pojo.Licenses;
/**
* Format... | true |
c2f7df522eda310322137094f4c6f8eb0f33db92 | Java | Javidp/BackendStack | /auth/src/main/java/com/jd/backend/auth/AuthConfiguration.java | UTF-8 | 710 | 1.945313 | 2 | [] | no_license | package com.jd.backend.auth;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
@Configuration
public class AuthConfiguration {
@Value("${auth.jwt.token.key.path}")
private String jwtTokenKeyPath;
@Value("${auth.jwt.token.key.password}... | true |
4f73d46e5a017163607e796ec45c117e0a2535e5 | Java | RyanTech/12306-Android-Decompile | /12306/src/org/codehaus/jackson/map/ResolvableSerializer.java | UTF-8 | 196 | 1.507813 | 2 | [] | no_license | package org.codehaus.jackson.map;
public abstract interface ResolvableSerializer
{
public abstract void resolve(SerializerProvider paramSerializerProvider)
throws JsonMappingException;
}
| true |
4c0614943fae542ce4de93ae7c73042062e9b75f | Java | jboxx/design-pattern | /src/io/jboxx/designpattern/proxypattern/ImplementationProxyPattern.java | UTF-8 | 256 | 2.234375 | 2 | [] | no_license | package io.jboxx.designpattern.proxypattern;
public class ImplementationProxyPattern {
public static void main(String[] args) {
LazySubjectProxy lazySubjectProxy = new LazySubjectProxy("bla bla");
lazySubjectProxy.request();
}
}
| true |
51cbc4a5bf46a4fedd0cb2110d9a49035b8f55c4 | Java | DevaCharwaka/Trainee-Management-System | /TraineeManagementSystem/src/main/java/com/dao/TraineeMgmtIDao.java | UTF-8 | 302 | 1.945313 | 2 | [] | no_license | package com.dao;
import java.util.ArrayList;
import com.model.Trainee;
public interface TraineeMgmtIDao {
int addTrainee(Trainee trainee );
int modifyTrainee(Trainee trainee);
int deleteTrainee(int tId);
Trainee retriveById(int tId);
ArrayList<Trainee> retriveAll();
}
| true |
e1ffc934be73d61c565bdc752bd65dee32d73924 | Java | plawler92/State-Paradigm | /Transition2.java | UTF-8 | 620 | 2.703125 | 3 | [] | no_license | public class Transition2 extends State{
private static Transition2 instance = null;
private Transition2(){
}
public static Transition2 getInstance(){
if(instance == null){
instance = new Transition2();
}
return instance;
}
public void read(Context c, String s){
if(... | true |
a1efc7158e9cc80608154e309e05666485579e06 | Java | timeazsk/my-pharma-app | /src/com/pharmacy/menu/MainAppMenu.java | UTF-8 | 3,416 | 2.53125 | 3 | [] | no_license | package com.pharmacy.menu;
import com.training.sedinta09.multilanguage.Language;
import com.training.sedinta09.multilanguage.MultilanguageImpl;
import com.training.sedinta10.menus.Menu;
import com.training.sedinta10.menus.MenuAction;
import com.training.sedinta10.menus.MenuItem;
import com.training.sedinta10.me... | true |
0f54ddcf2ad48f4501ea503ae63467789c0a2907 | Java | catchrajatahuja/UVACP | /src/RoboLand.java | UTF-8 | 2,592 | 3.234375 | 3 | [] | no_license | import java.io.*;
import java.util.*;
/**
* Created by RaviG on 11/9/2014.
*/
public class RoboLand {
public static void main(String[] args) {
Reader in = new Reader();
int n,m,s,cc;
DIR curr=null;
char fild[][],dr;
//String ttt = "*#."
while (true) {
n... | true |
43ed17bb963703143897d62b425c79aa9173f4f6 | Java | nowhiek/javatr | /Day2ProjectConsoleShamkolovichEG/src/by/javatr/task3/runner/Main.java | UTF-8 | 705 | 2.828125 | 3 | [] | no_license | package by.javatr.task3.runner;
import by.javatr.task3.util.ArrayException;
import by.javatr.task3.util.ArrayOperation;
import by.javatr.task3.util.validator.ValidatorLengthArray;
public class Main {
public static void main(String[] args) {
try{
new ValidatorLengthArray().validate(args);
... | true |
cff7ff26194cbc6f8bd4ab87803b8469c34a1e44 | Java | bohdanvan/movie-theater | /src/main/java/com/bvan/movietheater/entity/Movie.java | UTF-8 | 1,861 | 2.671875 | 3 | [] | no_license | package com.bvan.movietheater.entity;
import static javax.persistence.GenerationType.SEQUENCE;
import java.time.LocalDate;
import java.util.List;
import java.util.Objects;
import javax.persistence.Column;
import javax.persistence.ElementCollection;
import javax.persistence.Entity;
import javax.persistence.EnumType;
i... | true |
b9fb3867b788c08defdf66ccbb64c36e19eb52eb | Java | waldos200/clases-java | /Unidad4/Fiest1.java | UTF-8 | 575 | 3.296875 | 3 | [] | no_license | class Fiesta
{
int numeroP;
String TipoFies;
public Fiesta(){}
private Fiesta(int nP, String TF)// constructor privado
{
numeroP= nP;
TipoFies =TF;
System.out.println("#invitados "+numeroP+"Tipo de fiesta "+TipoFies);
}
void Fie(int nP,String TP) // con este método invoca al constructor privado
{
Fiesta p... | true |
1b6a4c94c288760893144b6c82f0fe9b925d23ab | Java | chenqian1998/javaProgram | /src/main/java/Leetcode/左的课堂练习/sort/quickSort.java | UTF-8 | 1,163 | 3.265625 | 3 | [] | no_license | package Leetcode.左的课堂练习.sort;
import org.junit.Test;
import java.util.Arrays;
/**
* @author Itsuka
* @version 1.0
* @date 2020/5/15
* @description
*/
public class quickSort {
public int partition(int[] arr, int start, int end) {
int pivot_val = arr[start];
int i = start, j = end;
whi... | true |
78fed6c98c284e278bcb6caf0b2d1939a19bdde3 | Java | ryannetwork/Scratchpad | /Spark/new-york-taxis/src/main/java/org/gb/sample/spark/nytaxitrips/TripStatsPerTimeBandBdcstMain.java | UTF-8 | 305 | 1.578125 | 2 | [] | no_license | package org.gb.sample.spark.nytaxitrips;
public class TripStatsPerTimeBandBdcstMain {
public static void main(String[] args) {
String taxiTripFile = args[0];
TripStatsPerTimeBandLister statsLister = TripStatsPerTimeBandLister.getInstance();
statsLister.collectTripStats(taxiTripFile, true);
}
}
| true |
562b5a8f876c2ca0356959dd91265e421e051769 | Java | xinstall/Xinstall-Unity-SDK | /AndroidSample/XUnityActivity.java | UTF-8 | 952 | 1.820313 | 2 | [] | no_license | package com.shubao.xinstallunitysdk;
import android.content.Intent;
import android.os.Bundle;
import com.unity3d.player.UnityPlayerActivity;
import com.xinstall.XInstall;
public class XUnityActivity extends UnityPlayerActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
... | true |
f13aa1bac2b612501ef10378b8343051601fc599 | Java | cocolove2/shiro-uaa | /auth-server/src/main/java/com/github/xfslove/shiro/uaa/endpoint/UaaLogoutEndpoint.java | UTF-8 | 3,317 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | package com.github.xfslove.shiro.uaa.endpoint;
import com.github.xfslove.shiro.uaa.model.AccessClient;
import com.github.xfslove.shiro.uaa.model.AccessToken;
import com.github.xfslove.shiro.uaa.model.Constants;
import com.github.xfslove.shiro.uaa.service.AccessClientService;
import com.github.xfslove.shiro.uaa.service... | true |
e7d1d29578e8784f7c6cc7a22a5639bf85979a90 | Java | aseker00/tlp | /tlp-core/src/aseker00/tlp/ling/Lemma.java | UTF-8 | 610 | 2.84375 | 3 | [] | no_license | package aseker00.tlp.ling;
import java.util.Set;
public class Lemma implements Element {
public static final String type = "LEMMA";
private Lexeme value;
private Set<Token> words;
@Override
public String type() {
return Lemma.type;
}
@Override
public boolean equals(Object other) {
if (other == null)
... | true |
4134e33bcffb2cbe618cc41615731521ce865533 | Java | pvilyou/Java | /LeanJavaAWT/src/Bai_001/ExAWT_001.java | UTF-8 | 682 | 3.265625 | 3 | [] | no_license | package Bai_001;
import java.awt.Button; // cai nut
import java.awt.Frame; // khung
public class ExAWT_001 extends Frame { // ke thua
public ExAWT_001() {
setTitle("Vi du 1 AWT trong java"); // tieu de
Button b = new Button("Click me"); // tao the hien cua Button (cai nut)
b.setBounds(100, 130, 80, 30)... | true |
39e2e9f7f2df532480ca0d11081fc3686037c8a4 | Java | smandla/CS371ThreadsLabStarter-master-2 | /app/src/main/java/edu/up/cs301threadslab/ThreadSubclass.java | UTF-8 | 526 | 2.75 | 3 | [] | no_license | package edu.up.cs301threadslab;
import android.util.Log;
public class ThreadSubclass extends Thread {
AnimationView animationView;
public ThreadSubclass(AnimationView animationView){
this.animationView = animationView;
}
@Override
public void run(){
try{
while (true) ... | true |
29d6a94f8f6da1dce1e025af25a81c038b8072c0 | Java | viiup/FlockWebApp | /src/main/java/com/viiup/web/flock/models/GroupUserModel.java | UTF-8 | 2,512 | 2.078125 | 2 | [] | no_license | package com.viiup.web.flock.models;
import java.util.Date;
/**
* Created by AbdullahMoyeen on 1/31/16.
*/
public class GroupUserModel {
private int groupUserId;
private String createUser;
private Date createDate;
private String updateUser;
private Date updateDate;
private int groupId;
p... | true |
91dbf75a09b016ad41e99ac81be2bff3d6bcf653 | Java | mccalv/smartmove | /src/main/java/com/closertag/smartmove/server/content/persistence/filter/SearchFilterCriteriaBuilder.java | UTF-8 | 9,273 | 2.0625 | 2 | [] | no_license | /* Wimove project, 2009.
* Java restful server to erogate GPS contents to multiple devices. All rights reserved
* 17 Dec 2009
* mccalv
* SearchFilterCriteriaBuilder
*
*/
package com.closertag.smartmove.server.content.persistence.filter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;... | true |
b5072f03d24d672f29334b06568967607b4f5315 | Java | DannyOtgon/java-programming | /src/day47_constructors/Student.java | UTF-8 | 539 | 3.65625 | 4 | [] | no_license | package day47_constructors;
public class Student {
//No_args constructor
public Student(){
System.out.println("Student instance with no Args");
}
//constructor with 1 param
public Student(String name){
System.out.println("name param constructor | name = " + name);
}
publ... | true |
8511dc748f4f5855611f75dead21b16848ebca21 | Java | serialized-io/samples-java | /spark-todo-service/src/main/java/io/serialized/samples/domain/event/TodoCompleted.java | UTF-8 | 466 | 2.171875 | 2 | [] | no_license | package io.serialized.samples.domain.event;
import io.serialized.client.aggregate.Event;
import java.util.UUID;
import static io.serialized.client.aggregate.Event.newEvent;
public class TodoCompleted {
private UUID todoId;
public static Event<TodoCompleted> todoCompleted(UUID todoId) {
TodoCompleted event... | true |
94e751ace4cde95f86b263f15b84c0452743e2cb | Java | brucewuu520/Qianlichuanyin | /app/src/main/java/com/brucewuu/android/qlcy/activity/DiscussionDetailActivity.java | UTF-8 | 13,630 | 1.921875 | 2 | [
"MIT"
] | permissive | package com.brucewuu.android.qlcy.activity;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.v7.app.AlertDialog;
import android.support.v7.widget.Toolbar;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;... | true |
610976a09980117728fdd83c5c2d74fb1a0a31bd | Java | EwanMoshi/CM | /languages/CM/sandbox/source_gen/CM/test/ShaderProgram.java | UTF-8 | 2,800 | 2.25 | 2 | [] | no_license | package CM.test;
/*Generated by MPS */
import java.nio.FloatBuffer;
import org.lwjgl.BufferUtils;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import org.lwjgl.opengl.GL20;
import org.lwjgl.opengl.GL11;
import org.lwjgl.util.vector.Vector3f;
import org.lwjgl.util.vector.Matrix... | true |
f2e670515a71a57523371bc4d9593170dad39a68 | Java | Olexiy911/UpWorkFramework | /src/main/java/framework/pages/home/LetsStartOptions.java | UTF-8 | 2,738 | 2.1875 | 2 | [] | no_license | package framework.pages.home;
import java.util.HashMap;
import java.util.List;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.How;
import org.openqa.selenium.support.PageFactory;
import framework.pages.Page;
import f... | true |
d432d884cb1e96871e4d0744bcc0d5479876261d | Java | quebic-source/lava-box | /src/main/java/com/lovi/quebic/web/impl/RequestMapImpl.java | UTF-8 | 1,495 | 2.40625 | 2 | [
"Apache-2.0"
] | permissive | package com.lovi.quebic.web.impl;
import com.lovi.quebic.handlers.FailureHandler;
import com.lovi.quebic.handlers.RequestHandler;
import com.lovi.quebic.web.RequestMap;
import com.lovi.quebic.web.RequestMapper;
import com.lovi.quebic.web.ServerContext;
import com.lovi.quebic.web.enums.HttpMethod;
public class Request... | true |
bb7b3b2e294861ce050a32fd087fbdf507e68bae | Java | jvsouza18/Orienta-oObjeto | /src/aula05/Produto.java | UTF-8 | 900 | 2.984375 | 3 | [] | no_license | package aula05;
public class Produto {
private int qtEstoque, qtVendido;
private double preco;
private static int qtTotalVendas;
public Produto(int qtEstoque, double preco)
{
this.qtEstoque = Math.max(1,qtEstoque);
this.preco = Math.max(1, preco);
this.qtVendido = 0;
}
public void vender(int qt)
{... | true |
43b44f6cb4d3c8eb4acd94aa680884acbc5f8c35 | Java | requireSol/SWT1920_Learning | /common-utils/src/main/java/org/mhisoft/common/event/EventListener.java | UTF-8 | 183 | 1.703125 | 2 | [
"Apache-2.0"
] | permissive | package org.mhisoft.common.event;
/**
* Description:
*
* @author Tony Xue
* @since May, 2016
*/
public interface EventListener {
public void handleEvent(MHIEvent event) ;
}
| true |
3a612f3ea588a3797916e4187f7ea3ad829f1ec8 | Java | saisrinivasreddypatlolla/6019_CSPP2 | /cspp2-practice/m3/SumOfNNumbers.java | UTF-8 | 347 | 3.609375 | 4 | [] | no_license | import java.util.*;
class SumOfNNumbers {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int number = Integer.parseInt(scan.nextLine());
int sum = 0;
for ( int i = 1; i <= number; i++) {
sum += i;
}
System.out.format("Sum of %d numbers... | true |
90373058bb399261c6aae976dca3f6be29bab983 | Java | gewoonniels/marktplaats-backend | /src/main/java/org/example/domain/Artikel.java | UTF-8 | 4,112 | 2.25 | 2 | [] | no_license | package org.example.domain;
import org.example.domain.dao.AbstractEntity;
import javax.persistence.*;
import java.util.Objects;
@Entity
@NamedQuery(name = "Artikel.findAll", query = "select a from Artikel a")
public class Artikel implements AbstractEntity<Long> {
@Id
@GeneratedValue
private long id;
... | true |
4bde6e5b9d5f7c1e83027c220ac973de3ac4f284 | Java | trantuankhai/learnEnglish | /LearnService/src/main/java/com/vn/tdk/learnenglish/servicesImpl/UploadFileServicesImpl.java | UTF-8 | 2,952 | 2.46875 | 2 | [] | no_license | package com.vn.tdk.learnenglish.servicesImpl;
import java.io.File;
import java.io.IOException;
import java.net.MalformedURLException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Date;
import org.springframework.core.io.Resource;
import org.springframework.core.i... | true |
7cdcd596215156c7cec56883005e7c77ba3161ec | Java | lpapailiou/tictactoe | /src/main/java/model/Source.java | UTF-8 | 221 | 2.390625 | 2 | [] | no_license | package main.java.model;
public enum Source {
LIBRARY("library"),
BLANK("blank");
private String name;
Source(String name) {
this.name = name;
}
public String get() {
return name;
}
}
| true |
3169816d6cebf703b4cbc988ea832b57071d972f | Java | YampoKnaf/Israelity | /Israelity/app/src/main/java/com/yampoknaf/israelity/HomeFragments/UserPicture.java | UTF-8 | 3,760 | 2 | 2 | [] | no_license | package com.yampoknaf.israelity.HomeFragments;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.RelativeLayout... | true |
195f4c7b9e03512c1c29a50b8925482ff05550c9 | Java | alirestum/gamekeystore | /src/main/java/hu/restumali/gamekeystore/service/FileService.java | UTF-8 | 1,963 | 2.28125 | 2 | [
"MIT"
] | permissive | package hu.restumali.gamekeystore.service;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import hu.restumali.gamekeystore.model.ProductEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.V... | true |
6413649c5d7e97e6ad594960cb6daff55e971ed7 | Java | pulumi/pulumi-aws | /sdk/java/src/main/java/com/pulumi/aws/eks/inputs/NodeGroupUpdateConfigArgs.java | UTF-8 | 3,735 | 2.125 | 2 | [
"BSD-3-Clause",
"Apache-2.0",
"MPL-2.0"
] | permissive | // *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.eks.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.util.Objects;
import java... | true |
00ade37439b9290f3c239caf3a63c5a2f50d25be | Java | martinsj438/Teste-de-Software | /bancario/Bancario/src/vizualizacao/ListarPessoaf.java | UTF-8 | 7,220 | 2.265625 | 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 vizualizacao;
import controle.DAO.ClienteDAO;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.loggi... | true |
6250930f94884437c8345e37087abdc5435ffa17 | Java | chenJz1012/os-app | /os-test/src/test/java/com/orangeside/patchca/Sample.java | UTF-8 | 926 | 2.484375 | 2 | [] | no_license | package com.orangeside.patchca;
import com.orangeside.patchca.color.SingleColorFactory;
import com.orangeside.patchca.encoder.EncoderHelper;
import com.orangeside.patchca.filter.predefined.CurvesRippleFilterFactory;
import com.orangeside.patchca.service.ConfigurableCaptchaService;
import java.awt.*;
import java.io.F... | true |
9ca30146b0f4eaf191e5339f8b80304b4abaae2c | Java | KaranKamat0506/java | /New folder/Sukrut/CopyCharacters.java | UTF-8 | 559 | 3.46875 | 3 | [] | no_license | import java.io.*;
class CopyCharacters{
public static void main(String[] args) {
File inFile=new File("infile.txt");
File outFile=new File("outfile.txt");
FileReader ins=null;
FileWriter outs=null;
try{
ins=new FileReader(inFile);
outs=new FileWriter(outFile);
int ch;
while((ch=ins.read())!=-1){... | true |
d039b4a2d9b29e9c814c13878b389c54545b5c8a | Java | harshikesh/algo | /src/Strings/SortedSubStr.java | UTF-8 | 3,293 | 3.234375 | 3 | [] | no_license | package Strings;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
/**
* Created by harshikesh.kumar on 25/07/17.
*/
public class SortedSubStr {
public static void main(String[] args) {
findSubstrings("adbaac");
}
static int[] createSuffixArray(String str) {
cl... | true |
ee9de6a1c03a36972b1c12d2a66b1fc9fc2c3cc8 | Java | Rahul0506/tp | /src/test/java/seedu/address/model/util/SampleDataTest.java | UTF-8 | 818 | 1.929688 | 2 | [
"MIT"
] | permissive | package seedu.address.model.util;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import org.junit.jupiter.api.Test;
public class SampleDataTest {
@Test
public void nonNullTests() {
// sample tags
assertNotNull(SampleDataUtil.getTagSet());
// sample items
asser... | true |
6f41c03231484ecc1b44d3080434c9898a28ede1 | Java | smilejianhua/aiis-fims-desgin | /src/com/wondersgroup/aiis/fims/service/impl/ScheduleServiceImpl.java | UTF-8 | 1,019 | 2.078125 | 2 | [] | no_license | package com.wondersgroup.aiis.fims.service.impl;
import java.io.File;
import java.util.List;
import com.wondersgroup.aiis.fims.model.NativeFlightLongTermPlan;
import com.wondersgroup.aiis.fims.service.ScheduleService;
import com.wondersgroup.aiis.fims.utils.schedule.ExcelToSchedule;
import com.wondersgroup.ai... | true |
43bb6d688d13836ba1017b6f77399da8b68081ac | Java | Maploop/SkyBlockSandbox-Old- | /src/main/java/net/maploop/items/item/items/BuildersWand.java | UTF-8 | 12,274 | 1.867188 | 2 | [
"BSD-3-Clause"
] | permissive | package net.maploop.items.item.items;
import net.maploop.items.enums.ItemType;
import net.maploop.items.enums.Rarity;
import net.maploop.items.item.CustomItem;
import net.maploop.items.item.ItemAbility;
import net.maploop.items.item.ItemUtilities;
import net.maploop.items.util.IUtil;
import net.md_5.bungee.api.chat.Cl... | true |
7ecf47cbc88ee476b82ad739bcd9a1da8125a93d | Java | CafeGIS/gvSIG2_0 | /libFMap_dal/src/org/gvsig/fmap/dal/feature/impl/FeatureManager.java | ISO-8859-1 | 11,126 | 1.953125 | 2 | [] | no_license |
/* gvSIG. Sistema de Informacin Geogrfica de la Generalitat Valenciana
*
* Copyright (C) 2005 IVER T.I. and Generalitat Valenciana.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation... | true |
07ff89c1b5b3b84ff884b15d4deb79063de9ab0e | Java | AlexCR97/PostgreSQL-Connection | /src/DBConnection/PostgreDB.java | UTF-8 | 1,012 | 2.765625 | 3 | [] | no_license | package DBConnection;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;
public class PostgreDB {
private Connection connection;
private String url;
private String user;
private Str... | true |
97246f67fe6c3e6c9eefee6420b972d0fdc455f1 | Java | kmahorker/BankWebApp | /src/org/innominds/intern/BankWebApp/Universal.java | UTF-8 | 547 | 2.6875 | 3 | [] | no_license | package org.innominds.intern.BankWebApp;
/**
* A class meant to be used for universal methods on the need basis that are used in many different classes
* @author Kaushik
*
*/
public class Universal {
/**
* Returns whether or not a String can be converted into an Integer or not
* @param input
* ... | true |
6d4e06f7d5450e81d83cfc34f9c92a274201ee15 | Java | nisha-nizamuddin/log4j2-elasticsearch | /log4j2-elasticsearch-core/src/test/java/org/appenders/log4j2/elasticsearch/LifeCycleTest.java | UTF-8 | 1,706 | 2.5625 | 3 | [
"Apache-2.0"
] | permissive | package org.appenders.log4j2.elasticsearch;
import org.junit.Test;
import org.mockito.Mockito;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotEquals;
import static org.junit.Assert.assertSame;
import static org.mockito.ArgumentMatchers.anyBoolean;
import static org.mockito.Argume... | true |
0812cb82dbd6d2d77a0021926aa5121ad66a74e9 | Java | zjyzwy/air | /src/com/scnu/model/vo/Player.java | GB18030 | 2,878 | 2.6875 | 3 | [] | no_license | package com.scnu.model.vo;
import java.awt.Graphics;
import java.util.List;
import javax.swing.ImageIcon;
import com.scnu.model.load.ElementLoad;
import com.scnu.model.manager.ElementManager;
import com.scnu.thread.GameThread;
import com.scnu.thread.GameThread.GameState;
public class Player extends SuperElement{
p... | true |
085340f9a6778d8d78240888dbcf32326831eb24 | Java | adrianopauli/app_android_meditec | /app/src/br/net/meditec/controller/dao/DAO.java | UTF-8 | 357 | 2 | 2 | [
"Apache-2.0"
] | permissive | package br.net.meditec.controller.dao;
import android.content.ContentValues;
import android.database.Cursor;
import java.util.List;
public interface DAO<T> {
List<T> cursorToList(Cursor cursor);
T cursorToObject(Cursor cursor);
void delete();
boolean insert(T t);
boolean insertAll(List<T> list... | true |
1e4081f2acc79e8b29015ce7ef1e96999b00d7f5 | Java | Jesudos/CarRentalService | /src/main/java/edu/uga/csci4050/group3/core/InvalidInputException.java | UTF-8 | 1,017 | 2.890625 | 3 | [] | no_license | package edu.uga.csci4050.group3.core;
import java.util.ArrayList;
import javax.servlet.ServletContext;
import edu.uga.csci4050.group3.template.Alert;
import edu.uga.csci4050.group3.template.AlertType;
public class InvalidInputException extends Exception {
/**
*
*/
private static final long serialVersionUID ... | true |
cacf68b8beaa638cb7575d5882288f3bde6b5442 | Java | fdhia/academic-projects | /src/allwin/pkg2016/Entities/SessionDeFormation.java | UTF-8 | 2,338 | 2.359375 | 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 allwin.pkg2016.Entities;
import java.util.ArrayList;
import java.sql.Date;
import java.util.Iterator;
import java.util.List;
... | true |
bc64f50ea89ba3ef5611f808aeac2e3bba9ab72c | Java | sant0sl/ProjetoIntegradorV | /ProjetoIntegradorV/src/br/test/TesteEmail.java | UTF-8 | 629 | 1.835938 | 2 | [] | no_license | package br.test;
import org.junit.Test;
import br.model.Player;
import br.service.PlayerService;
public class TesteEmail {
@Test
public void testejunit() {
Player p = new Player();
PlayerService ps = new PlayerService();
/*String destinatario = "sant0sl@outlook.com";
String assunto =... | true |
dd094fa6509930e8f26c0528a0ae69dc46772e92 | Java | Hide-on-bush999/Hide-on-bush | /keyword/Private/four.java | UTF-8 | 256 | 2.296875 | 2 | [] | no_license | package keyword.Private;
public class four {
public static void main(String[] args) {
Three three = new Three();
three.setAge(18);
three.setName("赵泽鑫");
three.setMale(true);
three.show();
}
} | true |
88cde791f66bef5a145c4e2be5e0e31217f39fd6 | Java | leogle232323/JavaStudy | /test/src/test/BasicType.java | UTF-8 | 2,285 | 3.765625 | 4 | [] | no_license | package test;
public class BasicType {
static boolean defaultBoolean;
static Object obj;
public static void main(String[] args) {
// 1.在堆栈中创建对象
char c = 'x';
// 2.在堆中创建对象,Character是基本类型char的包装器类
Character ch = new Character(c);
Character ch1 = new Character('x');
System.out.println(c);
... | true |
eba3220244549c2efcae465ff8eab00a33a6bb75 | Java | MolMaDuv/Proyecto-SafePet | /src/interfaz/VentanaConfeccionarPlan.java | ISO-8859-3 | 15,096 | 2.171875 | 2 | [] | no_license | package interfaz;
import java.awt.Color;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import javax.swing.ButtonGroup;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JFrame;
import ... | true |
3284e95cfc0f5a7f5365189e86eb9977e1bc3ab4 | Java | paul-freez/example.reddittop | /app/src/main/java/com/testsite/reddittop/utils/exceptions/NoConnectivityException.java | UTF-8 | 362 | 2.140625 | 2 | [
"Apache-2.0"
] | permissive | package com.testsite.reddittop.utils.exceptions;
import com.testsite.reddittop.App;
import com.testsite.reddittop.R;
import java.io.IOException;
/**
* Created by paulf
*/
public class NoConnectivityException extends IOException {
@Override
public String getMessage() {
return App.getContext().getStr... | true |
9dd57b6fbc74416dbe13868f62e672dc31cdadc1 | Java | alipay/alipay-sdk-java-all | /v2/src/main/java/com/alipay/api/response/KoubeiCateringPosDishBatchqueryResponse.java | UTF-8 | 722 | 1.796875 | 2 | [
"Apache-2.0"
] | permissive | package com.alipay.api.response;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.domain.PosCookDishQryModel;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: koubei.catering.pos.dish.batchquery response.
*
* @author auto create
* @since 1.0, 2019-01-07 20:51:15
*/
public class Kou... | true |
28456ca6749e73613bcfcfe580f929aaad8479b5 | Java | MewX/kantv-decompiled-v3.1.2 | /sources/org/fourthline/cling/support/avtransport/callback/GetCurrentTransportActions.java | UTF-8 | 1,269 | 1.90625 | 2 | [] | no_license | package org.fourthline.cling.support.avtransport.callback;
import java.util.logging.Logger;
import org.fourthline.cling.controlpoint.ActionCallback;
import org.fourthline.cling.model.action.ActionInvocation;
import org.fourthline.cling.model.meta.Service;
import org.fourthline.cling.model.types.UnsignedIntegerFourByte... | true |
88324a0a5d94ed2fbf3a58facde3e4b95029b15f | Java | JakubGajewski/DesignPatterns | /src/factory/Main.java | UTF-8 | 244 | 2.28125 | 2 | [] | no_license | package factory;
public class Main {
public static void main(String[] args) {
CookieFactory cookieFactory = new CookieFactory();
Cookie teryzol = cookieFactory.makeCookie("chocolate");
teryzol.eatCookie();
}
}
| true |
852035a118c3cb0cf8fc0a12e1aa50c31462113d | Java | pyromobile/nubomedia-ouatclient-src | /android/LiveTales/app/src/main/java/com/zed/livetales/models/book/BookDescription.java | UTF-8 | 421 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | package com.zed.livetales.models.book;
/**
* Created by jemalpartida on 25/11/2016.
*/
public class BookDescription
{
public BookDescription(String id, String title)
{
this.id = id;
this.title = title;
}
public String getId()
{
return this.id;
}
public String ge... | true |
2a323227239c1aa69da930bde6655b30522dc8ef | Java | tdegueul/gemoc-pirover | /rover.raspirover/src-gen/rover/raspirover/aspects/CentimeterAspectCentimeterAspectContext.java | UTF-8 | 992 | 2.359375 | 2 | [] | no_license | package rover.raspirover.aspects;
import java.util.Map;
import rover.raspirover.raspirover.Centimeter;
import rover.raspirover.aspects.CentimeterAspectCentimeterAspectProperties;
@SuppressWarnings("all")
public class CentimeterAspectCentimeterAspectContext {
public final static CentimeterAspectCentimeterAspectConte... | true |
c709e28ae1f4ac6926c59c0f0479c40f85ddf764 | Java | LineageOS/android_packages_services_Telecomm | /src/com/android/server/telecom/RespondViaSmsSettings.java | UTF-8 | 5,667 | 2.1875 | 2 | [] | no_license | /*
* Copyright (C) 2011 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | true |
67bfca62adc7e2dede8533a2c73c6f9a9cdc8373 | Java | lanxuewsr/BoxHelper | /src/models/torrent/deTorrent/Result.java | UTF-8 | 889 | 2.109375 | 2 | [] | no_license | package models.torrent.deTorrent;
import java.util.Map;
/**
* Created by SpereShelde on 2018/10/18.
*/
public class Result {
private Stats stats;
private boolean connected;
private Map<String,Torrents> torrents;
private Filters filters;
public Stats getStats() {
return stats;
}
... | true |
6bd25a5853b2d309dcc524b258112601c160a898 | Java | smittynusmc/Sudoku-Solver | /Sudoku Solver/src/sudoku_solver/Formula.java | UTF-8 | 9,567 | 2.65625 | 3 | [] | no_license | package sudoku_solver;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.Writer;
import java.util.A... | true |