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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
7099d69825205355a10756bc44eefa38d052484c | Java | Viktor-Vrublevski/jm_fixed | /src/main/java/com/javamentor/qa/platform/service/abstracts/dto/QuestionDtoService.java | UTF-8 | 1,004 | 1.859375 | 2 | [] | no_license | package com.javamentor.qa.platform.service.abstracts.dto;
import com.javamentor.qa.platform.models.dto.PageDto;
import com.javamentor.qa.platform.models.dto.QuestionDto;
import java.util.List;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;
public interface QuestionD... | true |
34a4624e908d7b02260449f7a6851f1ae824253a | Java | proofy/pollo | /src/org/outerj/pollo/action/UserPreferencesAction.java | UTF-8 | 1,735 | 2.34375 | 2 | [
"MIT"
] | permissive | package org.outerj.pollo.action;
import org.outerj.pollo.*;
import org.outerj.pollo.util.ResourceManager;
import org.outerj.pollo.config.PolloConfiguration;
import org.outerj.pollo.gui.UserPreferencesDialog;
import javax.swing.*;
import java.awt.event.ActionEvent;
import java.util.Iterator;
/**
* Action that shows ... | true |
d2cd4c7c46b8e363613a1b7abc4ae46906afc5a4 | Java | rosoareslv/SED99 | /java/lucene-solr/2015/12/LeaderInitiatedRecoveryThread.java | UTF-8 | 17,106 | 1.835938 | 2 | [
"Apache-2.0"
] | permissive | package org.apache.solr.cloud;
import org.apache.http.NoHttpResponseException;
import org.apache.http.conn.ConnectTimeoutException;
import org.apache.solr.client.solrj.impl.HttpSolrClient;
import org.apache.solr.client.solrj.request.CoreAdminRequest.RequestRecovery;
import org.apache.solr.common.SolrException;
import ... | true |
7096fc4dea399bca5fc4d0e4acf345fb79233188 | Java | epotters/poc | /poc-jobs/src/main/java/poc/jobs/collectors/UserAccount.java | UTF-8 | 202 | 1.757813 | 2 | [] | no_license | package poc.jobs.collectors;
import lombok.Data;
@Data
public class UserAccount {
private String displayName;
private String username;
private String password;
private AccountType type;
}
| true |
815c6c930ea1600728f9e6c8fa8039bc2b86644e | Java | faruk-becirovic/UniversalConverter | /src/Converter.java | UTF-8 | 570 | 3.484375 | 3 | [] | no_license |
public class Converter {
public static double kgToLb(double kg) {
double lbs = kg * 2.2046;
return lbs;
}
public static double lbToKg(double lbs) {
double kg = lbs / 2.2046;
return kg;
}
public static double cmToInch(double cm) {
return (cm/2.54);
}
public static double inchToCm(d... | true |
4d37279fea68fed0c830249b3c8d6270a7fd4422 | Java | github-is-too-slow/cloud2021 | /cloud-consumer-orderhytrix80/src/main/java/com/billion/springcloud/service/OrderService.java | UTF-8 | 655 | 1.835938 | 2 | [] | no_license | package com.billion.springcloud.service;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
/**
* @author Billion
* @create 2021/04/28 22:49
*/... | true |
9473a6bc7678facbc817bffcd13305d072fea01a | Java | fy-kenny/demo6 | /src/main/java/com/example/demo6/model/StudentWork.java | UTF-8 | 389 | 1.78125 | 2 | [] | no_license | package com.example.demo6.model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
/**
* File comments...
*
* @author Kenny Fang
* @version 1.0
* @date 2017/9/15 20:15
*/
@NoArgsConstructor
@AllArgsConstructor
@Data
public class... | true |
7344fa7950aff3c2ba4998d906f6c719e228cefe | Java | Kaushal28/CPU-Scheduling-Algorithm-Simulation | /FCFS/src/fcfs/Utility.java | UTF-8 | 487 | 1.71875 | 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 fcfs;
import java.util.ArrayList;
import java.util.Set;
import java.util.TreeSet;
/**
*
* @author kaushal28
*/
public clas... | true |
6ce5c00f7e8ad093ed1d83f16408a49401c86814 | Java | susheelit/AndroidApps | /CRM_Admin/app/src/main/java/com/irg/crm_admin/common/OprActivity.java | UTF-8 | 4,131 | 1.890625 | 2 | [] | no_license | package com.irg.crm_admin.common;
import android.content.Context;
import android.content.Intent;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import com.irg.crm_admin.R;
import com.irg.crm_admin.activity.LoginActivity;
import java.io.BufferedReader;
import java.io.IOExc... | true |
a54967e0b4b83d979024225722d3c9fe8b644675 | Java | erdemdenizli/Testing | /src/_40_TestNGTutorial.java | UTF-8 | 418 | 2.015625 | 2 | [] | no_license | import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.annotations.Test;
public class _40_TestNGTutorial {
@Test
public void testMethod() {
System.out.println("Hello world!");
}
@Test
public void testMethod2() ... | true |
570d3c1d536ff347c39e55addaa85b70b4147122 | Java | ezsaidi/configuration | /target/generated-sources/entity-codegen/extensions/pc/internal/domain/contact/gen/PersonExtStub.java | UTF-8 | 3,227 | 1.789063 | 2 | [] | no_license |
package extensions.pc.internal.domain.contact.gen;
import com.guidewire.pc.domain.contact.impl.PersonCoreExtImpl;
import extensions.pc.internal.domain.contact.impl.ContactExtInternal;
import extensions.pc.internal.domain.contact.impl.ContactExtMethodsImpl;
import extensions.pc.internal.domain.contact.impl.GlobalConta... | true |
e4da3448eb520ff1986e692dc6e9bdb9203a0a1e | Java | flywind2/joeis | /src/irvine/oeis/a006/A006021.java | UTF-8 | 1,282 | 2.921875 | 3 | [] | no_license | package irvine.oeis.a006;
import java.util.HashSet;
import java.util.Set;
import irvine.math.MemoryFunction;
import irvine.math.z.Z;
import irvine.oeis.Sequence;
/**
* A006021 The game of contours.
* @author Sean A. Irvine
*/
public class A006021 extends MemoryFunction<Long, Long> implements Sequence {
// Uses... | true |
95eebe4e2757f7db2ec029d4941727977ecdc794 | Java | IlyaFX/java-tools | /src/test/java/clepto/humanize/HumanizeTest.java | UTF-8 | 1,052 | 2.578125 | 3 | [] | no_license | package clepto.humanize;
import org.junit.Test;
import static org.junit.Assert.*;
public class HumanizeTest {
@Test
public void testPlurals() {
assertEquals(pluralExample(1), "алмаз");
assertEquals(pluralExample(2), "алмаза");
assertEquals(pluralExample(4), "алмаза");
assertEquals(pluralExample(5), "алмаз... | true |
55009f45dc398ab005c8b922c35fd255cdbc2604 | Java | truegff/android-two-payout-demo | /app/src/main/java/com/system/itl/ssp_multi_devices/MyIOIOLooperManager.java | UTF-8 | 2,068 | 2.734375 | 3 | [] | no_license | package com.system.itl.ssp_multi_devices;
import ioio.lib.api.exception.ConnectionLostException;
import ioio.lib.util.BaseIOIOLooper;
class MyIOIOLooperManager extends BaseIOIOLooper {
private DeviceManager deviceManager;
MyIOIOLooperManager() {
deviceManager = new DeviceManager();
}
@O... | true |
5ae098f561fd868bc37ee96e3a442ab0c389f1e3 | Java | Mezier/Java-Practice | /PracticeAlgorithm/src/atm/Bank.java | UTF-8 | 835 | 3.09375 | 3 | [] | no_license | package atm;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.Scanner;
public class Bank {
private ArrayList<Customer> cus;
public Bank(){
cus=new ArrayList<Customer>();
}
//reads the customer numbers and pins and initialize
public void ... | true |
d70bba2cc0ca8570084f3d921dfa0fab26c6cf46 | Java | pcsopcso/edu | /98.hello/src/main/java/com/docker/example/hello/controller/HelloController.java | UTF-8 | 1,704 | 2.6875 | 3 | [] | no_license | package com.docker.example.hello.controller;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.InetAddress;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.... | true |
aafd9955dd10fd5a9a1f0df7a354febeaf5762ef | Java | MaikolLeiva/proyectoBancoEstatal | /ProyectoFraude/src/main/java/com/wings/designs/ProyectoFraude/users/UsersConfig.java | UTF-8 | 972 | 2.265625 | 2 | [] | no_license | package com.wings.designs.ProyectoFraude.users;
import org.springframework.boot.CommandLineRunner;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import java.util.Arrays;
@Configuration
public class UsersConfig {
@Bean
CommandLineRunner comm... | true |
1a3a543a5e6c0078bb16bf62ca8de7b4d43cad23 | Java | SunYi21/xuewenliang | /lambda-test/src/test/java/entity/User.java | UTF-8 | 481 | 2.125 | 2 | [] | no_license | package entity;
import lombok.Data;
/**
* @Auther: 薛
* @Date: 2020/4/21 13:25
* @Description:
*/
@Data
public class User {
private String id;
private String name;
private Double money;
private String dd;
public User(String id, String name, Double money,String dd) {
this.id = id;
... | true |
15aa402cad2aae1dc0ad2fe3b34ce381e171a094 | Java | harrycjy1/java-bootcamp | /practice_chap09(상속)/src/sec01_exam_captionTv/Tv.java | UHC | 414 | 3.40625 | 3 | [] | no_license | package sec01_exam_captionTv;
//Ŭ(θ,superŬ) : 5
public class Tv {
boolean power;
int channel;
public Tv() {
System.out.println("Ŭ ȣ");
}
public void power() {
this.power = !power;
}
public void channelup() {
++this.channel;
}
public void channeldown() {
--thi... | true |
8b57def35bfce78d4639009b9aa359d3d741752f | Java | Kavzor/UsefulTools | /src/com/kavzor/tools/file/TextHandler.java | UTF-8 | 340 | 2.453125 | 2 | [] | no_license | package com.kavzor.tools.file;
import java.io.File;
public abstract class TextHandler implements FileConvertor{
protected static String SECTION_SEPERATOR = "###";
public TextHandler(File textFile, String section) {
toList(textFile, section);
}
public void setSeperator(String seperator) {
SECTION_SEPERATO... | true |
7de53fe45d22a12e48b514f2f0d96db0ef750f9b | Java | Vladus1980/JavaAd05 | /Magshop/src/main.java/domain/User.java | UTF-8 | 3,504 | 2.578125 | 3 | [] | no_license | package domain;
public class User {
private Integer id;
private String user_firstname;
private String user_lastname;
private String user_email;
private String user_pass;
private String user_level;
public User(Integer id, String user_firstname, String user_lastname, String user_email,
String user_pass, ... | true |
93f71ce276d086a407fe0f2ece73faec6762969f | Java | oppian/oikos | /src/com/oppian/oikos/model/Account.java | UTF-8 | 1,167 | 2.34375 | 2 | [] | no_license | package com.oppian.oikos.model;
import java.io.Serializable;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;
@DatabaseTable
public class Account implements Serializable {
private static final long serialVersionUID = 2044539981769509541L;
@DatabaseField(generatedId ... | true |
45b522210fce35924110e2abdbb736cf26eb4faa | Java | nabin-kuldeep-jena/iprotech | /deft/server/deft-server-common/src/main/java/com/asjngroup/deft/common/resources/ResourceScanner.java | UTF-8 | 7,623 | 2.625 | 3 | [] | no_license | package com.asjngroup.deft.common.resources;
import java.io.DataInputStream;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.lang.annotation.Annotation;
import java.net.URL;
import java.net.URLClassLoader;
import java.net.URLDecoder;
import java.util.Enumeration;
import java.ut... | true |
deffba82073d4163a892776c57a675408e327bc8 | Java | longpham041292/java-sample | /user-api/src/main/java/asia/cmg/f8/user/entity/AccountEntity.java | UTF-8 | 4,246 | 1.859375 | 2 | [] | no_license | /**
*
*/
package asia.cmg.f8.user.entity;
import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOn... | true |
7eda0ae1010b6916488f9dc13f891e2da16a8d56 | Java | bryan-campos/Calculadora | /Calculadora/src/main/java/Operaciones.java | UTF-8 | 535 | 3.28125 | 3 | [] | no_license | public class Operaciones {
public int suma(int num,int num2){
return num + num2;
}
public int resta(int num, int num2){
return num - num2;
}
public int multiplicacion(int num, int num2){
return num * num2;
}
... | true |
f7c3c49b76e202b0b50658107dd55e4e22aa62a2 | Java | FelixGit4Dev/snowflakeDatawarehouse | /AdventureWorksDWH/src/main/java/adventureworks/entitySource/Currencyrate.java | UTF-8 | 2,269 | 2.1875 | 2 | [] | no_license | package adventureworks.entitySource;
import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;
import java.sql.Timestamp;
/**
* The persistent class for the currencyrate database table.
*
*/
@Entity
@Table(name="currencyrate")
@NamedQuery(name="Currencyrate.findAll", query="SE... | true |
fbfd2e764680a17a43617a60707a2ec617b3ef90 | Java | YanaSmelik/OOP-with-Java.-Exercises | /Part 2. Exercise 47 - Flexible Filtering Criteria/src/reader/criteria/AtLeastOne.java | UTF-8 | 941 | 3.546875 | 4 | [] | no_license | package reader.criteria;
import java.util.ArrayList;
import java.util.List;
//The objects of this class receive as parameter an optional amount of objects with implement the interface Criterion
//the constructor receives a list of variable length as parameter
//AtLeastOne objects accept the lines which comply ... | true |
0742e7682afff8594150fd74125053206d3e7e6f | Java | webbisswiftapps/ChelseaNepal | /app/src/main/java/com/webbisswift/cfcn/domain/model/MatchEvent.java | UTF-8 | 1,201 | 2.3125 | 2 | [] | no_license | package com.webbisswift.cfcn.domain.model;
import android.os.Parcel;
import android.os.Parcelable;
/**
* Created by apple on 12/5/17.
*/
public class MatchEvent implements Parcelable {
public String away, home, minute, type;
public String getId(){
return away+home+minute+type;
}
@Override
... | true |
220bcf50cdd23d17aaf179bbc6908c2ae34b5caf | Java | ryank231231/jp.co.penet.gekidanprince | /com/ies_net/artemis/R.java | UTF-8 | 430 | 1.601563 | 2 | [] | no_license | package com.ies_net.artemis;
public final class R {
public static final class attr {}
public static final class drawable {
public static final int icon = 2130837504;
}
public static final class string {
public static final int app_name = 2130903040;
}
}
/* Location: Y:\classes2-d... | true |
951baad0b1dbdcbb1854ef01ee04dec8f9214793 | Java | gt6707a/FinalProject | /TellJokes/src/main/java/com/android/gt6707a/telljokes/Joker.java | UTF-8 | 136 | 1.75 | 2 | [] | no_license | package com.android.gt6707a.telljokes;
public class Joker {
public static String joke() {
return "why so serious";
}
}
| true |
ee33c418b3f7ec4e610647451f4bde8dc7faad5d | Java | LCHCAPITALHUMAIN/simple-scrum | /RooScrum/src/main/java/com/scrumtool/domain/reference/SprintStatus.java | UTF-8 | 107 | 1.65625 | 2 | [] | no_license | package com.scrumtool.domain.reference;
public enum SprintStatus {
NOT_STARTED, STARTED, FINISHED
}
| true |
31c8809ad882c5e1622775567453d03e279afac5 | Java | thiagobardella/java_exercises | /src/main/java/exercise1and2/deserializer/GsonPartnerInputDeserializer.java | UTF-8 | 1,088 | 2.609375 | 3 | [] | no_license | package exercise1and2.deserializer;
import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonDeserializer;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import exercise1and2.models.PartnerInput;
import exercise1and2.utils.DateUtils;
import java.lang.reflect.Type;
import j... | true |
a1207c910f3e035db50eb578c998ba23bf5cd313 | Java | knodafuture/knoda-android | /Knoda/src/main/java/views/group/GroupSettingsFragment.java | UTF-8 | 9,461 | 1.929688 | 2 | [] | no_license | package views.group;
import android.app.AlertDialog;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widge... | true |
048bf64cb7ada4bc2212baff372b5104eab7ac95 | Java | samely/findchangeset-plugin | /src/org/openstreetmap/josm/plugins/findchangeset/FindChangesetPlugin.java | UTF-8 | 781 | 2.0625 | 2 | [] | no_license | package org.openstreetmap.josm.plugins.findchangeset;
import java.awt.GraphicsEnvironment;
import org.openstreetmap.josm.gui.IconToggleButton;
import org.openstreetmap.josm.gui.MapFrame;
import org.openstreetmap.josm.plugins.Plugin;
import org.openstreetmap.josm.plugins.PluginInformation;
public class FindChangesetPl... | true |
4a102c99d0abc48d9f74a2eddd2a83e7ac563f9f | Java | dem-v/QSTQuizz_renewed | /app/src/main/java/vda/home/qstquizz/FileSelectActivity.java | UTF-8 | 3,913 | 2.015625 | 2 | [] | no_license | package vda.home.qstquizz;
import android.content.Intent;
import android.content.res.AssetManager;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.text.TextUtils;
import android.view.Menu;
import android.view.MenuItem;
impor... | true |
8d32a12c5706a7312899aaffc83a31c7c5619fa0 | Java | SantiagoGM19/OnValve | /OnValve/app/src/main/java/com/example/OnValve/agregar_valvula.java | UTF-8 | 3,787 | 2.125 | 2 | [
"MIT"
] | permissive | package com.example.OnValve;
import android.content.Intent;
import android.os.Bundle;
import android.text.Layout;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;
import androidx.appcompat.app.AppCompatActivity;
import com.example.OnValve.Modelo.Valvula;
import com.google.firebase... | true |
a2c26ef864d34588b28a1d56834fc19a381c8d2e | Java | lindzh/jetcd | /src/test/java/com/lindzh/jetcd/ChangeWatchDirTest.java | UTF-8 | 639 | 2.53125 | 3 | [
"Apache-2.0"
] | permissive | package com.lindzh.jetcd;
public class ChangeWatchDirTest {
public static void main1(String[] args) throws InterruptedException {
final EtcdClient client = new EtcdClient("http://127.0.0.1:2379");
client.start();
String dir = "/mydir";
client.delDir(dir, true);
client.dir(dir);
Thread.currentTh... | true |
543116f82f2d1ca2d215ab25422cdedfe8ecd508 | Java | thalabi/StudentNotesService | /StudentNotesService/src/test/java/com/kerneldc/education/studentNotesService/service/StudentNotesReportServiceTests.java | UTF-8 | 7,378 | 2.453125 | 2 | [] | no_license | package com.kerneldc.education.studentNotesService.service;
import java.nio.charset.StandardCharsets;
import java.sql.Timestamp;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Arrays;
import java.util.HashSet;
import javax.xml.bind.JAXBException;
import org.junit.BeforeCl... | true |
8145281dddb11823e5a0e8b2966f97cb557af70e | Java | shyf2015/online-edu-star | /edu-com/com-wechat-service/src/main/java/com/clark/daxian/wechat/exception/WeChatException.java | UTF-8 | 542 | 2.171875 | 2 | [] | no_license | package com.clark.daxian.wechat.exception;
import com.clark.daxian.api.exception.EduException;
/**
* WeChat业务异常
* @author 大仙
*/
public class WeChatException extends EduException {
public WeChatException(String message) {
super(message);
}
public WeChatException(String message, int code) {
... | true |
c250531954eaef618309628fac2ff65b0c87026b | Java | kacperwojaczek/PersonAPI-Android-App | /app/src/main/java/com/example/kacper/zaliczenie/MainActivity.java | UTF-8 | 6,333 | 2.25 | 2 | [] | no_license | package com.example.kacper.zaliczenie;
import android.content.Context;
import android.content.Intent;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import andr... | true |
922869ea0ba2c56898e8d1d9870649c7041835b4 | Java | dx14/SLogo | /src/parser/command/commandlist/turtles/TurtlesCommand.java | UTF-8 | 280 | 2 | 2 | [
"MIT"
] | permissive | package parser.command.commandlist.turtles;
import parser.ParserException;
import parser.command.Command;
public class TurtlesCommand extends Command {
@Override
public double evaluate() throws ParserException {
return myParser.getTurtleContainer().getNumTurtles();
}
}
| true |
936ec293812369514f829bc507a855c1b0a93ca7 | Java | cypherfox/HarperHallUtil | /src/de/harper_hall/util/math/CartesianVector.java | UTF-8 | 6,377 | 3.640625 | 4 | [] | no_license | /**
*
*/
package de.harper_hall.util.math;
/**
*
* While some utility functions exist to aid the use in three dimensions, the package supports arbitrary dimensions.
*
* TODO: basis-operation (sub),
*
* TODO: Funktion die add implementiert mit vektor kleinerer Dimension, mit int parameter um n Dimensionen v... | true |
db98424587555369d8b0b2ec97de267b1c737f4a | Java | zoubeidaNM/LostPets | /src/main/java/com/example/lostpets/JavaController.java | UTF-8 | 4,673 | 2.46875 | 2 | [] | no_license | package com.example.lostpets;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.*;
import javax.validation.Valid;
impo... | true |
ebcc841159ff7b779261919ef2f3863f7c560148 | Java | tesfai05/jenkins-exercise | /src/main/java/com/tesfai/jenkins/controller/SampleController.java | UTF-8 | 512 | 2.203125 | 2 | [] | no_license | package com.tesfai.jenkins.controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class SampleController {
@GetMapping("/home")
public String sampleMet... | true |
0b726ce328cf58171da7dff7295a375625278043 | Java | MelyukhovDmitrii/Messenger | /src/me/melyukhov/messenger/common/packages/MessageType.java | UTF-8 | 162 | 1.554688 | 2 | [
"MIT"
] | permissive | package me.melyukhov.messenger.common.packages;
public enum MessageType {
USER_NAME,
PASSWORD,
TEXT_MESSAGE,
PUBLIC_KEY,
PRIVATE_KEY,
AES_KEY
}
| true |
410f40f8f14ac9ceb3c23176a64898b4ab4a75c0 | Java | fizzy-bubalech/ClientChessApp | /app/src/main/java/com/example/clientchessapp/MainActivity.java | UTF-8 | 3,559 | 2.25 | 2 | [] | no_license | package com.example.clientchessapp;
import androidx.annotation.RequiresApi;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.widget.Button;
import android.widget.TextVi... | true |
c313d061664fbaa48047b5af6f858da092f24375 | Java | crazyhand89/Zane-Xtras-11.2 | /src/main/java/zanextras/items/armor/ZaneArmorMaterial.java | UTF-8 | 1,681 | 2.21875 | 2 | [] | no_license | package zanextras.items.armor;
import net.minecraft.init.SoundEvents;
import net.minecraft.item.ItemArmor.ArmorMaterial;
import net.minecraftforge.common.util.EnumHelper;
public class ZaneArmorMaterial {
public static ArmorMaterial BUTTER = EnumHelper.addArmorMaterial("Butter",
"zanextras:butter", 15, new int[]... | true |
a3eb6946d28ccac143f372da7d0ef26350d39625 | Java | DeanHe/Practice | /LeetCodePractice/src/contest/RemovingMinimumAndMaximumFromArray.java | UTF-8 | 2,281 | 4.25 | 4 | [] | no_license | package contest;
/*
You are given a 0-indexed array of distinct integers nums.
There is an element in nums that has the lowest value and an element that has the highest value. We call them the minimum and maximum respectively. Your goal is to remove both these elements from the array.
A deletion is defined as either ... | true |
777f010c9478e3671a79b77020ae4e8a38d05872 | Java | skkuse-adv/2019Fall_team2 | /analysis/reverse-engineering/decompile-fitts-20191031-2200/sources/kr/co/popone/fitts/viewmodel/home/HomeModule.java | UTF-8 | 1,519 | 1.507813 | 2 | [
"Apache-2.0"
] | permissive | package kr.co.popone.fitts.viewmodel.home;
import androidx.fragment.app.Fragment;
import androidx.lifecycle.ViewModel;
import androidx.lifecycle.ViewModelProvider.Factory;
import androidx.lifecycle.ViewModelProviders;
import kotlin.jvm.internal.Intrinsics;
import kr.co.popone.fitts.eventtracker.EventTracker;
i... | true |
c0c10a0ab154b9b0e9650d951ad1191beda6624e | Java | atcrew/a13 | /src/java/atcrew/ce2mapper/ce2mapper/serial/SerialNavStroke.java | UTF-8 | 2,320 | 1.867188 | 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 atcrew.ce2mapper.ce2mapper.serial;
import java.io.Serializable;
import java.util.regex.Matcher;
import java.util.regex.Pattern... | true |
d329ba568c5f9f61dc9a519bf32a8344282563b6 | Java | apache/lenya | /org.apache.lenya.core.impl/src/main/java/org/apache/lenya/xml/XLink.java | UTF-8 | 3,238 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you ... | true |
6e0509434404707cd111a800a825860bfa31b6bd | Java | YuriDomingos/Sistema-Solar-Completo- | /Planetas.java | UTF-8 | 1,449 | 2.609375 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package sistemasolare21711;
import java.awt.Image;
import javax.swing.ImageIcon;
/**
*
* @author : Yuri Domingos
* Data :... | true |
1577c95f84fb649cb24ee4586fb424cdf4cb8b25 | Java | Poovithapoovi/poovi. | /substringg.java | UTF-8 | 462 | 2.34375 | 2 | [] | no_license | #include<iostream>
using namespace std;
int main(){
string s1,s2;
cin>>s1;
cin>>s2;
int l1=s1.length();
int l2=s2.length();
int c=0;
string ss;
for(int i=0;i<l1;i++){
for(int j=0;j<=l1-i;j++){
ss="\0";
ss=s1.substr(i,j);
if(ss==s2){
... | true |
1f7592a536ca12feb29ce4317c561ef555fb0284 | Java | juan987/Variaciones | /app/src/main/java/com/juan/variaciones/MainActivity.java | UTF-8 | 9,536 | 2.28125 | 2 | [] | no_license | package com.juan.variaciones;
import android.content.Intent;
import android.os.Bundle;
import android.os.Environment;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
impo... | true |
e0ab0d998917c0c8a013548beef2849513356dc7 | Java | rajashekarvys/TestAnt | /webrtc-android-sample-app/src/main/java/io/antmedia/webrtc_android_sample_app/LoginActivity.java | UTF-8 | 3,941 | 2.015625 | 2 | [] | no_license | package io.antmedia.webrtc_android_sample_app;
import androidx.appcompat.app.AppCompatActivity;
import android.Manifest;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Build;
import android.os.Bundle;
import android.provider.Settings;
import android.util.Log;
import android... | true |
2a4b596fda55da736bcc367fc1af494004c19648 | Java | GSIL-Monitor/test-6 | /src/main/java/com/yyq/car/portal/common/mapper/product/StoreMapper.java | UTF-8 | 824 | 1.84375 | 2 | [] | no_license | package com.yyq.car.portal.common.mapper.product;
import java.util.List;
import org.apache.ibatis.session.RowBounds;
import org.ufa.mybatis.stereotype.UfaMapper;
import com.yyq.car.portal.common.model.product.Store;
@UfaMapper
public interface StoreMapper {
int deleteByPrimaryKey(Integer id);
int insert(Store r... | true |
81a3473ce399a3dd2f3fb027a4419899c95f0e34 | Java | agaveplatform/science-apis | /agave-common/common-legacy-api/src/main/java/org/iplantc/service/common/representation/IplantSuccessRepresentation.java | UTF-8 | 839 | 2.390625 | 2 | [
"BSD-3-Clause"
] | permissive | /**
*
*/
package org.iplantc.service.common.representation;
/**
* @author dooley
*
*/
public class IplantSuccessRepresentation extends IplantRepresentation {
/**
* Creates a success response with no message and empty response body
*/
public IplantSuccessRepresentation()
{
this(nul... | true |
c39ff5283537961e58008334524f09c5b6c7d43d | Java | lucaspetto/csv-marshaling | /src/main/java/com/example/demo/routes/MarshalRoute.java | UTF-8 | 509 | 2.0625 | 2 | [] | no_license | package com.example.demo.routes;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.dataformat.bindy.csv.BindyCsvDataFormat;
import org.apache.camel.spi.DataFormat;
import com.example.demo.repository.Person;
public class MarshalRoute extends RouteBuilder{
private DataFormat bindy = new BindyCsvD... | true |
11abaf35081b4602f62e554580021751f890b822 | Java | googleapis/google-cloud-java | /java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/src/main/java/com/google/recaptchaenterprise/v1beta1/TokenProperties.java | UTF-8 | 48,515 | 1.820313 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | true |
0fb7e3f67bf17d2f63295801d80e70205f3cb2f0 | Java | xhaiben/LeetCode | /src/TotalHammingDistance/Main.java | UTF-8 | 1,214 | 3.640625 | 4 | [] | no_license | package TotalHammingDistance;
/**
* Created by xhaiben on 2017/2/14.
*/
public class Main {
public static void main(String[] args) {
int[] nums = {4, 14, 2};
System.out.println(totalHammingDistance2(nums));
}
/**
* 循环相加 超时
*
* @param nums
* @return
*/
public ... | true |
12f19659fa7321edffca0c148714a6e59d933a1a | Java | pyp163/BlueTooth | /app/src/main/java/com/facebook/soloader/ExoSoSource.java | UTF-8 | 14,040 | 1.914063 | 2 | [] | no_license | package com.facebook.soloader;
import android.content.Context;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
public final class ExoSoSource extends UnpackingSoSource
{
public ExoSoSource(Context paramContext, String paramString)
{
super(paramConte... | true |
b3e6603df1acc49f60c094e2a41234835808f104 | Java | patelkrunal/puzzles | /ConcurrentExample/src/accounts/ConcurTest.java | UTF-8 | 5,430 | 3.609375 | 4 | [] | no_license | package accounts;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Random;
import java.util.concurrent.*;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
import javax.naming.Insuffic... | true |
635bdc8f0fc481c5254647ada3330a5e70762d04 | Java | zjohnso/rs3-ge-app | /app/src/main/java/com/example/projectscape/Objects/DataEntry.java | UTF-8 | 784 | 2.890625 | 3 | [] | no_license | package com.example.projectscape.Objects;
import androidx.annotation.NonNull;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
public class DataEntry {
private Date date;
private int price;
private int index;
public DataEntry(long date, int price, int index) {
... | true |
584f08ee2946ffe27fd856e5c8a5f784c91019d0 | Java | Training360/strukturavalto-java-public | /solutions/collectionsset/src/test/java/collectionshashset/StringsHandlerTest.java | UTF-8 | 1,155 | 2.59375 | 3 | [] | no_license | package collectionshashset;
import org.junit.jupiter.api.Test;
import helper.RandomStringGenerator;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
import static org.junit.jupiter.api.Assertions.assertTrue;
public class StringsHandlerTest {
@Test
public void checkNumberOfElem... | true |
abc2eca57d73ec6492de08a0d03542096dd2c387 | Java | gmstrbytes/geode | /geode-apis-compatible-with-redis/src/distributedTest/java/org/apache/geode/redis/internal/executor/sortedset/ZAddDUnitTest.java | UTF-8 | 5,819 | 2.078125 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown",
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not ... | true |
5a111e154ae8858f556c1abd2aa8b8340011cb87 | Java | TAIJI-zhanghd/homework | /springboot_security_hello/src/main/java/com/zhd/WebSecurityConfig.java | UTF-8 | 3,671 | 2.171875 | 2 | [] | no_license | package com.zhd;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.context.annotation.Bean;
import org.springframework.security.config.annotation.authentication.builders.Authentica... | true |
8e58af847deee90efe4d31a434b62533c0b3cd8c | Java | franklinzou/lcslns | /java src/BinaryTreeMaximumPathSum.java | UTF-8 | 879 | 3.578125 | 4 | [] | no_license | /*
* Binary Tree Maximum Path Sum
* Tag: Tree
* Tag: Depth-first Search
*/
import java.util.*;
public class BinaryTreeMaximumPathSum {
int res = Integer.MIN_VALUE;
public int maxPathSum(TreeNode root) {
getLeftRightMax(root);
return res;
}
// get maximal result when AT MOST one bran... | true |
80a717aa84c2f21cc87b7be17fd644eff89780c2 | Java | mal67/DungeonCraft | /src/main/java/greenteam/dungeoncraft/Util/FileReader.java | UTF-8 | 810 | 2.875 | 3 | [] | no_license | package greenteam.dungeoncraft.Util;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;
import java.io.File;
//read string from file
public class FileReader {
public String ReadFile(String FileLoc) {
StringBuilder sou... | true |
0b7422ebaa0e262615e9b2577a0d0dd5d015a840 | Java | hurtus/App | /GoShopping/app/src/main/java/com/goshopping/usx/goshopping/view/FilterView.java | UTF-8 | 7,426 | 1.890625 | 2 | [] | no_license | package com.goshopping.usx.goshopping.view;
import android.animation.ObjectAnimator;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewTreeObserver;
impo... | true |
93435a07ef33ce57764fc08956ba26f9ef5fc77b | Java | TimofeyShved/SimbirSoft_2021 | /src/main/java/com/example/SimbirSoft_2021/service/interfaceService/TaskServiceInterface.java | UTF-8 | 965 | 1.84375 | 2 | [] | no_license | package com.example.SimbirSoft_2021.service.interfaceService;
import com.example.SimbirSoft_2021.Dto.TaskDto;
import com.example.SimbirSoft_2021.exception.ReleaseNotFoundException;
import com.example.SimbirSoft_2021.exception.RoleNotFoundException;
import com.example.SimbirSoft_2021.exception.TaskNotFoundException;
i... | true |
c17600c94fb260e24354539526dc6dc7ae7cc695 | Java | nanosai/grid-ops-java | /src/main/java/com/nanosai/gridops/ion/read/IonFieldReaderNop.java | UTF-8 | 2,266 | 2.765625 | 3 | [
"Apache-2.0"
] | permissive | package com.nanosai.gridops.ion.read;
import com.nanosai.gridops.ion.IonFieldTypes;
/**
* Created by jjenkov on 05-11-2015.
*/
public class IonFieldReaderNop implements IIonFieldReader {
@Override
public int read(byte[] source, int sourceOffset, Object destination) {
int leadByte = 255 & source... | true |
e33f13bbdff1253a2d933c0a2ea7fe06fe41814a | Java | ganlu19940318/Head-First | /Factory Pattern/Abstract Factory Pattern/src/PersonFactory.java | UTF-8 | 86 | 2.15625 | 2 | [] | no_license | public interface PersonFactory {
Car getCar();
Breakfirst getBreakfirst();
}
| true |
4e3baa8386dff87aaadc842ddeae2fdd81796099 | Java | Catherine22/WebServices | /WebServices/app/src/main/java/com/catherine/webservices/entities/WebViewAttr.java | UTF-8 | 20,371 | 1.773438 | 2 | [
"Apache-2.0"
] | permissive | package com.catherine.webservices.entities;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Build;
import android.webkit.WebSettings;
import com.catherine.webservices.R;
import java.util.Arrays;
/**
* Created by Catherine on 2017/10/23.
* Soft-World Inc.
* catherine919... | true |
f48e79d61e1a70c5c8d1b446a07febf2c21f308f | Java | a2937/SubnetCalculator | /src/test/java/io/github/a2937/subnetcalc/SubnetCalcUtilTest.java | UTF-8 | 5,080 | 3.09375 | 3 | [
"MIT"
] | permissive | package io.github.a2937.subnetcalc;
import org.junit.Assert;
import org.junit.Test;
import org.junit.Before;
import org.junit.After;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
/**
* SubnetCalcUtil Tester.
* This class
* @author <Authors name>
* @since <pre>Dec 5, 2018</p... | true |
b78acae3f355e5ed3e218262b0001d8bfcdb82b7 | Java | vsop-479/shiyan | /shiyan-api-test/src/main/java/thinking/in/java/chapter15/demo/tuple/Holder3.java | UTF-8 | 581 | 3.359375 | 3 | [] | no_license | package thinking.in.java.chapter15.demo.tuple;
/**
* Created by Administrator on 2016/10/27.
* 类型参数
* 告诉便西起想使用什么类型,然后编译器帮你处理一切细节。
*/
public class Holder3<T> {
private T a;
// 类型参数
public Holder3(T a){
this.a = a;
}
public T getA() {
return a;
}
public void setA(T a) {
... | true |
d126e9e2d040c88761f39a8400ad55b4153403af | Java | tingwhere/wenbaotong | /WBT/Asocket/src/com/example/asocket/ExREG.java | UTF-8 | 901 | 2.265625 | 2 | [] | no_license | package com.example.asocket;
public class ExREG { //存什么类型
public byte TypeL;
public byte TypeH;
public byte LenL;
public byte LenH;
// public byte clientID; //java中一个char占2个字节
public String clientName;
public byte Endflag;
public ExREG(byte typel, byte typeh, byte ... | true |
28782758af9d2cc9f6449a34f3eb573429d080b3 | Java | sq1235/repair | /src/main/java/org/tysf/gt/service/ISimageService.java | UTF-8 | 153 | 1.5625 | 2 | [
"Apache-2.0"
] | permissive | package org.tysf.gt.service;
import org.tysf.gt.pojo.SImage;
public interface ISimageService {
public void addSImage(SImage sImage);//添加图片
}
| true |
827ecff19375f7d1d32daa3dbe0ba396a87f1fb8 | Java | AmaniChou/jarb | /jarb-constraints/src/test/java/org/jarbframework/constraint/domain/Contact.java | UTF-8 | 373 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | package org.jarbframework.constraint.domain;
import javax.persistence.Embeddable;
import javax.persistence.Embedded;
@Embeddable
public class Contact {
@Embedded
private Address address;
public Contact() {
}
public Contact(Address address) {
this.address = address;
}
public Add... | true |
a8a17275faf5ba5964f57c633d94beca446bc742 | Java | Lymero/BulldOzer | /src/main/java/types/PairType.java | UTF-8 | 941 | 2.984375 | 3 | [] | no_license | package types;
import java.util.Objects;
public final class PairType extends Type {
public Type keyTypes;
public Type valueTypes;
private PairType() {
}
public PairType(Type keyTypes, Type valueTypes) {
this.keyTypes = keyTypes;
this.valueTypes = valueTypes;
}
@Override
... | true |
a061b7801a6a4ec2bee3b7b0ad5791d2002ca557 | Java | blurock/webReaction | /ReactImport/src/graph/DrawGraph.java | UTF-8 | 25,646 | 2.78125 | 3 | [] | no_license | /* FILE DrawGraph.java
** PACKAGE ANALYSIS
** AUTHOR Edward S. Blurock
**
** CONTENT
**
** REFERENCES
**
** COPYRIGHT (C) 1995 ANALYSIS Project / Edward S. Blurock
*/
package graph;
import java.awt.event.*;
import java.awt.Color;
import java.awt.Canvas;
import java.awt.FontMetrics;
import jav... | true |
cd70ff756c45b016471e8d97a8fc24b2269e52f5 | Java | Vino007/LectureSystem | /src/main/java/com/vino/scaffold/shiro/service/UserServiceImpl.java | GB18030 | 8,398 | 2.171875 | 2 | [] | no_license | package com.vino.scaffold.shiro.service;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Arrays;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import java.util.logging.SimpleFormatter;... | true |
cf666e18ec61f62a0239afb44b119c1b907b75dc | Java | shashanksriva/javapractice | /src/com/equinix/bitset/BitSetImplementation.java | UTF-8 | 1,177 | 3.46875 | 3 | [] | no_license | package com.equinix.bitset;
import java.util.BitSet;
public class BitSetImplementation {
private BitSet bitset;
/**
* Creates BitSet with default size of 24 bits
*/
public BitSetImplementation() {
bitset = new BitSet(24);
}
/**
* Creates BitSet with given size
* @par... | true |
957ee3f06144927804c8f337bcbff898cfb81629 | Java | HWenTing/leetcode | /T_701_800/T704.java | UTF-8 | 669 | 3.671875 | 4 | [] | no_license | package T_701_800;
public class T704 {
// 给定一个 n 个元素有序的(升序)整型数组 nums 和一个目标值 target ,写一个函数搜索 nums 中的 target,如果目标值存在返回下标,否则返回 -1。
// 二分查找 注意细节
public int search(int[] nums, int target) {
int left=0;
int right=nums.length-1;
int mid;
while(left<=right){
mid=left+(right-lef... | true |
517435df8d75614068e0093a8528550e12d0709b | Java | rfranco84/MVCDatabase | /src/main/java/com/cg/MVCThymeDB/MVCDatabase/services/UserServices.java | UTF-8 | 990 | 2.625 | 3 | [] | no_license | package com.cg.MVCThymeDB.MVCDatabase.services;
import com.cg.MVCThymeDB.MVCDatabase.dao.UserDAO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.cg.MVCThymeDB.MVCDatabase.pojo.User;
import java.util.List;
// Service annotation marks class as a ... | true |
ca613e4067d3d0f351ba04e1603a6d1d20a56a47 | Java | fabienwarniez/jtwig | /jtwig-core/src/test/java/org/jtwig/acceptance/config/JsonConfigurationTest.java | UTF-8 | 1,224 | 2.25 | 2 | [
"Apache-2.0"
] | permissive | package org.jtwig.acceptance.config;
import com.google.common.base.Function;
import org.jtwig.JtwigModelMap;
import org.jtwig.JtwigTemplate;
import org.jtwig.functions.config.JsonConfiguration;
import org.junit.Test;
import javax.annotation.Nullable;
import static org.hamcrest.CoreMatchers.is;
import static org.ham... | true |
e6f71ca4657f38d65ee5ca10dd3ebb39cde5c9c1 | Java | mindvv0rk/Fasten | /app/src/main/java/ai/testtask/fasten/weather/model/response/autocomplete/AutocompleteResponse.java | UTF-8 | 363 | 1.914063 | 2 | [] | no_license | package ai.testtask.fasten.weather.model.response.autocomplete;
import com.google.gson.annotations.SerializedName;
import java.util.List;
import ai.testtask.fasten.weather.model.City;
public final class AutocompleteResponse {
@SerializedName("RESULTS")
private List<City> mCities;
public List<City> get... | true |
d41464ab1de6c1d283addb255a8cadfee4a19bcb | Java | jckd1122/Tinder | /Tinder V1.0/code/Tinder/src/cn/tinder/das/exception/message/ArrangeExceptionMsg.java | UTF-8 | 655 | 1.828125 | 2 | [] | no_license | package cn.tinder.das.exception.message;
public class ArrangeExceptionMsg {
public static final String INDEX_ERR = "INDEX读取错误";
public static final String SALEINFO_ERR ="SALEINFO读取错误";
public static final String ARRINFO_ERR = "排班信息错误";
public static final String BASICARRANGE_ARRMODE_ERR = "读取排班用基础信息错误";
public st... | true |
4ee4a9b682bcfc90f362bf811c5418c087ef3997 | Java | benjaminscridon/Assignment4-SD | /Assignment4 SD/Java SOAP Services Project/assignment4/src/ro/utcluj/sd/assignment4/service/TestMain.java | UTF-8 | 797 | 2.328125 | 2 | [] | no_license | package ro.utcluj.sd.assignment4.service;
import ro.utcluj.sd.assignment4.dto.PackageDTO;
import ro.utcluj.sd.assignment4.dto.UserDTO;
public class TestMain {
public static void main(String[] args){
PackageServiceBean p = new PackageServiceBean();
UserDTO sender = new UserDTO();
sender.setEmail("russ");
send... | true |
ad796fa5c7e2b73b9b05abec76ba4de61ad2c752 | Java | Leefirm/GX_NC5.X | /lcsw_sw/src/public/nc/vo/lcsw/sw07/.svn/text-base/SW07GetCheckClass.java.svn-base | GB18030 | 808 | 1.953125 | 2 | [] | no_license | package nc.vo.lcsw.sw07;
import java.io.Serializable;
import nc.vo.trade.pub.IBDGetCheckClass2;
/**
* <b>װݻУ·</b>
* @version 1.0
* @since 1.0
* @author չ
* @time 2014-09-03 17:20:11
*/
public class SW07GetCheckClass implements Serializable,IBDGetCheckClass2{
private static final long serialVer... | true |
89eda756f9677bec9a8bc49e9a627e0335ba7271 | Java | QuattroViper/TeamspeakAdminAndroid | /app/src/main/java/com/example/marno/teamspeakapp/JTS3ServerQueryExample.java | UTF-8 | 9,142 | 2.65625 | 3 | [] | no_license | package com.example.marno.teamspeakapp;
import java.io.PrintStream;
import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Vector;
import com.example.marno.teamspeakapp.JTS3ServerQuery;
import com.example.marno.teamspeakapp.TS3ServerQueryException;
import com.example.marno.... | true |
fcaa2aa97af2b4f3a02d0d589fc00061423da006 | Java | jmstart/SpringBoot_HighLevel | /SpringBoot_Security_05/src/main/java/com/jiaming/config/mySecurityConfig.java | UTF-8 | 2,596 | 2.453125 | 2 | [] | no_license | package com.jiaming.config;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.... | true |
db590ff2cdaf542f40fd98bfa56f659489d9edc4 | Java | jtarlecki/vfd | /services/RebatePrograms/src/com/rebateprograms/data/output/GetNewequipmentByTechnologyRtnType.java | UTF-8 | 646 | 1.835938 | 2 | [] | no_license |
package com.rebateprograms.data.output;
/**
* Generated for query "getNewequipmentByTechnology" on 07/31/2013 10:22:32
*
*/
public class GetNewequipmentByTechnologyRtnType {
private Integer newequipmentid;
private String newquipmentname;
public Integer getNewequipmentid() {
return newequip... | true |
35394758a2d14875666047c8c2034a6c6a6e4071 | Java | popadorin/oop-labs3 | /src/com/oop/lab1/Lab1Task1.java | UTF-8 | 324 | 2.390625 | 2 | [] | no_license | package com.oop.lab1;
public class Lab1Task1 {
public static void main(String[] args) {
int a = 5;
Monitor monitor1 = new Monitor();
monitor1.color = "red";
System.out.println(monitor1.color);
Monitor monitor2 = new Monitor();
System.out.println(monitor2.color);
... | true |
ff06e944d2ef0b5447143aa2626b9505cc0d44b7 | Java | robin-hood-debug/burndown-chart | /src/main/java/de/paluch/burndown/SprintDaysGenerator.java | UTF-8 | 1,437 | 3.328125 | 3 | [] | no_license | package de.paluch.burndown;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collections;
import java.util.Date;
import java.util.List;
/**
* Sprint Days Calculator. Omits SATURDAY and SUNDAY. <br>
* <br>
* Project: burdnown-chart <br>
* Autor: mark <br>
* Created: 19.03.2012 <br>
* <br>
... | true |
7c76d78f6fc4bbea7a7246f8e42530140c2cedaa | Java | show4268time/algorithm | /src/main/java/leetcode/code50/Code6ZigzagConversion.java | UTF-8 | 1,185 | 3.65625 | 4 | [] | no_license | package leetcode.code50;
/**
* @author: PhilipFry
* @create: 2022-05-06 10:29
* @Description: The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this:
* (you may want to display this pattern in a fixed font for better legibility)
*/
public class Code6ZigzagConversion {
p... | true |
e0e35e043d20536c0c2e27e28a343e51cb045632 | Java | boringcc/SF | /src/leetCode/esay_27.java | UTF-8 | 887 | 3.765625 | 4 | [] | no_license | package leetCode;
/**
* 移除元素
* 给定 nums = [0,1,2,2,3,0,4,2], val = 2,
函数应该返回新的长度 5, 并且 nums 中的前五个元素为 0, 1, 3, 0, 4。
注意这五个元素可为任意顺序。
你不需要考虑数组中超出新长度后面的元素。
*/
public class esay_27 {
public int removeElement(int[] nums, int val) {
int n=nums.length;
int i=0;
while(i<n){
if(nu... | true |
2e2cd73432a21fab5497fd47b49fa9a22db92b5c | Java | rcgonzalezf/codility-lessons | /Codility/StacksAndQueues/StoneWall.java | UTF-8 | 1,573 | 3.21875 | 3 | [
"Unlicense"
] | permissive | import java.util.ArrayList;
import java.util.List;
// https://codility.com/demo/results/demoX7Z9X3-HSB/ 100%
public class StoneWall {
public int solution(int[] H) {
int len = H.length;
Stack<Integer> stack = new Stack<>(len);
int blockCounter = 0;
for (int i = 0; i < len... | true |
a6c2f7d18ccbcdbaf4028c7aef48c82870646ad5 | Java | belemirkara/Portakalcucumber2 | /src/test/java/Pages/ContactInfoControlofmandatoryFieldsPage.java | UTF-8 | 2,439 | 1.835938 | 2 | [] | no_license | package Pages;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.How;
import org.openqa.selenium.support.PageFactory;
public class ContactInfoControlofmandatoryFieldsPage {
public ContactInfoControlofmandato... | true |
51d4ea94bc837da44fcb67db693af1565a02fb8b | Java | sharon-lee-fumi/CarFactory | /app/src/main/java/pointclickcare/lish/carfactory/Wheel1Factory.java | UTF-8 | 217 | 2.71875 | 3 | [] | no_license | package pointclickcare.lish.carfactory;
public class Wheel1Factory implements WheelAbstractFactory{
@Override
public Wheel createWheel() {
Wheel1 wheel1 = new Wheel1();
return wheel1;
}
}
| true |
2f14d046046db1ec048e99921437aaf97b4d5606 | Java | HSETeam/mosCTapp | /app/src/main/java/com/hackaton/mosctapp/CommonClasses/Route.java | UTF-8 | 820 | 2.828125 | 3 | [] | no_license | package com.hackaton.mosctapp.CommonClasses;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
/**
* Created by diesersamat on 25/04/15.
*/
public class Route {
boolean direct;
ArrayList<Step> route;
String name;
public Route(boolean di... | true |