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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
5ef32bbefe746e281e1ebd45f05894c87ecbe5a2 | Java | janie177/MGApocalypse | /src/main/java/com/minegusta/mgapocalypse/traps/TrapManager.java | UTF-8 | 820 | 2.484375 | 2 | [] | no_license | package com.minegusta.mgapocalypse.traps;
import com.google.common.collect.Maps;
import org.bukkit.Location;
import org.bukkit.block.Sign;
import org.bukkit.entity.Player;
import java.util.concurrent.ConcurrentMap;
public class TrapManager {
public static ConcurrentMap<Location, Long> cooldown = Maps.newConcurr... | true |
5576acfd6b45d64334b1db50257555e7114aa730 | Java | cbazalar/PROYECTOS_PROPIOS | /nssicc/nssicc_web/src/main/java/biz/belcorp/ssicc/web/scsicc/action/ConsultaCOMComisionGerenteRegionSearchAction.java | UTF-8 | 5,531 | 1.632813 | 2 | [] | no_license | package biz.belcorp.ssicc.web.scsicc.action;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import org.apache.commons.lang.StringUtils;
import biz.be... | true |
f2eb2bde7774888852862b73e07fe1efc6d740ca | Java | mondhs/spantus | /externals/recognition/spnt-dtw-recognition/src/main/java/org/spantus/externals/recognition/services/CorpusServiceHelperImpl.java | UTF-8 | 13,060 | 2.109375 | 2 | [] | no_license | package org.spantus.externals.recognition.services;
import java.awt.Point;
import java.text.MessageFormat;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import org.apache.commons.math3... | true |
50602a28c0702c1561ca45a231bde7a281702e0a | Java | Greytsu/TP_Java | /src/tp5/Polygone.java | UTF-8 | 2,402 | 3.40625 | 3 | [] | no_license | package tp5;
import tp5.exceptions.SommetNul;
import tp5.interfaces.Forme;
import java.util.ArrayList;
import java.util.Objects;
public class Polygone implements Forme {
protected ArrayList<Point> points;
private int cotes;
//CTOR----------------------------------------------------------------------
... | true |
52797599c5802d77900da0d5ba9441b31d5e00c5 | Java | Riteshraw/AnswerandWin | /app/src/main/java/com/nubiz/answerandwin/activity/SignUpActivity.java | UTF-8 | 8,755 | 2.109375 | 2 | [] | no_license | package com.nubiz.answerandwin.activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.text.Editable;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.view.View;
import android.view.... | true |
f583af4f7f7e336b05cdb65df0ed75bd4fd8dc19 | Java | chaluja7/dp-nss | /dp-nss-services/dp-nss-services-api/src/main/java/cz/cvut/dp/nss/services/route/RouteType.java | UTF-8 | 780 | 2.59375 | 3 | [] | no_license | package cz.cvut.dp.nss.services.route;
import cz.cvut.dp.nss.services.common.DomainCode;
/**
* Existujici prepravni prostredky.
*
* @author jakubchalupa
* @since 24.11.14 - 12.12.16
*/
public enum RouteType implements DomainCode {
/**
* tramvaj
*/
TRAM(0),
/**
* metro
*/
MET... | true |
51f5a5c50e280f1be0bb981ff5c91294ac241cc1 | Java | demoned/lib_statusbar | /lib_statusbar/src/main/java/com/bojun/bar/StatusDelegate.java | UTF-8 | 4,701 | 2.1875 | 2 | [] | no_license | package com.bojun.bar;
import android.app.Activity;
import android.app.Dialog;
import android.content.res.Configuration;
import android.os.Build;
import android.support.v4.app.DialogFragment;
import android.support.v4.app.Fragment;
import android.view.Surface;
public class StatusDelegate implements Runnable {
pr... | true |
28de6be9a435e038b86247b11c90c6823dc5fdee | Java | bablookumar15/sms | /src/main/java/com/sms/controller/SMSController.java | UTF-8 | 25,174 | 1.945313 | 2 | [] | no_license | package com.sms.controller;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import j... | true |
d13268167e0bd57419df84249171349ba038acd6 | Java | Aziz1310/NowWhere | /app/src/main/java/com/maher/nowhere/RestaurantProfileActivity/fragments/RestaurantPagerAdapter.java | UTF-8 | 2,045 | 2.21875 | 2 | [] | no_license | package com.maher.nowhere.RestaurantProfileActivity.fragments;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;
import com.maher.nowhere.ProfileFriendActivity.fragments.photos.PhotosFragment;
impor... | true |
e8087fcd1d7bd14bc14097d676a47d289b64e9e3 | Java | ZzzYp/algorithm011-class01 | /Week_01/189.旋转数组.java | UTF-8 | 2,402 | 3.78125 | 4 | [] | no_license | /*
* @lc app=leetcode.cn id=189 lang=java
*
* [189] 旋转数组
*/
// @lc code=start
class Solution {
public void rotate(int[] nums, int k) {
//解法3:旋转数组
//思路:先旋转整个数组,然后再旋转前k个数,然后再旋转后n-k个数
//前提,旋转k次数组,相当于将k % nums.length个尾部元素放到了数组头部,剩下的数组移到数组后部
k = k % nums.length;
rotateNum(nu... | true |
89a35af2771817bc158e60ecfa559055d1595b94 | Java | JinMar/ComputerVision | /src/main/java/cz/tul/bussiness/workers/enums/NoiseReducerEnum.java | UTF-8 | 401 | 2.171875 | 2 | [
"BSD-3-Clause"
] | permissive | package cz.tul.bussiness.workers.enums;
/**
* Created by Bc. Marek Jindrák on 17.10.2016.
*/
public enum NoiseReducerEnum {
SIMPLEAVERAGING("simpleaveraging"),
MEDIAN("median"),
ROTATINGMASK("rotatingmask");
private String reducerName;
NoiseReducerEnum(String key) {
this.reducerName ... | true |
1b3eadaa4c181d37f2efcef30d399bd819d07b58 | Java | totaeza31/ProjectAndroid | /app/src/main/java/com/example/helloandroid/UserListAapter.java | UTF-8 | 1,512 | 2.515625 | 3 | [] | no_license | package com.example.helloandroid;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import org.w3c.dom.Text;
import java.util.List;
public class UserListA... | true |
dbeec0960b2e2136f8590815c7532f4d40e62476 | Java | wangjianyu88/xxt_medical | /medical/src/main/java/com/medical/synchrodata/control/DownloadMedicalTimeControl.java | UTF-8 | 1,295 | 2.125 | 2 | [] | no_license | package com.medical.synchrodata.control;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype... | true |
286f426b95103af278ad3c0b298983366ae1d145 | Java | Kirurai/TecnicaturaUTN | /Programación 2/Clase 4/Interface1/src/interface1/Interface1.java | UTF-8 | 551 | 2.21875 | 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 interface1;
/**
*
* @author Miño Maurizio Nahuel <kd.maurii@gmail.com> A.K.A "Kirurai"
*/
public class Interface1 {
/*... | true |
1f43ba57958540fc2bf6571ad4a5e349139b79cd | Java | cjacobme/cj.software.spring.pro-spring-5 | /CJ - Spring - Pro Spring 5 Parent/chapter03/injection/src/main/java/cj/software/spring/pro5/ch03/BookwormOracle.java | UTF-8 | 409 | 2.796875 | 3 | [] | no_license | package cj.software.spring.pro5.ch03;
public class BookwormOracle
implements
Oracle
{
@SuppressWarnings("unused")
private Encyclopedia encyclopedia;
public void setEncyclopedia(Encyclopedia pEncyclopedia)
{
this.encyclopedia = pEncyclopedia;
}
@Override
public String defineMeaningOfLife()... | true |
2099cb02e150592a781ba79302096ff8d77073fe | Java | samm81/2LoavesOfBread | /src/core/GUI/ViewMarketScene/AcceptOfferButton.java | UTF-8 | 969 | 2.75 | 3 | [] | no_license | package core.GUI.ViewMarketScene;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics2D;
import java.awt.Shape;
import java.awt.geom.RoundRectangle2D;
import core.GUI.Button;
import core.GUI.Listener;
/**
* Button to allow accepting offers
* @author Sam Maynard
*
*/
public class AcceptOfferButt... | true |
b7df8c2d858f2a0d9463c647565d3650d2f44606 | Java | FRobotics/2021-Robot | /src/main/java/frc/robot/base/util/DriveUtil.java | UTF-8 | 5,762 | 2.234375 | 2 | [] | no_license | package frc.robot.base.util;
// import frc.robot.base.input.Axis; //JAS not used
import frc.robot.base.input.Controller;
import frc.robot.base.subsystem.StandardDriveTrain;
import frc.robot.hailfire.subsystem.DriveTrain;
import edu.wpi.first.wpilibj.controller.RamseteController;
import edu.wpi.first.wpilibj.geometry.... | true |
2ed9bd586ec879c149d0eb76ae3c44a72a292717 | Java | TorresCubed/Advent-of-Code-2019 | /AdventDay18/src/com/company/Vault.java | UTF-8 | 3,566 | 3.078125 | 3 | [] | no_license | package com.company;
import java.util.ArrayList;
public class Vault {
private ArrayList<Coordinate> keyList;
private Coordinate start;
private ArrayList<Path> redundantPaths = new ArrayList<>();
private ArrayList<Path> tempPathList = new ArrayList<>();
private ArrayList<Path> pathList = new ArrayL... | true |
809bbf93936cc22fc88fa3186f83869405ec3c3e | Java | juanjesusnovo/ejercicios-java | /src/Ex/TestGraficoCompuesto.java | UTF-8 | 942 | 2.515625 | 3 | [] | no_license | package Ex;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class TestGraficoCompuesto {
Punto punto;
Circulo circulo;
Rectangulo rectangulo;
GraficoCompuesto graficoCompuesto;
@BeforeEach
void preparar() throws Gra... | true |
8ca493662885b33a96d561902e4d96e9df116a33 | Java | psurti/lotus-labs | /lotus-labs-core/src/main/java/com/lotuslabs/actors/example/TransformActor.java | UTF-8 | 1,686 | 2.609375 | 3 | [] | no_license | package com.lotuslabs.actors.example;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.messaging.Message;
import org.springframework.messaging.MessageHandler;
import org.springframework.messaging.support.GenericMessage;
import com.lotuslabs.actors.example.DBReadActor.DBEvent;
import... | true |
00eeee647f1660d37f367b969eb20195e5c154de | Java | thiagotierre/estrutura-de-dados | /src/pilha2020/PilhaRN.java | UTF-8 | 3,491 | 3.703125 | 4 | [] | no_license | package pilha2020;
import java.util.Arrays;
public class PilhaRN {
private Object elementos[];
private int topoR;
private int topoN;
public PilhaRN(int tamanho) {
elementos = new Object[tamanho]; //Tamanho passado como parametro do construtor
topoR = -1;
topoN = tam... | true |
6781237d4a9789e5094f07cae60a9c6696fe7136 | Java | serefakbogfa/JavaCamp2 | /JavaCamp1/src/StudentManager.java | ISO-8859-9 | 300 | 2.40625 | 2 | [] | no_license |
public class StudentManager extends UserManager {
public void add(Student student) {
System.out.println(student.getCourse()+"kullanc giri yapt");
}
public void delete(Student student) {
System.out.println(student.getCourse()+"kullanc k yapt ");
}
}
| true |
7fead1256590adc3b8c1b424662382ff3a71f880 | Java | DBDA15/data-mining | /data_mining_flink/src/main/java/de/hpi/dbda/MinSupportFilter.java | UTF-8 | 568 | 2.109375 | 2 | [] | no_license | package de.hpi.dbda;
import org.apache.flink.api.common.functions.FilterFunction;
import org.apache.flink.api.java.functions.FunctionAnnotation.ReadFields;
import org.apache.flink.api.java.tuple.Tuple2;
@ReadFields("f1")
public class MinSupportFilter<T> implements FilterFunction<Tuple2<T, Integer>> {
private static... | true |
136ec93db6699ae4e08c51af19a5d4fe0d2395a6 | Java | wang-shun/commonProject | /platform/holley-platform-external/src/main/java/com/holley/platform/external/util/HttpUtil.java | UTF-8 | 3,213 | 2.421875 | 2 | [] | no_license | package com.holley.platform.external.util;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import org.apache.log4j.Logger;
import com.holley.platform.common.util.StringUtil;
import net.sf.json.JSONObject;
public c... | true |
72d5f8c0f940944a30558b2f1a2e83956414abd5 | Java | Lawrr/Manga-Reader | /app/src/main/java/com/lawrr/mangareader/ui/items/SeriesItem.java | UTF-8 | 655 | 2.390625 | 2 | [] | no_license | package com.lawrr.mangareader.ui.items;
public class SeriesItem {
private String author;
private String artist;
private String imageUrl;
private String summary;
public SeriesItem(String author, String artist, String imageUrl, String summary) {
this.author = author;
this.artist = ar... | true |
92641f36fa37de23756927a369b4da4787f34d7d | Java | tibistibi/mTor | /src/main/java/nl/bhit/mtor/model/MTorMessage.java | UTF-8 | 4,065 | 2.140625 | 2 | [] | no_license | package nl.bhit.mtor.model;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistenc... | true |
770ec406bae68f2c426589911440019b16e5dc37 | Java | mahmoudfathy01010/Tic-Tac-Toe | /Tic Tac Toe_Game/src/Memory_Game/Y_Memory_ModesBase.java | UTF-8 | 15,720 | 2.015625 | 2 | [] | no_license | package Memory_Game;
import javafx.scene.effect.*;
import java.lang.*;
import javafx.animation.FadeTransition;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.Scene;
import javafx.scene.control.*;
import javafx.scene.image.*;
import javafx.scene.input.MouseEvent;
import javafx.sc... | true |
7d2e2e15a9f7e2ba37885f8eb4fc23b7aabff3c1 | Java | snakesmell/a_workbench | /src/com/ThreadServer/DemonServer.java | UTF-8 | 8,969 | 2.015625 | 2 | [] | no_license | package com.ThreadServer;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Array... | true |
00885de35fe1edc85dfbc9082d767d3d003e738b | Java | nuno1212s/Orb | /Punishments/src/main/java/com/nuno1212s/punishments/inventories/InventoryManager.java | UTF-8 | 1,526 | 2.5625 | 3 | [] | no_license | package com.nuno1212s.punishments.inventories;
import com.nuno1212s.main.MainData;
import com.nuno1212s.modulemanager.Module;
import com.nuno1212s.inventories.InventoryData;
import lombok.Getter;
import org.bukkit.inventory.Inventory;
import java.io.File;
import java.util.*;
public class InventoryManager {
priv... | true |
f957e0c9af79b5e06f2d37521d69b5d50881eb44 | Java | RobertHSchmidt/jedit | /plugins/Launcher/tags/0.1/launcher/CompositeLauncher.java | UTF-8 | 454 | 1.984375 | 2 | [] | no_license | package launcher;
import org.gjt.sp.jedit.View;
public abstract class CompositeLauncher extends Launcher {
protected final Launcher[] children;
public CompositeLauncher(String name, String shortName, Launcher[] children) {
super(name, new Object[]{shortName});
this.children = children;
}
@Override
public... | true |
345445841162c1c905a0caa03c19b4763b5e50c5 | Java | sergejsoller/mailerlite-java-api | /src/main/java/work/soller/ml/endpoint/SubscribersEndpoint.java | UTF-8 | 3,657 | 2.171875 | 2 | [
"MIT"
] | permissive |
/*
* MIT License
*
* Copyright (c) 2021 Sergej Soller <sergej@soller.work>
*
* 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, including without limitation the righ... | true |
8e2aaaaf7c251c8a5ef8f82212f0fdaa6e4e88a4 | Java | lgxxabc/50100_Week3 | /EvenNumSum.java | UTF-8 | 569 | 4.0625 | 4 | [] | no_license | package Week3;
import java.util.Scanner;
public class EvenNumSum {
public static void main(String[] args) {
int value, sum = 0;
Scanner scan = new Scanner(System.in);
System.out.print("Please enter an Interger greater than 2: ");
value = scan.nextInt();
while(value < 2) {
System.out.print ("In... | true |
637f65dd59a56137dd1943db546b7e6e64ea32fd | Java | Treenawat/Lab6 | /Lab6/src/ShapeTest.java | UTF-8 | 8,924 | 3.515625 | 4 | [] | no_license | import java.util.ArrayList;
import java.util.Comparator;
import org.junit.Assert;
import org.junit.Test;
/**
* Lab 6
*
* Test class for shapes and their comparators.
*
* @author Stephen
* @version 2019-02-18
*/
public class ShapeTest
{
//========================================================... | true |
17a30abc42e1139d406638416574c3340d5ba322 | Java | amrendrabagga/LeetcodeChallenge | /src/main/java/august/week1/Day5_WordDictionaryEfficient.java | UTF-8 | 1,719 | 3.609375 | 4 | [] | no_license | package august.week1;
import utils.TrieNode;
import java.util.Map;
public class Day5_WordDictionaryEfficient {
TrieNode root;
/** Initialize your data structure here. */
public Day5_WordDictionaryEfficient() {
root = new TrieNode('/');
}
/** Adds a word into the data structure. */
pu... | true |
e6a221b58121ba112ae0148f1416bd262bc5600e | Java | JokerTheBond/progetto.rigo.bobo | /app/src/main/java/com/example/rigobobo/Database/InfoHelper.java | UTF-8 | 2,175 | 2.53125 | 3 | [] | no_license | package com.example.rigobobo.Database;
import android.content.ContentValues;
import android.database.Cursor;
import androidx.annotation.Nullable;
import com.example.rigobobo.Model.Info;
import java.util.Date;
public class InfoHelper {
private static final String TABLE_NAME = "info";
private static final S... | true |
c89fed7a668e11ee52459704bb0ef2e1df8ebad8 | Java | horbo/paulmann-bt-lib | /src/main/java/com/github/hypfvieh/paulmann/devices/LampRGB.java | UTF-8 | 1,264 | 2.09375 | 2 | [
"MIT"
] | permissive | package com.github.hypfvieh.paulmann.devices;
import com.github.hypfvieh.bluetooth.wrapper.BluetoothGattService;
import com.github.hypfvieh.paulmann.features.FeatureIdent;
/**
* Concrete PaulmannDevice which describes a RGB LED stripe.
*
* @author David M.
*/
public class LampRGB extends AbstractPaulmannDevice {
... | true |
8ad76f42333ce681245e722fa6c23d6cc9f91dc3 | Java | jfresen/wim-alert | /app/src/main/java/nl/jellow/wimalert/util/Aes.java | UTF-8 | 1,966 | 2.765625 | 3 | [] | no_license | package nl.jellow.wimalert.util;
import android.util.Log;
import android.util.Pair;
import java.security.MessageDigest;
import java.util.Arrays;
import javax.crypto.Cipher;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
import nl.jellow.wimalert.App;
/**
* Created by Jelle on 12... | true |
19ad30f11fc3b8a96278368111830e0188fe5626 | Java | wilferraciolli/LibraryAPI | /library-resource/src/main/java/com/library/app/author/resource/AuthorFilterExtractorFromUrl.java | UTF-8 | 1,106 | 2.53125 | 3 | [] | no_license | package com.library.app.author.resource;
import com.library.app.author.model.filter.AuthorFilter;
import com.library.app.common.resource.AbstractFilterExtractorFromUrl;
import javax.ws.rs.core.UriInfo;
/**
* The type Author filter extractor from url. This class is usd to extract parameters from links urls.
*/
publ... | true |
5177bdc7d74a3081257ff10648145e36ea16fb3e | Java | donggua131432/33e9 | /webapp_rms/src/main/java/com/e9cloud/mybatis/service/SecretVoiceService.java | UTF-8 | 989 | 1.820313 | 2 | [] | no_license | package com.e9cloud.mybatis.service;
import com.e9cloud.core.page.Page;
import com.e9cloud.core.page.PageWrapper;
import com.e9cloud.mybatis.base.IBaseService;
import com.e9cloud.mybatis.domain.SecretVoice;
import java.util.Map;
/**
* Created by Administrator on 2016/6/2.
*/
public interface SecretVoiceService ext... | true |
f8bdbc30e070dc31a726463d78807ae49afa7f6d | Java | PiscesKnight/fiction | /app/src/main/java/com/example/tai_fiction/ui/activity/webview/WebViewActivity.java | UTF-8 | 696 | 1.921875 | 2 | [] | no_license | package com.example.tai_fiction.ui.activity.webview;
import android.app.Activity;
import android.os.Bundle;
import com.example.tai_fiction.R;
import com.example.tai_fiction.base.mvp.MvpActivity;
import butterknife.Bind;
import butterknife.ButterKnife;
/**
* Created by JinBao on 2017/1/9.
*/
public class WebViewA... | true |
dcef393ae5cb9d5433e6ec473a0342ed24cfa0d3 | Java | stonelzl/gupao_learn | /strategyPatternTest/src/main/java/com/example/demo/test/Test.java | UTF-8 | 377 | 1.828125 | 2 | [] | no_license | package com.example.demo.test;
/**
* Created By stone on 2019/9/29 10:19
*/
public class Test {
public static void main(String[] args) {
String promotionKey = "GROUPBUY";
PromotionActivity promotionActivity = new
PromotionActivity(PromotionStrategyFactory.getPromotionStrategy(prom... | true |
0dcf4558e8214552e3a3a0082badc8b2634c941d | Java | harutus22/RecycleStuggedridLay | /app/src/main/java/com/example/recyclestuggedridlay/MovieExample.java | UTF-8 | 389 | 2.671875 | 3 | [] | no_license | package com.example.recyclestuggedridlay;
public class MovieExample {
private int imageId;
private String imageName;
public MovieExample(int imageId, String imageName){
this.imageId = imageId;
this.imageName = imageName;
}
public int getImageId() {
return imageId;
}
... | true |
013f2b4469e38758079a198f156b37a840251e40 | Java | DieterTheHorst/info2 | /src/devpkg/a3a.java | UTF-8 | 248 | 2.25 | 2 | [
"Unlicense"
] | permissive | package devpkg;
/**
* Aufgabe 3a
*
* @author Samuel
*/
public class a3a {
public static void main(String args[]) {
if (args.length == 1) {
System.out.println(args[args.length - 1]);
} else {
System.err.println("Fehler");
}
}
}
| true |
0fc027c8f2562f54f743de18ba7a4004204c61ff | Java | cmFodWx5YWRhdjEyMTA5/smell-and-machine-learning | /ast_results/wolpi_prim-ftpd/slf4j-android-1.6.1-RC1/src/org/slf4j/helpers/NOPLoggerFactory.java | UTF-8 | 375 | 1.796875 | 2 | [] | no_license | // isComment
package org.slf4j.helpers;
import org.slf4j.ILoggerFactory;
import org.slf4j.Logger;
import org.slf4j.helpers.NOPLogger;
/**
* isComment
*/
public class isClassOrIsInterface implements ILoggerFactory {
public isConstructor() {
// isComment
}
public Logger isMethod(String isParameter) ... | true |
f765c73879849fb9cc9e761b9d6ce94cf52c8cc0 | Java | mjimenez169492/Text-Based-RPG | /Base_Files/src/Generic_Character/GeneralFeatures.java | UTF-8 | 10,413 | 3 | 3 | [
"MIT"
] | permissive | package Generic_Character;
/*
GeneralFeatures contains information that is generally available to all
GenericCharacter Objects.
*/
public class GeneralFeatures
{
// holding objects from other classes
private TotalStats totalStats;
// if party member is NOT under player control then its ... | true |
7d36ef4c8d3ea3e4a09252f7320786ca1090e5f8 | Java | anshimko/JD_OOP | /task04/dao/TreasureDao.java | UTF-8 | 261 | 1.78125 | 2 | [] | no_license | package by.htp.les10.main.task04.dao;
import java.util.List;
import by.htp.les10.main.task04.bean.Cave;
import by.htp.les10.main.task04.bean.Treasure;
public interface TreasureDao {
List<Treasure> takeTreasure () throws DAOException;
}
| true |
c602a32d9b5470b253cb6a514f526ec947d35ddf | Java | Alex-Huleatt/Stuff | /src/Levels/LevelLoader.java | UTF-8 | 3,168 | 2.734375 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Levels;
import Factories.FeatureFactory;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.Rand... | true |
9b12189cac69988a422ecc80cce8e0bb2f914ea8 | Java | jettmarks/clueRide-angular | /domain/src/main/java/com/clueride/domain/user/image/ImageService.java | UTF-8 | 2,436 | 2.515625 | 3 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2017 Jett Marks
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | true |
54e9a9fc3fa0e3213b7409cae2febd76aaf45f0d | Java | WIN233/SpringBootDemo | /SpringApplication/src/main/java/com/demo/listener/BeforConfigFileApplicationListener.java | UTF-8 | 1,529 | 2.25 | 2 | [] | no_license | package com.demo.listener;
import org.springframework.boot.context.config.ConfigFileApplicationListener;
import org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent;
import org.springframework.boot.context.event.ApplicationPreparedEvent;
import org.springframework.context.ApplicationEvent;
import... | true |
3463ba2fd3b57c31deff227257871aa55998ab25 | Java | Svetozar99/ProjekatEObrazovanjeFTN | /ProjekatEObrazovanje2021-2022/src/main/java/ftn/projekat/eObrazovanje/ProjekatEObrazovanje20212022/serviceInterface/CourseSpecificationI.java | UTF-8 | 655 | 1.882813 | 2 | [] | no_license | package ftn.projekat.eObrazovanje.ProjekatEObrazovanje20212022.serviceInterface;
import java.util.List;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import ftn.projekat.eObrazovanje.ProjekatEObrazovanje20212022.model.CourseSpecification;
public interface CourseSpecif... | true |
7ab517c74f75cab15a3167d0bd76ba8847a6e8d7 | Java | DrayDray/My-Code-Snippets | /src/com/sharon/formatting/BasicFormattingForTable.java | UTF-8 | 889 | 3.625 | 4 | [] | no_license | package com.sharon.formatting;
public class BasicFormattingForTable {
public static void main(String[] arguments){
System.out.println("six 'spots'");
for (int i = 46; i < 50; i++) {
for (int j = 0; j < 10; j++) {
//%3d means each print out of an integer will take up 3 single spaces
//%4d ... | true |
52349d799a00d7367ac9d86f0040edfc9ddac92d | Java | 17patelumang/GenomeSimulator | /grapher/src/com/grapher/actions/CreateNodeAction.java | UTF-8 | 899 | 2.25 | 2 | [] | no_license | package com.grapher.actions;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.window.Window;
import org.eclipse.ui.IWorkbenchWindow;
import com.grapher.View;
import com.grapher.ui.GenerationGraph;
import com.grapher.ui.MyTitleAreaDialog;
public class CreateNodeAction extends Action {
public Cre... | true |
12e702528c2eef074b2217505acdb0ae471846b6 | Java | JetBrains/MPS | /plugins/mps-vcs/solutions/jetbrains.mps.ide.vcs/source_gen/jetbrains/mps/vcs/actions/ShowInFileView.java | UTF-8 | 1,267 | 1.59375 | 2 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package jetbrains.mps.vcs.actions;
/*Generated by MPS */
import jetbrains.mps.annotations.GeneratedClass;
import jetbrains.mps.ide.projectPane.fileSystem.FileViewProjectPane;
import com.intellij.openapi.project.Project;
import com.intellij.ide.projectView.ProjectView;
import java.util.List;
import com.intellij.openap... | true |
bc07f05ed422003610bbe0174f0204f9fb7f8bd4 | Java | hpalande2411/hitesh_edac2020 | /Asn2/src/Ptr7.java | UTF-8 | 588 | 3.296875 | 3 | [] | no_license | import java.util.*;
public class Ptr7 {
public static void main(String[] args) {
System.out.println("enter number");
Scanner sc=new Scanner (System.in);
int n=sc.nextInt();
for(int i=1; i<=n; i++)
{
int flag=1;
int k=2*n-1;
for(int j=1; j<=k;j++)
{
if(j>=i && j<=k-i+1 &... | true |
71fa94d6039265deb85379c869d5bc7843d6e5a5 | Java | sagarpatil190/Simple_PageObjectModelFramework | /BBJAutomationHVOD/src/pages/preprod/.svn/text-base/PreprodCatalog.java.svn-base | UTF-8 | 1,665 | 2.28125 | 2 | [] | no_license | package pages.preprod;
import java.util.List;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import utility.Utility;
public class PreprodCatalog extends Utility {
WebDriver driver;
By txtSearchCatalog = By.id("q");
By btnCreateImport = ... | true |
628f6bfa12912b6df0987b139702476a37314ada | Java | m4coding/HappyGoGoMall | /mall-foreground/src/main/java/com/m4coding/mallforeground/service/impl/ProductServiceImpl.java | UTF-8 | 4,600 | 2.328125 | 2 | [] | no_license | package com.m4coding.mallforeground.service.impl;
import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.util.StrUtil;
import com.m4coding.mallforeground.dto.product.ProductDetailsParam;
import com.m4coding.mallforeground.dto.product.ProductDetailsResult;
import com.m4coding.mallforeground.service.Prod... | true |
387a5b3223dded6517a2c97d27326821354d30ce | Java | cckmit/tools-java | /boot/src/main/java/wsg/tools/boot/pojo/entity/base/Failure.java | UTF-8 | 1,872 | 2.203125 | 2 | [] | no_license | package wsg.tools.boot.pojo.entity.base;
import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;
import wsg.tools.internet.base.repository.Repository;
/**
* Failures when importing from {@link Repo... | true |
6d2dcd78e8c406ba19190753758486b1d2fc9e41 | Java | cristhro/Java_PistonApp | /src/ms/piston/Presentacion/Departamentos/Comandos/CalcularNominaDepartamento.java | UTF-8 | 931 | 2.15625 | 2 | [] | no_license | package ms.piston.Presentacion.Departamentos.Comandos;
import ms.piston.Negocio.Departamentos.TDepartamento;
import ms.piston.Negocio.FactoriaSA.FactoriaSA;
import ms.piston.Presentacion.TContexto;
import ms.piston.Presentacion.Command.Command;
/**
* <!-- begin-UML-doc -->
* <!-- end-UML-doc -->
* @auth... | true |
db63210e4686e916ad5c2ae8290312d4006cc0b9 | Java | timhoangt/MapcushionORM | /src/main/java/com/fdflib/example/model/TenantUser.java | UTF-8 | 299 | 1.789063 | 2 | [
"MIT"
] | permissive | package com.fdflib.example.model;
import com.fdflib.annotation.FdfIgnore;
import com.fdflib.model.state.CommonState;
public class TenantUser extends CommonState {
public Long tenantId;
public Long userId;
public String color = "";
public TenantUser() {
super();
}
}
| true |
32b6d8d58e431ac32f4595abb73ab54637215af0 | Java | decoder-sunny/gatepass-screening | /src/main/java/com/gatepass/main/daoimp/QuestionDAOImp.java | UTF-8 | 2,554 | 2.296875 | 2 | [] | no_license | package com.gatepass.main.daoimp;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.criteria.Predicate;
imp... | true |
2e33e1515f1a350342c79d5c070791447e990168 | Java | ezaanm/lc | /kc/src/kc/quickSort.java | UTF-8 | 1,500 | 3.46875 | 3 | [] | no_license | package kc;
public class quickSort {
public void sort(int[] arr) {
//choose far left as the pivot point
sort(arr, 0, arr.length -1 );
}
private void sort(int[] arr, int leftMost, int rightMost) {
if (leftMost >= rightMost) {
return;
}
int sortedPosition = partition(arr, leftMost, leftMost + 1, rig... | true |
a3ace7c33dfe4bd7af0ec8b04d6f8c683eccec46 | Java | mariosr/test-ithappens-1101 | /implementacao/DesafioTecnico/src/main/java/br/ithappens/models/Produto.java | UTF-8 | 1,610 | 2.515625 | 3 | [] | no_license | package br.ithappens.models;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
@Entity
public class Produto {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@Co... | true |
0ab9a770801ecebd3e4e0cbb7ca683dcc86078c7 | Java | hortonworks/cloudbreak | /cloud-api/src/main/java/com/sequenceiq/cloudbreak/cloud/model/Region.java | UTF-8 | 605 | 2.359375 | 2 | [
"LicenseRef-scancode-warranty-disclaimer",
"ANTLR-PD",
"CDDL-1.0",
"bzip2-1.0.6",
"Zlib",
"BSD-3-Clause",
"MIT",
"EPL-1.0",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-jdbm-1.00",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package com.sequenceiq.cloudbreak.cloud.model;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.base.Strings;
import com.sequenceiq.cloudbreak.cloud.model.generic.StringType;
public class Region extends StringType {
@JsonCreator
... | true |
546219bcd36da7ce8f5577caf232f30ad9bfacb3 | Java | CitlalyAlmanza/ProyectoGina | /SAGA_tienda/src/java/clases/Productos.java | UTF-8 | 2,285 | 2.6875 | 3 | [
"MIT"
] | permissive | package clases;
import java.io.Serializable;
public class Productos implements Serializable{
private Integer id;
private String nombre;
private String categoria;
private String descripcion;
private Integer existencia;
private Integer vendidos;
private Float precio;
... | true |
4a668f9890b572c1932c559ef00f7d5e4352c27b | Java | d0l1u/train_ticket | /train19eManage/src/com/l9e/transaction/dao/impl/QunarStatDaoImpl.java | UTF-8 | 1,872 | 2.109375 | 2 | [] | no_license | package com.l9e.transaction.dao.impl;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Repository;
import com.l9e.common.BaseDao;
import com.l9e.transaction.dao.QunarStatDao;
@Repository("qunarStatDao")
public class QunarStatDaoImpl extends BaseDao implemen... | true |
6634685e3b6bdcf88f3efac4549cef98c8da0fac | Java | liveqmock/tangxIdea | /tangminet/service-api/goods-service-api/src/main/java/com/topaiebiz/goods/dto/sku/ItemPictureDTO.java | UTF-8 | 1,225 | 2.375 | 2 | [] | no_license | package com.topaiebiz.goods.dto.sku;
import com.topaiebiz.goods.constants.GoodsConstants;
import lombok.Data;
import java.io.Serializable;
/**
* Description 商品图片,存储商品的图片信息 。
* <p>
* Author Hedda
* <p>
* Date 2017年8月23日 下午5:23:47
* <p>
* Copyright Cognieon technology group co.LTD. All rights reserved.
* <p>
... | true |
5b96e51b75b20cc1fb321b61717bea7e589b2391 | Java | zhangweimtan/zhangweiJava | /myAPITest/src/com/myjava/ArrayListToFiletest.java | UTF-8 | 3,174 | 4.0625 | 4 | [] | no_license | package com.myjava;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Scanner;
/*
键盘录入三个学生信息(学号,姓名,年龄,居住地)存入集合。然后遍历集合,将每一个学生的信息写入文本文件(每一个学生为一行,自己定义分割标记)
分析:
A: 定义学生类
B:创建集合对象
... | true |
3b58ed6209ac572d592be5e2a23f12bb19bf4b6c | Java | shaowenhao/headfristproject | /src/test/java/chapter6/game/v2/DotComBustTest.java | UTF-8 | 512 | 2.390625 | 2 | [] | no_license | package chapter6.game.v2;
import java.util.ArrayList;
/**
* Description:
* date: 2020 2020/7/12 19:52
*
* @author shaowenhao
* @since JDK 1.8
*/
public class DotComBustTest {
public static void main(String[] args) {
DotComBust game = new DotComBust();
game.setUpGame();
//game.dotCo... | true |
cc532b86a7697125b128ef8ea2405e1bb686858a | Java | yiyayiyayoaaa/auction | /src/main/java/cx/study/auction/service/impl/CommodityServiceImpl.java | UTF-8 | 11,159 | 2.171875 | 2 | [] | no_license | package cx.study.auction.service.impl;
import cx.study.auction.mapper.CommodityMapper;
import cx.study.auction.mapper.UserMapper;
import cx.study.auction.pojo.*;
import cx.study.auction.pojo.Commodity.CommodityStatus;
import cx.study.auction.query.CommodityCountQuery;
import cx.study.auction.query.CommodityQuery;
impo... | true |
b9be8a09efc4e57b079c0164f96fbad0aebd63e0 | Java | OrbitalEnterprises/orbital-eve-xml-api | /src/main/java/enterprises/orbital/impl/evexmlapi/shared/ApiKillItem.java | UTF-8 | 1,523 | 2.421875 | 2 | [] | no_license | package enterprises.orbital.impl.evexmlapi.shared;
import java.util.Collection;
import java.util.HashSet;
import enterprises.orbital.evexmlapi.shared.IKillItem;
public class ApiKillItem implements IKillItem {
private final Collection<ApiKillItem> items = new HashSet<ApiKillItem>();
private int ... | true |
3c5b6c06117bc0a89eb2fc88d0f3340d0ffcd0d4 | Java | jauzeyimam/WeeBloog | /src/weebloog/DailyReportServlet.java | UTF-8 | 2,615 | 2.375 | 2 | [] | no_license | package weebloog;
import java.io.IOException;
import java.util.Collections;
import java.util.Date;
import java.util.List;
import java.util.Properties;
import java.util.logging.Logger;
import javax.mail.Address;
import javax.mail.MessagingException;
import javax.mail.Session;
import javax.mail.Transport;
import javax.... | true |
c59b2d4efb08fd7b1119403e71a61bfe395426c7 | Java | wuwuzh/ServletProject | /src/employeeDao.java | UTF-8 | 2,812 | 2.65625 | 3 | [] | no_license | import java.sql.*;
public class employeeDao {
private String driver="com.mysql.cj.jdbc.Driver";
private String url="jdbc:mysql://lab.cntoworld.pw:3306/ertdatabase?useSSL=false&serverTimezone=GMT";
private String user="test";
private String passwd="root";
private Connection conn=null;
private Pr... | true |
bec5ac3008f6b7e4db2b0b9e98c4dc644e6709f0 | Java | moutainhigh/VTAServer | /src/main/java/com/hgsoft/ygz/vtams/transfer/model/map/RechargeMapping.java | UTF-8 | 2,531 | 2.46875 | 2 | [] | no_license | package com.hgsoft.ygz.vtams.transfer.model.map;
import java.io.Serializable;
import java.util.Date;
/**
* 充值交易新旧编号映射
*
* @author 赖少涯
* @date 2017-11-04
*/
public class RechargeMapping implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 旧的充值交易标识
*/
private Str... | true |
4fb157f1828e26e3cae4cc95e03625fd7cd03e9d | Java | lxltiger/Android_Basic | /designPattern/src/main/java/com/lxl/tiger/designpattern/visitor/Client.java | UTF-8 | 325 | 2.390625 | 2 | [] | no_license | package com.lxl.tiger.designpattern.visitor;
public class Client {
public static void main(String[] args) {
ObjectStructure objectStructure = new ObjectStructure();
objectStructure.add(new ElementA());
objectStructure.add(new ElementB());
objectStructure.action(new Visitor());
... | true |
1323e82e63e8c415292e8aabf996412619d662c0 | Java | sangecz/feedreader | /app/src/main/java/cz/cvut/marekp11/feedreader/feed/FeedListFragment.java | UTF-8 | 5,741 | 2.125 | 2 | [] | no_license | package cz.cvut.marekp11.feedreader.feed;
import android.app.Activity;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.LoaderManager;
import andr... | true |
74ed734bbcfd9a16028b8b49dcd14b0bf2133449 | Java | Annushka/SkypeName | /CesheSkypeStatusRequester.java | UTF-8 | 3,199 | 2.953125 | 3 | [] | no_license | package SkypeName;
import java.io.*;
import java.util.StringTokenizer;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* Created with IntelliJ IDEA.
* User: Анна
* Date: 23.08.13
* Time: 9:21
* To change this template use File | Settings | File Templates.
*/
public class CesheSkypeStatusRequ... | true |
f58ac4c7a709c1fd6d88ad40149e4e0c927e0e49 | Java | flowerrrr/RMT | /rmt/src/main/java/de/flower/rmt/ui/model/AbstractEntityModel.java | UTF-8 | 2,900 | 2.421875 | 2 | [] | no_license | package de.flower.rmt.ui.model;
import de.flower.common.model.db.entity.IEntity;
import de.flower.common.util.Check;
import org.apache.wicket.injection.Injector;
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.LoadableDetachableModel;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
pub... | true |
28f575f23da93dae61714c71f70e95457287f053 | Java | dutchTender/nara-UM-API | /um-webapp/src/main/java/gov/nara/um/persistence/dto/businessunits/BusinessUnitDTO.java | UTF-8 | 1,885 | 2.078125 | 2 | [] | no_license | package gov.nara.um.persistence.dto.businessunits;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import java.util.ArrayList;
import java.util.List;
@JsonPropertyOrder({ "business_unit_id", "business_unit_name", "org_code", "ldap_name", "business_unit_Preferences" })
public class BusinessUnitDTO {
... | true |
351dd6d0d6c34be4e3e28aac6b2a9d32ce4c1975 | Java | jideopa/QA-Hire-Project-Hudl | /src/test/java/com/hudl/qa/test/HomepageTest.java | UTF-8 | 2,277 | 1.914063 | 2 | [] | no_license | package com.hudl.qa.test;
import org.testng.Assert;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Listeners;
import org.testng.annotations.Test;
import com.hudl.log.base.qa.Base;
import com.hudl.pages.qa.HomePage;
import com.hudl.pages.qa.HudlLoginPag... | true |
5b803b487a48b1313560763148dc0da9c1fba171 | Java | AngelOver/VulnerabilityCollection | /guns-admin/src/main/java/com/stylefeng/guns/modular/system/model/Bug.java | UTF-8 | 2,522 | 1.914063 | 2 | [] | no_license | package com.stylefeng.guns.modular.system.model;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import j... | true |
6d440d3a59cb57b5ef77d575facf4cf9129283c6 | Java | siegleal/Life | /src/LifeFrame.java | UTF-8 | 4,164 | 2.640625 | 3 | [] | no_license | import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.ButtonGroup;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
public class LifeFrame extends ... | true |
586c6404661c8a2a8c1a74670231d788f06873ec | Java | markettool/branch1.1 | /src/org/market/tool/bean/OriginTaskBean.java | UTF-8 | 1,828 | 1.828125 | 2 | [
"Apache-2.0"
] | permissive | package org.market.tool.bean;
import cn.bmob.v3.BmobObject;
import cn.bmob.v3.datatype.BmobFile;
public class OriginTaskBean extends BmobObject {
public static final int STATUS_ACTIVE=0;
// public static final int STATUS_EXECUTEING=1;
public static final int STATUS_CLOSED=1;
// public static final int S... | true |
b9fe903d98f036e9d9080b5e9c57f808ac8ef9b2 | Java | Sidheartx/VideoNew | /VideoNew/app/src/main/java/io/wyntr/peepster/FriendsFragment.java | UTF-8 | 3,187 | 1.9375 | 2 | [] | no_license | package io.wyntr.peepster;
/**
* Created by Siddharth on 3/23/16.
*/
import android.app.AlertDialog;
import android.os.Bundle;
import android.support.v4.app.ListFragment;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import android.view.LayoutInf... | true |
96f9dc899daee0e784724a4a5dc680b7361d2b3d | Java | elkerrodrigues/orientacao-objetos-03 | /src/test/java/exercicios/RetanguloTeste.java | UTF-8 | 2,016 | 3.296875 | 3 | [] | no_license | package exercicios;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
public class RetanguloTeste {
private Retangulo r1;
@BeforeEach
public void beforeEach() {
r1 = new Retangulo(... | true |
79d4d3fcaded1cbabfd3673fc4c194b6485d00f4 | Java | thebluerat/2019.4.22 | /src/color0424/계산기연습.java | UTF-8 | 921 | 3.515625 | 4 | [] | no_license | package color0424;
import java.util.Scanner;
public class 계산기연습 {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
System.out.println("계산 시작");
System.out.print("첫 번째 값을 입력하세요");
int a = scan.nextInt();
System.out.print("연산자를 입력하세요");
String c = scan.next();... | true |
94d316c89bf75c0ad7937be0c99f7d24ee608bf7 | Java | akaene/jopa-multitenant-poc | /src/main/java/com/akaene/flagship/service/repository/UserAccountRepositoryService.java | UTF-8 | 835 | 2.15625 | 2 | [] | no_license | package com.akaene.flagship.service.repository;
import com.akaene.flagship.model.UserAccount;
import com.akaene.flagship.persistence.dao.UserAccountDao;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;
import java.util.Objects;
@Se... | true |
4af17a5682a1556564a70205efdf836e69b00e2a | Java | treviets/apis | /cd-application/src/main/java/net/cd/dto/kernal/CdFeedDto.java | UTF-8 | 1,308 | 1.992188 | 2 | [] | no_license | package net.cd.dto.kernal;
import net.cd.jpa.entity.kernal.CdFeedEntity.FeedScope;
public class CdFeedDto {
private Integer id;
private String reference;
private CdKMemberDto author;
private CdArticleDto article;
private FeedScope scope;
private String made;
private String revised;
private String purged;
... | true |
08387e17efa111d4c703252927e87d02d9b039c6 | Java | drxaos/rins | /src/main/java/com/github/drxaos/ncpu/vm/addr/Literal.java | UTF-8 | 665 | 2.390625 | 2 | [] | no_license | package com.github.drxaos.ncpu.vm.addr;
import com.github.drxaos.ncpu.vm.Addressing;
import com.github.drxaos.ncpu.vm.NanoMemory;
public class Literal implements Addressing {
public static final Literal IMPL = new Literal();
@Override
public int load(NanoMemory mem) {
return mem.incPcAndReadData(... | true |
b4a303219cf6d79f6b197c9e13547494e649b0a7 | Java | Miyanaqy/crmsys | /src/com/crmsys/service/impl/UserServiceImpl.java | UTF-8 | 1,151 | 2.203125 | 2 | [] | no_license | package com.crmsys.service.impl;
import java.util.List;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.DigestUtils;
import com.crmsys.common.Constance;
import com.crmsys.dao.UserDao;
import com.crmsys.domain.User;
import com.crmsys.service.UserService;
@Transactiona... | true |
79bdafca68d2fa56d9a7ef43dc1d18909e48a3f5 | Java | Supporterino/TSP_SE1 | /src/main/GeneticAlgorithm.java | UTF-8 | 25,614 | 2.484375 | 2 | [] | no_license | import base.Population;
import base.Tour;
import base.City;
import configuration.Configuration;
import crossover.AlternatingEdgesCrossover;
import crossover.CompleteSubTourExchangeCrossover;
import crossover.CycleCrossover;
import crossover.DistancePreservingCrossover;
import crossover.EdgeRecombinationCrossover;
impor... | true |
eb2b1d9b9cef15c3fafefdd3d039f9af0ea95961 | Java | bengongon97/AppCentChallengeApp | /app/src/main/java/com/example/appcentinterviewapp/PictureShowerActivity.java | UTF-8 | 1,848 | 2.109375 | 2 | [] | no_license | package com.example.appcentinterviewapp;
import android.content.Intent;
import android.os.Parcelable;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ImageView;
import com.example.appcentinterviewapp.Parser.FlickrPhotoReceiver;
import com.google.gson.Gson;
import com.s... | true |
52f996467b99e2f293ed22dc74ef6bdb97bbd256 | Java | kwkwok1980/hackerrank | /Gridland_Metro.java | UTF-8 | 1,780 | 3.109375 | 3 | [] | no_license | import java.io.*;
import java.util.*;
public class Solution {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
int m = scanner.nextInt();
int t = scanner.nextInt();
Map<Integer, List<A>> grid = new HashMa... | true |
5f4cde22d3738ce3f142049b27c495f29fbfc796 | Java | Ivan014679/SQLiteCRUD2019 | /app/src/main/java/com/example/pets/UpdateActivity.java | UTF-8 | 5,521 | 2.265625 | 2 | [] | no_license | package com.example.pets;
import androidx.appcompat.app.AppCompatActivity;
import android.app.DatePickerDialog;
import android.content.Intent;
import android.os.Bundle;
import android.util.Patterns;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.DatePicker;
import android.widget.E... | true |
3d1f10e6eb414482af76addb3f79e4c624600a7f | Java | nyukhalov/leetcode-java | /src/main/java/reverse_vowels_of_a_string/Solution.java | UTF-8 | 911 | 3.734375 | 4 | [] | no_license | package reverse_vowels_of_a_string;
// https://leetcode.com/problems/reverse-vowels-of-a-string/description/
class Solution {
public String reverseVowels(String s) {
char[] chars = s.toCharArray();
reverseVowelsInPlace(chars);
return new String(chars);
}
private boolean notVowel(c... | true |
497edbfc4bf3847bb3e93763cd0f18288386a194 | Java | Bryanx/exercises | /Java/3 JavaFX/P3W3_Barchart/src/be/kdg/voetbal/Main.java | UTF-8 | 830 | 2.265625 | 2 | [] | no_license | package be.kdg.voetbal;
import be.kdg.voetbal.model.VoetbalModel;
import be.kdg.voetbal.view.Presenter;
import be.kdg.voetbal.view.VoetbalView;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.stage.Stage;
//
// http://nieuws.vtm.be/sport/142742-we-gooien-helft-voetbaltalent-weg
//
pub... | true |
3107dd2758bd2ee095db7f49f530305ee0393fa6 | Java | t-soumbou/java-persistence-jpa | /src/test/java/org/demo/persistence/impl/jpa/PublisherPersistenceJpaTest.java | UTF-8 | 500 | 1.820313 | 2 | [] | no_license | package org.demo.persistence.impl.jpa;
import org.demo.persistence.PublisherPersistence ;
import org.demo.persistence.PublisherPersistenceGenericTest;
import org.junit.Test;
/**
* JUnit tests for Publisher persistence service
*/
public class PublisherPersistenceJpaTest extends PublisherPersistenceGenericTest {
@T... | true |
0e44c8572436057e0e915e1105d5690eb3d527f1 | Java | chetan882777/Cover | /app/src/main/java/com/chetan/projects/cover/Firebase/Category.java | UTF-8 | 596 | 2.265625 | 2 | [] | no_license | package com.chetan.projects.cover.Firebase;
public class Category {
String name;
String largeUrl;
String mediumUrl;
String previewUrl;
public String getCategoryName() {
return name;
}
public String getLargeUrl() {
return largeUrl;
}
public String getMediumUrl() {
... | true |
35083097546732fa4bea94facf26ba2a64a09652 | Java | henryju/sonar-plugin-api-sandbox | /src/main/java/org/sonar/api/compat/batch/sensor/duplication/internal/DefaultTokenBuilder.java | UTF-8 | 3,091 | 1.851563 | 2 | [] | no_license | /*
* SonarQube, open source software quality management tool.
* Copyright (C) 2008-2014 SonarSource
* mailto:contact AT sonarsource DOT com
*
* SonarQube is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Found... | true |
d99ac82daf56ddae89679085234d40fbd25284fa | Java | giangfreedom/cecs-524-language-analysis | /LICENSE.md/524 lab2 antlr grammar submit file/simplegrammarLexer.java | UTF-8 | 39,520 | 2.328125 | 2 | [] | no_license | // $ANTLR 3.5 C:\\Users\\SuperAdmin\\Desktop\\cecs 524 prog concept\\antlr 3.5\\simplegrammar.g 2017-02-22 23:07:20
import org.antlr.runtime.*;
import java.util.Stack;
import java.util.List;
import java.util.ArrayList;
@SuppressWarnings("all")
public class simplegrammarLexer extends Lexer {
public sta... | true |
0442d3c555296fe890a474a108a2860fec46307e | Java | shreyas-ks12/Fis_Task | /java_training/src/task/Main.java | UTF-8 | 1,025 | 3.171875 | 3 | [] | no_license | package task;
public class Main {
public static void main(String[] args) {
Main m1=new Main();
Device camera = new Camera(10000, 100,5,6,"Sony");
Device computer = new Computer(1000,300,2,7,"Asus");
Device laptop = new Laptop(10000,20,7,9,"HP");
m1.getPower(camera);
m1.getCost(camera);
m1.getCost... | true |