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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
6dd6caa9335e06bde3bdbc6a1dac1ffd4f6f9c2c | Java | sunjinxiong/My-music | /MyMusic/app/src/main/java/gaodemap/bawei/com/mymusic/bean/Flag.java | UTF-8 | 502 | 2.5 | 2 | [] | no_license | package gaodemap.bawei.com.mymusic.bean;
/**
* dell 孙劲雄
* 2017/10/12
* 15:24
*/
public class Flag {
private boolean flag=false;
public Flag(boolean flag) {
this.flag = flag;
}
public Flag() {
}
public boolean isFlag() {
return flag;
}
public void setFlag(boolea... | true |
3bdfcb0ec9fb8c047812f730c831dc83484852e6 | Java | CompactMods/CompactMachines | /forge-main/src/main/java/dev/compactmods/machines/forge/machine/entity/BoundCompactMachineBlockEntity.java | UTF-8 | 9,093 | 1.695313 | 2 | [
"MIT"
] | permissive | package dev.compactmods.machines.forge.machine.entity;
import dev.compactmods.machines.api.dimension.CompactDimension;
import dev.compactmods.machines.api.dimension.MissingDimensionException;
import dev.compactmods.machines.api.machine.IMachineBlockEntity;
import dev.compactmods.machines.api.machine.MachineEntityNbt;
... | true |
7e5b2386243d732d903649c497ca66c9f45c7c06 | Java | h585002/Oblig2-dat109 | /DAT109Oblig2/src/object/Priser.java | UTF-8 | 301 | 2.1875 | 2 | [] | no_license | package object;
/**
* Faste dagspriser til de forskjellige bilgruppene.
*
* @author Vebjoern Vaardal
*
*/
public class Priser {
public static final int A_PRIS = 200;
public static final int B_PRIS = 250;
public static final int C_PRIS = 300;
public static final int D_PRIS = 400;
}
| true |
4bbbd9af3728641d9eaf39ac635e9ff62afc0514 | Java | st235/StateButton | /statebutton/src/main/java/github/com/st235/statebutton/StateButton.java | UTF-8 | 6,607 | 2.4375 | 2 | [
"MIT"
] | permissive | // Copyright (с) 2017 by Alexander Dadukin (st235@yandex.ru)
// All rights reserved.
package github.com.st235.statebutton;
import android.content.Context;
import android.content.res.TypedArray;
import android.support.annotation.DrawableRes;
import android.support.annotation.IntRange;
import android.support.annotation... | true |
75dc5a4778d67ced8951826cf57d0c9976ec33af | Java | L18232355737/shiyan | /src/并发编程/Thread6.java | WINDOWS-1252 | 350 | 2.828125 | 3 | [] | no_license | package ;
public class Thread6 implements Runnable{
@Override
public void run() {
for(int i=1;i<21;i++) {
try {
Thread.currentThread().sleep(500);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
System.out.println(3);
}
... | true |
e7646b1d5d98c0ace5738939b03a67effc1bd41d | Java | Rohith1Jayadev/AEH | /CentralAEHub/src/main/java/com/rohith/aeh/hub/util/token/ScopeType.java | UTF-8 | 867 | 2.765625 | 3 | [] | no_license | package com.rohith.aeh.hub.util.token;
public enum ScopeType {
READ("READ"), WRITE("WRITE"), ALL("ALL");
private String scope;
private ScopeType(String scopeType) {
this.scope = scopeType;
}
public String scopeType() {
return this.scope;
}
public static ScopeType isEqual(String scope) {
... | true |
a2a1d36addee91d09b4451e27abd3d176e0fcee9 | Java | basoy/Converter | /src/main/java/com/bash/serg/outputs/WindowTextOutput.java | UTF-8 | 430 | 2.265625 | 2 | [] | no_license | package com.bash.serg.outputs;
import org.springframework.stereotype.Component;
import javax.swing.*;
/**
* Created by serega on 20.01.2016.
*/
@Component("windowOut")
public class WindowTextOutput implements TextOutput {
@Override
public void showText(String outputText) {
JFrame frame = new JFrame... | true |
720763677cdbd2455df924700d60816d9b858435 | Java | jjcordova/creditosPCE | /src/vista/frmCDispersion.java | UTF-8 | 6,439 | 2.125 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package vista;
import creditospce.credito;
import creditospce.creditoReporte;
import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.GridLayout;
import javax.swing.JScrollPane;
/**
*
* @author Juan
... | true |
64d24e6574087d56f5ddb8465fe40530c26a7c94 | Java | balmursaikiranb/mydata | /HotelBook/src/main/java/com/cg/booking/HotelBook/step/HotelBookStepDefinition.java | UTF-8 | 11,301 | 2.265625 | 2 | [] | no_license | /**
*
*/
package com.cg.booking.HotelBook.step;
import static org.junit.Assert.assertEquals;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;
import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;
im... | true |
0b174a69bad21bb020d3c7ae3a35a2d7effbc335 | Java | leizc2016/practice | /practice_comm/src/main/java/com/lzc/flume_kafka_es_kibina/MyFlumeRPCSender.java | UTF-8 | 1,944 | 2.53125 | 3 | [] | no_license | package com.lzc.flume_kafka_es_kibina;
import java.nio.charset.Charset;
import java.util.HashMap;
import java.util.Map;
import org.apache.flume.Event;
import org.apache.flume.EventDeliveryException;
import org.apache.flume.api.RpcClient;
import org.apache.flume.api.RpcClientFactory;
import org.apache.flume.event.Even... | true |
d9ee87e724c2d0efd34c3129394acbce354b9921 | Java | eduit-learning/curso-programacion-java | /Laboratorio_Modulo_3/src/main/java/eduit/learning/modulo3/laboratorio/resourcesbundle/EtiquetasVentasResourceBundle_es_MX.java | UTF-8 | 2,134 | 2.34375 | 2 | [] | no_license | package eduit.learning.modulo3.laboratorio.resourcesbundle;
import java.util.ListResourceBundle;
public class EtiquetasVentasResourceBundle_es_MX extends ListResourceBundle {
@Override
protected Object[][] getContents() {
return new Object[][]{
{"ventas_view_tiutlo", "Ventas"},
... | true |
e3af5af63ce2be1d1fa9f668860111d06b4caec4 | Java | cha63506/CompSecurity | /moments-source/src/com/facebook/common/dextricks/DexLibPaths.java | UTF-8 | 627 | 1.945313 | 2 | [] | no_license | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.facebook.common.dextricks;
import java.io.File;
class DexLibPaths
{
private final PathTransformer a;
DexLibPaths(PathTran... | true |
8f13e692d463a109f9ee37589163b6d9ef390c8c | Java | siimav/Piirivalve | /Piirivalve/src/main/java/ee/itcollege/jejee/entities/Intsident.java | UTF-8 | 6,791 | 1.9375 | 2 | [] | no_license | package ee.itcollege.jejee.entities;
import java.util.Collection;
import java.util.Date;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Query;
import javax.validation.constraints.NotNull;
import org.springframew... | true |
55a97ff5d72a76d5ad4789d7e3b77f7c6a7a027b | Java | kai-zhu/the-teaching-machine-and-webwriter | /trunk/java-tests/src/functions/VirtualFunctions02.java | UTF-8 | 435 | 3.203125 | 3 | [] | no_license | //Test the call of a function through the VFN
//! Run. Expect output = "84" endl ;
package functions;
public class VirtualFunctions02 {
public static void main( /*String [] args*/ ) {
VirtualFunctions02 p = new Child02() ;
p.func() ;
}
void func() {
System.out.println( 42 ) ;
}... | true |
56bed26326614ff3349672a64e804370b68af7f2 | Java | Vaibhavch9876/EasyHome | /app/src/main/java/com/example/easyhome/IncomeActivity.java | UTF-8 | 12,104 | 1.804688 | 2 | [] | no_license | package com.example.easyhome;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import android.app.Activity;
import android.app.Dialog;
import android.content.Intent;
import android.os.Bundle;
import andr... | true |
e4f39dab21265e71ee8b1dc67e2e9934c84d39b1 | Java | liebersonsantos/ExemploctivityForResultCompleto | /app/src/main/java/com/example/lieberson/exemploctivityforresult/Tela2.java | UTF-8 | 1,394 | 2.34375 | 2 | [] | no_license | package com.example.lieberson.exemploctivityforresult;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import org.w3c.dom.Text;
public class Tela2 extends AppCompatActivity {
@Override
protect... | true |
a2bafbb106935ef94df047631b4152c66bedc064 | Java | MohammedMoataz/Bug-Tracking-System | /src/bugtrackingsystem/forms/AddUser.java | UTF-8 | 3,093 | 2.65625 | 3 | [] | no_license | package bugtrackingsystem.forms;
import bugtrackingsystem.tables.Users;
import java.awt.Cursor;
import java.sql.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
public class AddUser extends UsersForm implements ActionListener {
private final ImageIcon a... | true |
7124d301ad634c093f1a8a03191ef25a70bac3b0 | Java | emaphis/CodeGym | /ScratchPad/src/threading/volitile/Clock.java | UTF-8 | 471 | 3.03125 | 3 | [] | no_license | package threading.volitile;
public class Clock implements Runnable {
private volatile boolean isCancel = false;
public void cancel() {
isCancel = true;
}
@Override
public void run() {
while (!isCancel) {
try {
Thread.sleep(1000);
System.... | true |
27603450c7288456c001afb68707b3368e716240 | Java | Ramya-vemula/api-integration-tests-develop | /src/test/java/com/tissl/api/profileService/Get.java | UTF-8 | 3,543 | 2.015625 | 2 | [] | no_license | package com.rungway.api.profileService;
import com.tissl.api.BaseTest;
import com.tissl.api.utils.EndPoint;
import com.tissl.api.utils.JsonKey;
import com.tissl.api.utils.ParameterConstant;
import com.tissl.api.utils.TestData;
import org.testng.annotations.Test;
import static io.restassured.RestAssured.given;
import ... | true |
9fac81945120c0f3375bf9b7f72e27ab7d9de172 | Java | ralasa/paw-rejestracja | /PAWRejestracja-web/src/main/java/paw/rejestracja/beans/RejestracjaManagedBean2.java | UTF-8 | 7,492 | 2.140625 | 2 | [] | no_license | package paw.rejestracja.beans;
import com.itextpdf.text.*;
import com.itextpdf.text.pdf.BaseFont;
import com.itextpdf.text.pdf.PdfPTable;
import com.itextpdf.text.pdf.PdfWriter;
import paw.studenci.jpa.StudenciDAO;
import javax.faces.application.FacesMessage;
import javax.faces.bean.ManagedBean;
import javax.faces.be... | true |
6fcc453aeda92feb2251b4a1245da2613434d0f9 | Java | Mgazul/ForestryMC-mc-1.12 | /src/main/java/forestry/plugins/PluginBiomesOPlenty.java | UTF-8 | 10,915 | 1.625 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2011-2014 SirSengir.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser Public License v3
* which accompanies this distribution, and is available at... | true |
8dcf1668c79f29b28babf571a6e68ba8bade8afc | Java | m1nesweeper12/Snake | /src/com/grey/snake/main/Handler.java | UTF-8 | 732 | 2.59375 | 3 | [] | no_license | package com.grey.snake.main;
import java.awt.Graphics;
import com.grey.snake.input.KeyManager;
import com.grey.snake.input.MouseManager;
import com.grey.snake.states.STATE;
public class Handler {
private Main main;
public Handler(Main main) {
this.main = main;
}
public void setGameState(S... | true |
8555a0f9202ba0a79303c5dcd5f88798c8b2e6ed | Java | basti-shi031/RxJavaSample | /app/src/main/java/com/basti/rxjavasample/callback/OnItemClickListener.java | UTF-8 | 166 | 1.710938 | 2 | [] | no_license | package com.basti.rxjavasample.callback;
/**
* Created by SHIBW-PC on 2016/1/21.
*/
public interface OnItemClickListener {
void onItemClick(int position);
}
| true |
b82c39e8782221501ba713ecf38d950530e76248 | Java | CadenKoehl/Minecraft2D | /src/main/java/com/cadenkoehl/minecraft2D/world/biome/DesertBiome.java | UTF-8 | 938 | 2.34375 | 2 | [] | no_license | package com.cadenkoehl.minecraft2D.world.biome;
import com.cadenkoehl.minecraft2D.block.Block;
import com.cadenkoehl.minecraft2D.block.BlockState;
import com.cadenkoehl.minecraft2D.block.Blocks;
import com.cadenkoehl.minecraft2D.world.gen.feature.CactusFeature;
import com.cadenkoehl.minecraft2D.world.gen.feature.Confi... | true |
ea4e77a6de1cd3d7966ea620a1797f047439e4c1 | Java | kid1999/Algorithmic-training | /src/nowcoder/bytedance/D.java | UTF-8 | 310 | 2.34375 | 2 | [
"MIT"
] | permissive | package nowcoder.bytedance;
import java.util.Scanner;
/**
* @author kid1999
* @date 2020/9/20 20:23
* @title D
*/
public class D {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int t = sc.nextInt();
for (int i = 0; i < t; i++) {
int n = sc.nextInt();
}
}
}
| true |
10259c4a3346abd125b95cba1af9f814b7b4e844 | Java | obc49/TP-MDI-JPA | /src/main/java/com/tpmdi/jpa/repositories/EtudiantRepository.java | UTF-8 | 283 | 1.65625 | 2 | [] | no_license | package com.tpmdi.jpa.repositories;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import com.tpmdi.jpa.models.Etudiants;
@Repository
public interface EtudiantRepository extends JpaRepository<Etudiants, Long>{
} | true |
cfc65433dd84a85b8d224797b7a4b425e880dbbd | Java | TiveCS/ZenMMO | /src/com/rehoukrel/zenmmo/api/SkillTree.java | UTF-8 | 16,824 | 1.882813 | 2 | [] | no_license | package com.rehoukrel.zenmmo.api;
import com.rehoukrel.zenmmo.ZenMMO;
import com.rehoukrel.zenmmo.event.BasicEvent;
import com.rehoukrel.zenmmo.utils.ConfigManager;
import com.rehoukrel.zenmmo.utils.DataConverter;
import com.rehoukrel.zenmmo.utils.language.Placeholder;
import net.md_5.bungee.api.ChatMessageType;
impor... | true |
8590d77d34360df41cfdc72e3baa6af3e6a94899 | Java | ilivoo/hivemq-community-edition | /src/main/java/com/hivemq/persistence/deliver/DeliverMessageMemoryLocalPersistence.java | UTF-8 | 5,022 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | package com.hivemq.persistence.deliver;
import com.google.common.collect.Lists;
import com.hivemq.configuration.service.InternalConfigurations;
import com.hivemq.extension.sdk.api.annotations.NotNull;
import com.hivemq.persistence.payload.PublishPayloadPersistence;
import com.hivemq.util.ThreadPreConditions;
import or... | true |
c6030b3720ca6fca0890cae3d0e368cb334e5e5d | Java | byznass/TiolkTrack-Server | /src/test/java/com/byznass/tiolktrack/kernel/handler/AuthenticationHandlerTest.java | UTF-8 | 2,694 | 2.296875 | 2 | [
"MIT"
] | permissive | package com.byznass.tiolktrack.kernel.handler;
import com.byznass.tiolktrack.jaxrs.filter.AuthenticationException;
import com.byznass.tiolktrack.kernel.TiolkTrackException;
import com.byznass.tiolktrack.kernel.crypto.TokenEncrypter;
import com.byznass.tiolktrack.kernel.dao.NoUserWithSuchIdException;
import com.byznass... | true |
8282df528fb93150920b454ca5f5e998b76d1148 | Java | jgriss/clustering-file-analyser | /src/main/java/uk/ac/ebi/pride/spectracluster/analysis/util/ClusterUtilities.java | UTF-8 | 9,566 | 2.15625 | 2 | [] | no_license | package uk.ac.ebi.pride.spectracluster.analysis.util;
import com.sun.org.apache.bcel.internal.generic.ILOAD;
import uk.ac.ebi.pride.spectracluster.clusteringfilereader.objects.ICluster;
import uk.ac.ebi.pride.spectracluster.clusteringfilereader.objects.IPeptideSpectrumMatch;
import uk.ac.ebi.pride.spectracluster.clust... | true |
52deaa3592fafaa3b8ec07d3f49d72e87c8ae26a | Java | ghost2006/JavaClass | /src/com/class4/Task3.java | UTF-8 | 744 | 3.3125 | 3 | [] | no_license | package com.class4;
import java.util.Scanner;
public class Task3 {
public static void main(String[] args) {
int amount1, amount2=200000;
Scanner amount = new Scanner(System.in);
System.out.println("Please enter the amount of loan");
amount1= amount.nextInt();
if (amount1<amount2) {
System.out.pr... | true |
de6d7287150efe88ffd5e02e6b665bc6a3187256 | Java | codehaus/openejb | /openejb3/container/openejb-persistence/src/test/java/org/openejb/persistence/PersistenceTest.java | UTF-8 | 6,044 | 1.960938 | 2 | [] | no_license | /**
*
* Copyright 2006 The Apache Software Foundation
*
* 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 appli... | true |
3cce5e157be3ae948d7b2ae7d3dafed8987ce4ce | Java | chipsz/sym_server | /sym_core/src/main/java/net/symbiosis/core/contract/symbiosis/SymImportBatch.java | UTF-8 | 3,345 | 1.90625 | 2 | [] | no_license | package net.symbiosis.core.contract.symbiosis;
import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/***************************************************************************
* *
* Created: 22 / 10 / 2016 ... | true |
737fe2ade56c7cfc07a4b067b7187f2fc662cf85 | Java | kopn9k/trucking-mc | /consignment/src/main/java/com/po/trucking/consignment/model/ConsignmentStatus.java | UTF-8 | 128 | 1.703125 | 2 | [] | no_license | package com.po.trucking.consignment.model;
public enum ConsignmentStatus {
ACCEPTED,
TESTED,
DELIVERED,
LOST
}
| true |
b50291385c5526bec885f74c9011d271c1fc0a89 | Java | venkatesanR/project_three | /common/common-parent/java-concepts/src/main/java/com/jmodules/threads/SchedulerHelper.java | UTF-8 | 1,509 | 2.84375 | 3 | [] | no_license | package com.jmodules.threads;
import java.util.List;
import java.util.concurrent.ScheduledThreadPoolExecutor;
public class SchedulerHelper {
private int defaultPoolSize;
private ScheduledThreadPoolExecutor scheduleExecutor = null;
public SchedulerHelper(int defaultPoolSize) {
if (scheduleExecutor... | true |
9e36573ba3dff7a01c0090b6e34a798870f713b5 | Java | ganeshvl/MarvelAndroid | /marvel_android/src/main/java/com/n8/marveldroid/Endpoints/ComicEndpoint.java | UTF-8 | 25,363 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | package com.n8.marveldroid.Endpoints;
import android.support.annotation.NonNull;
import com.n8.marveldroid.ModelObjects.Character;
import com.n8.marveldroid.ModelObjects.Comic;
import com.n8.marveldroid.QueryParams.ComicQueryParams;
import com.n8.marveldroid.RequestServices.ComicService;
import com.n8.marveldroid.Req... | true |
b5a603af0370941c2297befce1909cf52f0b333e | Java | edggy/ProofGenerator | /src/api/implementation/LineImpl.java | UTF-8 | 3,251 | 2.59375 | 3 | [] | no_license | package api.implementation;
import java.util.Comparator;
import util.Pair;
import api.Expression;
import api.Inference;
import api.Line;
import api.Operator;
import api.exception.InvalidExpressionException;
public final class LineImpl extends TreeExpression implements Line {
/**
*
*/
private st... | true |
416177af5e66fd33519ed7467f628d9b33d00a29 | Java | cycledu/JavaLearn | /src/test/DataStructures/leetcode/SwordToOffer/simple/Test10_2.java | UTF-8 | 1,055 | 3.25 | 3 | [] | no_license | package DataStructures.leetcode.SwordToOffer.simple;
/**
* @Author : jingtao
* @Data : 2020/05/23/18:29
* @Description :
* @Page or WebSite:https://leetcode-cn.com/problems/qing-wa-tiao-tai-jie-wen-ti-lcof/
* @Expected result :
*/
public class Test10_2 {
//错误
public int numWays(int n) {
int num =... | true |
b71f98944ae67dec3478932c4d60ec7ca3667d4c | Java | emmanuelreyes28/WorkingWithArrays | /identicalArrays.java | UTF-8 | 1,094 | 3.84375 | 4 | [] | no_license | import java.util.Arrays;
public class identicalArrays {
public static void main (String [] arggs) {
//Test areIdentical method
int [] array1 = {10, 20, 30, 40};
int [] array2 = {10, 20, 30, 40};
System.out.println(areIdentical(array1, array2)); //true
int [] a3 = {1, 2, 4, 5};
int [] a4 = {1,... | true |
9cc35ca0b4d95b7c186145b0d7d1826ec9043a66 | Java | ENGLISH-LIGHT/23patterns | /java-implement/visitor/src/visitor/elementB.java | UTF-8 | 319 | 3.046875 | 3 | [] | no_license | package visitor;
public class elementB implements element {
private String name;
public elementB(String name){
this.name = name;
}
@Override
public void acceptVisit(visitor v) {
v.visitElementB(this);
}
@Override
public String getName() {
return name;
}
}
| true |
1fe13f7671db88939c0be13938905e384c7a5519 | Java | copbint/code | /code/java/Usesuper.java | UTF-8 | 690 | 3.046875 | 3 | [] | no_license | /*
* @Author: Administrator
* @Date: 2016-02-16 16:08:22
* @Last Modified by: Administrator
* @Last Modified time: 2016-02-16 23:24:31
*/
public class Usesuper
{
public static void main (String args[])
{
Manager m=new Manager();
m.name="王飞";
m.salary=10000;
m.department="yewu";
System.out... | true |
133dbc541aac7050a53274a9a710bf7a17c2bec4 | Java | cckmit/wms | /model/src/main/java/com/sealinkin/wms/model/Wms_DefreportformenuModel.java | UTF-8 | 1,000 | 1.78125 | 2 | [] | no_license | package com.sealinkin.wms.model;
import com.sealinkin.wms.po.Wms_Defreportformenu;
public class Wms_DefreportformenuModel extends Wms_Defreportformenu{
private static final long serialVersionUID = 1L;
private String moduleId;
private String pgmId;
private String enterpriseNo;
private String procName;
priva... | true |
e28a1b774c5f99a6c99fe7a55d5a6345294947ff | Java | bmtron/SpamBlocker | /app/src/main/java/com/example/spamblocker/MainActivity.java | UTF-8 | 7,548 | 1.851563 | 2 | [] | no_license | package com.example.spamblocker;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.app.NotificationCompat;
import androidx.room.Room;
import android.Manifest;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Co... | true |
e18bc6b00d0e3c8913b0623df41f81b77a16e53a | Java | tommaso-giovannelli/OptNet | /src/optNet/model2/Model.java | ISO-8859-1 | 11,114 | 2.609375 | 3 | [] | no_license | package optNet.prova;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import org.apache.commons.math3.distribution.TriangularDistribution;
import optNet.connection.POIReadExcelFile;
import optNet.connection.RigaExcelCAP;
import optNet.connection.RigaExcelDFL;
import optNet.connect... | true |
14306d8128ea9315686e3c5278b85c67071e9cb8 | Java | willedwards/appengineQueueDemo | /src/main/java/com/travellazy/servlets/QueueMailTaskServlet.java | UTF-8 | 1,052 | 2.5 | 2 | [] | no_license | package com.travellazy.servlets;
import com.google.appengine.api.taskqueue.Queue;
import com.google.appengine.api.taskqueue.QueueFactory;
import com.google.appengine.api.taskqueue.TaskOptions;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
i... | true |
fa2b64ef2719c568d35db1611e6446009cb5ba8f | Java | guanqingguang0914/man5_sevice | /control/src/main/java/com/abilix/control/model/ScorpionModel.java | UTF-8 | 14,240 | 2.15625 | 2 | [] | no_license | package com.abilix.control.model;
import android.os.Handler;
import com.abilix.control.ControlInfo;
import com.abilix.control.GlobalConfig;
import com.abilix.control.protocol.ProtocolUtils;
import com.abilix.control.sp.SP;
import com.abilix.control.utils.LogMgr;
import com.abilix.control.vedio.Player;
import java.ut... | true |
3fb642e60e6c9d32e7ec172aa63eb0623c382e7d | Java | franzecs/akademyApi | /src/main/java/com/ikytus/akademy/services/ComissaoMesService.java | UTF-8 | 1,138 | 2.328125 | 2 | [] | no_license | package com.ikytus.akademy.services;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Service;
import com.ikytus.akademy.domain.ComissaoMes;
import com.ikytus.a... | true |
da1481741eb311604f5d72fa22f6e3bff9ea115f | Java | pmb086/Large-Scale-security-analysis-of-popular-Github-codes | /createCSV.java | UTF-8 | 3,997 | 2.5 | 2 | [] | no_license | import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.uti... | true |
cdaf5c49f8746410055f86d8be83a21708d1c7d5 | Java | syj0408/spring | /chap4/src/main/java/main/AppCtx.java | UTF-8 | 855 | 2.46875 | 2 | [] | no_license | package main;
//annotation.xml 대신으로 이 형태의.. java로 사용?
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
@Configuration //설정 j... | true |
2b5789e15da1b01ed683f83e24fa4ff713eba0a9 | Java | veejar89/ScalerAcademy-2 | /multidimensionalarray/practice/SetMatrixZeroes.java | UTF-8 | 2,208 | 3.75 | 4 | [] | no_license | package multidimensionalarray.practice;
import java.util.HashSet;
import java.util.Set;
public class SetMatrixZeroes {
public void setZeroes(int[][] matrix) {
int n = matrix.length, m = matrix[0].length;
Set<Integer> row = new HashSet<>();
Set<Integer> col = new HashSet<>();
for ... | true |
0c72b73aa967517446da6e8328356af9fc834d81 | Java | vasfiop/JavaWeb_2021_6_6 | /game/src/action/user/UserCar.java | GB18030 | 3,470 | 2.3125 | 2 | [] | no_license | package action.user;
import java.io.IOException;
import java.util.*;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import service.CarService;
@WebSer... | true |
6285888a0178913121b72f9d01c3418a78ea040f | Java | linsir6/WeChat_java | /com/tencent/mm/plugin/webview/stub/WebViewStubTempUI$4.java | UTF-8 | 458 | 1.742188 | 2 | [] | no_license | package com.tencent.mm.plugin.webview.stub;
import android.content.DialogInterface;
import android.content.DialogInterface.OnCancelListener;
class WebViewStubTempUI$4 implements OnCancelListener {
final /* synthetic */ WebViewStubTempUI pVd;
WebViewStubTempUI$4(WebViewStubTempUI webViewStubTempUI) {
... | true |
bbbc0814205fddf679f56e48a216698be108e133 | Java | sunmood/taco-cloud | /src/main/java/com/example/demo/repository/TacoRepository.java | UTF-8 | 312 | 1.617188 | 2 | [] | no_license | package com.example.demo.repository;
import com.example.demo.domain.Taco;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
/**
* Created by sunmood on 2019/3/7.
*/
@Repository
public interface TacoRepository extends CrudRepository<Taco, Long> {
}
| true |
5fd6a5fab8385d2bb1bbbe8d6788f095828cb858 | Java | dinudelia/OnlineTickets-Java | /src/main/java/repositories/DBEventRepository.java | UTF-8 | 678 | 2.421875 | 2 | [] | no_license | package repositories;
import managers.DBConnectionManager;
import managers.DBOperations;
import model.Event;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;
import java.util.Optional;
public class DBEventRepository impleme... | true |
38c3bc2a36bc36fde2e8a138d2eafbbb556c2bd0 | Java | ZonaLimite/Bingo2 | /src/main/java/servlet/Runnable3.java | UTF-8 | 19,163 | 2.203125 | 2 | [] | no_license | package servlet;
import java.io.IOException;
import java.util.Iterator;
import java.util.Random;
import java.util.Set;
import java.util.Vector;
import java.util.logging.Logger;
import javax.inject.Inject;
import javax.swing.JTextArea;
import javax.websocket.Session;
/**
*
* @author hormigueras
*/
//public class... | true |
4574d3568a92e004a190fd50c73c83741ddae9d7 | Java | emabitback/ProyectoStruts | /ProyectoStruts/src/java/devel/action/AltaPersonalAction.java | UTF-8 | 1,686 | 2.234375 | 2 | [] | no_license |
package devel.action;
import dao.ProductosDAO;
import devel.form.AltaPersonalForm;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.a... | true |
66755d057053f61a5e9c55b1d92b8d288311de92 | Java | sah3122/study_spring_security | /src/main/java/me/study/demospringsecurityform/account/LogInOutController.java | UTF-8 | 500 | 2.03125 | 2 | [] | no_license | package me.study.demospringsecurityform.account;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
/**
* Created by dongchul on 2019-09-05.
*/
@Controller
public class LogInOutController {
@GetMapping("/login") // post 요청은 spring security 가 제공하는 filter... | true |
5c592c2837c61ecfb1ecef7d2fbdf6bc7ae87aa4 | Java | njrozot1/sicaab-proyecto | /src/java/ModeloDB/CategoriaDB.java | UTF-8 | 1,407 | 2.703125 | 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 ModeloDB;
import Config.Conexion;
import Modelo.Categoria;
import java.sql.*;
import java.util.ArrayList;
/**
*
* @author N... | true |
e54bd71aad1c3e3a62cb754de5f367f62f91ce84 | Java | revuel/AccountDemo | /src/main/java/com/sunhill/demo/account/CheckingAccount.java | UTF-8 | 4,156 | 3.546875 | 4 | [] | no_license | package com.sunhill.demo.account;
import java.math.BigDecimal;
public class CheckingAccount extends Account implements AccountInterface{
// Atributes / Atributes (Big Decimal are recommended to avoid double or float pitfalls)
private BigDecimal balance = BigDecimal.valueOf(0); // Initialize attributes to avo... | true |
ad5023bfae1f26f65c0d0143fb636609325f7ab4 | Java | chailei9005/learning-design | /src/main/java/singleton/SingletonExample3.java | UTF-8 | 472 | 3.25 | 3 | [] | no_license | package singleton;
/**
* 懒汉式 , 线程安全, 使用关键字 synchronized 为什么不推荐使用
*/
public class SingletonExample3 {
private SingletonExample3(){}
private static SingletonExample3 instance;
public static synchronized SingletonExample3 getInstance(){
// 多个线程调用时 会创建多个对象
if (instance == null) {
... | true |
c85f3191e468047fc481a45e714f237effef1300 | Java | BroadbandForum/obbaa-netconf-stack | /netconf-notification-app/src/test/java/org/broadband_forum/obbaa/netconf/server/model/notification/rpchandlers/CreateSubscriptionRpcHandlerImplTest.java | UTF-8 | 5,426 | 1.601563 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2018 Broadband Forum
*
* 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... | true |
71101cddb1b2c8ab6e6b3dfa09cae84bd568be1b | Java | moutainhigh/hfzycj | /data_interface/src/main/java/com/zycj/business/park/model/CommercialParkRecord.java | UTF-8 | 4,510 | 2.296875 | 2 | [] | no_license | package com.zycj.business.park.model;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entit... | true |
14d87f6ab6e68062e12dddacefcf1ae9277322a8 | Java | sanjay222joshi/util | /src/main/java/com/testutils/junit/OrderedJunit4TestRunner.java | UTF-8 | 934 | 2.40625 | 2 | [] | no_license | package com.testutils.junit;
import org.junit.runners.BlockJUnit4ClassRunner;
import org.junit.runners.model.FrameworkMethod;
import org.junit.runners.model.InitializationError;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
public class OrderedJunit4TestRunner extends BlockJUnit4Cl... | true |
9bdae292ce09fbe3eb29096b91c0c466fe0842cb | Java | chrisdopuch/Java-Practice | /merge sort/MergeSortApp.java | UTF-8 | 3,183 | 3.578125 | 4 | [] | no_license | /**
* This is my attempt at doing a merge sort in Java
*/
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.FileInputStream;
import java.io.InputStream;
import java.io.BufferedInputStream;
import java.util.Scanner;
class MergeSortApp {
private static Scanner in... | true |
d9a95b121ff9fbef20f4cde767708faad0265b27 | Java | MelvinZang/taxi | /src/main/java/com/zmz/taxi/service/serviceImpl/OrderServiceImpl.java | UTF-8 | 1,865 | 2.171875 | 2 | [] | no_license | package com.zmz.taxi.service.serviceImpl;
import com.zmz.taxi.bo.req.HistoryReq;
import com.zmz.taxi.bo.res.BaseRes;
import com.zmz.taxi.bo.res.QueryRes;
import com.zmz.taxi.dao.OrderMapper;
import com.zmz.taxi.dao.domain.Order;
import com.zmz.taxi.service.OrderService;
import org.springframework.stereotype.Service;
... | true |
31bd73f91e83556e962edeaef468519b2743f416 | Java | mht5/ThinkingInJava | /src/test/c_03/type_casting/Casting.java | UTF-8 | 207 | 2.578125 | 3 | [] | no_license | package test.c_03.type_casting;
public class Casting {
public static void main(String[] args){
int i=200;
long lng=(long)i;
lng=i;
long lng2=(long)200;
lng2=200;
i=(int) lng2;
}
}
| true |
081644e9951e60fb81182f0ce27c2d44a3a734a6 | Java | IBMStreams/streamsx.health | /ingest/common/com.ibm.streamsx.health.ingest/impl/java/src/com/ibm/streamsx/health/ingest/types/model/MessageInfo.java | UTF-8 | 1,797 | 1.835938 | 2 | [
"Apache-2.0"
] | permissive | //*******************************************************************************
//* Copyright (C) 2017 International Business Machines Corporation
//* All Rights Reserved
//*******************************************************************************
package com.ibm.streamsx.health.ingest.types.model;
import jav... | true |
8b6afa7489613850a87eea632c5f4f500da6c44e | Java | GZzzhsmart/FitmentStore | /src/SQLservlet/moneyRecordServlet.java | UTF-8 | 5,517 | 2.28125 | 2 | [] | no_license | package SQLservlet;
import java.io.IOException;
import java.io.PrintWriter;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
impo... | true |
7667378ee15adc995a1328eca664056b1fa50a53 | Java | royliurj/SpringCloudDemo | /ServiceRibbon/src/main/java/com/roy/springcloud/serviceribbon/controller/RibbonController.java | UTF-8 | 3,984 | 2.328125 | 2 | [] | no_license | package com.roy.springcloud.serviceribbon.controller;
import com.netflix.hystrix.HystrixCommand;
import com.netflix.hystrix.HystrixCommandGroupKey;
import com.netflix.hystrix.HystrixCommandKey;
import com.netflix.hystrix.HystrixThreadPoolKey;
import com.roy.springcloud.serviceribbon.command.UserCommand;
import com.roy... | true |
9130d447d6e1b2cbc88859c079e0ca3d7fbdc402 | Java | freecullen/fate | /service/fate-service/src/main/java/fate/utils/ChengGuHelper.java | UTF-8 | 1,231 | 2.515625 | 3 | [] | no_license | package fate.utils;
import fate.entity.Birthday;
import fate.result.ChengGuResult;
public class ChengGuHelper {
private static final int years[] = { 0, 6, 8, 7, 5, 15, 6, 16, 15, 7, 9, 12, 10, 7, 15, 6, 5, 14, 14, 9, 7, 7,
9, 12, 8, 7, 13, 5, 14, 5, 9, 17, 5, 7, 12, 8, 8, 6, 19, 6, 8, 16, 10, 6, 12, ... | true |
d8e8c4ffc75eeab6b80ff5bbbeba120e7e999cde | Java | JCMFilho/JogoDaVelha-Spring | /src/main/java/com/jogo/tictactoe/dto/MovementInput.java | UTF-8 | 371 | 2.296875 | 2 | [] | no_license | package com.jogo.tictactoe.dto;
public class MovementInput {
private String player;
private Position position;
public String getPlayer() {
return player;
}
public void setPlayer(String player) {
this.player = player;
}
public Position getPosition() {
return position;
}
public void setPosition(Pos... | true |
931c4e7d240e4af05362068c581deee17ac27b47 | Java | amitsingh5949/Algorithms | /StackBasics/src/com/javadwarf/stackbasics/gfg/QueueUsingTwoStack.java | UTF-8 | 966 | 3.5 | 4 | [] | no_license | package com.javadwarf.stackbasics.gfg;
import java.util.Scanner;
import java.util.Stack;
public class QueueUsingTwoStack {
public static void main(String[] args) {
Queue q = new Queue();
Scanner in = new Scanner(System.in);
int numOfTestCases = in.nextInt();
for(int i=0; i<numOfTestCases; i++){
int ... | true |
86837cece8bb4472d9b78877b1a6482de78e327b | Java | YMSHXH/MaillYMS | /app/src/main/java/com/king/maillyms/model/GoodsDetailsModel.java | UTF-8 | 548 | 1.890625 | 2 | [] | no_license | package com.king.maillyms.model;
import com.example.lib_core.net.OkhttpCallback;
import com.example.lib_core.net.OkhttpUtils;
import com.king.maillyms.apis.ProductApis;
import com.king.maillyms.contact.GoodsDetailsContact;
import java.util.HashMap;
public class GoodsDetailsModel implements GoodsDetailsContact.IGoods... | true |
072a058c4c8745eaa54467674452f086b3e2ab0d | Java | fhmoralles/eventoweb | /modules/repository/src/main/java/br/com/eventoweb/repository/parametros/spec/ParametroRepository.java | UTF-8 | 252 | 1.507813 | 2 | [] | no_license | package br.com.eventoweb.repository.parametros.spec;
import javax.ejb.Local;
import br.com.eventoweb.domain.parametros.Parametro;
import br.com.libutils.jpa.Repository;
@Local
public interface ParametroRepository extends Repository<Parametro> {
}
| true |
b6e599287f2178b8996f16cdaa65dc9297da16cc | Java | vedisoftbpl/vedisoftbe | /src/main/java/com/vedisoft/vedisoft2020/pojos/Session.java | UTF-8 | 8,089 | 1.867188 | 2 | [] | no_license | package com.vedisoft.vedisoft2020.pojos;
import java.io.Serializable;
import javax.persistence.*;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.math.BigDecimal;
import java.util.Date;
import java.math.BigInteger;
import java.util.List;
/**
* The persistent class for the session database table.
... | true |
8a80f7e92d0a89e8bde3bde2bf0109eac04d9b56 | Java | yaoleinuist/lzh-maven-parent | /lzh-common/src/main/java/com/lzhsite/core/utils/HttpUtils.java | UTF-8 | 13,141 | 2.3125 | 2 | [] | no_license | package com.lzhsite.core.utils;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.List;
import java.util... | true |
39397d7cf87f17ad443ac642bac83b1151919393 | Java | chenmual/test02 | /src/main/java/TestMain5.java | UTF-8 | 1,299 | 2.828125 | 3 | [] | no_license | public class TestMain5 {
public static void main(String[] args){
String s1 = "abc";
String s2 = new String("abc");
String s3 = new String(s1);
String s4 = new String(s2);
String s5 = "abc";
String s6 = "ab" + "c";
String s7 = "ab" + new String("c");
String s8 = new String("ab") + new String("c");
Sy... | true |
d8c810c9cc4ce5d8ad864db34f0f4cf5e70a1bd6 | Java | OpenTracksApp/OpenTracks | /src/main/java/de/dennisguse/opentracks/sensors/UintUtils.java | UTF-8 | 733 | 2.78125 | 3 | [
"Apache-2.0"
] | permissive | package de.dennisguse.opentracks.sensors;
public class UintUtils {
public static final int UINT16_MAX = 0xFFFF;
public static final long UINT32_MAX = 0xFFFFFFFFL;
private UintUtils() {
}
/**
* Computes a - b for UINT with overflow (b < a).
*
* @return diff
*/
public stati... | true |
647b5becb3c5101d808ab20b3662a865d4dd720c | Java | tyomakr/AKRU | /src/main/java/ru/aikr/spring/fx/akru/application/JavaFxApplication.java | UTF-8 | 866 | 2.203125 | 2 | [] | no_license | package ru.aikr.spring.fx.akru.application;
import javafx.application.Application;
import javafx.application.Platform;
import javafx.stage.Stage;
import ru.aikr.spring.fx.akru.AKRUApp;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.ConfigurableApplicationContext;
... | true |
4a3a18162a614150d5cfda73e65ba421a042e194 | Java | VabrantGames/ActionSystem | /actionsystem/src/main/java/com/vabrant/actionsystem/actions/MoveAction.java | UTF-8 | 6,946 | 2.46875 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright 2019 John Barton
*
* 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... | true |
d0b8e6a2d340ac8fd52bba9a52d8534eb95c5133 | Java | huynh8/tennis-api | /src/main/java/com/example/tennis/mvc/PlayerRequest.java | UTF-8 | 221 | 1.789063 | 2 | [] | no_license | package com.example.tennis.mvc;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;
@FieldDefaults(level = AccessLevel.PRIVATE)
@Data
public class PlayerRequest {
String name;
}
| true |
b8ac91d3b1239521c03201e3b1a644fae1c54e0f | Java | rela1/JavaProgrammingCourse | /HW10b-0036475070/src/main/java/hr/fer/zemris/java/gui/calc/functions/CosinusFunctionImpl.java | UTF-8 | 1,016 | 3.828125 | 4 | [] | no_license | package hr.fer.zemris.java.gui.calc.functions;
/**
* Implementacija metode kosinus, odnosno arkus kosinus, ovisno o zastavici koja
* se prima u osnovnoj metodi implementacije funkcije.
*
* @author Ivan Relic
*
*/
public class CosinusFunctionImpl implements CalculatorFunction {
/**
* Metoda računa kosinus v... | true |
2a9d854c8c9f2a9c870db4bcd517388359ca7b23 | Java | KINGOFAURORA/aurora | /aurora-service/src/main/java/com/aurora/prototype/ProtoTypeEntity.java | UTF-8 | 977 | 2.6875 | 3 | [] | no_license | package com.aurora.prototype;
public class ProtoTypeEntity implements Cloneable{
private Integer p1;
private String p2;
private ProtoTypeParam p3;
public Integer getP1() {
return p1;
}
public void setP1(Integer p1) {
this.p1 = p1;
}
public String getP2() {
r... | true |
7b8f090ce508b236cde963019ae7e99140c02dd3 | Java | Rashid-153/automation-Framework | /POM_FolderLock/src/test/java/test/VideosSection/TestUnhideVideos.java | UTF-8 | 823 | 2.25 | 2 | [] | no_license | package test.VideosSection;
import org.testng.Reporter;
import org.testng.annotations.Test;
import base.BaseClass;
import Pages.BtnSelectAll;
import Pages.SelectMedia;
import Pages.UnhideButton;
public class TestUnhideVideos extends BaseClass{
SelectMedia selMedia;
BtnSelectAll selAll;
UnhideButton unhidebtn;
... | true |
c8b90e5d98ecb8fa785007eb02a2cc2efb7cbf97 | Java | degdigital/Xamarin-ExactTarget | /src/ExactTarget.ETPushSdk.WinPhone/Location/receiver/PowerStateChangedReceiver.java | UTF-8 | 2,777 | 1.71875 | 2 | [] | no_license | /* 1: */ package com.exacttarget.etpushsdk.location.receiver;
/* 2: */
/* 3: */ import android.content.BroadcastReceiver;
/* 4: */ import android.content.ComponentName;
/* 5: */ import android.content.Context;
/* 6: */ import android.content.Intent;
/* 7: */ import android.content.pm.Package... | true |
8e43234d47e7b60f73c560c24d6584376a25bec9 | Java | tvdstorm/waebric | /implementations/java/jparsec/parser/WaebrickParser/src/com/uva/se/wparse/model/statement/Statement.java | UTF-8 | 627 | 1.546875 | 2 | [] | no_license | /*
* File : Statement.java
* Project : WaebrickParser2
* : Waebrick Parser, practicum opdracht Software Construction
*
* Author : M. Wullink, L. Vinke, M. v.d. Laar
*
* Description :
*
*
* Change history
* -----------------------------------------------------------
* Date Change
* ------... | true |
90a4682f2548db69015f13fbb222eefefdf49d6b | Java | CLGCLG/P2P | /p2p-master/facebook_p2p_service/src/main/java/cn/facebook/service/admin/impl/AdminServiceImpl.java | UTF-8 | 588 | 1.992188 | 2 | [] | no_license | package cn.facebook.service.admin.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import cn.facebook.dao.admin.IAdminDao;
import cn.facebook.domain.admin.Admin;
import cn.facebook.servi... | true |
7c793b5ca3ecb7def44109d87a0f86ea66c36ec4 | Java | chintyadewi/manajemen-ruang | /app/src/main/java/com/example/manajemenruang/adapter/AdapterRuangRecylerView.java | UTF-8 | 8,362 | 1.90625 | 2 | [] | no_license | package com.example.manajemenruang.adapter;
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import a... | true |
57b947f1b2a074aa4e74085a48bd038328a3e949 | Java | raygomez/pealib | /test/views/InOutTabbedPaneTest.java | UTF-8 | 558 | 2.140625 | 2 | [] | no_license | package views;
import org.junit.Before;
import org.junit.Test;
import org.uispec4j.TabGroup;
import org.uispec4j.UISpecTestCase;
public class InOutTabbedPaneTest extends UISpecTestCase {
TabGroup tabGroup;
@Before
public void setUp() throws Exception {
tabGroup = new TabGroup(new InOutTabbedPane()... | true |
fe3cf693afc120bc62dee4757bfda4c345a0c245 | Java | Ilya-Hlebik/blackJack | /backend/src/main/java/com/blackJack/dbo/AbstractEntity.java | UTF-8 | 166 | 1.710938 | 2 | [] | no_license | package com.blackJack.dbo;
import lombok.Data;
import org.springframework.data.annotation.Id;
@Data
public class AbstractEntity
{
@Id
private String id;
}
| true |
5b02cf9c024af99e52598e2e62f4774d55229cd4 | Java | zfu1316/LeetCode | /1168. Optimize Water Distribution in a Village.java | UTF-8 | 8,493 | 3.296875 | 3 | [] | no_license | https://leetcode.com/contest/biweekly-contest-7/problems/optimize-water-distribution-in-a-village/
// 思路:Graph经典Minimum Spanning Tree问题。
// 关键点:思路转换,将“打井”的成本well[i]转化成从第0个house到第i个house的路径权重,也就是求解
// 包含n+1个节点[0:N]的Minimum Spanning Tree。
// 解法一:Prim's algo,用节点搜索边。注意和Kruskal's algo的不同之处。
// ... | true |
a64aea68fe692e247589af57f00685df12b37ecb | Java | jmsantuci/test | /jaas/client/desktop/src/main/java/jms/jaas/client/desktop/ThreadHelloClient.java | UTF-8 | 1,986 | 2.921875 | 3 | [] | no_license | /**
*
*/
package jms.jaas.client.desktop;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import jms.jaas.security.Constants;
/**
* @author jsantuci
*
*/
public class ThreadHelloClient extends HelloClient implements Runnable {
private boolean ru... | true |
86a0614c505ce8a32901d9c975406694a246238b | Java | zaleslaw/OpenStreetMap-Zombies | /app/src/main/java/com/zaleslaw/osmzombies/ZombieService.java | UTF-8 | 3,526 | 2.75 | 3 | [] | no_license | package com.zaleslaw.osmzombies;
import android.location.Location;
import android.util.Log;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Random;
public class ZombieService {
private int zombieCounter = 1;
// TODO : singleton
private Survivor survivor;
... | true |
74487a32ee221d29f6380b5da6a2f1fe9126f50e | Java | bergel/UMLDependencies | /Bundles/UMLVisualization/data/k9mail_src/k9mail/src/main/java/com/fsck/k9/activity/FolderList.FolderClickListener.java | UTF-8 | 609 | 2.296875 | 2 | [
"MIT"
] | permissive | package com.fsck.k9.activity;
import android.view.View;
import android.view.View.OnClickListener;
import com.fsck.k9.search.LocalSearch;
/**
* FolderList is the primary user interface for the program. This
* Activity shows list of the Account's folders
*/
private class FolderClickListener implements OnClickListene... | true |
8a437de14e72ae2f511c427107481ba009067951 | Java | afraz-afaq/RideSharing | /app/src/main/java/com/example/adeel/ridesharing/MyBookingFragment.java | UTF-8 | 1,413 | 2.140625 | 2 | [] | no_license | package com.example.adeel.ridesharing;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.design.widget.TabLayout;
import android.support.v4.app.Fragment;
import android.support.v4.view.PagerAdapter;
import android.support.v4.view.Vie... | true |
d169b3da1c92ab47f82aca3392f3eee4487ddce4 | Java | TomBaddeley/AdventOfCode | /Day9/Amp2.java | UTF-8 | 4,834 | 2.734375 | 3 | [] | no_license | import java.util.Arrays;
public class Amp2 {
private int codePointer;
private double[] code;
private int inputPointer = 0;
private int inputSize = 0;
private int[] input = new int[100000];
private int basePointer = 0;
private boolean terminated = false;
private boolean inputNeeded = fa... | true |
582c0fbe3b22f112755d50d8b5beedc79ab639c0 | Java | hadouken89/Book-app | /app/src/main/java/com/jonaslopez/itrsa/lisviewapielements/service/IServiceCallback.java | UTF-8 | 166 | 1.671875 | 2 | [] | no_license | package com.jonaslopez.itrsa.lisviewapielements.service;
public interface IServiceCallback {
void onSuccess(String response);
void onFailure(Exception e);
}
| true |
4e6f167ff67d3460f30a7cd1d0fcc89551cf0bbc | Java | alagurajan/CoreJava | /22_Inner Class (115 - 172 in Section 12)/packTwo/Manager15.java | UTF-8 | 219 | 2.125 | 2 | [] | no_license | package packTwo;
/***** 129. Program *******/
public class Manager15
{
public static void main(String[] args)
{
System.out.println("1111");
System.exit(0);
System.out.println("222");
}
}
| true |
9116b0e07db3ec5d6dcaaf830f20f3aa12e3d11a | Java | logosty/leetcode | /src/main/java/com/logosty/learning/leetcode/section000/part7/Solution70.java | UTF-8 | 1,113 | 3.84375 | 4 | [] | no_license | package com.logosty.learning.leetcode.section000.part7;
/**
* Created with IDEA by logosty
* Date:2019/4/2 Time:15:40
* Description:简单 70. 爬楼梯
*
* 假设你正在爬楼梯。需要 n 阶你才能到达楼顶。
*
* 每次你可以爬 1 或 2 个台阶。你有多少种不同的方法可以爬到楼顶呢?
*
* 注意:给定 n 是一个正整数。
*
* 示例 1:
*
* 输入: 2
* 输出: 2
* 解释: 有两种方法可以爬到楼顶。
* 1. 1 阶 + 1 阶
* 2. 2 ... | true |
a4f93c3a61b3ff139ce7cd3f31aa83c43acc343a | Java | guidefreitas/gamebox | /src/com/guidefreitas/gamebox/util/HardWorkAsync.java | UTF-8 | 1,220 | 2.625 | 3 | [] | no_license | package com.guidefreitas.gamebox.util;
import android.app.ProgressDialog;
import android.content.Context;
import android.os.AsyncTask;
public class HardWorkAsync extends AsyncTask<Integer, String, Integer> {
private ProgressDialog progress;
private Context context;
public HardWorkAsync(Context context){
thi... | true |