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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
619420cc2d4913fd638eef45e5cb1611957ae173 | Java | olgaFaber/beam-extapi | /src/main/java/org/esa/beam/extapi/gen/ApiInfo.java | UTF-8 | 9,907 | 2.375 | 2 | [] | no_license | package org.esa.beam.extapi.gen;
import com.sun.javadoc.*;
import java.util.*;
/**
* Collection of API classes and their methods.
* Immutable object.
*
* @author Norman Fomferra
*/
public final class ApiInfo {
private final ApiGeneratorConfig config;
private final Map<ApiClass, ApiMembers> apiClasses;
... | true |
246595aa88a267a858c5b6fb63ff24d7f5a4401c | Java | BabyTitanium/netweb | /.svn/pristine/55/5544a11ae80d92bd38b29a9a504e632f872acdc8.svn-base | UTF-8 | 404 | 1.90625 | 2 | [] | no_license | package com.ps.net.model;
public class RoomTempAddrKey {
private Integer room_id;
private Integer index;
public Integer getRoom_id() {
return room_id;
}
public void setRoom_id(Integer room_id) {
this.room_id = room_id;
}
public Integer getIndex() {
return index;
... | true |
2b9c88986d80b060753d95c5b764eb0dedfaab9d | Java | MarcoDeMeco/Campo-minato | /src/campoMinato/Main.java | UTF-8 | 8,718 | 2.421875 | 2 | [] | no_license | package campoMinato;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.GridLayout;
import java.awt.Image;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.net.UR... | true |
bf8e6b9bd0150c1022c0412271cb15e6ee01df65 | Java | raghuTraining/test | /eclipse-workspace/Amazon/src/test/java/tests/sauceLabs.java | UTF-8 | 1,223 | 1.953125 | 2 | [] | no_license | package tests;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URL;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;
import org.openqa.selenium.remote... | true |
b397c1557c2788ef35169143da2404827e121f06 | Java | t0tec/formula-one-api | /main/rest/src/main/java/org/formulaone/rest/controller/CircuitController.java | UTF-8 | 4,948 | 2.375 | 2 | [] | no_license | package org.formulaone.rest.controller;
import com.wordnik.swagger.annotations.Api;
import com.wordnik.swagger.annotations.ApiOperation;
import com.wordnik.swagger.annotations.ApiParam;
import org.formulaone.rest.wrapper.CircuitPage;
import org.formulaone.rest.wrapper.CircuitResource;
import org.formulaone.rest.wrapp... | true |
0e74de59bcc263a5fbd8cd7f1f4d0fce2cbdbb28 | Java | nagyist/icoin | /icoin-fee/src/test/java/com/icoin/trading/fee/cash/interceptor/MaxAmountPerDayExecutingInterceptorTest.java | UTF-8 | 4,189 | 1.976563 | 2 | [] | no_license | package com.icoin.trading.fee.cash.interceptor;
import com.google.common.collect.ImmutableList;
import com.icoin.trading.fee.cash.Invocation;
import com.icoin.trading.fee.cash.InvocationContext;
import com.icoin.trading.fee.cash.ValidationCode;
import com.icoin.trading.fee.domain.DueDateService;
import com.icoin.tradi... | true |
a767ac7832a5973db8d5c9afeb1ccb2ff6b4e372 | Java | XueyinGuo/LeetCode | /src/com/szu/training01/class06/StringCross.java | UTF-8 | 1,994 | 3.765625 | 4 | [] | no_license | package com.szu.training01.class06;
/*
* @Author 郭学胤
* @University 深圳大学
* @Description
*
* PAGE 234
*
* 给定三个字符串 str1、str2 , aim, 如果 aim 中包含且仅包含str1、str2中所有的字符
* 而且在 aim 中 属于str1 字符之间的 顺序 与原来保持一致, str2 也是
* 那么说 aim 是 str1 与 str2 的 交错组成。
*
* 实现一个函数,判断 aim 是否是 str1 str2 的交错组成
*
* 举例 :
* str1 : “AB” str2:... | true |
1e4be1126b8fb6bed15013635dc1eeb5c3c765fb | Java | zawn/logback-lite | /app/src/test/java/com/appunity/logger/LoggerTest.java | UTF-8 | 3,267 | 2.515625 | 3 | [] | no_license | package com.appunity.logger;
import org.apache.commons.codec.binary.Base64;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.time... | true |
65f3a028fc49721a26abc6aeeca8ba6416e98ed4 | Java | sl4475/CustomEnchantPlugin | /src/sl4475/Enchantments/Magnetism.java | UTF-8 | 3,010 | 2.59375 | 3 | [] | no_license | package sl4475.Enchantments;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.World;
import org.bukkit.block.Block;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.enchantments.EnchantmentTarget;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.b... | true |
2243bb0b1a12a210ddc95d5bfc4978d78aacedad | Java | theonedev/onedev | /server-core/src/main/java/io/onedev/server/web/component/issue/side/IssueSideCssResourceReference.java | UTF-8 | 377 | 1.757813 | 2 | [
"MIT"
] | permissive | package io.onedev.server.web.component.issue.side;
import io.onedev.server.web.page.base.BaseDependentCssResourceReference;
public class IssueSideCssResourceReference extends BaseDependentCssResourceReference {
private static final long serialVersionUID = 1L;
public IssueSideCssResourceReference() {
super(Issue... | true |
5735fe4c31ab5fee42e70bf6f71f4464c6a4e841 | Java | zelinskiyrk/fts-jb-101-store | /src/main/java/com/zelinskiyrk/store/basket/exception/ProductBasketNotExistException.java | UTF-8 | 115 | 1.578125 | 2 | [
"MIT"
] | permissive | package com.zelinskiyrk.store.basket.exception;
public class ProductBasketNotExistException extends Exception {
}
| true |
24264b759c8d9e34b8eea8ca902d0ca8508ea2b6 | Java | Taher-Ghaleb/FlakeFlagger | /flakiness-predicter/input_data/original_tests/doanduyhai-Achilles/nonFlakyMethods/info.archinnov.achilles.internal.persistence.operations.EntityProxifierTest-should_unproxy_list_of_entities.java | UTF-8 | 314 | 1.921875 | 2 | [
"BSD-3-Clause"
] | permissive | @Test public void should_unproxy_list_of_entities() throws Exception {
List<Factory> proxies=new ArrayList<Factory>();
proxies.add(realProxy);
when(interceptor.getTarget()).thenReturn(realProxy);
Collection<Factory> actual=proxifier.removeProxy(proxies);
assertThat(actual).containsExactly(realProxy);
}
| true |
095aa28657bd8790dd9f286c3b84a32cf3ac97af | Java | zhangdengjie/weshop | /RedPlus/src/com/i5le/redplus/service/GiftInfoService.java | UTF-8 | 999 | 1.71875 | 2 | [] | no_license | package com.i5le.redplus.service;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annota... | true |
04051e92be8294d6df851a27a170d09dccf210be | Java | miguelfeijoo/PRINCIPAL | /carrito.master.service.subsystem/src/main/java/co/edu/uniandes/csw/carrito/master/persistence/entity/CarritoItemEntity.java | UTF-8 | 2,243 | 2.078125 | 2 | [] | no_license | package co.edu.uniandes.csw.carrito.master.persistence.entity;
import co.edu.uniandes.csw.item.persistence.entity.ItemEntity;
import co.edu.uniandes.csw.carrito.persistence.entity.CarritoEntity;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
... | true |
90287131d6cf6d103d79f8247689c4d9a582a430 | Java | matheusAle/PBTest | /pbtest1.1/src/model/Factorys/RoteiroDeTesteFactory.java | UTF-8 | 5,352 | 2.796875 | 3 | [] | no_license | package model.Factorys;
import controller.exceptions.RoteiroDeTesteExeption;
import model.CasoDeTeste;
import model.RoteiroDeTestes;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.LinkedList;
public class RoteiroDeTesteFactory extends AbstractFactory{
/**
* Salva o novo roteiro ... | true |
9812e92670037befc12b6c3fb41f9bb78222fe72 | Java | Zanry/incubator-tinkerpop | /gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/SelectColumnStep.java | UTF-8 | 2,789 | 2.015625 | 2 | [
"Apache-2.0",
"MIT"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | true |
60aa42a2e0ccfaee25a42d8457a4b205619e42f2 | Java | Grom9941/Tetries | /src/main/java/View/AllCombinationsReturn.java | UTF-8 | 2,958 | 2.609375 | 3 | [] | no_license | package View;
import Model.Field;
import Model.Figure;
import javafx.util.Pair;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class AllCombinationsReturn extends MethodForFuncton {
private final static double weighFillRow=-5.8;
private final static double weighHole=4.2;
p... | true |
c75528f1e852d7ccd894810508a6030767c7c055 | Java | jodotlearn/traveling-salesman-problem | /src/main/java/edu/nchu/cs/ai/solution/OptimumSolution.java | UTF-8 | 455 | 2.359375 | 2 | [] | no_license | package edu.nchu.cs.ai.solution;
import java.util.List;
public class OptimumSolution<Solution> {
private Solution solution;
private double objectiveValue;
private List detail;
public void setSolution(Solution solution) {
this.solution = solution;
}
public Solution getSolution() {
return this.solution;
}
... | true |
4c17af0020bb7265cdca2f7bbd03ce1576d5a521 | Java | gchoudharyb/java | /src/com/gaurav/java/stream/PartitioningByTest.java | UTF-8 | 2,079 | 2.9375 | 3 | [] | no_license | package com.gaurav.java.stream;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.function.Predicate;
import java.util.stream.Collectors;
public class PartitioningByTest {
public static void main(String[] args) {
System.out.println(Runtime.getRuntime().availableProcessors())... | true |
59ae3f2115d229d94d448a45c91a74eec3d28490 | Java | Git2191866109/cbs | /src/main/java/com/bs/plugins/custom/eb/datarelationaltable/base/BaseDataRelationalTableService.java | UTF-8 | 6,664 | 2.078125 | 2 | [] | no_license | package com.bs.plugins.custom.eb.datarelationaltable.base;
import java.util.List;
import java.util.Hashtable;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import com.bs.core.entity.Entity;
import com.bs.core.entity.ResultData;
import com.bs.core.service.IBaseService;
import co... | true |
40376d455f5c5004b3eabca940edca7f990cd4c6 | Java | topcoder-platform/tc-java-components | /components/database_abstraction/src/java/tests/com/topcoder/util/sql/databaseabstraction/stresstests/StressTests.java | UTF-8 | 687 | 2.125 | 2 | [] | no_license | package com.topcoder.util.sql.databaseabstraction.stresstests;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
* <p>
* This test case aggregates all stress test cases.
* </p>
*
* @author TopCoder Software
* @version 1.1
*/
public class StressT... | true |
784b287d887345c4f1304b84df05969cf830b636 | Java | michaelalvin/EnterpriseAPIClients | /Java/models/GetFieldValidationModel.java | UTF-8 | 3,901 | 2.125 | 2 | [] | no_license | /**
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
package softheon.enterprise.api.client.models;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Model for the GET Template inp... | true |
16dac874c1e903ac52ab42fd139f95d46c58eea6 | Java | tsvetanvashkov/Java_Tutorials | /Java_Tutorials/src/_6_oop_principles/AbstactClass.java | UTF-8 | 963 | 3 | 3 | [] | no_license | package _6_oop_principles;
public abstract class AbstactClass {
//Abstraktniq klas e nezavyrshen klas
//Ot edin abstrakten klas NIKOGA ne moje da se napravi OBEKT
//vseki klas koito ima pone 1 abstrakten metod se naricha Abstrakten klas
//Abstraktniq klas samo i edinstveno moje da se nasledqva
//Vs... | true |
244541152c9854f7ee7cb05d70c7fb4ff3f2bec2 | Java | cunla/RPSP | /src/main/java/com/emc/rpsp/fal/commons/ImageAccessParameters.java | UTF-8 | 4,544 | 2.328125 | 2 | [
"MIT"
] | permissive | package com.emc.rpsp.fal.commons;
import javax.xml.bind.annotation.*;
@SuppressWarnings("serial")
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ImageAccessParameters")
public class ImageAccessParameters implements Validateable {
@XmlElement(required = true)
private RecoverPointTimeSt... | true |
93a2197296954a807c247555a466d76c1edbe725 | Java | wjianbin/TBCredit | /creditsupport/.svn/pristine/c0/c0d488e062ee67ff4862bd0b66065da81784f5a1.svn-base | UTF-8 | 572 | 1.96875 | 2 | [] | no_license | package com.yodata.creditsupport.orm.vo;
import java.io.Serializable;
public class InformationSchema implements Serializable{
/**
*
*/
private static final long serialVersionUID = 1L;
/**数据库名*/
private String tableSchema;
/**表名*/
private String tableName;
public String getTableSchema() {
return t... | true |
4e83e9fadbd666bca8a75b8d655464583f0661df | Java | derelektrischemoench/ObserverPatternsExercise | /src/ObserverPattern/runner.java | UTF-8 | 590 | 3.109375 | 3 | [] | no_license | package ObserverPattern;
import java.util.Observer;
import java.util.Random;
public class runner {
public static void main(String[] args) {
Universe u = new Universe();
Random randomInt = new Random();
new ChangeObserver(u);
while(true) {
u.setNumStars(randomIn... | true |
59584be3febcac0fdc5b3bc4548e50ca0bae7544 | Java | Miguelangelhdzcast/lototress | /src/main/java/com/proyecto/lototres/Actividad.java | UTF-8 | 1,782 | 2.15625 | 2 | [] | no_license | package com.proyecto.lototres;
import java.io.Serializable;
import java.sql.Blob;
import javax.persistence.*;
import org.springframework.context.annotation.ComponentScan;
@ComponentScan(basePackages ={"com.proyecto.lototres.ActividadService"})
@Entity
@Table ( name = "actividad" )
public class Actividad implements Se... | true |
ab1be151cd05e42d89eb77ba819daa5693d78ba8 | Java | foxxifu/my-ids | /ids-dev-all/ids-dev-network/src/main/java/com/interest/ids/dev/network/handler/subscribe/DevSubscriptionTask.java | UTF-8 | 2,254 | 2.4375 | 2 | [] | no_license | package com.interest.ids.dev.network.handler.subscribe;
import com.interest.ids.common.project.bean.signal.DeviceInfo;
/**
*
* @author lhq
*
*
*/
public class DevSubscriptionTask {
public DevSubscriptionTask(DeviceInfo dev,SubscriptionTask task){
this.dev = dev;
this.task = task;
}
... | true |
5e361eaac208de235a971d4823c7e91fc397bbc0 | Java | AzureAD/azure-activedirectory-library-for-android | /adal/src/telemetry/java/com/microsoft/aad/adal/DefaultEvent.java | UTF-8 | 6,295 | 1.84375 | 2 | [
"MIT"
] | permissive | // Copyright (c) Microsoft Corporation.
// All rights reserved.
//
// This code is licensed under the MIT License.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files(the "Software"), to deal
// in the Software without restriction, in... | true |
040a2e6cf78c1d6be33784ea005861f715c98bca | Java | Viniciuslfta/arka | /arkanoid/src/arkanoid/models/entities/Bonus/BonusExpansion.java | UTF-8 | 993 | 2.234375 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package arkanoid.models.entities.Bonus;
import arkanoid.BaseColor;
import arkanoid.Settings;
import arkanoid.Textures;
import arkanoid.models.entities.PlayArea;
import org.newdawn.slick.opengl.Texture;
/**
*
* @autho... | true |
cd09c23fa5168017d3f0accdd362e549e0052a9b | Java | sekouu/Thread | /src/Model/RunnableTree.java | UTF-8 | 940 | 3.125 | 3 | [] | no_license | package Model;
import Model.BinarySearchTree;
import java.util.Random;
public class RunnableTree implements Runnable {
private BinarySearchTree tree;
//private E add;
private int nbNode;
public RunnableTree(BinarySearchTree tree, int a)
{
this.tree = tree;
this.nbNode = a;
}
public void run()
{
... | true |
fee9efe2ace0a9679c4dc3229ac848b298f97f58 | Java | SubashChandrabose-V/Collaboration-Project | /Collaboration_backend/src/main/java/org/com/config/DBConfig.java | UTF-8 | 2,069 | 2.078125 | 2 | [] | no_license | package org.com.config;
import java.util.Properties;
import javax.sql.DataSource;
import org.apache.commons.dbcp.BasicDataSource;
import org.com.model.BlogComment;
import org.com.model.BlogPost;
import org.com.model.Friend;
import org.com.model.Job;
import org.com.model.ProfilePicture;
import org.com.mod... | true |
a432e47bfd3d314b5d3e8ac9ff6a2fcc59d3cf79 | Java | wangbo7753/ktSpider | /src/main/java/com/kthw/spider/common/db/DBParam.java | UTF-8 | 1,230 | 2.359375 | 2 | [] | no_license | package com.kthw.spider.common.db;
public class DBParam {
private String alias;
private String user;
private String password;
private String url;
private String driver;
public DBParam(String alias, String user, String password, String driver,
String url) {
this.alia... | true |
0581ec142ce18df4b60fe99b8d4ea42dea3956ee | Java | vishal901/storemanagerADMIN | /app/src/main/java/in/vaksys/storemanager/response/GetCustomerList.java | UTF-8 | 6,532 | 2.15625 | 2 | [] | no_license | package in.vaksys.storemanager.response;
import com.google.gson.annotations.SerializedName;
import java.util.List;
/**
* Created by lenovoi3 on 8/12/2016.
*/
public class GetCustomerList {
/**
* error : false
* message : Get Customers successfully.
* data : [{"id":"21","branch_id":"6","first_n... | true |
8f86e19c95f4a1f48c8d5b97515580fec38d284e | Java | chunyukuo88/kataWithGradle | /src/test/java/kataWithGradle/TheOfficeIVTest.java | UTF-8 | 1,170 | 3.109375 | 3 | [] | no_license | //https://www.codewars.com/kata/the-office-iv-find-a-meeting-room/train/java
package kataWithGradle;
import static org.junit.Assert.*;
import org.junit.Test;
public class TheOfficeIVTest {
@Test
public void findFirstO() throws Exception {
TheOfficeIV underTest = new TheOfficeIV();
char[] testArray = {'X', 'X... | true |
422162ef8aa9fd70980fa643373c650278a9658a | Java | 2276089666/DataStructuresAndAlgorithms | /algorithms/violentRecursion/Hanoi.java | UTF-8 | 1,114 | 3.765625 | 4 | [
"Apache-2.0"
] | permissive | package violentRecursion;
/**
* @Author ws
* @Date 2021/4/17 15:25
* @Version 1.0
*/
public class Hanoi {
/**
* 打印n层汉诺塔从最左边移动到最右边的全部过程
*/
/**
* @param N 圆盘的层数
*/
public static void printHanoi(int N) {
if (N > 0) {
recursionPrint(N, "left", "mid", "right");
... | true |
258d5dc7fe4cf3abc7c4c5648cbaf35384cb98b5 | Java | DJ956/BreakingBlue | /BreakingBlue/app/src/main/java/com/george/breakingblue/bluetooth/command/ImageFromURLCommand.java | UTF-8 | 8,592 | 2.375 | 2 | [] | no_license | package com.george.breakingblue.bluetooth.command;
import android.app.Activity;
import android.app.ProgressDialog;
import android.os.AsyncTask;
import android.os.Environment;
import android.support.v7.app.AlertDialog;
import android.widget.Toast;
import com.george.breakingblue.bluetooth.session.ConnectManager;
import... | true |
255de1c695d36184f82168a21b635d3d4d6f7fe0 | Java | dvspandey/Web-ChatApplication | /Code/src/com/nt/util/ChatAppCalender.java | UTF-8 | 1,427 | 2.8125 | 3 | [] | no_license | /**
* @author Devesh Pandey
* mailID:: dvspandey10@gmail.com
*/
package com.nt.util;
import java.util.Calendar;
import java.util.TimeZone;
public class ChatAppCalender {
private String date;
private String time;
private String timeStamp;
//Getters
public String getDate() {
TimeZone timeZone = TimeZon... | true |
01403202314ac34d4e72860335460366628f0fea | Java | garygb/notes | /SpringAnno/src/main/java/com/gary/SpringAnno/App.java | UTF-8 | 657 | 2.5625 | 3 | [] | no_license | package com.gary.SpringAnno;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
/**
* Hello world!
*
*/
//Spring Core Annotations
public class App
{
public static void main( String[] args )
{
//create a class who wi... | true |
7c813707bd14da61717957ff62bed3b6cba12bd0 | Java | hateftad/Attraversiamo-Gradle | /core/src/com/me/utils/DimensionsHelper.java | UTF-8 | 673 | 2.625 | 3 | [] | no_license | package com.me.utils;
public class DimensionsHelper {
public static float initDimension(float height, float width){
float zoom = 0f;
//iphone 4
if(height == 480 && width == 800){
zoom = 9.5f;
}
if(height == 640 && width == 960){
zoom = 9f;
}
//iphone 5
if(height == 640 && width == 1136){
... | true |
bf2990b231d1dbd2538b9716619375c05b53aab5 | Java | dre24/Auora | /src/Auora/tools/EconomyChecker.java | UTF-8 | 2,636 | 2.84375 | 3 | [] | no_license | package Auora.tools;
import Auora.model.Item;
import Auora.model.player.Player;
import Auora.model.player.Prices;
import Auora.model.player.StaffRights;
import Auora.model.player.account.PlayerLoading;
import Auora.rscache.Cache;
import java.io.File;
/**
* Checks the economy for dupes
*
* @Author Jonny
*/
public... | true |
4250b93a9a7b9c6e528d4a13b7461f2e1b02e236 | Java | msulima/redis-client | /src/test/java/pl/msulima/redis/benchmark/nonblocking/ProtocolWriterTest.java | UTF-8 | 2,754 | 2.765625 | 3 | [] | no_license | package pl.msulima.redis.benchmark.nonblocking;
import com.google.common.base.Charsets;
import org.junit.Test;
import redis.clients.jedis.Protocol;
import java.nio.ByteBuffer;
import java.util.Collections;
import static org.assertj.core.api.Assertions.assertThat;
public class ProtocolWriterTest {
private stati... | true |
133a7e8887393068d77bbbd1ef508b07985369a3 | Java | aza13/Javaprojects | /src/StringBuilderTasks/task1.java | UTF-8 | 1,389 | 3.5625 | 4 | [] | no_license | package StringBuilderTasks;
public class task1 {
public static void main(String[] args) {
String [] str = {"a","b","c"};
System.out.println(buildFrom(str));
StringBuilder stb=new StringBuilder();
stb.append("true");
stb.append("false");
stb.insert(0,"false");
... | true |
404c20b6863cc74374d0b0559bd10ca2d97a691c | Java | zlw999/crims-hd-master | /crims-sgws-api/src/main/java/com/ireal/crims/sgws/main/SgwsClientMain.java | UTF-8 | 5,400 | 2.203125 | 2 | [] | no_license | package com.ireal.crims.sgws.main;
import com.ireal.crims.sgws.enums.SgAppType;
import com.ireal.crims.sgws.enums.SgDataFormat;
import com.ireal.crims.sgws.interfaces.SgwsCallbackInterface;
import com.ireal.crims.sgws.interfaces.SgwsInterface;
import com.ireal.crims.sgws.process.MsgProcesserTest;
import com.i... | true |
3fdccff4d31db591240ef2837258b3f9308381bd | Java | mvpdev/drishti-childcount-bridge | /drishti-scheduler/src/main/java/org/ei/drishti/scheduler/DrishtiSchedules.java | UTF-8 | 786 | 1.859375 | 2 | [] | no_license | package org.ei.drishti.scheduler;
public class DrishtiSchedules {
public static final String SCHEDULE_ANC = "Ante Natal Care - Normal";
public static final String SCHEDULE_EDD = "Expected Date Of Delivery";
public static final String SCHEDULE_IFA = "Iron Folic Acid Supplements";
public static final Str... | true |
4ee19390a2cf8fbf099e3753d029b978d08763b6 | Java | pnlinh-ivc/MVP-Demo | /app/src/main/java/com/pnlinh/mvpdemo/home/HomePresenterImpl.java | UTF-8 | 2,832 | 2.25 | 2 | [] | no_license | package com.pnlinh.mvpdemo.home;
import android.content.Context;
import android.content.res.Resources;
import android.os.Handler;
import android.os.Looper;
import android.speech.tts.TextToSpeech;
import android.util.Log;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.pnlinh.mvpdemo.... | true |
4381b437afea80639977d5813b7350be44e20b87 | Java | Descartes310/OnePassTwig2Stack | /src/DataClass/XmlDocument.java | UTF-8 | 2,106 | 3.125 | 3 | [] | no_license | /*
* This class define tree structure of an XML Document.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package DataClass;
import java.util.ArrayList;
/**
*
* @author Descartes Fowo
*/
public class XmlDocument {
private DocElement root;
private A... | true |
5cbf57a253bf587271eff0ac76033df4ad2655de | Java | lfsidfj/zlp | /src/main/java/spiderman/test/AlipayTest.java | UTF-8 | 3,129 | 2.25 | 2 | [] | no_license | package spiderman.test;
import org.junit.Test;
import com.alipay.api.AlipayApiException;
import com.alipay.api.AlipayClient;
import com.alipay.api.DefaultAlipayClient;
import com.alipay.api.request.AlipayFundTransToaccountTransferRequest;
import com.alipay.api.request.AlipayTradePagePayRequest;
import com.alipay.api.... | true |
aeacac0674b2992cf82ad73ec970a4168dde0b0f | Java | NewTownData/osmismerka | /app/src/main/java/com/newtowndata/osmismerka/Solver.java | UTF-8 | 1,415 | 2.734375 | 3 | [
"Apache-2.0"
] | permissive | /**
* Copyright 2021 Voyta Krizek, https://github.com/NewTownData
*
* 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 b... | true |
a437c7765c975c34fd347645346c9a7a0fa642b1 | Java | MilicaPoparic/MRS_ISA_T10 | /src/main/java/main/mrs/service/OcenaKlinikaService.java | UTF-8 | 1,229 | 2.078125 | 2 | [] | no_license | package main.mrs.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;
import main.mrs.model.Lek;
import main.mrs.model.OcenaKlinika;
i... | true |
418c8a857848ac344684f60219e7b9f90561f15e | Java | Khellendroscn/JavaHomeWork | /src/net/khe/homework9/App1.java | UTF-8 | 382 | 2.484375 | 2 | [] | no_license | package net.khe.homework9;
/**
* Created by hyc on 2016/12/2.
*/
public class App1 {
public static void main(String[] args) {
Thread t1 = new Thread(new Runner());
t1.start();
new Thread(()->{
for(int i=100;i>=0;--i){
System.out.println("Hello"+i);
... | true |
dfa420ff00737130aa529800a0e15e4c2d3ecf78 | Java | ohmema/interview | /java/interviews/CS502/Lab2/src/NewtonIteration6.java | UTF-8 | 1,987 | 3.40625 | 3 | [
"Apache-2.0"
] | permissive | import components.simplereader.SimpleReader;
import components.simplereader.SimpleReader1L;
import components.simplewriter.SimpleWriter;
import components.simplewriter.SimpleWriter1L;
public class NewtonIteration6 {
/**
* Reports the non-negative square root of {@code x} to within relative
* error {@code epsilon... | true |
b71be115c828dee9755a15fa213b6781f65b2983 | Java | zhangswww/ssm_thymeleaf | /src/main/java/com/example/ssmThymeleaf/service/UserService.java | UTF-8 | 169 | 1.757813 | 2 | [] | no_license | package com.example.ssmThymeleaf.service;
import com.example.ssmThymeleaf.domain.User;
import java.util.List;
public interface UserService {
List<User> list();
}
| true |
0a21773551b44d43e13c331147a0ec0c507bd2f7 | Java | RomanBortnyk/crawler-microservice | /core/src/main/java/core/annotation/processor/StartupParserClassesContainer.java | UTF-8 | 1,163 | 2.34375 | 2 | [] | no_license | package core.annotation.processor;
import core.annotation.Parser;
import lombok.extern.slf4j.Slf4j;
import org.reflections.Reflections;
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
import java.util.Set;
@Slf4j
public class StartupParserClassesContainer {
private final Map<String, C... | true |
cfec86a665d6a67ed05e521df4a2194e5cc78b8a | Java | systembugtj/reader | /src/DaisyReader/tests/com/ader/DaisyParserTest.java | UTF-8 | 1,477 | 2.8125 | 3 | [] | no_license | package com.ader;
/**
* Tests for the DaisyParser class, to help us express the intent of the class
* and to test the ongoing changes and refactoring.
*
* Currently these tests assume DAISY 202 content e.g. ncc.html
*/
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.ut... | true |
0605372cbe4d09e08a4c423eb6dfe8f7133ffe86 | Java | gscc-sonia/ADV4_S1Project | /ADV4_S1/src/main/java/com/gscc/adv4_s1/MainActivity.java | UTF-8 | 6,319 | 2.078125 | 2 | [] | no_license | package com.gscc.adv4_s1;
import android.annotation.TargetApi;
import android.net.Uri;
import android.os.Handler;
import android.os.Message;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.app.ActionBar;
import android.support.v4.app.Fragment;
import android.os.Bundle;
import android.view.La... | true |
0d19f21a13ae85488c741e3d03d2ddc85174a91a | Java | STAMP-project/dspot-experiments | /benchmark/training/com/annimon/stream/function/SupplierTest.java | UTF-8 | 3,076 | 2.703125 | 3 | [] | no_license | package com.annimon.stream.function;
import Supplier.Util;
import com.annimon.stream.Functions;
import java.io.ByteArrayInputStream;
import java.io.DataInputStream;
import java.io.IOException;
import org.hamcrest.CoreMatchers;
import org.hamcrest.Matchers;
import org.junit.Assert;
import org.junit.Test;
/**
* Test... | true |
78d79d37524ff5b2855caf03867d1d9547431178 | Java | luyota/CS227B-Dumplings | /src/com/dumplings/heuristics/FocusedMonteCarlo.java | UTF-8 | 2,403 | 2.9375 | 3 | [] | no_license | package com.dumplings.heuristics;
import java.util.List;
import java.util.Random;
import util.statemachine.MachineState;
import util.statemachine.Move;
import util.statemachine.Role;
import util.statemachine.StateMachine;
import util.statemachine.exceptions.GoalDefinitionException;
import util.statemachine.exceptions... | true |
5934b79c6a8c2a2eefd59cf0d62850c8073f81ae | Java | edersonjseder/beautyfit | /projetobeauty/src/main/java/br/com/beautyfit/endpoint/Path.java | UTF-8 | 960 | 1.601563 | 2 | [] | no_license | package br.com.beautyfit.endpoint;
public class Path {
public final static String BASE_URL = "beautyfit/v1";
public final static String OAUTH_URL = "http://192.168.1.101:8081";
public final static String OAUTH_URL_LH = "http://localhost:8081";
public static class urls{
public final static String CL... | true |
c43935f8907307d97d3bffe6e90ee04226434f1d | Java | glauciom/combinatorial-algorithms | /src/kNSubset/UnSerialKNSubsetMethod.java | ISO-8859-1 | 2,315 | 3.171875 | 3 | [] | no_license | /*
* Created on 17/10/2004
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package kNSubset;
import java.math.BigInteger;
/**
* @author GLAUCIO
*
* TODO To change the template for this generated type comment go to
* Wi... | true |
3c99f251e0363824e93dfe22d319d06651ab0128 | Java | deyim/OOP_Prac | /CH1/src/guitarStore/Inventory.java | UTF-8 | 986 | 3.0625 | 3 | [] | no_license | package guitarStore;
import java.util.List;
import java.util.Iterator;
import java.util.LinkedList;
public class Inventory {
private List<Guitar> guitars;
public Inventory() {
this.guitars = new LinkedList<Guitar>();
}
public void addGuitar(String serialNumber, double price, GuitarSpec spec)
{
Guitar guit... | true |
bf882e561703c29d359622fa7371fc2973f78cb1 | Java | pnandi87/mstraining | /demo/src/main/java/com/bootcamp/demo/controller/GreetingController.java | UTF-8 | 1,373 | 2.46875 | 2 | [] | no_license | package com.bootcamp.demo.controller;
import java.time.Instant;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.anno... | true |
91cc18a46a8046d159871ae6dbd9fc181e872d3c | Java | jsihota/Transactions | /src/test/java/com/transactions/reportcalculator/WithIncomeAndSpendingTest.java | UTF-8 | 3,577 | 2.5625 | 3 | [] | no_license | package com.transactions.reportcalculator;
import com.transactions.common.ReportCalculator;
import com.transactions.model.Entries;
import com.transactions.model.Report;
import com.transactions.model.Transaction;
import com.transactions.model.TransactionAction;
import org.junit.Assert;
import org.junit.Before;
import o... | true |
523486258adeb75b28bd8b08ac4ad7429fcceb14 | Java | JetBrains/intellij-community | /java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/lambdaCodeBlock2Expr/beforeComparable.java | UTF-8 | 127 | 1.734375 | 2 | [
"Apache-2.0"
] | permissive | // "Replace with expression lambda" "true-preview"
class Test {
{
Comparable<String> c = (o) -> {r<caret>eturn 0;};
}
} | true |
6a7f82cfcfecf6255c78d4a6ed6de2e4156acac4 | Java | PrabodDunuwila/siddhi-maven-archetype | /siddhi-script/src/main/resources/archetype-resources/component/src/main/java/__classNameOfScript__.java | UTF-8 | 4,390 | 2.65625 | 3 | [
"Apache-2.0"
] | permissive | package ${package};
import io.siddhi.annotation.Example;
import io.siddhi.annotation.Extension;
import io.siddhi.core.function.Script;
import io.siddhi.core.util.config.ConfigReader;
import io.siddhi.query.api.definition.Attribute.Type;
/**
* This is a sample class-level comment, explaining what the extension class ... | true |
f21f5077cfa87406932c695ed16fbc33cf7b1ceb | Java | jignesh-dhua/soap-connector-camel-cxf | /src/main/java/nl/kvk/schemas/schemas/hrip/catalogus/_2015/_02/BijzondereRechtstoestandType.java | UTF-8 | 5,922 | 1.820313 | 2 | [] | no_license |
package nl.kvk.schemas.schemas.hrip.catalogus._2015._02;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for BijzondereRechtstoestandType complex type.
*
* <p>The following schema fragment specifies t... | true |
2e4abba3bef6d41a7cb4b634fff52cd25ec77e39 | Java | SaibanAhmad/androidBloodBank | /app/src/main/java/com/saiban/bahawalpurblooddonors/loginorsignup.java | UTF-8 | 1,669 | 1.9375 | 2 | [] | no_license | package com.saiban.bahawalpurblooddonors;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Button;
import com.google.firebase.auth.FirebaseAuth;
publ... | true |
48ee44c8c6f0540d815b24e61f76146e5151003e | Java | rafayameen/HackerRank | /1.GameEngine/src/renderEngine/Loader.java | UTF-8 | 3,812 | 2.78125 | 3 | [] | no_license | package renderEngine;
import java.util.List;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.nio.FloatBuffer;
import java.nio.IntBuffer;
import java.util.ArrayList;
import org.lwjgl.BufferUtils;
import org.lwjgl.opengl.GL11;
import org.lwjgl.op... | true |
304c03c54b6222b33d2a88b7c9b699072d8e15f5 | Java | rcl4444/vsc_debug_error | /scheduler/src/main/java/com/sample/scheduler/StatsSchedulerApp.java | UTF-8 | 462 | 1.75 | 2 | [] | no_license | package com.sample.scheduler;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
@MapperScan("com.sample.scheduler.dao")
public class StatsSchedulerApp {
public static void... | true |
62fcb2b8d7b1c60fe4ad6a4b2a493eaf547e8d82 | Java | abcshmedu/shareit-summer-2017-fetomado | /src/test/java/edu/hm/shareit/resources/MediaResourceTest.java | UTF-8 | 8,109 | 2.328125 | 2 | [] | no_license | package edu.hm.shareit.resources;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ObjectNode;
import edu.hm.shareit.GuiceInjectionTestFeature;
import edu.hm.shareit.models.Book;
import edu.hm.shareit.models.Disc;
import edu.hm.shareit.models.User;
import edu.hm.shareit.se... | true |
d059f9aad9f9177d74699e40daac2f819e4ca2e5 | Java | MichelleSG2306/P8-2017 | /P8-master/app/src/main/java/com/example/rasmus/p8_master/BankCard.java | UTF-8 | 4,507 | 2.265625 | 2 | [] | no_license | package com.example.rasmus.p8_master;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.support.design.widget.TabLayout;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;
publ... | true |
b9d8abd07199a822742a35a110bba6ad8285bdd6 | Java | daviarimateia93/Foound | /src/main/java/net/foound/exception/handler/HttpExceptionHandler.java | UTF-8 | 844 | 2 | 2 | [] | no_license | package net.foound.exception.handler;
import net.foound.exception.HttpException;
import org.springframework.http.HttpHeaders;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.spr... | true |
061b5390678b813313c0f3a71dd5eda9d36f3042 | Java | mirzabecic/SvaPredavanja | /Sedmica11Predavanje3/src/bitcamp/ba/Main.java | UTF-8 | 1,094 | 2.5625 | 3 | [] | no_license | package bitcamp.ba;
import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.ObjectOutp... | true |
234e73ef59adf9c31bb3ea04ed5fc52a4c7db560 | Java | khalerev/rev2week | /Lecture/210628-JavaPrimer/java-environment/day4/src/strings/Pooling.java | UTF-8 | 656 | 4.0625 | 4 | [] | no_license | package strings;
public class Pooling {
public static void main(String[] args) {
String s1 = "Hello";
String s2 = new String("Hello");
String s3 = "Hello";
System.out.println(s1);
System.out.println(s2);
/*
* '==' compares the memory address of objects in the
* heap and will return true when two ... | true |
08b81d2995b7dd0f62744f061ecc4b3723032dfa | Java | AlaaShehab/Peer-to-peer-blockchain | /src/PeerNode.java | UTF-8 | 2,554 | 2.765625 | 3 | [] | no_license | import java.util.ArrayList;
import java.util.Collections;
import java.util.Hashtable;
import java.util.List;
import java.util.concurrent.BrokenBarrierException;
import java.util.concurrent.CyclicBarrier;
public class PeerNode {
int port;
String hostName;
int ID;
clientTCP client1;
serverTCP server1;
List<String>... | true |
63458d8c70d5aaf1d58ff7d9740d360ed19dff76 | Java | JamMarHer/projecteuler | /src/projecteuler/p022.java | UTF-8 | 821 | 2.953125 | 3 | [] | no_license | package projecteuler;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Scanner;
public class p022 {
public static void main(String[] args){
ArrayList<String> names = new ArrayList<String>();
try (Scanner scanner =... | true |
24eb095f9351dc5dceffd0c2104da24e54f822f0 | Java | Vinu-Prabhakaran/MyWork | /CallHolidayWebServiceSOAP/src/main/java/com/holidaywebservice/holidayservice_v2/BankHoliday.java | UTF-8 | 1,241 | 2.390625 | 2 | [] | no_license |
package com.holidaywebservice.holidayservice_v2;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for BankHoliday.
*
* <p>The following schema fragment specifies the expected content contained within... | true |
d7c6eb47b1d434ab5cb1071b971fb2180b8f5e34 | Java | zoom59rus/JavaRushTasks | /2.JavaCore/src/com/javarush/task/task19/task1915/Solution.java | UTF-8 | 1,180 | 3.296875 | 3 | [] | no_license | package com.javarush.task.task19.task1915;
/*
Дублируем текст
*/
import java.io.*;
public class Solution {
public static TestString testString = new TestString();
public static void main(String[] args) {
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
P... | true |
99cdee4f3b73fc008b0f73463494a2bd99efcfd4 | Java | Underlion10/MasterMind | /MasterMind/src/vista/Lienzo.java | UTF-8 | 1,693 | 2.609375 | 3 | [] | no_license | package vista;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.util.ArrayList;
import javax.swing.BorderFactory;
import javax.swing.JPanel;
import modelo.CirculoGrande;
import modelo.Stuff;
public class Lienzo extends JPanel {
/**
*
*/
private static... | true |
525f120843c075e561ac5709559d74593850c74d | Java | AbdielNie/AP-Computer-Science-A | /APCS work/Control Structures/Classwork/Loop_Question1.java | UTF-8 | 1,509 | 4.1875 | 4 | [] | no_license | import java.util.Scanner;
/**
* Name: AbdielNie
* decription: Write a program that plays an incredibly stupid
* number-guessing game. The user will get one try to guess the
* secret number. Tell them if they got it right or wrong, and
* if they got it wrong, display what the secret number was.
* You must store t... | true |
01ba5c9c4731bd9d7ed9e417c25b45daa213ac41 | Java | huyphatvu/Data-Structure-Course-Project | /HW3/Tester.java | UTF-8 | 846 | 3.15625 | 3 | [] | no_license | /**
* A Class to run the runtime analysis
* of Cuckoo Hashing and AVL Tree
*
* @author Huy Vu
* @version October 30 2017
*/
public class Tester {
public static void main(String[] args) {
// System.out.println("Testing Cuckoo Hash Function:");
// CuckooHashTester.performCuckooTest();
Sys... | true |
34e3593ebe9474a93bcea2612961d872bad302d6 | Java | gssinghgautam/limkokwingapp | /app/src/main/java/com/android/limkokwingapp/ui/images/ImageActivity.java | UTF-8 | 4,860 | 2.015625 | 2 | [] | no_license | package com.android.limkokwingapp.ui.images;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.CoordinatorLayout;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.GridLayoutManager;
import android.supp... | true |
d3572c6b2fbcb88cdd1e985a83fa19895588d5c1 | Java | xivanglei/view | /17 网络请求/src/main/java/xl/gcs/com/retrofit/IpService.java | UTF-8 | 825 | 2.515625 | 3 | [
"Apache-2.0"
] | permissive | package xl.gcs.com.retrofit;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Headers;
import xl.gcs.com.retrofit.model.IpModel;
public interface IpService {
//加入请求头,没有这行就经常会失败,这里有两个文件头,用{}包起来,中间用都好隔开,如果只有一个文件头的话,就不用大括号,也可以用动态方式添加,下面介绍
@Headers({
... | true |
3cf8fbae974165b869660a24ede303bb045dc7b6 | Java | P79N6A/icse_20_user_study | /methods/Method_1013324.java | UTF-8 | 158 | 1.75 | 2 | [] | no_license | public FPSet init(int numThreads,String metadir,String fname){
this.metadir=metadir;
this.filename=metadir + FileUtil.separator + fname;
return this;
}
| true |
2290c747b844c1ae4f757ddde5c3df62b8e620fc | Java | aaron0211/PSP_ExamenWebinar | /src/main/java/com/aaron/examen/util/AlertUtils.java | UTF-8 | 526 | 2.625 | 3 | [] | no_license | package com.aaron.examen.util;
import javafx.scene.control.Alert;
public class AlertUtils {
public static void mostrarAlerta(String mensaje){
Alert alert = new Alert(Alert.AlertType.ERROR);
alert.setTitle("Error");
alert.setContentText(mensaje);
alert.show();
}
public stati... | true |
73b93b31e3a8b1e13328e2fff73b0e6952e2231b | Java | Nagarjune1/fap-diplom | /application/cellular-fuzzy-automata/src/main/java/cz/upol/fapapp/cfa/impls/images/SimpleBlurFilterAutomaton.java | UTF-8 | 678 | 3.078125 | 3 | [] | no_license | package cz.upol.fapapp.cfa.impls.images;
/**
* Convolutional automata performing simple blur. Uses following core:
*
* <pre>
* 1 2 1
* 2 4 2
* 1 2 1
* </pre>
*
* @author martin
*
*/
public class SimpleBlurFilterAutomaton extends ConvolutionalCFA {
public SimpleBlurFilterAutomaton(int size) {
super(siz... | true |
017887112b780e6ceae06ff3bbf90e85b163f600 | Java | jazzman2/buildingreporter | /buildingreporter-ma/src/main/java/sk/jazzman/brmi/application/ServerConnectionThread.java | UTF-8 | 2,233 | 2.34375 | 2 | [] | no_license | /**
*
*/
package sk.jazzman.brmi.application;
import java.lang.reflect.Constructor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import sk.jazzman.brmi.common.ParameterBuilder;
import sk.jazzman.brmi.server.ws.ServerActionHandlerStateInf;
import sk.jazzman.brmi.server.ws.WSServerActionHandler;
import ... | true |
deeee60158ccb8e7040a08229752064d57daeec0 | Java | maruoovv/algorithm | /leetcode/TwoSum.java | UTF-8 | 605 | 3.71875 | 4 | [] | no_license | import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
public class TwoSum {
// 배열에서 두 수의 합의 target 이 되는 index 를 찾는 문제.
// n^2 밖에 생각 못했는데.. map 을 써서 n 으로 해결 가능하다.
public int[] twoSum(int[] nums, int target) {
int n = nums.length;
int[] res = new int[2];
Map<Integer, Integer> map = new Hash... | true |
c66116e57e44c261614e1cf11c47f1348f611484 | Java | muojie/spring-boot-learning | /spring-boot-quartz3/src/main/java/com/kfit/App.java | UTF-8 | 793 | 2.09375 | 2 | [] | no_license | package com.kfit;
import org.quartz.JobKey;
import org.quartz.Scheduler;
import org.quartz.SchedulerException;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
@SpringBootApplication
... | true |
00c4e9a139126362b85e49ff8146e79a3f1804b8 | Java | SoulApps/CrossPlatformLearning | /workspace/MultihiloCine/src/Sala.java | UTF-8 | 1,138 | 3.46875 | 3 | [] | no_license | /**
* Created by Alejandro on 04/10/2016.
*/
public class Sala {
private final int AFORO_MAXIMO = 50, AFORO_MIMIMO = 0;
private int plazasDisponibles, numero;
public Sala(int numero) {
this.numero = numero;
plazasDisponibles = AFORO_MAXIMO;
}
public synchronized void comprar(int... | true |
06d10dc06eab624287debefb35a46ba8ebb8fa01 | Java | IgorOto/PZ | /kinoteka_api/src/main/java/com/igi/kinoteka_api/service/UserService.java | UTF-8 | 230 | 1.914063 | 2 | [] | no_license | package com.igi.kinoteka_api.service;
import com.igi.kinoteka_api.model.UserDto;
import com.igi.kinoteka_api.model.User;
public interface UserService {
User getByUsername(String username);
void addUser(UserDto user);
}
| true |
e43d08e6fcdd96af44cfecbe7a0d16672060bc76 | Java | good-k/chapter03 | /src/chapter03/StringTest3.java | UTF-8 | 1,611 | 3.640625 | 4 | [] | no_license | package chapter03;
public class StringTest3 {
public static void main(String[] args) {
String s = "aBcAbcabcABC";
System.out.println( s.length() );
System.out.println( s.charAt(2) );
System.out.println( s.indexOf( "abc" ));
System.out.println( s.indexOf( "abc", 7 ));
System.out.println( s.s... | true |
c25f7db5572a1efb2a2545c68c86e0fa55d31d42 | Java | joseferreira01/atividade-EJB | /web/src/main/java/br/edu/ifpb/dac/atividade/jsf/controlador/ContatoControlador.java | UTF-8 | 3,349 | 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 br.edu.ifpb.dac.atividade.jsf.controlador;
import br.edu.ifpb.shared.Contato;
import br.edu.ifpb.shared.ContatoService;
impor... | true |
da535df812e53236cae888a7c5ac9d2b70170042 | Java | pavliggs/java1 | /src/ru/progwards/pavliggs/java2/N10dot4/SimpleApplication.java | UTF-8 | 206 | 1.929688 | 2 | [] | no_license | package ru.progwards.pavliggs.java2.N10dot4;
public class SimpleApplication {
public static void main(String[] args) {
System.out.println("SimpleApplication: main стартовал");
}
}
| true |
8a13929f92c6dfae6a6fcbfc1077bb4771cad286 | Java | shreeram09/mvnmm | /mvnmm-web/src/main/java/com/shreeram/otweb/MyServlet.java | UTF-8 | 1,636 | 2.3125 | 2 | [] | no_license | package com.shreeram.otweb;
import java.io.IOException;
import java.io.PrintWriter;
import javax.ejb.EJBLocalHome;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.ht... | true |
aa71d8d5cb7d59d65f9698cf0b9bf5e6837ab012 | Java | RyujiSamejima/LinqDroid | /linqdroid/src/jp/linqdroid/IteratorStatus.java | UTF-8 | 508 | 2.375 | 2 | [] | no_license | package jp.linqdroid;
/**
*
* @author samejima
*
* @param <T>
*/
public class IteratorStatus {
private final String status;
private IteratorStatus(String status) {
this.status = status;
}
public String toString() { return status; }
public static final IteratorStatus BeforeEnumeration = new IteratorStatus(... | true |
818a9339e132a1b24c14b45924585555c39bfd26 | Java | calpeyser/TournamentManager | /src/MockTrial/AddPlayers.java | UTF-8 | 349 | 2.25 | 2 | [] | no_license | package MockTrial;
import Base.Record;
import DataAction.DefaultUITableConfigAction;
public class AddPlayers extends DefaultUITableConfigAction {
@Override
protected Class<? extends Record> getRecordType() {
return Player.class;
}
@Override
public String description() {
return "Add Players to... | true |
d2661b1c2375525fc2ec5b0c2af39448f14672c7 | Java | audreysperry/HorrorMovieReview | /src/main/java/com/audreysperry/moviereview/controllers/MovieController.java | UTF-8 | 3,812 | 2.375 | 2 | [] | no_license | package com.audreysperry.moviereview.controllers;
import com.audreysperry.moviereview.models.Movie;
import com.audreysperry.moviereview.models.Review;
import com.audreysperry.moviereview.models.User;
import com.audreysperry.moviereview.repositories.MoviesRepository;
import com.audreysperry.moviereview.repositories.Rev... | true |
1dc8a6a5c758a5b6b5e78636802991bd500a45c6 | Java | raven920/CompuMovil | /ConoceTuUdeA/app/src/main/java/co/edu/udea/compumovil/gr1/conocetuudea/LoginActivity.java | UTF-8 | 5,105 | 2.109375 | 2 | [] | no_license | package co.edu.udea.compumovil.gr1.conocetuudea;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompa... | true |
e3805c522453adf102b60e18b1f23ad1519cd190 | Java | waninoko68/Week2CP2 | /src/P14_HowToBreak.java | UTF-8 | 443 | 3.171875 | 3 | [] | no_license |
import java.util.Scanner;
public class P14_HowToBreak {
public static void main(String[] args)
{
Scanner scan = new Scanner(System.in);
int x = scan.nextInt();
if(x<40)
{
System.out.println("Fail");
}
if(x>=40&&x<80)
{
System.out.... | true |