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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
e53100129e40d5b36259ba36922f58b56194faea | Java | gowtham-R-2001/javaprgs | /Javaprgs/class 1/bird.java | UTF-8 | 163 | 2.359375 | 2 | [] | no_license | import java.io.*;
public class bird extends animal
{
public bird(String name, String color, boolean hastale, int legs)
{
super(name,color,hastale,legs) ;
}
} | true |
a72d3dd1a59b79c97d9524eac800784547d9ae1a | Java | MProtasevich/tij4 | /src/initialization_and_cleanup/ex14/Static.java | UTF-8 | 391 | 3.125 | 3 | [] | no_license | package initialization_and_cleanup.ex14;
public class Static {
static String str1 = "definition init";
static String str2;
static {
System.out.println("static: " + str1);
str2 = "static block init";
System.out.println("static: " + str2);
}
public static void demo() {
... | true |
e07f8200f551c43fe615e4274cdb383cdeb3f3b6 | Java | reed07/MyPreferencePal | /jadx-MFP/src/main/java/com/lightstep/tracer/shared/GrpcCollectorClientProvider.java | UTF-8 | 1,209 | 1.929688 | 2 | [] | no_license | package com.lightstep.tracer.shared;
import com.mopub.common.Constants;
import io.grpc.ManagedChannelBuilder;
import io.grpc.ManagedChannelProvider;
import io.grpc.ManagedChannelProvider.ProviderNotFoundException;
public class GrpcCollectorClientProvider extends CollectorClientProvider {
private static GrpcCollec... | true |
ba1095f0ae4403986a910540799a8444ca78b113 | Java | cza267/Resume | /Meme_Proj/src/model/PlayerModel.java | UTF-8 | 860 | 3.53125 | 4 | [] | no_license | package model;
/**
* The PlayerModel is a class that defines a player
* based on their name.
*
* @author paul
*
*/
public class PlayerModel {
int votes; //number of votes the player was given
//for the current match being played
int totalVotes; //total votes a player has received
//used for tie b... | true |
db2ecc81c2a745a5898cf4dd21b0f23be5febbf0 | Java | ImMingJun/gitTest | /app/src/main/java/com/transportmm/tsportapp/mvp/ui/main/fragment/MyFragment.java | UTF-8 | 2,649 | 2.4375 | 2 | [] | no_license | package com.transportmm.tsportapp.mvp.ui.main.fragment;
import android.os.Bundle;
import com.transportmm.tsportapp.R;
import com.xinhuamm.xinhuasdk.base.fragment.HBaseFragment;
import com.xinhuamm.xinhuasdk.di.component.AppComponent;
/**
* 通过Template生成对应页面的MVP和Dagger代码,请注意输入框中输入的名字必须相同
* 由于每个项目包结构都不一定相同,所以每生成一个文件需... | true |
69d4b547f13e09eb9cd5c78cbcd254e49b5f3d80 | Java | moutainhigh/eis | /common/src/com/maicard/common/service/CacheService.java | UTF-8 | 874 | 2.03125 | 2 | [] | no_license | package com.maicard.common.service;
import java.util.List;
import com.maicard.annotation.ExecOnBothNode;
import com.maicard.common.criteria.CacheCriteria;
//import com.maicard.annotation.IgnoreJmsDataSync;
public interface CacheService {
void put(String cacheName, String key, Object value);
List<String> listKe... | true |
50944ce965a19c0089ada9de0f0e68aad87a5909 | Java | EBIvariation/eva-pipeline | /src/test/java/uk/ac/ebi/eva/pipeline/configuration/jobs/steps/LoadFeatureCoordinatesStepTest.java | UTF-8 | 3,121 | 1.664063 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2019 EMBL - European Bioinformatics Institute
*
* 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 b... | true |
fd158e33bc82561263b54ea62b296969c4b91fcc | Java | Klausmp/Space-Invaders | /src/input/Keyboard.java | UTF-8 | 910 | 3.046875 | 3 | [] | no_license | package input;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
/**
* @author Brotcrunsher
*/
public class Keyboard implements KeyListener {
private static boolean[] keys = new boolean[512];
public static boolean isKeyDown(int keyCode) {
return keyCode >= 0 && keyCode < keys.leng... | true |
89628abfd68c5e6c5d5654ddd594aeb66f871f65 | Java | fvincenzo/sistemidistribuiti | /JavaChat/src/gui/AdminGuiInterface.java | UTF-8 | 246 | 1.632813 | 2 | [] | no_license | /*
* Created on 12/mar/07
*
*/
package gui;
public interface AdminGuiInterface {
public void addLine(String chat, boolean privato);
public void editLine(String chat, boolean privato);
public void deleteLine(String chat);
}
| true |
a356dc469ddfbb4bff400810bc4510fb1477cfa7 | Java | ghadagamal91/Weather-MVP-App | /app/src/main/java/com/example/abdelhaf/weather/domain/controllers/communicator/WeatherDetailCommunicator.java | UTF-8 | 357 | 1.929688 | 2 | [] | no_license | package com.example.abdelhaf.weather.domain.controllers.communicator;
import com.example.abdelhaf.weather.domain.models.WeatherModel;
import java.util.ArrayList;
public interface WeatherDetailCommunicator {
public ArrayList<WeatherModel.list> getWeatherDetailItems();
void setWeatherDetailItems(ArrayList<W... | true |
cd7a5d27c4642fb7e64b3d5b0d8dc09d0c6c48aa | Java | MonkHank/hx_navigation | /app/src/main/java/com/seuic/hisense/utils/OperateProperties.java | UTF-8 | 2,836 | 2.328125 | 2 | [] | no_license | package com.seuic.hisense.utils;
import android.os.Environment;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.util.Properties;
/**
* Created by Administrator on 2015/3/13.
*/
public class OperateProperties {
/**
* btMac 蓝牙地址
* btPin 蓝牙pin码
... | true |
0ee8f770df78d4c6e6d26db17e84e6b80128ac9a | Java | esammer/flume | /flume-core/src/main/java/com/cloudera/flume/reporter/ReportEvent.java | UTF-8 | 14,809 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | /**
* Licensed to Cloudera, Inc. under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Cloudera, Inc. licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use th... | true |
eab174105032aa3f1ca74e64c5cfba54bc74cf0b | Java | EnMasseProject/enmasse | /systemtests/src/main/java/io/enmasse/systemtest/utils/AssertionPredicate.java | UTF-8 | 1,711 | 2.4375 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"CDDL-1.0",
"GPL-2.0-only"
] | permissive | /*
* Copyright 2020, EnMasse authors.
* License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
*/
package io.enmasse.systemtest.utils;
import java.util.Optional;
import java.util.function.Predicate;
import org.junit.jupiter.api.Assertions;
public class AssertionPredicat... | true |
9819f4aa35d9c5ad8ebd9762850702f2f8965f35 | Java | kirito5572/myjava | /School_Example/src/p_100/Boat.java | UTF-8 | 232 | 2.296875 | 2 | [] | no_license | package p_100;
public class Boat extends Ship {
@Override
public int maxSpeed() {
// TODO Auto-generated method stub
return 20;
}
@Override
public int passenger() {
// TODO Auto-generated method stub
return 5;
}
}
| true |
19bf180b5795e7b061440b76319bb8f9dd9fba06 | Java | whiteforlonely/design.pattern | /src/main/java/com/ake/designpattern/observer/demo/Client.java | UTF-8 | 808 | 3.171875 | 3 | [] | no_license | package com.ake.designpattern.observer.demo;
/**
* So, from now on, I still can not understand
* observer model very well, I still confuse.
* Here check the demo, the subject is the object
* you want to observer, so, as you have the listener in
* this subject, it is like the listener you set in
* the android v... | true |
54c83a624cf068df3e6f54747f077e9de3628e12 | Java | BATTLEHAWK00/OfficeWebPage | /src/main/java/bean/Post.java | WINDOWS-1252 | 1,462 | 2.203125 | 2 | [] | no_license | package bean;
import com.google.gson.Gson;
import jdk.jfr.DataAmount;
import lombok.Data;
/**
* ̬
*/
public class Post {
String postID;
String postTitle;
String postContent;
String author;
String category;
String photo_src;
int views;
long postTime;
String isPublished;
publi... | true |
cc35443e67df407cc478a0ccb4dd076e7015c4a7 | Java | heping56/NeckView | /neckview/src/main/java/com/spelcrawler/neckview/NeckView.java | UTF-8 | 21,252 | 1.953125 | 2 | [] | no_license | package com.spelcrawler.neckview;
import android.animation.ValueAnimator;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Point;
import android.graphics.RectF;
import android.os.Build;
import android.util.AttributeSet;
import android.view.M... | true |
567f088f60fdef5058ca405fcee0e2c623c7ddfc | Java | wliment/openlca-rap | /src/org/openlca/app/editors/reports/model/ReportResult.java | UTF-8 | 1,437 | 2.40625 | 2 | [] | no_license | package org.openlca.app.editors.reports.model;
import java.util.ArrayList;
import java.util.List;
class ReportResult {
private final int indicatorId;
private List<VariantResult> variantResults = new ArrayList<>();
public ReportResult(int indicatorId) {
this.indicatorId = indicatorId;
}
public int getIndicat... | true |
574219f4fb4f53590e36cbfd98d981c89c12f84e | Java | mmillward89/MSc-Computer-Science-Coursework | /Java Assignments/Car Rental (Assignment 3)/src/test/RentalCompanyGetRentedtest.java | UTF-8 | 2,364 | 3.125 | 3 | [] | no_license | package test;
import car.rental.*;
import java.util.*;
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import car.rental.LargeCar;
public class RentalCompanyGetRentedtest {
private LargeCar car1;
private LargeCar car2;
private LargeCar car3;
private L... | true |
155fa4ffe4fc35d7b48d4c62c5283a654731c28a | Java | NiuXinYue5528/Day02_Networkframework | /app/src/main/java/com/example/day02_networkframework/Wanandroid/PlayCallBack.java | UTF-8 | 1,031 | 2.25 | 2 | [] | no_license | package com.example.day02_networkframework.Wanandroid;
import android.util.Log;
import com.example.http_library.callback.BaseCallBack;
import com.google.gson.Gson;
import com.google.gson.JsonElement;
public abstract class PlayCallBack<T> extends BaseCallBack<T> {
PlayAndroid playAndroid;
@Override
protec... | true |
460215a39010341f1d4e664ba65c3fd876bddda1 | Java | 3449708385/SpringCloudDemo | /customer/src/main/java/com/mgp/customer/service/impl/UserServiceImpl.java | UTF-8 | 1,526 | 2.046875 | 2 | [] | no_license | package com.mgp.customer.service.impl;
import com.codingapi.txlcn.tc.annotation.DTXPropagation;
import com.codingapi.txlcn.tc.annotation.LcnTransaction;
import com.mgp.commons.bean.User;
import com.mgp.customer.dao.UserMapper;
import com.mgp.customer.service.LcnService;
import com.mgp.customer.service.UserService;
imp... | true |
79e657df61a284f073eab69b6fb331b85c4db0ba | Java | K-OpenNet/OpenStack-MultiView | /Visibility-Collection-Validation/Validators/kafka-influx-linker/src/Snap-Kafka-Linker/src/chainlinker/SnapPluginParser.java | UTF-8 | 1,866 | 2.578125 | 3 | [] | no_license | package chainlinker;
import java.io.InvalidClassException;
import java.util.HashMap;
import java.util.Set;
/*
* This class serve as a template for all Snap plugin parsers.
*/
public abstract class SnapPluginParser {
Long lValue = 0L;
Double lfValue = 0.0;
String sValue = "";
Boolean bValue = false;
// Thes... | true |
34162fc7858d9f8add309c11d834a2da12935033 | Java | sangnvus/201605JS01 | /WIP/Source/Veazy/src/main/java/vn/edu/fu/veazy/core/form/SubmitExamForm.java | UTF-8 | 1,129 | 1.984375 | 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 vn.edu.fu.veazy.core.form;
import java.util.ArrayList;
import java.util.List;
/**
*
* @author Hoang Linh
*/
public class S... | true |
205dd27bfb301818566c4d057a6ca503b0502d74 | Java | 1705A1z/yil | /app/src/main/java/com/wd/health/view/activity/PatientActivity.java | UTF-8 | 1,915 | 1.984375 | 2 | [] | no_license | package com.wd.health.view.activity;
import android.content.Intent;
import android.os.StrictMode;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import com.wd.health.R;
import com.wd.health.adapter.PatientAdapter;
import com.wd.health.ba... | true |
700dfb72f2453a06352b3423c968ee2c4f349760 | Java | zcc888/Java9Source | /javafx.graphics/com/sun/javafx/iio/ImageLoadListener.java | UTF-8 | 1,249 | 2.25 | 2 | [] | no_license | /*
* Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package com.sun.javafx.iio;
/**
* An interface defining methods which may be used to monitor image lo... | true |
2f007bbf9b5e081a8afecdfcd95ee65f751cb0b3 | Java | keedio/taildir-v2 | /src/test/java/org/keedio/flume/souce/watchdir/metrics/MetricsControllerTest.java | UTF-8 | 1,542 | 2.546875 | 3 | [
"Apache-2.0"
] | permissive | package org.keedio.flume.souce.watchdir.metrics;
import junit.framework.Assert;
import org.junit.Test;
import org.keedio.flume.source.watchdir.metrics.MetricsController;
import org.keedio.flume.source.watchdir.metrics.MetricsEvent;
public class MetricsControllerTest {
@Test
public void testManageTotalFiles() {
... | true |
9a8013a3ab0cebaa3933edc138abdcd1ba60f7e7 | Java | Allen517/rnntd | /src/main/java/com/kingwang/rnntd/dataset/CasLoader.java | UTF-8 | 2,794 | 2.203125 | 2 | [] | no_license | package com.kingwang.rnntd.dataset;
import java.io.BufferedReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;
import org.jblas.DoubleMatrix;
import com.kingwang.rnntd.comm.utils.FileUtil;
import com.kingwang.... | true |
19800ad84d8d8410823762babf574814cb78dc3e | Java | TerraGeo/java_test | /src/test/associate/floatNumberTasks/FloatIncrementDemo1.java | UTF-8 | 424 | 2.828125 | 3 | [] | no_license | package test.associate.floatNumberTasks;
public class FloatIncrementDemo1 {
public static void main(String[] args) {
float f = 12.1f;
double d = f++;
long l = 12;
System.out.println(d);
d--;
System.out.println(d);
d -= 0.3;
System.out.println(f + " " ... | true |
8050c21f65a8671d180d8bb9535ac46964cb5ec4 | Java | wlxzhg/shuati | /src/main/java/cn/xiaozhigang/code/sword/GetNext/Solution.java | UTF-8 | 1,396 | 3.078125 | 3 | [] | no_license | package cn.xiaozhigang.code.sword.GetNext;
import sun.reflect.generics.tree.Tree;
import java.util.ArrayList;
import java.util.List;
public class Solution {
public TreeLinkNode GetNext2(TreeLinkNode pNode) {
if(pNode == null) return null;
TreeLinkNode ans = null;
if(pNode.right != null) {... | true |
802b1410f850ff3e437514ddb7912ea22f44e7d4 | Java | georgiv/hacker-rank | /interview-preparation-kit/src/dictionariesandhashmaps/Tickets.java | UTF-8 | 1,855 | 3.484375 | 3 | [] | no_license | package dictionariesandhashmaps;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
class Ticket {
private String from;
private String to;
Ticket(String from, String to) {
this.from = from;
... | true |
3132fbf310291ea437f626f3b9c40b6833ea3fd8 | Java | JasonAchillious/Courschema_OOAD | /Backend/springproject/src/main/java/com/exercise/springproject/service/CollectionsServiceImpl.java | UTF-8 | 971 | 2.171875 | 2 | [] | no_license | package com.exercise.springproject.service;
import com.exercise.springproject.api.CollectionsRepository;
import com.exercise.springproject.domain.collections;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public c... | true |
1bb6df6e062b00a63c65369f4bff2707f6dfff01 | Java | shanyaodan/TestDownload | /app/src/main/java/test2/dyc/com/testdownload/DownloadManagerPro.java | UTF-8 | 3,604 | 2.421875 | 2 | [] | no_license | package test2.dyc.com.testdownload;
import java.io.File;
import android.annotation.SuppressLint;
import android.app.DownloadManager;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.net.Uri;
import android.os.Enviro... | true |
8f93b986820be6aa295aad4e92b0d6978b317f88 | Java | Unusualuser/javan | /Projects/Main/src/main/java/Practice_3/Book.java | UTF-8 | 1,276 | 3.390625 | 3 | [] | no_license | package Practice_3;
public class Book {
String author;
String name;
int theYearOfPublishing;
int pages;
public Book(String author, String name, int theYearOfPublishing, int pages) {
this.author = author;
this.name = name;
this.theYearOfPublishing = theYearOfPublishing;
... | true |
90ea81a634549ea2b728d98bff8802238885b28c | Java | ErikBrendel/LudumDare | /util/menu/Menu.java | UTF-8 | 3,998 | 2.734375 | 3 | [] | no_license | package util.menu;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.event.KeyEvent;
import java.util.ArrayList;
import logic.Game;
import main.Options;
import util.controls.Mouse;
import util.gfx.View;
public class Menu extends View {
private ArrayList<MenuState> menuStates;
private int cur... | true |
09d5c0985121fc9578615e4ccd823aada441d957 | Java | Shoreline/InterviewProblems | /InterviewProblems/src/array/CombinationSumII.java | UTF-8 | 5,453 | 3.4375 | 3 | [] | no_license | package array;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
/**
* Combination Sum II
*
* Given a collection of candidate numbers (C) and a target number (T), find all
* unique combinations in C where the candidate ... | true |
402a16addd6b9b8f7f33e11af4a1e85c63285b40 | Java | nireeksha98/JavaTraining | /Bus.java | UTF-8 | 734 | 3.21875 | 3 | [] | no_license | package javaday2;
import java.util.Scanner;
public class Bus {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner scan=new Scanner(System.in);
int i=0,j=0,amount,total=0;
int a[]= {700,500,800,450};
int t[]=new int[4];
while(i<4)
{
j=0;
while(j<7)
{
System.o... | true |
2012339499d1f4665ce8b80ac6fba70b4a16f9b9 | Java | ArchanaThapliyal/CdacFinalProject | /cdacproject/cdacproject/src/main/java/com/app/controller/AdminController.java | UTF-8 | 1,258 | 2.296875 | 2 | [] | no_license | package com.app.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.R... | true |
8a2ee52b548021967409c9392da460a0165d997d | Java | neelsoumya/Part-II-Project | /src/OWLExpressionTemplates/OWLAxiomStr.java | UTF-8 | 1,024 | 2.578125 | 3 | [] | no_license | package OWLExpressionTemplates;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.semanticweb.owlapi.model.AxiomType;
import org.semanticweb.owlapi.model.OWLObject;
public class OWLAxiomStr {
private AxiomType constructor;
private List<GenericExpStr> children;
private Express... | true |
91b9abcff48300dc64d49b828e00ab5e0a73f72c | Java | taobaorun/SCF4J | /cache-api/src/main/java/com/jiaxy/cache/Config.java | UTF-8 | 820 | 1.992188 | 2 | [
"Apache-2.0"
] | permissive | package com.jiaxy.cache;
/**
* @author: wutao
* @version: $Id:Config.java 2014/03/31 17:09 $
*
*/
public interface Config {
//cache switch
String ISCACHE = "isCache";
// is support substitute cache ,default is false
String ISSUBSTITUE = "isSubstitute";
//keyspace is for managing the cache k... | true |
572c2ef4548dd944cbe6a07cecc100de55344805 | Java | TheWizard91/Album_base_source_from_JADX | /sources/com/google/android/play/core/splitinstall/C3156v.java | UTF-8 | 437 | 1.578125 | 2 | [] | no_license | package com.google.android.play.core.splitinstall;
import android.content.Context;
/* renamed from: com.google.android.play.core.splitinstall.v */
public final class C3156v {
private C3156v() {
}
/* renamed from: a */
public static Context m1053a(Context context) {
Context applicationContext ... | true |
85347dc2e9f6c6982dd25bd9803f8c54d8fffd8c | Java | GhostNwa/election-eva-admin | /admin/admin-frontend/src/test/java/no/evote/presentation/validation/OnlyLettersAndSeparatorsValidatorTest.java | UTF-8 | 2,760 | 2.359375 | 2 | [] | no_license | package no.evote.presentation.validation;
import no.valg.eva.admin.BaseFrontendTest;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import javax.faces.component.UIComponent;
import javax.faces.validator.ValidatorException;
import static org.mockito.Mockito.when;
public class OnlyLet... | true |
4cafb37dacb35381aeca22d179995c69223fc6d7 | Java | Struti/thesis_CD | /program/modules/dal/src/test/java/com/me/thesis/holiday/dal/holidaytypes/maternity/dao/MaternityHolidayEntityDaoTest.java | UTF-8 | 3,705 | 2.359375 | 2 | [] | no_license | package com.me.thesis.holiday.dal.holidaytypes.maternity.dao;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.mockito.BDDMockito.given;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.verifyNoInteractions;
import static... | true |
fd1c96ba955a9df7ed537d41e8e9457a127310cc | Java | arrayexpress/annotare2 | /app/om/src/test/java/uk/ac/ebi/fg/annotare2/submission/model/MultiSetsTest.java | UTF-8 | 2,029 | 2.484375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2009-2016 European Molecular Biology 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 a... | true |
0bc76e07686aa8df5c909d0721c37d6b2a2597ff | Java | hradecek/booking-manager | /booking-manager-persistence/src/main/java/cz/muni/fi/pa165/entity/Customer.java | UTF-8 | 3,081 | 2.828125 | 3 | [] | no_license | package cz.muni.fi.pa165.entity;
import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotEmpty;
import javax.persistence.*;
import javax.validation.constraints.Size;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
/**
* Entity representing... | true |
951be140df7da68fced1583a033e7a3ec7510d72 | Java | streamoid/Animator-android | /TestAnimator/app/src/main/java/com/streamoid/testanimator/AppConfig.java | UTF-8 | 2,574 | 2.234375 | 2 | [] | no_license | package com.streamoid.testanimator;
import android.app.Application;
import android.util.Log;
import com.streamoid.animatorsdk.external.AnimatorClient;
import com.streamoid.animatorsdk.external.AnimatorLanguageCodes;
import com.streamoid.animatorsdk.external.RequestCallback;
import com.streamoid.animatorsdk.external.R... | true |
1971a3b0ae6a91145be9c61df2b9d5df6b7e8afa | Java | PotatoWhite/simple-reactive-rest-with-mongodb | /src/main/java/me/potato/simplereactiverestwithmongodb/controllers/StudentRestController.java | UTF-8 | 3,118 | 2.140625 | 2 | [] | no_license | /*
* StudentRestController.java 2021. 07. 08
*
* Copyright 2021 Naver Cloud Corp. All rights Reserved.
* Naver Business Platform PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package me.potato.simplereactiverestwithmongodb.controllers;
import org.springframework.http.HttpStatus;
import org.springf... | true |
3a8002accc739cb983fbfc57fc078b972c44d9c4 | Java | LagBug/ThePit | /src/com/LagBug/ThePit/Events/OnDeath.java | WINDOWS-1252 | 7,652 | 1.976563 | 2 | [] | no_license | package com.LagBug.ThePit.Events;
import java.util.HashMap;
import java.util.List;
import java.util.Random;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
... | true |
d51f326fdd2ac43d7c50f33c4a6fed6f7ee0132f | Java | arccassin/Java_Course | /Module_4/Lesson7/ReadNameRegular/src/Loader.java | UTF-8 | 692 | 2.84375 | 3 | [] | no_license | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.Buffer;
/**
* Created by Emessar_WinPC on 02 Дек., 2018
*/
public class Loader
{
public static void main(String[] args) throws IOException
{
BufferedReader bufferedReader = new BufferedReader(... | true |
507231f9abcdd468787f043191bd02fafd7a6c23 | Java | dita4publishers/dita4publishers | /src/java/net/sourceforge/dita4publishers/tools/mapreporter/HtmlDitaBosReporter.java | UTF-8 | 3,612 | 2.296875 | 2 | [] | no_license | /**
* Copyright 2009, 2010 DITA for Publishers project (dita4publishers.sourceforge.net) 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 requi... | true |
e87a904309e466532e4ce98a95e9fba735b560c5 | Java | jrdalpra/knappsack | /knappsack-core/src/main/java/com/sparc/knappsack/components/services/InvitationService.java | UTF-8 | 2,086 | 2.3125 | 2 | [
"MIT"
] | permissive | package com.sparc.knappsack.components.services;
import com.sparc.knappsack.components.entities.Domain;
import com.sparc.knappsack.components.entities.Invitation;
import com.sparc.knappsack.components.entities.Role;
import com.sparc.knappsack.enums.UserRole;
import com.sparc.knappsack.forms.InviteeForm;
import org.spr... | true |
20f2da0e9b8c8fd8b8aea08297504ba6a8fca4f8 | Java | floridexkj/GetComic | /src/manhuagui/DlManhuagui.java | UTF-8 | 5,437 | 2.34375 | 2 | [] | no_license | package manhuagui;
import java.util.ArrayList;
import java.util.Date;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.script.Invocable;
import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
import javax.swing.JOptionPane;
import ComicCore.Chapter;
import... | true |
91e1cadcc63a2e18219ceea0adf9aff722492821 | Java | sgupta229/Monopoly | /src/Model/spaces/SpaceGroup.java | UTF-8 | 162 | 1.53125 | 2 | [
"MIT"
] | permissive | package Model.spaces;
public enum SpaceGroup {
TAX,
ACTION,
GO_TO_JAIL,
JAIL,
GO,
FREE_PARKING,
COLOR,
RAILROAD,
UTILITY;
}
| true |
4596fa8bded43c054dfce75ea9607440807f18e7 | Java | Jandres1420/Parcial_parte2 | /ecitv/src/test/java/edu/eci/cvds/ecitv/service/SubscriptionServiceTest.java | UTF-8 | 2,245 | 2.578125 | 3 | [] | no_license | package edu.eci.cvds.ecitv.service;
import java.math.BigDecimal;
import org.junit.Assert;
import org.junit.Test;
import edu.eci.cvds.ecitv.model.SubscriptionCategory;
import edu.eci.cvds.ecitv.model.SubscritionException;
/**
* Test class for {@link SubscriptionService}
*/
public class SubscriptionServiceTest {
... | true |
cc8817e40b61e3fd6564fe8d1a93bd3661967f3e | Java | modiamar/bitcoin-monitor | /src/main/java/com/monitor/stats/bitcoinmonitor/services/CoinStatisticsService.java | UTF-8 | 535 | 1.835938 | 2 | [] | no_license | package com.monitor.stats.bitcoinmonitor.services;
import java.io.IOException;
import java.util.ArrayList;
import org.json.JSONException;
import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.monitor.stats.bitcoinmonitor.domain.CoinStati... | true |
a99b2dd2a4a994a5ea4da6a73484c0a673d3f9f8 | Java | Dominik71830/DasMagazin | /Aplikacja11.11/src/GUIe/OpcjeZaawOkno.java | WINDOWS-1250 | 12,167 | 2.609375 | 3 | [] | no_license | package GUIe;
import java.awt.EventQueue;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JTable;
import javax.swing.JTextField;
import javax.swing.JCheckBox;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.sql.SQLException;
imp... | true |
e97938d3a35ffc98a2b5538933c5fd979c4e00ab | Java | CocoElf/CodeelfAndroid | /app/src/main/java/cocoelf/codeelfandroid/fragment/SearchResultItemDetailFragment.java | UTF-8 | 4,161 | 1.960938 | 2 | [] | no_license | package cocoelf.codeelfandroid.fragment;
import android.app.ProgressDialog;
import android.content.SharedPreferences;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.View;
import android.webkit.JavascriptInterface;
import an... | true |
da3aa6e737d69f957fafbb80e4b3774a097c6cf1 | Java | sabaty10/JAVA | /Airplanes/src/Plane223.java | UTF-8 | 318 | 3.140625 | 3 | [] | no_license |
public class Plane223 extends Plane{
private char letter;
public Plane223(char letter,String name,int km,int age) {
super();
this.name = name;
this.km = km;
this.age = age;
this.letter = letter;
}
@Override
public String toString() {
return super.toString()+
" letter is: " + letter;
}
} | true |
451b1cba49d21331ceb4c6d732fda360b0b8e632 | Java | azurenightwalker/icssms | /SMSLib/src/main/java/com/androidproductions/libs/sms/SmsMessage.java | UTF-8 | 4,411 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | package com.androidproductions.libs.sms;
import android.content.ContentValues;
import android.content.Context;
import com.androidproductions.libs.sms.com.androidproductions.libs.sms.TextUtilities;
import com.androidproductions.libs.sms.com.androidproductions.libs.sms.constants.MessageType;
/*
* SmsMessageView:
* ... | true |
b38c6886b9b37bd03340e5f830ca32305540454a | Java | Afsana-hussain1/Afsana_Hussain_Java_S1 | /summative 120419/summative 9/starter-code/stwitter-service/src/main/java/com/trilogyed/stwitter/feign/CommentServiceClient.java | UTF-8 | 904 | 2.046875 | 2 | [] | no_license | package com.trilogyed.stwitter.feign;
import com.trilogyed.stwitter.model.Comment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMappi... | true |
4f3357520ea2edbdc7b76b96f951882cf33aace9 | Java | TOMProject/trunk | /src/main/java/com/station/moudles/service/impl/CityCodeServiceImpl.java | UTF-8 | 477 | 1.640625 | 2 | [] | no_license | package com.station.moudles.service.impl;
import com.station.moudles.entity.CityCode;
import com.station.moudles.mapper.CityCodeMapper;
import com.station.moudles.service.CityCodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
pu... | true |
6e1cc18a23910f676a9fe801d75da7f85355ae7c | Java | Sivaranjane29/kitchen-inventory | /app/src/main/java/com/example/kitcheninventory/adaptor/SavedRecipeItemAdaptor.java | UTF-8 | 2,164 | 2.21875 | 2 | [] | no_license | /*
* Copyright (c) 2021.
*/
package com.example.kitcheninventory.adaptor;
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... | true |
0fe00630d3b95af6246012e57b04bab8616a56bb | Java | MaheshPraveen-kumar/SeleniumTestNG | /L2_RetryFailedTestCast.java | UTF-8 | 401 | 1.984375 | 2 | [] | no_license | package TestNGLearning;
import java.util.NoSuchElementException;
import org.testng.annotations.Test;
public class L2_RetryFailedTestCast {
// @Test(retryAnalyzer = L1_ReteyTestCase.class)
@Test
public void createLead()
{
System.out.println("createdLead");
throw new NoSuchElementException();
}
... | true |
20864bff320415f6585a60b4c118bd45e57052a1 | Java | nihz/demo | /edu/spring-resource-code/src/main/java/com/nee/demo/edu/pattern/adapter/ResultMsg.java | UTF-8 | 171 | 1.578125 | 2 | [] | no_license | package com.nee.demo.edu.pattern.adapter;
import lombok.Data;
@Data
public class ResultMsg {
private String code;
private String msg;
private Object data;
}
| true |
352cb3ae03448a3bac93d74c2192d94300c542d6 | Java | lixiang0318/java_practice | /src/com/lixiang/Car.java | UTF-8 | 445 | 2.53125 | 3 | [] | no_license | package com.lixiang;
public class Car {
protected String name;
protected int price;
protected boolean isExist;
protected int type ;
public boolean isExist() {
return isExist;
}
public void setExist(boolean isExist) {
this.isExist = isExist;
}
public String getName() {
return name;
}
public void setName(String name)... | true |
05d2a72b156d7df8a856a64608dc3c03e42ad488 | Java | fengwenyi/spring-boot-invoke-example | /src/main/java/com/fengwenyi/springbootinvokeexample/service/TestService.java | UTF-8 | 277 | 2.125 | 2 | [] | no_license | package com.fengwenyi.springbootinvokeexample.service;
import org.springframework.stereotype.Service;
/**
* @author Erwin Feng
* @since 2020/6/28 4:23 下午
*/
@Service
public class TestService {
public String say(String name) {
return "Hello " + name;
}
}
| true |
e13f7639fcf2d68369823b69754ff28db737c5d1 | Java | Arasefe/ZeroToHero | /src/buildingblocks/variables/RollerSkates.java | UTF-8 | 281 | 2.703125 | 3 | [] | no_license | package buildingblocks.variables;
public class RollerSkates {
static int wheels=1;
int tracks=5;
public static void main(String[] args) {
RollerSkates s=new RollerSkates();
int feet=4,tracks=15;
System.out.println(feet+tracks+wheels);
}
}
| true |
d1ea7abc49d0b45bc6fed6a0996e5dd8102d4b4f | Java | james-level/Basis-of-a-very-simple-fantasy-game | /src/main/java/Game/Players/Dwarf.java | UTF-8 | 522 | 2.609375 | 3 | [] | no_license | package Game.Players;
import Game.Abilities.Weapon;
import Game.Behaviours.IPlayer;
import Game.RoomContents.Treasure;
import java.util.ArrayList;
public class Dwarf extends Fighter implements IPlayer{
private String name;
private ArrayList<Treasure> treasureBag;
private int healthPoints;
... | true |
289d7ea7251213586da0e90fc60dabd724ad7438 | Java | hzq-up/dragonshopping | /src/main/java/com/hzq/dragonshopping/controller/CommonController.java | UTF-8 | 915 | 1.6875 | 2 | [
"Apache-2.0"
] | permissive | package com.hzq.dragonshopping.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
@Controller
public class CommonController {
@RequestMapping("welcome")
public String welcome(){
... | true |
2a54663fdc880c1a09ed10f7a5607a3c052bfeb0 | Java | alexeil/sikb-api | /server/src/test/java/com/boschat/sikb/api/configuration/SeasonTest.java | UTF-8 | 6,250 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | package com.boschat.sikb.api.configuration;
import com.boschat.sikb.AbstractTest;
import com.boschat.sikb.JerseyTestExtension;
import com.boschat.sikb.model.Season;
import com.boschat.sikb.model.SeasonForCreation;
import com.boschat.sikb.model.SeasonForUpdate;
import org.junit.jupiter.api.BeforeEach;
import org.junit.... | true |
b43f9e534c4c91be13afbdaf1e2f1d8798c61884 | Java | christophe238/cast-dashboard-android-app | /app/src/main/java/com/silver/dan/castdemo/AppSettingsLayout.java | UTF-8 | 2,291 | 1.78125 | 2 | [
"MIT"
] | permissive | package com.silver.dan.castdemo;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.SeekBar;
import com.silver.dan.castdemo.databinding.FragmentAppSettingsLayoutBinding;
import butterknife.BindView;
import butterknife.ButterKn... | true |
4b69d1aaa1b6fbee7050e06c0a12e33be8111b7e | Java | inevitablerharj/mytaxi | /app/src/main/java/com/mytaxi/android_demo/misc/Constants.java | UTF-8 | 1,116 | 1.851563 | 2 | [] | no_license | package com.mytaxi.android_demo.misc;
import com.google.android.gms.maps.model.LatLng;
public final class Constants {
private Constants() {
}
// Tag
public static final String LOG_TAG = "MYT";
// Network
public static final int SOCKET_TIMEOUT = 30;
// Location
public static final f... | true |
150251fde29c55b160bc3db07e17746855a38288 | Java | arkajnag/infor-client-app-microservice | /src/main/java/io/demoClient/config/ThreadConfiguration.java | UTF-8 | 840 | 2.15625 | 2 | [] | no_license | package io.demoClient.config;
import java.util.concurrent.Executor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
@C... | true |
53f8fd781599e5839abbb5c902e8a1d4db03c4cd | Java | davidot/Duckhorde | /src/duckHorde/level/entities/Direction.java | UTF-8 | 324 | 2.65625 | 3 | [] | no_license | package duckHorde.level.entities;
/**
* Created by David on 18-6-2014.
* Duck hordes
*/
public enum Direction {
UP,
DOWN,
RIGHT,
LEFT;
public boolean isHorizontal() {
return this==LEFT || this==RIGHT;
}
public boolean isVertical() {
return this==UP || this==DOWN;
}... | true |
d22e199a98cdc31854d73bcc068d2c17b103aa30 | Java | khushwant-shiwal/Data-Structures-and-Algorithms | /Searching/src/com/rwitesh/FindMinimumNumber.java | UTF-8 | 478 | 3.375 | 3 | [] | no_license | package com.rwitesh;
public class FindMinimumNumber {
static int findMin(int[] arr){
int min = Integer.MAX_VALUE;
for(int i=0; i<arr.length; i++){
if (arr[i]<min){
min = arr[i];
}
}
return min;
}
public static void main(String[] args) ... | true |
1a937d46e52828196c87a4e569c8937acf69d2ab | Java | chenbin9333/delonix | /src/main/java/com/delonix/service/consumer/Consumer.java | UTF-8 | 954 | 2.40625 | 2 | [
"Apache-2.0"
] | permissive | /**
* @Title: Comsumer.java
* @Package com.delonix.service.consumer
* @Description: TODO
* @author chenbin
* @date 2016年12月7日 下午5:35:10
* @version V1.0
*/
package com.delonix.service.consumer;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import com.delonix.service.HelloSe... | true |
313b1f9e02fedf79eee1739b086637c0e144b04c | Java | lmrnba6/Feed-Me | /FeedMe/Feed-Me.git/.svn/pristine/31/313b1f9e02fedf79eee1739b086637c0e144b04c.svn-base | UTF-8 | 964 | 2.25 | 2 | [] | no_license | package com.journaldev.spring.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.journaldev.spring.dao.MenuDAO;
import com.journaldev.spring.mode... | true |
cb89fb32d1017fad9fee7526a03740f8d7c26457 | Java | kxw07/LeetCode | /src/main/java/lt/easy/sum_of_root_to_leaf_binary_numbers_1022/Answer1022.java | UTF-8 | 964 | 3.203125 | 3 | [] | no_license | package lt.easy.sum_of_root_to_leaf_binary_numbers_1022;
import java.util.List;
public class Answer1022 {
private int result = 0;
public int sumRootToLeaf(TreeNode root) {
preorder(root, 0);
return result;
}
public void preorder(TreeNode root, int sum) {
if (root == null) r... | true |
db81403498758b038d6c0b62d6c29831b18f9535 | Java | Leithian/Red-Fire | /Red Fire/src/vic/rpg/gui/GuiConnect.java | UTF-8 | 3,618 | 2.234375 | 2 | [] | no_license | package vic.rpg.gui;
import java.awt.Color;
import java.awt.Font;
import java.awt.event.KeyEvent;
import javax.media.opengl.GL2;
import vic.rpg.Game;
import vic.rpg.client.net.NetHandler;
import vic.rpg.gui.controls.GButton;
import vic.rpg.gui.controls.GButton.IGButton;
import vic.rpg.gui.controls.GTextField;
import... | true |
c7540b232da7185c2653f97841a241ce673c9e07 | Java | rohitnand007/on_premise_server | /ops_server/src/com/edutor/cacheserver/ReportType.java | UTF-8 | 2,492 | 1.625 | 2 | [] | no_license | package com.edutor.cacheserver;
public class ReportType {
// Keep creating types here
public static final String FILE_SERVED = "FILE_SERVED";
public static final String FILE_REDIRECTED_TO_PORTAL = "FILE_REDIRECTED_TO_PORTAL";
public static final String FILE_NOT_FOUND = "FILE_NOT_FOUND";
public static final Strin... | true |
d33286567481286392da256b5b88b39b3f9ce22e | Java | 1993601516/ayosobi | /blog/src/main/java/cn/jiawei/blog/service/blogService/CategoryService.java | UTF-8 | 344 | 1.859375 | 2 | [
"Apache-2.0"
] | permissive | package cn.jiawei.blog.service.blogService;
import cn.jiawei.blog.pojo.Blog;
import cn.jiawei.blog.pojo.Category;
import java.util.List;
public interface CategoryService {
Category selectOneByname(String category_name);
List<String> ListCategoryNames(List<Blog> blogs);
int CategoryCount();
List<Categ... | true |
2ded63b7a202469708c4b2092ab15db6e27dd803 | Java | yusyue/manageSys | /src/main/java/cn/yekong/managesys/model/bo/UserInfoReqBO.java | UTF-8 | 3,013 | 2.0625 | 2 | [] | no_license | package cn.yekong.managesys.model.bo;
import java.util.Date;
public class UserInfoReqBO {
private Integer userId;
private String userName;
private String userAge;
private String userSex;
private Date userBirth;
private String userPhone;
private String userIdCard;
private String ... | true |
284343d04f6845d35ada6945d8ea8d5e73ae0467 | Java | bellmit/vst_order | /src/main/java/com/lvmama/vst/order/utils/HTTPClientUtil.java | UTF-8 | 3,838 | 2.5 | 2 | [] | no_license | package com.lvmama.vst.order.utils;
import java.io.IOException;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.config.RequestConfig;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.StringEntity;
import org.apache.http... | true |
8580a30b9c06dd1846b8c17e56620810c96076cb | Java | liushunxin4613/full | /core/src/main/java/com/leo/core/net/Api.java | UTF-8 | 1,113 | 1.992188 | 2 | [] | no_license | package com.leo.core.net;
import java.util.Map;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.http.Body;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.Path;
i... | true |
ca31af35b5ce841b5047b44f4b258dcedd1fa99f | Java | oakes1218/java | /Javawork/src/Test.java | UTF-8 | 483 | 2.671875 | 3 | [] | no_license |
public class Test {
//static Picture[] pi = new Picture[2];
//public Test(){
public static void main (String []arge){
Picture pi = new Picture();
//Picture[] pi = new Picture[2];
Bingo bingo = new Bingo();
//bingo.Comparison();
for(int z = 0 ; z < 2 ; z++ ){
for (int i = 0 ; i < 25 ; i++){
... | true |
8f170c3d622ebe6ca8ff8e5bee7d29845a0d9017 | Java | Pixate/pixate-freestyle-android | /pixate-freestyle/src/com/pixate/freestyle/pxcomponentkit/view/PXButton.java | UTF-8 | 2,957 | 2.109375 | 2 | [
"LicenseRef-scancode-other-permissive",
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | /*******************************************************************************
* Copyright 2012-present Pixate, 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://w... | true |
ce9e7e09cef26fc3b9900d5adb0c2685d7d690c1 | Java | frc3528/upnext2014code | /src/org/usfirst/frc3528/UpNext2014Robot/commands/AutonomousOneBall.java | UTF-8 | 665 | 2.03125 | 2 | [] | no_license |
package org.usfirst.frc3528.UpNext2014Robot.commands;
import edu.wpi.first.wpilibj.command.CommandGroup;
import org.usfirst.frc3528.UpNext2014Robot.RobotMap;
/**
*
*/
public class AutonomousOneBall extends CommandGroup {
public AutonomousOneBall() {
//addSequential(new CameraLightOn());
... | true |
d2520afd1f1aefa3e198475e48bd3cfd105c4c0a | Java | nesh170/ProjectSID | /src/gameEngine/actions/ShootAction.java | UTF-8 | 1,474 | 2.671875 | 3 | [] | no_license | package gameEngine.actions;
import data.DataHandler;
import javafx.scene.input.KeyCode;
import sprite.Sprite;
import gameEngine.components.AmmoComponent;
import gameEngine.components.ProjectileMotionComponent;
/**
* Action to shoot projectiles.
* Will always be mapped to key.
*/
@ActionName(displayName = "Shoot")... | true |
06611b52aad2c8c02b39e80496882ef575c4bd8a | Java | TheSauravChandra/Live-AQI | /app/src/test/java/com/saurav/sauravcaqi/AqiMappingUnitTestCase.java | UTF-8 | 1,196 | 2.09375 | 2 | [] | no_license | package com.saurav.sauravcaqi;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import java.util.Arrays;
import java.util.Collection;
import static com.saurav.sauravcaqi.utils.MyUtils.getAQIcolourMappingRes;
import static junit.framework.TestCase.assertEquals;
@RunWit... | true |
b5c05434712cfdaecd023c71c25fae328ceabd0c | Java | 157758921qq/sts4.9 | /weixinnew9_mybatis3_forget2/src/main/java/com/markus/wx/controller/WebController.java | UTF-8 | 3,765 | 2.234375 | 2 | [] | no_license | package com.markus.wx.controller;
import java.io.File;
import java.io.FileOutputStream;
import java.util.Date;
import java.util.UUID;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.sprin... | true |
1a97859dfaf94bbff57524faefe85297c03dd590 | Java | Nbhadani/Page-Object-Model-structure-demo | /src/main/java/org/example/BrowserSelector.java | UTF-8 | 2,363 | 2.515625 | 3 | [] | no_license | package org.example;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.openqa.selenium.remote.DesiredCapabilities;
import java.util.concurrent.TimeUnit;
public class BrowserSelector extends Utils{
pu... | true |
e6cca30bc8b00a866587e332da1a399be22105f6 | Java | Maecenas49/BNR-Projects | /CriminalIntent/app/src/main/java/com/bignerdranch/android/criminalintent/ConfirmDeleteFragment.java | UTF-8 | 2,324 | 2.359375 | 2 | [] | no_license | package com.bignerdranch.android.criminalintent;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.app.DialogFragme... | true |
0fe9296a89391e8a1349ce3d4b265bfd669e2f8c | Java | ColleenKeegan/googleads-java-lib | /modules/adwords_axis/src/main/java/com/google/api/ads/adwords/axis/v201806/cm/PredicateOperator.java | UTF-8 | 6,143 | 1.890625 | 2 | [
"Apache-2.0"
] | permissive | // Copyright 2018 Google LLC
//
// 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 writi... | true |
536991253ba9e8a69e8f7df70311fb52f20d0896 | Java | wphimm/InlistAlfa | /InList/src/co/inlist/activities/NoCardActivity.java | UTF-8 | 3,480 | 1.976563 | 2 | [] | no_license | package co.inlist.activities;
import co.inlist.util.Constant;
import co.inlist.util.UtilInList;
import android.app.ActionBar;
import android.app.Activity;
import android.content.Intent;
import android.graphics.Typeface;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.View;
import android.vi... | true |
c5fd3eda8b2a986b9667c34117a9949592abf3ae | Java | exciak/ssmweb | /src/main/java/com/klw/oa/controller/TechClsControl.java | UTF-8 | 4,917 | 2.15625 | 2 | [] | no_license | package com.klw.oa.controller;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stere... | true |
c5e5cf106201764de235993e4001e927b11128e8 | Java | gnomex/javando | /src/br/github/gnomex/files/DummieRecord.java | UTF-8 | 2,922 | 2.9375 | 3 | [
"MIT"
] | permissive | package br.github.gnomex.files;
import java.io.Serializable;
import java.util.StringTokenizer;
/**
* A dummy object to provide some data
*/
public class DummieRecord implements Serializable{
private static final long serialVersionUID = 1L;
private String something;
private String somebody;
private int aNumb... | true |
eb7a34ebb79da8b8ffa1b4cf9046765097bb0435 | Java | q821863269/keep-learn | /kl-auth/src/main/java/cn/goduck/kl/auth/controller/OAuthController.java | UTF-8 | 4,407 | 2.1875 | 2 | [] | no_license | package cn.goduck.kl.auth.controller;
import cn.goduck.kl.common.core.base.R;
import cn.goduck.kl.common.core.constant.AuthConstant;
import cn.goduck.kl.common.core.constant.RedisConstant;
import cn.goduck.kl.common.core.constant.StrConstant;
import cn.goduck.kl.common.core.util.JwtUtil;
import cn.hutool.core.util.Obj... | true |
5f40ea000953313de4d6498c53832554e627792e | Java | GuestEG/PluginsForForestry | /src/main/java/denoflionsx/PluginsforForestry/API/Interfaces/IPfFContainer.java | UTF-8 | 138 | 1.695313 | 2 | [] | no_license | package denoflionsx.PluginsforForestry.API.Interfaces;
public interface IPfFContainer {
public String getContainerTag();
}
| true |
fc77183c904682ba08cdc0016b042088611112d2 | Java | chandrakanth527/mosquitto-mqtt-client-android | /PushAndroidClient/src/org/sidibe/android/pushlib/client/DemoActivity.java | UTF-8 | 3,760 | 2.25 | 2 | [] | no_license | package org.sidibe.android.pushlib.client;
import java.util.ArrayList;
import org.sidibe.android.pushlib.client.demo.R;
import org.sidibe.mqtt.android.lib.MqttClientState;
import org.sidibe.mqtt.android.lib.MqttMessage;
import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Con... | true |
c542eea6e603a05a4a3e5ca58cfbbd09fefd3ac5 | Java | jfonseca85/cotacao-moedas | /spring-batch-csv-to-mongo/src/main/java/com/shangrila/microservices/currency/conversion/service/batch/ValueSetDataFileReader.java | UTF-8 | 952 | 1.90625 | 2 | [] | no_license | package com.shangrila.microservices.currency.conversion.service.batch;
import java.io.ByteArrayInputStream;
import org.springframework.batch.core.configuration.annotation.StepScope;
import org.springframework.batch.item.file.FlatFileItemReader;
import org.springframework.beans.factory.annotation.Value;
import org.spr... | true |
dc0d0e3711d27f78ada36650fb67bb8441d82246 | Java | zhangshenzhen/VipCard | /app/src/main/java/com/bjypt/vipcard/model/RedPacketBean.java | UTF-8 | 541 | 1.9375 | 2 | [] | no_license | package com.bjypt.vipcard.model;
/**
* Created by Administrator on 2016/4/1.
*/
public class RedPacketBean {
private int tv_redPacketPrice;
private String limitDate;
public int getTv_redPacketPrice() {
return tv_redPacketPrice;
}
public void setTv_redPacketPrice(int tv_redPacketPrice) {... | true |