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 |
|---|---|---|---|---|---|
/*
* Copyright 2016 Black Duck Software, 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 ... | blackducksoftware/ohcount4j | src/main/java/com/blackducksoftware/ohcount4j/Language.java | Java | apache-2.0 | 16,986 |
package pl.itdonat.demo.wsfbd.encryption;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;
import pl.itdonat.demo.wsfbd.encryption.encode.EncodeData;
import pl.itdonat.demo.wsfbd.encryption.encode.EncodeService;
import java.util.L... | RobertSzarejko/WebSecurityForBackendDev | web-security-demo/src/main/java/pl/itdonat/demo/wsfbd/encryption/CryptoController.java | Java | apache-2.0 | 1,419 |
/**
* Copyright 2011-2021 Asakusa Framework Team.
*
* 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... | asakusafw/asakusafw | operator/core/src/main/java/com/asakusafw/operator/Constants.java | Java | apache-2.0 | 8,005 |
<?php
/**
* This file is part of the SevenShores/NetSuite library
* AND originally from the NetSuite PHP Toolkit.
*
* New content:
* @package ryanwinchester/netsuite-php
* @copyright Copyright (c) Ryan Winchester
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache-2.0
* @link https://githu... | fungku/netsuite-php | src/Classes/FairValuePriceSearchBasic.php | PHP | apache-2.0 | 2,206 |
/*
* 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 writing, software
* distribu... | metatron-app/metatron-discovery | discovery-server/src/main/java/app/metatron/discovery/common/ResultSetSerializer.java | Java | apache-2.0 | 6,631 |
//------------------------------------------------------------------------------
// <automatisch generiert>
// Dieser Code wurde von einem Tool generiert.
//
// Änderungen an dieser Datei können fehlerhaftes Verhalten verursachen und gehen verloren, wenn
// der Code neu generiert wird.
// </automatisch gene... | YAFNET/YAFNET | yafsrc/YetAnotherForum.NET/Controls/EditUsersInfo.ascx.designer.cs | C# | apache-2.0 | 14,587 |
import { Trans } from "@lingui/macro";
import classNames from "classnames/dedupe";
import * as React from "react";
type Action = {
className?: string;
clickHandler?: (e?: any) => void;
disabled?: boolean;
label?: string;
node?: React.ReactNode;
};
class FullScreenModalHeaderActions extends React.Component<{
... | dcos/dcos-ui | src/js/components/modals/FullScreenModalHeaderActions.tsx | TypeScript | apache-2.0 | 1,285 |
/* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconExposurePlus1(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...icon... | mineral-ui/mineral-ui | packages/mineral-ui-icons/src/IconExposurePlus1.js | JavaScript | apache-2.0 | 553 |
/*
* Copyright (c) 2015. Pokevian 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 law or ag... | Pokevian/caroolive-app | app/src/main/java/com/pokevian/app/smartfleet/service/floatinghead/TtsHandler.java | Java | apache-2.0 | 4,562 |
using System.Data.Entity;
using System.Linq;
using Moq;
using Riganti.Utils.Infrastructure.Core;
using Xunit;
namespace Riganti.Utils.Infrastructure.EntityFramework.Tests.Repository
{
public class EntityFrameworkRepositoryTests
{
private static readonly EpisodeEntity[] episodesSeriesOne =
{
... | riganti/infrastructure | src/Infrastructure/Tests/Riganti.Utils.Infrastructure.EntityFramework.Tests/Repository/EntityFrameworkRepositoryTests.cs | C# | apache-2.0 | 10,020 |
Ti.UI.setBackgroundColor('#fff');
var inicio = Ti.UI.createWindow({
backgroundColor:'#fff'
});
var titulo = Ti.UI.createLabel({
text:'UAM',
width:'300dp',
height:'50dp',
left:'10dp',
top:'100dp',
font:{fontSize:30,
fontFamily:'Helvetica Neue'},
textAlign:'center',
});
inicio.add(titulo);
var data = [{title... | addieljuarez/TallerUAM | Resources/app.js | JavaScript | apache-2.0 | 789 |
/*
*
* 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... | chirino/proton | proton-j/proton-api/src/main/java/org/apache/qpid/proton/amqp/transport/ErrorCondition.java | Java | apache-2.0 | 1,885 |
package com.icfcc.db.orderhelper;
import com.icfcc.db.orderhelper.sqlsource.*;
import org.apache.ibatis.builder.StaticSqlSource;
import org.apache.ibatis.builder.annotation.ProviderSqlSource;
import org.apache.ibatis.executor.Executor;
import org.apache.ibatis.mapping.MappedStatement;
import org.apache.ibatis.mapping.... | Gitpiece/ssm | ssm-db-support/src/main/java/com/icfcc/db/orderhelper/OrderByHelper.java | Java | apache-2.0 | 3,806 |
package ru.tr1al.dao;
import ru.tr1al.model.Model;
public interface DAO<T extends Model> {
Class<T> getEntityClass();
}
| Tr1aL/utils | src/main/java/ru/tr1al/dao/DAO.java | Java | apache-2.0 | 127 |
package test
import (
"bufio"
"os"
"testing"
)
import manager "github.com/tiagofalcao/GoNotebook/manager"
func Benchmark(b *testing.B, input string, caseTask manager.Task) {
i, err := os.Open(input)
if err != nil {
b.Errorf("Can't open %s", input)
}
var o NilWriter
b.ResetTimer()
for x :... | tiagofalcao/GoNotebook | manager/test/benchmark.go | GO | apache-2.0 | 423 |
package com.example.views;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import android.widget.ViewSwitcher;
import android.widget.ViewSwitcher.ViewFactory;
public class V_ViewSwitcher extends GhostActivity {
private ViewSwitcher switcher;
@Override
protected void onCreate(Bun... | cowthan/AyoWeibo | sample/back/src/com/example/views/V_ViewSwitcher.java | Java | apache-2.0 | 1,766 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Kn... | knowit/Knowit.EPiModules.ImageScaling | sample/Properties/AssemblyInfo.cs | C# | apache-2.0 | 1,410 |
package gov.va.med.imaging.storage.cache;
import java.util.Iterator;
import java.util.regex.Pattern;
import gov.va.med.imaging.storage.cache.events.GroupLifecycleListener;
import gov.va.med.imaging.storage.cache.exceptions.CacheException;
/**
*
* i.e. A Group may contain other Group instances, which contain other... | VHAINNOVATIONS/Telepathology | Source/Java/CacheAPI/main/src/java/gov/va/med/imaging/storage/cache/Group.java | Java | apache-2.0 | 2,459 |
/*
* 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 writing, software distributed under t... | googleapis/google-api-java-client-services | clients/google-api-services-retail/v2/1.31.0/com/google/api/services/retail/v2/model/GoogleCloudRetailV2Product.java | Java | apache-2.0 | 62,165 |
var httpManager = require("httpManager");
Alloy.Globals.isSearch = true;
if (OS_ANDROID) {
$.search.windowSoftInputMode = Ti.UI.Android.SOFT_INPUT_ADJUST_PAN;
}
var dataTitles = [
{
name : "Find Us",
view : "findUs"
},
{
name : "Deals",
view : "deals"
},
{
name : "Testimonials",
view : "testmonials"
},
{
n... | SrinivasReddy987/Lookswoow | app/controllers/search.js | JavaScript | apache-2.0 | 2,071 |
package com.ssh.sys.core.validation;
import com.ssh.common.util.Constant;
import com.ssh.sys.api.dto.UserDTO;
import com.ssh.sys.api.dto.extension.PermissionExtDTO;
import com.ssh.sys.api.service.PermissionService;
import com.ssh.sys.api.service.UserService;
import org.junit.Assert;
import org.junit.Before;
import org... | lugavin/ssh | ssh-sys-core/src/test/java/com/ssh/sys/core/validation/ValidationTest.java | Java | apache-2.0 | 2,560 |
package firestream.chat.chat;
import androidx.annotation.Nullable;
import org.pmw.tinylog.Logger;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Date;
import java.util.List;
import java.util.concurrent.Callable;
import firestream.chat.events.ListData;
import fire... | chat-sdk/chat-sdk-android | firestream/src/main/java/firestream/chat/chat/AbstractChat.java | Java | apache-2.0 | 15,606 |
package org.xmlcml.norma.biblio;
import java.util.ArrayList;
import java.util.List;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.xmlcml.graphics.html.HtmlDiv;
import com.google.common.collect.ArrayListMultimap;
import com.google.common.collect.Multimap;
public class RISEntry {
public ... | petermr/norma | src/main/java/org/xmlcml/norma/biblio/RISEntry.java | Java | apache-2.0 | 3,184 |
/**
* <copyright>
*
* Copyright (c) 2010 SAP AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
... | adbrucker/SecureBPMN | designer/src/org.activiti.designer.model/src/main/java/org/eclipse/bpmn2/impl/DataStoreReferenceImpl.java | Java | apache-2.0 | 13,233 |
/*
* Kendo UI v2014.3.1119 (http://www.telerik.com/kendo-ui)
* Copyright 2014 Telerik AD. All rights reserved.
*
* Kendo UI commercial licenses may be obtained at
* http://www.telerik.com/purchase/license-agreement/kendo-ui-complete
* If you do not own a commercial license, this file shall be governed by the trial lice... | y-todorov/Inventory | Inventory.MVC/Scripts/Kendo/cultures/kendo.culture.de-LI.js | JavaScript | apache-2.0 | 2,637 |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Text;
using Microsoft.SourceBrowser.Common;
using Newtonsoft.Json;
namespace Microsoft.SourceBrowser.HtmlGenerator
{
public class TypeScriptSupport
{
private stati... | KirillOsenkov/SourceBrowser | src/HtmlGenerator/Pass1-Generation/TypeScriptSupport.cs | C# | apache-2.0 | 26,413 |
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this f... | mamandal/fleetchaincd | chaincode/marbles_chaincode.go | GO | apache-2.0 | 32,592 |
using XElement.DotNet.System.Environment.Startup;
namespace XElement.SDM.ManagementLogic
{
#region not unit-tested
internal abstract class AbstractProgramLogic : IProgramLogic
{
protected AbstractProgramLogic( IProgramInfo programInfo )
{
this._programInfo = programInfo;
}
... | XElementDev/SDM | code/Startup/ManagementLogic.Implementation/AbstractProgramLogic.cs | C# | apache-2.0 | 661 |
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
<!-- NAME: 1 COLUMN -->
<!--[if gte mso 15]>
<xml>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
<o:PixelsPerInch>96</o:PixelsPerInch>
</o:OfficeDocu... | directonlijn/app | app/resources/views/emails/hippiemarkt-aalsmeer-factuur.blade.php | PHP | apache-2.0 | 34,222 |
(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 |
package slack_test
import (
"testing"
slacktest "github.com/lusis/slack-test"
"github.com/nlopes/slack"
"github.com/stretchr/testify/assert"
)
const (
testMessage = "test message"
testToken = "TEST_TOKEN"
)
func TestRTMSingleConnect(t *testing.T) {
// Set up the test server.
testServer := slacktest.NewTes... | cockroachlabs/roachprod | vendor/github.com/nlopes/slack/websocket_managed_conn_test.go | GO | apache-2.0 | 1,918 |
#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 |
module.exports = function(app, express) {
app.configure(function() {
app.use(express.logger());
});
app.configure('development', function() {
app.use(express.errorHandler({
dumpExceptions: true,
showStack: true
}));
});
app.configure('production', f... | Ken-Richard/tincan_nodejs | config/environment.js | JavaScript | apache-2.0 | 385 |
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 |
/*
* Licensed to CRATE Technology GmbH ("Crate") under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership. Crate licenses
* this file to you under the Apache License, Version 2.0 (the "License");
* you may not us... | gmrodrigues/crate | sql/src/test/java/io/crate/integrationtests/TransportSQLActionClassLifecycleTest.java | Java | apache-2.0 | 30,721 |
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 |
function removeFile() {
var sheet = SpreadsheetApp.getActiveSheet(); //Activate sheet
var tno = sheet.getRange('C1').getValues();
var file_name = 'Current Test Buffer-'+tno+'.zip';
var folder = DriveApp.getFolderById('0B5Sb6IOPwl52flVvMXg4dGJuVVdCYl9fNk1MNlBzazBMdk1IZ3BiWkJRR05TNXFZWUtYV3M');
var file1 = D... | arpan-chavda/my_google_scripts | file_cleaner.js | JavaScript | apache-2.0 | 736 |
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 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Ta... | taliesins/talifun-web | src/Talifun.Crusher.Tests/Properties/AssemblyInfo.cs | C# | apache-2.0 | 1,418 |
#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 com.vaadin.tests.components.tree;
import com.vaadin.tests.components.TestBase;
import com.vaadin.v7.ui.Tree;
@SuppressWarnings("serial")
public class PreselectedTreeVisible extends TestBase {
@Override
protected void setup() {
String itemId1 = "Item 1";
String itemId2 = "Item 2";
... | Legioth/vaadin | uitest/src/main/java/com/vaadin/tests/components/tree/PreselectedTreeVisible.java | Java | apache-2.0 | 773 |
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 configconversion
import (
"net"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/serializer"
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
configv1 "github.com/openshift/api/config/v1"
kubecontrolplanev1 "github.com/openshift/api/kubecontrolplane/v1"
legacyconfigv1 "github.com/o... | PI-Victor/origin | pkg/configconversion/legacyconfig_conversion.go | GO | apache-2.0 | 5,292 |
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 |
package cases;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.testng.annotations.Test;
import cn.bubi.tools.acc.Sign;
import net.sf.json.JSONObject;
import utils.APIUtil;
import utils.HttpUtil;
import utils.Result;
import utils.SignUtil;
import utils.TxUtil;
import... | bubichain/blockchain | test/testcase/testng/InterfaceTest-1.8/src/cases/SubmitTxTest.java | Java | apache-2.0 | 3,761 |
/*
* 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 |
module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
//Read the package.json (optional)
pkg: grunt.file.readJSON('package.json'),
// Metadata.
meta: {
basePath: './',
srcPath: './src/',
deployPath: './bin/',
... | wildcatsoft/Knockout.WinJS | gruntfile.js | JavaScript | apache-2.0 | 3,484 |
//
// 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 |
<?php
$config = array(
'service' => 'Kafka',
'brokers' => array('192.168.0.50:9092'),
'state_dir' => '/workdir/state',
'loglevel' => LOG_DEBUG,
'timeout' => 1000,
'topics' => array(
array('name' => 'test1', 'partitions' => array(0)),
),
'config_check_interval' => 6,
... | pozgo/docker-kafka | tests/config.php | PHP | apache-2.0 | 354 |
/*
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 |