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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
10aff0d839fc03241020a5ae3c84c981685ce800 | Java | l770468673-lypgit/PandaCardTravel | /app/src/main/java/com/pandacard/teavel/uis/MyTransactionAddress.java | UTF-8 | 7,668 | 1.710938 | 2 | [] | no_license | package com.pandacard.teavel.uis;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.... | true |
0da952639a9efa294fbcd9bf8d0fcc3e30ea7669 | Java | MSPL4SOA/MSPL4SOA-tool | /generated_SPs_SCs/IAD/SCs/SC_jetaircraft1/src/main/java/SP_command/main/SC.java | UTF-8 | 4,815 | 2.46875 | 2 | [] | no_license | package SP_command.main;
import scfactory.SCGenerator;
import scfactory.SCGeneratorException;
public class SC {
public static void main(String[] args) {
//************* Begin of ./files_generated/SP_command/am/ServiceName_3_CapabilityName_3_1_1.fml *************//
//
SCGenerator scGenerator_SP_command_Servic... | true |
661d8a6697d650857aca525deb0ec47ceddd6a1e | Java | ubcst/UBCST-Telemetry-App | /app/src/main/java/com/ubcst/jello/ubcsttelemetry/http/VolleyRequests.java | UTF-8 | 2,710 | 2.796875 | 3 | [] | no_license | package com.ubcst.jello.ubcsttelemetry.http;
import android.app.Activity;
import android.content.Context;
import android.util.Log;
import com.android.volley.Request;
import com.android.volley.RequestQueue;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.android.volley.t... | true |
027c7fd020a350291e322dd48896c01a38410457 | Java | NoahShen/mxl-osgi | /MxlOSGiVCardBundle/src/net/sf/mxlosgi/mxlosgivcardbundle/impl/VCardManagerImpl.java | UTF-8 | 2,588 | 2.203125 | 2 | [] | no_license | /**
*
*/
package net.sf.mxlosgi.mxlosgivcardbundle.impl;
import net.sf.mxlosgi.mxlosgimainbundle.ServerTimeoutException;
import net.sf.mxlosgi.mxlosgimainbundle.StanzaCollector;
import net.sf.mxlosgi.mxlosgimainbundle.XMPPConnection;
import net.sf.mxlosgi.mxlosgimainbundle.XMPPException;
import net.sf.mxlosgi.mxlos... | true |
7da30c1d6c2b6860434dde3c2eb40bef43b0c359 | Java | wiklundemil/16TE-Emil-WIklund | /Kalkylator/src/kalkylator/Kalkylator.java | UTF-8 | 493 | 3.140625 | 3 | [] | no_license |
package kalkylator;
import java.util.Scanner;
public class Kalkylator {
public static void main(String args[]){
Scanner Tangentbord = new Scanner(System.in);
double tal1, tal2, answer;
System.out.println("skriv en siffra: ");
tal1 = Tangentbord.nextDouble();
... | true |
fd281ad57b0e43959910efc99d420902d3b11c1d | Java | lbrackspace/atlas-lb | /common/cidr/src/main/java/org/openstack/atlas/util/cidr/validate/IpValidator.java | UTF-8 | 3,572 | 2.71875 | 3 | [] | no_license | package org.openstack.atlas.util.cidr.validate;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import org.openstack.atlas.util.ip.IPUtils;
import java.util.logging.Level;
import java.util.logging.Logger;
public class IpValidator {
private ValidateType type;
private Valid... | true |
a9fa19a754c36fa724f464a55d5125863443d1a8 | Java | EvilCodeZ/DynamicConfig | /src/main/java/de/evilcodez/config/serialization/object/defaults/UUIDSerializer.java | UTF-8 | 923 | 2.375 | 2 | [] | no_license | package de.evilcodez.config.serialization.object.defaults;
import de.evilcodez.config.BaseValue;
import de.evilcodez.config.StringValue;
import de.evilcodez.config.serialization.object.ObjectSerializer;
import de.evilcodez.config.serialization.object.SerializationContext;
import de.evilcodez.config.serialization.objec... | true |
d2587cc3ed873655ce4228028c816f0d62385a1a | Java | NandoOU/coding | /src/main/java/org/fundacionjala/coding/Fernando/BankOCR/EntryParser.java | UTF-8 | 4,218 | 3.03125 | 3 | [] | no_license | package org.fundacionjala.coding.Fernando.BankOCR;
import java.util.ArrayList;
/**
* Class EntryParser.
*/
public class EntryParser {
private String line1, line2, line3;
static final int VAR_CARACT = 3;
static final int POS = 4;
static final int VALOR = 48;
static final int VALIDATOR = 11;
... | true |
0fb2f123f86bc20e01f9b63e0bad8cb65c01bb0c | Java | JetBrains/intellij-scala | /scala/scala-impl/testdata/refactoring/rename3/overriddenVal/before/tests/Foo.java | UTF-8 | 329 | 2.609375 | 3 | [
"Apache-2.0"
] | permissive | package tests;
public class Foo {
public static void main(String[] args) {
int b2 = Baz2.baz/*caret*/();
int b3 = Baz3.baz/*caret*/();
(new Baz()).baz();
}
public static class JavaBaz extends Baz {
@Override
public int /*caret*/baz() {
return 4;
... | true |
16d5d8938148bd6699a86b08d1926d39b0eb82bf | Java | federicoPeppi/projects | /Zoo/src/Animale.java | UTF-8 | 544 | 3.5 | 4 | [] | no_license |
public abstract class Animale {
private String nome;
protected String verso;
public Animale(String nome){
this.nome=nome;
}//costruttore, inizializzo il nome
public abstract String si_muove();//mi dice come si muove l'animale
public abstract String vive();//mi dice l'ambiente dove vive
publi... | true |
8e61638a6e57a0233eecffae13104ac87c39083a | Java | nicoletlopez/GovFundMe | /Application/src/tk/govfundme/models/daos/ProjectDao.java | UTF-8 | 9,140 | 2.71875 | 3 | [] | no_license | package tk.govfundme.models.daos;
import tk.govfundme.models.daos.servicelayers.DonationServiceLayer;
import tk.govfundme.models.entities.Category;
import tk.govfundme.models.entities.Project;
import tk.govfundme.models.entities.User;
import tk.govfundme.models.exceptions.DuplicateProjectNameException;
import tk.govfu... | true |
c91b7c28c3096a2a47eec29dffd5186c74132fbe | Java | olivergeith/android_logoLWP | /src/de/geithonline/logolwp/settings/DrawerManager.java | UTF-8 | 1,086 | 2.359375 | 2 | [] | no_license | package de.geithonline.logolwp.settings;
import java.util.HashMap;
import java.util.Map;
import android.graphics.Bitmap;
import de.geithonline.logolwp.bitmapdrawer.BitmapDrawerLogoV1;
import de.geithonline.logolwp.bitmapdrawer.BitmapDrawerLogoV2;
import de.geithonline.logolwp.bitmapdrawer.IBitmapDrawer;
pu... | true |
81d52c8033dd4fb52e46229ddeb99e2c77b067c8 | Java | alexismwengo/Moyo-ndi-Mpamba-Project | /app/src/main/java/com/example/finalyearproject/MainActivity.java | UTF-8 | 899 | 2.25 | 2 | [] | no_license | package com.example.finalyearproject;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
... | true |
d84bcef265edcbba2fb7a3532c4f1c985991749a | Java | TiberioConte/Serie-A-GRAFO-Ricorsione | /src/it/polito/tdp/seriea/db/TestSerieADAO.java | UTF-8 | 1,647 | 2.359375 | 2 | [] | no_license | package it.polito.tdp.seriea.db;
import java.time.LocalDate;
import java.util.List;
import it.polito.tdp.seriea.model.BigMatch;
import it.polito.tdp.seriea.model.Match;
import it.polito.tdp.seriea.model.MatchIdMap;
import it.polito.tdp.seriea.model.Season;
import it.polito.tdp.seriea.model.Team;
import it.p... | true |
27b8b2651dcbc6cf74f8b1f7a7b6ce52deaad292 | Java | alexsrosa/auth-service | /src/main/java/br/com/architecture/authservice/infrastructure/entrypoints/dtos/LoginOutDto.java | UTF-8 | 378 | 2 | 2 | [] | no_license | package br.com.architecture.authservice.infrastructure.entrypoints.dtos;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class LoginOutDto {
private String email;
private String token;
private String tokenType;
public LoginOutDto(String token, String tokenType) {
this.t... | true |
c7970feccf363b7993ac585a867df9a926d6f4fa | Java | omkarkhaire/Banking-System | /app/src/main/java/com/example/bankingsystem/databasehelper.java | UTF-8 | 6,231 | 2.265625 | 2 | [] | no_license | package com.example.bankingsystem;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.DatabaseErrorHandler;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import androidx.annotation.NonNull;
imp... | true |
93c60612e39e722d8f5e998a533f099fcd863069 | Java | edrichard/marabunta | /src/com/akelio/marabunta/input/nest/AntIn.java | UTF-8 | 641 | 2.375 | 2 | [] | no_license | package com.akelio.marabunta.input.nest;
import com.akelio.marabunta.input.ant.AntMemory;
public class AntIn {
private int type;
private AntMemory memory;
public AntIn() {
super();
}
public AntIn(int type, int m0, int m1) {
super();
this.type = type;
this.memory = new AntMemory(m0, m1);
}
public ... | true |
ee0c3f0a6688fbccd93933281b24a9660b7f98d6 | Java | hoyoung2015/helloword | /small-test/src/inter/TestInterImpl.java | UTF-8 | 261 | 2.265625 | 2 | [] | no_license | package inter;
/**
* Created by hoyoung on 16-4-28.
*/
public class TestInterImpl implements ITestInter {
public static void main(String[] args) {
System.out.println(new TestInterImpl().age);
}
@Override
public void add() {
}
}
| true |
5866521a54da3c8aa8918e737c9732c8ba12b3a6 | Java | ryosuke-ku/TestCodeSeacherPlus | /Method_Scraping/xml_scraping/NicadOutputFile_t1_maven_new/Nicad_t1_maven_new1.java | UTF-8 | 2,952 | 2.078125 | 2 | [] | no_license | // clone pairs:1:77%
// 1:maven/maven-core/src/main/java/org/apache/maven/settings/SettingsUtils.java
public class Nicad_t1_maven_new1
{
public static org.apache.maven.model.Profile convertFromSettingsProfile( Profile settingsProfile )
{
org.apache.maven.model.Profile profile = new org.apache.ma... | true |
61b716c544a27b671d74dc41c28d5e1c40d30dc7 | Java | Granha/emu | /src/tests/HistoryTest.java | UTF-8 | 461 | 2.328125 | 2 | [] | no_license | package tests;
import abstractions.*;
import java.util.*;
import java.util.ArrayList;
public class HistoryTest {
public static void main(String[] args) {
System.out.println("Hello World");
//History h = new History(null);
//ArrayList<int> al = new ArrayList<int>(0);
//Atom at = new Atom(new AtomId(al), 0, "t... | true |
9e78608f0419486835c2384c2f00ed55133f7045 | Java | hawrancz99/vsebug | /src/main/java/cz/vse/java/pfej00/tymovyProjekt/gui/EditIssueController.java | UTF-8 | 8,560 | 2.375 | 2 | [] | no_license | package cz.vse.java.pfej00.tymovyProjekt.gui;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import cz.vse.java.pfej00.tymovyProjekt.Model.*;
import cz.vse.java.pfej00.tymovyProjekt.builders.PopupBu... | true |
30f5861a36b1b74b48f311586244f80f5a93e549 | Java | jonathanTaberna/AndroidStudioProjects | /Distribuidora/app/src/main/java/kt/distribuidora/fragments_datos_cargados/ClientesNuevosCargadosFragment.java | UTF-8 | 6,211 | 2.09375 | 2 | [] | no_license | package kt.distribuidora.fragments_datos_cargados;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView... | true |
baef7ecef718adef1318bb658b17dba028932945 | Java | hashmiabrar1/Polypheny-DB | /core/src/main/java/org/polypheny/db/sql/util/ReflectiveSqlOperatorTable.java | UTF-8 | 6,509 | 1.960938 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2019-2020 The Polypheny Project
*
* 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... | true |
ca37d66e951c5c94f8f44dd0cb1963d68f7849e0 | Java | Rishabh-Webos/Java-Collection | /src/collections/MapImplementation.java | UTF-8 | 4,544 | 3.90625 | 4 | [] | no_license | package collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
public class MapImplementation {
public static void main(String[] args) {
OperationOnMap operation = new OperationOnMap();
Scanner scanner = new Scanner(System.in);
Map<Integer, String> map = new Has... | true |
347ef41cd5158d579209d1b3d915132f6b921551 | Java | joncmuniz/spring-api-restful | /api/src/main/java/br/com/joncmuniz/microservices/api/persistence/dao/IAddressJpaDao.java | UTF-8 | 381 | 1.554688 | 2 | [] | no_license | package br.com.joncmuniz.microservices.api.persistence.dao;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import br.com.joncmuniz.microservices.api.client.persitence.model.Address;
public interface IAddressJpaDao extends JpaRepo... | true |
17597ca1968ae875637ee2e0a1c0c2222450f83e | Java | SIMM93/example | /wxpay/src/main/java/com/smartbr/enums/Sex.java | UTF-8 | 386 | 2.953125 | 3 | [] | no_license | package com.smartbr.enums;
/**
* 性别 枚举
*/
public enum Sex {
WOMAN("女", 0),
MAN("男", 1),
SECRET("保密", 2);
public final String type;
public final Integer value;
Sex(String type, Integer value) {
this.type = type;
this.value = value;
}
@Override
public String toSt... | true |
89a37a610991d20c82e92d3af412603a0367d02d | Java | Smirnov48/LD39 | /core/src/com/sgstudio/game/controller/KeyManager.java | UTF-8 | 1,307 | 2.453125 | 2 | [] | no_license | package com.sgstudio.game.controller;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input.Keys;
public class KeyManager {
public boolean getPressedLeft(){
if(Gdx.input.isKeyPressed(Keys.A) || Gdx.input.isKeyPressed(Keys.LEFT)) return true;
else return false;
}
public boolean getPressedRight(){... | true |
76b9618521cd5d3f6fc73d600fbf5228f911b349 | Java | nitilaksha1/Hazardous-Weather-Alert-IOT-System | /SparkStreaming/src/main/java/datamodel/Precipitation.java | UTF-8 | 144 | 1.882813 | 2 | [] | no_license | package datamodel;
import java.io.Serializable;
public enum Precipitation implements Serializable{
RAIN,
SNOW,
HAIL,
NORMAL
}
| true |
5135b5c4fd67d1d8580cf2cf46e4a5182965a982 | Java | designreuse/owsi-core-parent | /owsi-core/owsi-core-components/owsi-core-component-wicket-more/src/main/java/fr/openwide/core/wicket/more/markup/html/template/js/owsi/OwsiUtilsJavaScriptResourceReference.java | UTF-8 | 628 | 1.679688 | 2 | [
"Apache-2.0"
] | permissive | package fr.openwide.core.wicket.more.markup.html.template.js.owsi;
import org.apache.wicket.request.resource.JavaScriptResourceReference;
public final class OwsiUtilsJavaScriptResourceReference extends JavaScriptResourceReference {
private static final long serialVersionUID = 1762476460042247594L;
private static ... | true |
45cb20cf64ca7585cc7c2534608391c87d42f3d8 | Java | roppel/CodingInterviewProblems | /src/Bloomberg/ReorderArray.java | UTF-8 | 1,245 | 3.453125 | 3 | [] | no_license | package Bloomberg;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class ReorderArray {
public static void main(String[] args) {
String[][] employees = {{"John", "Manager"}, {"Sally", "CTO"}, {"Sam", "CEO"}, {"Drax", "Engineer"}, {"Bob",
... | true |
bce308daf2d6d3f7d64930f41a65b4c564bb4fbf | Java | kdh12345/UserInfoManagement | /demo/demo/src/main/java/com/fastcampus/javaallinone/project3/demo/controller/HelloWorldController.java | UTF-8 | 569 | 2.078125 | 2 | [] | no_license | package com.fastcampus.javaallinone.project3.demo.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springfram... | true |
2a53087731c4b31c14a212124c8126d365c6fc6b | Java | a425291506/CT | /ssm/src/main/java/com/ssm/dao/PlanDao.java | UTF-8 | 403 | 1.828125 | 2 | [] | no_license | package com.ssm.dao;
import java.util.List;
import org.springframework.stereotype.Repository;
import com.ssm.model.Plan;
@Repository
public interface PlanDao {
public List<Plan> findAllPlan(int page, int number, int ProjectId);
public void insertPlan(Plan plan);
public Plan findPlanById(int id);
... | true |
68863547ba4b002b0c637c765061ccb207d459e6 | Java | FH-SE-Master/Service-Engineering | /fhbay/fhbay-beans/src/main/java/sve2/fhbay/bean/ArticleProcessorBean.java | UTF-8 | 2,238 | 2.28125 | 2 | [] | no_license | package sve2.fhbay.bean;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import sve2.fhbay.domain.Article;
import sve2.fhbay.interfaces.ArticleAdminLocal;
import javax.ejb.ActivationConfigProperty;
import javax.ejb.EJB;
import javax.ejb.EJBException;
import javax.ejb.MessageDriven;
import javax.jms.JMSExcept... | true |
83ec991b2d415dfe0dd247b428ea80b8c829e7eb | Java | reed07/MyPreferencePal | /jadx-MFP/src/main/java/io/requery/query/Result.java | UTF-8 | 676 | 2.140625 | 2 | [] | no_license | package io.requery.query;
import io.requery.util.CloseableIterable;
import io.requery.util.CloseableIterator;
import java.util.Collection;
import java.util.List;
import java.util.NoSuchElementException;
import javax.annotation.CheckReturnValue;
public interface Result<E> extends CloseableIterable<E>, AutoCloseable {
... | true |
a54cafb918637106d731a6dc1391b6b0b8bb9462 | Java | hlcuic/test | /src/main/java/com/hello/util/ValidateUtils.java | UTF-8 | 2,480 | 2.953125 | 3 | [] | no_license | /**
*
*/
package com.hello.util;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.List;
import com.hello.annotation.NotNull;
import com.hello.exception.CustBusinessException;
import com.hello.model.Person;
public class ValidateUtils {
public static void main(Stri... | true |
63baeae6965ebc54c97a13886af9fe327e482b1e | Java | mlooser/recipe-project | /src/main/java/com/mlooser/learn/recipeproject/model/Difficulty.java | UTF-8 | 99 | 2.046875 | 2 | [] | no_license | package com.mlooser.learn.recipeproject.model;
public enum Difficulty {
Easy,
Moderate,
Hard
}
| true |
437a9a32072bc9461aa7d01e61d07ab3f9a490da | Java | bellmit/marketing-cloud | /marketing-tool-service-impl/src/main/java/cn/rongcapital/mkt/service/impl/TagRelatedImporterImpl.java | UTF-8 | 5,316 | 2.09375 | 2 | [] | no_license | package cn.rongcapital.mkt.service.impl;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.StringUtils... | true |
7675ae5be4b376d5ae6297cb1c28200b9d1bf916 | Java | willxujun/CS4212hw | /ir3/ClassData.java | UTF-8 | 1,052 | 2.828125 | 3 | [] | no_license | package ir3;
import java.util.ArrayList;
import java.util.Hashtable;
import java.util.Map;
import ast.ClassDescriptor;
import ast.Node;
public class ClassData extends Node {
public static Hashtable<String, Hashtable<String,String>> rec;
public ClassData() {
rec = ClassDescriptor.extract();
}
... | true |
1649bbb369193ecbe452a561df97c0618994f209 | Java | jensdt/chameleon-support | /src/chameleon/support/statement/Clause.java | UTF-8 | 1,479 | 2.21875 | 2 | [] | no_license | package chameleon.support.statement;
import org.rejuse.association.SingleAssociation;
import chameleon.core.element.Element;
import chameleon.core.lookup.LookupException;
import chameleon.core.namespace.NamespaceElementImpl;
import chameleon.core.statement.CheckedExceptionList;
import chameleon.core.statement.Excepti... | true |
98aa28c0b8867827a526a52f492f3211c56e8286 | Java | ff4j/ff4j | /ff4j-utils-json/src/main/java/org/ff4j/utils/mapping/JsonStringEventMapper.java | UTF-8 | 1,290 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | package org.ff4j.utils.mapping;
/*-
* #%L
* ff4j-utils-json
* %%
* Copyright (C) 2013 - 2023 FF4J
* %%
* 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... | true |
c97292b7ff55acea0378f9d3bb08f7f174822254 | Java | shannu95/NotownMusicalRecords | /database_project/CUSTOMER_GUI.java | UTF-8 | 18,371 | 2.578125 | 3 | [] | no_license |
package database_project;
import java.awt.HeadlessException;
import java.sql.Connection;
import java.sql.SQLException;
import javax.swing.table.DefaultTableModel;
import net.proteanit.sql.DbUtils;
/**
*
* @author Shannu
*/
public class CUSTOMER_GUI extends javax.swing.JFrame {
public boolean database;
p... | true |
cffa6d03f8aa7fbc2961444ba0333a525a7cf349 | Java | jinminwook/20190516- | /protest/src/mycar/Chevrolet.java | UHC | 976 | 3.640625 | 4 | [] | no_license | package mycar;
import java.util.Scanner;
public class Chevrolet {
public static void main(String[] args) {
/* ĵ Է¹Ƽ
* 90~100̸ A
* 80~89̸ B
* 70~79̸C
* 60~69̸D
* 60 ̸̸ F ϴ α.
*/
int score;
Scanner scan = new Scanner(System.in);
System.out.print(" Դϱ?");
score=scan.n... | true |
fcd9401379a62f686da66a71cb5fc5bb15d8dd97 | Java | Andiekistner95/Scanner | /Scanner/src/exercicio/numero23/itema/Classe.java | WINDOWS-1252 | 675 | 3.9375 | 4 | [] | no_license | /*
* Diga se o cdigo abaixo esta condizente com o que ser impresso no console,
* se no, o por que e diga o resultado correto.
a. String texto = Vincius;
String outroTexto = texto + Ferneda;
texto = outroTexto + Ferneda;
System.out.println(outroTexto);
Console: ViniciusFernedaFerneda
*/
package exercicio.n... | true |
71c0013e22e2a7badd84797c8a91e11a9be74313 | Java | yaroslav-shlapak/EyesRelax | /app/src/main/java/com/voidgreen/eyesrelax/preferences/NumberPickerPreference.java | UTF-8 | 2,649 | 2.390625 | 2 | [] | no_license | package com.voidgreen.eyesrelax.preferences;
import android.content.Context;
import android.content.res.TypedArray;
import android.preference.DialogPreference;
import android.util.AttributeSet;
import android.view.Gravity;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
impo... | true |
ac7324bf6d420f37ccc3139c3025bba747c4c5bc | Java | mrsperry/simple-edit | /src/main/java/io/github/mrsperry/simpleedit/sessions/actions/SetAction.java | UTF-8 | 786 | 2.171875 | 2 | [] | no_license | package io.github.mrsperry.simpleedit.sessions.actions;
import io.github.mrsperry.mcutils.classes.Pair;
import io.github.mrsperry.simpleedit.sessions.selections.Selection;
import io.github.mrsperry.simpleedit.sessions.selections.SelectionHistory;
import org.bukkit.Material;
import org.bukkit.block.Block;
import java.... | true |
2c5c7c1d018973f0565200b302309e41b0f2d7f3 | Java | abstract-karshit/data-structures-java | /src/main/java/tries/NumWords.java | UTF-8 | 1,112 | 3.46875 | 3 | [] | no_license | package tries;
import java.util.Arrays;
class NumWords {
private static void totalWordsUtil(TrieNode root, Answer answer) {
if (root.isEndWord) {
answer.answer++;
}
for (int i = 0; i < 26; i++) {
if (root.children[i] != null) {
totalWordsUtil(root.... | true |
d371c72fed53c3ed772ccd71a675b20ac2c6934a | Java | godv233/FlashSale | /src/main/java/com/java/sale/domain/FlashSaleOrder.java | UTF-8 | 252 | 1.5625 | 2 | [] | no_license | package com.java.sale.domain;
import lombok.Data;
/**秒杀订单
* @author 曾伟
* @date 2019/11/21 19:52
*/
@Data
public class FlashSaleOrder {
private Long id;
private Long userId;
private Long orderId;
private Long goodsId;
}
| true |
99cb3175e4cabc16f94fd10aa28855d278deb2f7 | Java | elavarasi/review-ds-java | /src/main/java/com/review/DataStructureAlgorithm/educativeio/Pattern7_Tree_BreadthFirstSearch/LevelOrderSibling.java | UTF-8 | 1,543 | 3.8125 | 4 | [] | no_license | package com.review.DataStructureAlgorithm.educativeio.Pattern7_Tree_BreadthFirstSearch;
/*
Connect All Level Order Siblings (medium) #
Given a binary tree, connect each node with its level order successor.
The last node of each level should point to the first node of the next level.
*/
import java.util.LinkedList;
imp... | true |
fcde3d77b8232c176b4dcf565fd5c4dafb904a31 | Java | ericJz/XOR_Media | /MyLib/trunk/src/com/xormedia/mylib/smb/MySmbServer.java | UTF-8 | 7,251 | 2.109375 | 2 | [] | no_license | package com.xormedia.mylib.smb;
import java.io.IOException;
import java.net.MalformedURLException;
import java.util.ArrayList;
import jcifs.smb.SmbException;
import jcifs.smb.SmbFile;
import org.apache.log4j.Logger;
import org.json.JSONException;
import org.json.JSONObject;
import android.os.Handler;
... | true |
cde9f515b35d3a561f90ba9865d51e84b7bf5be1 | Java | ninuxGithub/springcloud-jap-lcn | /server1/src/main/java/com/ninuxgithub/server/service/PersonService.java | UTF-8 | 227 | 1.820313 | 2 | [] | no_license | package com.ninuxgithub.server.service;
import com.ninuxgithub.server.entity.Person;
import java.util.List;
public interface PersonService {
public List<Person> list();
public boolean savePerson(Person person);
}
| true |
372ad52106e046f563e3e1ddb65cc81c254ed2aa | Java | AY2021S1-CS2103T-T17-1/tp | /src/test/java/seedu/address/logic/commands/FindCommandTest.java | UTF-8 | 4,103 | 2.515625 | 3 | [
"MIT",
"LicenseRef-scancode-other-permissive"
] | permissive | package seedu.address.logic.commands;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static seedu.address.commons.core.Messages.MESSAGE_MODULES_LISTED_OVERVIEW;
import static seed... | true |
8ede12611debdbbf7a92386c4304d431a72dbfb4 | Java | brunodrugowick/onde-eu-aponto | /src/main/java/dev/drugowick/ondeeuaponto/domain/jira/JiraUser.java | UTF-8 | 446 | 1.945313 | 2 | [] | no_license | package dev.drugowick.ondeeuaponto.domain.jira;
import org.springframework.security.oauth2.client.authentication.OAuth2AuthenticationToken;
/**
* Determines a Jira user given a OAuth2AuthenticationToken.
*
* You may provide other implementations to this, like a database query to get the user or a parse on the user... | true |
04469a9b109026c4855880317273dede031723b1 | Java | wkl-coder/Caviar | /build/generated/source/apt/release/com/vrexlab/caviar/fragments/SettingFragment$$ViewBinder.java | UTF-8 | 2,732 | 1.71875 | 2 | [] | no_license | // Generated code from Butter Knife. Do not modify!
package com.vrexlab.caviar.fragments;
import android.view.View;
import butterknife.ButterKnife.Finder;
import butterknife.ButterKnife.ViewBinder;
public class SettingFragment$$ViewBinder<T extends com.vrexlab.caviar.fragments.SettingFragment> implements ViewBinder<T... | true |
156f6311d3e44b7188c968ed9dd2c527b1bc334f | Java | uday9553/SpringCaffieneCache | /src/main/java/com/uday/springcrudopr/service/EmployeeService.java | UTF-8 | 2,422 | 2.359375 | 2 | [] | no_license | package com.uday.springcrudopr.service;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.... | true |
247772cede2092e589a68b1dc6eedbe62539f081 | Java | guismarjua/universidad | /sistema.hairsoft/src/cl/valposystems/sgi/mbean/DescargaActividadMBean.java | ISO-8859-1 | 30,318 | 1.796875 | 2 | [] | no_license | package cl.valposystems.sgi.mbean;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.Serializable;
import java.net.MalformedURLException;
import java.text.DateFormat;
import java... | true |
cb2420bc83e5a53566ffa35898f7362f76f9e27c | Java | hanna-baronina/algorithms | /src/main/java/algorithms/AllSubArraysWithNaming.java | UTF-8 | 811 | 3.328125 | 3 | [] | no_license | package algorithms;
import java.util.Arrays;
public class AllSubArraysWithNaming {
public static void main (String [] args){
int[] array = {1, 2, 3, 4};
for (int subArrayLength = 1; subArrayLength <= array.length; subArrayLength++) {
for (int firstElementOfSubArray = 0; firstElementOf... | true |
e0b87ea6e65b55ae4eeced4034de25bc0921a70d | Java | uplus-algorithm/UplusWithLeetCode | /bakibaki/LeetCode1769/Solution.java | UTF-8 | 397 | 2.671875 | 3 | [] | no_license | class Solution {
public int[] minOperations(String boxes) {
int[] result = new int[boxes.length()];
for(int i =0; i < boxes.length(); i++){
if(boxes.charAt(i) == '1') {
for(int j = 0; j < boxes.length(); j++){
result[j] += Math.abs(i-j);
... | true |
7efd693425e968360b9d969871f82e235749067d | Java | penger/scheduler | /src/test/java/com/demo/_3curatorapi/_71CheckExists.java | UTF-8 | 947 | 2.71875 | 3 | [] | no_license | package com.demo._3curatorapi;
import org.apache.curator.RetryPolicy;
import org.apache.curator.framework.CuratorFramework;
import org.apache.curator.framework.CuratorFrameworkFactory;
import org.apache.curator.retry.RetryUntilElapsed;
import org.apache.zookeeper.data.Stat;
/**
* 判断节点是否存在
*
* @author je... | true |
9d14b72a7692c0f2cb97d3903cf5a71b86e9a00f | Java | oil-compagny/mayamen | /PI-ejb/src/main/java/Entities/Maintenance.java | UTF-8 | 2,015 | 2.609375 | 3 | [] | no_license | package Entities;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinCol... | true |
6294b9f6f9fcdb30d4e2e42527df555862d8b75a | Java | PublicStage/schulte | /core/test/com/bear/brain/logic/TestApp.java | UTF-8 | 6,157 | 2.140625 | 2 | [] | no_license | package com.bear.brain.logic;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Graphics;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.scenes.scene2d.Stage;
import com.badlogic.gdx.utils.viewport.ScreenViewport;
import com.bear.brain.Brain;
import com.bear.brain.Save;
import com.bear.br... | true |
5ca65e65bd72213a0b1ecc9fe1c1dd098b16d86a | Java | vgalloy/server | /src/main/java/com/vgalloy/server/model/entity/User.java | UTF-8 | 2,615 | 2.484375 | 2 | [] | no_license | package com.vgalloy.server.model.entity;
import java.util.Objects;
import javax.persistence.Transient;
import org.mongojack.Id;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.vgalloy.server.aspect.security.SecurityLevel;
import com.vgalloy.server.model.Referable;
/**
* @author Vincent... | true |
f0b34187de6ff4623bcae5d366ab46f53089fe91 | Java | mrc1612/IntroducaoProgramacao_2021_1 | /Alerson Viebrantz/Exercícios Unidade 3/Uni3Exe13.java | UTF-8 | 641 | 3.421875 | 3 | [] | no_license | import java.util.Scanner;
public class Uni3Exe13 {
public static void main(String[] args) throws Exception {
Scanner teclado = new Scanner(System.in);
double alt, comp, totalm2, totalcomazul;
System.out.println("Informe a altura da parede:");
alt = teclado.nextDouble();
... | true |
3ac2120a930dcbdb039dd832844ff93230f8a222 | Java | clari62/tpDisenoSistemasGrupo2C | /src/Clases/Provincia.java | UTF-8 | 153 | 1.734375 | 2 | [] | no_license | package Clases;
import java.util.List;
public class Provincia {
private String nombre;
private Integer id_provincia;
List<Localidad> localidades;
}
| true |
dbbed71ea1d787adbcc2a1ce9ebf425096e10ad9 | Java | letthewookieewin/mysql_perf_analyzer | /myperf/src/main/java/com/yahoo/dba/perf/myperf/springmvc/HelpController.java | UTF-8 | 782 | 1.859375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2015, Yahoo Inc.
* Copyrights licensed under the Apache License.
* See the accompanying LICENSE file for terms.
*/
package com.yahoo.dba.perf.myperf.springmvc;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.servl... | true |
2dc3903811196332872fa6fa02014441faad6c73 | Java | yangjinhuai/ResourcesLib | /src/main/java/com/fengyukeji/resourceslib/service/AdminSetingService.java | UTF-8 | 1,535 | 2.125 | 2 | [] | no_license | package com.fengyukeji.resourceslib.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.fengyukeji.resourceslib.bean.AdminSet;
import com.fengyukeji.resourceslib.bean.AdminSetExample;
import com.fengyukeji.resourceslib.dao.AdminSetMa... | true |
85ecb9025cf37d74ab7dd3353bf76b610094b6a4 | Java | HarryLi1/DesignPatternCollections | /src/test/java/pers/hai/sample/dp/FactoryMethodTest.java | UTF-8 | 700 | 2.5625 | 3 | [] | no_license | package pers.hai.sample.dp;
import pers.hai.sample.dp.factory.method.framework.Factory;
import pers.hai.sample.dp.factory.method.framework.Product;
import pers.hai.sample.dp.factory.method.idcard.IDCardFactory;
import org.junit.Test;
import java.util.List;
public class FactoryMethodTest {
@Test
public void ... | true |
b83436e72d7e0ca287a925d2efc798484812cbb8 | Java | evencity/oddm | /oddm-web/src/main/java/com/apical/oddm/web/controller/manufacture/ManufactureController.java | UTF-8 | 7,910 | 1.945313 | 2 | [] | no_license | package com.apical.oddm.web.controller.manufacture;
import javax.servlet.http.HttpServletRequest;
import org.hibernate.service.spi.ServiceException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Con... | true |
36acac20b715f699bec8a63a49df059a47c8a19e | Java | tanguozhi/demo-server | /src/com/demo/server/push/web/vo/PushActionModel.java | UTF-8 | 286 | 1.75 | 2 | [] | no_license | /**
* @author tanguozhi
*/
package com.demo.server.push.web.vo;
public class PushActionModel {
private String submitFlag;
public String getSubmitFlag() {
return submitFlag;
}
public void setSubmitFlag(String submitFlag) {
this.submitFlag = submitFlag;
}
}
| true |
5d951ee19874e9b49bf6b30fffa039905130caa2 | Java | amitSA/ParticleSystem | /src/MouseInteraction.java | UTF-8 | 1,715 | 3.03125 | 3 | [] | no_license | import java.awt.Color;
import java.awt.event.*;
import java.util.*;
import javax.swing.SwingUtilities;
import javax.swing.event.*;
public class MouseInteraction implements MouseInputListener
{
private World world;
public MouseInteraction(World world)
{
this.world = world;
}
@Override
public void mouseC... | true |
9da2dfb40c22c97f32d868cc269ee5dcda0a64aa | Java | matthiassommer/forecast-r-java | /src/forecasting/normalisation/MinMax.java | UTF-8 | 2,372 | 3.546875 | 4 | [
"MIT"
] | permissive | package forecasting.normalisation;
import org.jetbrains.annotations.NotNull;
/**
* Normalises a time series to the value range normalizedLow to normalizedHigh.
*/
public class MinMax implements NormalisationInterface {
private double actualLow;
private double actualHigh;
private double normalizedHigh = ... | true |
a76411bbb65c235ea21221ab15ab0461a442340a | Java | grj001/zy_video | /src/com/zhiyou100/zy_video/service/impl/AdminSubjectServiceImpl.java | UTF-8 | 571 | 1.898438 | 2 | [] | no_license | package com.zhiyou100.zy_video.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zhiyou100.zy_video.mapper.SubjectMapper;
import com.zhiyou100.zy_video.model.Subject;
import com.zhiyou100.zy_video.ser... | true |
173ddaf265a8cce0a5ae27c2d65659351dec253b | Java | pablolfbs/java2 | /Exercicios4/src/model/dao/AlunoDao.java | UTF-8 | 2,606 | 3.015625 | 3 | [] | no_license | package model.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import model.Aluno;
public class AlunoDao {
public Connection connection;
public AlunoDao() {
this.connection = new ConnectionFactory().getConnec... | true |
370960e409e3fd27780204f130386c9f28d2bfa1 | Java | gavinpollitt/di | /src/main/java/uk/gav/nondi3/BasicDiceFactory.java | UTF-8 | 671 | 3.171875 | 3 | [] | no_license | package uk.gav.nondi3;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.IntStream;
import uk.gav.nondi3.interfaces.DiceFactory;
import uk.gav.nondi3.interfaces.Die;
public class BasicDiceFactory implements DiceFactory {
protected final int sides;
protected final int dice;
public Ba... | true |
3cf7504721343a5e7e092108069598e8656314c5 | Java | shyaankhan/High-School-Code | /Opening Exercise/Student.java | MacCentralEurope | 2,395 | 3.53125 | 4 | [] | no_license | //-------------------------------------------------------------
// Author: Shyaan Khan Period: 4 Date:
// Description:
//-----------------------------------------------------------/
// ****************************************************************
// Student.java
//
// Define a student class that stor... | true |
9b8040bd091e32d5ca663a56d209ce65396e7552 | Java | arun-ammasai/java_random_concepts | /random-java-concepts/src/com/bytecodevelocity/reflection/DynamicMethodCall.java | UTF-8 | 478 | 3.265625 | 3 | [] | no_license | package com.bytecodevelocity.reflection;
import java.lang.reflect.Method;
public class DynamicMethodCall {
public static void main(String[] args) throws Exception {
// Class , Method , Obj , Invoke
Class<?> mClass = Class.forName("com.bytecodevelocity.reflection.CallMe");
Method method = mClass.getMethod("welc... | true |
69ce5e6a6466df06616620fb2c04c761fcd6f148 | Java | AlazarLemma/EmailNotifyerMicroService | /src/main/java/com/example/mongopersistance/domain/EmailStatus.java | UTF-8 | 93 | 1.523438 | 2 | [] | no_license | package com.example.mongopersistance.domain;
public enum EmailStatus {
SENT, FAILED
}
| true |
45f8a7d41f16ffb1a9fe5895c8c6b7fd350aa655 | Java | santiceron023/medica-app-backEnd | /src/main/java/com/medicaApp/controller/ConsultaController.java | UTF-8 | 4,450 | 2.09375 | 2 | [] | no_license | package com.medicaapp.controller;
import static org.springframework.hateoas.mvc.ControllerLinkBuilder.linkTo;
import static org.springframework.hateoas.mvc.ControllerLinkBuilder.methodOn;
import java.net.URI;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autow... | true |
c7ef799124ed93701d07d73b5b83467b6c9c0384 | Java | mariannuar/gleaming-android | /app/src/main/java/com/example/gleaming/AllFragment.java | UTF-8 | 3,472 | 2.140625 | 2 | [] | no_license | package com.example.gleaming;
import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.AppCompatImageView;
import androidx.fragment.app.Fr... | true |
e96bcff01c969fcabcbb1cdb64edc5ea9051ca1b | Java | Eclair-F/cloud-blog | /consumer-external/src/main/java/com/qw/consumerexternal/config/CorsConfig.java | UTF-8 | 975 | 2.046875 | 2 | [] | no_license | //package com.qw.consumerexternal.config;
//
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.CorsRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//
///**
// * @Program: cloud-blog
// * @ClassName CorsConfig
... | true |
0908773fc72476f8f7b59984d039039e2753c286 | Java | LucasMW/INF1416-T3 | /src/model/Password.java | UTF-8 | 2,335 | 3.1875 | 3 | [] | no_license | package model;
import java.util.*;
import java.math.*;
import java.security.*;
import javax.xml.bind.DatatypeConverter;
public class Password extends SecureRandom {
static final long serialVersionUID = 0;
static final String SET = "0123456789";
static final int LEN = SET.length();
private byte[] md5;
privat... | true |
fc8af4f888432e60f7b9f3660db15cf048c046c3 | Java | ZZchenhan/etc_wallet | /app/src/main/java/sz/tianhe/etc_wallet/guide/presenter/RegisterPresenter.java | UTF-8 | 1,259 | 2.0625 | 2 | [] | no_license | package sz.tianhe.etc_wallet.guide.presenter;
import android.content.Context;
import android.widget.Button;
import android.widget.EditText;
import sz.tianhe.baselib.http.IResultListener;
import sz.tianhe.baselib.presenter.AbstarctPresenter;
import sz.tianhe.baselib.utils.PhoneUtils;
import sz.tianhe.etc_wallet.MyAppl... | true |
e436e3ed210eff31511aae20b1e02aa5176cd5b4 | Java | chenluxing/agentmanage | /src/main/java/com/agentmanage/plugin/excel/CellBaseDefined.java | UTF-8 | 2,052 | 2.546875 | 3 | [] | no_license | package com.agentmanage.plugin.excel;
import org.apache.commons.lang3.StringUtils;
/**
* on 2016/9/13.
*/
public class CellBaseDefined {
// 列序号
protected int columnIndex;
// 分组名称
protected String groupName;
// 表头名
protected String headName;
// 属性名
protected String propName;
// 是... | true |
432af90fd1c12e1a5d6c7bc7b000d43d5ddeb9f3 | Java | mayank717s/WMS | /src/warehousemanagementsystem/Product.java | UTF-8 | 22,899 | 2.21875 | 2 | [] | no_license |
package warehousemanagementsystem;
import java.awt.Color;
import java.sql.*;
import javax.swing.*;
import javax.swing.table.DefaultTableCellRenderer;
import javax.swing.table.DefaultTableModel;
import net.proteanit.sql.DbUtils;
public class Product extends javax.swing.JFrame {
public Product() {
initC... | true |
b51606233f880f1ae64424cd2d911be36ff11300 | Java | alepenaa94/TP_Algoritmos3-Algomon | /modelo/Partida/Partida.java | UTF-8 | 5,577 | 2.890625 | 3 | [] | no_license | package Partida;
import algomon.*;
import ataque.Ataque;
import ataque.ErrorAtaqueDesconocido;
import ataque.ErrorCantidadAtaque;
import elemento.Elemento;
import jugador.ErrorCambioAlgomonEsActivo;
import jugador.Jugador;
import java.util.ArrayList;
import java.util.Iterator;
/**
* Created by Rodrigo on 16-Nov-16.... | true |
4e2b7cad23b76afcaaaa713e7f7dcaa4ed50bced | Java | SoPra-FS20-Group10/server | /src/main/java/ch/uzh/ifi/seal/soprafs20/controller/GameController.java | UTF-8 | 15,039 | 2.59375 | 3 | [
"Apache-2.0"
] | permissive | package ch.uzh.ifi.seal.soprafs20.controller;
import ch.uzh.ifi.seal.soprafs20.constant.GameStatus;
import ch.uzh.ifi.seal.soprafs20.entity.*;
import ch.uzh.ifi.seal.soprafs20.exceptions.ConflictException;
import ch.uzh.ifi.seal.soprafs20.exceptions.NotFoundException;
import ch.uzh.ifi.seal.soprafs20.exceptions.Unauth... | true |
9bae784859508c08ae76dad46b6d3b87c8cc3695 | Java | Akshayms502/Training | /src/factorypatternDay3/Maruthi.java | UTF-8 | 199 | 2.84375 | 3 | [] | no_license | package factorypatternDay3;
public class Maruthi extends Car{
public Maruthi(){
System.out.println("maruthi created");
}
public void drive(){
System.out.println("maruthi driving");
}
}
| true |
3ab91ee79fdd8ff92c0482ad1b2a846fc3773fed | Java | chunxinhou/thread | /src/com/thread/CountDownLatch/CountDownLatchDemo.java | UTF-8 | 792 | 2.953125 | 3 | [] | no_license | package com.thread.CountDownLatch;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.concurrent.CountDownLatch;
/**
* Created by hcx on 2017/10/13.
*
*/
public class CountDownLatchDemo {
public static void main(String[] args) {
//栅栏对象
SimpleDateFormat format = new Simp... | true |
9f9ce814a397b749a55653ab86e7ff3c371a1202 | Java | heshengyx/common | /src/main/java/com/myself/common/utils/UIDGeneratorUtil.java | UTF-8 | 1,281 | 2.65625 | 3 | [] | no_license | package com.myself.common.utils;
public class UIDGeneratorUtil {
private static long lastTime = System.currentTimeMillis(); //��ǰϵͳʱ��
private static short lastCount = -32768;
private static Object mutex = new Object();
private static long ONE_SECOND = 1000L;
public UIDGeneratorUtil() {
}
public st... | true |
325ae41f18a264ad4be42d6963d23f3d395e6732 | Java | simosaif/FlotAuto | /src/net/sas/model/enums/MeasureUnit.java | UTF-8 | 319 | 2.5625 | 3 | [] | no_license | package net.sas.model.enums;
public enum MeasureUnit {
HOUR("Heure"),
DAY("Jour"),
WEEK("Semaine"),
MONTH("Mois"),
KILOMETER("Km"),
LITER("Litre"),
KM_H("Km/h");
private String status;
private MeasureUnit(String status){
this.status = status;
}
public String getStatus() {
return status;
}
}
| true |
2fe17a37df5723a61ad844a42532c02cb744dac5 | Java | eMainTec-DREAM/DREAM | /JavaSource/dream/part/list/dao/sqlImpl/MaPtMstrListDAOSqlImpl.java | UHC | 17,798 | 1.59375 | 2 | [] | no_license | package dream.part.list.dao.sqlImpl;
import java.util.List;
import common.bean.User;
import common.spring.BaseJdbcDaoSupportSql;
import common.util.DateUtil;
import common.util.QueryBuffer;
import common.util.QuerySqlBuffer;
import dream.part.list.dao.MaPtMstrListDAO;
import dream.part.list.dto.MaPtMstrComm... | true |
c13a6f7a220700df5b8f739029e567ee343d1a12 | Java | da1huan/dh-job | /xxl-job-executor-samples/xxl-job-executor-sample-spring/src/main/java/com/xxl/job/executor/service/jobhandler/URLJobHandler.java | UTF-8 | 1,663 | 2.515625 | 3 | [
"Apache-2.0"
] | permissive | package com.xxl.job.executor.service.jobhandler;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.JobHander;
import com.xxl.job.core.log.XxlJobLogger;
import org.springframework.stereotype.Component;
import java.util.concurrent.TimeUnit... | true |
b69148582ba90143b9944dcfb695b4f88d509c7a | Java | caramelool/SpiderMan | /app/src/main/java/br/com/spiderman/presenter/ComicDetailPresenterImpl.java | UTF-8 | 688 | 2.421875 | 2 | [] | no_license | package br.com.spiderman.presenter;
import android.content.Intent;
import br.com.spiderman.domain.model.Comic;
/**
* Created by Caramelo on 03/03/2016.
*/
public class ComicDetailPresenterImpl
implements ComicDetailPresenter {
ComicDetailPresenter.View view;
private Comic mComic;
public ComicDeta... | true |
5355bf0020693854bf8cbcd3d597ffc604e5dc7d | Java | dennisvoliver/minecraft | /net/minecraft/command/argument/BrigadierArgumentTypes.java | UTF-8 | 1,975 | 2.359375 | 2 | [] | no_license | package net.minecraft.command.argument;
import com.mojang.brigadier.arguments.BoolArgumentType;
import com.mojang.brigadier.arguments.DoubleArgumentType;
import com.mojang.brigadier.arguments.FloatArgumentType;
import com.mojang.brigadier.arguments.IntegerArgumentType;
import com.mojang.brigadier.arguments.LongArgumen... | true |
19e0727d2dfa608dfc5d9407cd8a0d4e3d0c84f5 | Java | todoriva1/RestAssured_B20 | /Self_Practices/src/Practice_fromLoop/vezba.java | UTF-8 | 616 | 3.515625 | 4 | [] | no_license | package Practice_fromLoop;
//print odd numbers between 1 to 50, koristiti continue statement
public class vezba {
public static void main(String[] args) {
for( int i = 1; i<=50; i++){
if(i%2 ==0){
continue;
}
System.out.print(i+" ");
}
Sys... | true |
2ca73a5c0dc4c344e2fde555ba5e2cadbfd294ef | Java | chen511797015/MyCashier | /paxPluginDemo/src/main/java/com/pax/d820/adapter/AdapterPop.java | UTF-8 | 1,103 | 2.1875 | 2 | [] | no_license | package com.pax.d820.adapter;
import java.util.List;
import com.pax.d820.R;
import com.pax.d820.model.ModelType;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
public class ... | true |
e9cb9ed77e99c3d1de620990d8c3c3596064c95c | Java | cmv-teknoloji/ecommerce-poc | /ecommerce-ui/src/main/java/com/cmv/technology/ecommerce/ui/exceptions/IErrorCode.java | UTF-8 | 141 | 1.671875 | 2 | [] | no_license | package com.cmv.technology.ecommerce.ui.exceptions;
public interface IErrorCode {
final static String REST_CALL_ERROR_CODE = "1000";
}
| true |
eb5e497727ddeb2aabedc20b2d1e3869bae0a85d | Java | Jingyingfei/GiftsSayingApp | /app/src/main/java/com/example/dllo/giftssayingapp/me/MeMainFragment.java | UTF-8 | 1,119 | 2.0625 | 2 | [] | no_license | package com.example.dllo.giftssayingapp.me;
import android.content.Intent;
import android.view.View;
import android.widget.ImageView;
import com.example.dllo.giftssayingapp.R;
import com.example.dllo.giftssayingapp.base.BaseFragment;
/**
* Created by dllo on 16/9/19.
*/
public class MeMainFragment extends BaseFrag... | true |
b08254b65e32122fbca9fe4f505949a3eb11c4f6 | Java | SSingh1992/BigData | /MapReduce/src/top20RatedMovieName/Top20RatedMovieNameReducer.java | UTF-8 | 1,130 | 2.25 | 2 | [] | no_license | package top20RatedMovieName;
import java.io.BufferedReader;
import java.io.IOException;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;
import org.apache.hadoop.mapreduce.filecache.DistributedCache;
public class T... | true |
9a01da2b3f2935c6b2d0f9027163357c6433d3ae | Java | zhongxingyu/Seer | /Diff-Raw-Data/23/23_2595981d158b86e1b3fdda35a0e2494c9e9740bb/HandlerListener/23_2595981d158b86e1b3fdda35a0e2494c9e9740bb_HandlerListener_t.java | UTF-8 | 8,963 | 2.0625 | 2 | [] | no_license | /*
* Copyright 2012 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required b... | true |
9d462885102d5657f83d7d683d1d891dc36ecf73 | Java | imbkj/BMSbate | /src/Controller/EmZYT/EmZYT_FeedbackFileController.java | UTF-8 | 1,788 | 2.203125 | 2 | [] | no_license | package Controller.EmZYT;
import java.util.List;
import org.zkoss.bind.annotation.BindingParam;
import org.zkoss.bind.annotation.Command;
import org.zkoss.bind.annotation.NotifyChange;
import org.zkoss.zul.Messagebox;
import Model.EmZYTFeedbackFileModel;
import Util.FileOperate;
import bll.EmZYT.EmZYT... | true |