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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
de0701525d40b44a117c77d959b05d9db5932898 | Java | stamberliki/Scratch | /core/src/com/mygdx/game/screens/splash.java | UTF-8 | 2,325 | 2.421875 | 2 | [] | no_license | package com.mygdx.game.screens;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.audio.Music;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.scenes.scene2d.Stage;
import com.b... | true |
ccca6c8d03d94873d5b57a07e24b2d4782cfe45f | Java | tominator1pl/poop-mod | /src/main/java/tominator1/poop/common/Tiles/TileToilet.java | UTF-8 | 7,556 | 1.90625 | 2 | [] | no_license | package tominator1.poop.common.Tiles;
import java.util.List;
import java.util.Random;
import javafx.geometry.BoundingBox;
import cpw.mods.fml.common.network.NetworkRegistry;
import tominator1.poop.common.mod_poop;
import tominator1.poop.common.Blocks.BlockToilet;
import tominator1.poop.common.Handlers.AutoToiletHand... | true |
7112496fb3b30bc93dc0c28b23d93a54f3de308e | Java | lengxu/YouYun | /Codes/server/datastore/api/src/test/java/uyun/bat/datastore/api/util/UUIDUtilsTest.java | UTF-8 | 260 | 1.78125 | 2 | [] | no_license | package uyun.bat.datastore.api.util;
import static org.junit.Assert.*;
import java.util.UUID;
import org.junit.Test;
public class UUIDUtilsTest {
@Test
public void testGenerateResId() {
UUIDUtils.generateResId(UUID.randomUUID().toString(), "");
}
}
| true |
345041adafc9955467fbb8a15dc6d6421323f6f1 | Java | Robart620/ICS4U-General | /DataStructures/src/trees/IntBinaryTreeNode.java | UTF-8 | 1,096 | 3.515625 | 4 | [] | no_license | package trees;
public class IntBinaryTreeNode {
private Integer data;
private IntBinaryTreeNode leftChild;
private IntBinaryTreeNode rightChild;
public IntBinaryTreeNode(Integer data) {
this.data = data;
this.leftChild = null;
this.rightChild = null;
}
public IntBinaryTreeNode(Integer data, IntBinaryTree... | true |
d103495803146ba8eabcf700a89c7a02ba520969 | Java | mixianghang/XiangHang | /crawler-weibo/src/com/run/crawler/weibo/rules/impl/TencentFollowerHasNextPageRule.java | UTF-8 | 1,028 | 2.140625 | 2 | [] | no_license | package com.run.crawler.weibo.rules.impl;
import com.run.crawler.weibo.entity.WeiboPage;
import com.run.crawler.weibo.rules.WriterHasNextPageRule;
import com.run.crawler.weibo.util.Job;
import com.run.crawler.weibo.util.Task;
import com.run.crawler.weibo.util.query.Query;
import com.run.crawler.weibo.util.query.Tencen... | true |
c897362b49429bf2194552e2d1e1e420d24cc303 | Java | johnmcconnell/candidcoder | /src/com/mcconnell/blog/controllers/AppUserController.java | UTF-8 | 1,072 | 2.015625 | 2 | [] | no_license | package com.mcconnell.blog.controllers;
import javax.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.Reque... | true |
a973f9d70f8e43d5c41415f23625985dd10db398 | Java | InnoZ/MAS | /innoz-toolbox/src/main/java/com/innoz/toolbox/scenarioGeneration/utils/Modes.java | UTF-8 | 1,856 | 2.640625 | 3 | [
"Apache-2.0"
] | permissive | package com.innoz.toolbox.scenarioGeneration.utils;
import org.matsim.api.core.v01.TransportMode;
/**
*
* Collection of transport modes that might be used in scenarios.
* Just for (internal) standardization reasons.
*
* @author dhosse
*
*/
public class Modes {
//transit
public static final String BUS = "... | true |
8bb994992dafa35505873528aa40063484bb9aa2 | Java | MrQunZhu/skyland | /src/main/java/com/clesun/web/skyland/dao/WorkrecordMapper.java | UTF-8 | 2,065 | 1.804688 | 2 | [] | no_license | package com.clesun.web.skyland.dao;
import com.clesun.web.skyland.entity.Workrecord;
import com.clesun.web.skyland.entity.WorkrecordExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface WorkrecordMapper {
/**
* This method was generated by MyBatis Generator.
* This... | true |
48326e6bb7c633ea7fbeb13ec0bd05b28a4fdfae | Java | guogin/arithmetic-for-kids | /src/test/java/com/yahaha/arithmetic/util/NumberUtilTests.java | UTF-8 | 1,722 | 3.0625 | 3 | [] | no_license | package com.yahaha.arithmetic.util;
import com.yahaha.arithmetic.model.Operator;
import org.junit.Test;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
public class NumberUtilTests {
@Test
public void digitsOf() {
Integer[] digits = NumberUtil... | true |
d23beca25328346d6afbc12cfe10f576bb30dd90 | Java | anastasiya315510/user-service | /src/main/java/com/degel/lotus/userservice/service/UserServiceImpl.java | UTF-8 | 3,256 | 2.453125 | 2 | [] | no_license | /*
author Anastasiya
created on 22/09/2021
*/
package com.degel.lotus.userservice.service;
import com.degel.lotus.userservice.dto.UserDTO;
import com.degel.lotus.userservice.entity.Role;
import com.degel.lotus.userservice.sequence.SequenceGeneratorService;
import com.degel.lotus.userservice.entity.User;
import co... | true |
434f41172d864f7929307788fceaf2dff03dffb7 | Java | elide-tools/bazel-leaf | /lib2/src/test/java/com/spotify/music/lib2/Lib2Test.java | UTF-8 | 548 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | package com.spotify.music.lib2;
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
@RunWith(JUnit4.class)
public class Lib2Test {
@Test
public void testAwesome() {
final Lib2 underTest = new Lib2();
Assert.assertEquals("Awesome! m... | true |
7bc55a2844153e2a0130db10395305948e0690c1 | Java | ibeteka/xtogen | /XToGen Library/src/fr/tech/sdx/xtogen/image/AbstractThumbnailReader.java | ISO-8859-1 | 7,293 | 2.15625 | 2 | [] | no_license | /**
* Fichier: AbstractThumbnailReader.java
*
* XtoGen - Gnrateur d'applications SDX2
* Copyright (C) 2003 Ministre de la culture et de la communication, PASS Technologie
*
* Ministre de la culture et de la communication,
* Mission de la recherche et de la technologie
* 3 rue de Valois, 75042 Paris Cedex 01... | true |
f85977156c03a1c033b99165458e59d3a849b5f9 | Java | Liyize97126/DianshangJin06 | /app/src/main/java/com/bawei/dianshangjin06/util/IRequest.java | UTF-8 | 1,271 | 2 | 2 | [] | no_license | package com.bawei.dianshangjin06.util;
import com.bawei.dianshangjin06.bean.Commodity;
import com.bawei.dianshangjin06.bean.DataBean;
import com.bawei.dianshangjin06.bean.HomeList;
import com.bawei.dianshangjin06.bean.LoginInfo;
import java.util.List;
import io.reactivex.Observable;
import retrofit2.http.Field;
impo... | true |
2b1aa1fe2506b9ec83bc2746aebe7fde5031ea41 | Java | bnedirm/mavenbagoo | /src/main/java/com/fortw/bagoo/KlantenData.java | UTF-8 | 2,934 | 2.796875 | 3 | [] | no_license |
/* Programma: MavenBagoo
* @Author Ramon Mocking
* Soort: Java Class
* Doel: In deze class worden de getters en setters voor klantendata gemaakt,
* deze gebruik ik om de data in een tableview weer te geven.
*/
package com.fortw.bagoo;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.pr... | true |
f72d046711eb072a51c4bcf79f72e728d8cf2199 | Java | 14likhit/SmartWay | /app/src/main/java/com/example/smartway/ui/home/HomeActivity.java | UTF-8 | 2,948 | 1.726563 | 2 | [] | no_license | package com.example.smartway.ui.home;
import androidx.databinding.DataBindingUtil;
import androidx.lifecycle.ViewModel;
import androidx.lifecycle.ViewModelProvider;
import androidx.lifecycle.ViewModelProviders;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import... | true |
aa981f30fd6d1bcaf311fc9117bd656b7b969bae | Java | carlfsmithiii/android_progress_scheduler | /app/src/main/java/edu/wgu/csmi508/progressscheduler/CoursePagerActivity.java | UTF-8 | 2,784 | 2.25 | 2 | [] | no_license | package edu.wgu.csmi508.progressscheduler;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
impo... | true |
3a566d5581592fb21cc5f46b11cc49c981a7eecd | Java | Nil599Suthar/GuruKruPa | /app/src/main/java/com/example/gurukrupa/Adapters/PagerAdapter.java | UTF-8 | 1,204 | 2.390625 | 2 | [] | no_license | package com.example.gurukrupa.Adapters;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;
import com.example.gurukrupa.Fragments.Flate_Fragment;
import com.example.gurukrupa.Fragments.Reminder_Fragment;
import com.example.gu... | true |
f815689d3a8f6569f37496844f5ddef36cb3004f | Java | junkdog/artemis-odb | /artemis-core/artemis/src/test/java/com/artemis/EntitySystemTest.java | UTF-8 | 1,803 | 2.796875 | 3 | [
"Apache-2.0",
"BSD-2-Clause",
"BSD-2-Clause-Views"
] | permissive | package com.artemis;
import static org.junit.Assert.assertEquals;
import com.artemis.systems.EntityProcessingSystem;
import org.junit.Test;
/**
* Created by obartley on 6/9/14.
*/
public class EntitySystemTest {
@SuppressWarnings("static-method")
@Test
public void test_process_one_active() {
World w = new Wo... | true |
9041178a1f382ef2165c913f9fcbfe65ffc7f00c | Java | 238025681/JavaOOPAdvance | /src/com/IteratorsAndComparators/Prob04_Froggy/models/LakeImpl.java | UTF-8 | 893 | 2.78125 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.IteratorsAndComparators.Prob04_Froggy.models;
import com.IteratorsAndComparators.Prob04_Froggy.interfaces.Lake;
import jav... | true |
38e51ca4a95c2a9ed0623f21f0325c80b3194d30 | Java | wubainian/smali_to_java | /src/com/google/tagmanager/e.java | UTF-8 | 531 | 1.625 | 2 | [] | no_license | package com.google.tagmanager
import java.util.concurrent.ConcurrentHashMap;
import java.util.Map;
import java.util.concurrent.locks.ReentrantLock;
import java.util.LinkedList;
public class e{
//instance field
private final ConcurrentHashMap b;
private final Map c;
private final ReentrantLock d;
priv... | true |
d6ebd1dc133e8412e85a25a16f39c52ab139f829 | Java | kmrgaurav11235/Prep2017 | /Java/Collections/Collections_6_ArrayListNLinkedList.java | UTF-8 | 2,585 | 4.1875 | 4 | [] | no_license | import java.util.ArrayList;
import java.util.LinkedList;
/*
* Comparision between ArrayList and LinkedList:-
Insertions are easy and fast in LinkedList as compared to ArrayList because there is no
risk of resizing array and copying content to new array if array gets full which makes
adding into ArrayList... | true |
f249600c20ca4bc768a5d51e015b21556e7de588 | Java | rlamacraft/DailyProgrammer | /Java/dp_gradient/src/testing.java | UTF-8 | 5,763 | 3.09375 | 3 | [] | no_license | import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.awt.image.WritableRaster;
import java.io.File;
import java.io.IOException;
import java.util.Scanner;
public class testing {
public static void main(String args[]) {
int dimension = 64; //for now, this needs to be < 255
... | true |
896fd32532fd0ead1476667fe32d435d24ed2acb | Java | PerhomChen/myself_learnning | /learnning/src/main/java/algorithm/old/JavaBasicday02/J49Interface.java | UTF-8 | 370 | 2.65625 | 3 | [] | no_license | package JavaBasicday02;
public interface J49Interface {
//接口里面只有常量和抽象方法
//接口中定义常量时默认前面是public static final
String MAX_SARARY = "2334";
int MAX_VALUE = 78;
//写不写修饰符都是 public abstract
void run();
public int jj(int a ,int b);
}
interface Attack{
public void attack();
} | true |
82bc532d7a8659ef22a20be477eb8b061b0755d0 | Java | ysonggit/lintcode | /building_outline.java | UTF-8 | 4,486 | 3.640625 | 4 | [] | no_license | public class Solution {
/**
* @param buildings: A list of lists of integers
* @return: Find the outline of those buildings
* Reference : Skyline algorithm - A binary tree approach
* http://www.shadabahmed.com/blog/2013/04/24/skyline-algorithm-a-binary-tree-approach/
*/
class SegTreeNod... | true |
e35e9896dd921ad6341595f618315793a0aae103 | Java | yangcheng0921/springboot-example | /sringboot-perfectweb/src/main/java/com/study/sringbootperfectweb/controller/UserController.java | UTF-8 | 1,782 | 2.390625 | 2 | [] | no_license | package com.study.sringbootperfectweb.controller;
import com.study.sringbootperfectweb.pojo.User;
import com.study.sringbootperfectweb.service.UserService;
import com.study.sringbootperfectweb.vo.ResultVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.f... | true |
23926e0d49629f689d7daab3c0ead6a5f50b3a3c | Java | LukasStoeckli/cineast | /src/org/vitrivr/cineast/core/features/HOG.java | UTF-8 | 5,121 | 2.390625 | 2 | [
"MIT"
] | permissive | package org.vitrivr.cineast.core.features;
import java.awt.image.BufferedImage;
import java.util.ArrayList;
import java.util.List;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.vitrivr.cineast.core.config.QueryConfig;
import org.vitrivr.cineast.core.config.ReadableQuer... | true |
e0eb2b1d04a1375afaa810a18a9f4193d28f8970 | Java | fizzed/cloudhopper-commons | /ch-commons-util/src/main/java/com/cloudhopper/commons/util/PeriodFormatterUtil.java | UTF-8 | 5,984 | 3.015625 | 3 | [
"Apache-2.0"
] | permissive | package com.cloudhopper.commons.util;
/*
* #%L
* ch-commons-util
* %%
* Copyright (C) 2012 Cloudhopper by Twitter
* %%
* 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:... | true |
dbdba9bd1d6c2a5c33a4b0d650e31e1f6a764be4 | Java | ktran29/cse373_project3 | /src/main/java/search/analyzers/PageRankAnalyzer.java | UTF-8 | 7,137 | 3.15625 | 3 | [] | no_license | package search.analyzers;
import datastructures.concrete.ChainedHashSet;
import datastructures.concrete.KVPair;
import datastructures.concrete.dictionaries.ChainedHashDictionary;
import datastructures.interfaces.IDictionary;
import datastructures.interfaces.IList;
import datastructures.interfaces.ISet;
//import misc.e... | true |
18030cd406dfd926b75a28c38693cc9a3194ba32 | Java | marcinlos/GriegCounter | /Grieg/src/main/java/pl/edu/agh/ki/grieg/util/iteratee/AbstractEnumeratee.java | UTF-8 | 692 | 2.734375 | 3 | [] | no_license | package pl.edu.agh.ki.grieg.util.iteratee;
/**
* Abstract implementation of {@link Enumeratee} interace, based on
* {@link AbstractEnumerator} and {@link AbstractIteratee}.
*
* @author los
*
* @param <S>
* Type of consumed items (input stream)
* @param <T>
* Type of produced items (out... | true |
d1750bb57b7e46315ba22a7ccfff8e933c726179 | Java | AutomationQA-Test/StableMavenProject | /src/main/java/com/torenzo/qa/pages/TableStructurePage.java | UTF-8 | 3,397 | 1.9375 | 2 | [] | no_license | package com.torenzo.qa.pages;
import static com.torenzo.qa.util.StaticVariable.addedGuestToOrder;
import java.io.IOException;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.PageFactory;
import org.testng.Assert;
import com.torenzo.qa.base.Loginapp;
import co... | true |
283ab7836a900287001ed2f049b39bc7e85719a5 | Java | netsga/testing | /src/main/java/com/lge/hems/device/exceptions/RestRequestException.java | UTF-8 | 578 | 2.375 | 2 | [] | no_license | package com.lge.hems.device.exceptions;
public class RestRequestException extends Exception {
/**
*
*/
private static final long serialVersionUID = -643849935766083732L;
private String url;
private String statusCode;
public RestRequestException(String msg, String url) {
super(msg);
this.url = url;
}
... | true |
56ce7cae41308e9d519564c74793d2bdb0dd81bf | Java | paulosoujava/levaEtras | /app/src/main/java/br/com/levaetras/adapter/AdapterClienteSchedule.java | UTF-8 | 5,557 | 2.109375 | 2 | [] | no_license | package br.com.levaetras.adapter;
import android.app.AlertDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.vie... | true |
602b4a5abbe023d7ab84ea4d89f824a679fe5a86 | Java | balamurugan678/nemo | /nemo-tfl-common/src/main/java/com/novacroft/nemo/tfl/common/form_validator/RefundCartPaymentValidator.java | UTF-8 | 9,511 | 1.648438 | 2 | [] | no_license | package com.novacroft.nemo.tfl.common.form_validator;
import static com.novacroft.nemo.common.constant.CommonContentCode.INVALID_ACCOUNT_NUMBER;
import static com.novacroft.nemo.common.constant.CommonContentCode.INVALID_POSTCODE;
import static com.novacroft.nemo.common.constant.CommonContentCode.INVALID_SORTCODE_P... | true |
152dbc7ffee58717bc2e38a60c48fad0ae94301d | Java | nanosai/thread-ops-java | /src/main/java/com/nanosai/threadops/multitask/MultiTaskExecutor.java | UTF-8 | 2,391 | 3 | 3 | [] | no_license | package com.nanosai.threadops.multitask;
import java.util.ArrayList;
import java.util.List;
public class MultiTaskExecutor {
private int nextTaskIndex = 0;
private List<ITask> activeTasks = new ArrayList<>();
private List<ITask> completedTasks = new ArrayList<>();
public List<ITask> ... | true |
2e85abb0c67911d61b1dc9c1bc81db48c68dcb9b | Java | devshankha/Hackerrank | /ChocolateDistributionProblem/ChocolateDistribution.java | WINDOWS-1252 | 1,806 | 3.8125 | 4 | [] | no_license |
/*
* Maximum number of chocolates to be distributed equally among k students
Given n boxes containing some chocolates arranged in a row. There are k number of students.
The problem is to distribute maximum number of chocolates equally among k students by selecting
a consecutive sequence of boxes from the given... | true |
39acf0f5a2973a657a42144bd293c8170471ba33 | Java | elethuillier/LDA-IDM | /src/LDPparallel/util/LDPparallelExecutionEngine.java | ISO-8859-1 | 6,042 | 2.765625 | 3 | [] | no_license | package LDPparallel.util;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Stream;
import LDPparallel.Activite;
import LDPparallel.Debut;
import LDPparallel.ElementProcessus;
import LDPparallel.Fin;
import LDPparallel.Fourche;
import LDPparallel.Jonction;
import LDPparall... | true |
c3f29584acf2bce6f51aa134993cac261a3935a6 | Java | raksoq/JavaHackerRank | /src/pl/gajkow/StringsHR.java | UTF-8 | 996 | 3.0625 | 3 | [] | no_license | package pl.gajkow;
import java.util.Scanner;
public class StringsHR extends Runner {
@Override
public void execute() {
Scanner scanner = new Scanner(System.in);
System.out.println("Enter number of test cases");
int numberOfTests = scanner.nextInt();
scanner.nextLine();
... | true |
2241dbf626b92310cf189a550bd48852bdc5297e | Java | Sruthik22/USACO | /src/PrefixFlipEasy.java | UTF-8 | 1,936 | 3.515625 | 4 | [] | no_license | // This template code suggested by KT BYTE Computer Science Academy
// for use in reading and writing files for USACO problems.
// https://content.ktbyte.com/problem.java
import java.util.*;
import java.io.*;
public class PrefixFlipEasy {
public static void main(String[] args) throws Exception {
Scann... | true |
715d1d75b42da482a00f9bda5088249d22c8c771 | Java | sgros/activity_flow_plugin | /TestApplications/TF-BETA-THERMATK-v5.7.1/DecompiledCode/Fernflower/src/main/java/org/telegram/ui/ActionBar/_$$Lambda$ActionBarLayout$r7PgXBy38d_b4XaDN8FoveXk1BE.java | UTF-8 | 463 | 1.8125 | 2 | [] | no_license | package org.telegram.ui.ActionBar;
// $FF: synthetic class
public final class _$$Lambda$ActionBarLayout$r7PgXBy38d_b4XaDN8FoveXk1BE implements Runnable {
// $FF: synthetic field
private final ActionBarLayout f$0;
// $FF: synthetic method
public _$$Lambda$ActionBarLayout$r7PgXBy38d_b4XaDN8FoveXk1BE(ActionB... | true |
bd212254484ec1e87c5f0080f04d92668b67390d | Java | otter606/sed-ed-sedmleditor | /org.sedml.jlibsedml.editor/tags/0_9_1/test/org/sedml/jlibsedml/xmlutils/AttributeIdentifiedBySelectedAttributePolicyTest.java | UTF-8 | 1,823 | 2.359375 | 2 | [
"MIT"
] | permissive | package org.sedml.jlibsedml.xmlutils;
import static org.junit.Assert.*;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.util.List;
import org.jdom.Attribute;
import org.jdom.Document;
import org.jdom.Element;... | true |
500331d8ced14fc563fb9ddb612353ca4f403774 | Java | FTC9804/2017-BigSur | /LAMeet1/BigSurAutoFunctions.java | UTF-8 | 4,388 | 2.71875 | 3 | [] | no_license | /*Code written by Steve, Etienne, & Marcus Fri. 2 Dec. 2016
* updated with new functions code
* -Sunday, December 9, 2016: Late Afternoon --> introducing new code with functions
*
* FTC Team 9804 Bomb Squad
*
* Version 1: creates code for full movement
*
*/
package org.firstinspires.ftc.teamcode;
import com.qualc... | true |
8bf8ea5922d090a8c2b430e2566e2ba65d207a04 | Java | ParasPilkhwal/Coronavirusliveupdate | /app/src/main/java/in/coronaupdate/coronavirusliveupdate/CoronaVirusAdaper.java | UTF-8 | 5,693 | 2.21875 | 2 | [] | no_license | package in.coronaupdate.coronavirusliveupdate;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Filter;
import android.widget.Filterable;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.... | true |
4ad771564f8d9ad6e6f3d49dc3409ce7cc82a22e | Java | ugrinovs/projects | /DicamoDogs/src/main/java/com/dicamo/service/impl/JpaDogService.java | UTF-8 | 815 | 2.328125 | 2 | [] | no_license | package com.dicamo.service.impl;
import com.dicamo.model.Dog;
import com.dicamo.repository.DogRepository;
import com.dicamo.service.DogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* Created by Stefan on 11/11/2016.
... | true |
3739c00af1db2276083526b64b27eed4506487b7 | Java | Shallowdream810/OAproject | /src/main/java/com/ghh/cust/service/GoodsServiceImp.java | UTF-8 | 1,656 | 2.4375 | 2 | [] | no_license | package com.ghh.cust.service;
import com.ghh.cust.bean.Goods;
import com.ghh.cust.mapper.GoodsMapper;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.Arrays;
import java.util.List;
@Servi... | true |
195269aefa2faf8615e94f346671c025b406f10e | Java | ayamir/DuoDuoPin | /app/src/main/java/com/example/duoduopin/adapter/CreditAdapter.java | UTF-8 | 2,534 | 2.28125 | 2 | [] | no_license | package com.example.duoduopin.adapter;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.RatingBar;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import co... | true |
b81f13a06593208e56f18475d99c362c80c189fa | Java | GinoTarraga/CS213---Software-Methodology | /Photos/Photos93/src/utils/Backend.java | UTF-8 | 3,013 | 2.859375 | 3 | [] | no_license | /*
* Gino Tarraga
* Kaival Patel
*/
package utils;
import java.io.*;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class Backend implements Serializable {
private static final long serialVersionUID = 1L;
private static final String... | true |
aa18fbcdcb82e2928e9b5a5d0b3155cca75c6111 | Java | ChoiBin/study | /springboot/json/src/main/java/com/choi/json/config/WebMvcConfig.java | UTF-8 | 1,132 | 2.046875 | 2 | [] | no_license | package com.choi.json.config;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
import java.text.SimpleDateFormat;
/**... | true |
6923c8dcdc041718349791cd34b84f9021d001b1 | Java | HaleyWang/SpringRemote | /src/main/javaopen/com/mindbright/security/ms/CtlInfo.java | UTF-8 | 2,903 | 1.585938 | 2 | [
"MIT"
] | permissive | /******************************************************************************
*
* Copyright (c) 2009-2011 Cryptzone Group AB. All Rights Reserved.
*
* This file contains Original Code and/or Modifications of Original Code as
* defined in and that are subject to the MindTerm Public Source License,
* Version 2.0... | true |
65b825f10528bf34704d78353e24c13ce008e4bf | Java | vadym01/bookStore | /bookShop/src/main/java/com/bookshop/service/UserOrderService.java | UTF-8 | 585 | 1.914063 | 2 | [] | no_license | package com.bookshop.service;
import com.bookshop.entities.User;
import com.bookshop.entities.UserOrder;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import java.util.List;
public interface UserOrderService {
List<UserOrder> getUserOrder(User user,boolean conditio... | true |
c2be6fd2f8071827947eae7ec8f52099526e39eb | Java | magomar/TicTacToeFX | /src/main/java/tictactoe/model/Game.java | UTF-8 | 1,271 | 3.25 | 3 | [] | no_license | package tictactoe.model;
import tictactoe.aiplayer.MiniMaxAlgorithm;
/**
* @author mario
*/
public final class Game {
private final Player[] board = new Player[9];
private Player currentPlayer = Player.NONE;
private Player winner = Player.NONE;
private boolean finished = false;
public Game() {... | true |
d2215b34b2096193ebe99770fb3cbee79bb367d0 | Java | chmodas/docker-maven-plugin | /src/main/java/com/github/chmodas/mojo/objects/AbstractImage.java | UTF-8 | 1,563 | 2.25 | 2 | [] | no_license | package com.github.chmodas.mojo.objects;
import org.apache.maven.plugin.MojoExecutionException;
import java.util.HashMap;
import java.util.List;
abstract class AbstractImage {
private String name;
private String repository;
private String tag;
private String command;
private String hostname;
... | true |
83aca6c342c41f737d1f5d31a6c0969d71849365 | Java | dileepkumarpudhari/pms | /PayrollManagementSystem/src/EmployeeDetails.java | UTF-8 | 26,263 | 2.15625 | 2 | [] | no_license |
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import javax.swing.JOptionPane;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the... | true |
9897e3bdbf1a400fad547dfe73cefa4ecc1b428c | Java | aborzdiy/cosmoport | /src/main/java/com/space/service/ShipServiceImpl.java | UTF-8 | 7,484 | 2.40625 | 2 | [] | no_license | package com.space.service;
import com.space.model.ShipInfo;
import com.space.model.Ship;
import com.space.model.ShipSearch;
import com.space.repository.ShipRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.doma... | true |
bdb82a9cf6eec25e518f00a5ec852b7d94f3f73b | Java | GANESHRAMKANAKASABAI1996/CONNECTED-DEVICES_JAVA | /src/main/java/schooldomain/studentname/connecteddevices/labs/module07/CoapClientConnector.java | UTF-8 | 2,091 | 2.859375 | 3 | [] | no_license | package schooldomain.studentname.connecteddevices.labs.module07;
import org.eclipse.californium.core.CoapClient;
import org.eclipse.californium.core.CoapResponse;
import org.eclipse.californium.core.coap.MediaTypeRegistry;
/**
* This is helper class that connects to the CoAP server
*
* @author GANESHRAM ... | true |
5da15b5e61bd6660f288f860fb89132edcec6250 | Java | LyskaL/internship | /swt/src/llyska/module1/TestSashForm.java | UTF-8 | 1,239 | 2.921875 | 3 | [] | no_license | package llyska.module1;
import org.eclipse.swt.*;
import org.eclipse.swt.custom.SashForm;
import org.eclipse.swt.layout.*;
import org.eclipse.swt.widgets.*;
public class TestSashForm {
public static void main(String[] args) {
Display display = new Display ();
Shell shell = new Shell(display);
shel... | true |
f9fdf874724bc8b4492d710867fae12af7c1d2e1 | Java | EngineeringCourse190625/java-christmas | /src/Holiday.java | UTF-8 | 433 | 3.015625 | 3 | [] | no_license | import java.time.LocalDate;
import java.time.Month;
public class Holiday {
public String isTodayChristmas() {
LocalDate today = getToday();
if (today.getMonth() == Month.DECEMBER && (today.getDayOfMonth() == 24 || today.getDayOfMonth() == 25))
return "Merry Christmas";
else
... | true |
469d821e298da8c7b5e59548f84ca8e69a1df32a | Java | srth12/spring-boot-hello | /src/main/java/org/morning/school/controller/MovieController.java | UTF-8 | 965 | 2.234375 | 2 | [] | no_license | package org.morning.school.controller;
import org.morning.school.service.MovieService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springfram... | true |
febfe3f677b0dbfade6f4b7c467e00d349f6b111 | Java | rksmw/notarias-respaldo | /Back/notarias-app/notarias-core/src/main/java/com/palestra/notaria/bo/impl/BitacoraGeneralBoImpl.java | UTF-8 | 547 | 1.921875 | 2 | [] | no_license | package com.palestra.notaria.bo.impl;
import com.palestra.notaria.bo.BitacoraGeneralBo;
import com.palestra.notaria.dao.BitacoraGeneralDao;
import com.palestra.notaria.dao.impl.BitacoraGeneralDaoImpl;
import com.palestra.notaria.modelo.BitacoraGeneral;
public class BitacoraGeneralBoImpl extends GenericBoImpl<Bitacora... | true |
719ceb32c25c6b566862b1142aaa01744b08cf1d | Java | mtzw/doma2-s2wicket-boilerplate | /src/main/java/boilerplate/app/web/HomePage.java | UTF-8 | 1,637 | 1.960938 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2004-2013 the Seasar Foundation and the Others.
*
* 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 ... | true |
43618f0edc4901b2d5b298ca1eacd3f524faaea6 | Java | ohhhhhjy/MOVIEING | /Movieing/src/main/java/com/kosmo/movieing/web/GoogleLoginController.java | UTF-8 | 1,993 | 2.109375 | 2 | [] | no_license | package com.kosmo.movieing.web;
import java.io.IOException;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.social.google.connect.GoogleConnectionFactory;
import org.springframework.social.oauth2.GrantType;
import org.springfra... | true |
9a83de16172d7dd8f08ee80d6d6f5822f1082991 | Java | jamesliuguo/lifter | /liferApplication/src/main/java/com/wxl/export/lifter/enty/show/NoteOrderSubTypeGridItemShow.java | UTF-8 | 2,154 | 2.234375 | 2 | [] | no_license | package com.wxl.export.lifter.enty.show;
import java.io.Serializable;
/**
* Created by Sintn on 16/1/13.
*/
public class NoteOrderSubTypeGridItemShow implements Serializable {
//类型ID,唯一识别标志
private int typeId;
//文字描述
private int descResId;
//normal 图标
private int normalResId;
//pressed 图... | true |
38bc1181846fd496eda2390cf1072a19a4374673 | Java | namangarg1294/scapublicrepo | /SCAOnCloud/src/scaapp/utils/OldBatchDetector.java | UTF-8 | 2,563 | 2.890625 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package scaapp.utils;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.... | true |
7127e45d81f7889e9f43a54abdc22801805828e9 | Java | PrithviRam/MSRIT-SE-LAB-2017 | /src/Course.java | UTF-8 | 446 | 3.046875 | 3 | [] | no_license | +package college;
+
+import java.util.Scanner;
+
+public class course {
+ String cname;
+ student s1 = new student();
+ public void register()
+ {
+ System.out.println("Enter the course name \n");
+ Scanner input = new Scanner(System.in);
+ cname= input.next();
+ System.out.println(" \n department offer... | true |
ce14b8f60f74b5f74d211e2b155d28984892ed6f | Java | hasbi93/HackerRank | /Java/Object Oriented Programming/Java Interface/Solution.java | UTF-8 | 2,231 | 4.0625 | 4 | [] | no_license | /* ************************************************************************** */
/* --------------------------- begin locked code ---------------------------- */
import java.util.*;
interface AdvancedArithmetic{
int divisor_sum(int n);
}
/* ---------------------------- end locked code ----------------------------- */... | true |
66be4318882920a036db52b2bbb473d81e26e694 | Java | Timur-hub/hw4-right | /src/main/java/protobuf/SerializationProtobuf.java | UTF-8 | 1,439 | 2.359375 | 2 | [] | no_license | package protobuf;
import com.googlecode.protobuf.format.XmlFormat;
import dto.StudentProtoDTO;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.BenchmarkMode;
import org.openjdk.jmh.annotations.Mode;
import org.openjdk.jmh.runner.Runner;
import org.openjdk.jmh.runner.RunnerException;
im... | true |
3ab90774d69cbda61b0254a937c511137e877b60 | Java | VVIERV00/concesionario | /SistemasInformacionP2/src/OperacionesCC.java | UTF-8 | 7,895 | 2.59375 | 3 | [] | no_license | import java.io.FileWriter;
import java.math.BigInteger;
import java.util.ArrayList;
import org.jdom2.Document;
import org.jdom2.Element;
import org.jdom2.output.Format;
import org.jdom2.output.XMLOutputter;
public class OperacionesCC {
public ArrayList<String> emails;
public int c;
public String sustit... | true |
81ef606482b930c2b46d4fd6a0c64ab8e0a9e833 | Java | rprusia/CodeWars | /src/codewars/ray/com/Map.java | UTF-8 | 203 | 2.078125 | 2 | [] | no_license | package codewars.ray.com;
import java.util.HashMap;
public class Map {
public static void hashmap(){
HashMap<String, Integer> map = new HashMap<>();
map.put("ray", 222);
}
}
| true |
78be855bfc2c1fb9dd4c8146f0bc347b079d8582 | Java | ChaozhiMobile/Chaozhi_Android | /app/src/main/java/com/czjy/chaozhi/base/IBaseView.java | UTF-8 | 191 | 1.726563 | 2 | [] | no_license | package com.czjy.chaozhi.base;
/**
* Created by huyg on 2018/9/28.
*/
public interface IBaseView {
void showProgress();
void closeProgress();
void toast(String message);
}
| true |
63892475da3304bb797da7cacdc25b4b8757f18b | Java | nitinguptamca/DesignPattern | /src/headfirst/designpatterns/adapter/ducks/MallardDuck.java | UTF-8 | 248 | 2.890625 | 3 | [] | no_license | package headfirst.designpatterns.adapter.ducks;
public class MallardDuck implements Duck {
public void quack() {
System.out.println("MallardDuck Quack");
}
public void fly() {
System.out.println("MallardDuck I'm flying");
}
}
| true |
d2ab79eed64e212e2a8603ceb51d6a6b0fe9ed50 | Java | AlanPanYun/FwDemo | /app/src/main/java/com/example/fwdemo/inter/RedCloth.java | UTF-8 | 289 | 1.609375 | 2 | [] | no_license | package com.example.fwdemo.inter;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import javax.inject.Qualifier;
/**
* Created by qk14 on 2018/3/22.
*/
@Qualifier
@Retention(RetentionPolicy.RUNTIME)
public @interface RedCloth {
}
| true |
a61d43852a260dab958baad95ba8387a0a847c7a | Java | jinxiaocheng/zhcj_web_shardingjdbc | /src/main/java/com/escst/construction/mapper/ConstructionMapper.java | UTF-8 | 2,915 | 1.9375 | 2 | [] | no_license | package com.escst.construction.mapper;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Repository;
import com.escst.commons.mapper.BaseMapper;
import com.escst.commons.vo.QtyVO;
import com.escst.construction.entity.ConstructionEntity;
import com.escst.construction.vo.SimpleConstruc... | true |
690b547f25705d1efbebde8658b9086e6799cb0b | Java | ahmed3oun/MytutoRecycleView | /app/src/main/java/com/pi/mytutorecycleview/MyAdapter.java | UTF-8 | 1,537 | 2.71875 | 3 | [] | no_license | package com.pi.mytutorecycleview;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
public class MyAdapter extends RecyclerV... | true |
f6a083de2f653dda7f5c06e223bf370666863e8b | Java | prajaktamore/Design-Pattern-2 | /src/designConf/builder/DPConference.java | UTF-8 | 1,554 | 3.015625 | 3 | [] | no_license | package designConf.builder;
import designConf.interfaces.IConferenceBuilder;
import designConf.interfaces.IConstructConference;
import designConf.interfaces.IDPConference;
import designConf.util.Debug;
/**
* @author PrajaktaMore and AnujSethi
* DPConference class that sets values for conference
*/
public class DPC... | true |
6a37cd7f554eb83f3caf4c4c7acf398596b43ddf | Java | vol2hv/mylang1 | /src/main/java/com/madv/mylang/proba/GetSet.java | UTF-8 | 459 | 2.609375 | 3 | [] | no_license | package com.madv.mylang.proba;
interface Set1{
int polyn(int x);
public Set1 getSet(int a);
}
class HashSet implements Set1 {
@Override
public int polyn(int x) {
return x*x+4;
}
@Override
public Set1 getSet(int a){
Set1 sss =new HashSet();
if (a > 0){
... | true |
356277767ba5f454feb70fffc0154aadfeafe542 | Java | chq347796066/base-interface | /common/src/main/java/com/spring/base/vo/saas/CompanyScaleUpdateVo.java | UTF-8 | 510 | 1.695313 | 2 | [] | no_license | package com.spring.base.vo.saas;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
/**
* @author 作者:ZhaoJinHua
* @date : 创建时间:2020-07-02 15:17:12
* @Desc类说明: 更新公司规模vo
*/
@ApiModel
@Data
@ToString
public class CompanyScaleUpdateVo ... | true |
64645480256b8283ab4a4da901f328211df30c80 | Java | zyweistart/startallproject | /project/WebCore/src/org/zyweistartframework/controller/result/Download.java | UTF-8 | 3,005 | 2.34375 | 2 | [] | no_license | package org.zyweistartframework.controller.result;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
impor... | true |
cddee26421f683a7f1ee02e9bcc5b19456372e68 | Java | ZhouSilverBullet/mobiclearsafe-overseas | /app/src/main/java/com/mobi/overseas/clearsafe/ui/powercontrol/util/APNMatchTools.java | UTF-8 | 4,453 | 2.234375 | 2 | [] | no_license | package com.mobi.overseas.clearsafe.ui.powercontrol.util;
import android.content.ContentValues;
import android.database.Cursor;
import android.net.Uri;
import android.util.Log;
import com.mobi.overseas.clearsafe.app.MyApplication;
import java.util.ArrayList;
import java.util.List;
/**
* @author zhousaito
* @versi... | true |
64973f47dbdb85f5b2771cb50df7836fd25a5ffa | Java | AbhishekJakkannavar/LadiesClub | /app/src/main/java/shareholder/infinity/com/ladiesclub/FeedbackActivity.java | UTF-8 | 1,829 | 1.914063 | 2 | [] | no_license | package shareholder.infinity.com.ladiesclub;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import com.google.android.gms.ads.AdRequest;
import com.google.androi... | true |
7907f9116d0114a264d2670ce97aba614a2b4035 | Java | DeerEyre/badboy | /src/work/Tetrisblok.java | GB18030 | 8,671 | 2.59375 | 3 | [] | no_license | package work;
import java.awt.Graphics;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.Timer;
import work.Tetrisblok.TimerListener;
... | true |
65887aa40f1cd5a14759b7fa413237e0b19ba39e | Java | helado12/blog | /src/main/java/com/htr/dao/TagDao.java | UTF-8 | 416 | 1.914063 | 2 | [] | no_license | package com.htr.dao;
import com.htr.pojo.Tag;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* @Author: T. He
* @Date: 2020/10/2
*/
@Repository
public interface TagDao {
int saveTag(Tag tag);
Tag getTag(Long id);
List<Tag> listTag();
int updateTag(Tag tag);
... | true |
1f8dd69145af1778e05d8868b72c9a3fc8207f35 | Java | dnalband/Algos | /arrays/src/main/java/com/dada/array/CheckPair.java | UTF-8 | 1,528 | 3.53125 | 4 | [] | no_license | package com.dada.array;
/**
* Created by dnalband on 31/08/15.
*/
public class CheckPair {
static int partition(int a[], int l , int r)
{
int p = a[r];
int i = l -1 ;
int temp = 0;
for (int j =l; j < a.length-1; j++)
{
if(a[j] < a[r])
{
... | true |
368d110cb7ae19d1de33e1e01febc4885f536148 | Java | ser6440/project | /Board/src/controller/MemberActionFactory.java | UTF-8 | 2,050 | 2.390625 | 2 | [] | no_license | package controller;
import controller.Action.Action;
import controller.Action.HomeFormAction;
import controller.Action.JoinAction;
import controller.Action.JoinFormAction;
import controller.Action.LoginAction;
import controller.Action.LoginFormAction;
import controller.Action.LoginSuccessAction;
import controller.Acti... | true |
77bdffb9bb181ac4e39bfc0ebab594dffdd0f91a | Java | naivesoft/st-analysis | /stock-analysis/src/main/java/com/st/framework/business/impl/factdate/FactDateHolidayListManager.java | UTF-8 | 4,356 | 2.109375 | 2 | [] | no_license | package com.st.framework.business.impl.factdate;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.st.Global;
import com.st.fr... | true |
9fd5284993adf356894a179134ef6617f5fdcc61 | Java | stjepano/filestore | /client/src/main/java/com/stjepano/filestore/client/FileStores.java | UTF-8 | 1,660 | 2.828125 | 3 | [] | no_license | package com.stjepano.filestore.client;
import java.io.IOException;
import java.net.URI;
import java.util.Properties;
/**
* Factory helper for obtaining handle to {@link FileStore} object
*/
public class FileStores {
/**
* Gets a {@link FileStore} object "connected" to a filestore server specified by uri.
... | true |
bee3f9f2c302e703e4cc436ca9d12874c6528735 | Java | 24Kshign/HttpRequestManager | /app/src/main/java/cn/jack/httprequestmanager/http/RetrofitManager.java | UTF-8 | 621 | 2.34375 | 2 | [] | no_license | package cn.jack.httprequestmanager.http;
import cn.jack.httprequestmanager.api.FRApi;
/**
* Created by jack on 2018/7/3
*/
public class RetrofitManager extends BaseRetrofit{
private FRApi mFRApi;
private static class NetWorkManagerHolder {
private static final RetrofitManager INSTANCE = new Retrof... | true |
b863b96a625c74ff9f09caa55e56c916560981b6 | Java | icecondor/android | /src/com/icecondor/nest/Condor.java | UTF-8 | 21,399 | 1.71875 | 2 | [
"Apache-2.0"
] | permissive | package com.icecondor.nest;
import java.net.URI;
import java.util.HashMap;
import java.util.UUID;
import org.joda.time.DateTime;
import org.json.JSONException;
import org.json.JSONObject;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.app.Service;
import android.content.Context;
im... | true |
dbf64d19fa2ba207f44d75780ce762cf3db7396e | Java | xuan698400/xutils | /base/src/main/java/com/xuan/xutils/base/exception/ExceptionFactory.java | UTF-8 | 3,050 | 2.890625 | 3 | [] | no_license | package com.xuan.xutils.base.exception;
/**
* 这里定义了构建异常的工厂,业务系统可按自己要求自己构建异常工厂类
* 系统构建异常最好都通过工厂类来获取,这样能够很好的收敛异常构建的方式
*
* @author xuan
* @since 2021/7/12
*/
public class ExceptionFactory {
/**
* 构建异常
*
* @param code 异常枚举
* @param params 提示参数
* @return 异常
*/
public static Bi... | true |
6ad2eb42a99fd8bcb6081cfcbaabe3d09e9e745c | Java | dykra/Constitution | /src/tests/ParseInstructionsTest.java | UTF-8 | 2,784 | 2.6875 | 3 | [] | no_license | package tests;
import agh.cs.constitution.ParseInstructions;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Created by Joanna on 2016-12-08.
*/
public class ParseInstructionsTest {
@Test
public void parseArgumentsChapterTest() throws Exception {
String[] argss = new String[3];
... | true |
c92de9b240d8a16da3bc16e364889223ea1b0bf8 | Java | megoan/CyberChat | /app/src/main/java/com/cyberx/shmuel/cyberx/controller/ReadWriteToFile.java | UTF-8 | 2,193 | 2.59375 | 3 | [] | no_license | package com.cyberx.shmuel.cyberx.controller;
import android.content.Context;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
/**
* Created by... | true |
0536b71d137dacc5b1b45c5d631f19fb0aafbb9b | Java | titanous/biscuit-java | /src/main/java/com/clevercloud/biscuit/datalog/World.java | UTF-8 | 3,087 | 2.953125 | 3 | [
"Apache-2.0"
] | permissive | package com.clevercloud.biscuit.datalog;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
public final class World implements Serializable {
private final Set<Fact> facts;
private final List<Rule> ... | true |
bf0123a34dd187538c37ee987f3b9e29d0c6f84c | Java | dekera30/Uts-Mobile-Programing | /app/src/main/java/com/example/utsmobile/Main3Activity.java | UTF-8 | 3,072 | 2.5 | 2 | [] | no_license | package com.example.utsmobile;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
public class Main3Activity extends AppCompatActivity {
Ed... | true |
9364a011c50388afa2b8270c62a964d60d85fc25 | Java | nathakhanh/algorithm | /src/com/practice/algorithm/BinaryTreeLevelOrderTraversal.java | UTF-8 | 1,298 | 2.953125 | 3 | [] | no_license | package com.practice.algorithm;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import com.practice.datastructure.TreeNode;
public class BinaryTreeLevelOrderTraversal {
public List<List<Integer>> levelOrder(TreeNode root) {
List<List<Integer>> output = new ArrayList<>();
... | true |
c31337ffde40ebfceb62b147fbe24a1f0a9236df | Java | melvincheng/Big-club | /backend/src/BankTest.java | UTF-8 | 1,006 | 2.53125 | 3 | [] | no_license | import static org.junit.Assert.*;
import junit.framework.JUnit4TestAdapter;
import org.junit.Test;
import org.junit.Before;
import org.junit.After;
import java.io.PrintStream;
import java.io.ByteArrayOutputStream;
public class BankTest{
final ByteArrayOutputStream outContent = new ByteArrayOutputStream();
@Before... | true |
a502a2eabbf3ade4a202941474ae674f6433744c | Java | jmdisher/Laminar | /common/src/com/jeffdisher/laminar/types/response/ClientResponsePayload_Empty.java | UTF-8 | 613 | 2.234375 | 2 | [
"MIT"
] | permissive | package com.jeffdisher.laminar.types.response;
import java.nio.ByteBuffer;
/**
* Used for ClientResponses which have no contents.
*/
public class ClientResponsePayload_Empty implements IClientResponsePayload {
public static ClientResponsePayload_Empty create() {
return new ClientResponsePayload_Empty();
}
pu... | true |
f2adaf3fa73f32e5673c043b2c0619b40036e07c | Java | Team4028/4028-PreBuild-Season-2019 | /src/main/java/org/usfirst/frc/team4028/robot/sensors/SwitchableCameraServer.java | UTF-8 | 4,677 | 2.65625 | 3 | [] | no_license | package org.usfirst.frc.team4028.robot.sensors;
// #region Imports
import java.nio.file.Files;
import java.nio.file.LinkOption;
import java.nio.file.Paths;
import edu.wpi.cscore.MjpegServer;
import edu.wpi.cscore.UsbCamera;
import edu.wpi.cscore.VideoMode;
// #endregion
// This class encapsulates interactions with t... | true |
be2380add2bddd5566be4f59bc820857d90a81a1 | Java | northriver2/draco | /core-devices/src/main/java/com/netstatx/draco/core/device/model/ProductEntity.java | UTF-8 | 1,048 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | package com.netstatx.draco.core.device.model;
import com.netstatx.draco.core.device.config.UuidGeneratorConfig;
import com.netstatx.draco.core.device.data.Product;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import javax.persistence.*;
/**
* @author wangle<thisiswangle@gmail.com>
*... | true |
61a28bf0eecb9c45fb93673757a83aa60018b8c5 | Java | Weret90/HomeworkLesson7 | /src/main/java/Main.java | UTF-8 | 1,487 | 3.671875 | 4 | [] | no_license | public class Main {
public static void main(String[] args) {
Plate plate = new Plate(18);
Cat[] cats = new Cat[5];
cats[0] = new Cat("Васька", 5);
cats[1] = new Cat("Пушок", 3);
cats[2] = new Cat("Борис", 6);
cats[3] = new Cat("Багира", 5); //только этому коту не хв... | true |
cd6978c25c74178c524525950933ec57788acaa7 | Java | baobao555/JavaFoundation | /JavaSE/src/baobao/concurrent/threadBaseApi/DaemonThreadDemo.java | UTF-8 | 1,403 | 3.59375 | 4 | [] | no_license | package baobao.concurrent.threadBaseApi;
import java.util.concurrent.TimeUnit;
/**
* @author baobao
* @create 2019-12-31 12:26
* @description 演示守护线程
*
* 守护线程:与它的父线程相关联,在父线程结束后,不管任务是否执行完毕,都将随着父线程一起结束
* 应用:比如心跳包线程可以设置为网络连接线程的守护线程,网络连接线程结束后,心跳包线程也就没有存在的意义了
*/
public class DaemonThreadDemo {
public static void... | true |
001f1d3722d38e5f122ee58fa71476aef0270778 | Java | yakamoz09/maliayyildiz | /src/test/java/pages/RegisterPage.java | UTF-8 | 1,639 | 2.0625 | 2 | [] | no_license | package pages;
import utilities.Driver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import java.util.List;
public class RegisterPage {
public RegisterPage(){
PageFactory.initElements(Driver.getDriver(), this);
}
... | true |
0d9edd655c47f4e2488b40298b28884b0d55abbf | Java | NikorasuOwO/IIP-PGR-2020-2021 | /IIP-2020-2021/exam2/PolygonGroup.java | UTF-8 | 2,903 | 3.609375 | 4 | [] | no_license | package exam2;
import java.awt.Color;
import others.Point;
import others.Polygon;
/**
* Clase PolygonGroup. Grupo de poligonos en el plano.
* Los poligonos estan en orden segun la secuencia en que se añaden
* al grupo, de manera que se considera que cada poligono esta mas
* arriba en el grupo que los poligonos... | true |