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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
6a29cbca2bfbc152b379a5e349a4fe65631f9061 | Java | yecao007/RajawaliSampleProject | /app/src/main/java/com/android/fitur/rajawalisampleproject/Renderer.java | UTF-8 | 18,033 | 1.976563 | 2 | [] | no_license | package com.android.fitur.rajawalisampleproject;
import android.content.Context;
import android.media.MediaPlayer;
import android.net.Uri;
import android.opengl.GLES20;
import android.os.PowerManager;
import android.util.Log;
import android.view.MotionEvent;
import org.rajawali3d.cameras.Camera;
import org.rajawali3d... | true |
e23effac132dbb8273e4e5675ea70c475e8957f1 | Java | rafibatam/Corona-Information | /CoronaInformation/app/src/main/java/id/rafi/healthcare/coronainformation/ringkasan_dunia/RingkasanDunia.java | UTF-8 | 8,128 | 1.96875 | 2 | [] | no_license | package id.rafi.healthcare.coronainformation.ringkasan_dunia;
import android.content.Context;
import android.content.pm.ActivityInfo;
import android.graphics.Color;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import and... | true |
76e1032abb623d2706ffb47cfb05e961787c906a | Java | jarobar435/ThreePlayerPrisoner-sDilemma | /src/main/java/pl/polsl/biai/utils/Kombinator.java | UTF-8 | 1,094 | 3.28125 | 3 | [] | no_license | package pl.polsl.biai.utils;
import java.util.ArrayList;
import java.util.Arrays;
public class Kombinator {
ArrayList<Character> arr = new ArrayList<Character>();
int arrSize = 6;
public Kombinator() {
arr.addAll(Arrays.asList('a', 'b', 'c', 'd', 'e', 'f'));
int combElemAmount = 3;
... | true |
64842387e3ee1877f480c54f7c39c0439d7ae078 | Java | wujushan/doc_Detection | /doc_Detection/app/src/main/java/com/taobao/android/mnndemo/BookRectView.java | UTF-8 | 3,803 | 2.515625 | 3 | [] | no_license | package com.taobao.android.mnndemo;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.util.Log;
import android.view.View;
import java.util.List;
public class BookRectView extends View {
pr... | true |
668ed7fd10479bc1e4d39037cf95f4a8e37a8baa | Java | VitaliiBashta/Trunk | /java/l2trunk/scripts/quests/_661_TheHarvestGroundsSafe.java | UTF-8 | 3,620 | 2.390625 | 2 | [] | no_license | package l2trunk.scripts.quests;
import l2trunk.commons.util.Rnd;
import l2trunk.gameserver.model.instances.NpcInstance;
import l2trunk.gameserver.model.quest.Quest;
import l2trunk.gameserver.model.quest.QuestState;
public final class _661_TheHarvestGroundsSafe extends Quest {
//NPC
private static final int NO... | true |
6d373cda93df69e17f28b9390467bfe4e75b76f0 | Java | irshadkhan248/JavaPythonAndroidMysqlCode | /irshad dir/kamal/demo_java/java/Mock1/Q22MT.java | UTF-8 | 258 | 2.703125 | 3 | [] | no_license | class Q22Mt{
public static void main(String... a){
System.out.println("value= "+switchit(5));
}
public static int switchit(int x){
int j=1;
switch(x){
case 1:j++;
case 2:j++;
case 3:j++;
case 4:j++;
case 5:j++;
default :j++;
}
return x+j;
}
} | true |
e6b1cf38f24221349e6d5e4ae75043e48c8d4028 | Java | Zn1291/HRManager | /src/edu/up/dsj/views/MenuFuncionario.java | UTF-8 | 1,466 | 3.578125 | 4 | [] | no_license | package edu.up.dsj.views;
import edu.up.dsj.utils.Console;
public class MenuFuncionario {
public static void isColaborador() {
int escolha = 0;
do {
System.out.println("\n========= FUNCION�RIOS =========\n");
System.out.println("1. Cadastrar novo funcion�rio" + "\n2. Listar todos os funcion�rios"
... | true |
221097b5105a7e83bee1aba2da90836e1406bb7c | Java | golan2/HelloJava | /src/main/java/file/scanner/DuplicateFiles.java | UTF-8 | 2,950 | 3.109375 | 3 | [] | no_license | package file.scanner;
import java.io.IOException;
import java.nio.file.FileVisitResult;
import java.nio.file.FileVisitor;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.attribute.BasicFileAttributes;
import java.util.ArrayList;
import java.util.HashMap;
import j... | true |
99bc96d16c041ead8bbe64f2b3f56f38089d73cb | Java | SphereMall/Android-MS-Client | /core/src/main/java/com/spheremall/core/entities/products/FunctionalName.java | UTF-8 | 267 | 1.765625 | 2 | [] | no_license | package com.spheremall.core.entities.products;
import com.spheremall.core.entities.Entity;
import com.spheremall.core.jsonapi.annotations.Type;
@Type("functionalNames")
public class FunctionalName extends Entity {
public String code;
public String title;
} | true |
439bf69774a6ba588663428c8cbf5f7a5d1b0a55 | Java | infinispan/infinispan | /core/src/test/java/org/infinispan/api/AbstractRepeatableReadIsolationTest.java | UTF-8 | 14,222 | 1.742188 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-dco-1.1"
] | permissive | package org.infinispan.api;
import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.fail;
import jakarta.transaction.RollbackException;
import jakarta.transaction.Transaction;
import jakarta.transaction.TransactionManager;
import org.infinispan.Cache;
import org.infinispan.configurati... | true |
9cab354f54f7ec2707bd4be4b396bca6ea15a0e4 | Java | verboczy/mbt-algorithms | /src/main/java/bme/mit/algorithms/MyAlgorithm.java | UTF-8 | 3,243 | 3.25 | 3 | [] | no_license | package bme.mit.algorithms;
import bme.mit.graph.Edge;
import bme.mit.graph.Graph;
import bme.mit.graph.Node;
/**
* It contains my algorithms for traversing a graph.
* @author verboczy
*
*/
public class MyAlgorithm extends Algorithm {
private StringBuilder pathBuilder;
private boolean cannotTraverse = false;
... | true |
36d79c2f0f5b10cd4d669e488ab3e9e057b90b2e | Java | ilivoo/data-entry | /src/main/java/com/ilivoo/POIUtil.java | UTF-8 | 6,722 | 2.375 | 2 | [
"Apache-2.0"
] | permissive | package com.ilivoo;
import com.google.common.base.Preconditions;
import com.google.common.base.Strings;
import com.google.common.collect.Lists;
import org.apache.commons.lang3.StringUtils;
import org.apache.poi.POITextExtractor;
import org.apache.poi.extractor.ExtractorFactory;
import org.apache.poi.hssf.usermodel.HSS... | true |
bb83cfa84207a48058bee21b3f429ee80c724e1b | Java | rsehijpal/NoteKeeper | /src/main/java/com/digital/notebook/controller/NotebookDataController.java | UTF-8 | 1,334 | 2.4375 | 2 | [] | no_license | package com.digital.notebook.controller;
import java.util.ArrayList;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
im... | true |
94beb201aac8b7496d2f973a8c5ab6e357209528 | Java | chenping1/HelloWorldX | /app/src/main/java/com/cp/helloworldx/java/JavaTest.java | UTF-8 | 1,465 | 2.953125 | 3 | [] | no_license | package com.cp.helloworldx.java;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.TreeMap;
class ParentGeneric<T> {
}
class SubClass extends ParentGeneric<String> {
}
class SubClass2<T> extends Pa... | true |
57c1f57a2052632b4381d0841e341c1a8158f4ea | Java | skarempudi/ccg-test | /app/src/main/java/com/example/srikar/magic/model/Card.java | UTF-8 | 6,395 | 3.140625 | 3 | [] | no_license | package com.example.srikar.magic.model;
import com.example.srikar.magic.MagicLog;
import com.example.srikar.magic.model.detail.CreatureDetails;
import java.util.ArrayList;
import java.util.List;
/**
* Data model for Cards in Hand
* Created by Srikar on 4/15/2016.
*/
public class Card {
private static final St... | true |
93dec107d59a06c90c212002db6e1ea7ed0b7ddc | Java | strucl113/GameHelperApp | /app/src/main/java/si/uni_lj/fe/gamehelperapp/Helmet.java | UTF-8 | 468 | 2.53125 | 3 | [] | no_license | package si.uni_lj.fe.gamehelperapp;
import java.io.Serializable;
public class Helmet implements Serializable {
String name;
int Armor;
String Addons;
public Helmet(String name, int Armor,String Addons) {
this.name = name;
this.Armor=Armor;
this.Addons=Addon... | true |
7502640307da3cc8bf5dc9805782c6b76955de7d | Java | 1024kb-pl/KJOP_OPER_LOG | /src/pl/maniaq/Zadanie3.java | UTF-8 | 429 | 3.046875 | 3 | [] | no_license | package pl.maniaq;
import java.util.Scanner;
public class Zadanie3 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("Podaj liczbę całkowitą: ");
int number = scanner.nextInt();
boolean isEqual100Or200 = number == 100 || numb... | true |
ad4b4186f76753259ae4c58ae0b093db0da55785 | Java | cvielma/ProgrammingExercises | /src/Codility/Solution.java | UTF-8 | 8,682 | 3.34375 | 3 | [
"Apache-2.0"
] | permissive | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Codility;
/**
*
*
* There is an N × N square mesh-shaped grid of wires, as shown in a figure
* below. Nodes of the grid are at points (X, Y), where X and Y are integers
* from 0 to N−1. An electric current ... | true |
4c159174cf4065df88298203357fa551ff0e8586 | Java | rezss/spring-framework-test | /src/main/java/net/rezss/springframework/model/fuel/Benzin.java | UTF-8 | 161 | 2.046875 | 2 | [] | no_license | package net.rezss.springframework.model.fuel;
public class Benzin implements Kraftstoff
{
@Override
public String toString()
{
return "Benzin";
}
}
| true |
f9442175dd01558371505b7285773aea64db2d20 | Java | MauroBassan/java_new_training | /BeGearTraining/src/base/MyFirstClass.java | UTF-8 | 1,309 | 3.203125 | 3 | [] | no_license | package base;
public class MyFirstClass {
public static void main(String[] nome) {
byte b = 10;
Byte bw =(byte)(b * b);
System.out.println("Byte wrapper : " + bw);
short s = (short) (b * 10);
Short sw =(short) ((short) s *s);
System.out.println("Short wrapper : " + sw);
int i = s * 10;
Integer iw = s * s;
System.o... | true |
e427b4ee9ef0fb4f7783ffe867e1ee861ee836cc | Java | jugo8633/InteractiveReader | /InteractiveView/src/interactive/view/json/InteractiveObject.java | UTF-8 | 40,036 | 1.507813 | 2 | [] | no_license | package interactive.view.json;
import interactive.common.Type;
import interactive.view.global.Global;
import interactive.view.webview.InteractiveWebView;
import java.util.HashMap;
import java.util.Iterator;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import android.content.... | true |
0980879d15b722c76cd3df70f087360a70c1e481 | Java | qingye/RecyclerCollectionView | /app/src/main/java/com/chris/recycler/collectionview/assistant/adapter/base/BaseRecyclerCollectionAdapter.java | UTF-8 | 8,096 | 2.46875 | 2 | [] | no_license | package com.chris.recycler.collectionview.assistant.adapter.base;
import android.database.DataSetObservable;
import android.database.DataSetObserver;
import android.view.View;
import android.view.ViewGroup;
import com.chris.recycler.collectionview.constants.ViewType;
import com.chris.recycler.collectionview.structure... | true |
e44ccb20f4ad5b744ce8703cfbe2dbc9bceb4f75 | Java | jneivasousa/Aula08 | /src/entendendofuncoesreturn.java | ISO-8859-1 | 726 | 3.265625 | 3 | [] | no_license |
public class entendendofuncoesreturn {
public static void saudacao(
String nome) {
System.out.println("Saudaes Tricolores!!!! " + nome + " !");
}
public static int anoLancamento (int numeroFilme) {
switch(numeroFilme) {
case 1:
return 1999;
case 2:
return 2002;
case 3:
return 2005;
... | true |
f3e3c90ebea74865dddee828434f6553bc5f612c | Java | Todoloki/others | /leetcode/629/3.java | UTF-8 | 1,021 | 3.25 | 3 | [] | no_license | import java.util.*;
public class Solution {
public static void main(String [] args) {
int n = 3;
int k = 1;
HashMap<String, Integer> map = new HashMap<String, Integer>();
System.out.println(findNumPairs(n, k, map));
}
public static int findNumPairs(int n, int k, HashMap<Strin... | true |
10a4709e4a20904fc9b44847ac44d5a955ff62e5 | Java | pascalkueng/eth-rse-projects | /analysis/src/test/java/ch/ethz/rse/integration/tests/BreakTest.java | UTF-8 | 388 | 2.265625 | 2 | [] | no_license | package ch.ethz.rse.integration.tests;
import ch.ethz.rse.TrainStation;
// expected results:
// TRACK_NON_NEGATIVE SAFE
// TRACK_IN_RANGE SAFE
// NO_CRASH SAFE
public class BreakTest {
public static void m1(int j) {
int tmp = 99;
TrainStation s = new TrainStation(100);
while(j > 0) {
if (tmp - j < 0)... | true |
32286883844f79bf923c9d0d9ffea8876f1fd017 | Java | TrxyyDev/LauncherLibRevo2 | /src/main/java/fr/trxyy/launcherlib/utils/PropertiesSaver.java | UTF-8 | 3,518 | 2.625 | 3 | [] | no_license | package fr.trxyy.launcherlib.utils;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.Properties;
import fr.trxyy.launcherlib.LauncherConstants;
import fr.trxyy.launcherlib.OSUtil;... | true |
dc154acd2244aad4624992d6c4248b0949518e5a | Java | YueGod/zhishang-mall | /zhishang-component/security-component/src/main/java/io/github/yuegod/zhishang/component/security/configuration/SecurityAuthenticationRestHandler.java | UTF-8 | 4,005 | 2.21875 | 2 | [] | no_license | package io.github.yuegod.zhishang.component.security.configuration;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.github.yuegod.api.security.domain.model.Login;
import io.github.yuegod.api.security.service.IUserService;
import io.github.yuegod.zhishang.basecode.web.model.Result;
import io.github.yuegod... | true |
e6f84413aadeb7f8b84675edf77604a0b1a74115 | Java | calopezf/psico | /src/ec/edu/puce/professorCheck/modelo/Persona.java | UTF-8 | 3,273 | 2.46875 | 2 | [] | no_license | package ec.edu.puce.professorCheck.modelo;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerat... | true |
2f7144889264b425edbf00d4d99936ca4c860cad | Java | WetABQ/MoneySLand | /src/main/java/money/command/LandInviteeCommand.java | UTF-8 | 5,473 | 2.265625 | 2 | [] | no_license | package money.command;
import cn.nukkit.Player;
import cn.nukkit.command.Command;
import cn.nukkit.command.CommandExecutor;
import cn.nukkit.command.CommandSender;
import cn.nukkit.command.data.CommandParameter;
import cn.nukkit.level.Position;
import money.MoneySLand;
import money.sland.SLand;
import money.utils.SLan... | true |
e54a9967d7b3147868d0c5518bd37ea140d85bef | Java | RahulTeammate/JavaTetris | /Final3/src/game/tetris/lib/pieces/Tetrimino.java | UTF-8 | 7,727 | 3.671875 | 4 | [] | no_license | package game.tetris.lib.pieces;
import game.tetris.lib.pieces.Move;
import game.tetris.lib.pieces.Rotate;
import java.awt.Color;
/**
* Tetrimino is an abstract class
* for tetrimino pieces.
*
* In the game itself, a player will control a subclass instance
* of Tetrimino. The player can set the subclass-Tetrimon... | true |
ee664c7c88b5cf0fea2afdd95bafc83f9a49433f | Java | ihmcrobotics/ihmc-open-robotics-software | /ihmc-robotics-toolkit/src/test/java/us/ihmc/robotics/TestTools.java | UTF-8 | 422 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | package us.ihmc.robotics;
import static org.hamcrest.MatcherAssert.*;
import static org.hamcrest.Matchers.*;
public class TestTools
{
public static void assertEpsilonEquals(double a, double b, double epsilon)
{
assertThat(a, closeTo(b, epsilon));
}
public static void assertEpsilonEquals(double a, d... | true |
37e93789b8eb5a2553a5912f67c06d0749e60618 | Java | gusqudgh980904/Hyunbh | /src/day0119/Homework0119.java | UHC | 1,021 | 3.15625 | 3 | [] | no_license | package day0119;
class Homework0119{
public static void main(String[] args) {
//1.
int i=20;
System.out.println(~i+1);
//2.
int temp1=10,temp2=20;
System.out.println(++temp1+temp2--);//31++temp1+temp2 ǰ -- Ǽ temp2--(19)
//++temp1+temp2--=31 //Ʒ
System.out.println("tem... | true |
f218b83ec47d7678665d1282dcbb1da7c4475f0c | Java | KarolekFM/karolekStore | /src/main/java/net/karolek/store/queries/interfaces/LimitQuery.java | UTF-8 | 200 | 1.773438 | 2 | [] | no_license | package net.karolek.store.queries.interfaces;
import net.karolek.store.queries.StoreQuery;
public interface LimitQuery<T extends StoreQuery> {
T limit(int limit);
T offset(int offset);
}
| true |
567c7478dfe96be66daa3fcbd50cfa2b30d05909 | Java | GreatMagician/clothing_for_Teens | /src/main/java/shop/web/ShopController.java | UTF-8 | 308 | 1.796875 | 2 | [] | no_license | package shop.web;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
/**
* Created by Alexander on 08.07.2017.
*/
@Controller
public class ShopController {
@RequestMapping("/shop")
public String shop(){
return "shop";
}
}
| true |
33bf6d8bcfcc6b73e4ebf9f99f3c1dc510e031cd | Java | arioch666/Udacity | /PopularMovies0/app/src/main/java/info/aalokkarnik/popularmovies0/HomeActivity.java | UTF-8 | 6,329 | 2.15625 | 2 | [] | no_license | package info.aalokkarnik.popularmovies0;
import android.app.FragmentManager;
import android.app.FragmentTransaction;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.Toast;
import java.util... | true |
28a4ffb64803a5b0a98057b3f0a690208dc2a809 | Java | michael-kim/workerbee | /workerbee-web/src/main/java/com/nexr/workerbee/web/binding/UserProfilePropertyEditor.java | UTF-8 | 640 | 2.328125 | 2 | [] | no_license | package com.nexr.workerbee.controller.binding;
import java.beans.PropertyEditorSupport;
import com.nexr.workerbee.dto.UserProfile;
public class UserProfilePropertyEditor extends PropertyEditorSupport {
public String getAsText(){
UserProfile userProfile = (UserProfile)this.getValue();
if (use... | true |
3813380285eff9de642ed03812432a3a2c218ebd | Java | Maginx/FmcEdu_Android | /app/src/main/java/com/fmc/edu/adapter/DynamicItemGridAdapter.java | UTF-8 | 2,986 | 2.1875 | 2 | [] | no_license | package com.fmc.edu.adapter;
import android.content.Context;
import android.graphics.Bitmap;
import android.util.DisplayMetrics;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowManager;
import android.widget.BaseAdapter;
import android.widget.Image... | true |
276174f428ee29cb930eea79827ed0e22184a104 | Java | itskellycheng/java-web-app | /Server/src/scale/EditOptions.java | UTF-8 | 1,686 | 3.015625 | 3 | [] | no_license | package scale;
/* JSPHDEV Project 1
* EditOption extends Thread. There are two constructors where you can pass in
* the stuff you want to edit. You can either edit the options name or
* an option’s price, and EditOption will differentiate between what you want
* to edit by which constructor you call.
* EditOp... | true |
18b25c43f63c1ef7d8bb59d8e8bc31e126326bdb | Java | Vinay288/MEDILITE | /medilite/src/sample/customerc.java | UTF-8 | 9,384 | 2.390625 | 2 | [] | no_license | package sample;
import javafx.collections.FXCollections;
import javafx.collections.ListChangeListener;
import javafx.collections.ObservableList;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializable;
import javafx.scene.Node;
import javafx.s... | true |
f4b8096ba471ca800220fae5cebdc0de703f4208 | Java | naseal97/news | /News2.0/app/src/main/java/com/example/nasea/news/adapter/NewsAdapter.java | UTF-8 | 3,148 | 2.328125 | 2 | [] | no_license | package com.example.nasea.news.adapter;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.... | true |
616f3d75a0887b4ba946d45cdc5c8d7f9a1615ed | Java | dignjun/FooTest | /hibernate_example_2/src/main/java/com/example/entity/Sample.java | UTF-8 | 663 | 2.34375 | 2 | [] | no_license | package com.example.entity;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
/**
* Created by DINGJUN on 2020.01.05.
*/
@Entity
@Table(name = "kb_sample")
public class Sample {
@Id
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy ... | true |
cedfa9249b72c44fe687ffdbb4b84cb908720a2e | Java | apache/cloudstack | /plugins/shutdown/src/main/java/org/apache/cloudstack/shutdown/ShutdownManager.java | UTF-8 | 2,835 | 2.078125 | 2 | [
"GPL-2.0-only",
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"GPL-1.0-or-later",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"LicenseRef-scancode-unknown"
] | 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 may... | true |
92d8a092913c18df6c78e7409f982a7b947afd97 | Java | kwlee0220/planet | /src.transport/etri/planet/transport/TransportMessage.java | UTF-8 | 1,828 | 2.578125 | 3 | [] | no_license | package etri.planet.transport;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.nio.ByteBuffer;
import planet.transport.Connection;
/**
*
* @author Kang-Woo Lee (ETRI)
*/
public abstract class TransportMessage {
public TransportHeader m_header;
public ab... | true |
5e3a7e6a78f9c9502a0f5e935cee8c516728a56e | Java | immortalcatz/BetterEnhancement | /src/main/java/com/watschman/betterenhancement/proxy/CommonProxy.java | UTF-8 | 1,133 | 2.109375 | 2 | [] | no_license | package com.watschman.betterenhancement.proxy;
import com.watschman.betterenhancement.BetterEnhancement;
import com.watschman.betterenhancement.blocks.BlockInit;
import com.watschman.betterenhancement.handler.GuiHandler;
import com.watschman.betterenhancement.items.ItemInit;
import com.watschman.betterenhancement.tile... | true |
6caf752e35dcca5112e94b05c3f4384244ecf54a | Java | ksNing/moodle-android | /app/src/main/java/com/example/ks/moodle/StartPhoto.java | UTF-8 | 4,577 | 2.421875 | 2 | [] | no_license | package com.example.ks.moodle;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.media.Image;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.provider.MediaStore;
import android.support.v4.content.FileProvider;... | true |
6c099984439f239cd581b20432ba08b97247c9db | Java | wuqihui0317/LeetCode | /src/twenty_OneToFourty/SwapNodesInPairs.java | UTF-8 | 1,969 | 4.125 | 4 | [] | no_license | package twenty_OneToFourty;
/**
* @author wub
* LeetCode
* 24.Swap Nodes in Pairs
* 每两个一组 交换两个结点
* 不能只是单纯的改变节点内部的值,而是需要实际的进行节点交换。
*/
public class SwapNodesInPairs {
/*
//递归
public ListNode swapPairs(ListNode head) {
//没有结点或者只有一个结点
if (head == null || head.next == null)
retu... | true |
b9d35709b591ea0ece66f23ddcfa9f637add8be6 | Java | loicortola/training-advanced-java | /common/src/main/java/com/loicortola/training/archiveaggregator/common/exception/NotFoundException.java | UTF-8 | 617 | 2.0625 | 2 | [] | no_license | /*
Copyright © 2014 by eBusiness Information
All rights reserved. This source code or any portion thereof
may not be reproduced or used in any manner whatsoever
without the express written permission of eBusiness Information.
*/
package com.loicortola.training.archiveaggregator.common.exception;
/**
* Created by Loïc... | true |
38f8cf681698df123fc02e006bce93452238e45e | Java | IlnazNazimov/Restoran | /backend/src/main/java/ru/innopolis/stc27/maslakov/enterprise/project42/entities/order/Order.java | UTF-8 | 979 | 2.53125 | 3 | [] | no_license | package ru.innopolis.stc27.maslakov.enterprise.project42.entities.order;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;
import ru.innopolis.stc27.maslakov.enterprise.project42.entities.food.Food;
import ru.innopolis.stc27.maslakov.enterprise.project42.entities.use... | true |
41f1a05547630d2c67b38524c584ffd398fce51d | Java | RomanM224/Task-9-Spring-Thymeleaf-Decompose- | /university/src/test/java/com/maistruk/university/controller/CourseControllerTest.java | UTF-8 | 7,976 | 2.1875 | 2 | [] | no_license | package com.maistruk.university.controller;
import static com.maistruk.university.controller.CourseControllerTest.TestData.course;
import static com.maistruk.university.controller.CourseControllerTest.TestData.course2;
import static com.maistruk.university.controller.CourseControllerTest.TestData.courseDto;
import sta... | true |
a974576580cd78e4850b177c69524dc8370fd164 | Java | rvgggarcia/JAVA | /guias/src/cl/curso/java/guia_10/Circulo.java | UTF-8 | 915 | 3.484375 | 3 | [] | no_license | package cl.curso.java.guia_10;
public class Circulo extends FiguraGeometrica {
private double radio;
public Circulo() {
}
public Circulo(double radio) {
super();
this.radio = radio;
}
public double getRadio() {
return radio;
}
public void setRadio(double radio) {
this.radio = radio;
}
publi... | true |
46efc5cd0c3ce6a6e37ee29f444bbab991121c14 | Java | enterstudio/cdma | /java/engines/org.cdma.engine.sql/tags/sql-0.0.2/src/main/java/org/cdma/engine/sql/utils/sampling/SamplingTypeOracle.java | UTF-8 | 4,836 | 2.421875 | 2 | [] | no_license | //******************************************************************************
// Copyright (c) 2011 Synchrotron Soleil.
// The CDMA library 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; either version 2... | true |
5d178293273d46b1bd038a098c5d451835956b7f | Java | STAMP-project/dspot-experiments | /benchmark/training/com/vaadin/tests/components/grid/basicfeatures/escalator/EscalatorBasicsTest.java | UTF-8 | 2,216 | 2.484375 | 2 | [] | no_license | package com.vaadin.tests.components.grid.basicfeatures.escalator;
import com.vaadin.tests.components.grid.basicfeatures.EscalatorBasicClientFeaturesTest;
import java.io.IOException;
import org.junit.Assert;
import org.junit.Test;
public class EscalatorBasicsTest extends EscalatorBasicClientFeaturesTest {
@Test
... | true |
6cac91ea9eb30d556c389e7643308964387c60f7 | Java | r99r99r99/springmvc | /src/com/sdocean/frame/util/ExcelBean.java | UTF-8 | 1,523 | 2.5 | 2 | [] | no_license | package com.sdocean.frame.util;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.List;
public class ExcelBean {
private String sheetName;
private String fileName;
String[] title;
List<String[]> data;
Integer[] columnWidth;
public ExcelBean(){
}
publi... | true |
1ef9f5af546a430619f1edc57b8a38b012186416 | Java | darkbin432/WebFinalWork | /persistence/src/main/java/com/hznu/lwb/persistence/UserDao.java | UTF-8 | 458 | 1.84375 | 2 | [] | no_license | package com.hznu.lwb.persistence;
import com.hznu.lwb.model.User;
/**
* UserDao
*
* @author xuzou
* @date 8/5/16
* @copyright: copyright @ hznuTech 2016
*/
public interface UserDao {
int insert(User model);
int getMaxId();
User getUser(String username);
void updateInfo(User user);
void u... | true |
fd07a6ea849675c60fcac6eb0f66038b34e248bc | Java | EbersonSantos/biblioteca-java-spring-mvc | /src/main/java/br/edu/fib/bibliotecajavamvc/repository/AutorRepository.java | UTF-8 | 465 | 2.03125 | 2 | [] | no_license | package br.edu.fib.bibliotecajavamvc.repository;
import br.edu.fib.bibliotecajavamvc.model.Autor;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
public interface AutorRepository extends JpaRepo... | true |
78f5fc5f3aca7f95698605934838bf37e33176da | Java | hanyilou123/LeetCode-Extension | /306-Additive-Number/solution.java | UTF-8 | 995 | 3.1875 | 3 | [] | no_license | public class Solution {
public boolean isAdditiveNumber(String num) {
if(num==null || num.length()<2)
return false;
int len = num.length();
for(int i=1; i<=len/2; i++)
{
for(int j=1; Math.max(i, j)<=len-i-j; j++)
{
if(isValid(i, j, ... | true |
6227a545d32505b19fd31d3d91f9e711305ebfbd | Java | weidongxu-microsoft/azure-java-sdk-samples | /src/main/java/com/azure/management/vanilla/network/VpnGatewaysClient.java | UTF-8 | 22,014 | 1.617188 | 2 | [
"MIT"
] | permissive | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.management.vanilla.network;
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceClient;
import com.azure.core.a... | true |
4fcdb7f820b7181a4d25afb97fb1d0902da3d419 | Java | mjuOwnProjects/Proj02_SapperSwing | /src/pl/sda/wwa5/homework/myExamples/gui/MinesweeperWindowsCreator.java | UTF-8 | 601 | 2.5 | 2 | [] | no_license | package pl.sda.wwa5.homework.myExamples.gui;
import javax.swing.*;
public class MinesweeperWindowsCreator {
public static void run(final JFrame jFrame, final int width, final int height) {
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
... | true |
f4eb264425ab8c5749c91338056f90527d65f738 | Java | League-level3-student/level3-module1-Louis02 | /src/_03_IntroToStacks/Test.java | UTF-8 | 749 | 3.359375 | 3 | [] | no_license | package _03_IntroToStacks;
import java.util.Random;
import javax.swing.JOptionPane;
public class Test {
public static void main(String[] args) {
String input = JOptionPane.showInputDialog("Enter a number");
int num = Integer.parseInt(input);
int[] numbers = new int[num];
int smallest = numbers[0];
int lar... | true |
6e39be1ee9600aabd61c1fe02c1c324aab685bf1 | Java | lobzison/java-stuff | /src/Distance.java | UTF-8 | 344 | 3.28125 | 3 | [
"MIT"
] | permissive | public class Distance {
public static void main(String[] args){
double x = Double.parseDouble(args[0]);
double y = Double.parseDouble(args[1]);
double dist = Math.sqrt(Math.pow(x, 2)+ Math.pow(y, 2));
System.out.println("Distance between (0, 0) and (" + args[0] + ", " + args[1] + "... | true |
793e5b47d0eb3e02256b0d6b944442d2f11b1f98 | Java | rkroshan/SAC-APP | /app/src/main/java/com/rajatv/surajv/roshank/sac/tcf2019/TechnicalEvents/TechnicalEvents.java | UTF-8 | 672 | 2.625 | 3 | [] | no_license | package com.rajatv.surajv.roshank.sac.tcf2019.TechnicalEvents;
public class TechnicalEvents {
String eventname, eventnameabout;
public TechnicalEvents(String eventname, String eventnameabout) {
this.eventname = eventname;
this.eventnameabout = eventnameabout;
}
// SETTER
public vo... | true |
2c71acef78d7e658ab45ea5e8d0b4562987e07eb | Java | lixby/UDP_VideoTransmissionServer | /Apollo-Android-v37/app/src/main/java/apollo/encoder/WebmMediaMuxer.java | UTF-8 | 4,759 | 2.359375 | 2 | [] | no_license | package apollo.encoder;
import android.media.MediaCodec;
import android.media.MediaFormat;
import android.media.MediaMuxer;
import android.os.Environment;
import android.util.Log;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.ByteBuffer;
/**
* Created by dongfeng ... | true |
18cd3f44125d221b93a0fc3d799388c9e71561b9 | Java | AlexH-037/SchuelerManagement | /src/de/alex/management/types/Lehrer.java | UTF-8 | 307 | 2.140625 | 2 | [] | no_license | package de.alex.management.types;
import java.util.ArrayList;
public class Lehrer {
public ArrayList<String> fachKlasseCombo = new ArrayList<String>();
public String name;
public ArrayList<String> getFachKlasseCombo() {
return fachKlasseCombo;
}
public String getName() {
return name;
}
}
| true |
af907710d56571c6a426e6c9d60ce6349dc8470c | Java | DiegoCanepa98/RepoClasesPracticas | /Clase02M-PracticaJava/src/Ejercicio04/Fraccion.java | UTF-8 | 2,569 | 3.609375 | 4 | [] | no_license | package Ejercicio04;
public class Fraccion {
private int numerador;
private int denominador;
public Fraccion(int n, int d) {
this.setDenominador(n);
this.setDenominador(d);
}
public Fraccion multiplicar(Fraccion f) {
setNumerador(numerador * f.getNumerador());
setD... | true |
2b75b323caa587104dc7d65a43995eb73ae5bb9a | Java | andresmore/onlinerecsys | /src/edu/uniandes/privateRecsys/onlineRecommender/utils/RandomGeneratorThread.java | UTF-8 | 1,139 | 3.015625 | 3 | [] | no_license | package edu.uniandes.privateRecsys.onlineRecommender.utils;
import java.util.concurrent.BlockingQueue;
import java.util.logging.Logger;
public class RandomGeneratorThread extends Thread {
private BlockingQueue<Double> randNumbers;
private UncommonsRandomGeneratorAdaptor generator;
private final static int MAX_Q... | true |
b934278ad22c3177b34ca13ca17a7ad32839c625 | Java | walker1232/Letsplay_Project_Template | /src/main/java/com/play/web/sbj/Subject.java | UTF-8 | 208 | 1.640625 | 2 | [] | no_license | package com.play.web.sbj;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;
import lombok.Data;
public class Subject {
private String sbjSeq, sbjName;
}
| true |
36f12a140754fc647c36f289890685efbeb1544a | Java | GetSI-Sby/get-otto | /app/src/main/java/com/ride/me/utils/MenuSelector.java | UTF-8 | 142 | 1.78125 | 2 | [] | no_license | package com.ride.me.utils;
/**
* Created by David Studio on 10/29/2017.
*/
public interface MenuSelector {
void selectMenu(int position);
}
| true |
d3f5b27b67c35da47fe0f047b6ff22df595f75b2 | Java | xuebenjiao/InterfaceCommunication | /app/src/main/java/com/example/binddemo/BaseActivity.java | UTF-8 | 813 | 1.898438 | 2 | [] | no_license | package com.example.binddemo;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import android.support.v4.util.ArrayMap;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;
import com.tencent.mmkv.MMKV;
import java.util.HashMap;
imp... | true |
19f1d7e7027559911f91532225e817a7fd6939ab | Java | paulchen/osm-marker | /backend/src/main/java/at/rueckgr/osm/marker/rest/controller/RestExceptionHandler.java | UTF-8 | 1,251 | 2.265625 | 2 | [] | no_license | package at.rueckgr.osm.marker.rest.controller;
import at.rueckgr.osm.marker.rest.dto.ErrorResponse;
import at.rueckgr.osm.marker.rest.dto.ReturnCode;
import at.rueckgr.osm.marker.rest.dto.StatusDTO;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.... | true |
7e09745e7ae5cd6bb9b27c62de8ea1fed66b7d11 | Java | wangsy0101/spring-boot-debug | /spring-boot-02/src/main/java/cn/wangsy/annotation/ConditionalOnMyConfiguration.java | UTF-8 | 370 | 1.789063 | 2 | [] | no_license | package cn.wangsy.annotation;
import org.springframework.context.annotation.Conditional;
import java.lang.annotation.*;
/**
* Created by wangsy on 2021/7/8
*/
@Target({ ElementType.TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Conditional(OnMyConfigurationCondition.class)
public @in... | true |
d049360cfccf1e07706882c069410c7150426cfc | Java | zhangxf14/IvrJack.RU01.Demo | /IvrJack.RU01.Demo/src/com/ivrjack/ru01/demo/EpcRecord.java | UTF-8 | 311 | 2.046875 | 2 | [] | no_license | package com.ivrjack.ru01.demo;
/**
* Created by ChenRong1 on 2015/9/25 0025.
*/
public class EpcRecord {
public int no;
public String epc;
public int count;
public EpcRecord(int no, String epc, int count) {
this.no = no;
this.epc = epc;
this.count = count;
}
}
| true |
9158e4086aeab195c2e95005e2052bf88e2b2334 | Java | cisenor1/eclipses | /comp139Labs/src/Lab3/MemberListTest.java | UTF-8 | 2,398 | 3.359375 | 3 | [] | no_license | package Lab3;
import static org.junit.Assert.assertTrue;
import org.junit.Before;
import org.junit.Test;
public class MemberListTest {
Worker fred;
Worker sam;
Worker joe;
Worker pete;
Worker george;
LinkedList union;
@Before
public void setUp() throws Exception {
fred = new Worker("Fred", "Mainten... | true |
9c1f49acaef8c237ba7a46d499b5f5de3298ab24 | Java | Tortel/invaders | /src/Invaders/Runner.java | UTF-8 | 778 | 2.828125 | 3 | [] | no_license | package Invaders;
import javax.swing.JFrame;
public class Runner {
public static void main(String[] args){
JFrame dots = new JFrame("Invaders");
dots.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//Thread to update UI
final MainPanel temp=new MainPanel();
updaterThread painter=new updaterThread... | true |
c9e5d26e11a09a52f3f89f10c7a673157de714dc | Java | kaspercphbusiness/PicoOrm | /src/main/java/MicroShop/entities/Product.java | UTF-8 | 313 | 2.234375 | 2 | [] | no_license | package MicroShop.entities;
import java.util.List;
public class Product {
private Integer price;
public Integer getPrice(){return price;}
public void setPrice(Integer newVal){price = newVal;}
private String name;
public String getName(){return name;}
public void setName(String newVal){name = newVal;}
}
| true |
c27697da8203e61cbd76ec3508f1a510d3a667fd | Java | vittot/ing-sw-2019-20 | /src/main/java/game/controller/commands/servercommands/ChoosePowerUpUsed.java | UTF-8 | 1,180 | 2.609375 | 3 | [] | no_license | package game.controller.commands.servercommands;
import game.controller.commands.ServerGameMessage;
import game.controller.commands.ServerGameMessageHandler;
import game.controller.commands.ServerMessageHandler;
import game.model.CardPower;
/**
* notify the correct usage of a power-up card and his effect completion
... | true |
21f90ba5403686de8774cadf317427a13a1adeb1 | Java | smit-dam/Hibernate | /HibernateDemo/src/StoredProcCall.java | UTF-8 | 532 | 2.46875 | 2 | [] | no_license | import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
import org.hibernate.query.Query;
public class StoredProcCall {
public static void main(String[] args) {
SessionFactory sf = new Configuration().configure().buildSessionFactory();
Session session =... | true |
d23e70ea39b260f4805557772ad19182fdc32e49 | Java | kodeartisan/lapakbekas | /app/src/main/java/com/qodr/lapakbekas/http/utils/HttpUtils.java | UTF-8 | 1,249 | 2.28125 | 2 | [] | no_license | package com.qodr.lapakbekas.http.utils;
import com.qodr.lapakbekas.AppConstants;
import com.qodr.lapakbekas.http.LifeSubscription;
import com.qodr.lapakbekas.http.Stateful;
import com.qodr.lapakbekas.utils.NetworkUtils;
import com.qodr.lapakbekas.utils.ToastUtils;
import rx.Observable;
import rx.Subscription;
import ... | true |
dbb615beabd0f981b41c952aebaf06fafc86c214 | Java | oracle/weblogic-monitoring-exporter | /wls-exporter-core/src/main/java/com/oracle/wls/exporter/ParserActions.java | UTF-8 | 417 | 1.75 | 2 | [
"Apache-2.0",
"UPL-1.0"
] | permissive | // Copyright (c) 2020, Oracle and/or its affiliates.
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
package com.oracle.wls.exporter;
public interface ParserActions {
boolean isStart(String line);
ParserState addHeader(String line);
ParserState addData... | true |
ae2ed890688eb42bb3bdeecd9bfd874b34dabedc | Java | INL/BlackLab | /engine/src/main/java/nl/inl/blacklab/forwardindex/TermsSegmentReader.java | UTF-8 | 611 | 2.5 | 2 | [
"Apache-2.0"
] | permissive | package nl.inl.blacklab.forwardindex;
import nl.inl.blacklab.search.indexmetadata.MatchSensitivity;
/**
* Read terms from an index segment.
*/
public interface TermsSegmentReader {
/**
* Get the term string for a term id.
*
* @param id term id
* @return term string
*/
String get(in... | true |
7700d1e2eefd73321a403251f077f74641ae3ad9 | Java | devilmancrybaby/JavaCoding | /20191028/src/com/banyuan/test/OutScore.java | UTF-8 | 827 | 2.375 | 2 | [] | no_license | package com.banyuan.test;
import java.sql.*;
/**
* @author huangmingyang
*/
public class OutScore {
public static void outScore(String username,int score){
String url="jdbc:mysql://localhost:3306/User";
String name="root";
String pwd="Root_123";
try {
Class.forName("c... | true |
ba016031c11c05e3e0cba1f7f154e5113ef107b7 | Java | thaihoc215/EnglishOnlineServlet | /ToeicOnline/toeic-core-service/src/main/java/com/hnthoc/core/service/UserService.java | UTF-8 | 358 | 2 | 2 | [] | no_license | package com.hnthoc.core.service;
import com.hnthoc.core.dto.UserDTO;
public interface UserService {
/**
* check does user is exist
* @param userDTO
* @return
*/
UserDTO isUserExist(UserDTO userDTO);
/**
* find role of an user
* @param userDTO
* @return
*/
UserD... | true |
ddc9b011591a997df68e82add109f58bb3d56ffb | Java | flywind2/joeis | /src/irvine/oeis/a024/A024358.java | UTF-8 | 717 | 2.765625 | 3 | [] | no_license | package irvine.oeis.a024;
import irvine.math.group.PolynomialRing;
import irvine.math.polynomial.Polynomial;
import irvine.math.z.Integers;
import irvine.math.z.Z;
import irvine.oeis.Sequence;
/**
* A024358 Sum of the sizes of binary subtrees of the perfect binary tree of height <code>n</code>.
* @author Sean A. Ir... | true |
ca7fc2ae9d1915a9d03fcfe1311ae407af33a329 | Java | HarrisLim/Algorithms | /Baekjoon/N10869_사칙연산.java | UTF-8 | 1,021 | 3.734375 | 4 | [] | no_license | /*
[사칙연산]
문제: 두 자연수 A와 B가 주어진다. 이 때, A+B, A-B, A*B, A/B(몫), A%B(나머지)를 출력하는 프로그램을 작성하시오.
입력: 두 자연수 A와 B가 주어진다. (1 ≤ A, B ≤ 10,000)
출력: 첫째 줄에 A+B, 둘째 줄에 A-B, 셋째 줄에 A*B, 넷째 줄에 A/B, 다섯째 줄에 A%B를 출력한다.
*/
import java.io.*;
class Main {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
vo... | true |
6c55e325f2da3240590b3c7b4b93cb276865dd03 | Java | liangqz95/tmall_ssm | /src/main/java/com/lqz/tmall_ssm/service/impl/UserServiceImpl.java | UTF-8 | 1,774 | 2.3125 | 2 | [] | no_license | package com.lqz.tmall_ssm.service.impl;
import com.lqz.tmall_ssm.mapper.UserMapper;
import com.lqz.tmall_ssm.pojo.User;
import com.lqz.tmall_ssm.pojo.UserExample;
import com.lqz.tmall_ssm.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
... | true |
a946962d88d0db48091044d4485ff445c8b4c7a4 | Java | BROAD-ECOS/broad-ecos | /development/src/broadecos-api/src/main/java/br/ufjf/nenc/broadecos/api/experience/Verb.java | UTF-8 | 277 | 1.789063 | 2 | [] | no_license | package br.ufjf.nenc.broadecos.api.experience;
import lombok.*;
import java.net.URI;
import java.util.Map;
@Getter
@Setter
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@AllArgsConstructor
public class Verb {
private URI id;
private Map<String, String> display;
}
| true |
864e12c90b871b4a3299b5895b0eb222b561cf51 | Java | winglight/orderonline | /war/src/main/java-order/com/omdasoft/orderonline/gwt/order/client/orderSave/plugin/OrderSaveConstants.java | UTF-8 | 490 | 1.671875 | 2 | [] | no_license | /**
*
*/
package com.omdasoft.orderonline.gwt.order.client.orderSave.plugin;
/**
* @author nicho
* @since 2012年2月14日 10:26:30
*/
public abstract class OrderSaveConstants {
// Plugin name
public static final String PLUGIN_ORDERSAVE = "PLUGIN_ORDERSAVE";
// The menu and editor of finding user.
... | true |
d9a60b448fb2bdee05feff466e959680136a41da | Java | dsagithub/videoshare-project | /videoshare-android/src/edu/upc/eetac/dsa/dsaqp1314g2/videoshare/android/api/VideosCollection.java | UTF-8 | 652 | 2.15625 | 2 | [] | no_license | package edu.upc.eetac.dsa.dsaqp1314g2.videoshare.android.api;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class VideosCollection {
private Map<String, Link> links = new HashMap<String, Link>();
private List<Videos> videos = new ArrayList<Videos>();
... | true |
36971045b0784cd97669e34f64a8dd3741dcac4b | Java | imananoosheh/Asset-Lab-Project03 | /Employee.java | UTF-8 | 2,520 | 3.3125 | 3 | [] | no_license | import java.util.ArrayList;
/**
*
* @author Aashka Prajapati
* @author Iman Anooshehpour
*
* This is parent class for Manager and SalesPerson
*
*/
public abstract class Employee {
/**
* Private variable declarations
*/
private String position;
private int accessLevel;
private... | true |
80da26f8ae2c669bf04abcdd6fb9d1faff1dd297 | Java | seancheer/leetcode_practise | /src/main/java/org/seancheer/greedy/_316RemoveDuplicateLetters.java | UTF-8 | 6,089 | 4.09375 | 4 | [] | no_license | package org.seancheer.greedy;
/**
* Given a string s, remove duplicate letters so that every letter appears once and only once. You must make sure
* your result is the smallest in lexicographical order among all possible results.
* <p>
* <p>
* <p>
* Example 1:
* <p>
* Input: s = "bcabc"
* Output: "abc"
* Exa... | true |
7b1a18ebb21cedb2948dba0debacc7b65da00209 | Java | maltimor/GenericRest | /src/main/java/es/maltimor/genericRest/GenericFilter.java | ISO-8859-10 | 3,625 | 2.84375 | 3 | [
"MIT"
] | permissive | package es.maltimor.genericRest;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class GenericFilter {
public static final String ERROR = "***ERROR***";
public static List<String> parseFilter(String text) {
if (text==null||text.equals("")) retu... | true |
62213dfbdb16e3de58aeb79bcf1748043b114036 | Java | 1804Apr23Java/poker-app | /PokerApp/src/main/java/com/revature/beans/Stats.java | UTF-8 | 1,566 | 2.640625 | 3 | [
"MIT"
] | permissive | package com.revature.beans;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;
@Entity
@Table(name = "ST... | true |
bf984445c95e9a1687b6871bbd029e96a586ac8c | Java | KondayyaDevarakonda/JavaAndDocker | /product-api/src/main/java/com/epos/service/IProductService.java | UTF-8 | 405 | 1.953125 | 2 | [] | no_license | package com.epos.service;
import java.util.List;
import org.springframework.http.ResponseEntity;
import com.epos.model.Product;
public interface IProductService {
List<Product> GetProducts();
Product GetProductByID(Long productId);
Product CreateProduct(Product product);
ResponseEntity<?> DeleteProd... | true |
8d0622d1b0181f47e357ef85b1d5c7d065339841 | Java | fengg5241/aircon | /bizproject/src/main/java/com/panasonic/b2bacns/bizportal/efficiency/vo/EfficiencyRatingResponseVO.java | UTF-8 | 2,009 | 2.09375 | 2 | [] | no_license | /**
*
*/
package com.panasonic.b2bacns.bizportal.efficiency.vo;
import com.fasterxml.jackson.annotation.JsonIgnore;
/**
* @author Narendra.Kumar
*
*/
public class EfficiencyRatingResponseVO {
@JsonIgnore
private String groupId;
private String groupName;
private Integer treesCount;
@JsonIgn... | true |
c4abc6cfed5391552b579f116368ea2f10042729 | Java | levisjani/my-lib | /java/j2ee/jsp/ComplexJSP/utils/General.java | UTF-8 | 4,095 | 3.109375 | 3 | [] | no_license | import java.sql.*;
import java.util.*;
public class General {
private static List<Item> items;
static {
initItems();
}
public static List<Item> itemsList() throws SQLException {
return items;
/*
Connection conn = null;
PreparedStatement st = nu... | true |
43c3658f96ae09d23aab7c48c66e4070a6306490 | Java | ntsako-dev/TPProject1 | /SchoolPicker/src/main/java/SchoolPicker/Services/Impl/ParentServiceImpl.java | UTF-8 | 871 | 2.53125 | 3 | [] | no_license | package SchoolPicker.Services.Impl;
import SchoolPicker.Domain.Parent;
import SchoolPicker.repositories.ParentRepository;
/**
* Created by Kino on 2017-08-14.
*/
public class ParentServiceImpl
{
private static ParentServiceImpl service = null;
ParentRepository repository = (ParentRepository) Pa... | true |
f78fa1855f827b048295ae5a5cbecf44ac3696e3 | Java | sohailbud/famous | /app/src/main/java/com/example/android/famous/util/parse/ParseHelper.java | UTF-8 | 1,680 | 2.34375 | 2 | [] | no_license | package com.example.android.famous.util.parse;
import com.parse.ParseException;
import com.parse.ParseObject;
import com.parse.ParseQuery;
import com.parse.ParseRelation;
import com.parse.ParseUser;
import java.util.ArrayList;
import java.util.List;
/**
* Created by Sohail on 10/30/15.
*/
public class ParseHelper ... | true |
ea280274fe71ddf585ee9b0386b8be9f6eb4df25 | Java | LeeKyoungIl/illuminati | /sample/illuminati-gatekeeper/src/main/java/me/phoboslabs/illuminati/gatekeeper/api/service/RestApiService.java | UTF-8 | 1,299 | 1.835938 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package me.phoboslabs.illuminati.gatekeeper.api.service;
import me.phoboslabs.illuminati.gatekeeper.api.controller.param.JvmRequestParam;
import me.phoboslabs.illuminati.gatekeeper.api.decorator.ApiDecorator;
import me.phoboslabs.illuminati.gatekeeper.api.decorator.ApiJsonDecorator;
import org.springframework.stereoty... | true |
599727edeead592659531ab6b30f0a615a099a35 | Java | AnthonyJHolmes/DatabaseConnection | /src/databaseconnection/DatabaseConnection.java | UTF-8 | 1,756 | 3.1875 | 3 | [] | no_license | package databaseconnection;
/**
*
* @author ajh3
*/
import java.sql.*; // for standard JDBC programs
import java.math.*; // for BigDecimal and BigInteger support
public class DatabaseConnection {
//Just some methods i will update to show how to return/insert and delete info
public void insert... | true |
56820942b3852bc528027f8e39ac93a9bdc2ea3c | Java | bradsdavis/windup-lab-samples | /sample-app-websphere/websphere-app-ejb/src/main/java/com/rhc/booking/services/NotificationServiceLocal.java | UTF-8 | 193 | 1.742188 | 2 | [] | no_license | package com.rhc.booking.services;
import javax.ejb.EJBLocalObject;
public interface NotificationServiceLocal extends EJBLocalObject {
public void sendNotification(String notification);
}
| true |
67fa8ec3a5feff46b442b0c2553ac4c2641dcc53 | Java | XxBrayan7xX/EjerciciosDeLibro | /Alumno.java | UTF-8 | 850 | 3.15625 | 3 | [] | no_license |
package Libro.cap02.interfaces;
public class Alumno implements Comparable<Alumno>
{
private String nombre;
private int edad;
private double notaPromedio;
public Alumno(String n, int e, double np)
{
this.nombre = n;
this.edad = e;
this.notaPromedio = np;
... | true |