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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
4fdbc1651b3f2c8b9d006663ebfe4b98385dd3cd | Java | shreyaUx/July2021SeleniumCodes | /src/main/java/com/qa/opencart/pages/LoginPage.java | UTF-8 | 1,310 | 2.234375 | 2 | [] | no_license | package com.qa.opencart.pages;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import com.qa.utilssection.ElementUtil;
public class LoginPage {
/**
* will pass driver in loginpage from
*/
private WebDriver driver;
private ElementUtil eu;
//1.By Locators
private By emid = By.id("input-... | true |
e4464df7dae9df9d0a564c0d75d17894e333dd91 | Java | Sujal1/SAD-Moodle-Android | /Moodle/src/ait/cs/sad/moodle/Student_old.java | UTF-8 | 6,758 | 2.140625 | 2 | [] | no_license | package ait.cs.sad.moodle;
import java.util.ArrayList;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.content.Sha... | true |
f65470569e26af27c5d5aff848fd6b291f741d84 | Java | Godikov/OkHttp3Tool | /myokhttp3/src/main/java/com/humu/myokhttp3/http/OKHttp3Tool.java | UTF-8 | 3,144 | 2.703125 | 3 | [] | no_license | package com.humu.myokhttp3.http;
import android.text.TextUtils;
import com.humu.myokhttp3.bean.MultiFile;
import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* 可实现链式请求,代码更简洁。
* 参数设置无顺序要求。
* Created by Administrator on... | true |
1beb4d5096836841dc4690d97fd315c9ae05a968 | Java | zulu-openjdk/DependencyAnalyzer | /JDepsExtended/src/com/azul/tool/depsextended/Module.java | UTF-8 | 2,727 | 2.828125 | 3 | [] | no_license | package com.azul.tool.depsextended;
import static com.azul.tool.depsextended.DependencyAnalyser.*;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Set;
import java.util.Map.Entry;
public class Module {
public String name;
public String path;
public HashMap<String,Module> depend... | true |
dee4fd69c45a59a85b952bd551f377229b3d4837 | Java | RWIN5666/JavaPong | /src/frame/Forme.java | UTF-8 | 1,115 | 3 | 3 | [] | no_license | package frame;
import java.awt.Color;
import java.awt.Graphics;
import javax.swing.JPanel;
import struct.Couleur;
public abstract class Forme extends JPanel{
// attributs
protected int coefficient;
protected int X;
protected int Y;
protected int hauteur;
protected int largeur;
// TODO s'occuper d'orientatio... | true |
e285ecc2fc7e16185e21ae9b379a94ee70a165f7 | Java | Hadryan/LanSoEditor_advance | /LanSongSDK/src/main/java/com/lansosdk/videoeditor/AERenderExecute.java | UTF-8 | 13,016 | 1.804688 | 2 | [] | no_license | package com.lansosdk.videoeditor;
import android.content.Context;
import android.graphics.Bitmap;
import com.lansosdk.LanSongAe.LSOAeDrawable;
import com.lansosdk.box.AEJsonLayer;
import com.lansosdk.box.AEMVLayer;
import com.lansosdk.box.AERenderRunnable;
import com.lansosdk.box.AEVideoLayer;
import com.lansosdk.box... | true |
3f3f77e556b99fb4b6263088018260bd5bcaaf0c | Java | ztmwl/emall | /emall-sso1/src/main/java/com/lujiahao/sso/utils/cache/RedisCacheImpl.java | UTF-8 | 2,459 | 2.453125 | 2 | [
"Apache-2.0",
"MIT"
] | permissive | package com.lujiahao.sso.utils.cache;
import com.lujiahao.common.domain.ServerResponse;
import com.lujiahao.common.utils.JsonUtils;
import com.lujiahao.mapping.pojo.EmallUser;
import com.lujiahao.sso.dao.JedisClientDao;
import com.lujiahao.sso.domain.Const;
import org.apache.commons.lang3.StringUtils;
import org.slf4j... | true |
ce3a94432eb443e6bf65ac502f286b73e7411487 | Java | riadhriadh/spring-boot-jwt | /src/main/java/com/riadh/farhati/controller/UserController.java | UTF-8 | 1,973 | 2.234375 | 2 | [] | no_license | package com.riadh.farhati.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.anno... | true |
ca6653bfcfd7a6f2c4d43fbfcb578811e296ce8a | Java | dmitrymurashenkov/frocate | /tasks/money-transfer/tests/src/test/java/com/frocate/money/transfer/test/expect/ExpectedTxTest.java | UTF-8 | 4,821 | 2.546875 | 3 | [] | no_license | package com.frocate.money.transfer.test.expect;
import com.frocate.money.transfer.balance.RollbackTxException;
import com.frocate.money.transfer.balance.UnknownException;
import org.junit.Test;
import static org.junit.Assert.*;
public class ExpectedTxTest
{
@Test
public void createTx_shouldGenerateUniqueTxId... | true |
dae98dcd274483c56f1737d95cf017ffd4e8b492 | Java | ltc17681102655/SpringAll | /22.Spring-Boot-Email/src/main/java/com/springboot/demo/collect/Postage.java | UTF-8 | 3,001 | 3.109375 | 3 | [
"MIT"
] | permissive | package com.springboot.demo.collect;
/**
* @auther: ltc
* @date: 2020/1/5 23:06
* @description:
*/
import java.io.*;
import java.net.URL;
import java.net.URLConnection;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Postage {
public static void main(String[] args) throws Excepti... | true |
642589ac909eab2c2866f49ae5ca8139df0c78fe | Java | icacic/csrapp | /src/main/java/hr/ericsson/etkca/service/dto/TicketCriteria.java | UTF-8 | 5,204 | 2.15625 | 2 | [] | no_license | package hr.ericsson.etkca.service.dto;
import java.io.Serializable;
import java.util.Objects;
import io.github.jhipster.service.Criteria;
import io.github.jhipster.service.filter.BooleanFilter;
import io.github.jhipster.service.filter.DoubleFilter;
import io.github.jhipster.service.filter.Filter;
import io.github.jhip... | true |
b9cbfd5e46df58b62847dd0833dacc168808cee9 | Java | t81lal/mcbot | /src/main/java/org/topdank/mc/bot/impl/entity/hanging/HangingEntity.java | UTF-8 | 372 | 2.140625 | 2 | [] | no_license | package org.topdank.mc.bot.impl.entity.hanging;
import org.topdank.mc.bot.api.entity.Entity;
import org.topdank.mc.bot.api.world.World;
public class HangingEntity extends Entity {
// hanging location
// direction
public HangingEntity(World world, int id, float defaultWidth, float defaultHeight) {
s... | true |
35ced6f164e73b3434af6bd1c46094f03244ece8 | Java | hejian3/Algorithms | /queues/Permutation.java | UTF-8 | 690 | 3.265625 | 3 | [] | no_license |
import edu.princeton.cs.algs4.StdIn;
import edu.princeton.cs.algs4.StdOut;
import java.util.Iterator;
public class Permutation {
public static void main(String[] args) {
int k = Integer.parseInt(args[0]);
RandomizedQueue<String> que = new RandomizedQueue<String>();
while (!StdIn.isEmp... | true |
3c30e64828f09a3abdf17482b6da4241ef196b14 | Java | jahsavage/shopping | /app/src/main/java/com/shopping/TillImp.java | UTF-8 | 1,369 | 2.765625 | 3 | [] | no_license | package com.shopping;
import android.support.annotation.NonNull;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
public class TillImp implements Till {
// private Stock mStock;
private StockItemWithDiscounts mStockItemWithDiscounts;
public TillImp(@NonNull StockItemWithDiscoun... | true |
c4ba97feee12f48dd945621504f8455ee34cba83 | Java | KevMorelli/Courses | /2017/01 - Java Bootcamp/finalproject/src/main/java/com/finalproject/repositories/CategoryRepository.java | UTF-8 | 226 | 1.601563 | 2 | [
"Apache-2.0"
] | permissive | package com.finalproject.repositories;
import org.springframework.data.repository.CrudRepository;
import com.finalproject.entities.Category;
public interface CategoryRepository extends CrudRepository<Category, String> {
}
| true |
c61537d99fb10e5a7af3c76ba265a14e25bcf04e | Java | goog00/gooweb | /basic/src/main/java/com/gooweb/leetcode/medium/Solution_92.java | UTF-8 | 1,420 | 3.328125 | 3 | [] | no_license | package com.gooweb.leetcode.medium;
import com.gooweb.leetcode.ListNode;
/**
* @author steng
* @description 反转链表II
* @date 2019-12-19 1:26 下午
**/
public class Solution_92 {
public static ListNode reverseBetween(ListNode head, int m, int n) {
if(head == null){
return null;
}
L... | true |
6bf88bf3c15dd2693e815c48e0b54088be6a6d60 | Java | arshmohd/sematext-agent-java | /spm-sender/src/main/java/com/sematext/spm/client/sender/util/HttpPostSinkPlayground.java | UTF-8 | 3,501 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed to Sematext Group, Inc
*
* See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Sematext Group, Inc licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the Li... | true |
eaf27896eaad53b51545e3960baa21f015fc78ab | Java | prasanthmathialagan/Academic-Projects | /SimpleDht/app/src/main/java/edu/buffalo/cse/cse486586/simpledht/Utils.java | UTF-8 | 14,584 | 2.359375 | 2 | [] | no_license | package edu.buffalo.cse.cse486586.simpledht;
import android.database.Cursor;
import android.database.MatrixCursor;
import android.net.Uri;
import android.util.Log;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.BufferedReader;
import java.io.BufferedWriter;
impor... | true |
c68f73ffc8b3af5a077a3545b4b063ab37b90539 | Java | ssindher11/DSA | /src/DynamicProgramming/DynamicProgramming/LongestIncreasingSubsequence.java | UTF-8 | 793 | 3.296875 | 3 | [] | no_license | package DynamicProgramming;
import java.util.Arrays;
import java.util.Scanner;
public class LongestIncreasingSubsequence {
static int findLIS(int[] arr, int n) {
int[] dp = new int[n + 1];
Arrays.fill(dp, 1);
for (int i = 1; i < n; i++) {
for (int j = 0; j < i; j++) {
... | true |
80be46f2f1fa60e1e8c0ac769d501536e8020369 | Java | GuiJunz/sctu-java-2019 | /1806101073刘玉江JAVA/src/lab_01/Test_07.java | UTF-8 | 685 | 3.328125 | 3 | [] | no_license | package lab_01;
import java.util.Random;
import java.util.Scanner;
public class Test_07 {
public static void main(String args[]){
Random rand = new Random();
int i = rand.nextInt();
i = rand.nextInt(100);
while (true) {
Scanner scan_input = new Scanner(System.in);
... | true |
d11acdf50096364cc4040e4e3db405187aadf1c4 | Java | Limeek/SportNewsApp | /app/src/main/java/ru/limeek/sportnewsapp/di/components/ViewComponent.java | UTF-8 | 488 | 1.859375 | 2 | [] | no_license | package ru.limeek.sportnewsapp.di.components;
import dagger.Subcomponent;
import ru.limeek.sportnewsapp.di.modules.ViewModelModule;
import ru.limeek.sportnewsapp.di.scope.ViewScope;
import ru.limeek.sportnewsapp.news.view.NewsActivity;
import ru.limeek.sportnewsapp.newsdetails.view.NewsDetailsActivity;
@ViewScope
@Su... | true |
ab52db360f0677e254d79f6fab3f9f15655b2a31 | Java | my-nguyen/hackerrank | /CTCI/HeapsMedian.java | UTF-8 | 1,350 | 4.125 | 4 | [] | no_license | import java.util.*;
class MyList {
int[] list;
int size;
MyList(int size) {
list = new int[size];
this.size = 0;
}
void shift(int index) {
for (int i = size; i > index; i--)
list[i] = list[i-1];
size++;
}
void add(int number) {
int i = ... | true |
eba0f96cd12e385633deb4b97ba143ac24ae1fe8 | Java | saminfante/GreenLightning | /greenlightning/src/main/java/com/ociweb/gl/impl/stage/PrivateTopicReg.java | UTF-8 | 996 | 1.96875 | 2 | [
"BSD-3-Clause"
] | permissive | package com.ociweb.gl.impl.stage;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.ociweb.gl.api.MsgCommandChannel;
import com.ociweb.gl.impl.ChildClassScannerVisitor;
import com.ociweb.gl.impl.schema.TrafficOrderSchema;
import com.ociweb.pronghorn.pipe.Pipe;
class PrivateTopicReg implements Child... | true |
9f9f5101dc8d8a67729a464f50569400bf2ffd13 | Java | sasidhar-siddam/CCL | /ORDER-R16/src/main/java/com/incomm/cclp/fsapi/service/OrderCancelService.java | UTF-8 | 265 | 1.5 | 2 | [] | no_license | package com.incomm.cclp.fsapi.service;
import java.util.Map;
import org.springframework.http.ResponseEntity;
public interface OrderCancelService {
public ResponseEntity<Object> orderCancelService(Map<String, Object> valueObj,Map<String, String> headerMap);
}
| true |
b54a46e5ca5ec285ff6971b0a4130cb340eb6461 | Java | McFloopyFace/FootballManager | /src/testen/CompetitieTest.java | UTF-8 | 3,902 | 2.75 | 3 | [] | no_license | package testen;
import static org.junit.Assert.*;
import mechanicsspel.Aanvaller;
import mechanicsspel.Competitie;
import mechanicsspel.RNG;
import mechanicsspel.Team;
import org.junit.Test;
public class CompetitieTest {
Competitie c1 = new Competitie();
Competitie c2 = new Competitie();
Team t1 = new Team("Baz... | true |
8adec34585a6ef78d74ef55ef526ac1ef183c92c | Java | spring-projects/spring-integration | /spring-integration-ip/src/main/java/org/springframework/integration/ip/AbstractInternetProtocolSendingMessageHandler.java | UTF-8 | 3,344 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2002-2023 the original author or authors.
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | true |
3b6cf132b1323735dcaee00718a26ac0f85a84f1 | Java | minesweepers-co/msmwApp | /app/src/main/java/co/minesweepers/mystockmyway/StockErrors.java | UTF-8 | 672 | 3 | 3 | [] | no_license | package co.minesweepers.mystockmyway;
/**
* This file contains all the error codes that are possible
* It also returns the error message for the error codes
*/
public class StockErrors {
public static final int JSON_PARSE_ERROR = 0;
public static final int DATE_PARSE_ERROR = 1;
public static final int UNKNOWN... | true |
194c2794b63ece389c952fdabcf3a28615b5cffb | Java | BenThomas33/practice | /java/src/CrackInterview/LinkedList/AddLinkedList.java | UTF-8 | 1,826 | 3.3125 | 3 | [] | no_license | package CrackInterview.LinkedList;
import Structs.ListFactory;
import Structs.ListNode;
/**
* Created by xin on 2/19/14.
*/
public class AddLinkedList {
public ListNode reverse(ListNode head){
if(head == null || head.next == null) return head;
ListNode tmp = head;
ListNode tmp2 = head.ne... | true |
83589fccc3ba67a551fd645f78807f7795c71337 | Java | yangbaoyan/SPM-Website | /src/main/java/com/example/entity/Course.java | UTF-8 | 2,659 | 2.5625 | 3 | [] | no_license | package com.example.entity;
import com.jeff.tianti.common.entity.BaseEntity;
import java.util.Collection;
import java.util.HashSet;
import java.util.Iterator;
/***********************************************************************
* Module: Course.java
* Author: Administrator
* Purpose: Defines the Class Cours... | true |
adb1fa5d7607eae48f90f614f68b0575bb72a6ea | Java | SPoint42/OWASP-GoatDroid-Project | /OWASP GoatDroid- GUI/src/org/owasp/goatdroid/webservice/fourgoats/dao/FGRewardDaoImpl.java | UTF-8 | 3,540 | 2.234375 | 2 | [] | no_license | /**
* OWASP GoatDroid Project
*
* This file is part of the Open Web Application Security Project (OWASP)
* GoatDroid project. For details, please see
* https://www.owasp.org/index.php/Projects/OWASP_GoatDroid_Project
*
* Copyright (c) 2012 - The OWASP Foundation
*
* GoatDroid is published by OWASP under the ... | true |
8d5b73ce091a2294f924d2acad6dddc346e7268b | Java | mpujari/ohcount4j | /src/test/java/com/blackducksoftware/ohcount4j/FileFinderTest.java | UTF-8 | 2,606 | 2.15625 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | /*
* Copyright 2016 Black Duck Software, Inc.
*
* 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 ... | true |
fb6b79a5fffbf8d82ceeab979238224120a4c14a | Java | Orphic16/Interview-Cake-Solutions | /src/solutions/ReverseStringInPlace.java | UTF-8 | 369 | 3.453125 | 3 | [] | no_license | package solutions;
public class ReverseStringInPlace {
public static String reverse(String str) {
char[] chars = str.toCharArray();
int front = 0;
int back = str.length() - 1;
while (front < back) {
char f = chars[front];
char b = chars[back];
chars[front] = b;
chars[back] = f;
front++;
... | true |
b2c18a30296fe163d1d1b2f61023d5950fcbc0e7 | Java | play3577/lmrezac-Super-Mario-Bros | /src/supermario/builder/PropertiesPanel.java | WINDOWS-1252 | 89,610 | 1.859375 | 2 | [] | no_license | //
// Decompiled by Procyon v0.5.29
//
package supermario.builder;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.BoxLayout;
impo... | true |
feb4018997e523cdbea3b101749ffe94c5fcf5a6 | Java | HaPhuoc/coffeeblend | /CoffeeBlendAdmin/src/main/java/com/group4/coffeeblend/MyAdminDetails.java | UTF-8 | 1,833 | 2.3125 | 2 | [] | no_license | package com.group4.coffeeblend;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Set;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrant... | true |
4295ef4d94274e24fc07a0423e652da05bc585a5 | Java | hoa-nx/EmployeeTrackerAndroid | /app/src/main/java/com/ussol/employeetracker/HisUserMainActivity.java | UTF-8 | 7,015 | 1.835938 | 2 | [] | no_license | /**
* Copyright (c) 2012 Fujinet Software Department 5 ( USSOL team)
* See the file license.txt for copying permission.
*/
package com.ussol.employeetracker;
import com.ussol.employeetracker.helpers.AlertDialogRadio.AlertPositiveListener;
import com.ussol.employeetracker.helpers.DatabaseAdapter;
import com.usso... | true |
b36ff74220f716dab451843299c5d55815148546 | Java | Ru-na-star/PraticeAllClass | /src/oop/abstruction/GeneralMotor.java | UTF-8 | 1,892 | 2.421875 | 2 | [] | no_license | package oop.abstruction;
public class GeneralMotor extends ModernCar implements Car,JavaBoostEnginee {
public void startCar() {
System.out.println("Genaral motor has start feature ");
}
public void stopCar() {
System.out.println("Genaral motor has stop feature ");
}
public ... | true |
f7e3c58043c927f598d514cf63a54f1712d9ad37 | Java | MD-dotcom/ProjetJavaEE | /src/main/java/com/master/ips/web/DescriptionController.java | UTF-8 | 8,851 | 2.0625 | 2 | [] | no_license | package com.master.ips.web;
import java.util.Collection;
import java.util.List;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.access.annotation.Secured;
import org.springfr... | true |
85f467fb195c29a32ff9e63df7e8440bf555a251 | Java | willgabrielaraujo/Freela | /app/src/main/java/com/freela/activity/CriarOportunidadeActivity.java | UTF-8 | 3,568 | 2.359375 | 2 | [] | no_license | package com.freela.activity;
import android.app.Activity;
import android.app.DatePickerDialog;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.DatePicker;
import android.widget.EditTe... | true |
3896f247dd14cf72394477e8606acd91556980b3 | Java | ArchitectingSoftware/PublicationServiceREST | /src/main/java/edu/drexel/controllers/PublicationController.java | UTF-8 | 1,548 | 2.203125 | 2 | [] | no_license | package edu.drexel.controllers;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org... | true |
b7f96d7a8346bcfa7758203d6732ea947c972707 | Java | zhzhd/algorithm | /src/java/com/zhzhd/leetcode/Anagram.java | UTF-8 | 941 | 3.734375 | 4 | [] | no_license | package com.zhzhd.leetcode;
/**
* zhzhd
* 2018-10-20
* algorithm
* 颠倒两个字符串中字母的顺序,能否使两个字符串一样
*/
public class Anagram {
public static boolean anagram(String s1, String s2){
if (s1 == null || s2 == null) {
return false;
}
if (s1.length() != s2.length()){
return f... | true |
1f56c911a34a8144744fb06de24371dc4f5c82c8 | Java | RafaelBlazquez/Programacion | /Tema 9/Ej 2/src/Vista/VEvento.java | UTF-8 | 18,054 | 2.1875 | 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 Vista;
import java.sql.SQLException;
import java.sql.Time;
import java.time.LocalDate;
import java.util.logging.Level;
import ... | true |
9cdaa26539ddd984fb96e6c0c69cc244f4909a67 | Java | templeblock/Portfolio | /ChessProj/Chess/app/src/main/java/com/neumont/dericson/chess/MoveManager.java | UTF-8 | 6,984 | 3.015625 | 3 | [] | no_license | package com.neumont.dericson.chess;
import com.neumont.dericson.chess.ChessPattern.Hinderance;
import java.util.ArrayList;
import java.util.List;
public class MoveManager {
private static final int SQUARE_ADD = BoardManager.getBoardLength();
private static Piece currBlocker, foundBlocker;
private static List<Piec... | true |
064fd71c8e7f6e89a84d2243ad7c4863baeb9883 | Java | majingyi/CCD_jchess | /Chess_Project/src/jchess/JChessApp.java | UTF-8 | 941 | 2.5 | 2 | [] | no_license | package jchess;
import org.jdesktop.application.Application;
import org.jdesktop.application.SingleFrameApplication;
import jchess.core.util.Logging;
import jchess.core.util.Settings;
import jchess.ui.JChessView;
/**
* The main class of the application.
* @author Jingyi Ma
*/
public class JChessApp extends Single... | true |
c602980047f71524a9a255b168860caa61730e3f | Java | dfleischhacker/elog-reasoner | /elog/src/de/elog/pelletReasoner/Reasoner.java | UTF-8 | 8,030 | 2.40625 | 2 | [] | no_license | package de.elog.pelletReasoner;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
import java.util.TreeSet;
import org.semanticweb.owlapi.model.OWLAxiom;
import org.semanticweb.owlapi.model.OWLClass;
import o... | true |
6f27f2f5d76e7ef06cb176b001c60fb58a28583f | Java | PMSchultz/HealthTrackerApp | /app/src/main/java/edu/cnm/deepdive/healthtracker/mainfragments/ListAllergyFragment.java | UTF-8 | 5,905 | 2.078125 | 2 | [] | no_license | package edu.cnm.deepdive.healthtracker.mainfragments;
import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.widget.Toolbar;
import android.text.Html;
import android.view.LayoutInflater;
import android.view... | true |
66b15999efc47fe2d2af4fab73027f7ae1e3f39f | Java | King-rainh/checkM | /rupeng-admin/src/main/java/com/rupeng/web/controller/RoleController.java | UTF-8 | 3,145 | 2.3125 | 2 | [] | no_license | package com.rupeng.web.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation... | true |
77290320877174d7c8cc0bacf4fdca6616f25abb | Java | muktar123/DataStructure | /data_structure/src/main/java/org/test/ds/progs/A.java | UTF-8 | 201 | 2.15625 | 2 | [] | no_license | package org.test.ds.progs;
public class A {
public static void foo(){
System.out.println("class A static method");
}
public void foo1(){
System.out.println("class A without static");
}
}
| true |
3c0dbe268d3327d7db31fcd46ec38a768191cf25 | Java | binweishuang/yumingoa | /src/runix/service/impl/ContractServiceImpl.java | UTF-8 | 2,113 | 2.171875 | 2 | [] | no_license | package runix.service.impl;
import java.util.List;
import java.util.Map;
import runix.persistent.dao.ContractDAO;
import runix.service.ContractService;
import runix.persistent.model.Contract;
/**
* 合同管理service实现类
*/
public class ContractServiceImpl implements ContractService {
private ContractDAO contractDAO;
... | true |
763d8f67a80f0f40d36bbc2e68f92a6502065fe4 | Java | kavandesai/MyLearnings | /Algo_practice/src/com/algo/learning/OutofBoundaryPaths.java | UTF-8 | 1,333 | 2.90625 | 3 | [] | no_license | package com.algo.learning;
//Leed code 576
public class OutofBoundaryPaths {
final long mod = 1000000007;
public int findPaths(int m, int n, int maxMove, int startRow, int startColumn) {
Long dp[][][] = new Long [m+1][n+1][maxMove+1];
return (int)findPaths(m,n,maxMove,startRow,startColumn,dp);... | true |
bd0fbf207bed57e2cf9bcfbdea4a1be72a071680 | Java | GlassSpirit/CustomRpg | /EclipsisCommon/src/main/java/noppes/npcs/containers/ContainerNPCCompanion.java | UTF-8 | 2,295 | 2.296875 | 2 | [] | no_license | package noppes.npcs.containers;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.EntityEquipmentSlot;
import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack;
import noppes.npcs.constants.EnumCompanionTalent;
import noppes.npcs.entity.EntityNPCInterface;
import noppes.np... | true |
edc3f3cd66a7000b7de87727a17686e7624e9411 | Java | AJ3281/projects | /Inventory/EmployeeInfo.java | UTF-8 | 57,950 | 1.90625 | 2 | [] | no_license | import java.awt.EventQueue;
import java.awt.Image;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.SwingConstants;
import java.awt.Font;
import javax.swing.JButton;
im... | true |
315da11aa6ab5d90e3c2bf5f6cd1f64a5965fa84 | Java | echushe/COMP9414 | /assignment_3/Agent/src/GlobalStrategy.java | UTF-8 | 438 | 2.90625 | 3 | [] | no_license | import java.util.Queue;
public class GlobalStrategy extends Strategy
{
private Queue<Character> m_g_moves;
public GlobalStrategy(Agent agent, Queue<Character> moves)
{
super(agent);
this.m_g_moves = moves;
}
@Override
public boolean construct()
{
while (!this.m_g_mo... | true |
e5ef7ed40dfd57efbb2dac66536d4a4962dd98f3 | Java | AnastasiiaFil/JavaHillel2020 | /HW2/src/com/company/Main.java | UTF-8 | 3,709 | 3.734375 | 4 | [] | no_license | package com.company;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// write your code here
int menu;
do {
printMenu();
Scanner in = new Scanner(System.in);
System.out.print("Enter menu number: ");
menu... | true |
37115a4fb83d4c7b6062387bf815fe0fdb7cd1f7 | Java | awesome-academy/Movie_01 | /app/src/main/java/com/example/project_movie_01/data/model/Genres.java | UTF-8 | 2,228 | 2.3125 | 2 | [] | no_license | package com.example.project_movie_01.data.model;
import com.example.project_movie_01.constant.Constant;
import com.example.project_movie_01.utils.StringUtils;
public class Genres {
private String mPopularity;
private String mVoteCount;
private String mPosterPath;
private String mId;
private String... | true |
d95a1141a080f4884e495c34066eec15b393b7e1 | Java | cwdesautels/fetcher.java | /src/main/java/org/fetcher/json/containers/TabObject.java | UTF-8 | 2,028 | 1.984375 | 2 | [
"MIT"
] | permissive | /**
* Copyright (C) 2011 by Carlin Desautels <carl.desautels@yahoo.com>
* 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 rights
* to... | true |
354a26e9f1308f9cfbb03c2d74b34612be7665ee | Java | ghelman/timelord | /src/main/java/net/chaosserver/timelord/swingui/TimelordTabbedPane.java | UTF-8 | 4,357 | 2.609375 | 3 | [] | no_license | /*
This file is part of Timelord.
Copyright 2005-2009 Jordan Reed
Timelord 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 3 of the License, or
(at your option) any later version.
Timelor... | true |
79431e87f0f7f0f32531e8e6fb070a6fc01a55ce | Java | juancho0506/jackrabbit-poc | /src/main/java/zemoga/poc/security/jackrabbit/POCMain.java | UTF-8 | 5,915 | 2.359375 | 2 | [] | no_license | /**
*
*/
package zemoga.poc.security.jackrabbit;
import javax.jcr.Node;
import javax.jcr.NodeIterator;
import javax.jcr.RepositoryException;
/**
* @author juantorres
*
*/
public class POCMain {
private static SecurityContentPOC contentService;
/**
* @param args
*/
public static void main(String[] args... | true |
97ed43028cc08658efd3e3a63829b479abbbae01 | Java | Goju-Ryu/xvm | /javatools/src/main/java/org/xvm/runtime/template/_native/reflect/xRTModuleTemplate.java | UTF-8 | 5,325 | 2.046875 | 2 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"CC-BY-4.0"
] | permissive | package org.xvm.runtime.template._native.reflect;
import java.util.Map;
import org.xvm.asm.ClassStructure;
import org.xvm.asm.ConstantPool;
import org.xvm.asm.ModuleStructure;
import org.xvm.asm.constants.ModuleConstant;
import org.xvm.asm.constants.TypeConstant;
import org.xvm.runtime.ClassComposition;
import org... | true |
02039d0d4ee70721abf4918f322aa840502f2c0c | Java | UjjwalGitter/CareZone | /app/src/main/java/com/ujjwalsingh/carezone/Fragment/MedicineFragment.java | UTF-8 | 2,314 | 2.109375 | 2 | [] | no_license | package com.ujjwalsingh.carezone.Fragment;
import android.content.Intent;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view... | true |
9d186f30264154a2b8a73dc13226d0f7f6ba635a | Java | s2iwi2s/fasttrackd-student-work | /group-final-january-2021/backend/src/main/java/com/cooksys/backend/controllers/UserController.java | UTF-8 | 1,949 | 2.140625 | 2 | [] | no_license | package com.cooksys.backend.controllers;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.... | true |
8cd7b9b8c4e9167029e4a0afcffabbc09bc43e47 | Java | nayan5565/Reminder | /app/src/main/java/com/shadhinlab/reminder/network/ApiClient.java | UTF-8 | 703 | 2.34375 | 2 | [] | no_license | package com.shadhinlab.reminder.network;
import retrofit2.Retrofit;
import retrofit2.converter.gson.GsonConverterFactory;
public class ApiClient {
private static Retrofit retrofit = null;
private static ApiInterface apiRequests;
private static String baseUrlPrayerTime = "http://api.aladhan.com/";
pub... | true |
37484d5430fd7b4f31d12bdc13841feaf5698f71 | Java | dGradinar/Lesson-3 | /IntermediateMiddleLevel/four.java | UTF-8 | 410 | 2.96875 | 3 | [] | no_license | package IntermediateMiddleLevel;
public class four {
public static void main(String[] args) {
String str = "ab23c24xd2d34d3";
str=str.replaceAll("[\\D]+"," ");
String[] numbers=str.split(" ");
int sum = 0;
for(int i=0;i<numbers.length;i++){
try{
sum+=Integer.parseInt(numbers[i]);
}... | true |
f680746acdf98a85b708e889a1c4789bc72c76f6 | Java | fb71/polymap4-core | /plugins/org.polymap.core.style/src/org/polymap/core/style/serialize/sld2/LineStyleSerializer.java | ISO-8859-1 | 4,221 | 1.984375 | 2 | [] | no_license | /*
* polymap.org
* Copyright (C) 2018, the @authors. All rights reserved.
*
* This 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 Foundation; either version 3.0 of
* the License, or (at your option) any la... | true |
aae5b64d35bc34526255752f4a0e63a7e69b988e | Java | HZKun/algorithm-datastruct | /src/main/java/vip/qmwk/leetcode/hot100_1/Test_56.java | UTF-8 | 2,232 | 3.546875 | 4 | [] | no_license | package vip.qmwk.leetcode.hot100_1;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.List;
/**
* 以数组 intervals 表示若干个区间的集合,其中单个区间为 intervals[i] = [starti, endi] 。
* 请你合并所有重叠的区间,并返回一个不重叠的区间数组,该数组需恰好覆盖输入中的所有区间。
* 输入:intervals = [[1,3],[2,6],[8,10],[15,18]]
... | true |
a3fcd078c7200e295a6d8ce3047e44506803c8e8 | Java | 362409960/lichuan | /search-list/src/main/java/com/li/design/order/ConcreateReciver.java | UTF-8 | 175 | 1.898438 | 2 | [] | no_license | package com.li.design.order;
public class ConcreateReciver extends Receiver {
@Override
public void doSomething() {
// TODO Auto-generated method stub
}
}
| true |
f6aae9a2de07e5a2032128f535547f0ba23a1391 | Java | 15831944/barry_dev | /src/Java/luoan/bean/Message.java | UTF-8 | 2,661 | 1.867188 | 2 | [] | no_license | package bean;
public class Message {
private String contact_unit;
private String contact;
private String zky_schoolLaoShi_name;
private String zky_schoolLaoShi_cloudid;
private String zky_schoolLaoShi_uname;
private String zky_instdate;
private String contact_phone;
private String contact_Email;
pr... | true |
62b75d6726014c3cffe50d217a98528526e58a65 | Java | minhkhanh/UofS-Java | /finalproject/JSqlServer/src/jsql/parse/OperatorMin.java | UTF-8 | 192 | 1.820313 | 2 | [] | no_license | /**
*
*/
package jsql.parse;
/**
* @author tmkhanh
*
*/
public class OperatorMin extends OperatorAggregate {
@Override
public String getKyHieu() {
return "MIN";
}
}
| true |
7e0434ff18066746fa2bf6105b846a3e845bc24a | Java | zhongxingyu/Seer | /Diff-Raw-Data/32/32_dac0ff6a6c0498f81f2c3079a665a49a2cc6d943/Client/32_dac0ff6a6c0498f81f2c3079a665a49a2cc6d943_Client_s.java | UTF-8 | 4,787 | 2.84375 | 3 | [] | no_license | package client;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;
import java.util.ArrayList;
import java.util.HashMap;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.... | true |
b321db5b25ca69959083ffdacb80e2e4831e21b7 | Java | google-code/cchlib | /cchlib-tools/src/main/java/com/googlecode/cchlib/tools/downloader/DownloadI_www_gifgirl_org.java | UTF-8 | 10,056 | 1.671875 | 2 | [] | no_license | package com.googlecode.cchlib.tools.downloader;
import java.net.MalformedURLException;
import java.net.URISyntaxException;
import java.util.Calendar;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.googlecode.cchlib.... | true |
3430f1864859199c4be0b802d546e5eafedb36cc | Java | Radica1face/bank_test | /src/main/java/com/test/bank/entity/Credit.java | UTF-8 | 2,903 | 2.515625 | 3 | [] | no_license | package com.test.bank.entity;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.LazyCollection;
import org.hibernate.annotations.LazyCollectionOption;
import javax.persistence.*;
import javax.validation.constraints.*;
import java.util.List;
import jav... | true |
b601bcd7128377496affa5f4e7db5255b63a0e34 | Java | kreddivari/LMS | /smi-dao/src/main/java/com/zen/smi/dao/BooksDAO.java | UTF-8 | 675 | 2.296875 | 2 | [] | no_license | package com.zen.smi.dao;
import java.io.Serializable;
import java.util.List;
import com.zen.smi.dao.entities.Book;
import com.zen.smi.dao.exception.GenericDAOException;
public interface BooksDAO extends BaseDAO<Book, Serializable> {
public void createUser(Book book) throws GenericDAOException;
public void updateB... | true |
102cae516d49d8e9d101edafdde9ba3628dde337 | Java | guanliqun/MobFox-Android-SDK | /src/main/java/com/adsdk/sdk/inlinevideo/InlineVideoView.java | UTF-8 | 7,484 | 1.78125 | 2 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | package com.adsdk.sdk.inlinevideo;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Handler;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebSettings;
imp... | true |
fe0e636c929fc771611a2c8430f19eb4e5f29cac | Java | oreillyalan88/Lotto-and-Banking-App | /src/ie/wit/exceptions/PasswLength.java | UTF-8 | 220 | 2.46875 | 2 | [] | no_license | package ie.wit.exceptions;
public class PasswLength extends Exception {
public PasswLength() {
super("Password must be at least 6 characthers long");
}
public PasswLength(String message) {
super(message);
}
}
| true |
c524151e20adf5e7ed2c18b03a76a415817aaa34 | Java | LizHuangLF/finCCC | /fragment/CodeFragment.java | UTF-8 | 19,107 | 1.6875 | 2 | [] | no_license | package com.exam.closet_f.fragment;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.util.Log;
import android.view.LayoutInflater;
impo... | true |
cb5dfb5e04bcd2b572411f986514155cbe51d907 | Java | Fliipflops/MVCWorkshop | /src/main/java/model/Customer.java | UTF-8 | 1,851 | 2.859375 | 3 | [] | no_license | package model;
public class Customer {
private int customerId;
private String initials;
private String prefix;
private String surName;
private String mobilePhone;
public Customer(int customerId, String initials, String prefix, String surName, String mobilePhone) {
this.customerId = cus... | true |
81e92e0b46c210aae82275824d1e039ebf36b7af | Java | gxlioper/collections | /gratewall/sjzx_ex/src/com/gwssi/dw/aic/bj/newmon/mov/txn/TxnMonMovDom.java | GB18030 | 2,600 | 2.25 | 2 | [] | no_license | package com.gwssi.dw.aic.bj.newmon.mov.txn;
import java.lang.reflect.Method;
import java.util.HashMap;
import cn.gwssi.common.context.TxnContext;
import cn.gwssi.common.dao.BaseTable;
import cn.gwssi.common.dao.impl.TableFactory;
import cn.gwssi.common.component.exception.ErrorConstant;
import cn.gwssi.common.compone... | true |
a833d47dbd90015ab7fb786af90989a9ac761000 | Java | Liuhp534/server-manager-central | /springboot-demo/src/main/java/cn/liuhp/base/config/ServiceAConfig.java | UTF-8 | 409 | 2.046875 | 2 | [] | no_license | package cn.liuhp.base.config;
import cn.liuhp.core.service.impl.ServiceAImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class ServiceAConfig {
/*
* 通过javaconfig配置bean服务,然后B去使用
* */
/*@Bean
public Servic... | true |
158e54045c5b9a1e556c5edb92286076eae3c31a | Java | matulja/InfluxDB | /src/main/java/MigrateAllData/ReadDataTool.java | UTF-8 | 1,933 | 2.5 | 2 | [] | no_license | package MigrateAllData;
import java.math.BigDecimal;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.util.*;
import java.util.concurrent.TimeUnit;
/**
* Created by mfehler on 04.07.17.
*/
public class ReadDataTool {
private ResultSet _resultSet;
private ... | true |
bb32d86c0ef30b10e058f923e60f79ad2f0a2a69 | Java | nckmml/ANXGallery | /src/ANXGallery/sources/com/miui/gallery/assistant/process/BaseImageTask.java | UTF-8 | 13,138 | 1.703125 | 2 | [] | no_license | package com.miui.gallery.assistant.process;
import android.database.Cursor;
import android.text.TextUtils;
import com.miui.gallery.Config;
import com.miui.gallery.GalleryApp;
import com.miui.gallery.assistant.algorithm.Algorithm;
import com.miui.gallery.assistant.library.LibraryConstants;
import com.miui.gallery.assis... | true |
ea1170df1220555d4904f9babbe7985ac40baefc | Java | davew1977/xapp | /xapp-tools/src/main/java/net/sf/xapp/application/editor/DefaultEditor.java | UTF-8 | 20,626 | 2.109375 | 2 | [] | no_license | /*
* Xapp (pronounced Zap!), A automatic gui tool for Java.
* Copyright (C) 2009 David Webber. All Rights Reserved.
*
* The contents of this file may be used under the terms of the GNU Lesser
* General Public License Version 2.1 or later.
*
* Software distributed under the License is distributed on an "AS... | true |
c9f6204f1895cfd27e2a55008d68eadaeb2c5e41 | Java | beomk5414/noticeProject | /workspace/SpringNotice/src/main/java/com/rsupport/notice/command/member/SignUpCheckCommand.java | UTF-8 | 267 | 1.617188 | 2 | [] | no_license | package com.rsupport.notice.command.member;
import java.util.Map;
import org.apache.ibatis.session.SqlSession;
import org.springframework.ui.Model;
public interface SignUpCheckCommand {
public Map<String, Object> execute(SqlSession sqlSession, Model model);
}
| true |
92c0da10d4420d01fa65558985de3244c015a275 | Java | zhao-qc/zstack | /sdk/src/main/java/org/zstack/sdk/sns/AddSNSSmsReceiverResult.java | UTF-8 | 366 | 1.742188 | 2 | [
"Apache-2.0"
] | permissive | package org.zstack.sdk.sns;
import org.zstack.sdk.sns.SNSSmsReceiverInventory;
public class AddSNSSmsReceiverResult {
public SNSSmsReceiverInventory inventory;
public void setInventory(SNSSmsReceiverInventory inventory) {
this.inventory = inventory;
}
public SNSSmsReceiverInventory getInventor... | true |
8db556cce59deb956af05e54f2b8115b6ebe1ae7 | Java | 16smerkel/merkel-cop3330-ex25 | /src/main/java/Main.java | UTF-8 | 1,469 | 3.890625 | 4 | [] | no_license | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("Please enter a new password.");
String thePassword = scanner.nextLine();
String rating;
int charCount = 0;
int letterC... | true |
b5c4875b4e95a47bac412ceb5e638a7414286ee6 | Java | vira-s/ELTE-Code-Guesser | /src/codeguesser_view/src/main/java/hu/edu/elte/codeguesser_view/action/ActionType.java | UTF-8 | 874 | 2.9375 | 3 | [] | no_license | package hu.edu.elte.codeguesser_view.action;
/**
* @author virabia on 5/12/2018
*/
public enum ActionType {
/**
* Exit game.
*/
EXIT("Exit"),
/**
* Guess is submitted.
*/
SUBMIT("Submit"),
/**
* Terminate the current game.
*/
GIVE_UP("Give Up"),
/**
... | true |
3b52c0fe3a03587ae2ee36a56c3129ccba12310e | Java | wellitongb/Mobius | /src/mobius.esc/escjava/tags/escjava-2-0b3/MobiusDirectVCGen/src/mobius/directVCGen/bicolano/Unarchiver.java | UTF-8 | 6,367 | 2.609375 | 3 | [] | no_license | package mobius.directVCGen.bicolano;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.LineNumberReader;
import java.io.PrintStream;
import java.util.Enumeration;
import java.util.Iterator;
import java.util.jar... | true |
45992e77295b7920d85d542bd74232c2ed5652d4 | Java | olybot/Projecte_Spring | /src/main/java/listener/CustomListener.java | UTF-8 | 958 | 2.046875 | 2 | [] | no_license | package listener;
import bean.ApplicationContextHandler;
import bean.UserContainer;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.serv... | true |
41e93af8b15687a097a20827badce21b6eb6cab3 | Java | abhibestdev/RagePermissions | /me/abhi/ragepermissions/group/GroupManager.java | UTF-8 | 2,146 | 2.65625 | 3 | [] | no_license | package me.abhi.ragepermissions.group;
import me.abhi.ragepermissions.RagePermissions;
import java.util.ArrayList;
import java.util.List;
public class GroupManager {
private RagePermissions plugin;
public List<Group> groupList;
public GroupManager(RagePermissions plugin) {
this.plu... | true |
79915975f809ae4245c7f1b05e352395147c5954 | Java | mithun-mathew/coding-practice | /src/net/mithunmathew/codingpractice/DFS_GraphAdjacencyList.java | UTF-8 | 1,089 | 3.40625 | 3 | [] | no_license | package net.mithunmathew.codingpractice;
import java.util.LinkedList;
public class DFS_GraphAdjacencyList {
private int V;
private LinkedList<Integer> adj[];
@SuppressWarnings("unchecked")
DFS_GraphAdjacencyList(int v){
this.V = v;
adj = new LinkedList[v];
for(int i=0; i<v; i++) {
adj[i] = new Linked... | true |
faa65b3755204699eaeea206f8447484bb82a16b | Java | drphrozen/thermosurveillancesystem | /NET2 Assignment 1/src/java/dk/iha/onk/group1/server/facades/UserFacade.java | UTF-8 | 1,846 | 2.328125 | 2 | [] | no_license | package dk.iha.onk.group1.server.facades;
import dk.iha.onk.group1.server.Authenticator;
import dk.iha.onk.group1.server.MeasurementMapper;
import dk.iha.onk.group1.server.ReadingStationMapper;
import dk.iha.onk.group1.server.SummaryMapper;
import dk.iha.onk.group1.server.dataTransferObjects.MeasurementDTO;
import dk.... | true |
4bf7348fbed2e830ec3d7b5b2ba0fccf93b739b3 | Java | amitayansh/JavaFundamentals | /src/com/amitclive/fundamentals/Example40.java | UTF-8 | 785 | 3.234375 | 3 | [] | no_license | package com.amitclive.fundamentals;
public class Example40 {
public static void main(String[] args) {
//short s = 32768; Compilation error: cannot convert int to short
// int i = 2147483648; Compilation error: The literal 2147483648 of type int is out of range
// long a =2147483648;Compilation error: Th... | true |
4c6868ed340e30c0a26a34d9b758cbf57f7bf92d | Java | Charlesccharris/ChapterSix | /src/chapter6/Homework6_30.java | UTF-8 | 2,555 | 4.25 | 4 | [] | no_license | public class Homework6_30 {
public static void main(String[] args) {
/*(Game: craps)
Craps is a popular dice game played in casinos.
Write a program to play a variation of the game, as follows:
Roll two dice. Each die has six faces represent... | true |
4769f2bd2e22c2c76b403851531c0c896c0179c0 | Java | Buyaa/eMedleg | /src/main/java/com/mn/emedleg/entity/cms/CComment.java | UTF-8 | 2,312 | 2.296875 | 2 | [] | no_license | package com.mn.emedleg.entity.cms;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import co... | true |
808455a410028293dda89fc3337e414e286b4fbc | Java | ephs-Java/ap-cs-final-project-the-erotimatikos | /src/Treadmill/hobo.java | UTF-8 | 599 | 2.59375 | 3 | [] | no_license | /* This is the method that is called when an action is performed.
* Over here I just simply show an error message if any of the text fields are empty or just show their names.
*/
package Treadmill;
import javax.swing.JOptionPane;
public class hobo{
public static void main(String[] args) {
... | true |
84a2f84c5bd5d8306c8af5b656564ec798746cb1 | Java | Annamariapoli/labUnoGrafoCorretto | /src/application/Model.java | UTF-8 | 1,881 | 2.640625 | 3 | [] | no_license | package application;
import java.util.LinkedList;
import java.util.List;
import org.jgrapht.GraphPath;
import org.jgrapht.Graphs;
import org.jgrapht.UndirectedGraph;
import org.jgrapht.alg.DijkstraShortestPath;
import org.jgrapht.graph.DefaultEdge;
import org.jgrapht.graph.SimpleGraph;
import bean.Connes... | true |
5e8152dcae84ee300684147a345b79bb1e520320 | Java | febrianwulandari/recyclerviewambildatainternet | /app/src/main/java/com/iky/myapi/OnClickListener.java | UTF-8 | 95 | 1.554688 | 2 | [] | no_license | package com.iky.myapi;
public interface OnClickListener {
void aksiKlik(int position);
}
| true |
fceb7a7e4a1865691242c7ddde632a6e2ce2bea7 | Java | jackmahuayun/blog | /src/main/java/com/decade/blog/vo/Result.java | UTF-8 | 1,465 | 2.5 | 2 | [] | no_license | package com.decade.blog.vo;
import com.decade.blog.enums.ResultEnum;
import lombok.Data;
import java.util.HashMap;
import java.util.Map;
/**
* @author decade
* @create 2019-11-23 19:46
*/
@Data
public class Result {
/**
* 错误码
*/
private Integer code;
/**
* 提示信息
*/
private Str... | true |
0a27c15035d9d4a28837fce6069e2262fc8163d8 | Java | gcorreageek/proyectosETC | /proySpringMvcHibernateTransacciones/src/main/java/com/haribon/controller/Inicio.java | UTF-8 | 1,498 | 2.296875 | 2 | [] | no_license | package com.haribon.controller;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import com.haribon.model.Area;
import com... | true |
71c8a0b008483d09fc7da917e89c4cf5e3d4f5cd | Java | sarojrout/Algo | /src/com/demo/graph/BFSGraph.java | UTF-8 | 1,065 | 3.671875 | 4 | [] | no_license | package com.demo.graph;
import java.util.LinkedList;
public class BFSGraph {
int v;
LinkedList<Integer> adjacencyList[];
BFSGraph(int v){
this.v=v;
adjacencyList = new LinkedList[v];
for(int i=0; i< v; i++) {
adjacencyList[i]=new LinkedList<>();
}
}
void addEdge(int v, int w) {
adjacencyList[v].... | true |
845c6ec03d11b19ee94c0b4dbf92147f6997a34e | Java | zengsn/wesites | /src/legacy/_irest-massage-chair/src/main/java/com/gizwits/dao/AccountRepository.java | UTF-8 | 250 | 1.515625 | 2 | [] | no_license | package com.gizwits.dao;
import org.springframework.data.repository.PagingAndSortingRepository;
import com.gizwits.domain.Account;
/**
* @author Marvel
*/
public interface AccountRepository extends PagingAndSortingRepository<Account, Long> {
}
| true |
112b1cd4c44ad06bbf60b89bdbb1b13cfc59946e | Java | wecoderBao/starjobs | /starjobs/src/main/java/com/starjobs/mapper/TFeedbackMapper.java | UTF-8 | 868 | 1.75 | 2 | [
"Apache-2.0"
] | permissive | package com.starjobs.mapper;
import com.starjobs.pojo.TFeedback;
import com.starjobs.pojo.TFeedbackExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface TFeedbackMapper {
int countByExample(TFeedbackExample example);
int deleteByExample(TFeedbackExample example);
i... | true |