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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
fb7b4b9f69b085e3ee0e66f38c2faec29f043b1c | Java | wujichang/SmartVod | /media/src/main/java/com/hhzt/vod/media/Clarity.java | UTF-8 | 389 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | package com.hhzt.vod.media;
/**
* 清晰度
*/
public class Clarity {
public String grade; // 清晰度等级
public String p; // 270P、480P、720P、1080P、4K ...
public String videoUrl; // 视频链接地址
public Clarity(String grade, String p, String videoUrl) {
this.grade = grade;
this.p = p;
... | true |
57613679692694f6715d421d1c6ae579596ecfc2 | Java | MrQwerties/thetaSeat | /src/SeatingChart.java | UTF-8 | 1,356 | 3.171875 | 3 | [] | no_license | import java.util.ArrayList;
public abstract class SeatingChart {
protected ArrayList<Seat> seats;
protected ArrayList<Student> students;
public SeatingChart(ArrayList<Seat> se, ArrayList<Student> st){
seats = se;
students = st;
}
public abstract void shuffleStudents();
public void goodShuffle(int itera... | true |
9b560908b67c6bc2ed0c26e0398c42c0de73748c | Java | chsubhasis/springdatajpa | /src/test/java/com/myspring/springdatajpa/SpringdatajpaApplicationTests.java | UTF-8 | 915 | 2.5 | 2 | [] | no_license | package com.myspring.springdatajpa;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
... | true |
7f287e2663ed5fbbdbc6f20fb78dc4f0edec320d | Java | EdgarPontes/apiweb | /src/main/java/br/com/makewaybrazil/ws/service/UsuarioService.java | UTF-8 | 552 | 2.03125 | 2 | [
"MIT"
] | permissive | package br.com.makewaybrazil.ws.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import br.com.makewaybrazil.ws.model.Usuario;
import br.com.makewaybrazil.ws.repository.UsuarioRepository;
@Service
public class UsuarioService {
@Autowired
privat... | true |
ae4c4152cccbecb71b412f8247aef52a03a7899c | Java | hasanbasri1993/my-movie-db | /app/src/main/java/com/daarululuumlido/mymoviedb/widget/FavoriteMovieWidgetService.java | UTF-8 | 453 | 1.8125 | 2 | [] | no_license | package com.daarululuumlido.mymoviedb.widget;
import android.content.Intent;
import android.widget.RemoteViewsService;
public class FavoriteMovieWidgetService extends RemoteViewsService{
@Override
public RemoteViewsService.RemoteViewsFactory onGetViewFactory(Intent intent) {
return new MovieRemoteVi... | true |
cafbc19fa2ecddeb2641b5938909e88880448e4a | Java | eosite/openyourarm | /glaf-web/src/main/java/com/glaf/form/web/springmvc/FormWorkflowPlanController.java | UTF-8 | 21,474 | 1.703125 | 2 | [] | no_license | package com.glaf.form.web.springmvc;
import java.io.IOException;
import java.util.List;
import java.util.Map;
import java.util.StringTokenizer;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactor... | true |
b0cfc15a90fdf0cff2da74aae3595677f7132940 | Java | szgflex/GlowPadView | /src/com/android/keyguard/demo/MainActivity.java | UTF-8 | 1,206 | 2.171875 | 2 | [] | no_license | package com.android.keyguard.demo;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import com.android.keyguard.widget.GlowPadView;
import com.android.keyguard.widget.GlowPadView.OnTriggerListener;
public class MainActivity extends Activity implements OnTriggerListener {
private Glo... | true |
4c7606bd6f5dbed13369e2373e1cb53503908184 | Java | alexvercher/TrabajoIJava | /src/com/cice/controller/GestorMarcas.java | UTF-8 | 603 | 2.109375 | 2 | [] | no_license | /*
* Gestión de las marcas de coches. Devuelve la lista de marcas
*/
package com.cice.controller;
import com.cice.dao.MarcaDAOImpl;
import com.cice.interfaces.IMarcaDAO;
import com.cice.model.Marca;
import java.util.List;
/**
*
* @author AVECH3H
*/
public class GestorMarcas {
private IMa... | true |
8f6621916c3a29c6159a586c71bf35c9b6527288 | Java | martinezmatias/GenPat-data-C3 | /eclipseswt_cluster/3792/tar_1.java | UTF-8 | 4,993 | 2.171875 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is a... | true |
5529fbf6823cb116df4a2dfa0d252b279933e2c9 | Java | edwardzhou/RomanNumerals | /PartI/step1/src/test/java/org/kata/RomanNumberals/RomanNumeralsTest.java | UTF-8 | 1,322 | 3.234375 | 3 | [] | no_license | package org.kata.RomanNumerals;
import org.junit.Test;
import org.junit.Before;
import static org.junit.Assert.*;
public class RomanNumeralsTest {
RomanNumerals roman = null;
@Before
public void setUp() {
this.roman = new RomanNumerals();
}
@Test
public void testOne() {
assertEquals("I", this.r... | true |
b4ba93fd7957e5f65fa06092f92d6d2cf762ad4f | Java | jianjustin/learning-leetcode | /[443]string-compression/src/Solution.java | UTF-8 | 834 | 3.140625 | 3 | [] | no_license | import java.util.*;
public class Solution {
public int compress(char[] chars) {
int count = 0;
int[] char_count = new int[92];
Set<Character> set = new HashSet<Character>();
for (int i = 0; i < chars.length; i++) {
char_count[chars[i] - 35]++;
set.add(char... | true |
b1e0a4113364b0b793fc489033871527d6c70909 | Java | AleksandrGridin/Encryption-Decryption | /src/encryptdecrypt/crypt/UnicodeEncryption.java | UTF-8 | 479 | 2.90625 | 3 | [] | no_license | package encryptdecrypt.crypt;
public class UnicodeEncryption implements Crypt {
@Override
public String solution(String text, int key) {
char[] message = text.toCharArray();
char[] encryptedMessage = new char[message.length];
for (int i = 0; i < message.length; i++) {
int ch... | true |
41860b6033c5d570c6ab8b1714461c3d9d837bb2 | Java | ExePtion31/Java | /CRUD_Angular/backend/src/main/java/com/bankvision/backend/controller/ProductoController.java | UTF-8 | 4,498 | 2.5625 | 3 | [] | no_license | package com.bankvision.backend.controller;
import com.bankvision.backend.entity.Producto;
import com.bankvision.backend.request.*;
import com.bankvision.backend.services.ProductoService;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
im... | true |
e75ae3cb7e310f0611985778712eb9987b8355e5 | Java | ev0code/MinetasiaCore | /spigot/src/main/java/fr/idarkay/minetasia/core/spigot/commands/whitelist/WhitelistListCommand.java | UTF-8 | 2,074 | 2 | 2 | [] | no_license | package fr.idarkay.minetasia.core.spigot.commands.whitelist;
import fr.idarkay.minetasia.core.api.SettingsKey;
import fr.idarkay.minetasia.core.api.utils.MinetasiaSettings;
import fr.idarkay.minetasia.core.spigot.MinetasiaCore;
import fr.idarkay.minetasia.core.spigot.command.CommandPermission;
import fr.idarkay.mineta... | true |
49f628ad377ecbbe84413611a98f59cfb56f023f | Java | zhangmingao/sortAlgorithm | /src/main/java/com/algorithm/sort/ONLogN/ShellSortService.java | UTF-8 | 2,420 | 3.765625 | 4 | [] | no_license | package com.algorithm.sort.ONLogN;
import com.algorithm.sort.ON2.InsertSortService;
/**
* 希尔排序
* 原理:插入排序的改进版本,由于插入排序有对“大部分有序的数组排序会很快”的特点 和 对数组元素数量少的排序快,进行优化,先进行预处理,将数组变成大部分有序。
* 处理方式:对数组进行分组,间隔是数组总长度的一半,间隔称为希尔增量,对每组分别进行插入排序,这样处理后得到的数组比原来有序了,再如法炮制,2为希尔增量,分两组,每组4个元素
* 直到希尔增量变为1也就是直接插入排序。
*
* 时间复杂度:O(N*LogN)
* 复杂... | true |
69b323a00b9b51792777865613501549b0d50656 | Java | lucallero/algojava | /src/codility/BinaryGap.java | UTF-8 | 1,039 | 3.5 | 4 | [] | no_license | package codility;
import java.util.ArrayList;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
class BinaryGap {
public int solution(int N) {
if (N < 1 || N > 2147483647)
return 0;
String binaryN = Integer.toBinaryString(N);
ArrayList<String> binaryGaps = new ArrayList<String>();
Patte... | true |
b7f154d0f4d82c5cb2c2996c629771b6069c3823 | Java | Untar1/SM_2 | /src/main/java/his/implementation/actions/AssignOncologist.java | UTF-8 | 1,182 | 2.890625 | 3 | [] | no_license | package his.implementation.actions;
import his.implementation.Action;
import his.sequence.diagrams.Boundary;
import his.sequence.diagrams.FolderController;
import java.util.Scanner;
public class AssignOncologist implements Action {
private Boundary boundary;
private String patientId;
private String onco... | true |
0d4e57352173a016c5d76ef28ffdb1416cdba6d1 | Java | Gilberto491/Guia | /src/fundamentos/tarefas/Tarefa4.java | UTF-8 | 423 | 3.625 | 4 | [] | no_license | package fundamentos.tarefas;
import java.util.Scanner;
public class Tarefa4 {
public static void main(String[] args) {
Scanner entrada = new Scanner(System.in);
System.out.println("Informe o Valor: ");
double n = entrada.nextDouble();
double quadrado = Math.pow(n, 2);
double cubo = Math.pow(n, 3);
... | true |
dcec7760609bd4bc99bd96ae1139989148bd98d9 | Java | milo2005/ELibroClient | /app/src/main/java/unicauca/movil/libros/net/UsersClient.java | UTF-8 | 350 | 2.015625 | 2 | [] | no_license | package unicauca.movil.libros.net;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.POST;
import unicauca.movil.libros.models.User;
public interface UsersClient {
@POST("users/registro")
Call<RegisterResponse> register(@Body User user);
@POST("users/login")
Call<SimpleRespons... | true |
64c54ecc8508178e82efccfc8f333549f8512fd2 | Java | i-am-meikle/hockey-smash | /src/main/java/no/meikle/hockey_smash/ChallengeDay.java | UTF-8 | 1,591 | 2.859375 | 3 | [] | no_license | package no.meikle.hockey_smash;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import no.meikle.hockey_smash.domain.Activity;
public class ChallengeDay {
private Calendar day;
private Calendar start;
private Calendar end;
private Activity activity;
private int month;
publ... | true |
db57f2aa028fa4e3dd147bab5d3f233f36968688 | Java | gurjarn/toy-robot-simulator | /src/main/java/com/example/robot/commands/service/MoveCommand.java | UTF-8 | 1,921 | 3.0625 | 3 | [] | no_license | package com.example.robot.commands.service;
import com.example.robot.commands.data.CommandException;
import com.example.robot.commands.data.StatusContext;
import static com.example.robot.commands.data.Constants.*;
public class MoveCommand implements ICommand{
public MoveCommand(){
}
/**
* This me... | true |
bf5e2017af3dc1c1c94784574304c675cd2452e2 | Java | hobo71/Artifice | /com.artifice.refactoring/src/com/artifice/refactoring/engine/RefactoringLists.java | UTF-8 | 1,048 | 2.1875 | 2 | [] | no_license | package com.artifice.refactoring.engine;
import java.util.LinkedList;
import com.artifice.refactoring.data.FieldJob;
import com.artifice.refactoring.data.MethodJob;
import com.artifice.refactoring.data.VariableJob;
public class RefactoringLists {
private LinkedList<MethodJob> methods;
private LinkedLis... | true |
862f950b8c8ed619caa3093133d20a3bf667dcc3 | Java | gaoyuanning/aic-expresso | /src/test/java/com/sri/ai/test/grinder/library/BasicTest.java | UTF-8 | 8,011 | 2.296875 | 2 | [] | no_license | /*
* Copyright (c) 2013, SRI International
* All rights reserved.
* Licensed under the The BSD 3-Clause License;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
* http://opensource.org/licenses/BSD-3-Clause
*
* Redistribution and use in... | true |
03e9c89c948fc407729de83835180fb312f69dc3 | Java | Angel-Villalobos-P/Correos_POO | /src/vista/AdminController.java | UTF-8 | 10,653 | 2.265625 | 2 | [] | no_license | package vista;
import Model.Casillero;
import Model.Cliente;
import Model.TipoEstadoCasillero;
import Model.TipoRango;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.collections.transformation.FilteredList;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import... | true |
b424205b2e1a8d19441cf90b0296d595c6682e95 | Java | chun-yu/SmartSecretary | /app/src/main/java/com/example/windsound/smartsecretary/memo.java | UTF-8 | 42,029 | 1.867188 | 2 | [] | no_license | package com.example.windsound.smartsecretary;
import android.app.Activity;
import android.app.AlarmManager;
import android.app.AlertDialog;
import android.app.DatePickerDialog;
import android.app.PendingIntent;
import android.app.TimePickerDialog;
import android.content.Context;
import android.content.DialogInterface;... | true |
0926077837d5175a5d944f136ac7eabc79c799ba | Java | kavt/feiniu_pet | /Super_order/src/java/com/lvmama/ord/dao/OrdOrderSHHolidayDAO.java | UTF-8 | 1,507 | 2.171875 | 2 | [] | no_license | package com.lvmama.ord.dao;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import com.lvmama.comm.BaseIbatisDAO;
import com.lvmama.comm.bee.po.ord.OrdOrderSHHoliday;
public class OrdOrderSHHolidayDAO extends BaseIbatisDAO {
public OrdOrderSHHolidayDAO() {
super();
}
... | true |
16947233d3f1d8990af0679b0524d651ccc53988 | Java | liuyang1986/measure | /app/src/main/java/win/lioil/bluetooth/bt/BtClientActivity.java | UTF-8 | 6,686 | 1.867188 | 2 | [] | no_license | package win.lioil.bluetooth.bt;
import android.app.Activity;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
impo... | true |
e3f0c9fb10f9c6cb32f8936816f26a2fec35f704 | Java | sumit-srivastava/Recipes | /core-recipes/src/main/java/com/java/se7/data/structures/algos/text/MatrixChain.java | UTF-8 | 1,002 | 3.640625 | 4 | [] | no_license | package com.java.se7.data.structures.algos.text;
public class MatrixChain {
/**
* Returns an n-by-n matrix such that N[i][j] represents the minimum number of
* multiplications to compute the product of matrix chain product Ai through Aj inclusive.
*
* The parameter d is an array of n+1 numbers, such that... | true |
e845a40472a9c62f570fab2b379c2de11366c1c5 | Java | CCMForCCH/CCM | /cohoman/src/org/cohoman/view/controller/ProjectsController.java | UTF-8 | 2,893 | 1.96875 | 2 | [] | no_license | package org.cohoman.view.controller;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;
import javax.enterprise.context.SessionScoped;
import javax.faces.bean.ManagedBean;
import javax.faces.context.FacesContext;
import javax.servlet.http.HttpSession;
import or... | true |
238351d9ca0c6288eded90f987f332e72823d1c4 | Java | osudroid/osu-droid | /AndEngine/src/org/anddev/andengine/engine/handler/runnable/RunnableHandler.java | UTF-8 | 1,889 | 2.421875 | 2 | [
"Apache-2.0"
] | permissive | package org.anddev.andengine.engine.handler.runnable;
import java.util.ArrayList;
import org.anddev.andengine.engine.handler.IUpdateHandler;
/**
* (c) 2010 Nicolas Gramlich
* (c) 2011 Zynga Inc.
*
* @author Nicolas Gramlich
* @since 10:24:39 - 18.06.2010
*/
public class RunnableHandler implements IUpdateHand... | true |
8c4c93efd3c06a2c4741653c3d56a4dd1c90123a | Java | jasoet/InvestaStack | /investastack-web/src/main/java/com/secondstack/investa/controller/MailTestController.java | UTF-8 | 964 | 2.015625 | 2 | [] | no_license | package com.secondstack.investa.controller;
import com.secondstack.investa.service.MandiriMailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.anno... | true |
24cba5a1d234c85e0b1ddcf9083593e2404b5d6d | Java | joy-sec/Task1 | /app/src/main/java/net/apkkothon/tourkit/models/NewsFeedModel.java | UTF-8 | 1,009 | 2.109375 | 2 | [] | no_license | package net.apkkothon.tourkit.models;
public class NewsFeedModel {
private String profileName;
public String getProfileName() {
return profileName;
}
public void setProfileName(String profileName) {
this.profileName = profileName;
}
public String getProfileImage() {
... | true |
36cfd7dc519f7737387cadc7bb4a2893f1eb0d10 | Java | galvelistious37/Adventure | /src/main/java/com/johnny/pack/age/controller/builder/EnemyBuilder.java | UTF-8 | 1,014 | 2.921875 | 3 | [] | no_license | package com.johnny.pack.age.controller.builder;
import com.johnny.pack.age.model.characterfactory.*;
import com.johnny.pack.age.model.characterfactory.character.Character;
import java.util.ArrayList;
import java.util.List;
public class EnemyBuilder {
private List<Character> enemyList;
private EnemyBuilder()... | true |
a34d36ff2bbca30dbefb16978612706ba33fc43c | Java | nicoraynaud/easycount | /src/test/java/org/tekinico/easycount/repository/LineRepositoryTest.java | UTF-8 | 10,155 | 2.109375 | 2 | [] | no_license | package org.tekinico.easycount.repository;
import net.sf.cglib.core.Local;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.mock.web.Moc... | true |
a23aa18e4e28c3b763044de112ba1e02afb4c727 | Java | oliviatinios/GoalPOC | /multi-module/goal-service/src/main/java/poc/eventstore/examples/todolist/todoservice/backend/command/CreateTodoCommand.java | UTF-8 | 354 | 2.125 | 2 | [] | no_license | package poc.eventstore.examples.todolist.todoservice.backend.command;
import poc.eventstore.examples.todolist.model.GoalInfo;
public class CreateTodoCommand implements TodoCommand {
private GoalInfo todo;
public CreateTodoCommand(GoalInfo todo) {
this.todo = todo;
}
public GoalInfo getTodo... | true |
8e7f5d1ff4831300613ece9cccc063a875c4cc4e | Java | Steve-B-Taylor/challenges | /Week17/java-party-planner/src/main/java/com/launchacademy/partyplanner/controllers/FriendsController.java | UTF-8 | 1,639 | 2.40625 | 2 | [] | no_license | package com.launchacademy.partyplanner.controllers;
import com.launchacademy.partyplanner.models.Party;
import com.launchacademy.partyplanner.services.FriendService;
import com.launchacademy.partyplanner.services.PartyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.st... | true |
130342e945df9f09931da1ac2cf1156c7b137254 | Java | sweman/PracticeProblems | /Java/AwardBudgetCuts.java | UTF-8 | 2,178 | 3.625 | 4 | [] | no_license | import java.util.Arrays;
/**
*
* The awards committee had planned to give n research grants this year, out of a its total yearly budget.
However, the budget was reduced to b dollars. The committee members has decided to affect the minimal number of highest grants, by applying a maximum cap c on all grants: every gra... | true |
0166f8e9de2de333acec686f045a8d1eff984d56 | Java | agenthun/Array | /src/com/agenthun/schoolrecruit2016/MaxSumLength.java | UTF-8 | 723 | 3.0625 | 3 | [] | no_license | package com.agenthun.schoolrecruit2016;
import java.util.HashMap;
/**
* Created by agenthun on 16/7/28.
* 数组中和为k的最长子串
*/
public class MaxSumLength {
int maxSumLength(int[] a, int k) {
if (a == null || a.length == 0) {
return 0;
}
HashMap<Integer, Integer> map = new HashMap<>... | true |
2c2619775437670ac28d331be73cd6e4d45bc967 | Java | visola/family-menu | /src/main/java/com/github/visola/familymenu/config/GlobalSecurityConfiguration.java | UTF-8 | 1,103 | 2.046875 | 2 | [] | no_license | package com.github.visola.familymenu.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManage... | true |
673bcc557e72c9c3f2207cda84a825bb9faffc04 | Java | Shaho666/etsys | /etsys-orm/src/main/java/com/etsys/orm/mapper/TbTestPaperMapper.java | UTF-8 | 1,193 | 1.789063 | 2 | [] | no_license | package com.etsys.orm.mapper;
import com.etsys.orm.pojo.TbTestPaper;
import com.etsys.orm.pojo.TbTestPaperExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface TbTestPaperMapper {
int countByExample(TbTestPaperExample example);
int deleteByExample(TbTestPaperE... | true |
7a5b31b5c15a7ed9259422c1370df7a5449dac8d | Java | ElliotAlexander/seg-runway-redeclaration-tool | /src/main/java/RunwayRedeclarationTool/Models/Runway.java | UTF-8 | 511 | 3.046875 | 3 | [] | no_license | package RunwayRedeclarationTool.Models;
// Models a physical runway and holds two VirtualRunways (for the two orientations)
public class Runway {
public VirtualRunway leftRunway;
public VirtualRunway rightRunway;
public Runway(VirtualRunway leftRunway, VirtualRunway rightRunway) {
this.leftRunway ... | true |
2e4c215c24d3f64d8a1c6794db9c2f833c5f9154 | Java | javasuresh91/SpringMicroService | /EX_12_MS_CurrenyExchangeService/src/main/java/com/demo/microservice/EX_12_MS_CurrenyExchangeService/controller/CurrencyexchangeController.java | UTF-8 | 2,209 | 2.484375 | 2 | [] | no_license | package com.demo.microservice.EX_12_MS_CurrenyExchangeService.controller;
import java.math.BigDecimal;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotati... | true |
224ca1d1eb0f7fdd5558c808da6be15edb50e222 | Java | AnZhuJun/anzj | /src/three/test.java | UTF-8 | 237 | 2.390625 | 2 | [] | no_license | package three;
public class test {
public static void main(String[] args) {
String a = "aaa";
change(a);
System.out.println(a);
}
public static void change(String str){
str = "bbb";
}
}
| true |
ee0cc3e9c60ccff148015452d8c948ab4553f0e5 | Java | alfchen/Hackathon2014Winter | /src/com/barracuda/contest2014/Message.java | UTF-8 | 155 | 1.859375 | 2 | [] | no_license | package com.barracuda.contest2014;
public abstract class Message {
public int id;
public String type;
@Override
public abstract String toString();
}
| true |
fa3fc962516e185fd0246368d803ddcd5327d30d | Java | KhalefAhmed/critter | /src/main/java/com/udacity/jdnd/course3/critter/repository/CustomerRepository.java | UTF-8 | 621 | 2.171875 | 2 | [
"MIT"
] | permissive | package com.udacity.jdnd.course3.critter.repository;
import com.udacity.jdnd.course3.critter.entity.Customer;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import java.util.Optional;
public i... | true |
b18c540f9ec918f2b44607795031bc8e396b7c67 | Java | kuzloivan/WeatherTest | /app/src/main/java/com/kit/testdd/MainActivity.java | UTF-8 | 2,060 | 2.078125 | 2 | [] | no_license | package com.kit.testdd;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;... | true |
0bf779b044d870542bb034e0c8928bef20f2378f | Java | springwindyike/ad-server | /AdAdmin/src/main/cn/adwalker/ad/admin/ad/controller/AdController.java | UTF-8 | 11,529 | 1.78125 | 2 | [] | no_license | /**
*
*/
package cn.adwalker.ad.admin.ad.controller;
import java.io.IOException;
import java.util.Date;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
... | true |
f1559f13d88b605e31202d80bd0fd48e790185bf | Java | moiseyenko/FinalProject | /src/by/epam/hotel/command/impl/client/ApproveOrderCancelCommand.java | UTF-8 | 3,291 | 2.296875 | 2 | [] | no_license | package by.epam.hotel.command.impl.client;
import java.math.BigDecimal;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import by.epam.hotel.command.ActionCommand;
import by.epam.hotel.entity.FullInfoOrder;
import by.epam.hotel.entity.Router;
import by.epam... | true |
a16860e38b9a9c3ff2777373403439a167a7386b | Java | grapemix/aria2-android-client | /src/org/mariotaku/aria2/android/NewDownloadActivity.java | UTF-8 | 282 | 1.640625 | 2 | [] | no_license | package org.mariotaku.aria2.android;
import org.mariotaku.actionbarcompat.app.ActionBarActivity;
import android.os.Bundle;
public class NewDownloadActivity extends ActionBarActivity {
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
}
}
| true |
39027f20c8649baa42038757c2efc0b9681e5e1a | Java | mumian123/Java-50- | /Program50.java | GB18030 | 1,627 | 3.53125 | 4 | [] | no_license | package program;
import java.io.*;
public class Program50 {
String[] number = new String[5];
String[] name = new String[5];
float[][] grade = new float[5][3];
float[] sum = new float[5];
void input() throws IOException{
BufferedReader bReader = new BufferedReader(new InputStreamReader(System.in));
... | true |
2aa2e9ba4b2041b79b6d668779f24aae7060966a | Java | SolutionTag/fees_corner_at_developingstage | /FeesCornerStageOne/serverstartup/src/com/feescorner/serverstartup/dbUtils/ApplicationUtills.java | UTF-8 | 7,359 | 2.03125 | 2 | [] | no_license | /**
*
CODED BY CODED DATE VERSION MADE_CHANGES
Aniruthan Dec 25, 2014 TODO
*/
package com.feescorner.serverstartup.dbUtils;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.... | true |
4cced470a19ae0789a518d5b259970d4aabff323 | Java | useful-toys/netbeans-rcp-toys | /Platform-Toys/Platform/src/org/usefultoys/netbeansrcp/platform/cookies/impl/LookupWrapper.java | UTF-8 | 4,411 | 2.0625 | 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 org.usefultoys.netbeansrcp.platform.cookies.impl;
import org.usefultoys.netbeansrcp.platform.cookies.spi.ContextFilter;
import... | true |
3459a65e7ccbde987a978927fa565b53c97860ca | Java | SilenceBo88/backstage | /src/main/java/com/zb/backstage/service/impl/SysPermServiceImpl.java | UTF-8 | 561 | 1.679688 | 2 | [] | no_license | package com.zb.backstage.service.impl;
import com.zb.backstage.dao.db1.SysPermMapper;
import com.zb.backstage.model.SysPerm;
import com.zb.backstage.service.SysPermService;
import com.zb.backstage.core.common.AbstractService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
/**
* @Des... | true |
e9255d4a6ef8aa1515d80fc2b90d3c6b958ab3ab | Java | Sivious/PlanetaBob | /app/src/main/java/com/planetabob/planetabob/TickerList.java | UTF-8 | 3,749 | 2.390625 | 2 | [] | no_license | package com.planetabob.planetabob;
import java.util.ArrayList;
import java.util.List;
public final class TickerList {
public static final String MARKETS[] = {
"NYSE",
"London", // En MainFragment.java establece el número de filas con NUM_ROWS.... si no coinciden, falla la carga de imáge... | true |
b27f0e51878ad96ac2ec6719862b0acc505af51a | Java | GabeOchieng/ggnn.tensorflow | /data/libgdx/MockGraphics_getGL20.java | UTF-8 | 53 | 1.710938 | 2 | [] | no_license | @Override
public GL20 getGL20() {
return null;
}
| true |
91bf8e1abe2d66100687484e0317a833c2e6da17 | Java | socram2809/Matriculas-Core | /src/main/java/br/com/marcos/matriculascore/dto/AtualizarTurmaDTO.java | UTF-8 | 1,630 | 2.46875 | 2 | [] | no_license | package br.com.marcos.matriculascore.dto;
import java.io.Serializable;
import java.util.List;
import java.util.stream.Collectors;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import br.com.marcos.matriculascore.dominio.Aluno;... | true |
8e3c4a22d621c1735b514fe8442405f962f41f80 | Java | Frankcs96/Java-exercises | /Exercises/Unit 08 Functions/Exercise51.java | UTF-8 | 635 | 3.75 | 4 | [] | no_license |
public class Exercise51 {
public static void main(String[] args) {
System.out.println("Generated array: ");
int[] array = arrays.OneDimension.generateArray(10, 2, 100);
for (int i : array) {
System.out.print(i + " ");
}
for (int i : array) {
System.out.print("\nThe number " + i);
... | true |
98a949983afef261611f88ae46d76e282e86005e | Java | crnwtxxi/TgpmService | /src/main/java/com/example/tgpmsystem/mapper/UserProjMapper.java | UTF-8 | 653 | 1.789063 | 2 | [] | no_license | package com.example.tgpmsystem.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.tgpmsystem.pojo.UserProj;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
@Mapper
public interface UserProjMapper ext... | true |
694c5a4fdcb349ad2634ba41fbb55da94a4a7b06 | Java | ganeshgitrepo/df4j | /df4j-core/src/com/github/rfqu/df4j/core/RunnableTask.java | UTF-8 | 1,615 | 2.4375 | 2 | [] | no_license | /*
* Copyright 2011 by Alexei Kaigorodov
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in ... | true |
5486fad05730038f4389c356d3a30ad160ad1bb4 | Java | javamind/confman-addons | /confman-java/src/main/java/com/ninjamind/confman/operation/AbstractConfmanOperation.java | UTF-8 | 1,144 | 2.890625 | 3 | [] | no_license | package com.ninjamind.confman.operation;
import com.ninjamind.confman.utils.Preconditions;
/**
* An operation that Confman will be execute.
* @author Guillaume EHRET
*/
public abstract class AbstractConfmanOperation<O, T> {
public static final int DEFAULT_PORT = 8080;
public static final String DEFAULT_TYP... | true |
9109a0fec4fc0a7192ccef9356896d9337ac9805 | Java | TomeOkin/JoCalendarView | /app/src/main/java/com/tomeokin/jocalendarview/MainActivity.java | UTF-8 | 2,677 | 2.4375 | 2 | [] | no_license | package com.tomeokin.jocalendarview;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.ViewGroup;
import com.tomeokin.utils.jocalendarutils.DeferredHolidaysUtils;
import com.tomeokin.widget.jocalendarview.BaseCalendarView;
import java.util.Calendar;
public class MainActivi... | true |
6eb57cafa129c56ae307572dbe043bdeb3d01653 | Java | kartikhimself/carryu-android | /carryu/src/co/zoyi/carryu/Application/Views/Activities/FacebookPageActivity.java | UTF-8 | 915 | 1.9375 | 2 | [] | no_license | package co.zoyi.carryu.Application.Views.Activities;
import android.os.Bundle;
import co.zoyi.carryu.Application.Etc.CURouter;
import co.zoyi.carryu.Application.Views.Commons.Refreshable;
import co.zoyi.carryu.Application.Views.Fragments.WebViewFragment;
import co.zoyi.carryu.R;
public class FacebookPageActivity exte... | true |
5d222a1c90c2c49bbbaf26c12852290ef5b0ed2a | Java | jguedes/projetoDWFinancas | /projetoDWFinancas/src/dao/JDBCReceitaDao.java | UTF-8 | 5,456 | 3.03125 | 3 | [] | no_license | package dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import model.Conta;
import model.Descricao;
import model.Receita;
public class JDBCReceitaDao implements ReceitaDao {
Connection co... | true |
22095ee98051af06f0be5754e24788ec4ad1055a | Java | dylanjtastet/ExtensibleSerializer | /src/serializer/value/StringSerializer.java | UTF-8 | 1,318 | 2.671875 | 3 | [] | no_license | package serializer.value;
import java.io.StringReader;
import java.nio.ByteBuffer;
import java.util.List;
import util.StringReaderUtil;
import util.annotations.Comp533Tags;
import util.annotations.Tags;
@Tags({Comp533Tags.STRING_SERIALIZER})
public class StringSerializer extends AbstractValueSerializer {
@Override... | true |
3b2e763b14674ad0fe1f80ef4cf3cb437c3fb8be | Java | MustafaItayem/fizz-buzz | /src/main/java/project/FizzBuzz.java | UTF-8 | 117 | 2.296875 | 2 | [] | no_license | package project;
public class FizzBuzz {
public String interpret(int numberToSay) {
return "1";
}
}
| true |
9848151ae7c26d7f42156e5b00d99808f2d8fa94 | Java | AndersonGarrote/TrabalhoCompiladores | /F01_Anderson_Andre_GabrielEiji_Thiago/AST/IfStatement.java | UTF-8 | 1,236 | 3.140625 | 3 | [] | no_license | /*
Anderson Pinheiro Garrote RA: 743505
Andre Matheus Bariani Trava RA: 743506
Gabriel Eiji Uema Martin RA: 743536
Thiago Yussuki Uehara RA:743599
*/
package AST;
import java.util.List;
public class IfStatement extends Statement {
private Expression expression;
private List<Statement> statementsTrue;
private ... | true |
e1d1d629059d53cd92aac3a38e7ded70b3746f62 | Java | JorgeRodriguez21/StockHawk | /app/src/main/java/com/sam_chordas/android/stockhawk/data/WidgetService.java | UTF-8 | 397 | 1.84375 | 2 | [] | no_license | package com.sam_chordas.android.stockhawk.data;
import android.content.Intent;
import android.widget.RemoteViewsService;
/**
* Created by negri on 22/05/2016.
*/
public class WidgetService extends RemoteViewsService {
@Override
public RemoteViewsFactory onGetViewFactory(Intent intent) {
return (new ... | true |
0f7d5e7b1dfc53ab3d95b9a3943f2a5ffc0afe30 | Java | liuyunqiang2016/myth_pro | /myth_pro/src/com/viatt/zhjtpro/forms/TblServiceDimForm.java | UTF-8 | 3,206 | 1.828125 | 2 | [] | no_license | package com.viatt.zhjtpro.forms;
public class TblServiceDimForm extends BaseForm {
private String serCode;
private String titile;
private String type;
private String context;
private String createTime;
private String createUsr;
private String chkState;
private String chkUsr;
private String chkTim... | true |
f1b6fcbf86511742eaa75b68564534c15ab82524 | Java | ParthPancholi/janrain4j | /src/test/java/com/googlecode/janrain4j/conf/ConfigTest.java | UTF-8 | 4,172 | 2.234375 | 2 | [
"Apache-2.0"
] | permissive | /* Copyright 2010 Marcel Overdijk
*
* 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 t... | true |
98a605e9fc4f4be75a7aca6238f72341e8a1ef30 | Java | Biu-G/combostuck | /classes-dex2jar_source_from_jdcore/com/dropbox/core/v2/files/CommitInfoWithProperties.java | UTF-8 | 7,721 | 1.820313 | 2 | [] | no_license | package com.dropbox.core.v2.files;
import com.dropbox.core.stone.StoneSerializer;
import com.dropbox.core.stone.StoneSerializers;
import com.dropbox.core.stone.StructSerializer;
import com.dropbox.core.v2.fileproperties.PropertyGroup;
import com.dropbox.core.v2.fileproperties.PropertyGroup.Serializer;
import com.faste... | true |
1eae3d4e244103cf6eabd92c0129bcb90f12d981 | Java | inkyu/TIL_JTAPI | /src/main/java/com/avaya/jtapi/tsapi/csta1/LucentV7OriginalCallInfo.java | UTF-8 | 3,012 | 1.867188 | 2 | [] | no_license | package com.avaya.jtapi.tsapi.csta1;
import com.avaya.jtapi.tsapi.asn1.ASNBoolean;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.Collection;
public final class LucentV7OriginalCallInfo extends LucentV5OriginalCallInfo {
private LucentDeviceHistoryEntry[] asn_de... | true |
9003e71cff992153676987b278d7b46828d52479 | Java | YasirChoudhary/J2EE | /JDBC/CallableStatement/Sample4CallableStmt.java | UTF-8 | 1,539 | 3.0625 | 3 | [] | no_license |
import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.Driver;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
public class Sample4CallableStmt {
public static void main(String[] args) {
Connection con=null;
CallableStatement cstmt=null;
Resul... | true |
b6811796d13f9d26ce1229cad3fc9aa7c6c5b5a7 | Java | skykks8544/SparrowTest | /src/com/fasoo/sem/helper/jcert/SQL_INJECTION_HIBERNATE_TestCase.java | UTF-8 | 1,988 | 2.265625 | 2 | [] | no_license | package com.fasoo.sem.helper.jcert;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.StatelessSession;
import org.hibernate.cfg.Configuration;
//Cert : IDS00-J
... | true |
28d93b50551906e7a75d17c29bb40faf2f659f26 | Java | Rozmarynka19/Chronos | /ChronosApp/app/src/main/java/com/example/chronosapp/ui/itemList/Item.java | UTF-8 | 3,572 | 2.734375 | 3 | [] | no_license | /*
* Copyright (C) 2018 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 agree... | true |
cc5d2d8bb6e8cc712a2a4d5cac3666184bb56f0d | Java | jaro1989/Day4ProjectMentuz | /src/by/javatr/task2/runner/Runner.java | UTF-8 | 1,243 | 3.390625 | 3 | [] | no_license | package by.javatr.task2.runner;
import by.javatr.task2.util.JaggedArraySorter;
public class Runner {
public static void main(String[] args) {
JaggedArraySorter jaggedArrayBubbleSorter = new JaggedArraySorter(JaggedArraySorter.BUBBLE);
JaggedArraySorter jaggedArrayBubbleSorter1 = new JaggedArraySor... | true |
155188ed7aa231a9d6cfb3930b3ffc1946bd1307 | Java | KeJemas/thriftDemo | /demothrift/thriftclient/src/main/java/ut/pcmspf/common/rpc/thrift/client/discovery/ThriftNacosServerUtils.java | UTF-8 | 2,824 | 2.25 | 2 | [] | no_license | package ut.pcmspf.common.rpc.thrift.client.discovery;
import java.net.Inet6Address;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.Arrays;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import o... | true |
8613c45fc14418b5d9313140da2dd6f58811e0b2 | Java | Vectis99/sshs-2016-willamette | /src/com/shadow53/libs/Convert.java | UTF-8 | 247 | 2.875 | 3 | [
"MIT"
] | permissive | package com.shadow53.libs;
public class Convert {
public static double FahrenheitToCelsius(double fahr){
return (fahr - 32) * (5/9.0);
}
public static double CelsiusToFahrenheit(double cels){
return cels * (9/5.0) + 32;
}
}
| true |
b65606393bad591ed5244fb1c2abb3d5710ad9ef | Java | adorsys/multibanking | /onlinebanking-hbci4java/src/test/java/de/adorsys/multibanking/hbci/job/ScaAwareJobTest.java | UTF-8 | 1,367 | 1.8125 | 2 | [] | no_license | package de.adorsys.multibanking.hbci.job;
import de.adorsys.multibanking.domain.request.TransactionRequest;
import de.adorsys.multibanking.domain.response.AccountInformationResponse;
import de.adorsys.multibanking.domain.transaction.LoadAccounts;
import de.adorsys.multibanking.hbci.HbciBpdCacheHolder;
import org.junit... | true |
212aee3420c7960ea881a3246ede8b210c87070a | Java | liziyanyumeng/Exam_everyday | /app/src/main/java/com/example/lliziyan20200320/Show0325/bean/BannerBean.java | UTF-8 | 204 | 1.632813 | 2 | [] | no_license | package com.example.lliziyan20200320.Show0325.bean;
import java.io.Serializable;
import java.util.ArrayList;
public class BannerBean implements Serializable {
public ArrayList<ResultBean> result;
}
| true |
5e853b094d22bdb3f765e01a2060d1f5d89b5f89 | Java | affected/WicedSense | /app/src/main/java/com/broadcom/app/wicedsmart/ota/ui/OtaProgressFragment.java | UTF-8 | 3,380 | 2.03125 | 2 | [] | no_license | /******************************************************************************
*
* Copyright (C) 2014 Broadcom Corporation
*
* 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
*
* ... | true |
b104c048eda4293f002fffde2f366044845af9ad | Java | Guerline/alwaysOnTime | /workspaceAndroid/src/com/mymorningroutine/AlarmStatusActivity.java | UTF-8 | 17,396 | 1.765625 | 2 | [] | no_license | package com.mymorningroutine;
import com.mymorningroutine.utils.SettingsEnum;
import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.app.Activity;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;... | true |
1bceb4c020dfa80f34718d61615782e7119920d1 | Java | MelisseCabral/Praticas-Lab.-Prog.-2 | /lab04/Fibonacci.java | UTF-8 | 685 | 3.921875 | 4 | [] | no_license | package lp2.lab04;
/**
* Classe gera sequencia de fibonacci
*
* @author Melisse Cabral
*
*/
public class Fibonacci {
private String termos;
private int n;
public Fibonacci(int n){
this.n = n;
}
/** metodo gera o proximo numero da sequencia*/
private long fib(int n) {
if (n <= 1){
return n;
}else... | true |
bf92d1ee80bed95066e5450ca05a7666b39ec5e9 | Java | sshang0309/cs2103_CE2 | /src/TextBuddyTest.java | WINDOWS-1250 | 4,306 | 3.21875 | 3 | [] | no_license | import static org.junit.Assert.assertEquals;
import java.io.IOException;
import org.junit.Before;
import org.junit.Test;
public class TextBuddyTest {
@Before
public void setUp() throws Exception {
String[] args = {"myfile.txt"};
TextBuddy.main(args);
TextBuddy.executeCommand("clear");
}
... | true |
98762d482a09eb558344ecd5298edbd8a8092b8e | Java | KpuBeTka/Labs | /laborator4/Student.java | UTF-8 | 2,107 | 3.6875 | 4 | [] | no_license | package laborator4;
import java.util.Scanner;
import java.util.ArrayList;
class Student{
String nume, grupa;
int an;
double notaSem1, notaSem2;
Student(){
}
Student(String nume, String grupa, int an, double notaSem1, double notaSem2){
this.nume = nume;
this.grupa = grupa;
... | true |
b11d0b68fdbb85947d54e2ac304509fad725aa67 | Java | Demych/CSV_file | /src/main/java/Writer.java | UTF-8 | 628 | 2.5 | 2 | [] | no_license | /**
* Created by Asus on 21.06.2017.
*/
abstract public class Writer {
private StringBuffer sb;
private String outputFile;
public Writer(StringBuffer sb, String outputFile) {
this.sb = sb;
this.outputFile = outputFile;
}
public StringBuffer getSb() {
return sb;
}
... | true |
06fc72b17f032a918c7e9c910bce427a8700840d | Java | h-j-k/mapextractor | /src/main/java/com/ikueb/mapextractor/MapExtractor.java | UTF-8 | 21,588 | 2.890625 | 3 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2015 h-j-k. All Rights Reserved.
*
* 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 app... | true |
4e600392dd4c1d15cf8033bfc4f68bc9868a780d | Java | umjammer/vavi-util-screenscraping | /src/test/java/vavix/util/screenscrape/annotation/JsonPathParserTest.java | UTF-8 | 2,554 | 2.359375 | 2 | [] | no_license | /*
* Copyright (c) 2019 by Naohide Sano, All rights reserved.
*
* Programmed by Naohide Sano
*/
package vavix.util.screenscrape.annotation;
import java.util.concurrent.atomic.AtomicInteger;
import org.junit.jupiter.api.Test;
import com.jayway.jsonpath.JsonPath;
import static org.junit.jupiter.api.Assertions.as... | true |
2d1b4086ca2b393b723184c8257a3bb40cba50c2 | Java | el173/TRAFIC | /TRAFIC web_app/TRAFFIC/src/java/controller/officer/action/GetDetails.java | UTF-8 | 2,669 | 2.203125 | 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 controller.officer.action;
import controller.Tool;
import java.util.ArrayList;
import model.db.Driver;
import model.db.Fine;
i... | true |
c564adb92849c7dd9bb40b297e042047e0f1b2d4 | Java | ColinOOOOOh/hrSystem | /src/java/action/GetRegistInfoAction.java | UTF-8 | 3,729 | 2.109375 | 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 action;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import net.sf.json.JSONArray;
import n... | true |
85bc4d91cb5dfc258b051eb5ad0eff925e886aa5 | Java | wrcgb781/mlogic | /src/mahjonglogic/MahjongLogic.java | UTF-8 | 1,059 | 2.171875 | 2 | [] | no_license | package mahjonglogic;
public class MahjongLogic {
protected String loginId = null;
protected String loginPassword = null;
protected String drmlUrl = null;
protected String saveLoginId = null;
MahjongLogic(){
// getProperties();
}
// protected void getProperties() {
// Properties propert... | true |
0f92fac5e0832968376bd164b84b019ff72af2d2 | Java | pszczepanski96/javaee | /Zad03/src/main/java/pl/pszczepanski/javaee/zad03/domain/Shoe.java | UTF-8 | 1,302 | 2.59375 | 3 | [] | no_license | package pl.pszczepanski.javaee.zad03.domain;
import java.util.Date;
public class Shoe {
private int id;
private String producer;
private Date productionDate;
private double price;
private int quantity;
private boolean waterproof;
public Shoe(int id, String producer, Date productionDate, int quantity, double ... | true |
ad86dd44e055a4cc2bae960682664cb06721bf78 | Java | PHCarmo/JoaoDeBarro | /src/main/java/br/com/fatecmc/joaodebarro/control/command/AbstractCommand.java | UTF-8 | 262 | 1.773438 | 2 | [] | no_license | package br.com.fatecmc.joaodebarro.control.command;
import br.com.fatecmc.joaodebarro.control.Facade;
import br.com.fatecmc.joaodebarro.control.IFacade;
public abstract class AbstractCommand implements ICommand {
protected IFacade facade = new Facade();
}
| true |
454baf265b6e50416bd27f4ce547d4bbe738863f | Java | bryan2459/Movies | /app/src/main/java/com/go2themovies/example/bryanpc/movies/MovieTrailer.java | UTF-8 | 6,585 | 2.25 | 2 | [] | no_license | package com.go2themovies.example.bryanpc.movies;
import android.content.Intent;
import android.content.SharedPreferences;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.... | true |
518a90379b420e46ce7ca034bbf30b3f9f11ea2c | Java | johnsonWTC/100dayofcodeDay00-js- | /restful/src/main/java/com/example/restful/ItemAddingController.java | UTF-8 | 874 | 2.15625 | 2 | [] | no_license | package com.example.restful;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@RestController
@RequestMapping("items")
public class ItemAddingController {
@Autowired
private ticketBookingService ticketBookingService;
@PostMapping("create"... | true |
56f060cd1cf89b2a72cd91792e3e64389acb95c6 | Java | SuperVarchar/GreenDaoDemo | /GreenDaoDemo/icore-map/src/main/java/com/hnshituo/icore_map/base/bean/LoginUser.java | UTF-8 | 1,217 | 2.0625 | 2 | [] | no_license | package com.hnshituo.icore_map.base.bean;
import com.google.gson.annotations.Expose;
/**
* @author Wzh
* @date 2016/7/5 8:51
*/
public class LoginUser {
/**
* id : 帐号
* password : 密码
* wrk_ord : 班次
* wrk_grp : 班组
* wrk_date : 当班日期
*/
@Expose
public String id;
@Expose
... | true |
bfee43e9e7b9f0dd01373d8a7025ccaed6b63592 | Java | antoniosj/Cracking-the-Coding-Interview | /Arrays and Strings/Question9.java | UTF-8 | 669 | 3.96875 | 4 | [] | no_license | package io.github.antoniosj.strings;
/* String rotation
* Assume you have a method isSubstring which checks if one word is a substring
* of another. Given two strings, s1 and s2, wirte code to check if s2 is a
* rotation of s1 using only one call isSubstring.
*/
public class Question9 {
public sta... | true |
2f1f1c78c2eb6da8a7e8621f3f72219786128cec | Java | JoingProject/joing | /Joing-Kernel/src/org/joing/kernel/jvmm/RuntimeFactory.java | UTF-8 | 1,748 | 2 | 2 | [] | no_license | /*
* Copyright (C) 2007, 2008 Join'g Team Members. All Rights Reserved.
* Join'g Team Members are listed at project's home page. By the time of
* writting this at: https://joing.dev.java.net/servlets/ProjectMemberList.
*
* This file is part of Join'g project: www.joing.org
*
* GNU Classpath is free software; yo... | true |
306ddbb21652c494b8d4e31205b84041a503243a | Java | tadite/travel-planner | /src/main/java/edu/nc/travelplanner/model/source/filter/ListToJsonObjectListResponseFilter.java | UTF-8 | 2,786 | 2.453125 | 2 | [] | no_license | package edu.nc.travelplanner.model.source.filter;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import edu.nc.travelplanner.model.response.Response;
import edu.nc.tr... | true |
b251f765a35621ef18c7789fd21bbcc2803b5a65 | Java | julijaschwarz/screenshot-maker | /src/MyThread.java | UTF-8 | 1,351 | 2.703125 | 3 | [
"MIT"
] | permissive | import com.dropbox.core.DbxRequestConfig;
import com.dropbox.core.v2.DbxClientV2;
import javax.imageio.ImageIO;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.*;
import java.text.SimpleDateFormat;
import java.util.Date;
public class MyThread extends Thread {
private static final String ACC... | true |
c7b8fc968103f69aff2f44f788f030f5a1ef6d19 | Java | DSA-EETAC-GUILLEMMIKELALEIX/Eetac-emonAndroid | /app/src/main/java/com/example/aleix/myapplication/Entity/User.java | UTF-8 | 1,363 | 2.640625 | 3 | [] | no_license | package com.example.aleix.myapplication.Entity;
public class User {
private int id;
private String nombre;
private String contrasena;
private String email;
private int admin=0;
public User(){}
public User(String nombre, String contrasena, String email){
this.nombre=nombre;
... | true |