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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
72e94a908a16d6b20079d2f8b3236758e9f2d5dc | Java | JuanParker1/AIPlatform | /src/main/java/org/mitre/harmony/view/dialogs/exporters/AbstractExportDialog.java | UTF-8 | 6,981 | 2.40625 | 2 | [
"Apache-2.0"
] | permissive | // (c) The MITRE Corporation 2006
// ALL RIGHTS RESERVED
package org.mitre.harmony.view.dialogs.exporters;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.GridLayout;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Vector;
import javax.swi... | true |
2af02eab25de187a51446d536ed7473e26a1f811 | Java | emilianbold/netbeans-releases | /autoupdate.services/src/org/netbeans/modules/autoupdate/updateprovider/AutoupdateCatalogProvider.java | UTF-8 | 6,955 | 1.5625 | 2 | [] | no_license | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved.
*
* Oracle and Java are registered trademarks of Oracle and/or its affiliates.
* Other names may be trademarks of their respective owners.
*
* The contents of this file are su... | true |
266ed8366ee05206a9b6af7739494a797d5b5845 | Java | malaxoff/WebBookShopNewProject | /src/main/java/dao/UsersDAO.java | UTF-8 | 219 | 1.945313 | 2 | [] | no_license | package dao;
// Интерфейс доступа к данным таблицы "Пользователи"
public interface UsersDAO {
public boolean isUserByLoginPassword(String login, String password);
}
| true |
2fe51857478f2af5a2a22eb9bd205f33567ba48c | Java | Leroy-Merlin-France/lm-labs | /lm-labs-webapp/src/main/java/com/leroymerlin/corp/fr/nuxeo/freemarker/TableOfContentsGenerator.java | UTF-8 | 5,179 | 2.53125 | 3 | [] | no_license | package com.leroymerlin.corp.fr.nuxeo.freemarker;
import org.apache.commons.lang.StringUtils;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
public class TableOfContentsGenerator {
public static final String DEFAULT_UL_CLASS = "page-toc";... | true |
0c75d2ccc6c94552612809794de89ec1339121b6 | Java | xknower/source-code-jdk-8u211 | /rt/sun/awt/shell/ShellFolder.java | UTF-8 | 19,210 | 2.15625 | 2 | [] | no_license | /* */ package sun.awt.shell;
/* */
/* */ import java.awt.Image;
/* */ import java.awt.Toolkit;
/* */ import java.io.File;
/* */ import java.io.FileNotFoundException;
/* */ import java.io.IOException;
/* */ import java.io.ObjectStreamException;
/* */ import java.util.Collections;
/* ... | true |
6b4018c7d9501977d6d8fc6dc4a5a09189591860 | Java | hejiaxu/JavaCode | /src/main/java/com/code/syntax/IteratorImp.java | UTF-8 | 819 | 3.421875 | 3 | [] | no_license | /**
*
*/
package com.code.syntax;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
/**
* Jiaxu
* Jun 26, 2017
*
*/
public class IteratorImp {
public static void main(String[] args) {
// TODO
Node node = new IteratorImp().new Node(),node2=node;
for (int i = 0; i < 5; i++)... | true |
fe52bdd1769aeb6650d4436838137a0260cb2912 | Java | HG0517/android_grb2 | /app/src/main/java/com/jgkj/grb/ui/activity/PublishCommentsActivity.java | UTF-8 | 10,347 | 1.820313 | 2 | [] | no_license | package com.jgkj.grb.ui.activity;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.Recycle... | true |
f671868efff736a861ed534916a197e0d0586e51 | Java | rootmelo92118/analysis | /sources/com/crashlytics/android/answers/RetryManager.java | UTF-8 | 810 | 2.453125 | 2 | [] | no_license | package com.crashlytics.android.answers;
import p000a.p001a.p002a.p003a.p004a.p007c.p008a.C0063e;
class RetryManager {
private static final long NANOSECONDS_IN_MS = 1000000;
long lastRetry;
private C0063e retryState;
public RetryManager(C0063e eVar) {
if (eVar != null) {
this.retr... | true |
38f9e4b87cb19d01feff235e1b7756665b48a583 | Java | changanjennifer/JAVA-01 | /Week_04/homework02/src/main/java/com/yhh/concurrent/CompletableFutureTask05.java | UTF-8 | 807 | 3.046875 | 3 | [] | no_license | package com.yhh.concurrent;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.Executors;
import java.util.concurrent.ExecutorService;
public class CompletableFutureTask05 {
public static void main(String[] args) throws Exception {
int result =0;
long start=System.currentTimeMillis();
... | true |
35db9ba9ed9ffc0e301d10c493541486e5fa5ccc | Java | JkGraceStone/exercise | /JavaData/src/HuaWei/ZWei2.java | UTF-8 | 1,463 | 3.140625 | 3 | [] | no_license | package HuaWei;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class ZWei2 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int max =0;
int maxFirst =0;
int maxSencond =0;
int maxThird =0;
int count ... | true |
5f2a2c7e082e9f3ba69917698e4d53d33305711d | Java | evilsoldier/WebServicePMDM | /src/main/java/com/kohls/schemas/cdm/producttypescdm/v1/DepartmentSizeAssociationType.java | UTF-8 | 7,165 | 1.757813 | 2 | [] | no_license |
package com.kohls.schemas.cdm.producttypescdm.v1;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlSche... | true |
f4faa2ae4f2c3953be85d32d4acdcf1924f92a87 | Java | jarekj/Palindrom | /src/Main.java | UTF-8 | 770 | 3.453125 | 3 | [] | no_license | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
System.out.println(isPalindrom("jarekkeraj"));
System.out.println(isPalindrom("jarekeraj"));
System.out.println(isPalindrom("Ala"));
System.out.println(isPalindrom("Jarek"));
Sys... | true |
3a2100dda95f82f27df57b1c1c8bac1d43ef60ee | Java | TransportSDN/onos | /utils/yangutils/datamodel/src/main/java/org/onosproject/yangutils/datamodel/YangAppErrorInfo.java | UTF-8 | 1,477 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | /*Copyright 2016.year Open Networking Laboratory
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 |
c6b10a4fedf5e9cee391c2bbc3edc6cea82c51bc | Java | RaulCapellanFernandez/PetVet | /src/InterfacePetVet/BuscadorAuxiliar.java | UTF-8 | 11,612 | 2.09375 | 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 InterfacePetVet;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
/**
*
* @... | true |
8bebe10ff7e67d06fe8cb1b777b563c1d9712054 | Java | baloghtimi/Onlab | /Runtime/FreshmanCamp.tests/src/FreshmanCamp/freshmanCamp/tests/ColorSeniorTest.java | UTF-8 | 1,399 | 2.046875 | 2 | [] | no_license | /**
*/
package FreshmanCamp.freshmanCamp.tests;
import FreshmanCamp.freshmanCamp.ColorSenior;
import FreshmanCamp.freshmanCamp.FreshmanCampFactory;
import junit.textui.TestRunner;
/**
* <!-- begin-user-doc -->
* A test case for the model object '<em><b>Color Senior</b></em>'.
* <!-- end-user-doc -->
* @generate... | true |
6f2414147456bb0a089cadfcbd2d526c246ac77d | Java | cmFodWx5YWRhdjEyMTA5/smell-and-machine-learning | /ast_results/geometer_FBReaderJ/fbreader/app/src/main/java/org/geometerplus/android/fbreader/preferences/ZLStringChoicePreference.java | UTF-8 | 746 | 1.703125 | 2 | [] | no_license | // isComment
package org.geometerplus.android.fbreader.preferences;
import android.content.Context;
import org.geometerplus.zlibrary.core.options.ZLStringOption;
import org.geometerplus.zlibrary.core.resources.ZLResource;
class isClassOrIsInterface extends ZLStringListPreference {
private final ZLStringOption is... | true |
a40f3cbaa153097b749c0d0b9a58a5d7aff6465e | Java | Wangyueyang161111/NJU_SE | /NJU-SE/设计模式源码/DesignPattern/Factory/AbstractFactory/Pizza/LDCheesePizza.java | UTF-8 | 210 | 2.53125 | 3 | [] | no_license | package DesignPatthern.Factory.AbstractFactory.Pizza;
public class LDCheesePizza extends Pizza {
@Override
public void prepare() {
System.out.println("正在准备伦敦芝士披萨");
}
}
| true |
7c515595da96e9eb6030995e40635442b98753b4 | Java | SmartReminder2/OOAD_PROJECT_2017 | /src/classes/GroupDetail.java | UTF-8 | 1,041 | 2.5 | 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 classes;
import java.io.Serializable;
import javax.persistence.*;
/**
*
* @author kan
*/
@Entity
public class GroupDetail... | true |
7d905d29429bb4d2e6a8e957dd8e96b3658b75b8 | Java | magefree/mage | /Mage/src/main/java/mage/abilities/common/DealsCombatDamageTriggeredAbility.java | UTF-8 | 2,595 | 2.828125 | 3 | [
"MIT"
] | permissive | package mage.abilities.common;
import mage.abilities.TriggeredAbilityImpl;
import mage.abilities.effects.Effect;
import mage.constants.Zone;
import mage.game.Game;
import mage.game.events.DamagedBatchEvent;
import mage.game.events.DamagedEvent;
import mage.game.events.GameEvent;
/**
* This triggers only once for eac... | true |
386c12d5a6be3f2ae1e31cf95399e74976c85bbf | Java | radtek/cellbank | /android/LLK/src/com/turen/llk/listeners/FriendParser.java | UTF-8 | 4,825 | 2.203125 | 2 | [] | no_license | package com.turen.llk.listeners;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import com.renren.api.connect.android.Renren;
import com... | true |
0599d7eb9419374b8706afef72fe5d8963a6f26e | Java | qiao-zhi/bs-pig | /src/main/java/cn/qs/controller/user/UserController.java | UTF-8 | 3,762 | 2.265625 | 2 | [] | no_license | package cn.qs.controller.user;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.collections.MapUtils;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.spring... | true |
92799ac02e276397fb89c9fea468132c02885d1c | Java | UriSha/rubiksCube | /src/Cube.java | UTF-8 | 13,767 | 3.859375 | 4 | [] | no_license |
/**
* Represents the cube's state
* <p>
* front - the cube's front face, looking from the arm's point of reference
* all other faces are according to the above point of reference
*/
class Cube {
private final static int dim = 3;
// Directions point of reference: Robot's arm is front
private Face fr... | true |
4821f28520597f34ec38df1b16b987bfad3bcc9b | Java | yzz1991/MLChat | /app/src/main/java/net/melove/app/chat/call/MLCallReceiver.java | UTF-8 | 2,455 | 2.453125 | 2 | [
"MIT"
] | permissive | package net.melove.app.chat.call;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import com.hyphenate.chat.EMClient;
import net.melove.app.chat.app.MLConstants;
/**
* 通话呼叫监听广播实现,用来监听其他账户对自己的呼叫
*/
public class MLCallReceiver extends BroadcastReceiver {
... | true |
92cdf46c1d973a9b62f90ab39203ee27420a5a42 | Java | VenkateshBhatOP/PGJQP_Venkatesh-bhat | /Java assignment(3-4)/Java assignment 4/MatrixTranspose.java | UTF-8 | 713 | 3.53125 | 4 | [] | no_license | import java.util.*;
public class MatrixTranspose {
int m,n;
void accept()
{
Scanner sc=new Scanner(System.in);
System.out.println("Enter the number of rows and columns: ");
m=sc.nextInt();
n=sc.nextInt();
int a[][]=new int[m][n];
System.out.println("Enter the elements :");
for(int i=0;i<m;i++)
... | true |
cc3e9480993a8c1840d913dbb1b1a100d9b82500 | Java | Bivis-s/Java-QA-Courses | /lesson3/Ex5.java | UTF-8 | 1,802 | 4.0625 | 4 | [] | no_license | import java.util.Arrays;
import java.util.Random;
//Создайте 2 массива из 5 случайных целых чисел из отрезка [0;15] каждый,
//выведите массивы на экран в двух отдельных строках. Посчитайте среднее
//арифметическое элементов каждого массива и сообщите, для какого из
//массивов это значение оказалось больше (либо сообщи... | true |
6abb13a8b07e93e4b4481cd4119e0160be0d3a6e | Java | Hronom/concurrent-matrices-multiplication | /src/main/java/com/github/hronom/concurrentmatricesmultiplication/matrix/BadMatrixDataSizeException.java | UTF-8 | 216 | 1.929688 | 2 | [] | no_license | package com.github.hronom.concurrentmatricesmultiplication.matrix;
public class BadMatrixDataSizeException extends Exception {
public BadMatrixDataSizeException() {
super("Bab data for matrix");
}
}
| true |
f50840a1b196b81677f4d46aed2da73e024c3216 | Java | osuisumi/ss | /sip-echarts/sip-echarts-core/src/main/java/com/haoyu/sip/echarts/dao/IStatChartsDao.java | UTF-8 | 657 | 1.757813 | 2 | [] | no_license | /**
*
*/
package com.haoyu.sip.echarts.dao;
import java.util.List;
import java.util.Map;
import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
import com.haoyu.sip.echarts.entity.StatCharts;
/**
* @author lianghuahuang
*
*/
public interface IStatChartsDao {
StatCharts selectStatChartsById(String id... | true |
6990e04a6231be5484c1ad572fdf5aac3d105cc5 | Java | JetBrains/MPS | /languages/languageDesign/constraints/legacy/source_gen/jetbrains/mps/lang/constraints/migration/ConstraintCanBeFunctions_NodeToConcept.java | UTF-8 | 3,544 | 1.53125 | 2 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package jetbrains.mps.lang.constraints.migration;
/*Generated by MPS */
import jetbrains.mps.lang.migration.runtime.base.MigrationScriptBase;
import org.jetbrains.mps.openapi.model.SNode;
import org.jetbrains.mps.openapi.module.SModule;
import jetbrains.mps.lang.migration.runtime.base.Problem;
import java.util.List;
... | true |
06b875058fb647c93306a2cc3a7a6f1865ba961d | Java | neshdev/Algorithms-Design-and-Analysis-Part-1 | /algo-stanford/src/main/java/week4/SCC.java | UTF-8 | 2,559 | 3.234375 | 3 | [] | no_license | package week4;
import week3.SeparateChainingHashSet;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
/**
* Created by admin on 8/10/2016.
*/
public class SCC {
public static void main(String[] args) {
int v = 10;
DirectedGraph g = new DirectedGraph(v);
g.a... | true |
e1afcc3ced5fad6ce66aa014e58eb5c1be731fc6 | Java | nishant9665/Selenium_Basic | /src/jd/FireFoxOpen.java | UTF-8 | 989 | 2.140625 | 2 | [] | no_license | package jd;
import java.io.File;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxBinary;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.firefox.FirefoxOptions;
import org.openqa.selenium.remote.DesiredCapabilities;
public class FireFoxOpen {
... | true |
0f4aa59a04013a98bfea638e89b1f003f732f452 | Java | nguyendangtu/algorithm | /src/main/java/datastructure/MyArray.java | UTF-8 | 553 | 3.75 | 4 | [] | no_license | package datastructure;
import java.util.Arrays;
import java.util.stream.Collectors;
/***
* Array is a collection of items stored at contiguous memory allocation. An Array will have size, index, value at index
*
*/
public class MyArray {
public static void main(String args[]) {
String[] arrays = new Str... | true |
d0f556aff226516f231093d191134cd8e1a1257c | Java | theanh2010/C0920G1-TuongTheAnh | /module2/src/session_01/bai_tap/ChuyenDoiTienTe.java | UTF-8 | 391 | 2.875 | 3 | [] | no_license | package session_01.bai_tap;
import java.util.Scanner;
public class ChuyenDoiTienTe {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.println("nhập số tiền muốn chuyển (USD) :");
double vnd = input.nextDouble();
double usd = vnd * 23000;
... | true |
5f1e3dae9c88799e2e865d0322fb01a7ba677512 | Java | sshukla154/spring-security | /Fundamentals/ss-form-based-custom-authenciation-provider/src/main/java/com/frontier/spring/security/controller/HelloController.java | UTF-8 | 415 | 2.1875 | 2 | [] | no_license | package com.frontier.spring.security.controller;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@Slf4j
@RestController
public class HelloController {
@GetMapping("/hello")
public String getHello(){
... | true |
272172f2947c2a3178393957768536771d9f2552 | Java | Safia-Safia/Todoc_Projet5 | /app/src/main/java/com/cleanup/todoc/database/dao/TaskDao.java | UTF-8 | 1,598 | 2.15625 | 2 | [] | no_license | package com.cleanup.todoc.database.dao;
import android.arch.lifecycle.LiveData;
import android.arch.persistence.room.Dao;
import android.arch.persistence.room.Delete;
import android.arch.persistence.room.Insert;
import android.arch.persistence.room.OnConflictStrategy;
import android.arch.persistence.room.Query;
import... | true |
735ff34a27f5d5236170f1b3a3fe2d0013d5ed62 | Java | JessicaFreua/ExerciciosSisOp | /OutraSolucao/src/com/company/Filosofo.java | UTF-8 | 1,672 | 3.15625 | 3 | [] | no_license | package com.company;
import java.util.Random;
import static com.company.SortAuxClass.getClockSec;
public class Filosofo extends Thread{
//region Attributes
public int idFilosofo;
private Mesa mesa;
private final Random gerador = new Random();
int contador=0;
int tentouPegar=0;
boolean sa... | true |
b351ab6d1db73e4942df01443ff2aff99ed14ea5 | Java | armele/DiceRollerGUI | /src/main/java/com/deathfrog/ui/initiative/InitiativeDisplayGroup.java | UTF-8 | 26,725 | 1.898438 | 2 | [] | no_license | package com.deathfrog.ui.initiative;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Scanner;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.eclipse.swt.SWT;
import org.eclipse.swt.... | true |
b3c6271034110d65b6cb3515d6446f2ab7d9c008 | Java | witaste/spring-mvc-showcase | /src/main/java/org/springframework/common/constants/ApplicationConstants.java | UTF-8 | 1,925 | 1.875 | 2 | [] | no_license | package org.springframework.common.constants;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
@Component
public class ApplicationConstants {
public static String SWAGGER_PATH;
public static S... | true |
e6c71b598132b583072bc26a980ea185ac3168c8 | Java | jackorse/AgoraBot | /src/main/java/AgoraBot/client/LetsEncryptHttpClient.java | UTF-8 | 2,034 | 2.234375 | 2 | [] | no_license | package AgoraBot.client;
import com.google.inject.Singleton;
import AgoraBot.cookie.LoginCookieFetcher;
import org.apache.http.impl.client.CloseableHttpClient;
import javax.net.ssl.SSLContext;
import javax.net.ssl.TrustManagerFactory;
import java.io.InputStream;
import java.nio.file.Files;
import java.nio.file.Path;
... | true |
0d99df279246d792779cfd6bc269691606a864ad | Java | xiongchiamiov/Project-3 | /roundup/RoundupHallOfFameEntry.java | UTF-8 | 344 | 2.390625 | 2 | [] | no_license | package roundup;
import gridgame.HallOfFameEntry;
public class RoundupHallOfFameEntry
{
public static HallOfFameEntry<String> generate(int seconds, int gameNumber, String moveList, String name)
{
return new HallOfFameEntry<String>(seconds / 60 + ":" + String.format("%02d", seconds % 60) + " " + gameNumber + " " +... | true |
b9c318bf2af4acb3cc6e5f95d8982de42f76ade0 | Java | LingjuAI/AssistantBySDK | /app/src/main/java/com/lingju/assistant/player/exception/MediaBufferIOException.java | UTF-8 | 568 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | package com.lingju.assistant.player.exception;
/**
* Created by Administrator on 2016/11/19.
*/
public class MediaBufferIOException extends LingjuPlayException {
public MediaBufferIOException(int code) {
super(code);
}
public MediaBufferIOException(int code, String detailMessage) {
super... | true |
5296e393d33ad42334b82ea24f2f521bcd426790 | Java | dariofabbri/docker-microservices-test | /first-service/src/main/java/it/eng/test/netflix/firstservice/Model.java | UTF-8 | 1,076 | 2.703125 | 3 | [] | no_license | package it.eng.test.netflix.firstservice;
import java.util.Date;
import org.apache.commons.lang3.RandomStringUtils;
import org.apache.commons.lang3.RandomUtils;
public class Model {
String name;
String surname;
Integer age;
Date birthdate;
public String getName() {
return name;
}
public void setName(Stri... | true |
9fc746cef152dc2dd6fd160d4be611c8497356d2 | Java | YuanLicc/interview | /algorithm/src/main/java/com/yl/learn/algorithm/r20210111/OneZeroFive.java | UTF-8 | 1,458 | 3.21875 | 3 | [] | no_license | package com.yl.learn.algorithm.r20210111;
import com.yl.learn.algorithm.TreeNode;
import junit.framework.TestCase;
/**
* 前序遍历 preorder = [3,9,20,15,7]
* 中序遍历 inorder = [9,3,15,20,7]
*
* 返回如下的二叉树:
*
* 3
* / \
* 9 20
* / \
* 15 7
*/
public class OneZeroFive extends TestCase {
//[3,9... | true |
88ba5e2ffe4a81d1f4aea10b78a8af01b090257d | Java | cgaskill/levelsix | /src/main/java/com/levelsix/site/user/UserService.java | UTF-8 | 459 | 1.9375 | 2 | [
"Apache-2.0"
] | permissive | package com.levelsix.site.user;
import com.levelsix.site.user.domain.User;
import com.levelsix.site.user.domain.UserDto;
import org.springframework.security.core.userdetails.UserDetailsService;
import java.util.Optional;
/**
* Created by cgaskill on 5/14/16.
*/
public interface UserService extends UserDetailsServi... | true |
c80686cfc57220fb26b366f3941fb8d9533f3d6f | Java | RaulOrtegaPxltd/Geodash3 | /WEB-INF/src/com/pxltd/mstr/tasks/GeodashActionSaveLayerTask.java | UTF-8 | 4,618 | 2.046875 | 2 | [] | no_license | package com.pxltd.mstr.tasks;
import com.microstrategy.utils.StringUtils;
import com.microstrategy.web.app.beans.AppContext;
import com.microstrategy.web.app.tasks.AbstractAppTask;
import com.microstrategy.web.app.tasks.AppTaskRequestContext;
import com.microstrategy.web.app.tasks.architect.json.JSONException;
import ... | true |
b88858a2b0bdb086327fe5e1a6bbfa7e05a0c60a | Java | linfelix167/RxJava-RxAndroid | /app/src/main/java/com/felix/MainActivity.java | UTF-8 | 5,172 | 2.359375 | 2 | [] | no_license | package com.felix;
import android.arch.lifecycle.ViewModelProviders;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;
import java.io.IOException;
import java.util.List;
import java.util.concurrent.ExecutionException;
import io.reactiv... | true |
a746182a4c98bdb1f1256503bb3783ae75f27860 | Java | cyberdrcarr/guvnor | /guvnor-webapp-drools/src/main/java/org/drools/guvnor/client/explorer/navigation/qa/testscenarios/ScenarioWidgetComponentCreator.java | UTF-8 | 7,430 | 1.5625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2010 JBoss 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 or agreed to ... | true |
a31b5b9693356bedc956bf281c793d037898471d | Java | JackD1209/PointOfSale | /app/src/main/java/floatingcube/pointofsale/models/PromotionModel.java | UTF-8 | 585 | 1.96875 | 2 | [] | no_license | package floatingcube.pointofsale.models;
import com.activeandroid.Model;
import com.activeandroid.annotation.Column;
import com.activeandroid.annotation.Table;
@Table(name = "Promotions")
public class PromotionModel extends Model {
@Column(name = "name")
public String name;
@Column(name = "type")
pu... | true |
bf40dd9151d57ea7dbabf6ca45e461a6ed86fef8 | Java | manussss/TeseusStore | /src/dao/ProdutoDAO.java | ISO-8859-1 | 5,656 | 2.859375 | 3 | [] | no_license | package dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import model.Produto;
public class ProdutoDAO {
/*static {
try {
Class.forName("com.mysql.jdbc.Driver");
} catch (ClassNotFoundException e) {
th... | true |
f98aeec2ee78e20ba0939beff18cf01b48b957b0 | Java | WilliamBundy/HungerOverhaul | /src/iguanaman/hungeroverhaul/ModuleRandomPlants.java | UTF-8 | 736 | 1.992188 | 2 | [] | no_license | package iguanaman.hungeroverhaul;
import assets.pamrandomplants.PamRandomPlants;
import net.minecraft.block.Block;
import net.minecraft.item.Item;
import thaumcraft.api.ThaumcraftApi;
import thaumcraft.api.aspects.Aspect;
import thaumcraft.api.aspects.AspectList;
import cpw.mods.fml.common.Loader;
public class Module... | true |
fc33bd33bf4e647c33113a99c65a9f5446b48de5 | Java | sushiltwc/RCAAndroidApp | /app/src/main/java/com/twc/rca/product/model/DVProduct.java | UTF-8 | 3,892 | 2.375 | 2 | [] | no_license | package com.twc.rca.product.model;
import android.os.Parcel;
import android.os.Parcelable;
/**
* Created by Sushil on 22-02-2018.
*/
public class DVProduct implements Parcelable {
private String product_id;
private String product_name;
private String product_validity;
private String product_type;
... | true |
383ccfbd931e0a2dd478d334ed54ab2c2da9e300 | Java | deriklpw/RxJavaDemo | /app/src/main/java/com/derik/rxjavademo/data/Course.java | UTF-8 | 539 | 2.5625 | 3 | [] | no_license | package com.derik.rxjavademo.data;
/**
* Created by derik on 18-3-6.
* Email: weilai0314@163.com
*/
public class Course {
private String name;
private float score;
public Course(String name, float score) {
this.name = name;
this.score = score;
}
public String getName() {
... | true |
ac5de27bd264e05d68d1ea78c510bf36d412c93e | Java | banjjoknim/edit | /src/main/java/com/app/edit/response/user/PostUserRes.java | UTF-8 | 424 | 1.6875 | 2 | [
"Apache-2.0"
] | permissive | package com.app.edit.response.user;
import com.app.edit.enums.UserRole;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
@JsonInclude(JsonInclude.Include.NON_NULL)
@Getter
@Builder
@AllArgsConstructor
public class PostUserRes {
pri... | true |
066fb32099f3d2a77fd70a974ca29b26326b4b17 | Java | akjamie/jdk-features-test | /src/test/java/org/akj/jdk8/features/classloader/MyClassLoaderTest.java | UTF-8 | 1,252 | 2.515625 | 3 | [] | no_license | package org.akj.jdk8.features.classloader;
import org.junit.jupiter.api.Test;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.util.Date;
import java.util.List;
class MyClassLoaderTest {
@Test
public void test() throws ClassNotFoundException, IllegalAcce... | true |
4a8dbad2f03085ce4e3402b29421195c8e0d24bb | Java | eyu12052003/2020CougarRoboticsOffseason | /TeamCode/src/main/java/org/firstinspires/ftc/teamcode/FinalBot/Internal_Code/BotHook.java | UTF-8 | 795 | 2.640625 | 3 | [] | no_license | package org.firstinspires.ftc.teamcode.FinalBot.Internal_Code;
import com.qualcomm.robotcore.hardware.Servo;
public class BotHook {
Servo[] hook = new Servo[2];
public BotHook(Servo hook, Servo hook2){
this.hook[0] = hook;
this.hook[1] = hook2;
raiseHook();
}//basic constructor
... | true |
80aadbc32945212dce0beb8a743465f061e1341e | Java | gymnazium-nad-aleji/gif-team-rocky | /src/test-java-image/cz/alisma/alej/prog/image/gif/LzwByteStreamSplitterTest.java | UTF-8 | 2,073 | 2.140625 | 2 | [
"MIT"
] | permissive | /*
* MIT License
* Copyright (c) 2018 Gymnazium Nad Aleji
* Copyright (c) 2018 Vojtech Horky
*
* 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 li... | true |
eb27fe8a36c05a24ac594d1e7ab3389807b63c59 | Java | Loeng/Milkomeda | /MilkomedaDemo/src/main/java/com/github/yizzuide/milkomeda/demo/wormhole/QuotaService.java | UTF-8 | 728 | 1.953125 | 2 | [
"MIT"
] | permissive | package com.github.yizzuide.milkomeda.demo.wormhole;
import com.github.yizzuide.milkomeda.wormhole.WormholeAction;
import com.github.yizzuide.milkomeda.wormhole.WormholeEvent;
import com.github.yizzuide.milkomeda.wormhole.WormholeEventHandler;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Ser... | true |
23ff4e77229aa07375d2680a9ab3473fc11570c7 | Java | theabhishekmandal/non-gui | /src/streams/PeekDemo.java | UTF-8 | 1,073 | 4.09375 | 4 | [] | no_license | package streams;
/**
* We saw forEach() earlier in this section, which is a terminal operation.
* However, sometimes we need to perform multiple operations on each element of the stream before any terminal operation is applied.
* peek() can be useful in situations like this.
* Simply put, it performs the specified... | true |
a954b2eb34ad38f40688961b8c626464a96551a0 | Java | danie16arrido/zoo_manager | /app/src/main/java/com/codeclan/code/example/zoomanager/AnimalBuilder/AnimalSubClass/Fish.java | UTF-8 | 450 | 2.65625 | 3 | [] | no_license | package com.codeclan.code.example.zoomanager.AnimalBuilder.AnimalSubClass;
import com.codeclan.code.example.zoomanager.AnimalBuilder.Animal;
import com.codeclan.code.example.zoomanager.AnimalBuilder.AnimalClass.Vertebrate;
/**
* Created by user on 28/05/2017.
*/
public abstract class Fish extends Vertebrate {
... | true |
82ec69e0ac094cb4ff6f113930645ab004fa32d6 | Java | AshKnight99/FAANG-Placement-Prep | /Array/Problem 22.java | UTF-8 | 1,047 | 3.5 | 4 | [] | no_license | /*
You are given a read only array of n integers from 1 to n.
Each integer appears exactly once except A which appears twice and B which is missing.
Return A and B.
Note: Your algorithm should have a linear runtime complexity. Could you implement it without using extra memory?
Note that in your output A should prec... | true |
677028566cf0538bdc3c7d6e638bf0c92aab12f0 | Java | jfacg/Linknet | /src/main/java/br/com/jprojetar/provider/domain/Fornecedor.java | UTF-8 | 191 | 1.507813 | 2 | [] | no_license | package br.com.jprojetar.provider.domain;
import org.springframework.data.mongodb.core.mapping.Document;
@Document(collection = "fornecedor")
public class Fornecedor extends Pessoa{
}
| true |
3c915f224c8b80f28b2477918348fced265631ec | Java | mratmeyer/Adventure-Server | /src/me/imaxmc/adventureserver/AdventureServer.java | UTF-8 | 4,160 | 2.28125 | 2 | [] | no_license | package me.imaxmc.adventureserver;
import me.imaxmc.adventureserver.commands.startmap;
import me.imaxmc.adventureserver.commands.stopmap;
import me.imaxmc.adventureserver.listeners.*;
import me.imaxmc.adventureserver.maps.Map;
import me.imaxmc.adventureserver.maps.MapManager;
import me.imaxmc.adventureserver.utils.Sta... | true |
889faa945fc851b841ac45999a2955c4ae95d316 | Java | eugenscobich/PFO | /src/main/java/ru/pfo/dao/ICategoryDAO.java | UTF-8 | 581 | 2.03125 | 2 | [] | no_license | package ru.pfo.dao;
import java.io.Serializable;
import java.util.List;
import ru.pfo.model.Category;
public interface ICategoryDAO {
void save(Object entity);
Category get(Serializable id);
Category load(Serializable id);
List<Category> getAll();
boolean isExist(Category category);
void update(Object ca... | true |
d2a8cb5ac08466c23e700c1866fdb4eea2427fc5 | Java | tengkianen/ip | /src/main/java/butler/exception/WrongCommandException.java | UTF-8 | 424 | 2.484375 | 2 | [] | no_license | package butler.exception;
import butler.Butler;
import butler.messages.Messages;
/**
* Thrown when error occurs due to an invalid command entered by user
*/
public class WrongCommandException extends DukeException{
@Override
public void displayException(){
System.out.println(Butler.FORMAT);
... | true |
e522bc0d3301db56bdcd04eb37679740c5a52d3d | Java | nhattan-dev/quanlythietbiMOBILE | /app/src/main/java/com/example/mid_term/adapter/ThietBiMuonTraAdapter.java | UTF-8 | 2,290 | 2.171875 | 2 | [] | no_license | package com.example.mid_term.adapter;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.wi... | true |
fbbeaa9c7c4fa2c16242fbd53a46753503b632fc | Java | beilil81/api-management | /src/main/java/com/humanup/matrix/ui/apimanagement/graphql/mutation/ITypeSkillMutation.java | UTF-8 | 423 | 1.75 | 2 | [] | no_license | package com.humanup.matrix.ui.apimanagement.graphql.mutation;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.humanup.matrix.ui.apimanagement.vo.PersonVO;
import com.humanup.matrix.ui.apimanagement.vo.TypeSkillsVO;
import org.jetbrains.annotations.NotNull;
public interface ITypeSkillMutation {
... | true |
22b5f26e0eb40f11bd9a2acbd407cc36e5c5781f | Java | nicoribeiro/java_efactura_uy | /app/com/bluedot/commons/controllers/AbstractController.java | UTF-8 | 1,493 | 2.109375 | 2 | [
"MIT"
] | permissive | package com.bluedot.commons.controllers;
import com.bluedot.commons.error.APIException;
import com.bluedot.commons.security.Account;
import com.bluedot.commons.security.PermissionNames;
import com.bluedot.commons.security.PermissionValidator;
import com.bluedot.commons.security.PromiseCallback;
import com.bluedot.com... | true |
3ab1dac982af21b5f329d17a5b575b44e42b74e1 | Java | clhZhou/homework | /homework/src/main/java/com/upluis/homework/patterns/command/FtpServer.java | UTF-8 | 272 | 2.125 | 2 | [] | no_license | package com.upluis.homework.patterns.command;
/**
* @author luis
* @date 2020/3/17
*/
public class FtpServer {
public void download() {
System.out.println("下载成功");
}
public void upload(){
System.out.println("上传成功");
}
}
| true |
95ea260db5d48a06713542bcec407a6311022f83 | Java | gaogaodepanpan/Spring-data-resource- | /a-springboot-resource/2020-sipc-practice-master/lesson7-8 实战/src/main/java/com/code515/report/report_demo/Service/Impl/CheckLoginServiceImpl.java | UTF-8 | 1,921 | 2.1875 | 2 | [] | no_license | package com.code515.report.report_demo.Service.Impl;
import com.code515.report.report_demo.Enums.UserStatusEnum;
import com.code515.report.report_demo.Service.CheckLoginService;
import com.code515.report.report_demo.Service.UserService;
import com.code515.report.report_demo.Utils.DesUtil;
import com.code515.report.rep... | true |
2190f0f825d847de9a2636d9818175f5198361ce | Java | jin82/study-netty | /src/main/java/UsingAttributes.java | UTF-8 | 1,576 | 2.609375 | 3 | [] | no_license | import io.netty.bootstrap.Bootstrap;
import io.netty.buffer.ByteBuf;
import io.netty.channel.*;
import io.netty.channel.nio.NioEventLoopGroup;
import io.netty.channel.socket.nio.NioSocketChannel;
import io.netty.util.AttributeKey;
import io.netty.util.concurrent.Future;
import java.net.InetSocketAddress;
/**
* \*
... | true |
004577923dc98a5175fe384d09725e40a21d6344 | Java | ArturBraczkowski/ProjectCinema | /src/main/java/com/cinema/entity/Seans.java | UTF-8 | 1,591 | 2.5625 | 3 | [] | no_license | package com.cinema.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
/**
* Created by artur on 30.09.2017.
*/
@Entity
... | true |
0373baf5d1c0b461cf71e71708c95ea28c3719c4 | Java | dukesward/AWSVirtualBank | /virtual-bank-accounts/src/main/java/com/virtualBank/accounts/service/TransactionService.java | UTF-8 | 192 | 1.710938 | 2 | [] | no_license | package com.virtualBank.accounts.service;
import com.virtualBank.accounts.model.Transactions;
public interface TransactionService {
public Transactions getTransactions(String accountId);
}
| true |
0fec340c110d2029fb65cc4f4a7ef98a5dcd77c4 | Java | huygct/PI | /src/main/java/com/tma/service/Formula.java | UTF-8 | 744 | 2.578125 | 3 | [] | no_license | package com.tma.service;
/**
* Interface for all formula
*
* @author NghiTran
* @version 1.0
* @since 2015.04.15
*/
public interface Formula {
/**
* Set number for formula
*
* @param input is all what user input
*/
void setInput(Input input);
/**
* Get nu... | true |
de26a625d23eb3c4d51c768ad1ddaaad89dda65d | Java | DmitryMarchenko/sbt-java-2019 | /ExecutionManager/src/main/java/ExecutionManagerImpl.java | UTF-8 | 629 | 2.75 | 3 | [] | no_license | package main.java;
public class ExecutionManagerImpl implements ExecutionManager {
@Override
public Context execute(Runnable callback, Runnable... tasks) {
Context context = new ContextImpl(tasks);
new Thread(() -> {
while (!context.isFinished()) {
synchronized (con... | true |
b3909a11901649806d6e678b00e27ea195e936af | Java | OcalMagic/Tetris | /src/main/java/fr/esiea/auffret_coffin_royledoux/affichage/Printer.java | UTF-8 | 327 | 2.96875 | 3 | [] | no_license | package fr.esiea.auffret_coffin_royledoux.affichage;
/*
* Classe ephemere pour afficher dans la console
*/
public class Printer {
public Printer(int[][] tab){
for(int i = 0; i<tab.length ; i++){
for(int j = 0; j<tab[i].length ; j++){
System.out.print(tab[i][j] + " ");
}
System.out.print("\n");
... | true |
fa4aba74fc83e03dcbefc8f8681cb042f402160d | Java | timatimtem/DesignPattern | /DesignPatterns/src/StrategyExampleDuckBehavior/StrategyExample1.java | UTF-8 | 2,026 | 3.453125 | 3 | [] | no_license | package StrategyExampleDuckBehavior;
public class StrategyExample1 {
public static void main(String[] args) {
Duck duck = new MallardDuck();
duck.performQuack();
duck.performfly();
duck.display();
Duck duck1 = new ModelDuck();
duck1.performfly();
duck1.setFl... | true |
45a7d8ef029fae9c4be6096ea31a177a1ce49275 | Java | mostafaGwely/CreationalDesignPatterns | /src/com/reflection/factory/method/Blog.java | UTF-8 | 202 | 2.140625 | 2 | [] | no_license | package com.reflection.factory.method;
public class Blog extends Website {
@Override
protected void createWebSite() {
pages.add(new About());
pages.add(new Products());
}
}
| true |
42aacc141ea8d75d151cdeaa0b462367c484ae3f | Java | NickLink/Rashaka | /app/src/main/java/com/rashaka/utils/helpers/structure/helpers/DataPresentsListener.java | UTF-8 | 158 | 1.609375 | 2 | [] | no_license | package com.rashaka.utils.helpers.structure.helpers;
/**
* Created by com on 06.07.16.
*/
public interface DataPresentsListener {
boolean hasData();
}
| true |
c3762331cb213a90bf450732937de8288efa1072 | Java | swaroopsuthar/NewsApp | /app/src/main/java/swaroop/android/newsapp/adapter/GithubAdapter.java | UTF-8 | 1,865 | 2.453125 | 2 | [] | no_license | package swaroop.android.newsapp.adapter;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import com.squareup.picasso.Picasso;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.inject.Inject;
impor... | true |
5e970552b1e748535cbda037050c4c25b07406a8 | Java | keitamohamed/JavaITP120 | /src/com/keita/theatre/Customer.java | UTF-8 | 988 | 3.265625 | 3 | [] | no_license | package com.keita.theatre;
import java.text.NumberFormat;
public class Customer {
private String name;
private int numAdult;
private int numKid;
private double price;
public Customer (){}
public Customer(String n, int a, int k, double p){
this.name = n;
this.numAdult = a;
... | true |
66045679b54895736e1f92e47c150d73b520e7b9 | Java | DeltaIII/kafka-beginners-course | /kafka-consumer-elasticsearch/src/main/java/com/github/simplesteph/kafka/tutorial3/BasicConsumer.java | UTF-8 | 2,763 | 2.578125 | 3 | [] | no_license | package com.github.simplesteph.kafka.tutorial3;
import java.io.IOException;
import java.time.Duration;
import java.util.Arrays;
import java.util.List;
import java.util.Properties;
import org.apache.kafka.clients.consumer.ConsumerConfig;
import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.apache.kafka.... | true |
76f34823dba40244bb1d9dce768a97ee1c2746a7 | Java | schencoding/logkv | /logKV/main/src/com/hp/hpl/logkv/queryprocess/IngestKVQueryProcessor.java | UTF-8 | 5,108 | 2.1875 | 2 | [] | no_license | package com.hp.hpl.logkv.queryprocess;
import java.io.BufferedOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.OutputStream;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.ArrayList;
import ... | true |
dc280a256faa204eda2a5b5c989d3a29e312d78c | Java | LetBook/avatars | /avatar-service-dynamic-datasource/src/main/java/com/wlgdo/avatar/service/users/service/impl/UsersServiceImpl.java | UTF-8 | 558 | 1.523438 | 2 | [] | no_license | package com.wlgdo.avatar.service.users.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wlgdo.avatar.service.users.entity.Users;
import com.wlgdo.avatar.service.users.mapper.UsersMapper;
import com.wlgdo.avatar.service.users.service.IUsersService;
import org.springframework.... | true |
a3ce426ada5c8e8872c7a0158450e8b535768871 | Java | Eric1211/glbus | /app/src/main/java/com/guanglun/glbus/ownBroadcastReceiver.java | UTF-8 | 629 | 2.09375 | 2 | [] | no_license | package com.guanglun.glbus;
import android.content.ComponentName;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
public class ownBroadcastReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, In... | true |
90fded9c926ccabac3bd51030f5659744614a86c | Java | enaawy/gproject | /output/com.google.android.finsky.bp.a.java | UTF-8 | 2,233 | 1.617188 | 2 | [] | no_license | package com.google.android.finsky.bp;
import android.content.ComponentName;
import android.content.Context;
import android.content.pm.PackageManager;
import android.support.v4.h.h;
import android.support.v4.os.a;
import com.google.android.finsky.as.e;
import com.google.android.finsky.instantapps.PhenotypeUpdateService... | true |
259f679ddec7e118dd34ffccc2ae3179b2a017ef | Java | Six-tia/App-Better | /code/app/src/main/java/com/example/assignment2/View/DeletableEdiText.java | UTF-8 | 1,673 | 2.453125 | 2 | [] | no_license | package com.example.assignment2.View;
import android.content.Context;
import android.util.AttributeSet;
import android.view.KeyEvent;
import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.InputConnection;
import android.view.inputmethod.InputConnectionWrapper;
import androidx.appcompat.widget.Ap... | true |
a28541dedda8dec8d70553122dc60895905eac64 | Java | joseleite19/game | /Game2d/src/unb/cic/poo/game2d/LevelSelector.java | UTF-8 | 10,247 | 2.921875 | 3 | [] | no_license | package unb.cic.poo.game2d;
import java.util.ArrayList;
import java.util.LinkedList;
import org.andengine.entity.Entity;
import org.andengine.entity.scene.Scene;
import org.andengine.entity.sprite.Sprite;
import org.andengine.input.touch.TouchEvent;
import org.andengine.opengl.texture.region.ITextureRegion;
import or... | true |
6a5124b78efc67d7b32652e358f347585c85ae1d | Java | forroad/minesecurity_web | /src/main/java/com/ycjw/minesecurity/service/impl/SelectionQuestionServiceImpl.java | UTF-8 | 4,766 | 2.3125 | 2 | [] | no_license | package com.ycjw.minesecurity.service.impl;
import com.ycjw.minesecurity.model.CompletedQuestion;
import com.ycjw.minesecurity.model.SelectionQuestion;
import com.ycjw.minesecurity.model.response.Response;
import com.ycjw.minesecurity.objectfrom.SelectionQuestionFrom;
import com.ycjw.minesecurity.repository.CompletedQ... | true |
141e874f2c19b83a83c9bb89cdbe0e7d358bc405 | Java | vijay2710/JunitTesting | /RecursionTtd/src/RecursionTest.java | UTF-8 | 492 | 2.890625 | 3 | [] | no_license | import static org.junit.Assert.assertEquals;
import org.junit.Test;
public class RecursionTest {
@Test
public void factorial1() {
Factorial f = new Factorial();
int result = f.calculate(0);
assertEquals(1, result);
}
@Test
public void factorial2() {
Factorial f = new Factorial();
int result = f.calcu... | true |
977601d2d300573389abad384ce42aacfc0707bc | Java | AldarisX/HENBlog | /src/com/ConstPageWriter.java | UTF-8 | 2,858 | 2.453125 | 2 | [] | no_license | package com;
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.jsp.JspWriter;
public class ConstPageWriter extends JspWriter {
private PrintWriter pw;
public ConstPageWriter(String fileName) {
super(JspWriter.DEFAULT_BUFFER, false);
try {
File f =... | true |
1127f7dd075232ac1f1436dd3ca705216477fa0e | Java | iAnt0n/ProgrammingLab7 | /server/src/communication/ResponseHandler.java | UTF-8 | 870 | 2.890625 | 3 | [] | no_license | package communication;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.SocketChannel;
import java.util.concurrent.RecursiveAction;
import java.util.logging.Logger;
public class ResponseHandler extends RecursiveAction{
private String response;
private SocketChannel channel;
... | true |
8f7f57ef0c8165f1bb3c677a6dc18c409110a091 | Java | blackwellJessicaJ/androidProj | /app/src/main/java/com/example/fitnessapplication/EditNote.java | UTF-8 | 4,963 | 2.34375 | 2 | [] | no_license | package com.example.fitnessapplication;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import andr... | true |
5318f66c890a53052eccf085c383761e387dadd3 | Java | MarquitaRose/Library | /Library/LibraryOfCoolness/src/CurUnus/Book.java | UTF-8 | 3,216 | 2.671875 | 3 | [] | no_license | package CurUnus;
public class Book implements Item{
private String callNumber;
private boolean checkedOut;
private long custID;
private String title;
private String author;
public static String[] fiction = new String[]{
"The Fault in our Stars", "Speak", "Wintergirls", "The Impossible Knife of Memory"... | true |
b0da429cd73271694cc2287495eb0abb30e5a3d4 | Java | Melvin2018/Local_Soccer_BACKEND | /src/main/java/com/liga/controladores/LugarController.java | UTF-8 | 624 | 1.84375 | 2 | [] | no_license | package com.liga.controladores;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import com.liga.entidades.Lugar;
import com.liga.repositorios.ILugar;
import java.util.List;
import org.springframework.web.bind.annotation.GetMapping;
imp... | true |
ec8e7e60f82ac5358e34089d83e1e4406ce0ae12 | Java | patrom/moga | /music/src/be/music/tonal/operator/InsertRestMutation.java | UTF-8 | 2,039 | 2.703125 | 3 | [] | no_license | package be.music.tonal.operator;
import java.util.List;
import java.util.Random;
import be.data.MusicalStructure;
import be.data.NotePos;
import be.music.MusicVariable;
import jmetal.base.Solution;
import jmetal.base.operator.mutation.Mutation;
import jmetal.util.Configuration;
import jmetal.util.JMExcepti... | true |
06cbf074dab85167e0580eebcd757cd29f3e8b31 | Java | AdamKakuba/Java | /Optymalizacja/src/com/company/Jzy3D.java | UTF-8 | 7,108 | 2.609375 | 3 | [] | no_license | package com.company;
import org.jzy3d.chart.Chart;
import org.jzy3d.chart.factories.AWTChartComponentFactory;
import org.jzy3d.colors.Color;
import org.jzy3d.colors.ColorMapper;
import org.jzy3d.colors.colormaps.ColorMapGrayscale;
import org.jzy3d.colors.colormaps.ColorMapRainbow;
import org.jzy3d.maths.Range;... | true |
ebf5883894ce143944f93ae38a93d45896cf4268 | Java | LeeNewbie/eichong.protocol | /dEpPlatform/usrlayerbak/src/com/usrlayer/task/CheckEpGateNetTimeOutTask.java | UTF-8 | 206 | 1.890625 | 2 | [] | no_license | package com.usrlayer.task;
import com.usrlayer.service.CacheService;
public class CheckEpGateNetTimeOutTask implements Runnable {
@Override
public void run() {
CacheService.checkEpGateTimeOut();
}
} | true |
06ccc071cef210e7c836316bff6893270691865b | Java | chamisf/HospitalManagementSystem | /src/test/java/org/fits/hms/web/rest/AppetiteTypesResourceIntTest.java | UTF-8 | 9,915 | 2.015625 | 2 | [] | no_license | package org.fits.hms.web.rest;
import org.fits.hms.HospitalManagementSystemApp;
import org.fits.hms.domain.AppetiteTypes;
import org.fits.hms.repository.AppetiteTypesRepository;
import org.fits.hms.service.AppetiteTypesService;
import org.fits.hms.web.rest.errors.ExceptionTranslator;
import org.junit.Before;
import ... | true |
c27029e3d30d2a63ed84ee3298bf1d029617493d | Java | berique/ibm-test | /assassinato/src/main/java/br/com/ibm/assassinato/actors/Guess.java | UTF-8 | 1,260 | 2.625 | 3 | [] | no_license | package br.com.ibm.assassinato.actors;
import br.com.ibm.assassinato.models.Gun;
import br.com.ibm.assassinato.models.Location;
import br.com.ibm.assassinato.models.Suspect;
public class Guess extends Hypotesis {
public Guess(Gun gun, Location location, Suspect suspect) {
super(suspect, gun, location);
... | true |
2448caefc6555df39a382b618398c1a26adecd4c | Java | paugros/bacon-bits | /src/com/areahomeschoolers/baconbits/client/content/calendar/CalendarView.java | UTF-8 | 9,160 | 2.21875 | 2 | [] | no_license | /*
* This file is part of gwt-cal
* Copyright (C) 2009 Scottsdale Software LLC
*
* gwt-cal 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 la... | true |
d93d063535439cee9da47226102138e34e3a30c1 | Java | daiyun/daiyun | /upupup/src/main/java/daiyun/leetcode/Topic110.java | UTF-8 | 2,064 | 3.6875 | 4 | [] | no_license | package daiyun.leetcode;
import java.util.Arrays;
/**
* 给定一个二叉树,判断它是否是高度平衡的二叉树。
* <p>
* 本题中,一棵高度平衡二叉树定义为:
* <p>
* 一个二叉树每个节点 的左右两个子树的高度差的绝对值不超过1。
* <p>
* 示例 1:
* <p>
* 给定二叉树 [3,9,20,null,null,15,7]
* <p>
* 3
* / \
* 9 20
* / \
* 15 7
* 返回 true 。
* <p>
* 示例 2:
* <p>
* 给定二叉树 [1,2,2,3,3,null,null... | true |