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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
3ae5f1a083bde62a52876c37cd5e031ff792c1f5 | Java | bradleywillard/master | /JavaDS/src/org/bwillard/ccsf/course/cs111c/_9_hash_tables/HashTable.java | UTF-8 | 1,893 | 3.359375 | 3 | [] | no_license | package org.bwillard.ccsf.course.cs111c._9_hash_tables;
public class HashTable<T> {
//private final static int TABLE_SIZE = 128;
private int tableSize;
private LinkedAddress[] table;
public HashTable(int tableSize) {
table = new LinkedAddress[tableSize];
for (int i = 0; i < tableSize; i++) {
table[i] = nu... | true |
258001189de45d4b272dae6936b04f405fc3586b | Java | romankoval/botbuilder-java | /libraries/botbuilder-schema/src/main/java/com/microsoft/bot/schema/models/PaymentCurrencyAmount.java | UTF-8 | 2,196 | 2.0625 | 2 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
... | true |
ad6ca9eeb50dd908fca529cff9942ce45560243b | Java | ApictoSole/wsb | /src/com/company/Main.java | UTF-8 | 2,699 | 2.953125 | 3 | [] | no_license | package com.company;
import com.company.creatures.Animal;
import com.company.creatures.Pet;
import com.company.devices.Car;
import com.company.devices.Diesel;
import com.company.devices.Electric;
import com.company.devices.LPG;
import java.time.format.DateTimeFormatter;
import com.company.devices.Phone;
public class... | true |
86f44e2f21b0766d3c3f544c0a0782a7ca6a3944 | Java | fanloveoupao/MVP | /app/src/main/java/com/ysnet/mvp/MainActivity.java | UTF-8 | 571 | 1.890625 | 2 | [] | no_license | package com.ysnet.mvp;
import android.os.Bundle;
import com.example.presenter.MainActivityPresenter;
public class MainActivity extends BasePresenterActivity<MainActivityPresenter.MainActivityView, MainActivityPresenter>
implements MainActivityPresenter.MainActivityView {
@Override
protected void onC... | true |
84fcad25865abd5c64264f5e4a70d0307da3940b | Java | thinkmobiles/OurCity_android | /app/src/main/java/com/crmc/ourcity/loader/MenuLoader.java | UTF-8 | 1,200 | 2.171875 | 2 | [] | no_license | package com.crmc.ourcity.loader;
import android.content.Context;
import android.os.Bundle;
import com.crmc.ourcity.global.Constants;
import com.crmc.ourcity.rest.RestClientApi;
import com.crmc.ourcity.rest.api.CityApi;
import com.crmc.ourcity.rest.request.menu.CityModel;
import com.crmc.ourcity.rest.request.menu.Resi... | true |
00013d034e8680d8e4db806092d9b95a880ef6ab | Java | second-Superman/GHH_TakeTicket | /src/cn/ucai/manage/view/ShuJuTJ_GUI.java | UTF-8 | 5,091 | 2.5 | 2 | [] | no_license | package cn.ucai.manage.view;
import java.awt.BorderLayout;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.ImageIcon;
import javax.swing.JTabbedPane;
import javax.swing.JButton;
import java.awt.Font;... | true |
7455cdf1d02cd2dde41a3127f15adb8cfaee919a | Java | EMResearch/EMB | /jdk_11_maven/cs/rest-gui/market/market-core/src/test/java/market/service/CartServiceTest.java | UTF-8 | 8,353 | 2.28125 | 2 | [
"MIT",
"Apache-2.0",
"GPL-1.0-or-later",
"LGPL-2.0-or-later"
] | permissive | package market.service;
import market.FixturesFactory;
import market.dao.CartDAO;
import market.domain.Cart;
import market.domain.CartItem;
import market.domain.Distillery;
import market.domain.Product;
import market.domain.Region;
import market.domain.UserAccount;
import market.exception.UnknownEntityException;
impor... | true |
acb0e6778a720ea26e3ec88d10b883cc490b1242 | Java | virutbk94/sync-service | /src/main/java/shippo/rider_service/sync/actor/TransportationTaskSyncActor.java | UTF-8 | 7,047 | 1.976563 | 2 | [] | no_license | package shippo.rider_service.sync.actor;
import akka.actor.Props;
import com.avaje.ebean.EbeanServer;
import com.google.gson.Gson;
import org.eclipse.jetty.client.api.ContentResponse;
import org.json.JSONObject;
import org.slf4j.LoggerFactory;
import shippo.global.PostgressDbConf;
import shippo.global.Utils;
import sh... | true |
1bc72fd43727dca77ed2611f5d179559cfddc934 | Java | vuxquang89/project_HumanResources_java | /department/Position.java | UTF-8 | 1,101 | 2.46875 | 2 | [] | no_license | package com.vudqfx.humanresources.department;
public class Position {
private String id;
private String position;
private double resSalary;//responsibility salary
private String keywordDepartment;
public Position(String id, String position, double resSalary, String keywordDepartment) {
thi... | true |
3d802fafab59faeb3cdd2eb67bfaa90a8e1f2772 | Java | mysoar/java | /20191121/src/org/javaro/lecture/H11_1_1.java | UTF-8 | 1,131 | 3.015625 | 3 | [] | no_license | package org.javaro.lecture;
import java.io.*;
import java.io.IOException;
public class H11_1_1 {
public static void main(String[] args) {
// TODO Auto-generated method stub
float[][] indat = new float[10][3];
try {
File csv = new File("C:\\Users\\mysoa\\Desktop\\1.csv");
BufferedReader br = ... | true |
313d22e64e60fad38169d985560ff4ccc51992bc | Java | prathibasuresh/RealTimeProjects | /src/Banking_Project/ibank.java | UTF-8 | 82 | 2.203125 | 2 | [] | no_license | package Banking_Project;
public interface ibank {
int getRateOfInterst();
}
| true |
0869d4cb5edad93f0c3b00d74c7e4b1f88e56bfb | Java | phoenix110/mailing | /modules/web/src/com/lokoproject/mailing/web/screens/ExtAppMainWindow.java | UTF-8 | 1,278 | 1.578125 | 2 | [] | no_license | package com.lokoproject.mailing.web.screens;
import com.haulmont.cuba.core.global.AppBeans;
import com.haulmont.cuba.core.global.UserSessionSource;
import com.haulmont.cuba.gui.components.*;
import com.haulmont.cuba.gui.executors.BackgroundWorker;
import com.haulmont.cuba.gui.icons.Icons;
import com.haulmont.cuba.gui.... | true |
3e196c24c9473612067758140b4c12edf1a4dc64 | Java | sebhofmann/urncorrecterplugin | /src/main/java/org/mycore/MCRURNCorrecterPlugin.java | UTF-8 | 4,847 | 1.929688 | 2 | [] | no_license | package org.mycore;
import java.util.ArrayList;
import java.util.Date;
import java.util.Optional;
import java.util.stream.Stream;
import javax.persistence.EntityManager;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.mycore.access.MCRAccessException;
import org.mycore.... | true |
bbc850544d6bf856d8733660d50e51de7d8bd873 | Java | wkappel/AMET | /AMETJavaGUI/src/ametjavagui/AQAdvancedForms/ModelEvalOptions.java | UTF-8 | 37,692 | 1.875 | 2 | [
"CC0-1.0"
] | permissive | /*
* 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 ametjavagui.AQAdvancedForms;
import ametjavagui.AirQualityForm;
/**
*
* @author MMORTO01
*/
public class ModelEvalOptions ... | true |
76f56996000fd67b272b866782dc6b0eeb215c9b | Java | jberolm/SC_030 | /CocheRapido.java | UTF-8 | 1,740 | 3.09375 | 3 | [] | no_license |
/**
* Write a description of class CocheRapido here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class CocheRapido extends Coche
{
private double nitro;
/**
* CocheRapido Constructor
*
*/
public CocheRapido(){
super();
nitro=80.0;
}
... | true |
b053c7e57a9d62a2e086093679612979b89f0d20 | Java | nightwolf93/Wakxy-Core-Decompiled | /1_39_120042/com/ankamagames/framework/ai/criteria/antlrcriteria/CriteriaExecutionException.java | UTF-8 | 211 | 1.75 | 2 | [] | no_license | package com.ankamagames.framework.ai.criteria.antlrcriteria;
public class CriteriaExecutionException extends RuntimeException
{
public CriteriaExecutionException(final String s) {
super(s);
}
}
| true |
011f7ef2bda7e92b381f6ccdd91d1f0fabf6e1a2 | Java | tianagreisel/CSC-143-data-structures | /EmptyQueueException.java | UTF-8 | 748 | 3.484375 | 3 | [] | no_license | package csc143.data_structures;
/**
* This class extends DataStructureException and constructs a new exception with the specified detail message.
* This exception is created (thrown) when a Queue is empty and methods are trying to be performed on the Queue like
* removing an object from the Queue.
*
* @author... | true |
d7688e0a74f19db54d61f8abb914d53865663508 | Java | Anonycoders/organizations | /src/test/java/com/hospitad/organization/controllers/OrganizationControllersTest.java | UTF-8 | 9,603 | 2.0625 | 2 | [] | no_license | package com.hospitad.organization.controllers;
import com.hospitad.organization.models.Organization;
import com.hospitad.organization.models.Section;
import com.hospitad.organization.models.User;
import com.hospitad.organization.repositories.OrganizationRepository;
import com.hospitad.organization.repositories.UserRe... | true |
67a0ca70e0d165a0cb804b6213254b13be785b6e | Java | RamboXu/MyNote | /common_library/src/main/java/com/e/common/widget/RecordDialog.java | UTF-8 | 6,138 | 2.296875 | 2 | [] | no_license | package com.e.common.widget;
import android.app.Dialog;
import android.content.Context;
import android.os.Handler;
import android.os.Message;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import com.e.common.R;
import com.e.common.utility.CommonUtility;
import com.e.common.u... | true |
34d9edcddb00b12361a9cd3343e3bacfac8967d2 | Java | mohammedwaris/HS | /src/com/silverbrain/studio/application/HSGUIController.java | UTF-8 | 5,941 | 2.234375 | 2 | [] | no_license | package com.silverbrain.studio.application;
import javafx.application.Platform;
import javafx.scene.layout.VBox;
import javafx.scene.layout.HBox;
import javafx.scene.layout.Priority;
import javafx.scene.control.TabPane;
import javafx.scene.control.Tab;
import javafx.scene.control.SplitPane;
import javafx.scene.contr... | true |
dc6119113c839b6838f29b396afbb6a1be4f693a | Java | VethicsGit/Wordrob | /app/src/main/java/com/pro/wardrobe/Adapter/OrderHistoryAdapter.java | UTF-8 | 3,741 | 2.234375 | 2 | [] | no_license | package com.pro.wardrobe.Adapter;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.Vi... | true |
7efe7143b0b33c9405d29b71123099612d06df05 | Java | Viral-patel703/Testyourbond-aut0 | /lib/selenium-server-standalone-3.4.0/com/gargoylesoftware/htmlunit/javascript/host/html/HTMLSourceElement.java | UTF-8 | 937 | 2.046875 | 2 | [] | no_license | package com.gargoylesoftware.htmlunit.javascript.host.html;
import com.gargoylesoftware.htmlunit.html.HtmlSource;
import com.gargoylesoftware.htmlunit.javascript.configuration.JsxClass;
import com.gargoylesoftware.htmlunit.javascript.configuration.JsxConstructor;
@JsxClass(domClass=H... | true |
b2058ab9df7854cb82273cdc2cc3d30a320ae57a | Java | nuandabaobao/gitTest1 | /portal-api/src/main/java/com/tbjj/portal/filter/TokenFilter.java | UTF-8 | 665 | 1.898438 | 2 | [] | no_license | package com.tbjj.portal.filter;
import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import java.io.IOException;
/**
* Created by ebiz on 2017/7/28.
*/
@WebFilter(urlPatterns = "/api/*", filterName = "tokenFilter")
public class TokenFilter implements Filter{
@Override
public void init(Filte... | true |
ac65ac454c5e2ef1b0522227a6fad41b134626f1 | Java | Shaku2160/VideMoiLFrigo | /app/src/main/java/com/example/videmoilfrigo/ui/Connexion/ConnexionFragment.java | UTF-8 | 4,274 | 2 | 2 | [] | no_license | package com.example.videmoilfrigo.ui.Connexion;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;
import androidx.annotation.NonNul... | true |
3df48e78e3ea2066003c365c9081186fd9a844fc | Java | bocskapeter/bobomClient | /src/main/java/eu/bopet/bobom/gui/controllers/search/BomsSearchController.java | UTF-8 | 6,833 | 2.1875 | 2 | [] | no_license | package eu.bopet.bobom.gui.controllers.search;
import eu.bopet.bobom.core.entities.Boms;
import eu.bopet.bobom.core.entities.DBEntities;
import eu.bopet.bobom.core.entities.Items;
import eu.bopet.bobom.core.entities.Units;
import eu.bopet.bobom.gui.GUIContext;
import eu.bopet.bobom.gui.controllers.GUIController;
impor... | true |
37601d677545673b7011e65bb35df26ce279e8df | Java | kanetah/planH_BOOT | /src/main/java/top/kanetah/planH/service/RoleViewService.java | UTF-8 | 1,399 | 2.15625 | 2 | [] | no_license | package top.kanetah.planH.service;
import top.kanetah.planH.entity.node.Role;
import org.springframework.http.HttpStatus;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.stereotype.Service;
import org.s... | true |
b15b05b98bd51fe4bf5f20e4caf875978e32a778 | Java | fossabot/disco | /disco-framework/disco-zipkin-server-http/src/main/java/uk/co/exemel/disco/modules/zipkin/impl/http/ZipkinHttpRequestUuidResolver.java | UTF-8 | 2,667 | 1.710938 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2014, The Sporting Exchange Limited
*
* 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 applicabl... | true |
6979654be19457c08abb3b910547bc9df5caeeda | Java | arthursiq5/jLanches | /src/com/jlanches/src/model/views/AbasDaTela.java | UTF-8 | 579 | 2.046875 | 2 | [
"MIT"
] | permissive | /*
* 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 com.jlanches.src.model.views;
import javax.swing.JTabbedPane;
/**
*
* @author arthur
*/
public class AbasDaTela {
pub... | true |
5ea50f343b6a18f24512fa516297ab85dfe8eee3 | Java | pbharude/design_pattern | /structural/src/com/designpattern/structural/adapter/EmployeeClient.java | UTF-8 | 674 | 2.71875 | 3 | [] | no_license | package com.designpattern.structural.adapter;
import java.util.ArrayList;
import java.util.List;
public class EmployeeClient {
public List<Employee> getEmployeeList() {
List<Employee> employees = new ArrayList<Employee>();
Employee employeeFromDB = new EmployeeDB("1234", "John", "Wick", "jwick@chapter3.com");
... | true |
e5662a2372034bb3cc3c035627a219ccd374dbfb | Java | LaercioMSJ/Mobile-Application-Development-Android | /Assign3_MasterDetail/app/src/main/java/com/example/assign3_masterdetail/ItemListActivity.java | UTF-8 | 8,605 | 1.914063 | 2 | [] | no_license | package com.example.assign3_masterdetail;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.database.Cursor;
import android.graphics.Color;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.V... | true |
7dbb8649ef4cfcaaf322cd12cd42bd35b8b096c8 | Java | kazisrabon/eCourierNew | /app/src/main/java/com/ps/ecourier/adapter/ConsignmentListAdapter.java | UTF-8 | 3,799 | 2.1875 | 2 | [] | no_license | /*
* Copyright (c) Prokash Sarkar 2015. Contact, prokashsarkar@outlook.com.
*/
package com.ps.ecourier.adapter;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widg... | true |
7c47a785a6bae81c1ddee506811c877ad183f935 | Java | renanzinth1/vet-app-java | /app/src/main/java/br/com/renanjardel/vetappjava/activity/form/FormSubEspecieActivity.java | UTF-8 | 6,979 | 2.109375 | 2 | [] | no_license | package br.com.renanjardel.vetappjava.activity.form;
import android.content.DialogInterface;
import android.content.Intent;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuIt... | true |
7367df414c97f9bc02cf62196fac76c526093dd6 | Java | pke/eclipse_helpers | /org.eclipse.jface.utils/src/org/eclipse/jface/utils/selection/AdapterSelectionVisitor.java | UTF-8 | 683 | 2.6875 | 3 | [] | no_license | package org.eclipse.jface.utils.selection;
import org.eclipse.core.runtime.IAdapterManager;
/**
* Selection visitor that uses an adapter manager to selection items to the given class.
*
* @author PhilK
*
* @param <E> item type to adapt to
* @param <R> return type
*/
public abstract class AdapterS... | true |
dfc78bd7bda8a82e8210065f1c6108909f64e060 | Java | OlyaHit/Trainings | /src/trainingsStart/PalindromString.java | WINDOWS-1251 | 986 | 3.53125 | 4 | [] | no_license | package trainingsStart;
// , , ,
//hrtyu
import java.util.Scanner;
public class PalindromString {
public static void main(String[] args){
System.out.println(" : ");
Scanner scn=new Scanner(System.in);
if (scn.hasNextLine()){
String s =scn.nextLine().toLowerCase();
if (s.length... | true |
0c05e7790889fe84c49ea6bf810adca2aa9715fa | Java | dxcv/recommend | /stuforssm/src/main/java/com/yihuisoft/product/group/entity/dto/ProductGroupDTO.java | UTF-8 | 2,273 | 1.9375 | 2 | [] | no_license | package com.yihuisoft.product.group.entity.dto;
import java.util.List;
import com.yihuisoft.product.group.entity.ProductGroupDetails;
public class ProductGroupDTO {
private int id;//组合id
private String product_group_name;//组合名称
private int create_source;//创建来源(1是后台创建,2是客户创建)
private String status;//启... | true |
4ca10db7d7694000c9773565ded979a520a052b9 | Java | lgl48128244/Gary_document | /src/org/zttc/itat/dao/DocumentDao.java | UTF-8 | 225 | 1.585938 | 2 | [] | no_license | package org.zttc.itat.dao;
import org.springframework.stereotype.Repository;
import org.zttc.itat.model.Document;
@Repository("documentDao")
public class DocumentDao extends BaseDao<Document> implements IDocumentDao {
}
| true |
84dc99c7eaa2148bde6ee1afecd99ae2b21306d8 | Java | apache/dubbo | /dubbo-metrics/dubbo-metrics-api/src/main/java/org/apache/dubbo/metrics/aggregate/DubboMergingDigest.java | UTF-8 | 31,872 | 2.171875 | 2 | [
"Apache-2.0",
"MIT",
"LicenseRef-scancode-protobuf"
] | permissive | /*
* Licensed to Ted Dunning 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 use this file except ... | true |
a938775df975e8ccac0d89018839aad0ef3e57a8 | Java | ontopia/ontopia | /ontopoly-editor/src/main/java/ontopoly/models/PossiblePlayersModel.java | UTF-8 | 1,874 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | /*
* #!
* Ontopoly Editor
* #-
* Copyright (C) 2001 - 2013 The Ontopia Project
* #-
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.... | true |
1a2d303132ade735009893a1995b0c8927eb3f6b | Java | yumei2018/GEI-Projects | /EWMDataServices/ShapeLite/src/gov/ca/water/shapelite/map/ZoomBufferRenderer.java | UTF-8 | 3,170 | 2.703125 | 3 | [] | no_license | /*
* The MIT License
*
* Copyright 2012 hdunsford.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modif... | true |
c7b2b469c46f5d041c062c878e850bd48873deb0 | Java | siddhantjaiswal/AndroidProject | /SenDiT_source_code/app/src/main/java/com/example/siddhantjaiswal/sendit/AboutUs.java | UTF-8 | 823 | 1.945313 | 2 | [] | no_license | package com.example.siddhantjaiswal.sendit;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.KeyEvent;
public class AboutUs extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.on... | true |
14e375d90e639d223ae2a24ce583f60f2ca972e7 | Java | JoaoVieira13/Truck-Management | /src/main/java/com/projeto/vista/MenuCamiao.java | UTF-8 | 1,220 | 2.265625 | 2 | [] | no_license | package com.projeto.vista;
import java.util.Scanner;
import com.projeto.Classes.Camiao;
public class MenuCamiao {
public static void MenuCamiao() {
System.out.println("\n\n ### Gestão de Camiões ###");
System.out.println("\n ... | true |
082e8c6b590973e6df39dfbfd93b727ea6ad60e6 | Java | rofiimaulana/APLIKASI-PEMBELAJARAN-MEMBACA-ALQURAN-DENGAN-METODE-IQRO-BERBASIS-ANDROID | /java/com/example/myapplication/taj_mimmati.java | UTF-8 | 1,486 | 1.890625 | 2 | [] | no_license | package com.example.myapplication;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class taj_mimmati extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedIn... | true |
87dd0c8acab51925dab03253c9fdbeddbd3c9263 | Java | arosini/wildstyle-generator | /src/test/java/ar/wildstyle/valuegenerator/LastNameValueGeneratorTests.java | UTF-8 | 2,660 | 2.65625 | 3 | [
"MIT"
] | permissive | package ar.wildstyle.valuegenerator;
import java.io.File;
import java.net.URL;
import java.nio.file.Files;
import java.util.HashSet;
import java.util.Set;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import ar.wildstyle.test.BaseTest;
/**
* {@code LastNameValueGeneratorTests} contains t... | true |
48517b0bc7e7401b7e65bee2119fbf98e5c839de | Java | humbertovaz/ImOObiliaria | /src/SemAutorizacaoException.java | UTF-8 | 359 | 2.34375 | 2 | [] | no_license | package src;
/**
* Excepçao atirada quando se tenta realizar alguma acçao que nao faz parte do conjunto de funcionalidades de um determinado utilizador
*
* @author (your name)
* @version (a version number or a date)
*/
public class SemAutorizacaoException extends Exception
{
public SemAutorizacaoException(... | true |
2ba743f8214ddc56f22d580aeffb7991755c7ade | Java | priyatechynerds/ForYouStarProject | /app/src/main/java/com/example/priya/foryoustarproject/Certificates_Group.java | UTF-8 | 543 | 2.34375 | 2 | [] | no_license | package com.example.priya.foryoustarproject;
import java.util.ArrayList;
/**
* Created by PRIYA on 3/31/2018.
*/
public class Certificates_Group {
private String name;
private ArrayList<Certificates_Child> items;
public String getName() {
return name;
}
public void setName(String nam... | true |
83829173aa98243ca503171ead189f1783dff90b | Java | mv-prog/outros | /src/main/java/model/Role.java | UTF-8 | 457 | 2.53125 | 3 | [] | no_license | package model;
public class Role {
private String email;
private String rolename;
public Role(String email, String rolename) {
super();
this.email = email;
this.rolename = rolename;
}
public Role() {
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = ema... | true |
5d7aa5fa20e3aaea5448c0937b6380121614f4c8 | Java | DobrinMarinov/Book-Shop-System | /src/main/java/app/service/BookService.java | UTF-8 | 535 | 1.960938 | 2 | [] | no_license | package app.service;
import app.domain.Author;
import app.domain.Book;
import app.domain.enums.AgeRestriction;
import java.util.Date;
import java.util.List;
public interface BookService {
void deleteBook(Book book);
void saveBook (Book book);
Book findBookById(Long id);
List<Book> findByAgeRestri... | true |
6601c00f7ecafdeb9f194f5cedf5ed769f32959c | Java | prembhaarti/Basics | /src/main/java/basics/trie/TNode.java | UTF-8 | 666 | 2.984375 | 3 | [] | no_license | package basics.trie;
import java.util.HashMap;
import java.util.Map;
public class TNode {
private Map<Character,TNode> children;
private boolean isEnd;
private char value;
public TNode(char value){
this.value=value;
children = new HashMap<>();
}
public Map<Character, TNode> getChildren() {
... | true |
6f6b68f4054f6be73c34eab5c4d2ba6b6f090d34 | Java | Victoria151291/ProjectInJavaAndSelenium | /src/main/java/helpers/ChromeDriverProvider.java | UTF-8 | 1,351 | 2.75 | 3 | [] | no_license | package helpers;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;
import static helpers.Paths.*;
public class ChromeDriverProvider {
private static WebDriver chromeDriver;
private static final String CHROME_DRIVER_PROPERTY... | true |
4cfcbc754ba80107372d5cfbcc7fef069b8f77f2 | Java | srikanteswartalluri/NewSelProj | /src/test/java/NewClass.java | UTF-8 | 651 | 2.0625 | 2 | [] | no_license | import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
public class NewClass {
public static void main(String [] args){
System.setProperty("webdriver.firefox.marionette","/Users/srikanteswararaotalluri/Downloads/geckodriver");
System.se... | true |
dcb6e61b8516d91ff6667780decf14b2f705cb57 | Java | adampolak/pz-qrcode-logo | /QRLogo/src/Comps.java | UTF-8 | 1,128 | 3.046875 | 3 | [] | no_license | import java.awt.Color;
import java.awt.image.BufferedImage;
import com.google.zxing.qrcode.encoder.QRCode;
public class Comps {
private static float colorDistance(int i1, int i2) {
return ((new Color(i1).getRed() - new Color(i2).getRed()) / 256.0f);
}
private static float qualityGrade(BufferedImage i1, Buffere... | true |
234d5abff4db16f9cce6b0127e5aa89ab2514fec | Java | huanglongf/enterprise_project | /dev/BT-OP/src/main/java/com/bt/sys/web/LoginController.java | UTF-8 | 3,171 | 2.09375 | 2 | [] | no_license | package com.bt.sys.web;
import java.util.Map;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.mvc.sup... | true |
b6d0edc53c8c670f10ec75e7c5c2f61cd3413b8f | Java | alejandromex/animations-android | /app/src/main/java/com/example/animations/MainActivity.java | UTF-8 | 7,086 | 1.820313 | 2 | [] | no_license | package com.example.animations;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationSet;
import android.view.animation.AnimationUtils;
import android.widget.Button;... | true |
450e513e7f3b96d81447ddf86c0e71c2c59b5a67 | Java | hgt-git/SpringHotelProject | /src/main/java/jProject/models/Image.java | UTF-8 | 1,161 | 2.5 | 2 | [] | no_license | package jProject.models;
import javax.persistence.*;
@Entity()
public class Image {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Integer id;
private String imageCurrentName;
private String imageOriginalName;
private String fileType;
@ManyToOne(optional = false, fetch = Fet... | true |
80e7acdbe7988291d8df6928360707b12a7960a1 | Java | diegoandrepoli/buy | /saler/src/main/java/com/saler/saler/data/sample/utils/SampleDataUtils.java | UTF-8 | 1,777 | 2.5625 | 3 | [] | no_license | package com.saler.saler.data.sample.utils;
import java.math.BigDecimal;
import java.util.Date;
import com.saler.saler.buy.option.entity.BuyOption;
import com.saler.saler.deal.entity.Deal;
/**
* Sample data utils
* @author Diego Andre Poli <diegoandrepoli@gmail.com>
*/
public class SampleDataUtils {
/**
* Ger... | true |
3fe444d54aac5365f2fd81c30f9e466e53a62150 | Java | lfoppiano/DesignPatterns | /src/main/java/org/foppiano/designpattern/factory/abstract_/definition/product/Client.java | UTF-8 | 552 | 2.421875 | 2 | [] | no_license | package org.foppiano.designpattern.factory.abstract_.definition.product;
import org.foppiano.designpattern.factory.abstract_.definition.AbstractFactory;
/**
* Created with IntelliJ IDEA.
* User: lf84914
* Date: 09/01/14
* Time: 08:58
* To change this template use File | Settings | File Templates.
*/
public clas... | true |
5174cc2dd84944e43d9cc581185c9110953b9f37 | Java | orcl/coding | /algorithm/other/productExceptSelf/productExceptSelfBetter.java | UTF-8 | 692 | 3.609375 | 4 | [] | no_license | public class productExceptSelfBetter {
public int[] productExceptSelf(int[] nums) {
int[] result = new int[nums.length];
int temp = 1;
//in this loop, temp variable contains product of elements on left side excluding arr[i]
for (int i = 0; i < nums.length; i++) {
result[i] = temp;
t... | true |
b86b9e8bff98a62571c649ad97b5ea021f73d9e4 | Java | bedatadriven/renjin-packages | /model/src/main/java/org/renjin/ci/model/DependencySnapshotRequest.java | UTF-8 | 493 | 1.96875 | 2 | [] | no_license | package org.renjin.ci.model;
import java.util.ArrayList;
import java.util.List;
/**
* Request to resolve a set of dependencies.
*/
public class DependencySnapshotRequest {
private String beforeDate;
private final List<String> dependencies = new ArrayList<>();
public String getBeforeDate() {
return befor... | true |
0f5b281c48313def322171dcb60e9721fccc1097 | Java | Danielczl315/MedicalRecord | /iTrust/src/test/java/edu/ncsu/csc/itrust/unit/validate/bean/ChildBirthVisitValidatorTest.java | UTF-8 | 5,201 | 2.5625 | 3 | [] | no_license | package edu.ncsu.csc.itrust.unit.validate.bean;
import junit.framework.TestCase;
import edu.ncsu.csc.itrust.model.old.beans.ChildBirthVisitBean;
import edu.ncsu.csc.itrust.model.old.enums.BooleanType;
import edu.ncsu.csc.itrust.model.old.enums.DeliveryType;
import edu.ncsu.csc.itrust.model.old.validate.ChildBirt... | true |
3df0a4450c9ad23e5782913bdba01cd6dc3a5f7b | Java | yunxin-dianbo-android/plus-android | /app/src/main/java/com/zhiyicx/thinksnsplus/modules/circle/publish/choose_circle/ChooseCircleFragment.java | UTF-8 | 3,762 | 1.796875 | 2 | [] | no_license | package com.zhiyicx.thinksnsplus.modules.circle.publish.choose_circle;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.... | true |
5f7a5c6f2880f45a7666340d7f0786736bb15a8d | Java | p3r4f089/pimovies | /app/src/main/java/com/redpill/perafo/pimovies/ui/search/SearchFrag.java | UTF-8 | 2,911 | 2.03125 | 2 | [] | no_license | package com.redpill.perafo.pimovies.ui.search;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.... | true |
052e20b4586f313da1736c604199923b848d7e36 | Java | hardodehack/OCJAP | /src/collection/SynchronizedUnmodifiable.java | UTF-8 | 449 | 3.0625 | 3 | [] | no_license | package collection;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
public class SynchronizedUnmodifiable {
public static void main(String[] args) {
// Use of Synchronized collection ( Thread Safe Methods...)
Collections.synchronizedCollection(new ArrayList<St... | true |
40de4397d8ba9d3c6d5223aee440f2673a35a083 | Java | kartjang/CarLauncher2.0 | /src/com/ilincar/base/BaseApplication.java | GB18030 | 245 | 1.65625 | 2 | [] | no_license | package com.ilincar.base;
import com.ilincar.util.L;
import android.app.Application;
public class BaseApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
//BUGϢ
L.isDebug=true;
}
}
| true |
1807d7015b6af86e6b220268ba82c87ff926c742 | Java | wangchaohui/Algorithms | /src/leetcode/JumpGame.java | UTF-8 | 951 | 3.203125 | 3 | [] | no_license | package leetcode;
public class JumpGame
{
public boolean canJump(int[] A)
{
if (A == null || A.length == 0)
return false;
else if (A.length == 1)
return true;
else
{
if (A[0] == 0)
return false;
int start = 0;
while (start < A.length)
{
int index = findZero(start, A);
if (index ... | true |
92a1c62df8885ffc1c70dc320cf17c5501c12e7a | Java | RiyaadC/TPAssignment5 | /Assignment5/Strategy/src/main/java/RemoveFromDeck.java | UTF-8 | 293 | 2.578125 | 3 | [] | no_license | /**
* Created by Riyaad on 4/1/2017.
*/
public class RemoveFromDeck implements Deck
{
public int deckchanges()
{
int r =38;
System.out.println("Currently " + r + "cards");
r--;
System.out.println("Currently " + r + "cards");
return r;
}
}
| true |
ae35e303276c3582310b5f08ad6b6b233636cbd6 | Java | adithyas96/LearningJava | /src/com/javastuff/deloittestuff/basics/arrayDemo.java | UTF-8 | 1,354 | 3.625 | 4 | [] | no_license | package com.javastuff.deloittestuff.basics;
public class arrayDemo {
public static void main1(String[] args) {
int[] a = {1,10,3,1,5,6,8,3};
int temp;
for(int i=0;i<a.length;i++){
for(int j=0;j<a.length - i -1;j++){
if(a[j]>a[j+1]){
temp= a[j];
a[j]=a[j+1];
a[j+1]=temp;
}
}
... | true |
ad02a623822003bb2e631c74d8f93d781b25a2ff | Java | taiyangfeng/MyFactory | /src/com/taiyangfeng/code/view/MyVideoView.java | UTF-8 | 1,879 | 2.40625 | 2 | [] | no_license | package com.taiyangfeng.code.view;
import android.content.Context;
import android.media.MediaPlayer;
import android.net.Uri;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.util.Log;
import android.widget.VideoView;
public class MyVideoView extends VideoView {
private final... | true |
323f259dcd1ab998e063fd0140eb48e779acf55e | Java | sharma-nakul/sensor-cloud-portal | /src/main/java/org/cmpe281/cloud/virtualsensorcontroller/dbhandler/VirtualSensorDBOperations.java | UTF-8 | 7,067 | 2.53125 | 3 | [] | no_license | package org.cmpe281.cloud.virtualsensorcontroller.dbhandler;
import com.google.gson.Gson;
import com.mongodb.*;
import org.cmpe281.cloud.enums.MongoCollection;
import org.cmpe281.cloud.enums.SensorState;
import org.cmpe281.cloud.model.VirtualSensor;
import org.json.JSONObject;
import org.springframework.web.bind.annot... | true |
5a5ed63f42efd4ad011e56eba100c1a3691d797a | Java | tsoiland/ffl | /src/main/java/com/skagenfondene/ffl/Main.java | UTF-8 | 7,451 | 2.875 | 3 | [] | no_license | package com.skagenfondene.ffl;
import org.h2.jdbcx.JdbcDataSource;
import java.io.IOException;
import java.math.BigDecimal;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.sql.*;
import java.time.LocalDate;
import java.util.List;
public class Main {
public static void main(String[] args) thro... | true |
5c1ac828e0fd41e7f3e5c4484359efa10233fe2f | Java | sergiifedotov/OOP | /vladimir_morochko/src/main/java/OOP/homework8/MyArrayList.java | UTF-8 | 3,238 | 4.21875 | 4 | [] | no_license | package OOP.homework8;
/**
* Написать собственную реализацию динамического массива MyArrayList,
* содержащего целые числа. Реализовать следующие методы
* - void add(int value)
* - int get(int index)
* - boolean set(int index, int value)
* - boolean add(int index, int value)
* - int indexOf(int value)
* - int ... | true |
33561a44c4023b43f10c02b843459b03fca21990 | Java | geoffreyrobelot/serviceCoPro | /src/model/ReservationobjetEjb.java | ISO-8859-1 | 1,236 | 2.390625 | 2 | [] | no_license | package model;
import java.util.List;
import javax.annotation.Resource;
import javax.ejb.LocalBean;
import javax.ejb.SessionContext;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
/*
* Cette classe est implmente sous la forme d'un EJB de type Statele... | true |
27cec0e8564b8d42b06168af13561f328f371331 | Java | dayasudhan/bhoomika | /app/src/main/java/khaanavali/customer/model/OrderAcceptTimings.java | UTF-8 | 616 | 2 | 2 | [] | no_license | package khaanavali.customer.model;
/**
* Created by dganeshappa on 6/23/2016.
*/
public class OrderAcceptTimings {
public TimeInDay getMorning() {
return Morning;
}
public void setMorning(TimeInDay morning) {
Morning = morning;
}
public TimeInDay getLunch() {
return Lunc... | true |
77557bbb3fe0b2063c5a61a3441417a9c5c77004 | Java | sharryrob/juniper_admin | /admin/src/main/java/com/iig/gcp/admin/adminservice/AdminServiceImpl.java | UTF-8 | 6,399 | 2.078125 | 2 | [] | no_license | package com.iig.gcp.admin.adminservice;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;
import org.json.JSONException;
import org.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowire... | true |
223143734501b4ac3b2f2317bfa268852c08f536 | Java | kimsb/wftiles-android | /app/src/main/java/kimstephenbovim/wordfeudtiles/rest/PlayerDTO.java | UTF-8 | 1,397 | 2.03125 | 2 | [] | no_license | package kimstephenbovim.wordfeudtiles.rest;
import com.squareup.moshi.Json;
import java.util.List;
public class PlayerDTO {
@Json(name = "username")
private String username;
@Json(name = "avatar_updated")
private double avatarUpdated;
@Json(name = "is_local")
private Boolean isLocal;
@Js... | true |
ad187c595715ea0d9f31d4ff122558f1e3ddc413 | Java | kzeca/Pitch3CI | /Pitch/app/src/main/java/com/br/arley/pitch3ci/LoginActivity.java | UTF-8 | 4,832 | 2.25 | 2 | [] | no_license | package com.br.arley.pitch3ci;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.KeyEvent;
import android.view.View;
import android.view.inputmethod.EditorInfo;
import android.widget.Button;
import android.... | true |
50246f7e017b2214c2a0497c3003d4dcca5b41ad | Java | ss98feel/Retrofit | /app/src/main/java/com/example/dongkibae/retrofit/Contributor.java | UTF-8 | 873 | 2.109375 | 2 | [] | no_license | package com.example.dongkibae.retrofit;
import android.content.ClipData;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
import java.util.List;
/**
* Created by dongkibae on 2017. 6. 27..
*/
public class Contributor {
// String login;
... | true |
943e23302a6ba265e57d258216a7cfd28f7ccfb4 | Java | collinsauve/azure-sdk-for-java | /management-compute/src/main/java/com/microsoft/windowsazure/management/compute/models/WindowsRemoteManagementListener.java | UTF-8 | 3,404 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | /**
*
* Copyright (c) Microsoft and contributors. 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 r... | true |
3da366711d4f96fc58a9bab9d58ef91ba0bc7ce5 | Java | iMoHax/Trader | /client/src/main/java/ru/trader/controllers/GroupAddController.java | UTF-8 | 2,129 | 2.46875 | 2 | [] | no_license | package ru.trader.controllers;
import javafx.collections.FXCollections;
import javafx.fxml.FXML;
import javafx.scene.Parent;
import javafx.scene.control.ComboBox;
import javafx.scene.control.Dialog;
import javafx.scene.control.TextField;
import ru.trader.core.GROUP_TYPE;
import ru.trader.model.GroupModel;
import ru.tr... | true |
097854e43b3a5d7c648915c148fc894f6c25d465 | Java | MalcolmAnderson/java2 | /PasswordScreenToMainScreen/src/utils/Utils.java | UTF-8 | 8,952 | 2.828125 | 3 | [] | no_license | package utils;
import main.Globals;
import utils.dataAccess.DBConnection;
import java.io.*;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.time.*;
import java.time.temporal.TemporalAdjusters;
import ... | true |
054985ffe0ce2a40bb278cdd0bc654498022d39e | Java | hoangpham1997/ChanDoi | /Project/ebweb2019/src/main/java/vn/softdreams/ebweb/service/IaPublishInvoiceDetailsService.java | UTF-8 | 1,218 | 1.960938 | 2 | [] | no_license | package vn.softdreams.ebweb.service;
import vn.softdreams.ebweb.domain.IaPublishInvoiceDetails;
import org.springframework.data.domain.Page;
import vn.softdreams.ebweb.web.rest.dto.IAPublishInvoiceDetailDTO;
import java.util.List;
import java.util.Optional;
/**
* Service Interface for managing IaPublishInvoiceDeta... | true |
454e3bd44f68265dc62af5d2120892e0cfa04505 | Java | loicfrance/android_libraries | /geometry2d/src/main/java/com/loicfrance/library/geometry2d/Shape.java | UTF-8 | 2,106 | 2.890625 | 3 | [
"MIT"
] | permissive | package com.loicfrance.library.geometry2d;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.RectF;
import java.io.Closeable;
import java.io.IOException;
/**
* Created by rfrance on 21/11/2015.
*/
public abstract class Shape {
protected Vec2 center;
//_____________________... | true |
f95ffd8bf38e36e59ea8434a4746058b935f3a13 | Java | moutainhigh/welink | /welink-commons/src/main/java/com/welink/commons/domain/SearchItem.java | UTF-8 | 26,270 | 1.65625 | 2 | [] | no_license | package com.welink.commons.domain;
import java.util.Date;
public class SearchItem {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column search_item.id
*
* @mbggenerated Wed Mar 23 16:02:54 CST 2016
*/
private Long id;
/**
* Th... | true |
92d1eac17189dd8b784e72a8a7c8d9c4eb2829ce | Java | gustavonv/wildfly-server-migration | /wildfly10/src/main/java/org/jboss/migration/wfly10/standalone/config/WildFly10StandaloneConfigFilesMigration.java | UTF-8 | 5,152 | 1.992188 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2016 Red Hat, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | true |
3438fdcbb1feb82cd36173e76796b8c45d8ccb12 | Java | jesusviloriag/intranetfjc | /src/main/java/com/jacintoconvit/intranet/repository/search/DocModificationSearchRepository.java | UTF-8 | 391 | 1.640625 | 2 | [] | no_license | package com.jacintoconvit.intranet.repository.search;
import com.jacintoconvit.intranet.domain.DocModification;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
/**
* Spring Data Elasticsearch repository for the {@link DocModification} entity.
*/
public interface DocModificationSearc... | true |
31a43464107b67f40884ed4a5599f4ee151cd607 | Java | HubertJedynak/WirtualnaKonsola | /FlyingJetGame/src/elements/Element.java | UTF-8 | 11,583 | 2.625 | 3 | [] | no_license | package elements;
import graphics.Animation;
import java.awt.image.BufferedImage;
import java.util.ArrayList;
import servicesOfPad.Regulator;
public class Element {
protected ArrayList<Element> allElements;
protected ArrayList<Element> specialElements;
protected BufferedImage image;
protected ArrayLi... | true |
d8df20f6bbb6682543cdbb76defab457d149c57a | Java | PepItLab/pepitlabweb | /src/main/java/fr/ccva/pepitlab/controller/HomeController.java | UTF-8 | 915 | 1.960938 | 2 | [
"Apache-2.0"
] | permissive | package fr.ccva.pepitlab.controller;
import fr.ccva.pepitlab.dto.NewDto;
import fr.ccva.pepitlab.service.NewService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.ui.ModelMap;
import org.s... | true |
eaf0cb2e05469b047ba44a3e74e212a45624402e | Java | AlfonsoRoblesA/Mono-Repo-Prueba | /Back-End/src/main/java/com/Prueba/BackEnd/services/UsuarioService.java | UTF-8 | 3,184 | 2.515625 | 3 | [] | no_license | package com.Prueba.BackEnd.services;
import java.sql.Timestamp;
import java.util.ArrayList;
import com.Prueba.BackEnd.models.UsuarioModel;
import com.Prueba.BackEnd.repositories.UsuarioRepository;
import com.Prueba.BackEnd.utils.Mensaje;
import org.springframework.beans.factory.annotation.Autowired;
import org.sprin... | true |
6fb81c4e6021a5786427041ab7985b1371c692c5 | Java | nckmml/ANXGallery | /src/ANXGallery/sources/com/miui/gallery/util/face/PeopleItem.java | UTF-8 | 7,711 | 2.109375 | 2 | [] | no_license | package com.miui.gallery.util.face;
import android.content.ContentValues;
import android.database.Cursor;
import com.miui.gallery.dao.base.Entity;
import com.miui.gallery.dao.base.TableColumn;
import java.util.ArrayList;
import java.util.List;
public class PeopleItem extends Entity {
public static final String[] ... | true |
e27b51aa555779397ac9ba973c2696deb155ddbd | Java | lvjie2426/store-system | /store-system-common/src/main/java/com/store/system/dao/impl/UserLeavePoolDaoImpl.java | UTF-8 | 1,944 | 1.890625 | 2 | [] | no_license | package com.store.system.dao.impl;
import com.quakoo.space.CacheBaseDao;
import com.quakoo.space.annotation.cache.CacheDaoMethod;
import com.quakoo.space.annotation.cache.CacheMethodParam;
import com.quakoo.space.annotation.dao.HyperspaceDao;
import com.quakoo.space.enums.HyperspaceType;
import com.quakoo.space.enums.... | true |
d19c94549dfa1325c87a918570889a5d9c6bf8d8 | Java | zeonglow/reactor-example | /src/main/java/au/co/huangleaver/chris/musicbrainz/model/Artist.java | UTF-8 | 1,346 | 2.4375 | 2 | [] | no_license | package au.co.huangleaver.chris.musicbrainz.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
@JsonIgnoreProperties(ignoreUnknown = true)
public class Artist {
@JsonProperty("id")
private String arid;
private String name;
priva... | true |
19b0b62ad04f359955f5da68af17a1eee683f720 | Java | qiaobenlaing/coupon | /Development_library/05Coding/安卓/andr_b/src/cn/suanzi/baomi/shop/adapter/EnvironmentPhotoAdapter.java | UTF-8 | 1,196 | 2.296875 | 2 | [] | no_license | package cn.suanzi.baomi.shop.adapter;
import java.util.List;
import android.app.Activity;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import cn.suanzi.baomi.base.Util;
import cn.suanzi.baomi.base.adapter.CommenViewHolder;
import cn.suanzi.b... | true |
dc804bca04c3b629fc4160c2ae8250c7578b6c90 | Java | OpenCommunity-Original/Dangerous-Caves-2 | /DangerousCaves/src/main/java/me/imdanix/caves/mobs/defaults/Mimic.java | UTF-8 | 6,774 | 2.0625 | 2 | [
"MIT"
] | permissive | package me.imdanix.caves.mobs.defaults;
import me.imdanix.caves.compatibility.Compatibility;
import me.imdanix.caves.compatibility.VMaterial;
import me.imdanix.caves.compatibility.VSound;
import me.imdanix.caves.mobs.MobsManager;
import me.imdanix.caves.mobs.TickingMob;
import me.imdanix.caves.regions.CheckType;
impor... | true |
12f20f205522d036191387e583550bf8e8c65948 | Java | BearDroid/Open-Sesame | /app/src/main/java/com/maxmmoss/opensesame/GarageFragment.java | UTF-8 | 5,086 | 2.46875 | 2 | [] | no_license | package com.maxmmoss.opensesame;
import android.app.Fragment;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.v4.widget.SwipeRefreshLayout;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.Imag... | true |
b947753acb720ef812d17a57b1f1f1207ecaf69f | Java | odpi/egeria | /open-metadata-implementation/adapters/open-connectors/repository-services-connectors/audit-log-connectors/audit-log-console-connector/src/main/java/org/odpi/openmetadata/adapters/repositoryservices/auditlogstore/console/ConsoleAuditLogStoreConnector.java | UTF-8 | 2,557 | 2.265625 | 2 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | /* SPDX-License-Identifier: Apache-2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.adapters.repositoryservices.auditlogstore.console;
import org.odpi.openmetadata.repositoryservices.auditlog.OMRSAuditLogRecordSeverity;
import org.odpi.openmetadata.repositoryservices.connec... | true |
b59a328141305d9424db36b717a20c321c1c0fde | Java | ojcarrillo/transporteAereoSOAPService | /src/main/java/org/avianca/demo/Persona.java | UTF-8 | 4,481 | 2.3125 | 2 | [] | no_license |
package org.avianca.demo;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Clase Java para persona complex type.
*
* <p>El siguiente fragmento de esquema especifica el contenido que se espera que haya en esta cla... | true |
a3a3618c24d6a3103a681d254efbae5879178bee | Java | ric-sapasap/line-fido2-server | /common/src/main/java/com/linecorp/line/auth/fido/fido2/common/server/COSEAlgorithm.java | UTF-8 | 2,996 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2021 LINE Corporation
*
* LINE Corporation licenses this file to you 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 r... | true |
403f9dfd9cd19dc9bfb48425652be2bd98fed56c | Java | Shelly875/CombiRabbit-application | /app/src/main/java/com/example/combirabbit/activity/Trailer.java | UTF-8 | 2,426 | 2.296875 | 2 | [] | no_license | package com.example.combirabbit.activity;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.widget.MediaController;
import android.widget.VideoView;
import com.example.combirabbit.R;
import com.example.combirabbit.models.GameOperations;
public class Trail... | true |
ca2e94343e6033e7d97c2407ebdd150ea1561b0f | Java | saidgadjiev/ormnext | /ormnext-core/src/main/java/ru/saidgadjiev/ormnext/core/OrmNext.java | UTF-8 | 978 | 2.453125 | 2 | [
"Apache-2.0"
] | permissive | package ru.saidgadjiev.ormnext.core;
import ru.saidgadjiev.ormnext.core.dao.Session;
import ru.saidgadjiev.ormnext.core.loader.object.Lazy;
/**
* OrmNext utils.
*
* @author Said Gadjiev
*/
public final class OrmNext {
/**
* Can't be instantiated.
*/
private OrmNext() { }
/**
* Attach ... | true |
94d013ee26ee61379994b52d4252d1406f394876 | Java | mikebin/hdp-demos | /zookeeper/src/main/java/zk/AppConfig.java | UTF-8 | 514 | 2.265625 | 2 | [] | no_license | package zk;
public class AppConfig {
private String dbUrl;
private String dbUser;
private String dbPassword;
public String getDbUrl() {
return dbUrl;
}
public void setDbUrl(String dbUrl) {
this.dbUrl = dbUrl;
}
public String getDbUser() {
return dbUser;
}
public void setDbUser(Strin... | true |
055a2d9513116183996002c835097b8554a90ab6 | Java | msgongora/examples-src | /ex.I/generated/org/eXcriba/repo/webservice/recordsmanagement/TreeEntity.java | UTF-8 | 5,151 | 2.453125 | 2 | [] | no_license | /**
* TreeEntity.java
*
public TreeEntity()
{
}
public TreeEntity(String name)
{
super(name);
}
public int size()
{
return cantReal;
}
public TreeEntity(java.lang.String name,
org.eXcriba.repo.webservice.recordsmanagement.TreeEntity[]... | true |