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 2014 IBM Corp. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
masayukig/tempest
tempest/tests/cmd/test_verify_tempest_config.py
Python
apache-2.0
29,474
/* * * 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"); y...
glahiru/airavata
modules/commons/workflow-execution-context/src/main/java/org/apache/airavata/common/workflow/execution/context/WorkflowContextHeaderBuilder.java
Java
apache-2.0
20,575
/* * Licensed to STRATIO (C) under one or more contributor license agreements. * See the NOTICE file distributed with this work for additional information * regarding copyright ownership. The STRATIO (C) licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file...
Stratio/Explorer
web/app/scripts/directives/ngenter.js
JavaScript
apache-2.0
1,295
/* * Copyright 2015 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 "license" ...
rcuvgd/Ivona---Text-to-speach
src/main/java/com/ivona/services/tts/model/transform/createspeech/CreateSpeechPostRequestMarshaller.java
Java
apache-2.0
9,116
package com.example.fewwind.myfirst.Util; import android.util.Log; import java.io.InputStream; import java.io.RandomAccessFile; import java.net.HttpURLConnection; import java.net.URL; /** * Created by fewwind on 2015/11/13. */ public class DownUtil { private String filePath; private String urlLoad; p...
fewwind/InCarMedia
Myapp/src/main/java/com/example/fewwind/myfirst/Util/DownUtil.java
Java
apache-2.0
2,986
/* * Copyright 2010-2016 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 "lice...
trasa/aws-sdk-java
aws-java-sdk-sns/src/main/java/com/amazonaws/services/sns/model/transform/ListEndpointsByPlatformApplicationRequestMarshaller.java
Java
apache-2.0
2,634
package com.intellij.gwt.inspections; import javax.annotation.Nonnull; import com.intellij.codeInspection.LocalQuickFix; import com.intellij.gwt.GwtBundle; /** * @author nik */ public abstract class BaseGwtLocalQuickFix implements LocalQuickFix { private String myName; protected BaseGwtLocalQuickFix(final String...
consulo/consulo-google-gwt
plugin/src/main/java/com/intellij/gwt/inspections/BaseGwtLocalQuickFix.java
Java
apache-2.0
540
package com.lyndir.lhunath.opal.wayward.navigation; import javax.annotation.Nonnull; import javax.annotation.Nullable; import org.apache.wicket.markup.html.panel.Panel; /** * <h2>{@link TabState}<br> <sub>[in short] (TODO).</sub></h2> * * <p> <i>07 10, 2010</i> </p> * * @author lhunath */ public interface TabS...
Lyndir/Opal
opal-wicket/src/main/java/com/lyndir/lhunath/opal/wayward/navigation/TabState.java
Java
apache-2.0
835
(function() { var CusPromise, root; root = typeof exports !== "undefined" && exports !== null ? exports : this; CusPromise = function(promise_) { var obj; obj = { to: function(target, attr, callback) { this.promise.then(function(data) { if (data.data !== void 0 && data.result !==...
zhaowenjian/CCCourse
front/output/js/coffee-js/net_manager.js
JavaScript
apache-2.0
2,423
//// [varArgParamTypeCheck.ts] function sequence(...sequences:{():void;}[]) { } function callback(clb:()=>void) { } sequence( function bar() { }, function foo() { callback(()=>{ this(); }); }, function baz() { callback(()=>{ this(); }); ...
fdecampredon/jsx-typescript-old-version
tests/baselines/reference/varArgParamTypeCheck.js
JavaScript
apache-2.0
785
package voldemort.store.compress; import java.util.Arrays; import java.util.Collection; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import org.junit.runners.Parameterized.Parameters; import voldemort.ServerTestUtils; import voldemort.Voldem...
netbear/CloudAnts
test/unit/voldemort/store/compress/CompressingStoreTest.java
Java
apache-2.0
3,533
package simple_conn_pool import ( "fmt" "io" "sync" "time" ) //TODO: 保存所有的连接, 而不是只保存连接计数 var ErrMaxConn = fmt.Errorf("maximum connections reached") // type NConn interface { io.Closer Name() string Closed() bool } type ConnPool struct { sync.RWMutex Name string Address string MaxConns int32 MaxId...
niean/gotools
rpool/conn/simple_conn_pool/simple_conn_pool.go
GO
apache-2.0
2,962
/* * 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 ...
shardingjdbc/sharding-jdbc
sharding-core/sharding-core-merge/src/test/java/org/apache/shardingsphere/sharding/merge/dql/orderby/OrderByStreamMergedResultTest.java
Java
apache-2.0
11,739
import py_compile import time import marshal import errno import traceback from os.path import join as path_join, isfile, isdir, getmtime from translate import translate_file, translate_string, pystmts_to_string from struct import unpack from errors import TempyError, TempyImportError, TempyCompileError, TempyNativeC...
Algy/tempy
tempy/env.py
Python
apache-2.0
9,404
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Tests for Twitter on iOS 8+ plugin.""" import unittest from plaso.lib import definitions from plaso.parsers.sqlite_plugins import twitter_ios from tests.parsers.sqlite_plugins import test_lib class TwitterIOSTest(test_lib.SQLitePluginTestCase): """Tests for Twitt...
kiddinn/plaso
tests/parsers/sqlite_plugins/twitter_ios.py
Python
apache-2.0
3,854
package org.inaetics.dronessimulator.pubsub.inaetics; import org.apache.felix.dm.annotation.api.Destroy; import org.apache.felix.dm.annotation.api.Init; import org.apache.felix.dm.annotation.api.Start; import org.apache.felix.dm.annotation.api.Stop; import org.inaetics.dronessimulator.pubsub.inaetics.subscriber.DemoSu...
INAETICS/Drones-Simulator
implementation/pubsub/inaetics/inaetics/test/src/test/java/org/inaetics/dronessimulator/pubsub/inaetics/Demo.java
Java
apache-2.0
1,661
/* * Copyright 2013 EK3 Technologies, 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...
ceineke/astyanax-jpa
astyanax-jpa-impl/src/test/java/ei/ne/ke/cassandra/cql3/template/BatchStatementBuilderTest.java
Java
apache-2.0
1,820
/* * KIELER - Kiel Integrated Environment for Layout Eclipse RichClient * * http://www.informatik.uni-kiel.de/rtsys/kieler/ * * Copyright 2010 by * + Christian-Albrechts-University of Kiel * + Department of Computer Science * + Real-Time and Embedded Systems Group * * This code is provided under the t...
ExplorViz/ExplorViz
src-external/de/cau/cs/kieler/klay/layered/p3order/ForsterConstraintResolver.java
Java
apache-2.0
11,578
package com.dailyhotel.watchman; import java.util.concurrent.TimeUnit; /** * Created by tywin on 15/11/2016. */ public interface CacheClient { MethodCall get(String key); void set(String key, MethodCall value, long timeout, TimeUnit unit); }
DailyHotel/Watchman
src/main/java/com/dailyhotel/watchman/CacheClient.java
Java
apache-2.0
254
package com.xmartlabs.scasas.doapp.model; import org.parceler.Parcel; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; /** * Created by remer on 08/12/15. */ @Builder @Data @NoArgsConstructor @Parcel public class AuthResponse { // TODO }
chacaa/DoApp
app/src/main/java/com/xmartlabs/scasas/doapp/model/AuthResponse.java
Java
apache-2.0
272
package com.cloud.hypervisor; import com.cloud.host.dao.HostDao; import com.cloud.legacymodel.communication.command.Command; import com.cloud.legacymodel.utils.Pair; import com.cloud.model.enumeration.HypervisorType; import com.cloud.utils.component.ManagerBase; import javax.annotation.PostConstruct; import javax.inj...
MissionCriticalCloud/cosmic
cosmic-core/server/src/main/java/com/cloud/hypervisor/HypervisorGuruManagerImpl.java
Java
apache-2.0
2,240
import { expect } from 'chai'; import sinon from 'sinon'; import flatMap from 'lodash/flatMap'; import createStore from '../../../store'; import emitterMiddleware from '../../../middlewares/emitter'; /* eslint-disable no-unused-expressions */ describe('Middleware', () => { let store; let callback; befor...
maxmert/reflecti
test/unit/middlewares/emitter.js
JavaScript
apache-2.0
2,160
<?php return [ 'plugin' => [ 'name' => 'Pages', 'description' => 'Fonctionnalités de pages et menus statiques.', ], 'page' => [ 'menu_label' => 'Pages', 'delete_confirmation' => 'Confirmez-vous la suppression des pages sélectionnées ? Les sous-pages seront également supprimé...
kironuniversity/main-website
plugins/rainlab/pages/lang/fr/lang.php
PHP
apache-2.0
6,039
/* * Copyright 2015 Lei CHEN (raistlic@gmail.com) * * 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...
raistlic/raistlic-lib-commons-core
src/test/java/org/raistlic/common/precondition/PreconditionForStringStateTest.java
Java
apache-2.0
4,232
/* * Copyright (c) 2016 Samsung Electronics Co., 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 applic...
SamsungARTIK/demokit
test/test_gpioctrl.js
JavaScript
apache-2.0
965
/** * Copyright (c) Anton Johansson <antoon.johansson@gmail.com> * * 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...
anton-johansson/ip-to-geolocation-service
src/main/java/com/antonjohansson/geolocation/source/es/UpdateDocumentRequest.java
Java
apache-2.0
1,810
package overlay; import java.util.ArrayList; import java.util.List; import android.content.Context; import android.graphics.Color; import com.amap.api.maps.AMap; import com.amap.api.maps.CameraUpdateFactory; import com.amap.api.maps.model.BitmapDescriptor; import com.amap.api.maps.model.BitmapDescriptorFactory; impo...
JulianChina/ParkingApp
app/src/main/java/overlay/BusLineOverlay.java
Java
apache-2.0
7,848
/** * RDevice.java 2013/01/06 */ package com.ycsoft.beans.device; import java.io.Serializable; import java.util.Date; import com.ycsoft.beans.base.OptrBase; import com.ycsoft.commons.constants.DictKey; import com.ycsoft.commons.store.MemoryDict; import com.ycsoft.daos.config.POJO; /** * RDeviceUse...
leopardoooo/cambodia
ycsoft-lib/src/main/java/com/ycsoft/beans/device/RDeviceUseRecords.java
Java
apache-2.0
2,301
#include "src/cpp/basic/edgetpu_resource_manager.h" #include <chrono> // NOLINT #include <random> #include <thread> // NOLINT #include "absl/flags/parse.h" #include "glog/logging.h" #include "gtest/gtest.h" namespace coral { namespace { using EdgeTpuState = EdgeTpuResourceManager::EdgeTpuState; class EdgeTpuReso...
google-coral/edgetpu
src/cpp/basic/edgetpu_resource_manager_test.cc
C++
apache-2.0
6,349
import zstackwoodpecker.test_state as ts_header import os TestAction = ts_header.TestAction def path(): return dict(initial_formation="template5", checking_point=1, faild_point=100000, path_list=[ [TestAction.create_mini_vm, 'vm1', 'cluster=cluster2'], [TestAction.reboot_vm, 'vm1'], [TestAction.create_vm_bac...
zstackio/zstack-woodpecker
integrationtest/vm/mini/multiclusters/paths/multi_path88.py
Python
apache-2.0
2,871
package controllers.dialogControllers; import controllers.Controller; import javafx.event.ActionEvent; import javafx.fxml.FXML; import javafx.fxml.Initializable; import javafx.scene.Node; import javafx.scene.control.Button; import javafx.scene.control.ComboBox; import javafx.scene.control.Label; import javaf...
pashkobohdan/Music-Player
src/controllers/dialogControllers/ControllerCounterStop.java
Java
apache-2.0
3,338
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CenturyLinkCloudSDK.ServiceModels { public class Activity { public string AccountAlias { get; set; } public string Body { get; set; } public string AccountDes...
CenturyLinkCloud/clc-net-sdk
src/CenturyLinkCloudSDK/ServiceModels/Domain/Activity.cs
C#
apache-2.0
687
package api.mcd.model; import java.io.File; import java.net.URL; import com.google.gson.annotations.SerializedName; public class ImageCover { @SerializedName("MIME") private String mime; @SerializedName("Normal") private URL normal; @SerializedName("NormalSize") private int normalSize; @Seriali...
alessandrojean/manga-no-keiei
src/api/mcd/model/ImageCover.java
Java
apache-2.0
3,429
/* * $Revision$ * $Date$ * * Copyright (C) 1999-$year$ Jive Software. All rights reserved. * * This software is the proprietary information of Jive Software. Use is subject to license terms. */ package com.jivesoftware.os.tasmo.lib; import com.fasterxml.jackson.databind.node.ObjectNode; import com.jivesoftware....
jivesoftware/tasmo
code/com/jivesoftware/os/tasmo/tasmo-lib/src/test/java/com/jivesoftware/os/tasmo/lib/MultiViewsValuesTest.java
Java
apache-2.0
2,433
package com.thegrid.models; import com.google.api.server.spi.config.ApiResourceProperty; public class Etiqueta { @ApiResourceProperty(name = "nombre") private String _nombre; public Etiqueta() { } public Etiqueta(String nombre){ _nombre = nombre; } }
EzequielAyzenberg/proyectoOdin
src/main/java/com/thegrid/models/Etiqueta.java
Java
apache-2.0
289
/* * 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 ...
xhochy/arrow
java/vector/src/main/java/org/apache/arrow/vector/ipc/message/IpcOption.java
Java
apache-2.0
1,252
/* * Copyright 2019 EPAM Systems * * 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 ...
reportportal/commons-dao
src/main/java/com/epam/ta/reportportal/entity/activity/Activity.java
Java
apache-2.0
4,661
/* * Copyright 2017-2022 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 "licen...
aws/aws-sdk-java
aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/ListDocumentsRequest.java
Java
apache-2.0
19,461
from django.db.models import Q from beetle.models import PrincipalGroup, GatewayGroup from .models import Rule, RuleException def __get_applicable_rules(from_gateway, from_principal, to_gateway, to_principal, timestamp=None): """Get the queryset of rules that apply for the mapping.""" to_principal_groups = Princ...
helena-project/beetle
controller/access/lookup.py
Python
apache-2.0
2,657
package cn.jsprun.domain; public class Stats implements java.io.Serializable { private static final long serialVersionUID = -723349003919829228L; private StatsId id; private Integer count; public Stats() { } public Stats(StatsId id, Integer count) { this.id = id; this.count = count;...
TinghuanWang/source
src/cn/jsprun/domain/Stats.java
Java
apache-2.0
592
/* * Licensed to The Apereo Foundation under one or more contributor license * agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. * * The Apereo Foundation licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may...
maciej-zygmunt/unitime
JavaSource/org/unitime/timetable/onlinesectioning/OnlineSectioningServer.java
Java
apache-2.0
6,330
/* * 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 ...
googleinterns/calcite
core/src/main/java/org/apache/calcite/rel/rules/AggregateJoinRemoveRule.java
Java
apache-2.0
4,852
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
davidrice/mythtv-ffmpeg-tumblr-clip
public/build/mythtv-ffmpeg-tumblr-clip.js
JavaScript
apache-2.0
719,858
package br.com.cas10.oraman.oracle; import com.google.common.collect.ImmutableList; import java.util.List; public enum LockMode { NONE(0, "none"), NULL(1, "null (NULL)"), SS(2, "row-S (SS)"), SX(3, "row-X (SX)"), S(4, "share (S)"), SSX(5, "S/Row-X (SSX)"), X(6, "exclusive (X)"); private static...
fernandopeinado/ora_manager
src/main/java/br/com/cas10/oraman/oracle/LockMode.java
Java
apache-2.0
772
package com.linuxtek.kona.app.util; public interface KCallback { public void callback(Object object); }
LinuxTek/kona-app-model
src/main/java/com/linuxtek/kona/app/util/KCallback.java
Java
apache-2.0
109
'use strict'; var path = require('path'); var conf = require('./gulp/conf'); var _ = require('lodash'); var wiredep = require('wiredep'); var pathSrcHtml = [ path.join(conf.paths.src, '/**/*.html') ]; function listFiles() { var wiredepOptions = _.extend({}, conf.wiredep, { dependencies: true, devDepende...
brendangregg/vector
karma.conf.js
JavaScript
apache-2.0
2,704
var utils = require('../../utils').common; var _ = require('underscore'); /** Adds pagerduty field to devops if pagerduty related api is present * @param {string} devops_filename the filename of the devopsjson file relative to the fixtures directory * @param {fn} request_maker A function that takes two arguments, op...
racker/gutsy
lib/web/plugins/pager_duty.js
JavaScript
apache-2.0
1,738
#!/bin/env python # encoding:utf-8 # # # __Author__ = "CORDEA" __date__ = "2014-08-21" from collections import Counter infile = open("pred_info.vcf", "r") lines = infile.readlines() infile.close() # 0001a56c,chr1,5088617,2169089,44.2448979592,G,092a8efa7cd6427c91900bded95cab33,A,4:37:7:12,14:36:24:23,0:54:5:2,0:...
CORDEA/analysis_of_1000genomes-data
programs/machine_learning/extract_pred.py
Python
apache-2.0
1,133
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import functools imp...
tejal29/pants
src/python/pants/backend/python/thrift_builder.py
Python
apache-2.0
4,568
package com.matianl.explore.java8.ch9.sec02; import java.io.*; import java.net.*; import java.nio.charset.*; import java.nio.file.*; import java.util.*; public class FilesDemo { public static void main(String[] args) throws IOException { Path path = Paths.get("FilesDemo.java"); byte[] bytes = Files.rea...
matinalhope/explore
spring-jdbc/src/book/java/com/matianl/explore/java8/ch9/sec02/FilesDemo.java
Java
apache-2.0
2,006
""" Django settings for laboite_erp project. Generated by 'django-admin startproject' using Django 1.10.5. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ impor...
laboiteproject/laboite-erp
laboite_erp/settings.py
Python
apache-2.0
3,111
package org.apache.roller.ui.authoring.struts.forms; import org.apache.roller.RollerException; import java.util.Locale; /** * Generated by XDoclet/ejbdoclet/strutsform. This class can be further processed with XDoclet/webdoclet/strutsconfigxml and XDoclet/webdoclet/strutsvalidationxml. * * @struts.form name="rolle...
paulnguyen/cmpe279
eclipse/Roller/src/org/apache/roller/ui/authoring/struts/forms/RollerConfigForm.java
Java
apache-2.0
14,171
/* * Copyright (c) 2012-2017 The original author or authors * ------------------------------------------------------ * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * and Apache License v2.0 which accompanies this distributi...
windbender/moquette
broker/src/main/java/io/moquette/interception/messages/InterceptConnectMessage.java
Java
apache-2.0
2,229
// Copyright 2016 Yahoo Inc. // Licensed under the terms of the Apache 2.0 license. // Please see LICENSE file in the project root for terms. #include <string> #include <vector> #include "caffe/caffe.hpp" #ifndef CPU_ONLY #include "caffe/parallel.hpp" #include "util/socket_sync.hpp" #else #include "util/parallel_cpu.h...
anfeng/CaffeOnSpark
caffe-distri/src/main/cpp/util/mini_cluster.cpp
C++
apache-2.0
4,823
/* * Copyright 2017-2022 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 "licen...
aws/aws-sdk-java
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/transform/CreateTransitGatewayConnectRequestMarshaller.java
Java
apache-2.0
4,846
namespace nosql.Aggregation { using System; using System.Collections.Generic; using System.Linq; using MongoDB.Bson; using MongoDB.Driver; public class NoSqlPipeline { public string Database { get; set; } public string Collection { get; set; } public L...
jsouthron/nosql
src/nosql/Aggregation/NoSqlPipeline.cs
C#
apache-2.0
8,340
<?php $this->breadcrumbs=array( 'Devices'=>array('index'), $model->id, ); $this->menu=array( array('label'=>'List Device','url'=>array('index')), array('label'=>'Create Device','url'=>array('create')), array('label'=>'Update Device','url'=>array('update','id'=>$model->id)), array('label'=>'Delete Device','url'=>...
dailos/heimdal
heimdal.local/protected/views/device/view.php
PHP
apache-2.0
739
import * as types from '../mutation_types' const initTime = { time: new Date().getDate() }; export default { repositoryList({ commit },data) { commit(types.REPOSITORY_LIST, data) }, updateList({commit},list){ commit(types.UPDATE_LIST,list) } };
fangyang888/vue-project
src/store/actions.js
JavaScript
apache-2.0
273
require 'prime/rails/primerails' if defined?(Rails)
lazaronixon/prime-rails
lib/prime-rails.rb
Ruby
apache-2.0
51
/** * @fileoverview This file is generated by the Angular 2 template compiler. * Do not edit. * @suppress {suspiciousCode,uselessCode,missingProperties} */ /* tslint:disable */ var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() ...
driftyco/ionic-site
content/docs/v3/demos/src/components/item/item-reorder.ngfactory.js
JavaScript
apache-2.0
8,737
var mercurius = require('../index.js'); var request = require('supertest'); var crypto = require('crypto'); var should = require('chai').should(); var redis = require('../redis.js'); describe('mercurius register', function() { var token; before(function() { return mercurius.ready; }); var origRandomBytes...
marco-c/mercurius
test/testRegister.js
JavaScript
apache-2.0
2,638
using System; using System.Diagnostics; using Windows.Foundation; using Windows.UI.Xaml.Controls; using Windows.UI.Xaml.Controls.Primitives; using Windows.UI.Xaml.Media; namespace ArcGISRuntimeSDKDotNet_StoreSamples.Samples { /// <summary> /// Shows how to swipe one map over another. /// </summary> //...
Tyshark9/arcgis-runtime-samples-dotnet
src/Store/ArcGISRuntimeSDKDotNet_StoreSamples/Samples/Mapping/Swipe.xaml.cs
C#
apache-2.0
1,647
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 // 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: 2017.08.18 at 01...
chhh/MSFTBX
xsd-jaxb2-maven-build/target/generated-sources/xjc/umich/ms/io/type/mzidentml/ModificationType.java
Java
apache-2.0
6,447
package de.atomfrede.jenkins.domain; import java.io.Serializable; import com.google.gson.Gson; public class TestReport implements Serializable { private static final long serialVersionUID = -974641584792263440L; private int failCount; private int skipCount; private int totalCount; public int getFailCount() {...
atomfrede/animated-octo-adventure
jenkins.service/src/main/java/de/atomfrede/jenkins/domain/TestReport.java
Java
apache-2.0
838
/* * Copyright 2000-2016 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-python
python-impl/src/main/java/com/jetbrains/python/refactoring/PyDefUseUtil.java
Java
apache-2.0
6,432
#!/usr/bin/python """postprocess""" import argparse import ruamel.yaml import os def read(filename): """return file contents""" with open(filename, 'r') as file_in: return file_in.read() def write(filename, cwl): """write to file""" with open(filename, 'w') as file_out: file_out.wr...
rhshah/basicfiltering
vardict/postprocess.py
Python
apache-2.0
1,171
/* * Copyright 2017 requery.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 required by applicable law or agreed to i...
requery/requery
requery/src/main/java/io/requery/converter/ZonedDateTimeConverter.java
Java
apache-2.0
1,918
package com.codeboy.hadoop.wordcount.progressable; import java.io.IOException; import java.util.StringTokenizer; import org.apache.hadoop.io.IntWritable; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapreduce.Mapper; /*** * take a simple test and split by token * @author codeboyyong * */ public cla...
codeboyyong/hadoop-sample
wordcount_cli_yarn/src/main/java/com/codeboy/hadoop/wordcount/progressable/SlowWCTokenizerMapper.java
Java
apache-2.0
799
/* * Copyright 2016 TopClouders Hungary 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 ...
Gubancs/chess-profile
src/main/java/org/topclouders/chessprofile/component/MailProperties.java
Java
apache-2.0
1,441
#include <stdio.h> int main(void) { int N, n, cnt; char tmp; char big[105][105], small[4][105][105]; while (EOF != scanf("%d %d\n", &N, &n) && N && n) { for (int i = 0; i < N; i++) { for (int j = 0; j < N; j++) { scanf(" %c", &big[i][j]); } } for (int i = 0; i < n; i++) { ...
geniustanley/problem-solving
UVa/10855 - Rotated square.cpp
C++
apache-2.0
1,314
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/> <title>添加字段</title> <hdui bootstrap="true"/> ...
shizhen0632/hdcms
hd/Hdcms/Field/Tpl/Field/add.php
PHP
apache-2.0
3,971
#!/usr/bin/env python import SimpleITK as sitk import skimage as ski import skimage.segmentation import numpy as np import timeit def mask_label_contour(image, seg): """Combine an image and segmentation by masking the segmentation contour. For an input image (scalar or vector), and a multi-label segmentati...
blowekamp/itkSuperPixel
doc/scripts/evaluation_ski.py
Python
apache-2.0
1,526
/* * Copyright 2010 James Pether Sörling * * 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 agr...
Hack23/cia
model.external.worldbank.data.impl/src/main/java/com/hack23/cia/model/external/worldbank/data/impl/DataElement.java
Java
apache-2.0
6,818
package com.fasterxml.jackson.databind.util; import com.fasterxml.jackson.databind.AnnotationIntrospector; import java.io.Serializable; import java.lang.reflect.Method; import java.util.HashMap; public class EnumResolver<T extends Enum<T>> implements Serializable { private static final long serialVersionUID = 1L;...
mmmsplay10/QuizUpWinner
quizup/com/fasterxml/jackson/databind/util/EnumResolver.java
Java
apache-2.0
3,736
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Runtime.Serialization; using System.Text.RegularExpressions; using System.Threading.Tasks; using MOE.Common.Business.Bins; using MOE.Common.Business.DataAggregation; using MOE.Common.Models; namespace MOE.Common.Business...
udotdevelopment/ATSPM
MOE.Common/Business/WCFServiceLibrary/ApproachYellowRedActivationsAggregationOptions.cs
C#
apache-2.0
6,335
package com.arcbees.gssssite.client.application; import com.gwtplatform.mvp.client.gin.AbstractPresenterModule; public class ApplicationModule extends AbstractPresenterModule { @Override protected void configure() { bindPresenter(ApplicationPresenter.class, ApplicationPresenter.MyView.class, Applicati...
Pacane/gsss-documentation
src/main/java/com/arcbees/gssssite/client/application/ApplicationModule.java
Java
apache-2.0
395
<?php namespace app\modules\pages\controllers; use Yii; use app\modules\app\controllers\AppController; class DefaultController extends AppController { public function actionIndex() { return $this->render('index'); } }
FrenzelGmbH/company-website
modules/pages/controllers/DefaultController.php
PHP
apache-2.0
226
/** * Created by king on 15-5-20. * * ch10.net_maxconnections_clientB.js */ console.info("------ net getconnections() ------"); console.info(); var net = require("net"); // TODO: 引入网络(Net)模块 var HOST = '127.0.0.1'; // TODO: 定义服务器地址 var PORT = 8877; // TODO: 定义端口号 /** * 使用net.connect()函数方法创建一个T...
0end1/code_base
Node.js_Codebase/chapter10/ServerMaxConnections/ch10.net_maxconnections_clientB.js
JavaScript
apache-2.0
743
/* * * 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"); ...
adufilie/flex-falcon
compiler.js/src/org/apache/flex/compiler/internal/as/codegen/JSGlobalDirectiveProcessor.java
Java
apache-2.0
14,034
package myapp; import java.io.IOException; import java.util.Date; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class ThymeleafTemplateTestServlet extends HttpServlet { @Override public void doGet(HttpServletRequest req,...
dsanoster/thymeleaf-template-test
src/main/java/myapp/ThymeleafTemplateTestServlet.java
Java
apache-2.0
947
# -*- cpy-indent-level: 4; indent-tabs-mode: nil -*- # ex: set expandtab softtabstop=4 shiftwidth=4: # # Copyright (C) 2008,2009,2010,2011,2012,2013,2014,2015,2016,2017 Contributor # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # Y...
guillaume-philippon/aquilon
lib/aquilon/worker/commands/add_interface_network_device.py
Python
apache-2.0
2,483
/* * Copyright 2016 Pinterest, 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 ...
yongwen/teletraan
deploy-service/common/src/main/java/com/pinterest/deployservice/handler/EnvironHandler.java
Java
apache-2.0
20,532
# -*- coding: utf-8 -*- # # 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 #...
Fokko/incubator-airflow
airflow/contrib/operators/s3_list_operator.py
Python
apache-2.0
3,690
package gex.newsml.g2; import lombok.ToString; import java.math.BigDecimal; import java.math.BigInteger; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xm...
gextech/iptc-newsml
src/main/java/gex/newsml/g2/GeoCoordinatesType.java
Java
apache-2.0
10,700
package com.planet_ink.coffee_mud.Abilities.Spells; 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.p...
vjanmey/EpicMudfia
com/planet_ink/coffee_mud/Abilities/Spells/Spell_MarkerPortal.java
Java
apache-2.0
5,758
/* * Copyright 2012-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 "licen...
dagnir/aws-sdk-java
aws-java-sdk-api-gateway/src/main/java/com/amazonaws/services/apigateway/model/transform/DeploymentJsonUnmarshaller.java
Java
apache-2.0
3,671
<?php namespace Regweb\Authorization; interface AuthSchemeInterface { public function getAccessToken(); }
regweb/regweb-api-php
src/Regweb/Authorization/AuthSchemeInterface.php
PHP
apache-2.0
107
<?php /** *qdPM * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a copy of the lic...
arokia/oasis
source/oasis-ems/core/lib/model/doctrine/TasksPriorityTable.class.php
PHP
apache-2.0
1,251
using System; using NServiceBus; using NServiceBus.Persistence; class Program { static void Main() { BusConfiguration busConfig = new BusConfiguration(); busConfig.EndpointName("Samples.NHibernateCustomSagaFinder"); busConfig.UseSerialization<JsonSerializer>(); busConfig.Enabl...
pashute/docs.particular.net
samples/saga/nh-custom-sagafinder/Version_5/Sample/Program.cs
C#
apache-2.0
930
# encoding: UTF-8 # Copyright 2012 Twitter, Inc # http://www.apache.org/licenses/LICENSE-2.0 require 'spec_helper' include TwitterCldr::Shared describe Territory do let(:code) { '013' } let(:territory) { Territory.new(code) } describe '#parents' do let(:parents) { %w[013 territory parents] } it 'del...
surfdome/twitter-cldr-rb
spec/shared/territory_spec.rb
Ruby
apache-2.0
1,060
/* * Copyright (C) 2019 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...
androidx/media
libraries/extractor/src/main/java/androidx/media3/extractor/flac/package-info.java
Java
apache-2.0
720
// Copyright 2015 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "file.h" #include <errno.h> #include <fcntl.h> #ifdef __linux__ #include <linux/fs.h> #endif // __linux__ #include <string.h> #include <sys...
LuaExtend/LuaExtend
tools/bsdiff_bzip/android_bsdiff/file.cpp
C++
apache-2.0
3,032
from processor import Processor file_name = "program_samples\hello.hex" processor = Processor(file_name) processor.load() processor.run() if __name__ == '__main__': pass
AlexLitvino/i8080_simulator
runner.py
Python
apache-2.0
177
using System.Web; using System.Web.Optimization; namespace ProApps.Web.Mvc { public class BundleConfig { // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862 public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new S...
alprise/proapps
ProApps.Web.Mvc/App_Start/BundleConfig.cs
C#
apache-2.0
1,579
/** * */ package autor.builder.xml; import org.eclipse.core.resources.IFile; import org.eclipse.core.resources.IMarker; import org.eclipse.core.runtime.CoreException; import org.xml.sax.helpers.DefaultHandler; import autor.builder.message.ConsoleHelper; import autor.builder.utils.ConsoLevel; /** * @author shanli...
Ronshanlin/autor
src/autor/builder/xml/XmlDefaultHandler.java
Java
apache-2.0
1,091
/* * proto/v1beta1/grafeas.proto * * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * API version: version not set * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) */ package grafeas import ( "context" "io/ioutil" "...
grafeas/client-go
0.1.0/api_grafeas_v1_beta1.go
GO
apache-2.0
52,653
/* * Copyright Terracotta, 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 ...
lorban/ehcache3
impl/src/test/java/org/ehcache/impl/internal/store/tiering/TieredStoreSPITest.java
Java
apache-2.0
15,046
package application.beadando3.view; import application.beadando3.services.implementations.PingModelServiceImplementation; import java.time.LocalDateTime; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import application.beadando3.Main; import application.beadando3.DAO.PingModelDAO; import application.bea...
danida/beadando
src/main/java/application/beadando3/view/PingView.java
Java
apache-2.0
4,485
/* (C) Copyright 2015 Laran Evans */ package com.laranevans.warehouse.web.exception; import java.util.ArrayList; import java.util.List; public class JsonFriendlyErrors { private List<JsonFriendlyError> errors = new ArrayList<>(); public JsonFriendlyErrors(){} public JsonFriendlyErrors(List<JsonFriendlyEr...
laran/warehouse
warehouse/src/main/java/com/laranevans/warehouse/web/exception/JsonFriendlyErrors.java
Java
apache-2.0
730
package main; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import java.util.ArrayList; import javax.imageio.ImageIO; public class SpriteSheet { private ArrayList<BufferedImage> subImages = new ArrayList<BufferedImage>(); public SpriteSheet(String imgStr, int index, int ...
pehnquihn/pongmmo
Pong/src/main/SpriteSheet.java
Java
apache-2.0
665