code stringlengths 3 1.05M | repo_name stringlengths 4 116 | path stringlengths 4 991 | language stringclasses 9
values | license stringclasses 15
values | size int32 3 1.05M |
|---|---|---|---|---|---|
(function() {
'use strict';
angular
.module('gastronomeeApp')
.controller('MenuDeleteController',MenuDeleteController);
MenuDeleteController.$inject = ['$uibModalInstance', 'entity', 'Menu'];
function MenuDeleteController($uibModalInstance, entity, Menu) {
var vm = this;
... | goxhaj/gastronomee | src/main/webapp/app/dashboard/menu/menu-delete-dialog.controller.js | JavaScript | apache-2.0 | 694 |
/*
* Copyright (C) 2019 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... | google/gapid | gapic/src/main/com/google/gapid/perfetto/models/Track.java | Java | apache-2.0 | 11,222 |
package de.tu_berlin.indoornavigation;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import de.tu_berlin.indoornavigation.entities.Group;
public class GroupsActivity extends AppCompatActivity implements GroupFragment.OnListFragmentI... | IoSL-INav/android | app/src/main/java/de/tu_berlin/indoornavigation/GroupsActivity.java | Java | apache-2.0 | 979 |
/*
* Copyright (c) 2002-2018 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Fo... | HuangLS/neo4j | advanced/management/src/main/java/org/neo4j/management/LockManager.java | Java | apache-2.0 | 1,871 |
package org.smarti18n.messages.users;
import org.smarti18n.api.v2.UsersApi;
import org.smarti18n.exceptions.UserExistException;
import org.smarti18n.exceptions.UserUnknownException;
import org.smarti18n.models.User;
import org.smarti18n.models.UserCreateDTO;
import org.smarti18n.models.UserSimplified;
import org.smart... | SmartI18N/SmartI18N | smarti18n/smarti18n-messages/src/main/java/org/smarti18n/messages/users/Users2Endpoint.java | Java | apache-2.0 | 1,926 |
/**
* Copyright (C) 2014 Karlsruhe Institute of Technology
*
* 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 appl... | kit-data-manager/base | DataOrganization/src/test/java/edu/kit/dama/mdm/dataorganization/test/TestUtil.java | Java | apache-2.0 | 6,221 |
var WaitState = function(game){this.game = game};
WaitState.prototype.preload = function(){
};
WaitState.prototype.create = function(){
this.background = this.game.add.sprite(0,0,'fence');
this.title = this.add.sprite(400,200, 'waitforplay');
this.title.anchor.setTo(0.5, 0.5);
this.waitBar = this... | siracoj/ProPain | ProPain/src/Wait.js | JavaScript | apache-2.0 | 1,384 |
package com.planet_ink.coffee_mud.Locales;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
import com.plan... | bozimmerman/CoffeeMud | com/planet_ink/coffee_mud/Locales/Woods.java | Java | apache-2.0 | 4,316 |
namespace Wundercal.Services.Dto
{
public class WunderlistList
{
public int Id { get; set; }
public string Title { get; set; }
}
} | marska/wundercal | src/Wundercal/Services/Dto/WunderlistList.cs | C# | apache-2.0 | 145 |
/*
* Copyright 2000-2010 JetBrains s.r.o.
*
* 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 agre... | consulo/consulo | modules/base/lang-api/src/main/java/com/intellij/codeInsight/actions/SimpleCodeInsightAction.java | Java | apache-2.0 | 1,052 |
/*
* Copyright 2016 ANI Technologies Pvt. Ltd.
*
* 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 la... | olacabs/fabric | fabric-components/kafka-writer/src/main/java/com/olacabs/fabric/processors/kafkawriter/KafkaWriter.java | Java | apache-2.0 | 9,285 |
package navyblue.top.colortalk.ui.activities;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import com.github.paolorotolo.appintro.AppIntro2;
import navyblue.top.colortalk.R;
import navyblue.top.colortalk.ui.fragments.SampleSlide;
/**
* Created by CIR on 16/6/4.
*/
public class AppIntroActivit... | YogiAi/ColorTalk_Android | app/src/main/java/navyblue/top/colortalk/ui/activities/AppIntroActivity.java | Java | apache-2.0 | 990 |
/*
* Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
package com.intellij.codeInspection.i18n;
import com.intellij.codeInsight.AnnotationUtil;
import com.intellij.codeInsight.template.macro.MacroUtil;
import com.intellij.lan... | mdanielwork/intellij-community | plugins/java-i18n/src/com/intellij/codeInspection/i18n/JavaI18nUtil.java | Java | apache-2.0 | 16,944 |
package entity.chess;
import java.util.ArrayList;
import entity.Board;
import entity.Coordinate;
//Author 在线疯狂
//Homepage http://bookshadow.com
public class General extends Chess {
public final static int VALUE = 100000;
private final static int deltaX[] = { 1, 0, -1, 0 };
private final static int deltaY[] = { 0, ... | qinjiannet/screen-chess-qq | src/entity/chess/General.java | Java | apache-2.0 | 1,727 |
/*
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | GoogleForCreators/web-stories-wp | packages/story-editor/src/components/floatingMenu/menus/image.js | JavaScript | apache-2.0 | 1,257 |
/*
* Copyright (c) 2009 Piotr Piastucki
*
* This file is part of Patchca CAPTCHA library.
*
* Patchca is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* ... | blademainer/common_utils | common_helper/src/main/java/com/xiongyingqi/captcha/filter/ConfigurableFilterFactory.java | Java | apache-2.0 | 1,181 |
package cn.felord.wepay.ali.sdk.api.request;
import java.util.Map;
import cn.felord.wepay.ali.sdk.api.AlipayRequest;
import cn.felord.wepay.ali.sdk.api.internal.util.AlipayHashMap;
import cn.felord.wepay.ali.sdk.api.response.KoubeiRetailShopitemUploadResponse;
import cn.felord.wepay.ali.sdk.api.AlipayObject;
/**
* ... | NotFound403/WePay | src/main/java/cn/felord/wepay/ali/sdk/api/request/KoubeiRetailShopitemUploadRequest.java | Java | apache-2.0 | 4,790 |
#include<iostream>
#include<vector>
#include<list>
#include<queue>
using namespace std;
void breadth_first_search(vector<list<int>> graph,int src){
vector<bool>visited(graph.size(),false);
queue<int>Q;
Q.push(src);
visited[src] = true;
while(!Q.empty()){
int vertex = Q.front(); Q.pop();
... | mission-peace/interview | C++/Graph Algorithms/Breadth First Search.cpp | C++ | apache-2.0 | 843 |
function Bibliography() {
this.searchOptions = {
source: 0,
value: '',
style: ''
};
this.bibliography = [];
this.bibliographyText = [];
this.localStorageKey = "Bibliography";
};
Bibliography.prototype.showBookSearchResult = function (results) {
for (key in results) {
... | ONLYOFFICE/CommunityServer | web/studio/ASC.Web.Studio/ThirdParty/plugin/easybib/bibliography.js | JavaScript | apache-2.0 | 9,168 |
package com.landian.crud.core.dao;
import com.landian.commons.page.PageListSupport;
import com.landian.commons.page.PageRequest;
import com.landian.crud.core.builder.SelectBuilder;
import com.landian.crud.core.builder.SqlBuilder;
import com.landian.crud.core.builder.impl.*;
import com.landian.crud.core.context.ResultM... | caojieliang/crud-core | src/main/java/com/landian/crud/core/dao/ProxyDaoSupport.java | Java | apache-2.0 | 20,038 |
package site.huozhu.home.controller.form;
/**
* ${DESCRIPTION}
*
* @author chuanxue.mcx
* @date 2017/09/06
*/
public class PagenationForm {
private int page = 1;
private int pageSize = 20;
public int getPage() {
return page;
}
public void setPage(int page) {
this.page =... | tomtrije/huozhu | server/huozhu/java/src/main/java/site/huozhu/home/controller/form/PagenationForm.java | Java | apache-2.0 | 483 |
/*
* Copyright 2014-2021 Lukas Krejci
* and other contributors as indicated by the @author tags.
*
* 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... | revapi/revapi | revapi-java/src/main/java/org/revapi/java/checks/annotations/Removed.java | Java | apache-2.0 | 1,860 |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace Secure_Password_Repository.ViewModels
{
public class CategoryEdit
{
public Int32? CategoryId { get; set; }
[Required]
public string CategoryName { get; set; }
}
pub... | thatcoderguy/Secure-Password-Repository | Secure Password Repository/ViewModels/CategoryViewModels.cs | C# | apache-2.0 | 1,022 |
package com.ahars.domain.util;
import java.sql.Types;
import org.hibernate.dialect.H2Dialect;
public class FixedH2Dialect extends H2Dialect {
public FixedH2Dialect() {
super();
registerColumnType( Types.FLOAT, "real" );
}
}
| ahars/dataviz-jhipster | src/main/java/com/ahars/domain/util/FixedH2Dialect.java | Java | apache-2.0 | 251 |
package org.hl7.fhir.instance.model;
import java.util.*;
import org.hl7.fhir.instance.utils.IWorkerContext;
import org.hl7.fhir.utilities.Utilities;
public class ExpressionNode {
public enum Kind {
Name, Function, Constant, Group
}
public static class SourceLocation {
private int line;
privat... | eug48/hapi-fhir | hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ExpressionNode.java | Java | apache-2.0 | 17,778 |
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.password_manager;
import android.app.Activity;
import android.content.Context;
import android.content.DialogInterface... | mogoweb/365browser | app/src/main/java/org/chromium/chrome/browser/password_manager/AccountChooserDialog.java | Java | apache-2.0 | 14,683 |
$(document).ready(function() {
PromotionGroup.init();
PromotionGroup.loadImage();
$('#add-new-promotion').on('click', function(){
PromotionGroup.addNew();
})
$('#update-promotion').on('click', function(){
PromotionGroup.update();
})
// date picker
$('#promotion-add-end-... | imtoantran/beleza | Views/spaCMS/promotion/js/spaCMS_promotion.js | JavaScript | apache-2.0 | 21,895 |
/*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | OrBin/SynClock-Android | src/orbin/deskclock/HandleApiCalls.java | Java | apache-2.0 | 21,891 |
package com.atom.empire.das.osite.auto.records;
import org.apache.empire.db.DBRecord;
import com.atom.empire.das.osite.auto.OSiteTable;
public abstract class OSiteTBO<T extends OSiteTable> extends DBRecord {
private static final long serialVersionUID = 1L;
public OSiteTBO(T table) {
super(table);
... | wuhongjun/atom-empire-demo | src/main/java/com/atom/empire/das/osite/auto/records/OSiteTBO.java | Java | apache-2.0 | 533 |
/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | stdlib-js/stdlib | lib/node_modules/@stdlib/random/base/erlang/lib/index.js | JavaScript | apache-2.0 | 1,304 |
/*******************************************************************************
* Copyright 2015 Maximilian Stark | Dakror <mail@dakror.de>
*
* 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... | Dakror/SpamWars | src/main/java/de/dakror/spamwars/net/packet/Packet01Disconnect.java | Java | apache-2.0 | 1,729 |
# -*- coding: utf-8 -*-
# Copyright (c) 2015-2016 MIT Probabilistic Computing Project
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unles... | probcomp/cgpm | src/crosscat/statedoc.py | Python | apache-2.0 | 8,646 |
package jsfunction.gwt.returns;
import jsfunction.gwt.JsFunction;
import com.google.gwt.core.client.JavaScriptObject;
/**
* This is the JavaScriptObject type returned from JsFunction.create(JsReturn).
* It can be passed as an argument to a JavaScript function, which then returns
* its results asynchronously by ca... | richkadel/jsfunction-gwt | jsfunction-gwt-main/src/main/java/jsfunction/gwt/returns/JsResultOrError.java | Java | apache-2.0 | 825 |
package main
import (
"fmt"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/cloudwatch"
"github.com/prometheus/client_golang/prometheus"
"time"
"regexp"
"strings"
)
func getLatestDatapoint(datapoints []*cloudwatch.Datapoint) *cloudwatch.Datapoint {
v... | Technofy/cloudwatch_exporter | aws.go | GO | apache-2.0 | 6,778 |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | jackylk/incubator-carbondata | processing/src/main/java/org/apache/carbondata/processing/sort/sortdata/SingleThreadFinalSortFilesMerger.java | Java | apache-2.0 | 10,940 |
/*
* #%L
* asio integration
* %%
* Copyright (C) 2013 - 2015 Research Group Scientific Computing, University of Vienna
* %%
* 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
*
* h... | pyranja/asio | integration/src/main/java/at/ac/univie/isc/asio/matcher/SqlResultMatcher.java | Java | apache-2.0 | 2,993 |
/*
* Copyright 2011-2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "l... | dagnir/aws-sdk-java | aws-java-sdk-api-gateway/src/main/java/com/amazonaws/services/apigateway/internal/AcceptJsonRequestHandler.java | Java | apache-2.0 | 1,404 |
package fr.utc.leapband.view;
import jade.gui.GuiEvent;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Font;
import java.beans.PropertyChangeEvent;
import java.io.File;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swi... | hukewei/leapband | src/fr/utc/leapband/view/InstrumentSelectView.java | Java | apache-2.0 | 2,477 |
package com.meteorite.core.datasource;
import org.junit.Test;
public class DataSourceManagerTest {
@Test
public void testExp() throws Exception {
}
} | weijiancai/metaui | core/src/test/java/com/meteorite/core/datasource/DataSourceManagerTest.java | Java | apache-2.0 | 166 |
//Copyright 2015 Sebastian Bingel
//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 writin... | sebingel/sharpchievements | Achievements/AchievementConditionCompletedHandler.cs | C# | apache-2.0 | 938 |
package org.vaadin.addons.producttour.button;
import com.vaadin.event.ConnectorEvent;
import org.vaadin.addons.producttour.provider.StepButtonProvider;
import org.vaadin.addons.producttour.provider.StepProvider;
import org.vaadin.addons.producttour.provider.TourProvider;
import org.vaadin.addons.producttour.st... | Juchar/product-tour | product-tour-addon/src/main/java/org/vaadin/addons/producttour/button/StepButtonEvent.java | Java | apache-2.0 | 1,731 |
<?php
/*
* @package s9e\TextFormatter
* @copyright Copyright (c) 2010-2019 The s9e Authors
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
namespace s9e\TextFormatter\Configurator\JavaScript;
use Exception;
abstract class Minifier
{
public $cacheDir;
public $keepGoing = \false;
... | drthomas21/WordPress_Tutorial | community_htdocs/vendor/s9e/text-formatter/src/Configurator/JavaScript/Minifier.php | PHP | apache-2.0 | 1,018 |
using System;
using System.Data;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DTcms.Common;
namespace DTcms.Web.admin.Transport
{
public partial class goods_edit : Web.UI.ManagePage
{
string defaultpassword = "0|0|0|0"; //默认显示密码
... | LutherW/MTMS | Source/DTcms.Web/admin/Transport/goods_edit.aspx.cs | C# | apache-2.0 | 4,623 |
#include "test_helper_library.h"
void euler2quat(double roll, double pitch, double yaw, double* q) {
// Compute quaternion
Eigen::Quaterniond q_ = Eigen::AngleAxisd(yaw, Eigen::Vector3d::UnitZ()) *
Eigen::AngleAxisd(pitch, Eigen::Vector3d::UnitY()) *
Eigen::Ang... | ethz-asl/ros_vrpn_client | src/test/library/test_helper_library.cpp | C++ | apache-2.0 | 2,913 |
/*
* Copyright (c) 2014 DataTorrent, Inc. 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... | DataTorrent/malhar-angular-dashboard | src/components/directives/dashboard/dashboard.js | JavaScript | apache-2.0 | 10,601 |
package com.gentics.mesh.core.endpoint.admin;
import java.util.concurrent.TimeUnit;
import javax.inject.Inject;
import com.gentics.mesh.cli.BootstrapInitializer;
import com.gentics.mesh.context.InternalActionContext;
import com.gentics.mesh.core.rest.common.GenericMessageResponse;
import io.netty.handler.codec.http... | gentics/mesh | core/src/main/java/com/gentics/mesh/core/endpoint/admin/ShutdownHandler.java | Java | apache-2.0 | 1,369 |
package com.shareyourproxy.api.domain.model;
import android.os.Parcelable;
import android.support.annotation.Nullable;
import com.shareyourproxy.api.domain.factory.AutoValueClass;
import java.util.HashMap;
import java.util.HashSet;
import auto.parcel.AutoParcel;
import static com.shareyourproxy.util.ObjectUtils.bu... | ProxyApp/Proxy | Application/src/main/java/com/shareyourproxy/api/domain/model/User.java | Java | apache-2.0 | 5,970 |
package ru.job4j.synchronize;
import net.jcip.annotations.GuardedBy;
import net.jcip.annotations.ThreadSafe;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* Хранилище User.
*/
@ThreadSafe
public class UserStorage {
/**
* Карта для хранения User.
... | alexeremeev/aeremeev | chapter_007/src/main/java/ru/job4j/synchronize/UserStorage.java | Java | apache-2.0 | 2,810 |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | phunt/zkexamples | src/test_session_expiration/TestSessionExpiration.java | Java | apache-2.0 | 3,492 |
package tamil.lang.api.join;
import tamil.lang.known.IKnownWord;
/**
* <p>
* Joins known words and based on the type of புணர்ச்சி.
*
* </p>
*
* @author velsubra
*/
public interface KnownWordsJoiner {
public static enum TYPE {
VEATTUMAI,
ALVAZHI
}
/**
* adds word to the cu... | velsubra/Tamil | ezhuththu/src/main/java/tamil/lang/api/join/KnownWordsJoiner.java | Java | apache-2.0 | 984 |
package main
import (
"fmt"
"github.com/satori/go.uuid"
)
func main() {
// Creating UUID Version 4
u1 := uuid.NewV4()
fmt.Printf("UUIDv4: %s\n", u1)
// Parsing UUID from string input
u2, err := uuid.FromString("6ba7b810-9dad-11d1-80b4-00c04fd430c8")
if err != nil {
fmt.Printf(... | gothxx/backyard | go/src/test/makeUUID.go | GO | apache-2.0 | 411 |
import os
import threading
import datetime
import cloudstorage as gcs
from google.appengine.api import app_identity
class FileServer():
def __init__(self):
bucket_name = os.environ.get('BUCKET_NAME',
app_identity.get_default_gcs_bucket_name())
self.bucket = '/' + bucket_name... | benmorss/excalibur | cloudserver.py | Python | apache-2.0 | 563 |
package io.skysail.server.app.demo.timetable.course.resources;
import org.restlet.resource.ResourceException;
import io.skysail.domain.core.repos.Repository;
import io.skysail.server.ResourceContextId;
import io.skysail.server.app.demo.DemoApplication;
import io.skysail.server.app.demo.timetable.course.Course;
import... | evandor/skysail | skysail.server.app.demo/src/io/skysail/server/app/demo/timetable/course/resources/PostCourseResource.java | Java | apache-2.0 | 1,307 |
/*
* MinIO Cloud Storage, (C) 2017-2020 MinIO, 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 applicab... | harshavardhana/minio | cmd/gateway/s3/gateway-s3.go | GO | apache-2.0 | 26,308 |
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-b10
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.06.13 at... | phoenixsbk/kvmmgr | backend/manager/modules/restapi/interface/definition/xjc/org/ovirt/engine/api/model/Feature.java | Java | apache-2.0 | 8,468 |
# Copyright (c) 2014 Mirantis, 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... | olivierlemasle/murano | murano/tests/unit/dsl/foundation/object_model.py | Python | apache-2.0 | 2,019 |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | BUPTAnderson/apache-hive-2.1.1-src | ql/src/java/org/apache/hadoop/hive/ql/parse/TypeCheckProcFactory.java | Java | apache-2.0 | 56,329 |
/**
* Copyright 2014 IBM Corp. 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 applica... | tonybndt/BlueMix-Tutorials | config/express.js | JavaScript | apache-2.0 | 1,764 |
sap.ui.define(['exports'], function (exports) { 'use strict';
var messagebundle_es = {
BARCODE_SCANNER_DIALOG_CANCEL_BUTTON_TXT: "Cancelar",
BARCODE_SCANNER_DIALOG_LOADING_TXT: "Cargando",
FCL_START_COLUMN_TXT: "Primera columna",
FCL_MIDDLE_COLUMN_TXT: "Columna media",
FCL_END_COLUMN_TXT: "Última columna",
... | SAP/openui5 | src/sap.ui.webc.fiori/src/sap/ui/webc/fiori/thirdparty/_chunks/messagebundle_es.js | JavaScript | apache-2.0 | 7,123 |
/*
By: facug91
From: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1335
Name: Twin Primes
Date: 23/10/2015
*/
#include <bits/stdc++.h>
#define endl "\n"
#define EPS 1e-9
#define MP make_pair
#define F first
#define S second
#define DB(x... | facug91/OJ-Solutions | uva.onlinejudge.org/TwinPrimes.cpp | C++ | apache-2.0 | 1,438 |
package com.digitalpetri.enip.cip.services;
import com.digitalpetri.enip.cip.CipResponseException;
import com.digitalpetri.enip.cip.epath.EPath.PaddedEPath;
import com.digitalpetri.enip.cip.structs.MessageRouterRequest;
import com.digitalpetri.enip.cip.structs.MessageRouterResponse;
import io.netty.buffer.ByteBuf;
imp... | digitalpetri/ethernet-ip | cip-core/src/main/java/com/digitalpetri/enip/cip/services/GetAttributesAllService.java | Java | apache-2.0 | 1,389 |
/*
* (C) Copyright 2016 Hewlett Packard Enterprise Development LP
*
* Licensed under the Apache License, Version 2.0 (the "License");
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required b... | HewlettPackard/oneview-sdk-java | oneview-sdk-java-lib/src/main/java/com/hp/ov/sdk/dto/networking/LagState.java | Java | apache-2.0 | 839 |
package com.jsh.erp.service.materialCategory;
import com.alibaba.fastjson.JSONObject;
import com.jsh.erp.service.ICommonQuery;
import com.jsh.erp.service.materialProperty.MaterialPropertyResource;
import com.jsh.erp.service.materialProperty.MaterialPropertyService;
import com.jsh.erp.utils.Constants;
import com.jsh.er... | jishenghua/JSH_ERP | jshERP-boot/src/main/java/com/jsh/erp/service/materialCategory/MaterialCategoryComponent.java | Java | apache-2.0 | 2,746 |
<?php
include 'app.php';
// render template
echo $twig->render('contact.twig', array());
| FSE301-Photerra/photerras | contact.php | PHP | apache-2.0 | 90 |
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writi... | googleads/googleads-java-lib | modules/dfp_appengine/src/main/java/com/google/api/ads/admanager/jaxws/v202111/SlateAction.java | Java | apache-2.0 | 1,537 |
package br.pucminas.icei.audition.repository;
/**
* @author Claudinei Gomes Mendes
*/
import br.pucminas.icei.audition.dto.SearchResponse;
import info.atende.audition.model.AuditEvent;
import info.atende.audition.model.SecurityLevel;
import org.springframework.stereotype.Component;
import org.springframework.stereo... | atende/audit-view | src/main/java/br/pucminas/icei/audition/repository/AuditEventRepository.java | Java | apache-2.0 | 3,874 |
package resa.metrics;
import backtype.storm.metric.api.IMetric;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
/**
* Created by ding on 14-8-12.
*/
public class StatMetric implements IMetric {
private double[] xAxis;
private Map<String, long[]> data;
public StatMetric(double... | ADSC-Cloud/resa | resa-core/src/main/java/resa/metrics/StatMetric.java | Java | apache-2.0 | 1,913 |
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.internal.statistic.eventLog.validator.persistence;
import com.intellij.openapi.components.*;
import com.intellij.openapi.util.text.StringUtil;
import org.jdo... | leafclick/intellij-community | platform/statistics/src/com/intellij/internal/statistic/eventLog/validator/persistence/EventLogWhitelistSettingsPersistence.java | Java | apache-2.0 | 4,390 |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | szegedim/hadoop | hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterRpcServer.java | Java | apache-2.0 | 92,997 |
// Copyright 2017 Twitter. 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 applicable ... | lucperkins/heron | heron/downloaders/src/java/com/twitter/heron/downloader/Downloader.java | Java | apache-2.0 | 793 |
package org.strategoxt.lang.gradual;
import java.io.Serializable;
public interface Type extends Serializable {
boolean equals(Object o);
int hashCode();
public String toString();
}
| metaborg/strategoxt | strategoxt/stratego-libraries/java-backend/java/runtime/org/strategoxt/lang/gradual/Type.java | Java | apache-2.0 | 195 |
/*
* Copyright 2015 Marek Kaput
*
* 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... | jajakobyly/rustidea | src/org/rustidea/psi/impl/RsStructImpl.java | Java | apache-2.0 | 1,812 |
Ext.define('MCLM.view.cenarios.GerenciarGruposCenarioWindow', {
requires: [
'MCLM.store.Grupo',
'Ext.grid.plugin.DragDrop',
'MCLM.view.cenarios.GerenciarGruposCenarioController'
],
extend: 'Ext.window.Window',
id: 'gerenciarGruposCenarioWindow',
itemId: 'gerenciarGruposCenari... | icemagno/mclm | src/main/webapp/app/view/cenarios/GerenciarGruposCenarioWindow.js | JavaScript | apache-2.0 | 10,122 |
package org.agilewiki.jactor2.core.impl;
import java.util.Timer;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
import com.blockwithme.util.base.SystemUtils;
/**
* A scheduler for Plant,... | skunkiferous/Util | jactor2-coreSt/src/test/java/org/agilewiki/jactor2/core/impl/JActorStTestPlantScheduler.java | Java | apache-2.0 | 5,403 |
package licenseutils
import (
"context"
"github.com/docker/licensing"
"github.com/docker/licensing/model"
)
type (
fakeLicensingClient struct {
loginViaAuthFunc func(ctx context.Context, username, password string) (authToken string, err error)
getHubUserOrgsFunc func(ctx context... | cpuguy83/cli | internal/licenseutils/client_test.go | GO | apache-2.0 | 4,580 |
/* global QUnit */
sap.ui.define([
"sap/ui/core/Control",
"sap/ui/fl/write/api/SmartVariantManagementWriteAPI",
"sap/ui/fl/Layer",
"sap/ui/rta/command/CommandFactory",
"sap/ui/thirdparty/sinon-4"
], function(
Control,
SmartVariantManagementWriteAPI,
Layer,
CommandFactory,
sinon
) {
"use strict";
var sandbo... | SAP/openui5 | src/sap.ui.rta/test/sap/ui/rta/qunit/command/compVariant/CompVariantUpdate.qunit.js | JavaScript | apache-2.0 | 8,251 |
#!/astro/apps/pkg/python/bin/python
import pyfits
import SDSSfits
import numpy
from tools import create_fits
import os
def main(OUT_DIR = "/astro/net/scratch1/vanderplas/SDSS_GAL_RESTFRAME/",
DIR_ROOT = "/astro/net/scratch1/sdssspec/spectro/1d_26/*/1d",
LINES_FILE = "LINES_SHORT.TXT",
... | excelly/xpy-ml | sdss/jake_lib/make_condensed_fits.py | Python | apache-2.0 | 4,199 |
# -*- coding: utf-8 -*-
'''
部分通用的数据结构
container.py :
NetInterface : 描述容器的一个虚拟网卡
-name : 虚拟网卡名称
-hostVeth : 虚拟网卡对应的主机veth名称
-ip : IP地址
-mac : mac地址
-vethMac : 主机veth的mac地址
+ NetInterface::create : 创建一个虚拟网卡,返回NetInterface对象
container : 目标容器
vName : 容器端peer名字
h_vName : 主机端peer的名字
Container : 描述一个... | onlysheep5200/NetnsEx | lib/__init__.py | Python | apache-2.0 | 2,175 |
package com.example.android.sunshine.app.widget;
import android.annotation.TargetApi;
import android.app.PendingIntent;
import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import andr... | chayoungrock/weather | app/src/main/java/com/example/android/sunshine/app/widget/DetailWidgetProvider.java | Java | apache-2.0 | 4,337 |
/*
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* 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 requi... | gravitee-io/graviteeio-access-management | gravitee-am-ui/protractor.conf.js | JavaScript | apache-2.0 | 1,386 |
package com.myweather.app.activity;
import com.myweather.app.R;
import android.content.Context;
import android.view.LayoutInflater;
import android.widget.LinearLayout;
public class BottomLayout extends LinearLayout{
public BottomLayout(Context context) {
super(context);
LayoutInflater.from(contex... | taohaox/MyWeather | src/com/myweather/app/activity/BottomLayout.java | Java | apache-2.0 | 370 |
package com.planet_ink.coffee_mud.MOBS;
import com.planet_ink.coffee_mud.core.interfaces.*;
import com.planet_ink.coffee_mud.core.*;
import com.planet_ink.coffee_mud.core.collections.*;
import com.planet_ink.coffee_mud.Abilities.interfaces.*;
import com.planet_ink.coffee_mud.Areas.interfaces.*;
import com.planet_... | bozimmerman/CoffeeMud | com/planet_ink/coffee_mud/MOBS/DrowElf.java | Java | apache-2.0 | 4,315 |
/**
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* 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 requ... | gravitee-io/graviteeio-access-management | gravitee-am-common/src/main/java/io/gravitee/am/common/event/AlertEventKeys.java | Java | apache-2.0 | 1,476 |
window.onload = function() {
var Synth = function(audiolet) {
AudioletGroup.apply(this, [audiolet, 0, 1]);
// Basic wave
this.saw = new Saw(audiolet, 100);
// Frequency LFO
this.frequencyLFO = new Sine(audiolet, 2);
this.frequencyMA = new MulAdd(audiolet, 10, 100);
... | accraze/Audiolet | examples/synth/js/synth.js | JavaScript | apache-2.0 | 2,107 |
package com.twu.biblioteca.menus;
import com.twu.biblioteca.options.*;
import java.util.ArrayList;
/**
* Created by aloysiusang on 17/6/15.
*/
public class UserMainMenu extends MainMenu {
public UserMainMenu() {
super(new ArrayList<MainMenuOption>() {{
add(new ListBooksOption());
... | aloysiusang/twu-biblioteca-aloysiusang | src/com/twu/biblioteca/menus/UserMainMenu.java | Java | apache-2.0 | 624 |
package com.lzh.mdzhihudaily_mvp.presenter;
import android.support.annotation.NonNull;
import com.lzh.mdzhihudaily_mvp.contract.ThemeDailyContract;
import com.lzh.mdzhihudaily_mvp.model.DataRepository;
import com.lzh.mdzhihudaily_mvp.model.Entity.ThemeNews;
import rx.Subscriber;
import rx.Subscription;
/**
* @auth... | lisuperhong/MDZhihuDaily | app/src/main/java/com/lzh/mdzhihudaily_mvp/presenter/ThemeDailyPresenter.java | Java | apache-2.0 | 2,219 |
/*
* ******************************************************************************
* Copyright 2014-2016 Spectra Logic Corporation. 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. A copy of the License ... | rpmoore/ds3_net_sdk | Ds3/Runtime/Ds3RequestException.cs | C# | apache-2.0 | 1,105 |
using JetBrains.Annotations;
using JetBrains.ReSharper.Plugins.Unity.Yaml.Psi.DeferredCaches.AnimationEventsUsages;
using JetBrains.ReSharper.Plugins.Unity.Yaml.Psi.DeferredCaches.AssetHierarchy.References;
using JetBrains.ReSharper.Psi;
namespace JetBrains.ReSharper.Plugins.Unity.Yaml.Psi.Search
{
public class Un... | JetBrains/resharper-unity | resharper/resharper-unity/src/Unity/Yaml/Psi/Search/UnityAnimationEventFindResults.cs | C# | apache-2.0 | 1,533 |
(function ($) {
"use strict";
/*----------------------------
price-slider active
------------------------------ */
var range = $('#slider-range');
var amount = $('#amount');
range.slider({
range: true,
min: 2,
max: 300,
values: [ 2, 300 ],
slide: function( event, ui ) {
amoun... | TZClub/OMIPlatform | shopping-platfrom/src/main/webapp/resources/js/main.js | JavaScript | apache-2.0 | 10,332 |
/*
* Copyright (c) 2010, Christophe Souvignier.
* Copyright (c) 2010, Paul Merlin.
*
* 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... | eskatos/asadmin | asadmin-maven-plugin/src/main/java/org/n0pe/mojo/asadmin/CreateJdbcConnectionPoolMojo.java | Java | apache-2.0 | 2,248 |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/imagebuilder/model/ComponentState.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
n... | aws/aws-sdk-cpp | aws-cpp-sdk-imagebuilder/source/model/ComponentState.cpp | C++ | apache-2.0 | 1,432 |
/*
* Licensed to the Technische Universität Darmstadt under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The Technische Universität Darmstadt
* licenses this file to you under the Apache License, Versio... | webanno/webanno | webanno-api-dao/src/main/java/de/tudarmstadt/ukp/clarin/webanno/api/dao/export/exporters/GuildelinesExporter.java | Java | apache-2.0 | 4,420 |
# Copyright (c) 2016. Mount Sinai School of Medicine
#
# 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 o... | hammerlab/varcode | varcode/effects/__init__.py | Python | apache-2.0 | 2,401 |
using System.Data.Common;
using System.Data.Entity.Infrastructure.Interception;
namespace Advertise.Utility.Persians
{
/// <summary>
/// </summary>
public class PersianYeKeInterceptor : IDbCommandInterceptor
{
/// <summary>
/// </summary>
/// <param name="command"></param>
... | imangit/Advertise | Advertise/Advertise.Utility/Persians/PersianYeKeInterceptor.cs | C# | apache-2.0 | 2,025 |
package org.wikipedia.edit;
import android.support.annotation.Nullable;
import org.wikipedia.dataclient.mwapi.MwPostResponse;
class Edit extends MwPostResponse {
@SuppressWarnings("unused,") @Nullable private Result edit;
@Nullable Result edit() {
return edit;
}
boolean hasEditResult() {
... | anirudh24seven/apps-android-wikipedia | app/src/main/java/org/wikipedia/edit/Edit.java | Java | apache-2.0 | 1,491 |
require('./second.js');
var i = 0;
console.log('Hello Webpack!');
console.log('Webpack is cool.');
| jitendraag/webpack-2-examples | example2/input.js | JavaScript | apache-2.0 | 99 |
CONTACT_HANDLE = 'contact'
NEW_CONTACT_HANDLE = 'new_contact'
OTHER_CONTACT_HANDLE = 'other_contact'
BLANK_CONTACT_HANDLE = ''
NON_EXISTING_CONTACT_HANDLE = 'non_existing'
def contact_does_not_exist handle = CONTACT_HANDLE
contact = Contact.find_by(handle: handle)
contact.delete if contact
end
def contact_exists ... | dotph/registry | features/services/contact_service.rb | Ruby | apache-2.0 | 6,724 |
/*
* Copyright 2014-2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | dbflute-test/dbflute-test-active-dockside | src/main/java/org/docksidestage/dockside/dbflute/bsbhv/pmbean/BsPurchaseMaxPriceMemberPmb.java | Java | apache-2.0 | 9,658 |
package com.annimon.stream.longstreamtests;
import com.annimon.stream.LongStream;
import org.junit.Test;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
public final class SumTest {
@Test
public void testSum() {
assertThat(LongStream.of(100, 20, 3).sum(), ... | aNNiMON/Lightweight-Stream-API | stream/src/test/java/com/annimon/stream/longstreamtests/SumTest.java | Java | apache-2.0 | 393 |
package de.fhg.iais.cortex.services.institution;
import java.util.LinkedList;
import java.util.List;
import org.codehaus.jackson.annotate.JsonProperty;
import org.codehaus.jackson.annotate.JsonPropertyOrder;
import org.codehaus.jackson.map.annotate.JsonSerialize;
@JsonPropertyOrder({
"id", "name", "sector", "lat... | Deutsche-Digitale-Bibliothek/ddb-backend | CoreServices/src/main/java/de/fhg/iais/cortex/services/institution/Institution.java | Java | apache-2.0 | 7,623 |