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 2017 Global Security Experts 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... | gsx-lab/caras-framework | spec/models/hostname_spec.rb | Ruby | apache-2.0 | 1,898 |
import React from 'react';
// eslint-disable-next-line import/no-extraneous-dependencies
import { mount } from 'enzyme';
// eslint-disable-next-line import/no-extraneous-dependencies
import { FacetedSearchIcon } from './FacetedSearchIcon.component';
import getDefaultT from '../../translate';
const t = getDefaultT();
... | Talend/ui | packages/faceted-search/src/components/FacetedSearchIcon/FacetedSearchIcon.component.test.js | JavaScript | apache-2.0 | 1,710 |
package daemon // import "github.com/docker/docker/daemon"
import (
"fmt"
"io"
"os"
"os/exec"
"path/filepath"
"sort"
"strconv"
"strings"
containertypes "github.com/docker/docker/api/types/container"
"github.com/docker/docker/container"
daemonconfig "github.com/docker/docker/daemon/config"
"github.com/dock... | dmcgowan/docker | daemon/oci_linux.go | GO | apache-2.0 | 25,547 |
/*
* 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 ... | hbeatty/incubator-trafficcontrol | traffic_portal/test/integration/PageObjects/PhysLocationsPage.po.ts | TypeScript | apache-2.0 | 5,036 |
package org.thymoljs.thymol.test.json;
import com.cedarsoftware.util.io.JsonReader;
import com.cedarsoftware.util.io.JsonWriter;
public class JDEREGJsonCodec implements JSONCodec {
// Using the most cool https://github.com/jdereg/json-io
public JDEREGJsonCodec() {
}
@Override
public String encode( Objec... | thymol/thymol.js | src/main/java/org/thymoljs/thymol/test/json/JDEREGJsonCodec.java | Java | apache-2.0 | 533 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Entities;
namespace HRM.HR_Managment.Employee
{
public partial class List : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
... | GramozKrasniqi/HRMS | HRM/HR-Managment/Employee/List.aspx.cs | C# | apache-2.0 | 503 |
using System.Web;
using System.Web.Optimization;
namespace QueueBrowser
{
public class BundleConfig
{
public static void RegisterBundles(BundleCollection bundles)
{
bundles.Add(new StyleBundle("~/content/css")
.Include(
"~/Content/bootstrap.css",... | loresoft/MongoDB.Messaging | Samples/QueueBrowser/App_Start/BundleConfig.cs | C# | apache-2.0 | 2,337 |
/*
* Copyright 2016 Girish Kamath
*
* 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... | rhoadster91/android-siesta | library/src/main/java/com/rhoadster91/android/siesta/api/capability/Puttable.java | Java | apache-2.0 | 837 |
var _ = require('underscore');
var vcr = require('nock-vcr-recorder-mocha');
var Sdk = require('./../../../lib/clc-sdk.js');
var compute = new Sdk('cloud_user', 'cloud_user_password').computeServices();
var assert = require('assert');
var ServerBuilder = require('./../server-builder.js');
vcr.describe('Create server ... | CenturyLinkCloud/clc-node-sdk | test/compute-services/servers/create-server-test.js | JavaScript | apache-2.0 | 2,709 |
package net.minecraft.src;
import net.minecraft.entity.player.EntityPlayer;
/**
*
* @author Gregory
*/
public class NetServerHandler {
public EntityPlayer playerEntity;
}
| BeyondMinecraft/AbacusCommonsLib | src/main/java/net/minecraft/src/NetServerHandler.java | Java | apache-2.0 | 178 |
# -*- coding: utf-8 -*-
# Copyright (c) 2016 Ericsson AB
#
# 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 ... | les69/calvin-base | calvin/runtime/south/plugins/io/sensors/rotary_encoder/platform/ky040_rotary_impl/rotary_encoder.py | Python | apache-2.0 | 3,011 |
#!/usr/env python
import sys
#let's parse strings in python!
options = []
with open("src/zopt.ggo.in") as fd:
for l in fd:
if l.startswith("option "):
option = l.split()[1].lstrip('"').rstrip('"')
options.append(option)
man = open('src/zmap.1.ronn').read()
failures = False
for opt... | willscott/zmap | scripts/check_manfile.py | Python | apache-2.0 | 493 |
package com.elastisys.scale.cloudpool.commons.basepool;
import static com.google.common.base.Objects.equal;
import static java.lang.String.format;
import org.hamcrest.Description;
import org.hamcrest.Factory;
import org.hamcrest.Matcher;
import org.hamcrest.TypeSafeMatcher;
import com.elastisys.scale.cloudpool.api.t... | Eeemil/scale.cloudpool | commons/src/test/java/com/elastisys/scale/cloudpool/commons/basepool/IsSetServiceStateAlert.java | Java | apache-2.0 | 1,505 |
package com.mageddo.config;
import org.junit.jupiter.api.extension.BeforeTestExecutionCallback;
import org.junit.jupiter.api.extension.ExtensionContext;
import org.junit.jupiter.api.extension.TestInstancePostProcessor;
import org.junit.platform.commons.support.AnnotationSupport;
import io.micronaut.test.annotation.Mi... | mageddo/bookmark-notes | src/test/java/com/mageddo/config/DatabaseConfiguratorExtension.java | Java | apache-2.0 | 974 |
#coding=UTF-8
'''
Created on 2011-7-6
@author: Administrator
'''
from urlparse import urlparse
import cookielib
from pyquery.pyquery import PyQuery #@UnresolvedImport
import re
import datetime #@UnusedImport
import urllib2
from lxml import etree #@UnresolvedImport
from lxml.cssselect import CSSSelector #@Unresolv... | ptphp/PyLib | src/webpy1/src/jjrspider/ganji.py | Python | apache-2.0 | 40,700 |
/*
* Copyright 2016, 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 applic... | sdsxer/mmdiary | client/source/mmdiary/app/src/main/java/com/example/android/architecture/blueprints/todoapp/tasks/domain/model/Task.java | Java | apache-2.0 | 4,578 |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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... | JoelMarcey/buck | src/com/facebook/buck/core/artifact/DeclaredArtifact.java | Java | apache-2.0 | 1,622 |
package org.spanna.material;
import org.spanna.block.BlockFace;
import org.spanna.Material;
/**
* MaterialData for torches
*/
public class Torch extends SimpleAttachableMaterialData {
public Torch() {
super(Material.TORCH);
}
/**
*
* @deprecated Magic value
*/
@Deprecated
... | SpannaProject/SpannaAPI | src/main/java/org/spanna/material/Torch.java | Java | apache-2.0 | 1,816 |
/*
* Copyright 2013 Philip Schiffer
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | PSDev/slf4j-android-logger | src/test/java/de/psdev/slf4j/android/logger/AndroidLoggerAdapterTest.java | Java | apache-2.0 | 11,065 |
package com.yan.leetcode;
import org.junit.Test;
public class RemoveDuplicatesFromSortedList {
@Test
public void test() {
ListNode head = new ListNode(1);
head.next = new ListNode(1);
// head.next.next = new ListNode(2);
System.out.println(deleteDuplicates2(head));
}
public ListNode deleteDuplicates(Lis... | ustbyjy/leetcode | src/main/java/com/yan/leetcode/RemoveDuplicatesFromSortedList.java | Java | apache-2.0 | 949 |
/*
* Copyright 2017 Exorath
*
* 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... | Exorath/ExoHUD | src/main/java/com/exorath/exoHUD/SimpleHUDPackage.java | Java | apache-2.0 | 973 |
/*
* Copyright 2015 The gRPC 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 applicable law or agree... | zhangkun83/grpc-java | core/src/main/java/io/grpc/EquivalentAddressGroup.java | Java | apache-2.0 | 4,376 |
/**
* Package for test tracker task.
*
* @author Alexander Golovatyuk
* @version $Id$
* @since 0.1
*/
package ru.job4j.tracker; | agolovatjuk/alexander4j | chapter_002/src/test/java/ru/job4j/tracker/package-info.java | Java | apache-2.0 | 133 |
#!/usr/bin/env python
# -*- cpy-indent-level: 4; indent-tabs-mode: nil -*-
# ex: set expandtab softtabstop=4 shiftwidth=4:
#
# Copyright (C) 2009,2010,2012,2013,2014,2015,2016 Contributor
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the Licen... | guillaume-philippon/aquilon | tests/broker/test_del_user.py | Python | apache-2.0 | 1,774 |
package com.ganxin.codebase.widgets.layout;
import android.annotation.SuppressLint;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.RelativeLayout;
/**
*
* Description : 正方形的Layout <br/>
* author : WangGanxin <br/>
* date : 2016/9/4 <br/>
* email : ganxinvip@163.com <br/>... | WangGanxin/Codebase | app/src/main/java/com/ganxin/codebase/widgets/layout/SquareLaylout.java | Java | apache-2.0 | 1,695 |
package com.hubspot.singularity.scheduler;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import com.google.inject.Inject;
import com.google.inject.Singleton;
import com.hubspot.singularity.MachineState;
import com.hubspot.singularity.SingularitySlave;
import com.hu... | andrhamm/Singularity | SingularityService/src/main/java/com/hubspot/singularity/scheduler/SingularityUsageHelper.java | Java | apache-2.0 | 1,323 |
/**
* 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... | logzio/camel | platforms/commands/commands-core/src/test/java/org/apache/camel/commands/catalog/CamelComponentCatalogTest.java | Java | apache-2.0 | 4,257 |
using System.Web.Mvc;
using EPiServer.Reference.Commerce.Site.Features.Global.ProductRegistration.Pages;
using EPiServer.Reference.Commerce.Site.Features.Global.ProductRegistration.ViewModels;
using EPiServer.Reference.Commerce.Site.Features.Global.Profile.Pages;
using EPiServer.Web.Mvc;
using EPiServer.Reference.Comm... | simerc/QuicksilverPlus | Sources/EPiServer.Reference.Commerce.Site/Features/Global/ProductRegistration/Controllers/ProductRegistrationController.cs | C# | apache-2.0 | 792 |
package bookshop2.supplier.incoming.queryBooks;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
import org.aries.runtime.BeanContext;
import org.aries.runtime.RequestContext;
import org.aries.tx.AbstractHandlerUnitTest;
import org.aries.tx.Transactional;
import org.aries.util.FieldUt... | tfisher1226/ARIES | bookshop2/bookshop2-supplier/bookshop2-supplier-service/src/test/java/bookshop2/supplier/incoming/queryBooks/QueryBooksHandlerUnitTest.java | Java | apache-2.0 | 5,692 |
<?php
/**
* Created by IntelliJ IDEA.
* User: swarm
* Date: 14.10.15
* Time: 10:59
*/
namespace Shelly;
class Palette
{
const MSG_GOLOR_NOT_EXISTS = 'Color does not exists';
/**
* @var array
* contains fg colors and it`s aliases
*/
protected static $colors = [
'black' => 30,
... | greezeek/shelly | src/Shelly/Palette.php | PHP | apache-2.0 | 2,125 |
/*
* base/logger.cc
* -------------------------------------------------------------------------
* Definitions for s3::base::logger static members and init() method.
* -------------------------------------------------------------------------
*
* Copyright (c) 2012, Tarick Bedeir.
*
* Licensed under the Apache L... | mettacrawler/gcsfs | src/base/logger.cc | C++ | apache-2.0 | 1,097 |
module Chronic
module Handlers
module_function
# Handle month/day
def handle_m_d(month, day, time_tokens, options)
month.start = self.now
span = month.this(options[:context])
year, month = span.begin.year, span.begin.month
day_start = Chronic.time_class.local(year, month, day)
... | kevstessens/docnetrails | vendor/bundle/gems/chronic-0.9.1/lib/chronic/handlers.rb | Ruby | apache-2.0 | 18,912 |
<?php
session_start();
include_once('includes/connection.php');
include_once('includes/product.php');
include_once('includes/user.php');
$page_title = "Products from this seller.php";
include('includes/header.php');
$product = new Product();
$user = new user();
//$data = $product->fetch_all();
$seller_id = isset($_GET... | updownlife/campustore | seller.php | PHP | apache-2.0 | 3,528 |
package view;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Matrix;
import android.util.AttributeSet;
import android.util.FloatMath;
import android.view.MotionEvent;
import android.widget.ImageView;
public class ImageControl extends ImageView {
public ImageControl(Context co... | ydc201211/VirtualCampus | src/view/ImageControl.java | Java | apache-2.0 | 7,455 |
# AUTHOR
# jan molic /mig/at/1984/dot/cz/
#
# DESCRIPTION
# Hash with preserved order and some array-like extensions
# Public domain.
#
# THANKS
# Andrew Johnson for his suggestions and fixes of Hash[],
# merge, to_a, inspect and shift
module Buildr
module OSGi
class OrderedHash < ::Hash
att... | realityforge/buildr-osgi-assembler | lib/buildr/osgi/ordered_hash.rb | Ruby | apache-2.0 | 4,530 |
// This is a generated file. Not intended for manual editing.
package com.github.joshholl.intellij.csharp.lang.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface CSharpThisAccess extends PsiElement {
}
| joshholl/intellij-csharp | gen/com/github/joshholl/intellij/csharp/lang/psi/CSharpThisAccess.java | Java | apache-2.0 | 271 |
package com.linkedin.common.util;
import com.datahub.test.testing.AspectBar;
import com.datahub.test.testing.AspectBaz;
import com.datahub.test.testing.AspectFoo;
import com.datahub.test.testing.AspectFooArray;
import com.datahub.test.testing.AspectInvalid;
import com.datahub.test.testing.EntitySnapshot;
import com.da... | linkedin/WhereHows | li-utils/src/test/java/com/linkedin/common/util/RecordUtilsTest.java | Java | apache-2.0 | 16,237 |
/*
Copyright 2005-2006 The Apache Software Foundation or its licensors, as applicable
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... | freeVM/freeVM | enhanced/buildtest/tests/vts/vm/src/test/vm/jvmti/funcs/GetErrorName/GetErrorName0102/GetErrorName0102.java | Java | apache-2.0 | 877 |
input = """
supp(B) :- on(B,table,0).
supp(B) :- on(B,B1,0), supp(B1).
on(b0,table,0) :- true.
on(b1,b0,0) :- true.
on(B,L,0) | -on(B,L,0) :- block(B), location(L).
true.
location(L) :- block(L).
location(table) :- true.
block(b0).
block(b1).
block(b2).
"""
output = """
supp(B) :- on(B,table,0).
s... | veltri/DLV2 | tests/parser/grounding.7.test.py | Python | apache-2.0 | 559 |
/*
Copyright 2011-2013 The Cassandra Consortium (cassandra-fp7.eu)
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 ... | cassandra-project/disaggregation | src/eu/cassandra/utils/Utils.java | Java | apache-2.0 | 26,163 |
// Copyright 2006 The Closure Library Authors. 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 requ... | Digaku/closure-library | closure/goog/net/tmpnetwork.js | JavaScript | apache-2.0 | 4,070 |
/**
* Created by chensheng on 15/8/3.
*/
'use strict';
(function (ns) {
ns.Publisher = tp.view.Loader.extend({
events: {
'change [name=publisher_type]': 'publisherType_changeHandler',
'change [name=province]': 'province_changeHandler'
},
initialize: function (options) {
tp.view.Loader.... | RyanTech/admin-v5 | js/page/Publisher.js | JavaScript | apache-2.0 | 1,341 |
/*
Copyright 2015 The Kubernetes 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 applicable law or agreed to in writing, ... | tcnghia/kubernetes | test/e2e/apimachinery/resource_quota.go | GO | apache-2.0 | 88,449 |
package connpool
import (
"net"
"testing"
"github.com/Cloud-Foundations/Dominator/lib/resourcepool"
)
var serverAddress string
func init() {
listener, err := net.Listen("tcp", "localhost:")
if err != nil {
panic(err)
}
serverAddress = listener.Addr().String()
//go http.Serve(listener, nil)
}
func TestGet... | rgooch/Dominator | lib/connpool/usage_test.go | GO | apache-2.0 | 1,703 |
package app.dataTransportObject;
import app.viewObject.OrderVO;
public class OrderDTO {
public OrderDTO(OrderVO orderVo) {
super();
}
}
| pawel-nn/proj_app_bd_sem7 | ProjAppBD/src/main/java/app/dataTransportObject/OrderDTO.java | Java | apache-2.0 | 144 |
/*
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... | mslocrian/cuview | apis/parameterhandlers.go | GO | apache-2.0 | 1,535 |
/*
* Copyright (c) 2005-2013 Jyoti Parwatikar
* and Washington University in St. Louis
*
* 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
... | WU-ARL/RLI | HardwareGraphic.java | Java | apache-2.0 | 32,220 |
/*
* Copyright 2011-2012 Gregory P. Moyer
*
* 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 ... | syphr42/libmythtv-java | db/src/main/java/org/syphr/mythtv/db/schema/impl/_0_24/RecordedProgramId1264.java | Java | apache-2.0 | 3,214 |
/*
* File: app/controller/footerController.js
*/
Ext.define('webapp.controller.footerController', {
extend: 'Ext.app.Controller',
refs: {
footerLabel2: '#footerLabel2'
},
onLaunch: function() {
/**
* address Label click event를 catch 하도록 설정
*/
this.getFooter... | OpenSourceConsulting/athena-meerkat | console/app/controller/footerController.js | JavaScript | apache-2.0 | 1,951 |
/*
* Copyright 2005-2014 The Kuali Foundation
*
* Licensed under the Educational Community 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.opensource.org/licenses/ecl1.php
*
* Unless required by... | blackcathacker/kc.preclean | coeus-code/src/test/java/org/kuali/kra/irb/actions/notification/ProtocolNotificationTemplateRuleTest.java | Java | apache-2.0 | 4,135 |
/*
* Copyright 2005-2014 The Kuali Foundation
*
* Licensed under the Educational Community 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.osedu.org/licenses/ECL-2.0
*
* Unless required by appli... | blackcathacker/kc.preclean | coeus-code/src/main/java/org/kuali/coeus/common/budget/framework/core/BudgetAction.java | Java | apache-2.0 | 38,863 |
/**
* Copyright (C) 2012 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.financial.analytics.model.pnl;
import java.util.Collections;
import java.util.Set;
import com.opengamma.engine.ComputationTarget;
import com.opengamma.engine.... | McLeodMoores/starling | projects/financial/src/main/java/com/opengamma/financial/analytics/model/pnl/FXOptionBlackPnLDefaults.java | Java | apache-2.0 | 3,692 |
$.STRATUS = function (){
var _init = function () {
$('#logout').click(_logout)
};
var _logout = function (event) {
event.preventDefault();
// Workaround to logout user
// As HTTP is state-less there is no cross-browser clean way to do
$.get(location.href.replace('://', '://x-pdisk-logout@'));
};
re... | StratusLab/storage | pdisk-server/war/src/main/webapp/media/js/stratuslab.js | JavaScript | apache-2.0 | 387 |
package com.mkhuda.offlinecache;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.android.volley.Request.Method;
impor... | mkhuda/AndOfflineMechanism | src/com/mkhuda/offlinecache/MainActivity.java | Java | apache-2.0 | 4,007 |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v9/services/conversion_value_rule_set_service.proto
package com.google.ads.googleads.v9.services;
/**
* <pre>
* The result for the conversion value rule set mutate.
* </pre>
*
* Protobuf type {@code google.ads.googleads.v... | googleads/google-ads-java | google-ads-stubs-v9/src/main/java/com/google/ads/googleads/v9/services/MutateConversionValueRuleSetResult.java | Java | apache-2.0 | 32,654 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Apworks.Messaging
{
public abstract class MessageHandlerExecutionContext : IMessageHandlerExecutionContext
{
public void RegisterHandler<TMessage, THand... | daxnet/apworks-core | src/Apworks/Messaging/MessageHandlerExecutionContext.cs | C# | apache-2.0 | 1,024 |
// Code generated by go-swagger; DO NOT EDIT.
package routes
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"fmt"
"io"
"github.com/go-openapi/runtime"
strfmt "github.com/go-openapi/strfmt"
"github.com/funcy/functio... | funcy/functions_go | client/routes/delete_apps_app_routes_route_responses.go | GO | apache-2.0 | 4,056 |
/* Copyright 2017 The TensorFlow Authors. 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 law or a... | Intel-Corporation/tensorflow | tensorflow/lite/kernels/fully_connected.cc | C++ | apache-2.0 | 50,508 |
package com.wistronits.wh.annbot.business.biz.modules;
import com.wistronits.wh.annbot.business.mvp.contract.MainContract;
import com.wistronits.wh.annbot.business.mvp.contract.NurseListContract;
import dagger.Module;
import dagger.Provides;
/**
* Created by WH1705002 on 2017/9/1.
*/
@Module
public class NurseModu... | WiAnnBot/annbot | app/src/main/java/com/wistronits/wh/annbot/business/biz/modules/NurseModule.java | Java | apache-2.0 | 547 |
#region -- License Terms --
//
// MessagePack for CLI
//
// Copyright (C) 2010-2012 FUJIWARA, Yusuke
//
// 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.apac... | msgpack/msgpack-cli | samples/Samples/Sample02_HandlingDynamicObject.cs | C# | apache-2.0 | 4,711 |
package com.keeps.crm.service.impl;
import java.text.DecimalFormat;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.keeps.core.service.AbstractService;
import com.keeps.crm.dao.BuyRecordDao;
import com.keeps.crm.service.BuyRecordServic... | keepsl/keepsmis | crm/src/main/java/com/keeps/crm/service/impl/BuyRecordServiceImpl.java | Java | apache-2.0 | 3,106 |
/**
* This file is part of log4j2redis
*
* Copyright (c) 2012 by Pavlo Baron (pb at pbit dot org)
*
* 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.... | pavlobaron/log4j2redis | src/test/org/pbit/log4j2redis/Log4j2RedisTest.java | Java | apache-2.0 | 1,410 |
/*!
* ${copyright}
*/
sap.ui.define([
"sap/ui/test/_OpaLogger",
"sap/ui/base/ManagedObject"
], function (_OpaLogger, ManagedObject) {
"use strict";
/**
* @class Matchers for Opa5 - needs to implement an isMatching function that returns a boolean and will get a control instance as parameter
* @abstract
* @... | SAP/openui5 | src/sap.ui.core/src/sap/ui/test/matchers/Matcher.js | JavaScript | apache-2.0 | 1,818 |
package config
type GitManager struct {
Local []*GitLocal
Remote []*GitRemote
}
| flant/dapp | pkg/config/git_manager.go | GO | apache-2.0 | 84 |
///===--- Actor.cpp - Standard actor implementation ------------------------===///
///
/// This source file is part of the Swift.org open source project
///
/// Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
/// Licensed under Apache License v2.0 with Runtime Library Exception
///
/// See https:///s... | jmgc/swift | stdlib/public/Concurrency/Actor.cpp | C++ | apache-2.0 | 47,851 |
var CaoTest = CaoTest || {}
//把一个对象的自有属性copy到一个新的对象里 浅克隆
CaoTest.clone = function {
objClone = {};
each(obj, function(value, key) {
if (obj.hasOwnProperty(key)) objClone[key] = value;
});
return objClone;
} | jcto/DBWeb | utils/clone.js | JavaScript | apache-2.0 | 255 |
<?php
/**
* This file is part of Notadd.
*
* @author TwilRoad <heshudong@ibenchu.com>
* @copyright (c) 2017, notadd.com
* @datetime 2017-03-01 15:29
*/
namespace Notadd\Foundation\Translation\Events;
/**
* Class LocaleUpdated.
*/
class LocaleUpdated
{
/**
* The new locale.
*
* @var string
... | notadd/framework | src/Translation/Events/LocaleUpdated.php | PHP | apache-2.0 | 523 |
package org.apache.ode.bpel.engine.fc.excp;
/**
*
* @author Alex Hummel
*
*/
public class FragmentCompositionException extends Exception {
private static final long serialVersionUID = 9052461952290680611L;
public FragmentCompositionException() {
super();
}
public FragmentCompositionException(String mess... | TheRingbearer/HAWKS | ode/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/fc/excp/FragmentCompositionException.java | Java | apache-2.0 | 418 |
/* Generic definitions */
/* Assertions (useful to generate conditional code) */
/* Current type and class (and size, if applicable) */
/* Value methods */
/* Interfaces (keys) */
/* Interfaces (values) */
/* Abstract implementations (keys) */
/* Abstract implementations (values) */
/* Static containers (keys) */
/... | karussell/fastutil | src/it/unimi/dsi/fastutil/objects/Object2CharSortedMaps.java | Java | apache-2.0 | 13,714 |
/*
*
* Copyright 2016 Robert Winkler
*
* 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... | storozhukBM/javaslang-circuitbreaker | src/jmh/java/io/github/robwin/circuitbreaker/RingBitSetBenachmark.java | Java | apache-2.0 | 1,513 |
/* @flow strict-local */
import { addBreadcrumb } from '@sentry/react-native';
import type { Narrow, Stream, User } from '../types';
import { topicNarrow, streamNarrow, groupNarrow, specialNarrow } from './narrow';
import { isUrlOnRealm } from './url';
const getPathsFromUrl = (url: string = '', realm: string) => {
c... | vishwesh3/zulip-mobile | src/utils/internalLinks.js | JavaScript | apache-2.0 | 4,379 |
/*
* Copyright 2015 Doltech Systems 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 agree... | BenDol/gwt-jui-demo | src/main/java/nz/co/doltech/gwtjui/demo/client/application/home/HomePresenter.java | Java | apache-2.0 | 1,700 |
<?php
/*
*---------------------------------------------------------------
* APPLICATION ENVIRONMENT
*---------------------------------------------------------------
*
* You can load different configurations depending on your
* current environment. Setting the environment also influences
* things like logging an... | oclc-developer-house/thirdpartyapi | index.php | PHP | apache-2.0 | 6,390 |
package br.com.cofagra.bi.renders;
import java.io.IOException;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;
import lombok.extern.java.Log;
import org.primefaces.component.inputmask.InputMask;
import org.primefaces.component.inputmask.... | thiagonego/cofagra_bi | src/main/java/br/com/cofagra/bi/renders/ExtPrimeInputMaskRenderer.java | Java | apache-2.0 | 4,004 |
package it.polimi.dima.giftlist.presentation.presenter;
import com.pushtorefresh.storio.sqlite.StorIOSQLite;
import com.pushtorefresh.storio.sqlite.operations.put.PutResults;
import com.pushtorefresh.storio.sqlite.queries.DeleteQuery;
import com.pushtorefresh.storio.sqlite.queries.Query;
import com.pushtorefresh.stori... | volcacius/Giftlist | app/src/main/java/it/polimi/dima/giftlist/presentation/presenter/WishlistPresenter.java | Java | apache-2.0 | 8,395 |
<?php
final class PhabricatorPackagerCreateController
extends PhabricatorPackagerController {
public function processRequest() {
$request = $this->getRequest();
$user = $request->getUser();
$e_url = null;
$errors = array();
if ($request->isFormPost()) {
$url = $request->getStr('url')... | apexstudios/phabricator | src/applications/packager/controller/PhabricatorPackagerCreateController.php | PHP | apache-2.0 | 1,924 |
/*
* 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... | hazendaz/assertj-core | src/test/java/org/assertj/core/api/list/ListAssert_filteredOn_consumer_with_navigation_Test.java | Java | apache-2.0 | 3,541 |
import re
import calendar
from logs_analyzer.settings import *
from logs_analyzer.validators import *
from datetime import datetime
def get_service_settings(service_name):
"""
Get default settings for the said service
:param service_name: service name (example: nginx, apache2...)
:return: service sett... | ddalu5/logs-analyzer | logs_analyzer/lib.py | Python | apache-2.0 | 11,644 |
import os
from contextlib import contextmanager
from OpenSSL import crypto, SSL
import synapse.common as s_common
from synapse.tests.common import *
import synapse.lib.certdir as s_certdir
class CertDirTest(SynTest):
@contextmanager
def getCertDir(self):
'''
Get a test CertDir object.
... | vivisect/synapse | synapse/tests/test_lib_certdir.py | Python | apache-2.0 | 22,334 |
/*******************************************************************************
* Copyright 2006 - 2012 Vienna University of Technology,
* Department of Software Technology and Interactive Systems, IFS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in ... | openpreserve/plato | plato/src/main/java/eu/scape_project/planning/plato/wfview/full/DefineBasisView.java | Java | apache-2.0 | 5,051 |
/*
* Copyright (C) 2017 Bilibili
*
* 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... | xiyangyuge/boxing | boxing-impl/src/main/java/com/bilibili/boxing_impl/ui/BoxingViewActivity.java | Java | apache-2.0 | 11,625 |
#include "wormhole_predefine.h"
#include "wormhole_proxyprocess.h"
#include "wormhole_application.h"
#include "wormhole_stat_define.h"
//===================================================================================================
Interface_WH_Proxy::Interface_WH_Proxy()
{
}
Interface_WH_Proxy::~Interface_WH_... | sailzeng/zcelib | src/commsvr/wormholesvrd/wormhole_proxyprocess.cpp | C++ | apache-2.0 | 23,023 |
/**
* @license
* Copyright 2018-2021 Balena 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 ... | resin-io/resin-cli | lib/utils/device/deploy.ts | TypeScript | apache-2.0 | 16,586 |
##############################################################################
# Copyright 2017-2018 Rigetti Computing
#
# 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... | rigetticomputing/grove | grove/tests/tomography/test_process_tomography.py | Python | apache-2.0 | 6,859 |
/*
* $Id$
*/
package lia.util.net.copy;
import java.nio.ByteBuffer;
import java.util.UUID;
/**
* Wrapper class for a simple block ( can be an offset in whatever stream ... not only a file )
*
* @author ramiro
*/
public class FileBlock {
//used for signaling between Producers/Consumers
//public static f... | MonALISA-CIT/fdt | src/lia/util/net/copy/FileBlock.java | Java | apache-2.0 | 1,871 |
<?php
/*********
* Author: Iman Biswas
* Date : 14 sep 2011
* Modified By:
* Modified Date:
*
* Purpose:
* Model For User Type Master
*
* @package User
* @subpackage Access Control
*
* @includes infModel.php
* @includes MY_Model.php
*
* @link MY_Model.php
*/
class User_type_model extends M... | mrinsss/Full-Repo | jobshoppa/system/application/models/user_type_model.php | PHP | apache-2.0 | 30,165 |
/*******************************************************************************
*
* Copyright FUJITSU LIMITED 2017
* ... | opetrovski/development | oscm-portal/javasrc/org/oscm/ui/dialog/classic/manageudas/ManageUdaDefinitionPage.java | Java | apache-2.0 | 3,781 |
// (C) Copyright 2014 Hewlett Packard Enterprise Development LP
import React, { Component, PropTypes } from 'react';
import FormattedMessage from './FormattedMessage';
const CLASS_ROOT = "legend";
export default class Legend extends Component {
constructor(props) {
super(props);
this._onActive = this._on... | samogami/grommet | src/js/components/Legend.js | JavaScript | apache-2.0 | 3,868 |
/* Copyright (c) 2015 Magnet Systems, 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 ... | magnetsystems/message-common | src/main/java/com/magnet/mmx/protocol/Constants.java | Java | apache-2.0 | 12,172 |
package cgeo.geocaching.filters.gui;
import cgeo.geocaching.R;
import cgeo.geocaching.activity.AbstractActionBarActivity;
import cgeo.geocaching.databinding.CacheFilterActivityBinding;
import cgeo.geocaching.databinding.CacheFilterListItemBinding;
import cgeo.geocaching.filters.core.AndGeocacheFilter;
import cgeo.geoc... | rsudev/c-geo-opensource | main/src/cgeo/geocaching/filters/gui/GeocacheFilterActivity.java | Java | apache-2.0 | 24,922 |
/*
* Copyright 2015 JAXIO http://www.jaxio.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 la... | jaxio/celerio | celerio-spi-example/src/main/java/com/jaxio/celerio/spi/example/ExampleEntity.java | Java | apache-2.0 | 1,208 |
package freeyourstuff.data.model;
import java.io.IOException;
import org.codehaus.jackson.JsonGenerationException;
import org.codehaus.jackson.JsonParseException;
import org.codehaus.jackson.map.JsonMappingException;
import org.codehaus.jackson.map.ObjectMapper;
public class ItemMapper {
private static ObjectMapp... | nicolaierbs/free-your-stuff-server | src/main/java/freeyourstuff/data/model/ItemMapper.java | Java | apache-2.0 | 684 |
// Generated from /POI/java/org/apache/poi/hpsf/MarkUnsupportedException.java
#include <org/apache/poi/hpsf/MarkUnsupportedException.hpp>
poi::hpsf::MarkUnsupportedException::MarkUnsupportedException(const ::default_init_tag&)
: super(*static_cast< ::default_init_tag* >(0))
{
clinit();
}
poi::hpsf::MarkUnsupp... | pebble2015/cpoi | src/org/apache/poi/hpsf/MarkUnsupportedException.cpp | C++ | apache-2.0 | 1,808 |
const
db = require('./db')
;
let schema = new db.Schema({
owner: { type: String, indexed: true, required: true }, // user.id
name: { type: String, required: true },
path: { type: String, unique: true, required: true },
info: db.Schema.Types.Mixed,
content: db.Schema.Types.Mixed
}, { timestamps: db.timestam... | arthurmilliken/gateway | models/resource.js | JavaScript | apache-2.0 | 374 |
/*
* 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
* distribut... | wyukawa/presto | presto-main/src/test/java/io/prestosql/memory/TestMemoryPools.java | Java | apache-2.0 | 16,621 |
# Copyright 2016 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 agreed to in writing, so... | SVilgelm/CloudFerry | cloudferry/model/storage.py | Python | apache-2.0 | 1,801 |
/*
* (C) Copyright 2016 Richard Ballard.
*
* 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 ... | Richard-Ballard/pack-planner | src/test/java/com/github/richardballard/packplanner/item/order/ComparatorFromSortOrderFunctionTest.java | Java | apache-2.0 | 2,881 |
import Vue, { ComponentOptions, PluginFunction, AsyncComponent } from "vue";
type Component = ComponentOptions<Vue> | typeof Vue | AsyncComponent;
type Dictionary<T> = { [key: string]: T };
type ErrorHandler = (err: Error) => void;
export type RouterMode = "hash" | "history" | "abstract";
export type RawLocation = st... | falost/falost.github.io | static/libs/vue-router/types/router.d.ts | TypeScript | apache-2.0 | 3,536 |
package org.pitest.mutationtest.build;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.junit.MockitoJUnitRunner;
import org.pitest.bytecode.analysis.ClassTree;
import org.pitest.mutationtest.engine.Mutater;
import org.pitest.mutationtest.engi... | hcoles/pitest | pitest-entry/src/test/java/org/pitest/mutationtest/build/CompoundMutationInterceptorTest.java | Java | apache-2.0 | 4,212 |
package io.quarkus.maven.it.verifier;
import org.apache.maven.shared.invoker.InvocationRequest;
import org.apache.maven.shared.invoker.InvocationResult;
import org.apache.maven.shared.utils.cli.CommandLineException;
/**
* Result of {@link MavenProcessInvoker#execute(InvocationRequest)}. It keeps a reference on the c... | quarkusio/quarkus | test-framework/maven/src/main/java/io/quarkus/maven/it/verifier/MavenProcessInvocationResult.java | Java | apache-2.0 | 1,770 |