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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
ed9de20937fa8721f623502dc6bcc6de3e406b1a | Java | gdkyit/yujietuo-wx | /arch-web/src/main/java/com/gdkyit/webapp/dao/BaseDao.java | UTF-8 | 625 | 1.953125 | 2 | [] | no_license | package com.gdkyit.webapp.dao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
import org.springframework.stereotype.Repository;
import java.util.List;
import java.util.Map;
@... | true |
99ff0b9901b4c5366dfc83fee744b22a21182efa | Java | de-tu-berlin-tfs/Henshin-Editor | /de.tub.tfs.henshin.editor/src/de/tub/tfs/henshin/editor/editparts/rule/graphical/NodeRuleXYLayoutEditPolicy.java | UTF-8 | 2,071 | 1.84375 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2010-2015 Henshin developers. All rights reserved.
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is ava... | true |
a23e1860c1516ee139a9eb137b30b813070e41c9 | Java | Vaakapallo/ballin-octo-ohtu2 | /viikko6/Oluttietokanta1/src/main/java/olutopas/Commands/AddBrewery.java | UTF-8 | 791 | 2.671875 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package olutopas.Commands;
import java.util.Scanner;
import olutopas.Database.Datamapper;
import olutopas.model.Brewery;
/**
*
* @author lassi
*/
class AddBrewery extends Command {
public AddBrewery(Scanner sca... | true |
3e55df991c5ddded288d07b8f11ffa960563e87f | Java | Venmathi1697/Java-programs | /CCC.java | UTF-8 | 263 | 3.03125 | 3 | [] | no_license | public class CCC
{
public void methodc()
{
System.out.println("Single inheritance contains one parent one child");
System.out.println("Multiple inheritance does not exits in java");
System.out.println("multilevel contains one parent and two or more child");
}
} | true |
da95dba474e82a2f8213e7ec451d1f2e56a8fbab | Java | sarvagyaa/unga-extraction | /commons/solr/core/src/main/java/org/apache/stanbol/commons/solr/utils/AbstractAnalyzerFactoryActivator.java | UTF-8 | 8,561 | 1.695313 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not u... | true |
06c8480aab7f6aaa448556970125a940be8bac82 | Java | bzholmyrza/instazoo | /src/main/java/kz/bzholmyrza/repository/CommentRepository.java | UTF-8 | 435 | 1.921875 | 2 | [] | no_license | package kz.bzholmyrza.repository;
import kz.bzholmyrza.entity.Comment;
import kz.bzholmyrza.entity.Post;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface CommentRepository extends JpaRepository<Comment,... | true |
271c222885775a4207079ba3f7491810e19c128c | Java | EzequielMessore/TrackProject | /app/src/main/java/com/br/traktproject/MainApplication.java | UTF-8 | 347 | 1.695313 | 2 | [] | no_license | package com.br.traktproject;
import android.app.Application;
import com.br.traktproject.helpers.ContextHelper;
/**
* Created by Ezequiel Messore on 23/09/2016.
* ezequielmessore.developer@gmail.com
*/
public class MainApplication extends Application {
@Override
public void onCreate() {
super.onC... | true |
e8911d7f572a5c7776f8dc9c508d5a680c79f2ce | Java | eoss1990/deeEngine | /src/main/java/com/seeyon/v3x/dee/enumerate/EnumerateConfig.java | UTF-8 | 7,111 | 2.21875 | 2 | [] | no_license | package com.seeyon.v3x.dee.enumerate;
import com.seeyon.v3x.dee.DEEConstants;
import com.seeyon.v3x.dee.TransformFactory;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import jav... | true |
5f0ecce3eeb06f524b551d88ee0f76a203ab0d24 | Java | zerocool947/AnAppOfThings | /src/com/poorfellow/agameofthings/bluetooth/DiscoveryRunner.java | UTF-8 | 421 | 2.34375 | 2 | [] | no_license | package com.poorfellow.agameofthings.bluetooth;
import android.util.Log;
/**
* Created by David on 3/2/14.
*/
public class DiscoveryRunner extends Thread {
private final BluetoothHandler btHandler;
public DiscoveryRunner (BluetoothHandler btHandler) {
this.btHandler = btHandler;
}
public ... | true |
946a0d89ffca5d81232a69befd11be6aa47fc1d1 | Java | TheDudeFromCI/AwgenShell | /AwgenShell/src/main/java/net/whg/awgenshell/arg/FormattedStringArgument.java | UTF-8 | 956 | 3.109375 | 3 | [
"MIT"
] | permissive | package net.whg.awgenshell.arg;
import net.whg.awgenshell.exec.ShellEnvironment;
/**
* A class representing a formatting string argument, which acts as a string,
* that replaces variable names within the string to the current variables
* value.
*
* @author TheDudeFromCI
*/
public class FormattedStringArgument i... | true |
3bd9caa94038913feadc54e9344e65a0ee8ff3fa | Java | FRC3546/Competition-Robot-2016 | /src/org/usfirst/frc3546/StopWhen.java | UTF-8 | 159 | 1.679688 | 2 | [
"MIT"
] | permissive | package org.usfirst.frc3546;
/**
* Created by Owner on 3/3/2016.
*/
public enum StopWhen {
Level, NotLevel, Timeout, ChevalAngle, Collision, YawAngle
}
| true |
ca1f500a4070a24496d8f0dc3f58ae65ffaa6421 | Java | MerlinGuy/doople | /install/build/svr/src/org/geof/dpl/mgr/DomainMgr.java | UTF-8 | 8,624 | 1.976563 | 2 | [] | no_license | package org.geof.dpl.mgr;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.StringReader;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import javax.xml.xpath.XPath;
import javax.xml.xpath.XPathConstants;
import javax.xml.xpath.XPathFactory;
import org.geof.dpl.Do... | true |
8dbe857dc72af0937d86993e30357b14065b3958 | Java | YumoDevTest/AndroidOpenTest | /ui/src/main/java/com/yumodev/ui/recyclerview/DragRecyclerView/IFolderDragView.java | UTF-8 | 336 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | package com.yumodev.ui.recyclerview.DragRecyclerView;
import android.view.View;
import java.util.List;
/**
* Created by yumodev on 17/4/24.
* 文件夹操作的类
*/
public interface IFolderDragView {
boolean openFolder(List<DragItemBean> dataList);
boolean closeFolder();
boolean isShowing();
View getView();
... | true |
c94ec72166fefa7d55ed1090be41a235514f4115 | Java | WilliamHester/Breadit-2 | /app/app/src/main/java/me/williamhester/reddit/models/Comment.java | UTF-8 | 579 | 2.546875 | 3 | [
"Apache-2.0"
] | permissive | package me.williamhester.reddit.models;
import android.os.Parcel;
/**
* Created by william on 6/16/16.
*/
public abstract class Comment extends Votable {
private int level;
public Comment(int level) {
this.level = level;
}
public int getLevel() {
return level;
}
@Override
public int descri... | true |
9a25f8bbf267ee87c8c3e13f044c79a5b31db01e | Java | RobertLara/jInstagram | /src/test/java/org/jinstagram/exceptions/InstagramBadRequestExceptionTest.java | UTF-8 | 3,326 | 2.609375 | 3 | [
"MIT"
] | permissive | package org.jinstagram.exceptions;
import java.util.HashMap;
import java.util.Map;
import org.junit.*;
import static org.junit.Assert.*;
/**
* The class <code>InstagramBadRequestExceptionTest</code> contains tests for
* the class <code>{@link InstagramBadRequestException}</code>.
*/
public class InstagramBadReque... | true |
f5719f86abaaf67ff878b86cda0a7757b8a0e180 | Java | dennisjsmiley/Poker-Base | /src/main/java/poker/base/Hand.java | UTF-8 | 8,340 | 3.15625 | 3 | [
"MIT"
] | permissive | package poker.base;
import poker.base.enums.Rank;
import poker.base.enums.Suit;
import poker.base.handRanking.*;
import poker.base.util.PokerUtil;
import java.util.*;
public class Hand implements Comparable<Hand> {
private final Set<Card> cards;
public Hand(Set<Card> cards) {
if (cards == null) {
... | true |
2293c146444cc3ec8bdd30e3be56a1897a4ea6e6 | Java | carloscasalar/optaplannerhellotest | /src/main/java/org/btrg/optaplannerhellotest/domain/HelloEntity.java | UTF-8 | 604 | 2.203125 | 2 | [] | no_license | package org.btrg.optaplannerhellotest.domain;
import org.btrg.optaplannerhellotest.HelloApp;
import org.optaplanner.core.api.domain.entity.PlanningEntity;
import org.optaplanner.core.api.domain.variable.PlanningVariable;
@PlanningEntity
public class HelloEntity {
private int count;
private HelloEntity() {
}
pub... | true |
aa352b70d5bc9779d4c14a9aecc4d09a24681f21 | Java | alless1/GooglePlayDemo | /app/src/main/java/com/alless/googleplay/widget/AppDetailInfoView.java | UTF-8 | 2,397 | 2.171875 | 2 | [] | no_license | package com.alless.googleplay.widget;
import android.content.Context;
import android.text.format.Formatter;
import android.util.AttributeSet;
import android.widget.ImageView;
import android.widget.RatingBar;
import android.widget.TextView;
import com.alless.googleplay.R;
import com.alless.googleplay.app.Constant;
imp... | true |
9618154cc0ae76cca60f7fb61febefcfbc66fa01 | Java | zhongxingyu/Seer | /Diff-Raw-Data/5/5_4ce1bbe147683245c68379e913b4d478e4e7fbf9/TransactionsFindIng/5_4ce1bbe147683245c68379e913b4d478e4e7fbf9_TransactionsFindIng_t.java | UTF-8 | 25,171 | 1.570313 | 2 | [] | no_license | /*
* Copyright (c) Open Source Strategies, Inc.
*
* Opentaps is free software: you can redistribute it and/or modify it
* under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
... | true |
f9ff84f6af43ae64d5fe6618dee626b0525dc2ac | Java | UNIZAR-30248-2015-Raven/raven | /app/src/main/java/opdevelopers/raven/calendario/CalendarioActivity.java | UTF-8 | 16,732 | 2.046875 | 2 | [] | no_license | package opdevelopers.raven.calendario;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.os.Bundle;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.view.ContextMenu;
import android.view.MenuIte... | true |
7344f7d96ec7f90744fd32bfc37a8cffac93ebfb | Java | apache/parquet-mr | /parquet-column/src/test/java/org/apache/parquet/schema/TestPrimitiveStringifier.java | UTF-8 | 18,317 | 1.9375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | true |
f9a5f8f1dd0bfc526aa0c7c937acd295bd709dfd | Java | winstone/Service4All | /src/cn/edu/buaa/act/service4all/webapp/WebApplication.java | UTF-8 | 1,874 | 2.125 | 2 | [] | no_license | /**
* Service4All: A Service-oriented Cloud Platform for All about Software Development
* Copyright (C) Institute of Advanced Computing Technology, Beihang University
* Contact: service4all@act.buaa.edu.cn
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser Ge... | true |
b1177e64cb05958371ed1506ffe1e9841d698d49 | Java | wuyajun2016/interfacetest | /src/test/java/com/dfire/qa/meal/api/PayTestController.java | UTF-8 | 9,738 | 1.648438 | 2 | [] | no_license | package com.dfire.qa.meal.api;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.testng.Assert;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
import com.dfire.qa.meal.bean.MenuGet;
import com.dfire.qa.meal.bean.Resp... | true |
5f865c6fb82c2662fd43849c68a6cd95900957e9 | Java | marvin-94/spring | /spring4-aop/src/main/java/com/marvin/spring/demo/AddMethod.java | UTF-8 | 513 | 2.265625 | 2 | [] | no_license | package com.marvin.spring.demo;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.DeclareParents;
@Aspect
public class AddMethod {
//value 要加入新接口的接口 +代表本类和他的实现类都可以添加方法,defaultimpl 新街口的实现类
//引入新功能,使用新添加的方法,需要强制类型转换 todo 有问题测试失败
@DeclareParents(value = "com.marvin.spring.demo.Pe... | true |
ff350a9880d47ce4c6e6eca96d331d5d8764ff6a | Java | Komaldhall/Java-OOPS | /BankAccount/src/com/kd/bankaccount/BankAccountTest.java | UTF-8 | 495 | 3.296875 | 3 | [] | no_license | package com.kd.bankaccount;
public class BankAccountTest {
public static void main(String[] args){
BankAccount ba1= new BankAccount(500,300);
BankAccount ba2= new BankAccount(700,300);
ba1.deposit(100,1);
ba1.withdraw(200, 2);
ba2.deposit(200,2);
ba2.withdraw(50, 1);
ba2.total();
System.out.prin... | true |
beb807c1802996a21010c35309e1025fd369d4c9 | Java | shoumitro-cse/data-structure-solving | /Hashing/Intermediate/LongestSubArr.java | UTF-8 | 1,890 | 3.78125 | 4 | [] | no_license | // Java implementation to find the longest subarray with sum divisible by k
//javac -d classes LongestSubArr.java && cd classes && java LongestSubArr && cd ..
import java.io.*;
import java.util.*;
class LongestSubArr {
// function to find the longest subarray with sum divisible by k
static int longSubarrW... | true |
e6adfebd04c2281486142a6b40433d7ab1624921 | Java | biswanath-89-c/samplespring | /src/main/java/pl/squirrel/svt/MyCustomTilesInitializer.java | UTF-8 | 3,078 | 2.15625 | 2 | [] | no_license | package pl.squirrel.svt;
import java.util.List;
import java.util.Properties;
import org.apache.tiles.TilesApplicationContext;
import org.apache.tiles.TilesContainer;
import org.apache.tiles.context.ChainedTilesRequestContextFactory;
import org.apache.tiles.context.TilesRequestContextFactory;
import org.apache.tiles.e... | true |
498c383662d1ad54119aded38ab2bcf8c1ffa704 | Java | Silentdoer/demos | /Demo.SpringBoot进阶三/guavautilusage/src/main/java/GuavaEntrance.java | UTF-8 | 4,508 | 2.875 | 3 | [] | no_license | import com.google.common.base.*;
import com.google.common.cache.CacheBuilder;
import com.google.common.collect.*;
import com.google.common.io.Files;
import org.joda.time.DateTime;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.IOException;
import java.io.PushbackInputStream;
import java.time.... | true |
bd8745e9f0d9fb89184b2352066a81fe318c89a3 | Java | GlennHoran/Tearfall | /core/src/stonering/entity/job/action/ConstructionAction.java | UTF-8 | 2,163 | 2.5 | 2 | [
"MIT"
] | permissive | package stonering.entity.job.action;
import stonering.entity.job.action.target.GenericBuildingAction;
import stonering.entity.job.designation.BuildingDesignation;
import stonering.entity.item.Item;
import stonering.entity.item.selectors.ItemSelector;
import stonering.enums.blocks.BlockTypesEnum;
import stonering.game.... | true |
fd71f67d18a4aa7543a2931bcbc8124a25c23ac1 | Java | phyohtetarkar/android-team-fine | /app/src/main/java/com/team/androidfine/model/api/CategoryAPI.java | UTF-8 | 691 | 2.09375 | 2 | [] | no_license | package com.team.androidfine.model.api;
import com.team.androidfine.model.entity.Category;
import java.util.List;
import io.reactivex.Observable;
import retrofit2.Response;
import retrofit2.http.Body;
import retrofit2.http.DELETE;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Path;
pu... | true |
a4e5872c841dbe75b2fced8562ae8a874caa1492 | Java | AnthonyGW/art-android | /app/src/test/java/com/andela/art/LoginActivityTest.java | UTF-8 | 655 | 2.15625 | 2 | [] | no_license | package com.andela.art;
import org.junit.Test;
import static com.andela.art.login.LoginActivity.isAllowedNonAndelaEmail;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.assertFalse;
/**
* Created by allan on 27/03/2018.
*/
public class LoginActivityTest {
/**
* Test if a provid... | true |
a9465fd9061d0ffb163fd8156c5e9f793e78e7cf | Java | MrHaribo/MicroNet.Example | /GatewayService/src/test/java/SomeGame/GatewayService/AppTest.java | UTF-8 | 1,002 | 2.25 | 2 | [] | no_license | package SomeGame.GatewayService;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
* Unit test for simple App.
*/
public class AppTest
extends TestCase
{
/**
* Create the test case
*
* @param testName name of the test case
*/
public ... | true |
39977ffe77bab51bba6ff878e7e599e858760215 | Java | WladySer/Taller_Listas | /src/epn/App.java | UTF-8 | 901 | 2.84375 | 3 | [] | no_license | package epn;
public class App {
public static void main(String[] args) {
ListaEst listaest = new ListaEst();
System.out.println("\nEstudiantes inscritos en la asignatura");
listaest.insertar ( "Sergio Villacres" ,"1712365488");
listaest.insertar("Andres Huertas","1763255484");
listaest.in... | true |
c213822d77bbcb18ea7eb3c2cccc9e6f26754aed | Java | GayaneHarutyunyan/DataBaseBrainFart | /src/main/java/models/QuestionConnection.java | UTF-8 | 864 | 2.25 | 2 | [] | no_license | package models;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
import java.util.HashSet;
import java.util.Set;
@Entity
@Table(name = "question_connection")
@Setter
@Getter
@AllArgsConstructor
public class QuestionConnection extends Model {
@ManyToOne(f... | true |
a8447ecf9bab27935e06eaf7e8c5fdda5078c692 | Java | MYdxxj/SSM | /src/main/java/com/web/model/ActivityExample.java | UTF-8 | 20,411 | 2.15625 | 2 | [] | no_license | package com.web.model;
import java.util.ArrayList;
import java.util.List;
public class ActivityExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public ActivityExample() {
oredCriteria = new ArrayList<Criteria>();
}
public ... | true |
b2bfb9849363f9eedae5c8490e5d6e62cc09469f | Java | AtomCats/GaskarTestApp | /src/main/java/com/ecommerce/spring/model/Publisher.java | UTF-8 | 827 | 2.421875 | 2 | [] | no_license | package com.ecommerce.spring.model;
import com.fasterxml.jackson.annotation.JsonBackReference;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonManagedReference;
import lombok.Data;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import java.util.ArrayList;
... | true |
86d9f8ba107d67bb709b6c30c41a50b6656ec39f | Java | simkawaii/Wizeline-Test | /src/main/java/base/TestBase.java | UTF-8 | 672 | 2.4375 | 2 | [] | no_license | package base;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.annotations.AfterTest;
public class TestBase {
public static WebDriver driver = null;
protected TestBase() {
initDriver();
}
@AfterTest
public void tearDo... | true |
a2a709b2cbf34151b6c34fa1da50e8fcb5befb1a | Java | fenghao-xu/gst-project | /src/main/java/com/ylzs/entity/materialCraft/resp/MaterialCraftAndPropertyResp.java | UTF-8 | 2,455 | 1.867188 | 2 | [] | no_license | package com.ylzs.entity.materialCraft.resp;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
* @author weikang
* @Description 材料工艺和材料属性返回数据
* @Date 2020/3/7
*/
@Data
public class MaterialCraftAndPropertyResp implements Serializable {
... | true |
0b78728fd7934f3022ab213a452a10516440b148 | Java | AldereteRuben/Analizador-sintactico | /CompiladorIntegrado/Ana_Lisador_/src/analizador/ModeloTablaSimbolos.java | UTF-8 | 1,249 | 2.625 | 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 analizador;
import javax.swing.table.AbstractTableModel;
/**
*
* @author Alumnos
*/
//Esta clase es analoga a ModeloDeTa... | true |
ceba9eda4fa7bf48b61d3449808014d23495e02d | Java | ahlinyuan/Infrastructure | /app/src/main/java/com/ahlinyuan/infrastructure/M/models/BaseModel.java | UTF-8 | 753 | 2.4375 | 2 | [] | no_license | package com.ahlinyuan.infrastructure.M.models;
import com.ahlinyuan.infrastructure.M.utils.Enums;
/**
* 基础的请求模型
* Created by Administrator on 2018/6/25.
*/
public class BaseModel {
//状态码
private int code;
//状态信息
private String msg;
public int getCode() {
return code;
}
public... | true |
ad95e14c524fcc2b14f1245933864eac869cf946 | Java | apm70plus/springboot2.0-bizfuse | /bizfuse-web/src/main/java/com/apm70/bizfuse/web/advice/RestResponseExceptionHandler.java | UTF-8 | 10,719 | 1.742188 | 2 | [] | no_license | package com.apm70.bizfuse.web.advice;
import java.util.ArrayList;
import java.util.Locale;
import javax.servlet.http.HttpServletRequest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.MessageSource;
import org... | true |
d061d97e99f6e6abc8c026d6c0f514cbcdff216d | Java | Maxtho8/morpion-java | /ApplicationMorpion.java | UTF-8 | 763 | 2.46875 | 2 | [] | no_license | import java.awt.GridLayout;
import javax.swing.JFrame;
import javax.swing.UIManager;
public class ApplicationMorpion extends JFrame {
public ApplicationMorpion() {
this.setTitle("Jeu de morpion");
this.setLayout(new GridLayout(1,1));
this.add(new VueMorpion());
this... | true |
3d64f71dcc0e5f723984461a48e5310c3b7ef411 | Java | SusannePreuss/wordspaces | /WordSpaces/src/wordspaces/gui/threads/ShowContextTableThread.java | UTF-8 | 1,967 | 2.796875 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package wordspaces.gui.threads;
import wordspaces.gui.*;
import java.util.Iterator;
import javax.swing.table.DefaultTableModel;
import wordspaces.Model;
/**
*
* @author alexander
*/
public class ShowContextTableThr... | true |
5b33841dffcf4b0b0d8767fdd22265de708fe49c | Java | mikera/darwin | /src/main/java/darwin/Images.java | UTF-8 | 1,927 | 3 | 3 | [] | no_license | package darwin;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.io.InputStream;
import javax.imageio.ImageIO;
public class Images {
static final BufferedImage WK = loadPieceImage("wk");
static final BufferedImage WQ = loadPieceImage("wq");
static final BufferedImage WR = loadPieceIma... | true |
3503d3a2ec22d4d1432f051033508dc3d63d4fc7 | Java | jamieforth/jwebsocket-client | /src/main/java/org/jwebsocket/client/plugins/rpc/Rrpc.java | UTF-8 | 3,195 | 2.125 | 2 | [] | no_license | // ---------------------------------------------------------------------------
// jWebSocket - Copyright (c) 2010 Innotrade GmbH
// ---------------------------------------------------------------------------
// This program is free software; you can redistribute it and/or modify it
// under the terms of ... | true |
174c172206337b2fd0f4d2da18d0d6924a98aa5b | Java | ice24for/learnCode | /fsmp-app/fsmp-service/src/main/java/cn/com/jansh/model/component/ShowOrderModel.java | UTF-8 | 3,292 | 2.1875 | 2 | [] | no_license | package cn.com.jansh.model.component;
/**
* 用户充值记录model
* @author Mr.wong
* @version 1.0
*/
public class ShowOrderModel {
/** 中奖记录ID */
private String id;
/** OPENID */
private String openid;
/** 机构ID */
private String orgid;
/** 活动名称 */
private String gamename;
... | true |
472250e63a4c4d6ec43c5b41e042d2ba6aaa36ee | Java | AsanjiC/OreKit | /org/orekit/gnss/GPSAlmanac.java | UTF-8 | 6,809 | 2.203125 | 2 | [] | no_license | /* Copyright 2002-2017 CS Systèmes d'Information
* Licensed to CS Systèmes d'Information (CS) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* CS licenses this file to You under the Apache License, Versi... | true |
18e774e6fb01edb1a35ea76abc319ade7647603f | Java | fonglaaaam/easy4j | /easy4j-parent/easy4j-spring-boot-starter/src/main/java/cn/easy4j/framework/db/DbInitializerListener.java | UTF-8 | 1,046 | 2.390625 | 2 | [
"Apache-2.0"
] | permissive | package cn.easy4j.framework.db;
import cn.easy4j.common.constant.OrderedConstant;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.core.Ordered;
import java.util.Map;
/**
* 初始化数据库... | true |
809413d209ca0c6c16b05bb360e6e83a04f2dbf4 | Java | unbleavabl/WordCount | /src/main/java/WordCount.java | UTF-8 | 737 | 3.171875 | 3 | [] | no_license | import java.util.Map;
import java.util.HashMap;
import java.util.Map.Entry;
public class WordCount {
Map<String,Integer> phrase (String str){
String punct=",./;:<>'\"{}[]!@#$%^&*()";
Map<String,Integer> newMap = new HashMap<String,Integer>();
for(int i=0,j=0;i<str.length();i=j+1){
j=str.indexOf(" ",i);
if(... | true |
78040043afa9c81cab5c15b470ebdf5c3d1bf62a | Java | amansanghvi/DungeonGame | /src/unsw/dungeon/Door.java | UTF-8 | 758 | 2.921875 | 3 | [] | no_license | package unsw.dungeon;
import javafx.scene.input.KeyCode;
public class Door extends Entity {
public static String OPEN_STATUS = "open";
final private String id;
private boolean isUnlocked = false;
public Door(int x, int y, String id) {
super(x, y);
this.id = id;
}
public boolea... | true |
fd61a93d86eb98a8ff3713207877bece61f77790 | Java | blackducksoftware/blackduck-alert | /api-channel-issue-tracker/src/test/java/com/synopsys/integration/alert/api/channel/issue/event/IssueTrackerTransitionIssueEventTest.java | UTF-8 | 2,219 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | package com.synopsys.integration.alert.api.channel.issue.event;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import java.util.List;
import java.util.Set;
import java.util.UUID;
import org.junit.jupiter.api.Test;
import com.synopsys.integr... | true |
c96acce0b852811a823eff475394959d3ed9c421 | Java | rjm1990/flink-learn | /flink-sourcesink/src/main/java/com/factory/dynamicfactory/source/http/HttpScanTableSource.java | UTF-8 | 1,147 | 2.03125 | 2 | [] | no_license | package com.factory.dynamicfactory.source.http;
import org.apache.flink.configuration.ReadableConfig;
import org.apache.flink.table.connector.ChangelogMode;
import org.apache.flink.table.connector.source.DynamicTableSource;
import org.apache.flink.table.connector.source.ScanTableSource;
import org.apache.flink.table.c... | true |
a004adb7795c6ce3ea895a576e3eea6c59ce2b9d | Java | vili96/BarTender-Mobile | /app/src/main/java/com/bartender/ui/statistics/StatisticsActivity.java | UTF-8 | 2,654 | 2.21875 | 2 | [] | no_license | package com.bartender.ui.statistics;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.View;
import android.widget.TextView;
import com.bartender.R;
import com.bartender.ui.consume.BarFragment;
import com.github.mikephil.charting.data.BarEntry;
import com.github.mikephil.charting.data.PieEnt... | true |
3701eacd4ba20ecdc1987d997c27652700326fdc | Java | randybias/joverseer | /main/engine/org/joverseer/engine/orders/CastConjuringSpellOrder.java | UTF-8 | 2,028 | 2.640625 | 3 | [
"BSD-3-Clause"
] | permissive | package org.joverseer.engine.orders;
import org.joverseer.domain.Order;
import org.joverseer.domain.ProductEnum;
import org.joverseer.engine.ErrorException;
import org.joverseer.engine.ExecutingOrder;
import org.joverseer.engine.ExecutingOrderUtils;
import org.joverseer.engine.Randomizer;
import org.joverseer.... | true |
b83357bc7034865042cb530da864a8d5523cc76f | Java | mushang8923/doubleWriterConsistence | /src/main/java/com/amos/doublewriterconsistence/request/impl/InventoryDBRequest.java | UTF-8 | 2,229 | 2.6875 | 3 | [] | no_license | package com.amos.doublewriterconsistence.request.impl;
import com.amos.doublewriterconsistence.entity.Inventory;
import com.amos.doublewriterconsistence.request.Request;
import com.amos.doublewriterconsistence.service.InventoryService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Copyright © 2018 五... | true |
f2c5216fa41de29da9b9a8d81487483a5c211b10 | Java | thiagolsfortunato/OqFazer_old | /Project/OqFazer/src/br/com/fatec/oqfazer/api/service/CategoryService.java | UTF-8 | 360 | 1.851563 | 2 | [] | no_license | package br.com.fatec.oqfazer.api.service;
import java.util.List;
import br.com.fatec.oqfazer.api.dto.CategoryDTO;
public interface CategoryService {
CategoryDTO insert(CategoryDTO categoryDTO);
void update(CategoryDTO categoryDTO);
void delete(Long idCategoryDTO);
List<CategoryDTO> searchAll();
Catego... | true |
51fbc77bcfe93bcd9b7724cbf164d9bcc178e4d4 | Java | simonmob/ESBTMSService | /src/main/java/ke/co/ekenya/tms/esbtmsservice/Accountlookup.java | UTF-8 | 5,215 | 1.875 | 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 ke.co.ekenya.tms.esbtmsservice;
import ke.co.ekenya.tms.logsengine.TMSLog;
import ke.co.ekenya.tms.utilities.DataConve... | true |
772b4641b4bfbca8048e0d0f8e93ea13827c3653 | Java | LTR4L/ltr4l | /src/main/java/org/ltr4l/nn/AbstractMLPBase.java | UTF-8 | 7,578 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2018 org.LTR4L
*
* 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 wri... | true |
cc8a2f7edbda51fecca185d04b4adaf18a886f17 | Java | apigee/lembos | /src/main/java/io/apigee/lembos/mapreduce/RunOnceRecordReader.java | UTF-8 | 1,366 | 2.359375 | 2 | [
"Apache-2.0"
] | permissive | package io.apigee.lembos.mapreduce;
import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.mapreduce.InputSplit;
import org.apache.hadoop.mapreduce.RecordReader;
import org.apache.hadoop.mapreduce.TaskAttemptContext;
import java.io.IOException;
/**
* Implementation of {@link RecordReader} to generate on... | true |
72209c407fe345d9156287840b4c4fd911e669c1 | Java | codehaus/platypus | /src/main/java/org/pz/platypus/plugin/rtf/Start.java | UTF-8 | 6,854 | 2.375 | 2 | [] | no_license | /***
* Platypus: Page Layout and Typesetting Software (free at platypus.pz.org)
*
* Platypus is (c) Copyright 2010 Pacific Data Works LLC. All Rights Reserved.
* Licensed under Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0.html)
*/
package org.pz.platypus.plugin.rtf;
import org.pz.pl... | true |
7ca016d76852c416844b5ebccdd11a8ccee74ca8 | Java | NoEnv/vertx-wiremongo | /src/main/java/com/noenv/wiremongo/mapping/MappingBase.java | UTF-8 | 2,330 | 2.46875 | 2 | [
"Apache-2.0"
] | permissive | package com.noenv.wiremongo.mapping;
import com.noenv.wiremongo.StubBase;
import com.noenv.wiremongo.command.Command;
import com.noenv.wiremongo.command.CommandBase;
import com.noenv.wiremongo.verification.Verification;
import io.vertx.core.json.JsonObject;
import java.util.LinkedList;
import java.util.Objects;
publ... | true |
2fc361b2693f2230ef87632e834acd189060f6f8 | Java | JackEdwards-IT/Java-Slot-Machine | /FP-2077 Slot Machine GUI/src/view/AboutDialog.java | UTF-8 | 1,433 | 2.59375 | 3 | [] | no_license | package view;
import java.awt.Dimension;
import java.awt.GridLayout;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JLabel;
import javax.swing.JTextPane;
import controller.GenericDialogActionListener;
import model.Actions;
@SuppressWarn... | true |
3e8c10bcf832a2c0e09c73dec3592c3c36166839 | Java | ksuvendu/CucumberMaven | /CucumberBDDFramework/src/test/java/stepDefinitions/LoginStep.java | UTF-8 | 1,280 | 2.421875 | 2 | [] | no_license | package stepDefinitions;
import org.junit.Assert;
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;
import cucumber.api.java.en.When;
public class... | true |
030767dab323f7faa8ee28194fa0088512cb468c | Java | egg82/Spruce | /src/me/egg82/sprc/sql/mysql/SelectPlayerChatMySQLCommand.java | UTF-8 | 3,085 | 2.375 | 2 | [
"MIT"
] | permissive | package me.egg82.sprc.sql.mysql;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
import java.util.function.BiConsumer;
import me.egg82.sprc.Config;
import me.egg82.sprc.core.PlayerChatSelectContainer;
import me.egg82.sprc.core.PlayerChatResultEventArgs;
import ninj... | true |
91985a23f9012261404109f7b91f865e287f5aba | Java | semo94/TaskHub | /app/src/main/java/com/example/saleem/testgithub/listAdapters/CountryListAdapter.java | UTF-8 | 2,018 | 2.75 | 3 | [] | no_license | package com.example.saleem.testgithub.listAdapters;
/**
* Created by Mo7ammed on 13/03/2016.
*/
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.example.saleem.... | true |
f679715fa1abc086e28cb48d1211527c29b9fe1a | Java | zype/zype-android | /app/src/main/java/com/zype/android/ui/video_details/fragments/options/OptionsFragment.java | UTF-8 | 24,108 | 1.570313 | 2 | [
"MIT"
] | permissive | package com.zype.android.ui.video_details.fragments.options;
import com.zype.android.Auth.AuthHelper;
import com.zype.android.Db.Entity.Video;
import com.zype.android.R;
import com.zype.android.ZypeApp;
import com.zype.android.ZypeConfiguration;
import com.zype.android.ZypeSettings;
import com.zype.android.core.provid... | true |
c593348ffb6f1f711013bf3e8596ed0938aa0022 | Java | kesav09/java_programs | /src/array/MaximumSubarray.java | UTF-8 | 2,033 | 3.734375 | 4 | [] | no_license |
//find the contiguous sub array which has the largest sum
//it is based on Kadane's algorithm
//http://en.wikipedia.org/wiki/Maximum_subarray_problem
//good example of dynamic programming
//time complexity: O(n)
package array;
public class MaximumSubarray {
static int [] num = new int[]{-5, 7, 2, -4, 12};
pub... | true |
a55660b09919baca0c2ad93cd3cda58756fdf189 | Java | microideation/rsocket-demo | /src/main/java/com/microideation/app/rsocketdemo/rsocketdemo/StarterConfig.java | UTF-8 | 471 | 1.851563 | 2 | [] | no_license | package com.microideation.app.rsocketdemo.rsocketdemo;
import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.context.annotation.Configuration;
@Configuration
public class StarterConfig implements ApplicationListener<Appl... | true |
a318592a96d6d4697830f37b349a50fd71747d18 | Java | rodrigorodes/user-hexagonal-arch-cqrs-example | /user-hexagonal-adapter/src/main/java/br/com/atmz/adapter/auth/api/AuthAPI.java | UTF-8 | 634 | 1.914063 | 2 | [] | no_license | package br.com.atmz.adapter.auth.api;
import javax.validation.Valid;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import br.com.atm... | true |
86de152cb18e60d8f14509de2a2b740a1411ea7c | Java | nordic-institute/X-Road | /src/configuration-proxy/src/main/java/ee/ria/xroad/confproxy/commandline/ConfProxyUtilCreateInstance.java | UTF-8 | 3,580 | 2.25 | 2 | [
"MIT"
] | permissive | /**
* The MIT License
* Copyright (c) 2019- Nordic Institute for Interoperability Solutions (NIIS)
* Copyright (c) 2018 Estonian Information System Authority (RIA),
* Nordic Institute for Interoperability Solutions (NIIS), Population Register Centre (VRK)
* Copyright (c) 2015-2017 Estonian Information System Autho... | true |
7d85813ee8b9a96701b587af8e2ed5d949d3a793 | Java | majdmarie/Object-Oriented-Projects | /Palestinian Dairy Factory/A3_1192226_MajdMarie/src/ProductionWorker.java | UTF-8 | 2,770 | 3.671875 | 4 | [] | no_license | import java.util.Date;
// Defining the son class ProductionWorker that inherits from the parent Employee class
public class ProductionWorker extends Employee {
// Defining the properties of the Production Worker employee type
protected int shift;
protected double hourRate, hoursNumber;
// Building... | true |
3fefee20e9b90e294d3e8f2e193f6a87bc0e6c81 | Java | LiMouo/Train_2 | /app/src/main/java/com/ziker/train/Activity/TripActivity.java | UTF-8 | 4,865 | 2.21875 | 2 | [] | no_license | package com.ziker.train.Activity;
import android.graphics.drawable.AnimationDrawable;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.CalendarView;
import android.wi... | true |
bd16ac28c703fbf012f60d613a1d99f58056d467 | Java | shenzhuan/zscat-platform | /zscat-blog/blog-service/src/main/java/com/zscat/blog/utils/CommonUtils.java | UTF-8 | 2,272 | 2.640625 | 3 | [] | no_license | package com.zscat.blog.utils;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.BeanWrapper;
import org.springframework.beans.BeanWrapperImpl;
import java.math.RoundingMode;
import java.text.DecimalFormat;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
/**
* ... | true |
0e3712afd7aa7f13a25c324af86fcea56a80482f | Java | danielps99/financeiro_java | /src/main/java/br/com/bdws/financeiro/query/QueryService.java | UTF-8 | 2,288 | 2.265625 | 2 | [] | no_license | package br.com.bdws.financeiro.query;
import br.com.bdws.financeiro.query.sql.AbstractSqlQuery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.jdbc.core.namedparam.MapSqlParameterSource;
import org.springframework.jdbc.co... | true |
90566a7b098e16f6041b78e5e734371ed03a7c7f | Java | StrangerNing/webvisit | /webvisit-os/src/main/java/com/webvisit/utils/LocationUtils.java | UTF-8 | 2,868 | 2.15625 | 2 | [] | no_license | package com.webvisit.utils;
import com.alibaba.fastjson.JSON;
import com.webvisit.common.component.Result;
import com.webvisit.common.exception.BusinessException;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
import org.apache.http.client.HttpClient;
impo... | true |
b01a24d4ade8ceab84714218d3968227cdc1e648 | Java | GUNDAM443/CompanyDemo | /src/main/java/com/example/demo/lambda/entity/Author.java | UTF-8 | 404 | 2.109375 | 2 | [] | no_license | package com.example.demo.lambda.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import java.util.List;
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
public class Author {
private Long id;
private String name;... | true |
e2d14c1e40131db172426f2c8aaf17942636c092 | Java | vuk95/Travel-Planner | /TravPlan/src/main/java/planner/service/TripService.java | UTF-8 | 272 | 2.046875 | 2 | [] | no_license | package planner.service;
import java.util.List;
import planner.model.Trip;
public interface TripService {
public Trip findOne(Long id);
public List<Trip> findAll();
public Trip save(Trip trip);
public List<Trip> findTrips(String destination, String comment);
}
| true |
74b497fb1fce914df5910c041b09c7b33f68d12a | Java | mangolite/sample | /origo_service/src/main/java/com/origo/model/vo/UDFVO.java | WINDOWS-1252 | 2,309 | 2.140625 | 2 | [] | no_license | /*------------------------------------------------------------------------------
This source is part of the OrigoXtreme Pvt Ltd.
All rights reserved. No part of this work may be reproduced, stored in a
retrieval system, adopted or transmitted in any form or by any means,
electronic, mechanical, photographic, graphic... | true |
986e1a4760881c67f5c5e68cef5a0ef449c1c4ee | Java | ssherar/uml2java | /src/uk/ac/aber/dcs/cs124group/undo/ExistenceEdit.java | UTF-8 | 2,283 | 3.140625 | 3 | [] | no_license | package uk.ac.aber.dcs.cs124group.undo;
import javax.swing.undo.AbstractUndoableEdit;
import uk.ac.aber.dcs.cs124group.model.DocumentElementModel;
/**
* An edit which manages the existence of a DocumentElement
* adhering to the {@link AbsractUndoableEdit}
* constraints
*
* @author Daniel Maly
* @a... | true |
f06a2e7c77c75c04729c5e4d21db67bf866457cb | Java | BrandonKirklen/CPE-102 | /Lab8/src/Phone/LookupTable.java | UTF-8 | 2,183 | 3.96875 | 4 | [] | no_license | package Phone;
/**
* Created by Brandon Kirklen on 5/26/2015.
* A table for lookups and reverse lookups
*/
import java.util.ArrayList;
import java.util.Scanner;
public class LookupTable {
ArrayList<Item> phoneEntries = new ArrayList<>();
/**
Constructs a LookupTable object.
*/
... | true |
7b73ffe5b7911b58997c4f016857c65750c8c70f | Java | dsurogatov/EventLogTask | /eventlog/src/main/java/org/dsu/eventlog/presentation/EventLogSummaryController.java | UTF-8 | 1,154 | 2.140625 | 2 | [] | no_license | package org.dsu.eventlog.presentation;
import java.util.List;
import org.dsu.eventlog.application.EventLogSummaryAppBean;
import org.dsu.eventlog.application.dto.EventLogSummaryDto;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.s... | true |
f7e7e26c9ff7c218ba2311db826aa1b9bdcd7e57 | Java | arya990/code-sculptures | /src/week2/feb24/Sumofdigitsof100factorial.java | UTF-8 | 804 | 3.625 | 4 | [] | no_license | package week2.feb24;
//Find the sum of the digits in the number 100!
import java.math.BigInteger;
public class Sumofdigitsof100factorial {
public static void main(String[] args) {
// TODO Auto-generated method stub
BigInteger number = new BigInteger("100");
BigInteger product = new BigInteger("1");
... | true |
34a4bec709f03c16fcd7e1298b58bdbc1ded4972 | Java | zhongxingyu/Seer | /Diff-Raw-Data/18/18_9c61696e7c02e5918090341164462a158848b804/NativeEncoder/18_9c61696e7c02e5918090341164462a158848b804_NativeEncoder_s.java | UTF-8 | 11,684 | 2.140625 | 2 | [] | no_license | package net.java.sip.communicator.impl.media.codec.video.h264;
import java.awt.*;
import javax.media.*;
import javax.media.format.*;
import net.java.sip.communicator.impl.media.codec.*;
import net.java.sip.communicator.util.*;
import net.sf.fmj.media.*;
import net.sf.ffmpeg_java.*;
import net.sf.ffmpeg_j... | true |
6f1ef390f6f69cdcad5415a67729fb8b26a0b6da | Java | shonessy/JAVA-Eclipse-Workspace | /JBG-Ch11-Ex1-ThreadExtends/src/Test.java | UTF-8 | 414 | 3.265625 | 3 | [] | no_license |
public class Test {
public static void main(String[] args) {
NewThread nthrd=new NewThread("Thread 1");
System.out.println("Starting Main Thread...");
for(int i=0; i<12; i++){
System.out.println("Maint Thread: " + (i+1));
try{
Thread.sleep(500);
}catch(InterruptedException e){
System.out.print... | true |
426271d8163fbdfe416231a0d17d17e928ad42d5 | Java | alain75007/androidschool | /012010 - Victoria - osmdroid/src/com/myschool/game/main/OpenStreetMapSource.java | UTF-8 | 996 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | package com.myschool.game.main;
import org.osmdroid.ResourceProxy.string;
import org.osmdroid.tileprovider.MapTile;
import org.osmdroid.tileprovider.tilesource.OnlineTileSourceBase;
public class OpenStreetMapSource extends OnlineTileSourceBase {
public OpenStreetMapSource(String aName, string aResourceId,
int a... | true |
2d406f6f1d92ac30f46982bfde65a197c660e37e | Java | asciasrl/jais | /releases/aui-1.01/aui-1.01/src/it/ascia/aui/AUIStreamingServlet.java | UTF-8 | 4,052 | 2.359375 | 2 | [] | no_license | /**
*
*/
package it.ascia.aui;
import it.ascia.ais.AISException;
import it.ascia.ais.Controller;
import it.ascia.ais.DevicePort;
import it.ascia.ais.DevicePortChangeEvent;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.io.IOException;
import java.io.PrintW... | true |
26a3d53f50fbd9ca59ffd3cd34d21ad0eded998c | Java | thanhheo124/QuanLyBanHang | /src/com/nhom/database/NhanVienDaoImpl.java | UTF-8 | 13,920 | 2.15625 | 2 | [] | no_license | /**
* @Copyright Group 2 - OOP - KS2.K37
*/
package com.nhom.database;
import com.itextpdf.text.Document;
import com.itextpdf.text.DocumentException;
import com.itextpdf.text.Element;
import com.itextpdf.text.Font;
import com.itextpdf.text.PageSize;
import com.itextpdf.text.Paragraph;
import com.itextpdf.... | true |
20b2e403d7253e2ef95fa12a09bb8b6635b47489 | Java | Font77/programmers-calculator | /shell/src/main/java/io/nybbles/progcalc/shell/contracts/DeferredTrap.java | UTF-8 | 175 | 1.648438 | 2 | [
"MIT"
] | permissive | package io.nybbles.progcalc.shell.contracts;
import io.nybbles.progcalc.common.Result;
public interface DeferredTrap {
boolean execute(Result r, TrapContext context);
}
| true |
36076d28d62389cc45b87ed2a9c181d17ecc7020 | Java | neosavvyinc/nets | /NETS/projects/routehappy/branches/nexpense/commons-user-java-lib/src/main/java/com/neosavvy/user/service/UserService.java | UTF-8 | 503 | 1.859375 | 2 | [] | no_license | package com.neosavvy.user.service;
import com.neosavvy.user.dto.UserDTO;
import org.springframework.security.annotation.Secured;
import java.util.List;
public interface UserService {
@Secured("ROLE_ADMIN")
public List<UserDTO> getUsers();
public void saveUser(UserDTO user);
@Secured("ROLE_ADMIN")
publi... | true |
043609bbbe73c1587871221fa7f57b978dd63316 | Java | tomaszkerg/fixthat | /src/main/java/pl/tomek/fixthat/service/UIServiceImpl.java | UTF-8 | 1,356 | 2.015625 | 2 | [] | no_license | //package pl.tomek.fixthat.service;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Service;
//import pl.tomek.fixthat.repository.*;
//
//@Service
//abstract class UIServiceImpl implements UIService{
// private final OrderRepository orderRepository;
// p... | true |
52f0783c6957c454c30f0f5fc92eb30e63ca5fbe | Java | jhonjaimemendez/Azcaban | /src/componentes/ConvertirMayColumn.java | UTF-8 | 1,228 | 2.984375 | 3 | [] | no_license | /**
* Clase: ConvertirMayColumn
*
* @version 1.0
*
* @since 07-11-2005
*
* @autor Ing. Jhon Mendez
*
* Copyrigth: JASoft
*/
package com.JASoft.componentes;
import javax.swing.JTextField;
import javax.swing.text.AttributeSet;
import javax.swing.text.BadLocationException;
import javax.swing.text.Document... | true |
9a685e3c42fb0c953f09f57c17a21fdeab64b63e | Java | bloc97/ConsoleEngine | /src/engine/ui/pixel/console/utils/Graphics2DUtils.java | UTF-8 | 2,378 | 2.65625 | 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 engine.ui.pixel.console.utils;
import java.awt.AlphaComposite;
import java.awt.Color;
import java.awt.Graphics2D;
import java.... | true |
658826239740d774b6ea555098e39568663e12d1 | Java | kumarshambhu/shopify | /src/main/java/com/ecommerce/app/shopify/util/Const.java | UTF-8 | 746 | 1.664063 | 2 | [] | no_license | package com.ecommerce.app.shopify.util;
public enum Const {
INSTANCE;
//Same entry in context.jspf please update that as well.
public Integer CAPTACH_ATTEMPT_INTERVAL = 2;
public Integer LOCK_ATTEMPT_INTERVAL = 3;
public Integer IP_ATTEMPT_INTERVAL = 4;
public Integer IP_ADDR_TTL_SECS... | true |
305d5903aa78e3015418a9214bfaf012c162ab36 | Java | MKrolikoski/Bomberman2DGame | /src/krolikowski/game/ui/objects/buttons/MusicButton.java | WINDOWS-1250 | 1,385 | 3.125 | 3 | [] | no_license | package krolikowski.game.ui.objects.buttons;
import java.awt.Graphics;
import krolikowski.game.Handler;
import krolikowski.game.gfx.Textures;
/**
* Button odpowiedzialny aktywacj lub dezaktywacj muzyki w grze
*
*/
public class MusicButton extends UIButton
{
/**
* Konstruuje nowy MusicButton, przypisujc mu pr... | true |
b15fe673501c400fbe5dd6af1edff80a276ca882 | Java | Magic4Cloud/HooViewAndroid | /elapp/src/main/java/com/easyvaas/elapp/bean/video/VideoEntity.java | UTF-8 | 11,658 | 1.601563 | 2 | [] | no_license | /*
* Copyright (c) 2016 EasyVaas.
* http://www.easyvaas.com
* All rights reserved.
*/
package com.easyvaas.elapp.bean.video;
public class VideoEntity {
public static final int IS_LIVING = 1;
public static final int IS_VIDEO = 0;
public static final int IS_GOOD_VIDEO = 2;
public static final int ST... | true |
29979eb9873767eee7bc6b928bde6c0540b7bfea | Java | dini07/crema | /source/src/com/cremamobile/filemanager/treeview/InMemoryTreeStateManager.java | UTF-8 | 14,260 | 2.375 | 2 | [] | no_license | package com.cremamobile.filemanager.treeview;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import com.cremamobile.filemanager.file.FileListEntry;
import com.crem... | true |
23e01f04b330e7ea208273a70134ec9a2896bc93 | Java | ghostdogcy/spring-cloud-demo | /qrcode-service/src/main/java/com/example/qrcodeservice/controller/MyQRcodeController.java | UTF-8 | 2,982 | 2.453125 | 2 | [] | no_license | package com.example.qrcodeservice.controller;
import com.swetake.util.Qrcode;
import jp.sourceforge.qrcode.QRCodeDecoder;
import org.springframework.stereotype.Controller;
import org.springframework.util.ClassUtils;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.GetMapping;... | true |
005f29631a07d839b09a70f2d29de6092618f754 | Java | jlee301/leetcodesolutions | /src/test/java/com/jlee/leetcodesolutions/TestLeetCode0074.java | UTF-8 | 2,599 | 2.796875 | 3 | [] | no_license | package com.jlee.leetcodesolutions;
import com.jlee.leetcodesolutions.LeetCode0074;
import org.junit.Assert;
import org.junit.Test;
public class TestLeetCode0074 {
@Test
public void testProblemCase() {
int[][] matrix = { {1,3,5,7},
{10,11,16,20},
{23,30,34,50} }... | true |
b83609708474f505a5c4c9b3e0499766f1a9d98c | Java | lc2019/bigdata2020 | /src/main/java/com/jld/MRDemo/demo2_flow/serialize_partition/flowRduce.java | UTF-8 | 738 | 2.53125 | 3 | [] | no_license | package com.jld.MRDemo.demo2_flow.serialize_partition;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;
import java.io.IOException;
public class flowRduce extends Reducer<Text, flowBean, Text, flowBean> {
@Override
protected void reduce(Text key, Iterable<flowBean> values, Contex... | true |
d8474cbf2035d1f1cbd65c0bfc6fa519dd65cff2 | Java | Yiesha/lyxandcgh | /src/Test/Fraction.java | UTF-8 | 4,618 | 3.515625 | 4 | [] | no_license | package Test;
//分数的相关运算
public class Fraction {
public static StringBuffer add(StringBuffer t1,StringBuffer t2){
if(t1.toString().equals("0")){
return t2;
}
if(t2.toString().equals("0")){
return t1;
}
//转化为分数
String[] fraction1 = changeFractio... | true |