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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
35606629ff28e04941843ae802379e69d7e560dd | Java | gozdekurtulmus/chainStoreApp_OOP_1 | /src/chainStoreApp/AnnualSale.java | UTF-8 | 693 | 2.671875 | 3 | [] | no_license | package chainStoreApp;
public class AnnualSale {
private ItemTransaction[] itemTransaction;
public AnnualSale(String givenFile) {
itemTransaction = new ItemTransaction[32];
fillItemTransaction(givenFile);
}
private void fillItemTransaction(String givenFile) {
FileIO read = new FileIO();
St... | true |
81ec9c9d1d5fad82d7ecdd1fc6fde8d2d96231e1 | Java | cwan/mikaboshi-jdbc-monitor | /mikaboshi-jdbc-monitor-project/src/main/java/net/mikaboshi/jdbc/monitor/log/aspect/StatementLogger.java | UTF-8 | 9,365 | 2.234375 | 2 | [
"Apache-2.0"
] | permissive | package net.mikaboshi.jdbc.monitor.log.aspect;
import java.sql.PreparedStatement;
import net.mikaboshi.jdbc.monitor.LogEntry;
import net.mikaboshi.jdbc.monitor.LogMode;
import net.mikaboshi.jdbc.monitor.LogModeMBean;
import net.mikaboshi.jdbc.monitor.LogType;
import net.mikaboshi.jdbc.monitor.LogWriter;
impo... | true |
1c4b48a90ec654bff9e63a33bdfcfb4293222c50 | Java | ronaldodornelles/gitflow | /source/src/br/gov/iphan/sisgep/webservices/test/ConsultaSIAPEWSTest.java | UTF-8 | 1,266 | 1.929688 | 2 | [] | no_license | package br.gov.iphan.sisgep.webservices.test;
import java.util.List;
import org.junit.Test;
import br.gov.iphan.sisgep.webservices.ConsultaSIAPEWS;
import br.gov.iphan.sisgep.webservices.vo.ParametrosEntradaSIAPE;
import br.gov.iphan.sisgep.ws.DadosPessoais;
import br.gov.iphan.sisgep.ws.Uorg;
public cla... | true |
9ff40223e8b899c63285205cc588f1e850189142 | Java | AmirGeorge/Micro | /src/eg/edu/guc/micro/ROBentry.java | UTF-8 | 339 | 1.632813 | 2 | [] | no_license | package eg.edu.guc.micro;
public class ROBentry {
String dest;
short value;
boolean ready;
String type;
int instructionIndex;
boolean free;
boolean tailWa2f3alya;
int khalstExecute;
int index;
public ROBentry() {
free = true;
dest = "";
ready = false;
type = "";
instructionIndex = -1;
tailWa2f3... | true |
060ec36340a1f85f6e52ebd8b5ffe701debef27d | Java | Face-Sora/zzcl | /src/main/java/com/xinxi/controller/ApplyController.java | UTF-8 | 3,287 | 2 | 2 | [] | no_license | package com.xinxi.controller;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xinxi.entity.Apply;
import com.xinxi.entity.User;
import com.xinxi.service.IApplyService;
import com.xinxi.service.IUserService;
import org.ap... | true |
f31efd6a6103907d920e79ef6e23140bf3ae8422 | Java | rapopa/SimpleCacheSystem | /src/main/java/search/pojo/CacheableObject.java | UTF-8 | 859 | 2.828125 | 3 | [] | no_license | package search.pojo;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
/**
* Created by razvan.popa on 27-Dec-17.
* @param <T> the object that is cached
*/
public class CacheableObject<T> {
private LocalDateTime lastSearchDate = LocalDateTime.now()... | true |
a12930aa4ac0cc4cde05acedf787d6f8e0d489c8 | Java | ahellerjones/AdventureGame2.0 | /LocalMapTest.java | UTF-8 | 5,395 | 2.9375 | 3 | [] | no_license | package adventuregame;
import java.util.ArrayList;
import student.TestCase;
public class LocalMapTest extends TestCase {
ArrayList<MapObject> mapList;
ArrayList<MapObject> mapListUP;
LocalMap map;
LocalMap mapUP;
LocalMap mapRIGHT;
LocalMap mapDOWN;
LocalMap mapLEFT;
String mapKey;
... | true |
3c987a4e70e075da0d324044d34a65de365a296b | Java | apandey3/omnipics | /src/main/java/org/amanda/api/AlbumResource.java | UTF-8 | 597 | 2.3125 | 2 | [
"MIT"
] | permissive | package org.amanda.api;
import org.amanda.Album;
import javax.ws.rs.Consumes;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import java.util.ArrayList;
import java.util.List;
/**
* @author Arti Sharma <arti.sharma@gmail.com>
*/
@Path("/v1/albums")
@Consumes(MediaType.APPL... | true |
4b43b8fe78729e224f8cce1675bca871f6e2e6f2 | Java | KanglaDevelopers/AppModule1 | /app/src/main/java/com/kangladevelopers/appmodule1/fragment/HomeFragment.java | UTF-8 | 2,707 | 2.375 | 2 | [] | no_license | package com.kangladevelopers.appmodule1.fragment;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.widget.SlidingPaneLayout;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.LayoutInflater;
import android.view.View... | true |
f2cbd05aff9a9f6859c0ccb461beb9ba190ef9d7 | Java | phantomkk/dentalclinic_staff | /app/src/main/java/com/dentalclinic/capstone/admin/custom/DentistAxisValueFormatter.java | UTF-8 | 549 | 2.484375 | 2 | [] | no_license | package com.dentalclinic.capstone.admin.custom;
import com.github.mikephil.charting.components.AxisBase;
import com.github.mikephil.charting.formatter.IAxisValueFormatter;
import java.util.List;
public class DentistAxisValueFormatter implements IAxisValueFormatter {
private List<String> names;
public Denti... | true |
3e5f972adf639efa5bd878b7e237f7e6b092a85a | Java | h-asmat/OrangeHelp | /app/src/main/java/missionhack/oranges/orangehelp/DisplayAlertActivity.java | UTF-8 | 2,024 | 2.265625 | 2 | [] | no_license | package missionhack.oranges.orangehelp;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
public class DisplayAlertActivity extends AppCompat... | true |
7a37e45f4b79f48a9c48ad811c96bb7f5f70929e | Java | leuamrojas/GeoMusic | /app/src/main/java/com/manuelrojas/geomusic/data/repository/datasource/ArtistDataStore.java | UTF-8 | 459 | 2.015625 | 2 | [] | no_license | package com.manuelrojas.geomusic.data.repository.datasource;
import com.manuelrojas.geomusic.data.entity.ArtistEntity;
import java.util.List;
import io.reactivex.Completable;
import io.reactivex.Observable;
public interface ArtistDataStore {
Observable<List<ArtistEntity>> findAll();
Observable<ArtistEntit... | true |
d497e620c9b6c20ea21d7f756a78ddf6b19236de | Java | gmmapowell/QuickBuild | /QuickBuild/src/main/java/com/gmmapowell/quickbuild/build/android/AndroidNature.java | UTF-8 | 1,351 | 1.96875 | 2 | [] | no_license | package com.gmmapowell.quickbuild.build.android;
import org.zinutils.exceptions.UtilException;
import com.gmmapowell.quickbuild.config.Config;
import com.gmmapowell.quickbuild.config.ConfigFactory;
import com.gmmapowell.quickbuild.core.BuildResource;
import com.gmmapowell.quickbuild.core.Nature;
public class AndroidN... | true |
d2619f3bb95557a51f085f5f6b6a6ade46cd5e62 | Java | MrX456/Cars_Registry_System | /Car Registry System/src/com/CRS/Application/FrmLogin.java | UTF-8 | 10,166 | 2.421875 | 2 | [] | no_license | /*
* This JFrame is a login form, where user must to validate his credentials
* before open the application
*/
package com.CRS.Application;
import com.CRS.Controller.UserBusinessLogic;
import com.CRS.Utils.CoolStuff;
/*
* Car Registry System / Application / Login Screen
* @author MRX
* Version : 1.0.0
*/
publ... | true |
998230afa80a768eeed071a84d7e2460d5a21507 | Java | LynLin0/Lyn | /src/lyn/android/media/TestPlayerPauseActivity.java | UTF-8 | 2,638 | 2.265625 | 2 | [] | no_license | package lyn.android.media;
import java.io.IOException;
import lyn.android.R;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.media.AudioManager;
import android.media.MediaPlayer;
import android.media.MediaPlayer.OnPreparedListener;
import android.net.rtp.AudioStream;
import android... | true |
a4d107d5104af6304309d92772fdc734af23fee3 | Java | SecuritySistem/mingle | /app/src/main/java/com/provenlogic/mingle/Adapters/InterestListAdapter.java | UTF-8 | 2,763 | 2.296875 | 2 | [] | no_license | package com.provenlogic.mingle.Adapters;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.provenlogic.mingle.Models.... | true |
51b687d80ff80879f5abd239a8cbc54ec8bafad1 | Java | NineWorlds/serenity-android | /serenity-app/src/main/java/us/nineworlds/serenity/events/users/AuthenticatedUserEvent.java | UTF-8 | 349 | 2 | 2 | [
"MIT",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package us.nineworlds.serenity.events.users;
import us.nineworlds.serenity.common.rest.SerenityUser;
public class AuthenticatedUserEvent {
private SerenityUser serenityUser;
public AuthenticatedUserEvent(SerenityUser serenityUser) {
this.serenityUser = serenityUser;
}
public SerenityUser getUser() {
... | true |
8f98ca2b52dc75c0f86093ea68d82850792b50ba | Java | wxjack/qxiao-mp | /src/main/java/com/qxiao/wx/user/jpa/dao/QmPlaySchoolInfoDao.java | UTF-8 | 2,803 | 1.867188 | 2 | [] | no_license | package com.qxiao.wx.user.jpa.dao;
import java.util.List;
import org.springframework.data.jpa.repository.Query;
import com.qxiao.wx.user.jpa.entity.QmPlaySchoolInfo;
import com.spring.jpa.dao.JPADao;
public interface QmPlaySchoolInfoDao extends JPADao<QmPlaySchoolInfo>{
QmPlaySchoolInfo findByTel(Strin... | true |
8718a183534462c6ace6f2436e7a732ac085cf9d | Java | das-fbk/ChatBotExample | /src/main/java/utils/BlaBlaCarAPIWrapper.java | UTF-8 | 3,166 | 2.515625 | 3 | [] | no_license | package utils;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;
import java.net.URLConnection;
import java.nio.charset.Charset;
import java.text.DecimalFormat;
import java.util.ArrayList;
import org.json.JSONArray;
import org.json.JSONObject;
import java.util.Random;
public class... | true |
f67d02e1820711dd2dc82b0e89f3fc03de38641e | Java | iShymmi/Console-Weather-App | /src/main/java/com/shymmi/weatherApp/model/Forecast.java | UTF-8 | 954 | 3.03125 | 3 | [] | no_license | package com.shymmi.weatherApp.model;
import lombok.Getter;
import static java.util.Arrays.stream;
@Getter
public class Forecast {
private ForecastDay[] forecastday;
@Override
public String toString() {
return getForecastInfo(false);
}
public String toString(boolean imperial) {
i... | true |
989e8577b87d72186ea83149450149d2044436c7 | Java | way2rock00/RMSRetailApplication | /ApplicationController/src/com/deloitte/rmsapp/application/NativePushNotificationListener.java | UTF-8 | 3,156 | 2.546875 | 3 | [] | no_license | package com.deloitte.rmsapp.application;
import java.util.HashMap;
import javax.el.ValueExpression;
import oracle.adfmf.framework.api.AdfmfJavaUtilities;
import oracle.adfmf.framework.api.JSONBeanSerializationHelper;
import oracle.adfmf.framework.event.Event;
import oracle.adfmf.framework.event.EventListene... | true |
4680be5fa4be120ed5f79c337cc5a8df9df7fcfb | Java | raviranjan1996/Java14 | /CollectionsArrayList/src/application/ComparableExample.java | UTF-8 | 1,329 | 3.28125 | 3 | [
"MIT"
] | permissive | package application;
import java.util.ArrayList;
import java.util.Collections;
class PersonCompare implements Comparable<PersonCompare> {
private String name;
private Integer id;
private Integer number;
public PersonCompare(String name , int id , int number) {
this.name = name;
this.id = ... | true |
d7cdf7d924a4e3cdcf8fd7019e53d4ad9066c256 | Java | marlontaro/Nanamia | /AppApoderado/app/src/main/java/pe/edu/upc/appapoderado/models/Solicitud.java | UTF-8 | 2,035 | 2.203125 | 2 | [] | no_license | package pe.edu.upc.appapoderado.models;
/**
* Created by Marlon Cordova on 3/05/2017.
*/
public class Solicitud {
private int tipoContrato;
private boolean PrimerosAuxilio ;
private boolean CuidadoEspecial;
private double SueldoMinimo ;
private double SueldoMaximo ;
private String Direccion ... | true |
1bf096e540b1cea786f757843e39c1955201644c | Java | brisskit-uol/onyx-core-1.8.1-appts-list-fix | /src/main/java/org/obiba/onyx/core/purge/PurgeParticipantDataTasklet.java | UTF-8 | 3,092 | 1.984375 | 2 | [] | no_license | /*******************************************************************************
* Copyright 2008(c) The OBiBa Consortium. All rights reserved.
*
* This program and the accompanying materials
* are made available under the terms of the GNU Public License v3.0.
*
* You should have received a copy of the GNU Gene... | true |
e26a1809c4b9db5f1f17704d0f09ec2fd47f340f | Java | Meijo-RJIE-Prog4/Exercises | /4/Exercise0402.java | UTF-8 | 217 | 1.945313 | 2 | [] | no_license | public class Exercise0402 {
public static void main(String[] args) {
// 勇者を生成
// 勇者を逃がす
// スーパー勇者を生成
// スーパー勇者を逃がす
}
}
| true |
a4e898065b88c6449654cf1afeb727d28053bcb8 | Java | ifunsoftware/4store-java-client | /src/main/java/uk/co/magus/fourstore/client/EncodedStringWriter.java | UTF-8 | 792 | 2.890625 | 3 | [] | no_license | package uk.co.magus.fourstore.client;
import java.io.IOException;
import java.io.OutputStream;
import java.io.Writer;
import java.net.URLEncoder;
import java.util.Arrays;
public class EncodedStringWriter extends Writer {
private final OutputStream os;
public EncodedStringWriter(OutputStream os) {
th... | true |
8b19ce0213fd5bbab25bac2d6ad8f02e9550e4ed | Java | ScratchMyTail/SpringHibernatePersonAnimalWebApp | /src/main/java/no/hinesna/PersonDao.java | UTF-8 | 297 | 1.90625 | 2 | [] | no_license | package no.hinesna;
import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
public interface PersonDao {
public void savePerson(Person person);
public List<Person> getAll();
public void saveHusdyr(Husdyr husdyr);
public Person getPerson(int id);
}
| true |
c4cb7429777a407f03252150d1d3ab392f0d20df | Java | BiswajitSahu007/TY_CG_HTD_BangaloreNovember_JFS_BiswajitSahu | /CoreJava/typecasting/pack2/Dog.java | UTF-8 | 194 | 2.890625 | 3 | [] | no_license | package com.tyss.typecasting.pack2;
public class Dog extends Animal {
void eating() {
System.out.println("Dog is eating");
}
void walking() {
System.out.println("Dog is walking");
}
}
| true |
824640987b2f7859d53c5dd2f4605cd1094e448c | Java | NFC3/customer-review-exercise | /CustomerReview_Exercise/customerreviewserver.jar.src/de/hybris/platform/customerreview/exception/CurseWordsFoundException.java | UTF-8 | 266 | 1.859375 | 2 | [] | no_license | package de.hybris.platform.customerreview.exception;
public class CurseWordsFoundException extends Exception {
private static final long serialVersionUID = -4115212430246439148L;
public CurseWordsFoundException(String message) {
super(message);
}
} | true |
eb1a897d706929ba00681a8c6de1b2a6c7997f56 | Java | leilei1144/customized-framework | /customized-common/src/main/java/com/customized/support/dubbo/spring/schema/CustomizedNamespaceHandler.java | UTF-8 | 580 | 1.9375 | 2 | [] | no_license | package com.customized.support.dubbo.spring.schema;
import com.alibaba.dubbo.config.spring.schema.DubboBeanDefinitionParser;
import com.alibaba.dubbo.config.spring.schema.DubboNamespaceHandler;
import com.customized.support.dubbo.spring.AnnotationBean;
/**
* @author gu
* @version 2016年5月20日 下午3:19:19
*/
public cla... | true |
47444d274bb4fcee21e76d98d331dfe6893c39f7 | Java | FortuneDream/gradle_plugin_android_aspectjx | /aspectjx/src/main/java/org/aspectj/org/eclipse/jdt/internal/compiler/batch/ClasspathJar.java | UTF-8 | 15,935 | 1.695313 | 2 | [
"Apache-2.0"
] | permissive | // AspectJ Extension
/*******************************************************************************
* Copyright (c) 2000, 2018 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, ... | true |
32aefc26947b6dc63b35d0f3c83fefa352ca2924 | Java | patricklaux/xcache | /xcache-common/src/main/java/com/igeeksky/xcache/AbstractCache.java | UTF-8 | 1,445 | 2.6875 | 3 | [] | no_license | package com.igeeksky.xcache;
/**
* @author Patrick.Lau
* @since 0.0.4 2021-09-19
*/
public abstract class AbstractCache<K, V> implements Cache<K, V> {
private final String name;
private final Class<K> keyType;
private final Class<V> valueType;
private final Object lock = new Object();
private ... | true |
4ca1a82fe4319b102ee5e20ff4493543263519b4 | Java | kaydoh/geowave | /extensions/adapters/raster/src/main/java/org/locationtech/geowave/adapter/raster/stats/RasterStatisticQueryBuilder.java | UTF-8 | 2,635 | 1.851563 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright (c) 2013-2022 Contributors to the Eclipse Foundation
*
* <p> See the NOTICE file distributed with this work for additional information regarding copyright
* ownership. All rights reserved. This program and the accompanying materials are made available
* under the terms of the Apache License, Versio... | true |
8127b7f47cc0b787cd0b1654936b774012c12c74 | Java | PayalKhattri/Login | /app/src/main/java/com/example/login/blogpost.java | UTF-8 | 965 | 2.296875 | 2 | [] | no_license | package com.example.login;
import java.util.Date;
public class blogpost extends BlogPostId{
public String id;
public String image;
public String desc;
public Date timestamp;
public blogpost(){
}
public blogpost(String id, String image, String desc,Date timestamp) {
this.id = ... | true |
71ad4c31966b238095445a2e9a024ef02eaf5b7b | Java | MrRmk/DesignPatterns | /src/main/java/com/example/chainofresponsibility/Main.java | UTF-8 | 2,300 | 3.28125 | 3 | [] | no_license | package com.example.chainofresponsibility;
import java.util.ArrayList;
import java.util.List;
public class Main {
public static void main(String[] args) {
Msg msg = new Msg();
msg.setMsg("大家好:),<script> 欢迎访问 www.xxx.com ,大家都是996 ");
FilterChain fc = new FilterChain();
fc.add(new H... | true |
1f28f237b5ca96f712a5f061f3269ecb1fe32609 | Java | FadilX/ProjetJava | /civilization/src/civilization/Attaque.java | ISO-8859-1 | 1,582 | 3.3125 | 3 | [] | no_license | package civilization;
import java.util.Scanner;
/**
*
* @author Fadil
*Voil la tant attendue phase attaque dffense
*On laissera le choix au joueur: payer ou se battre
*/
public class Attaque {
int vague;
Time temps=new Time();
Ressources ressources=new Ressources();
public Attaque(){
vag... | true |
4fb4c9fdb367176791699598c17b372515226d5a | Java | 07jeancms/Admision_Diseno | /src/negocio/AdministradorInt.java | UTF-8 | 2,520 | 2.296875 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package negocio;
import javax.swing.JFrame;
import negocio.GestorBoletas.*;
import vista.GenerarBoletas;
import vista.ActualizarNota;
i... | true |
281f8887249f35c1cd2d14d8582d8efdf1387291 | Java | iromos/LabelPet | /LABEL_PROJECT/LabelCore/src/main/java/exception/ExceptionAnswer.java | UTF-8 | 829 | 2.3125 | 2 | [] | no_license | package exception;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.ArrayList;
import java.util.List;
/**
* Created by Jackson on 22.05.2015.
*/
@XmlRootElement(name = "doc")
public class ExceptionAnswe... | true |
e4aa66371f0be61da8e706b7c6cd95fdf833c5ae | Java | thaond/eGov_Portal | /Portlet/VAdv-portlet/docroot/WEB-INF/src/com/vportal/portlet/vadvman/util/VAdvmanUtil.java | UTF-8 | 2,584 | 2.515625 | 3 | [] | no_license | /**
* Copyright (c) Vietsoftware, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later vers... | true |
09e41d920e61bb901c789d343021823132877c21 | Java | karunmatharu/Android-4.4-Pay-by-Data | /external/jsilver/src/com/google/clearsilver/jsilver/functions/bundles/ClearSilverCompatibleFunctions.java | UTF-8 | 4,455 | 1.898438 | 2 | [
"MIT"
] | permissive | /*
* Copyright (C) 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | true |
04ab35bc365e6f48542b77aad0ac8dac765c0567 | Java | Kindegerten/kindergarten | /src/main/java/com/kindergarten/bean/SchoolBill.java | UTF-8 | 1,885 | 2.15625 | 2 | [] | no_license | package com.kindergarten.bean;
public class SchoolBill {
private int billId;
private String billName;
private int billMoney;
private String billDirector;
private int billClassId;
private String billClassName;
private int kinderId;
private String billCreatetime;
private String stude... | true |
6f011829f74bfd85812101bbafd5cf65d81f79c2 | Java | benjdod/comp520-compilerproject | /src/miniJava/AbstractSyntaxTrees/TypeDenoter.java | UTF-8 | 2,597 | 2.90625 | 3 | [] | no_license | /**
* miniJava Abstract Syntax Tree classes
* @author prins
* @version COMP 520 (v2.2)
*/
package miniJava.AbstractSyntaxTrees;
import miniJava.SyntacticAnalyzer.SourcePosition;
abstract public class TypeDenoter extends AST {
public TypeDenoter(TypeKind type, SourcePosition posn){
super... | true |
d0da1a81a7b719e757de24c22187da49a62987e5 | Java | marc0tjevp/Avans-Mars-Rover-Pictures | /app/src/main/java/nl/marcovp/avans/nasaroverphotos/controller/PhotoFoundTask.java | UTF-8 | 5,761 | 2.578125 | 3 | [] | no_license | package nl.marcovp.avans.nasaroverphotos.controller;
import android.app.ProgressDialog;
import android.content.Context;
import android.os.AsyncTask;
import android.util.Log;
import android.widget.Toast;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.BufferedReade... | true |
3138e43d0b95e93f41d3faa185ff0734a5356d00 | Java | L1NDS0N/Locadora-Java-Android | /src/main/java/br/senai/rn/locadora/controllers/CopiaController.java | UTF-8 | 1,148 | 2.015625 | 2 | [] | no_license | package br.senai.rn.locadora.controllers;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotatio... | true |
4ca29b148a6c4e8a51c5facf4a5acc71a359792d | Java | colinator27/utonlineserver | /src/me/colinator27/packet/PacketBuilder.java | UTF-8 | 4,064 | 3.046875 | 3 | [
"MIT"
] | permissive | package me.colinator27.packet;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.charset.Charset;
import java.util.Arrays;
import java.util.UUID;
/** Helper class to fill packet send buffers with data */
public class PacketBuilder {
/** The protocol version of packets being sent to and from c... | true |
e776f41dca7ef8a1ae9a363345182d4f794f85b7 | Java | zhhaochen/Algorithm | /CodeTop/src/ByteDance/Solution91.java | UTF-8 | 782 | 2.96875 | 3 | [] | no_license | package ByteDance;
public class Solution91 {
public int numDecodings(String s) {
int[] dp = new int[s.length() + 1];
dp[0] = 1;
if (s.charAt(0) != '0') dp[1] = 1;
for (int i = 1; i < s.length(); i++){
// 当前为 0
if (s.charAt(i) == '0'){
if (s.ch... | true |
db471d56b77ee7c98d17e93889785ae2da672992 | Java | unica-open/siacfinapp | /src/main/java/it/csi/siac/siacfinapp/frontend/ui/model/movgest/RicercaImpegnoModel.java | UTF-8 | 5,380 | 1.929688 | 2 | [] | no_license | /*
*SPDX-FileCopyrightText: Copyright 2020 | CSI Piemonte
*SPDX-License-Identifier: EUPL-1.2
*/
package it.csi.siac.siacfinapp.frontend.ui.model.movgest;
import it.csi.siac.siacbilser.model.ElementoPianoDeiConti;
import it.csi.siac.siacfinapp.frontend.ui.model.GenericFinModel;
public class RicercaImpegnoModel extends... | true |
182398612028d2a35b23ea96cf4b7c6ab95f8b12 | Java | MariannaSol/multithreading2311 | /src/main/java/com/java2311/multithreading2311/model/TaskRunnable.java | UTF-8 | 590 | 2.9375 | 3 | [] | no_license | package com.java2311.multithreading2311.model;
import javax.swing.*;
public class TaskRunnable implements Runnable{
private JProgressBar progressBar;
private int currentValue = 0;
public TaskRunnable(JProgressBar progressBar) {
this.progressBar = progressBar;
}
@Override
... | true |
650f5700f90adde1ea7d298ffacb8557e43532c3 | Java | hemin1003/aylson-parent | /aylson-manage/src/main/java/com/aylson/dc/owner/controller/AppointmentController.java | UTF-8 | 9,526 | 1.914063 | 2 | [] | no_license | package com.aylson.dc.owner.controller;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.R... | true |
8779dc3f364367b587d01c274190a6f14b51b4ac | Java | ivandeleao/ouroboros | /src/model/nosql/relatorio/VendaItemConsolidadoReportBean.java | UTF-8 | 1,090 | 1.820313 | 2 | [] | no_license | package model.nosql.relatorio;
import java.math.BigDecimal;
/*
* 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.
*/
/**
*
* @author User
*/
public class VendaItemConsolidadoReportBean {... | true |
a107f562ec680c1109310401e4ee6e414a2b951a | Java | joineynguyen/Data-Structures-and-Algorithms | /Recursion/NthTribonacciNumber.java | UTF-8 | 748 | 3.578125 | 4 | [] | no_license | /*
Joiney Nguyen
The Tribonacci sequence Tn is defined as follows:
T0 = 0, T1 = 1, T2 = 1, and Tn+3 = Tn + Tn+1 + Tn+2 for n >= 0.
Given n, return the value of Tn.
Example 1:
Input: n = 4
Output: 4
Explanation:
T_3 = 0 + 1 + 1 = 2
T_4 = 1 + 1 + 2 = 4
*/
class Solution
{
public int tribonacci(int n)
... | true |
717a20b96a3f35daf23d41b7496701dcc2ca1f8d | Java | liyue2008/joyqueue | /joyqueue-server/joyqueue-nsr/joyqueue-nsr-ignite/src/main/java/org/joyqueue/nsr/ignite/dao/impl/IgniteConfigDao.java | UTF-8 | 4,475 | 1.992188 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright 2019 The JoyQueue 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 by applicable law or... | true |
739359c12890a36375b1a49eaa8ba92aecd799de | Java | geocento/EOBroker | /src/com/geocento/webapps/eobroker/customer/client/views/ProductResponseViewImpl.java | UTF-8 | 13,284 | 1.570313 | 2 | [] | no_license | package com.geocento.webapps.eobroker.customer.client.views;
import com.geocento.webapps.eobroker.common.client.utils.CategoryUtils;
import com.geocento.webapps.eobroker.common.client.utils.DateUtil;
import com.geocento.webapps.eobroker.common.client.utils.DateUtils;
import com.geocento.webapps.eobroker.common.client.... | true |
68e7f67b9c8e7d709f0667914e7f3417a1277a2c | Java | ko9ma7/SingleLife_Market_Login | /src/main/java/org/single/domain/PageVO.java | UTF-8 | 1,169 | 1.96875 | 2 | [] | no_license | package org.single.domain;
import org.apache.ibatis.type.Alias;
@Alias("pageVO")
public class PageVO {
private Integer count;
private Integer pageNo;
private Integer beginPage;
private Integer endPage;
private Integer lastPage;
private Integer currTab;
private Integer listSize = 20;
public Integer getCount() ... | true |
27dc3816f9fd522479906ceb5131b7748d0bf83e | Java | gaeeyo/garaponMate | /src/jp/syoboi/android/garaponmate/activity/PlayerActivity.java | UTF-8 | 2,625 | 2.171875 | 2 | [] | no_license | package jp.syoboi.android.garaponmate.activity;
import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import jp.syoboi.an... | true |
920e3e801a68b335ee84580997b9cc356ae71a7c | Java | ABolikov/org.avbolikov.shop | /shop-pictures-service/src/main/java/org/avbolikov/shop/service/PictureService.java | UTF-8 | 346 | 1.789063 | 2 | [
"Apache-2.0"
] | permissive | package org.avbolikov.shop.service;
import org.avbolikov.shop.entity.pictures.PictureData;
import java.util.Optional;
public interface PictureService {
Optional<String> getPictureContentTypeById(int id);
Optional<byte[]> getPictureDataById(int id);
PictureData createPictureData(byte[] picture);
v... | true |
9a79107f5f8f647b4191e746a2e6c367c012cc15 | Java | mittulmandhan/java-interview-prep | /51 Collection/collection-codes/src/main/java/set/treeset/example6/TrainSourceComparator.java | UTF-8 | 237 | 2.6875 | 3 | [] | no_license | package set.treeset.example6;
import java.util.Comparator;
public class TrainSourceComparator implements Comparator<Train>{
@Override
public int compare(Train t1, Train t2) {
return t1.getSource().compareTo(t2.getSource());
}
}
| true |
6ff581170e69d9ce2d181de3b8a88f618b7b8ef8 | Java | mengdongya/NoHttpOzner | /app/src/main/java/com/mdy/nohttpozner/commant/OznerPreference.java | UTF-8 | 1,308 | 2.296875 | 2 | [] | no_license | package com.mdy.nohttpozner.commant;
import android.content.Context;
import android.content.SharedPreferences;
/**
* Created by cecha on 2016/11/29.
*/
public class OznerPreference {
public static final String Ozner = "Ozner";
public final static String ServerAddress = "serveraddress";
private static ... | true |
68aa195e8f0c184fc7ea3145a25ff42ceb67d502 | Java | univas/2021-lab3 | /aula-15/src/br/edu/univas/controller/LoginController.java | UTF-8 | 638 | 2.625 | 3 | [] | no_license | package br.edu.univas.controller;
import br.edu.univas.exception.CheckedLoginException;
import br.edu.univas.exception.UncheckedLoginException;
import br.edu.univas.model.User;
public class LoginController {
public void login(User user) throws CheckedLoginException {
if (!user.getEmail().equals("admin") ||
!u... | true |
0ecafa3ba60d3d52e56f3b8fc5c2e605f40968eb | Java | RedkinV/java2 | /dz1_Vladimir_Redkin_Cross/Dog.java | UTF-8 | 144 | 2.296875 | 2 | [] | no_license | package ru.geekbrains.java2.lesson1;
public class Dog extends Animal {
public Dog(String name) {
super(name, 10, 300, 2);
}
}
| true |
704ad88e8892e4ebb791c45cd015cdef94c43a40 | Java | ankurcdoshi/Criteria-Parser | /app/src/main/java/com/mp/criteriaparser/source/ScanListRepository.java | UTF-8 | 2,293 | 2.28125 | 2 | [] | no_license | package com.mp.criteriaparser.source;
import android.util.Log;
import com.mp.criteriaparser.CriteriaParserApp;
import com.mp.criteriaparser.interfaces.mvp.ScanListDataSource;
import com.mp.criteriaparser.model.Scan;
import com.mp.criteriaparser.network.NetworkInterface;
import java.util.List;
import io.reactivex.Ob... | true |
445a11799b75b99fcc59c3e8ad8969f232d7d712 | Java | JavaSking/SourceForJavaPattern | /src/创建模式/工厂模式/简单工厂模式SimpleFactory/Product.java | GB18030 | 176 | 2 | 2 | [] | no_license | package ģʽ.ģʽ.ģʽSimpleFactory;
/**
* Ʒӿڡ
*
* @author JavaSking
* 2017113
*/
public interface Product {
}
| true |
780172d05a2f7733c2b3d04be5b0450633c11b05 | Java | vishal230400/Coding-Solutions | /src/com/vishal/codeforces/Q116/Q116A/Solution116A.java | UTF-8 | 477 | 2.828125 | 3 | [
"MIT"
] | permissive | package com.vishal.codeforces.Q116.Q116A;
import java.util.*;
public class Solution116A {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int max=0,count=0;
while(n--!=0)
{
int a=sc.nextInt();
... | true |
df31de36ca567b3eb4d4bf8a19bfea9a15dc31f6 | Java | shrimantanu/Java_Projects | /school management/mainpr/src/newpackage/FourWay.java | UTF-8 | 10,802 | 2.3125 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* FourWay.java
*
* Created on Nov 11, 2013, 11:40:05 AM
*/
package newpackage;
/**
*
* @author USER2
*/
public class FourWay extends javax.swing.JFrame {
static int jk = 0;
/** Creates new form... | true |
76115731270e31145cbd76d2e53ccc5451ad3cdc | Java | abhijeet-yahoo/jewels | /src/main/java/com/jiyasoft/jewelplus/controller/manufacturing/masters/StyleChangeController.java | UTF-8 | 3,714 | 2.109375 | 2 | [] | no_license | package com.jiyasoft.jewelplus.controller.manufacturing.masters;
import java.security.Principal;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttr... | true |
b2afb4b810b2109e312a67dae50ff71ee7384ae1 | Java | GPC-debug/hysz | /src/main/java/com/hykj/hysz/entity/data/AccountingSubject.java | UTF-8 | 1,371 | 1.984375 | 2 | [] | no_license | package com.hykj.hysz.entity.data;
import java.math.BigInteger;
import java.util.*;
import java.io.Serializable;
import javax.persistence.*;
import lombok.Data;
/**
* AccountingSubject Bean
* @date 2019-8-28
* @author Jiameng.Ren
*
*/
@Data
@Entity
@Table(name="accounting_subject")
public class AccountingSub... | true |
0db2f2db71f874f40c8d54396ad70e4a2f4ff4c7 | Java | liuendy/escommons | /core/src/test/java/org/biacode/escommons/core/component/impl/AliasNameGenerationComponentImplTest.java | UTF-8 | 2,448 | 2.125 | 2 | [
"MIT"
] | permissive | package org.biacode.escommons.core.component.impl;
import org.biacode.escommons.core.component.ClockComponent;
import org.biacode.escommons.core.component.IndexNameGenerationComponent;
import org.biacode.escommons.core.test.AbstractCoreUnitTest;
import org.easymock.Mock;
import org.easymock.TestSubject;
import org.jod... | true |
5dc8ef86c012e8d565bfa5e0cec9d256c64e9722 | Java | silvano-pessoa/ArquiteturaPrimefaces | /java_src/br/com/silvanopessoa/dao/IFuncionarioDAO.java | UTF-8 | 1,220 | 2.15625 | 2 | [] | no_license | package br.com.silvanopessoa.dao;
import java.util.List;
import br.com.silvanopessoa.exception.java.BusinessMessageException;
import br.com.silvanopessoa.model.entity.Funcionario;
public interface IFuncionarioDAO {
/**
* @param entity
*/
void save(Funcionario entity);
/**
* @param entity
*/
void updat... | true |
f82d8a8b7b925785dfe183c818b65dce46095fdf | Java | ducquanbn/Qsport | /QSport/src/main/java/Services/HoaDonSer.java | UTF-8 | 1,264 | 1.890625 | 2 | [] | no_license | package Services;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import DAO.HoaDonDao;
import Entity.HoaDon;
import Implements.HoaDonImp;
@Service
public class HoaDonSer implements HoaDonImp{
@Autowired
HoaDonDao... | true |
e8878553743db9b8a3c1db2771ea89bc4a78d90d | Java | lowgear/SnakeGame | /src/ru/snake_game/model/Interfaces/IFieldObject.java | UTF-8 | 205 | 1.875 | 2 | [] | no_license | package ru.snake_game.model.Interfaces;
import ru.snake_game.model.util.Location;
public interface IFieldObject
{
Location getLocation();
void snakeInteract(ISnakeHead snake);
void act();
} | true |
05ba1920af0f0845424229dfa1ee74ac443ba9b1 | Java | xhzxhzxhz/bzc | /src/main/java/com/folkestone/bzcx/common/util/ConvertUtil.java | UTF-8 | 733 | 2.71875 | 3 | [] | no_license | package com.folkestone.bzcx.common.util;
import java.lang.reflect.Field;
/**
* Describe:将Vo转成Do
*
* @author smallking
*
* 2017年10月31日
*/
public class ConvertUtil {
public static void convert(Object voObj, Object doObj) throws IllegalArgumentException, IllegalAccessException {
Field[] voFiel... | true |
cb388625f7762cefdf2582adbe34a0cc264e9fba | Java | apache/jackrabbit-oak | /oak-run-commons/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/pipelined/PipelinedTransformTask.java | UTF-8 | 12,762 | 1.664063 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | true |
70ad712da52ff5d268fa6410d97a215daae91107 | Java | quangle2020/spring-boot | /src/main/java/com/quanglv/service/impl/CustomUserDetailsService.java | UTF-8 | 1,149 | 2.046875 | 2 | [] | no_license | package com.quanglv.service.impl;
import com.quanglv.constant.AppConstant;
import com.quanglv.domain.Users;
import com.quanglv.repository.UsersRepository;
import com.quanglv.service.dto.UserPrincipalOauth2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core... | true |
124926f3735a604f2173b74952358cbcde8ca9a0 | Java | TubaBee/JavaProgrammer | /src/com/class36/Recap.java | UTF-8 | 1,639 | 3.578125 | 4 | [] | no_license | package com.class36;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
public class Recap {
public static void main(String[] args) {
//Create a Map of grocaries that will store product and it is quantities and ... | true |
1ec5a16e96ad3db9e5829bd4bccf21017c952d97 | Java | cliicy/autoupdate | /Central/Server/EdgeAppBaseServiceImpl/src/com/ca/arcserve/edge/app/base/webservice/node/HeartBeatJob.java | UTF-8 | 3,055 | 2.140625 | 2 | [] | no_license | package com.ca.arcserve.edge.app.base.webservice.node;
import javax.xml.ws.WebServiceException;
import javax.xml.ws.soap.SOAPFaultException;
import org.apache.log4j.Logger;
import com.ca.arcserve.edge.app.base.schedulers.EdgeExecutors;
import com.ca.arcserve.edge.app.base.util.EdgeCMWebServiceMessages;
import com.ca... | true |
e0b0ec5439418de8048122bcf67772e94f412149 | Java | Snoozy1995/Week-11-SDE-Design-Patterns-Assignment | /src/FacadeSingletonStrategy/dal/IDataAccessLayer.java | UTF-8 | 222 | 2.0625 | 2 | [] | no_license | package FacadeSingletonStrategy.dal;
import FacadeSingletonStrategy.be.Message;
import java.util.List;
public interface IDataAccessLayer {
List<Message> getAllMessages();
void createAMessage(Message message);
}
| true |
909004cd11db1eac7fc0947ea76507d439d0c1f1 | Java | olentangyfrc/Steamworks2017 | /src/org/usfirst/frc/team4611/robot/commands/SingleWheelShoot.java | UTF-8 | 800 | 2.25 | 2 | [] | no_license | package org.usfirst.frc.team4611.robot.commands;
import org.usfirst.frc.team4611.robot.Robot;
import org.usfirst.frc.team4611.robot.RobotMap;
import edu.wpi.first.wpilibj.command.Command;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
public class SingleWheelShoot extends Command{
public SingleWheelS... | true |
db079062fcd85cda3614815602090addc2586f10 | Java | jaydev07/DSA-in-java | /Linked List/myNode.java | UTF-8 | 133 | 2.359375 | 2 | [] | no_license |
public class myNode {
int data;
myNode next;
myNode bottom;
myNode(int d)
{
data = d;
next = null;
bottom = null;
}
}
| true |
ad427d38c6f9a167e1f2137589e0c42e258c94c3 | Java | MatthijsKok/HackerGames-Backend | /src/main/java/com/hackergames/pizzas/services/FakePizzaService.java | UTF-8 | 1,271 | 2.40625 | 2 | [] | no_license | package com.hackergames.pizzas.services;
import com.hackergames.pizzas.model.PizzaOptions;
import org.json.JSONArray;
import org.json.JSONObject;
import org.springframework.stereotype.Service;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
/**
* Fake pizza service simulating Domino'... | true |
369c10d14a2f5eb14a0ec4ec2f2ac79981ceb105 | Java | youngseo9478/Web | /Web_Spring/5_Spring_IOC/src/main/java/tv/step3/SonySpeaker.java | UTF-8 | 247 | 2.828125 | 3 | [] | no_license | package tv.step3;
public class SonySpeaker implements Speaker{
@Override
public void volumeUp() {
System.out.println("SonySpeaker volume UP");
}
@Override
public void volumeDown() {
System.out.println("SonySpeaker volume DOWN");
}
}
| true |
3e3da0728d3db3832949d6ae982039f24f5a0362 | Java | inviss/cms-jpa | /cms-jpa/src/main/java/kr/co/d2net/service/UserAuthServiceImpl.java | UTF-8 | 1,152 | 1.875 | 2 | [] | no_license | package kr.co.d2net.service;
import java.util.List;
import kr.co.d2net.dao.UserAuthDao;
import kr.co.d2net.dto.UserAuthTbl;
import kr.co.d2net.exception.ServiceException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transacti... | true |
3e20ea55514135d998d501aab663410dda7a114a | Java | kangzisoo/Java-practice | /java12/src/배열심화/최대값찾기2.java | UTF-8 | 1,025 | 3.921875 | 4 | [] | no_license | package 배열심화;
import java.util.Random;
public class 최대값찾기2 {
public static void main(String[] args) {
// 타입이 동일한 많은 양의 데이터가 있으면 배열에 넣으세요.
// 반복을 통해서 많은 양의 데이터를 효율적으로 다룰 수 있음.
int[] num = new int[1000];
Random r = new Random();
for (int i = 0; i < num.length; i++) {
num[i] = r.nextInt(1000);
}
// ... | true |
a7806c5a2a24c15f0a7e1739e2b299cdf53bb9fb | Java | ostigter/testproject3 | /projectx/src/main/java/sr/projectx/entities/AppLogMessage.java | UTF-8 | 1,220 | 2.234375 | 2 | [] | no_license | package sr.projectx.entities;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
/**
* Application log message.
*
* @autho... | true |
bdb7169fc26b2e4dba88cb1084cde0aa1262bf85 | Java | Nikkie-456/CodevillageSpring | /myapp/src/main/java/com/thecodevillage/myapp/models/AccCreateMul.java | UTF-8 | 354 | 1.992188 | 2 | [] | no_license | package com.thecodevillage.myapp.models;
import java.io.Serializable;
import java.util.List;
public class AccCreateMul implements Serializable {
private List<Account> accounts;
public List<Account> getAccounts() {
return accounts;
}
public void setAccounts(List<Account> accounts) {
... | true |
2f320d26aad73b4043eb4c48d4aa56590b19c238 | Java | jacknoerror/yftRepo | /src/com/qfc/yft/net/JackRequestManager.java | GB18030 | 1,626 | 2.515625 | 3 | [] | no_license | package com.qfc.yft.net;
import java.util.HashMap;
import java.util.Map;
import android.os.AsyncTask.Status;
import android.util.Log;
/**
* mainly prevent requesting repeatedly
* @author taotao
*
*/
public class JackRequestManager {
private final String TAG = JackRequestManager.class.getSimpleName(... | true |
05fe68adef67bb45ef4547c995b05a336e83aede | Java | joanalbert/TestMod2 | /src/main/java/net/fabricmc/example/entities/TestEntity/TestEntity.java | UTF-8 | 9,184 | 2.15625 | 2 | [
"CC0-1.0"
] | permissive | package net.fabricmc.example.entities.TestEntity;
import net.minecraft.entity.EntityType;
import net.minecraft.entity.damage.DamageSource;
import java.util.HashMap;
import net.fabricmc.example.ExampleMod;
import net.fabricmc.example.entities.ProjectileEntity.ProjectileEntity;
import net.fabricmc.example.register.P... | true |
0221c28ddb6a87e47dcb641238bf7e61f3e40b80 | Java | moradaniel/humanResources | /src/main/java/org/dpi/web/reporting/ReportUtils.java | UTF-8 | 1,354 | 2.28125 | 2 | [] | no_license | package org.dpi.web.reporting;
import java.util.HashMap;
import java.util.Map;
public class ReportUtils {
//TODO move this to database
// hardcoded list of available reports
private static final ReportDescriptor descriptors[] =
{
new ReportDescriptor(ReportService.Reports.EmployeeAdditionsPr... | true |
a29d3568f97f9fdfb074e099fefd5343ab81cc59 | Java | lanaflonform/workshop-spring-data-jpa | /spring-data-jpa-query-dsl-solution/src/main/java/com/zenika/repository/ContactRepositoryImpl.java | UTF-8 | 695 | 2.296875 | 2 | [] | no_license | /**
*
*/
package com.zenika.repository;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import com.mysema.query.jpa.impl.JPAQuery;
import com.zenika.model.Contact;
import com.zenika.model.QContact;
/**
* @author acogoluegnes
*
*/
public class Contact... | true |
514cb802be89e7610d05cb30a6333529271b51cd | Java | cggggggg/jenkins | /src/main/java/com/can/service/LoginService.java | UTF-8 | 642 | 2.0625 | 2 | [] | no_license | package com.can.service;
import com.can.dao.User;
import com.can.pojo.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.HashMap;
import java.util.Map;
/**
* Created by admin on 2017/7/31.
*/
@Service
public class LoginService imp... | true |
c8e39f0dbd973c0a66e2514172f35e43131aaf9c | Java | flywind2/joeis | /src/irvine/oeis/a000/A000307.java | UTF-8 | 1,035 | 2.78125 | 3 | [] | no_license | package irvine.oeis.a000;
import irvine.math.z.Binomial;
import irvine.math.z.Z;
import irvine.oeis.Sequence;
import java.util.ArrayList;
/**
* A000307 Number of 4-level labeled rooted trees with n leaves.
* @author Sean A. Irvine
*/
public class A000307 implements Sequence {
private int mN = -1;
private fin... | true |
0c5500dae7f20ff8cd1148ab2b41dc29e14294ec | Java | AlbertSnow/git_workspace | /TestMemory/wandoujia/src/main/java/com/wandoujia/p4/app_launcher/f/b.java | UTF-8 | 4,049 | 1.640625 | 2 | [] | no_license | package com.wandoujia.p4.app_launcher.f;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.os.Looper;
import android.text.TextUtils;
import com.wandoujia.base.config.GlobalConfig;
import com.w... | true |
744eba452e4f548ca0819a3a96410e44b0633592 | Java | JeffTang139/jtcore | /org.eclipse.jt.core/src/org/eclipse/jt/core/impl/NStrCompareExpr.java | WINDOWS-1252 | 992 | 2.578125 | 3 | [] | no_license | package org.eclipse.jt.core.impl;
/**
* ַȽνʽڵ
*
* @author Jeff Tang
*
*/
class NStrCompareExpr implements NConditionExpr {
public enum Keywords {
STARTS_WITH, ENDS_WITH, CONTAINS, LIKE
}
public final NValueExpr first;
public final NValueExpr second;
public final boolean not;
public final Keywords keyw... | true |
bd085ae81460322e8b529595c3302b96de76afa7 | Java | cyril23/testone | /Trunk_Jun_09_08/src/com/bagnet/nettracer/tracing/actions/ForwardOnHandAction.java | UTF-8 | 9,654 | 2.0625 | 2 | [] | no_license | package com.bagnet.nettracer.tracing.actions;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.ht... | true |
03659c3796cf5867e929f2a3fdc43475d4bd000a | Java | Djiffit/advent-of-code | /aoc-2017/src/aoc/solutions/Day_14.java | UTF-8 | 3,969 | 2.828125 | 3 | [] | no_license | package aoc.solutions;
import aoc.misc.Day;
import java.io.IOException;
import java.math.BigInteger;
import java.util.*;
public class Day_14 implements Day {
public Object part1() throws IOException {
String input = readDay(14);
return countActiveBits("hxtvlmkl");
}
public Object part2(... | true |
2eda3b3cc0597548a152995c1a8bd03874f63430 | Java | allsunnyday/_SYNERGY_GIT | /HangerApplication/app/src/main/java/com/example/geehy/hangerapplication/EditClosetActivity.java | UTF-8 | 555 | 1.695313 | 2 | [] | no_license | package com.example.geehy.hangerapplication;
import android.content.SharedPreferences;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ImageView;
import com.bumptech.glide.Glide;
public class EditClosetActivity extends AppCompatActivity {
ImageView imageView;
priv... | true |
f62870e0ee3448672a5df4a776c62d8eb2bc72fe | Java | antew/DataStructuresInJava | /src/com/antew/lang/util/DequeAsLinkedList.java | UTF-8 | 1,311 | 3.0625 | 3 | [] | no_license | package com.antew.lang.util;
import com.antew.lang.Deque;
import com.antew.lang.exception.ContainerEmptyException;
import com.antew.lang.exception.ContainerFullException;
public class DequeAsLinkedList extends QueueAsLinkedList implements Deque {
@Override
public Object getTail() throws ContainerEmptyExcepti... | true |
02bc8e247b860edc4ea77da1e426cb34a470fd92 | Java | amine-ben/DOCL | /docl-parent/fr.inria.diverse.docl/src-gen/fr/inria/diverse/docl/docl/impl/OclTypeImpl.java | UTF-8 | 821 | 1.625 | 2 | [] | no_license | /**
* generated by Xtext 2.10.0
*/
package fr.inria.diverse.docl.docl.impl;
import fr.inria.diverse.docl.docl.DoclPackage;
import fr.inria.diverse.docl.docl.OclType;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;
/**
* <!-- begin-user-doc -->
* An implementation of th... | true |
d11f544bf350dd7babb3c7f2de753f657d09305a | Java | bungeni-org/bungeni-editor | /utils/NumberingScheme/trunk/Numbering/src/org/bungeni/numbering/impl/GeneralNumberer.java | UTF-8 | 948 | 2.71875 | 3 | [] | no_license | /*
* GeneralNumberer.java
*
* Created on March 18, 2008, 2:12 PM
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package org.bungeni.numbering.impl;
/**
* generic wrapper for abstractnumberer, puts dummy place holders for abstract methods from... | true |
f7d927a2a4a693b60b03187c75ea438e9d37eb49 | Java | CristianGM23/ModeladoNotaciones | /BPMN/src-gen/bpmn/validation/NatureActivityMakerValidator.java | UTF-8 | 672 | 2.015625 | 2 | [] | no_license | /**
*
* $Id$
*/
package bpmn.validation;
import bpmn.Activity;
import bpmn.TypeNatureActivityMaker;
/**
* A sample validator interface for {@link bpmn.NatureActivityMaker}.
* This doesn't really do anything, and it's not a real EMF artifact.
* It was generated by the org.eclipse.emf.examples.generat... | true |
2bb8ecf2bf9cfb255f20ebb9da04b113ab88ddb3 | Java | Jarcionek/MTG | /src/server/flags/Search.java | UTF-8 | 1,086 | 2.484375 | 2 | [] | no_license | package server.flags;
import mtg.Zone;
/**
* @author Jaroslaw Pawlak
*/
public class Search extends Action {
/**
* Determines how many from the top of the zone are to be sent
*/
public int amount;
public String[] cardsIDs;
public Zone zone;
public int zoneOwner;
public Search(int ... | true |