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 (C) 2012-2014 Jorrit "Chainfire" Jongma
*
* 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... | aravindsagar/SmartLockScreen | libsuperuser/src/eu/chainfire/libsuperuser/Shell.java | Java | apache-2.0 | 66,888 |
#region License(Apache Version 2.0)
/******************************************
* Copyright ®2017-Now WangHuaiSheng.
* 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/l... | wanghuaisheng/WitsWay | Solutions/AppUtilities/Utilities/Thread/LockObject.cs | C# | apache-2.0 | 1,682 |
/**
* Copyright (c) 2012, WSO2 Inc. (http://www.wso2.org) 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... | maheshika/carbon4-kernel | core/org.wso2.carbon.ndatasource.core/src/main/java/org/wso2/carbon/ndatasource/core/services/WSDataSourceMetaInfo.java | Java | apache-2.0 | 3,828 |
package com.github.thiagogarbazza.examples.xmlwithsax;
import java.io.File;
import java.io.InputStream;
import java.net.URISyntaxException;
import java.net.URL;
class ResourceGetter {
static File resourceFile(final String filePath) {
final URL url = Thread.currentThread().getContextClassLoader().getResource(fi... | thiagogarbazza/exemplos | example-xml-with-sax/src/test/java/com/github/thiagogarbazza/examples/xmlwithsax/ResourceGetter.java | Java | apache-2.0 | 621 |
#!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "hubblemon.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| naver/hubblemon | manage.py | Python | apache-2.0 | 252 |
/*
* Copyright 2014-2015 Open Networking Laboratory
*
* 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... | sonu283304/onos | core/store/dist/src/main/java/org/onosproject/store/cluster/messaging/impl/ClusterCommunicationManager.java | Java | apache-2.0 | 13,581 |
/*
* Copyright 2016 Crown Copyright
*
* 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... | flitte/Gaffer | tinkerpop/src/main/java/gaffer/gafferpop/GafferPopEdge.java | Java | apache-2.0 | 4,463 |
/*
* 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... | sdgdsffdsfff/presto | presto-spi/src/main/java/com/facebook/presto/spi/Range.java | Java | apache-2.0 | 6,940 |
/*******************************************************************************
* Copyright 2013-2015 alladin-IT GmbH
*
* 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://ww... | SPECURE/ratel-nettest | RMBTAndroid/src/at/alladin/rmbt/android/util/CheckIpTask.java | Java | apache-2.0 | 7,069 |
thDebug = true;
thAllowNullText = false;
| thymol/thymol.js | src/main/webapp/WEB-INF/templates/thymol/debug/debug-data.js | JavaScript | apache-2.0 | 41 |
/*
* Copyright 2006 Webmedia Group 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... | nortal/araneaframework | src/org/araneaframework/uilib/form/constraint/OptionalConstraint.java | Java | apache-2.0 | 2,059 |
contacts = "Contacts"; // avoid typos, this string occurs many times.
Contacts = new Mongo.Collection(contacts);
Meteor.methods({
/**
* Invoked by AutoForm to add a new Contacts record.
* @param doc The Contacts document.
*/
addContacts: function(doc) {
check(doc, Contacts.simpleSchema());
Conta... | mkshimod/digits | app/lib/collections/Contacts.js | JavaScript | apache-2.0 | 1,938 |
/// Copyright (C) 2012-2015 Soomla 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 app... | dfalcone/soomla-wp-core | soomla-wp-core/soomla-wp-core-interface/events/AppToForegroundEvent.cs | C# | apache-2.0 | 877 |
package ru.stqa.pft.addressbook.appmanager;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import ru.stqa.pft.addressbook.model.GroupData;
/**
* Created by Artur on 17.04.16.
*/
public class GroupHelper extends HelperBase {
public GroupHelpe... | arturkirakosian/java | addressbook-web-tests/src/test/java/ru/stqa/pft/addressbook/appmanager/GroupHelper.java | Java | apache-2.0 | 1,203 |
/*
* Copyright 2017 Jacopo Urbani
*
* 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, V... | jrbn/trident | src/trident/kb/permsorter.cpp | C++ | apache-2.0 | 39,131 |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... | joerg84/arangodb | lib/V8/V8LineEditor.cpp | C++ | apache-2.0 | 11,292 |
using Newtonsoft.Json;
using Sendwithus.Net;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Threading.Tasks;
namespace Sendwithus
{
/// <summary>
/// sendwithus Template class
/// </summary>
public class Template
{
public const string DEF... | sendwithus/sendwithus_csharp | Sendwithus/SendwithusClient/API/Template.cs | C# | apache-2.0 | 18,534 |
package com.github.skjolber.packing.test;
import static com.google.common.truth.Truth.assertThat;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.List;
import java.util.stream.Collectors;
import org.junit.jupiter.api.Test;
import com.github.skjolber.packing.test.bouwkamp.Bouwk... | skjolber/3d-bin-container-packing | test/src/test/java/com/github/skjolber/packing/test/BouwkampCodeParserTest.java | Java | apache-2.0 | 917 |
# Copyright 2021 The Kubeflow 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... | kubeflow/pipelines | samples/core/condition/condition_test.py | Python | apache-2.0 | 2,438 |
import React from 'react';
import PropTypes from 'prop-types';
import style from 'HPCCloudStyle/ItemEditor.mcss';
export default class SchedulerConfigSGE extends React.Component {
constructor(props) {
super(props);
this.updateConfig = this.updateConfig.bind(this);
}
updateConfig(event) {
if (this.p... | Kitware/HPCCloud | src/panels/SchedulerConfig/SGE.js | JavaScript | apache-2.0 | 2,229 |
/// <reference path="..\..\..\..\src\harness\external\mocha.d.ts" />
/// <reference path="..\..\..\..\src\harness\harnessLanguageService.ts" />
declare namespace chai.assert {
function deepEqual(actual: any, expected: any): void;
}
describe('PreProcessFile:', function () {
function test(sourceText: s... | ziacik/TypeScript | tests/cases/unittests/services/preProcessFile.ts | TypeScript | apache-2.0 | 20,837 |
package com.google.ratel.service.error;
import com.google.ratel.core.Mode;
import com.google.ratel.*;
import com.google.ratel.deps.io.*;
import com.google.ratel.service.classdata.*;
import com.google.ratel.service.log.LogService;
import com.google.ratel.service.resolver.*;
import com.google.ratel.util.*;
import java.i... | sabob/ratel | ratel/src/com/google/ratel/service/error/DefaultErrorHandlerService.java | Java | apache-2.0 | 3,778 |
/**
* #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
* This file is part of the Smart Developer Hub Project:
* http://www.smartdeveloperhub.org/
*
* Center for Open Middleware
* http://www.centeropenmiddleware.com/
* #-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=... | SmartDeveloperHub/sdh-curator-connector | src/test/java/org/smartdeveloperhub/curator/connector/ServerCuratorController.java | Java | apache-2.0 | 2,636 |
# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | googleapis/python-contact-center-insights | samples/generated_samples/contactcenterinsights_v1_generated_contact_center_insights_update_issue_sync.py | Python | apache-2.0 | 1,517 |
#ifndef RIAKPP_CONNECTION_POOL_HPP_
#define RIAKPP_CONNECTION_POOL_HPP_
#include <boost/asio/io_service.hpp>
#include <boost/system/error_code.hpp>
#include <cstddef>
#include <cstdint>
#include <vector>
#include "async_queue.hpp"
#include "check.hpp"
#include "endpoint_vector.hpp"
#include "transient.hpp"
namespac... | reinfer/riakpp | src/connection_pool.hpp | C++ | apache-2.0 | 5,709 |
#!/usr/bin/python
# Copyright 2016 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 agre... | googlegenomics/cloudml-examples | trainer/util.py | Python | apache-2.0 | 2,296 |
package org.ovirt.engine.ui.uicommonweb.models.storage;
import java.util.Collections;
import org.ovirt.engine.core.compat.*;
import org.ovirt.engine.ui.uicompat.*;
import org.ovirt.engine.core.common.businessentities.*;
import org.ovirt.engine.core.common.vdscommands.*;
import org.ovirt.engine.core.common.queries.*;
im... | anjalshireesh/gluster-ovirt-poc | frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/storage/IscsiImportStorageModel.java | Java | apache-2.0 | 1,042 |
#Copyright 2008 Orbitz WorldWide
#
#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... | dhtech/graphite-web | webapp/graphite/render/functions.py | Python | apache-2.0 | 101,346 |
package net.javaci.mobile.bomberman.core.mediator;
import net.javaci.mobile.bomberman.core.BomberManGame;
import net.javaci.mobile.bomberman.core.view.BomberManScreen;
import net.javaci.mobile.bomberman.core.view.LobbyScreen;
public class LobbyScreenMediator extends BomberManMediator {
private LobbyScreen lobbyS... | firstthumb/Bomberman | core/src/main/java/net/javaci/mobile/bomberman/core/mediator/LobbyScreenMediator.java | Java | apache-2.0 | 696 |
require 'rails_helper'
require 'pry'
RSpec.describe ApiController, type: :controller do
before :each do
request.env["HTTP_ACCEPT"] = 'application/json'
end
describe "GET 'on_this_day'" do
let(:event_params) do
{
date: "3/26/1991",
type: "event"
}
end
let(:song_params... | noglows/conception-calculator | spec/controllers/api_controller_spec.rb | Ruby | apache-2.0 | 6,855 |
package software.committed.rejux.impl;
import software.committed.rejux.interfaces.State;
public class AbstractState<S> implements State<S> {
private final Class<S> stateClass;
protected S state;
public AbstractState(final Class<S> clazz, final S initial) {
stateClass = clazz;
state = initial;
}
@... | commitd/rejux | src/main/java/software/committed/rejux/impl/AbstractState.java | Java | apache-2.0 | 621 |
package se.ericsson.cf.scott.sandbox.whc.xtra.managers;
import eu.scott.warehouse.lib.LoggingMqttCallback;
import org.eclipse.paho.client.mqttv3.MqttClient;
import org.eclipse.paho.client.mqttv3.MqttConnectOptions;
import org.eclipse.paho.client.mqttv3.MqttException;
import org.slf4j.Logger;
import org.slf4j.LoggerFac... | EricssonResearch/scott-eu | lyo-services/webapp-whc/src/main/java/se/ericsson/cf/scott/sandbox/whc/xtra/managers/MqttManager.java | Java | apache-2.0 | 1,668 |
// GENERATED FILE!
// VERSION-INFO: com.valtech.source.ag.evf.codegen.Dispatcher
// DATE/TIME-INFO: 17.05.04 09:36:44
package com.valtech.source.dependometer.app.controller.pack;
import com.valtech.source.ag.evf.Dispatcher;
import com.valtech.source.ag.evf.EventIf;
final class DispatcherPackageCycleCollecte... | dheraclio/dependometer | dependometer-core/src/main/java/com/valtech/source/dependometer/app/controller/pack/DispatcherPackageCycleCollectedEvent.java | Java | apache-2.0 | 648 |
<?php
/**
* Debug library
*
* @author Raymond van Velzen <raymond@latunyi.com>
* @package LatunyiFramework
**/
/**
* pr
*
* Function to print anything in a convenient way
* Will print any string/number/etc, array, or object.
*
* @param mixed $x Anything
* @param string $descr Descripti... | unimatrix02/latunyi-framework | system/includes/debug.inc.php | PHP | apache-2.0 | 8,463 |
package org.mk300.marshal.minimum.test;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.util.Date;
import java.util.PriorityQueue;
import java.util.concurrent.PriorityBlockingQueue;
import org.apache.commons.io.HexDump;
import org.junit.Test;
import org.mk300.marshal.minimum.Min... | mkobayas/minimum-marshaller | src/test/java/org/mk300/marshal/minimum/test/PriorityQueueTest.java | Java | apache-2.0 | 3,777 |
package memap.helper.milp;
import java.util.Arrays;
import lpsolve.LpSolve;
import lpsolve.LpSolveException;
import memap.controller.TopologyController;
import memap.helper.configurationOptions.OptimizationCriteria;
import memap.helper.configurationOptions.ToolUsage;
import memap.messages.BuildingMessage;
import memap... | SES-fortiss/SmartGridCoSimulation | projects/memapCore/src/main/java/memap/helper/milp/MILPProblemNoConnections.java | Java | apache-2.0 | 21,486 |
using System.Collections.Generic;
namespace SuperMap.Web.iServerJava2
{
/// <summary>
/// <para>${iServer2_sqlParam_Title}</para>
/// <para>${iServer2_sqlParam_Description}</para>
/// </summary>
public class SqlParam
{
/// <summary>${iServer2_sqlParam_constructor_None_D}</summary>
... | SuperMap/iClient-for-Silverlight | SuperMap.Web.iServerJava2/Query/SqlParam.cs | C# | apache-2.0 | 4,581 |
/**
*
Package: MAG - VistA Imaging
WARNING: Per VHA Directive 2004-038, this routine should not be modified.
Date Created: Apr, 2010
Site Name: Washington OI Field Office, Silver Spring, MD
Developer: vhaiswlouthj
Description: DICOM Study cache manager. Maintains the cache of study instances
and... | VHAINNOVATIONS/Telepathology | Source/Java/CoreRouter/main/src/java/gov/va/med/imaging/core/router/commands/storage/datasource/PostArtifactRetentionPolicyCommandImpl.java | Java | apache-2.0 | 3,120 |
/*
* 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 ... | Geomatys/sis | core/sis-referencing/src/main/java/org/apache/sis/referencing/operation/InverseOperationMethod.java | Java | apache-2.0 | 9,914 |
import alt from './../../alt';
class AsyncActions {
constructor() {
this.generateActions(
'toggle'
);
}
}
export default alt.createActions(AsyncActions); | Lesha-spr/greed | public/src/actions/async/async.actions.js | JavaScript | apache-2.0 | 191 |
package com.vmware.broth.quickstart;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
* Unit test for simple App.
*/
public class AppTest
extends TestCase
{
/**
* Create the test case
*
* @param testName name of the test case
*/
pub... | wgroth2/WFJavaAppExample | src/test/java/com/vmware/broth/quickstart/AppTest.java | Java | apache-2.0 | 655 |
package net.wasdev.twelvefactorapp.it.test;
import static org.junit.Assert.*;
import net.wasdev.twelvefactorapp.ResponseHandler.RequestType;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.Before;
import org.junit.After;
import org.junit.Assume;
import javax.json.Json;
import javax.json.JsonObj... | WASdev/sample.microservices.12factorapp | src/test/java/net/wasdev/twelvefactorapp/it/test/EndpointTest.java | Java | apache-2.0 | 5,033 |
/**
* Copyright 2016 Netflix, 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 w... | benjchristensen/RxJava | src/test/java/io/reactivex/internal/util/ExceptionHelperTest.java | Java | apache-2.0 | 1,513 |
import * as index from "./index";
describe("icon-button/index", () => {
[
{
name: "default",
value: expect.any(Function)
}
].forEach(({ name, value }) => {
it(`exports ${name}`, () => {
expect(index).toHaveProperty(name, value);
});
});
});
| Autodesk/hig | packages/icon-button/src/index.test.js | JavaScript | apache-2.0 | 282 |
# Copyright (c) 2010 The Mirah project authors. All Rights Reserved.
# All contributing project authors may be found in the NOTICE file.
#
# 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
#
# ... | aspleenic/mirah | test/mirrors/simple_mirror_loader_test.rb | Ruby | apache-2.0 | 3,000 |
package unit
import (
"reflect"
"testing"
)
func TestDeserialize(t *testing.T) {
contents := `
This=Ignored
[Unit]
;ignore this guy
Description = Foo
[Service]
ExecStart=echo "ping";
ExecStop=echo "pong"
# ignore me, too
ExecStop=echo post
[Fleet]
X-ConditionMachineMetadata=foo=bar
X-ConditionMachineMetadata=baz... | tclavier/fleet | unit/file_test.go | GO | apache-2.0 | 5,792 |
const loginJudger = require('./loginJudger');
const registerJudger = require('./registerJudger');
const adminJudger = require('./adminJudger');
module.exports = {
loginJudger,
registerJudger,
adminJudger,
}; | sugerPocket/sp-blog | server/middlewares/index.js | JavaScript | apache-2.0 | 214 |
/*
* Copyright 2012 Kristaps Kohs<kristaps.kohs@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
*
* Unle... | kkohs/SkinnyElephant-EntityFramework | src/main/java/org/skinnyelephant/framework/core/PoolManager.java | Java | apache-2.0 | 5,388 |
import {Component, EventEmitter, Input, Output} from '@angular/core'
@Component({
template: require('./spinner.component.html'),
selector: 'spinner'
})
export class SpinnerComponent {
@Input() value: number
@Output() valueChange: EventEmitter<number>
@Input() step: number = 1
timeout: number
... | timofeevda/seismic-beachballs-demo | app/src/components/spinner/spinner.component.ts | TypeScript | apache-2.0 | 1,091 |
package edu.american.student.stonewall.display.css.property;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import edu.american.student.stonewall.display.css.util.ResizeType;
public class ResizePropertyTest
{
@Test
public void test()
{
ResizeProperty prop = new ResizeProperty(ResizeType.HOR... | Ccook/Stonewall | src/test/java/edu/american/student/stonewall/display/css/property/ResizePropertyTest.java | Java | apache-2.0 | 434 |
<?php
use yii\helpers\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = Yii::t('app', 'Locations');
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="location-index">
<h1><?= Html::encode($this->title) ?></h1>
<p>
... | yodathedark/moltis-tickets | tickets/views/location/index.php | PHP | apache-2.0 | 764 |
package ar.edu.ungs.presentation.componente;
public class DownloadButton extends IconButton {
/**
*
*/
private static final long serialVersionUID = 1L;
public DownloadButton() {
super();
initialize("images/downloadIcon.png");
setToolTipText("Descarga archivo");
}
}
| alefherrera/sisalud | SiSaludSRL/src/main/java/ar/edu/ungs/presentation/componente/DownloadButton.java | Java | apache-2.0 | 284 |
//Package id provides an interface that defines a random N-byte id generator,
//and an implementation of the ID interface.
package id
import (
"github.com/Sirupsen/logrus"
)
const (
//DefaultSize is the default size of generated IDs.
DefaultSize int = 16
)
var log = logrus.New()
func init() {
log.Debugln("Initi... | KodyKantor/p2p-gossip | id/id.go | GO | apache-2.0 | 876 |
package com.itfvck.wechatframework.api.coupon.location.model;
import com.itfvck.wechatframework.core.common.BaseData;
public class CardInfo extends BaseData {
private static final long serialVersionUID = 241391040579231164L;
// 卡券类型
private String card_type;
// 基本的卡券数据,见下表,所有卡券通用,描述
private GeneralCoupon genera... | vcdemon/wechat-framework | wechat-api/src/main/java/com/itfvck/wechatframework/api/coupon/location/model/CardInfo.java | Java | apache-2.0 | 2,627 |
package android.widget;
import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.SeekBar;
public class VerticalSeekBar extends SeekBar {
public VerticalSeekBar(Context context) {
super(context);
}
pub... | EspLight/EspLight-APP | app/src/main/java/android/widget/VerticalSeekBar.java | Java | apache-2.0 | 1,851 |
/*
* Copyright 2000-2009 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... | joewalnes/idea-community | java/java-impl/src/com/intellij/codeInsight/navigation/JavaGotoSuperHandler.java | Java | apache-2.0 | 4,019 |
/**
* Original work: copyright 1999-2004 The Apache Software Foundation
* (http://www.apache.org/)
*
* This project is based on the work licensed to the Apache Software
* Foundation (ASF) under one or more contributor license agreements.
* See the NOTICE file distributed with this work for additional
* informat... | vsilaev/tascalate-javaflow | net.tascalate.javaflow.providers.asm5/src/main/java/org/apache/commons/javaflow/providers/asm5/ContinuableMethodVisitor.java | Java | apache-2.0 | 17,135 |
#include "DrowsyDriverModel.h"
#include "BeliefSet.h"
#include <iostream>
#include <list>
#include <fstream>
#include <cstdlib>
using namespace std;
int main(int argc, char** argv) {
DrowsyDriverModel hmshsmodel;
int nBeliefs = 50000;
CState initCState(hmshsmodel.getNumCStateVar(), 0);
DStat... | ppnathan/HMSHS | problems/DrowsyDriverModel/BeliefsCollection.cc | C++ | apache-2.0 | 565 |
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\Schema;
class CreateUsersTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::dropIfExists('users');
Schema::create... | ilfate/laravel.ilfate.net | app/database/migrations/2014_11_20_152233_create_users_table.php | PHP | apache-2.0 | 836 |
import type { IChangesObject, IComponentOptions, IController, IOnChangesObject } from 'angular';
import { module } from 'angular';
import type { INavigationPage } from './PageNavigationState';
import { PageNavigationState } from './PageNavigationState';
interface IPageSectionOnChanges extends IOnChangesObject {
vis... | spinnaker/deck | packages/core/src/presentation/navigation/pageSection.component.ts | TypeScript | apache-2.0 | 2,078 |
/*
* 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... | yuananf/presto | presto-main/src/test/java/com/facebook/presto/execution/buffer/BufferTestUtils.java | Java | apache-2.0 | 9,646 |
require 'ecloud/spec_helper'
if Fog.mocking?
describe "Fog::Compute::Ecloud::BackupInternetService", :type => :mock_tmrk_ecloud_model do
subject { @vcloud.vdcs[0].backup_internet_services[0] }
describe :class do
subject { Fog::Compute::Ecloud::BackupInternetService }
it { should have_identity(:... | krobertson/knife-xenserver | vendor/fog/spec/ecloud/models/backup_internet_service_spec.rb | Ruby | apache-2.0 | 2,266 |
/*
* Copyright 2017, Sascha Häberling
*
* 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... | shaeberling/retrostore | appengine/src/main/java/org/retrostore/resources/ImageServiceWrapper.java | Java | apache-2.0 | 1,268 |
package com.github.jweixin.jwx;
import org.junit.Assert;
import org.junit.Test;
import com.github.jweixin.jwx.context.InitialWeixinConfigureException;
import com.github.jweixin.jwx.context.WeixinContext;
import com.github.jweixin.jwx.context.WeixinContextConfigHelper;
public class WeixinProperConfigTest {... | jweixin/jwx | src/test/java/com/github/jweixin/jwx/WeixinProperConfigTest.java | Java | apache-2.0 | 591 |
/*
* Copyright 2010-2013 Ning, Inc.
* Copyright 2014-2015 Groupon, Inc
* Copyright 2014-2015 The Billing Project, LLC
*
* The Billing Project licenses this file to you under the Apache License, version 2.0
* (the "License"); you may not use this file except in compliance with the
* License. You may obtain a cop... | aeq/killbill | invoice/src/main/java/org/killbill/billing/invoice/InvoiceDispatcher.java | Java | apache-2.0 | 37,120 |
from pyparsing import (
CaselessLiteral,
Combine,
Literal,
ParseException,
Regex,
Suppress,
Word,
alphanums,
alphas,
)
from great_expectations.exceptions import GreatExpectationsError
try:
import pyspark.sql.functions as F
except ImportError:
F = None
try:
import sqlal... | great-expectations/great_expectations | great_expectations/expectations/row_conditions.py | Python | apache-2.0 | 3,909 |
package com.nedap.archie.adlparser.treewalkers;
import com.nedap.archie.adlparser.ADLParserErrors;
import com.nedap.archie.adlparser.antlr.AdlParser.*;
import com.nedap.archie.aom.*;
import com.nedap.archie.base.MultiplicityInterval;
import com.nedap.archie.rules.Assertion;
import org.antlr.v4.runtime.tree.TerminalNod... | nedap/archie | src/main/java/com/nedap/archie/adlparser/treewalkers/CComplexObjectParser.java | Java | apache-2.0 | 13,477 |
/*
* Copyright (C) 2005-2008 Jive Software. 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 require... | Gugli/Openfire | src/java/org/jivesoftware/openfire/audit/spi/AuditorImpl.java | Java | apache-2.0 | 18,482 |
// Copyright 2018 The gVisor 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... | google/gvisor | pkg/sentry/platform/kvm/testutil/testutil.go | GO | apache-2.0 | 2,747 |
/*
* Copyright (C) 2015 Archie L. Cobbs. All rights reserved.
*/
package org.jsimpledb.core;
import java.util.NavigableMap;
import java.util.NavigableSet;
import org.jsimpledb.index.Index;
import org.jsimpledb.index.Index2;
import org.jsimpledb.index.Index3;
import org.jsimpledb.kv.KeyFilter;
import org.jsimpledb... | tempbottle/jsimpledb | src/java/org/jsimpledb/core/CoreIndex3.java | Java | apache-2.0 | 4,089 |
/**
* Copyright 2016-2018 F5 Networks, 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 o... | F5Networks/f5-cloud-libs | test/lib/localCryptoUtilTests.js | JavaScript | apache-2.0 | 7,520 |
package com.chanven.lib.cptr.utils;
import android.content.Context;
import android.util.DisplayMetrics;
import android.view.View;
import android.view.WindowManager;
public class PtrLocalDisplay {
public static int SCREEN_WIDTH_PIXELS;
public static int SCREEN_HEIGHT_PIXELS;
public static float SCREEN_DEN... | Chanven/CommonPullToRefresh | cptr/src/com/chanven/lib/cptr/utils/PtrLocalDisplay.java | Java | apache-2.0 | 1,526 |
/*
* Copyright 2016 Ratha Long
*
* 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... | rlon008/testamation | testamation-test-common/src/main/java/nz/co/testamation/testcommon/fixture/SomeFixture.java | Java | apache-2.0 | 5,010 |
package me.com.hookdemo.hook;
import android.app.Instrumentation;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
public class HookHelper {
/**
* 使用反射的方式找到ActivityThread这个类
* 将类中的Instrumentation对象替换成自己实现的
*/
public static void attachContext() throws Exception {
Class<... | wmh-demos/HookDemo | binder-hook/src/main/java/me/com/hookdemo/hook/HookHelper.java | Java | apache-2.0 | 1,128 |
/*
* The University of Wales, Cardiff Triana Project Software License (Based
* on the Apache Software License Version 1.1)
*
* Copyright (c) 2007 University of Wales, Cardiff. All rights reserved.
*
* Redistribution and use of the software in source and binary forms, with
* or without modification, are permitted... | CSCSI/Triana | triana-core/src/main/java/org/trianacode/taskgraph/proxy/java/JavaConstants.java | Java | apache-2.0 | 3,506 |
<aside class="alignLeft">
<div class="container_24 alignLeft">
<div class="wrapper">
<article class="grid_5">
<h6>Nos services</h6>
<ul>
<li><a href="<?php echo href_by_pagename('page_credit_1') ?>">Crédit immobilier</a></li>
<li><a href="<?php echo href_by_pagename('page_gestio... | vteco/cfin | apps/frontend/modules/standalone/templates/_footer_fr.php | PHP | apache-2.0 | 4,252 |
"use strict";
var async = require("async");
var helper = require("../../../../helper.js");
var config = require("../../../../../config.js");
var utils = helper.requireModule('./lib/environment/drivers/infra.js');
const nock = require('nock');
var req = {
soajs: {
registry: {
coreDB: {
provision: {
name: ... | soajs/soajs.dashboard | test/unit/lib/environment/drivers/infra.test.js | JavaScript | apache-2.0 | 49,180 |
/*
* Copyright (C) 2013 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... | xorware/android_frameworks_base | packages/SystemUI/src/com/android/systemui/settings/BrightnessController.java | Java | apache-2.0 | 11,052 |
//
// System.Web.HttpUtility
//
// Authors:
// Patrik Torstensson (Patrik.Torstensson@labs2.com)
// Wictor Wilén (decode/encode functions) (wictor@ibizkit.se)
// Tim Coleman (tim@timcoleman.com)
// Gonzalo Paniagua Javier (gonzalo@ximian.com)
//
// Copyright (C) 2005-2010 Novell, Inc (http://www.novell.com)
/... | xamarin/Rivets | Rivets/Utility.cs | C# | apache-2.0 | 8,263 |
package ru.bvn13.licenseserverjclient.soap;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for checkClientLicense complex type.
*
* <p>The following schem... | bvn13/LicenseServerJClient | src/main/java/ru/bvn13/licenseserverjclient/soap/CheckClientLicense.java | Java | apache-2.0 | 5,102 |
package org.gradle.test.performance.mediummonolithicjavaproject.p111;
public class Production2220 {
private String property0;
public String getProperty0() {
return property0;
}
public void setProperty0(String value) {
property0 = value;
}
private String property1;
... | oehme/analysing-gradle-performance | my-app/src/main/java/org/gradle/test/performance/mediummonolithicjavaproject/p111/Production2220.java | Java | apache-2.0 | 1,891 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""Tests for the zip path specification implementation."""
import unittest
from dfvfs.path import zip_path_spec
from tests.path import test_lib
class ZipPathSpecTest(test_lib.PathSpecTestCase):
"""Tests for the zip path specification implementation."""
def testInitial... | manashmndl/dfvfs | tests/path/zip_path_spec.py | Python | apache-2.0 | 1,347 |
<?php
namespace DCarbone\PHPFHIRGenerated\R4;
/*!
* This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
* class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
*
* Class creation date: December 26th, 2019 15:44+0000
*
* PHPFHIR Copyright:
*
* Copyright 2016-... | dcarbone/php-fhir-generated | src/DCarbone/PHPFHIRGenerated/R4/FHIRDecimalPrimitive.php | PHP | apache-2.0 | 9,630 |
/**
* Copyright 2013 @ Fazal Code
* All Rights Reserved to Fazal Code
*/
package com.java.struts.fazalcode;
import com.opensymphony.xwork2.ActionSupport;
/**
* @author Tatarao voleti
* @date Nov 11, 2013
*/
public class LoginAction extends ActionSupport {
private String username;
private String password;
... | Tataraovoleti/Struts2App | src/com/java/struts/fazalcode/LoginAction.java | Java | apache-2.0 | 873 |
/*
* Copyright 2016-2019 Netflix, 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 ... | Netflix/hollow | hollow/src/main/java/com/netflix/hollow/core/write/objectmapper/flatrecords/FlatRecordExtractor.java | Java | apache-2.0 | 8,517 |
require File.dirname(__FILE__) + '/../../../../../../spec_helper'
#require File.dirname(__FILE__) + '/shared_examples_spec'
include OpenEHR::RM::Composition::Content::Entry
include OpenEHR::RM::DataTypes::Quantity::DateTime
include OpenEHR::RM::DataTypes::Text
include OpenEHR::RM::DataStructures::ItemStructure
describ... | skoba/openehr-ruby | spec/lib/openehr/rm/composition/content/entry/action_spec.rb | Ruby | apache-2.0 | 2,444 |
using System.Linq;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using UnityEditor.SceneManagement;
using AGXUnity;
using AGXUnity.Collide;
using GUI = AGXUnity.Utils.GUI;
namespace AGXUnityEditor.Tools
{
[CustomTool( typeof( RigidBody ) )]
public class RigidBodyTool : CustomTargetTool
... | Algoryx/agxUnity | Editor/AGXUnityEditor/Tools/RigidBodyTool.cs | C# | apache-2.0 | 10,413 |
/* -*-C++-*- */
/*
* Copyright (C) 2003 Carnegie Mellon University and Rutgers University
*
* Permission is hereby granted to distribute this software for
* non-commercial research purposes, provided that this copyright
* notice is included with any such distribution.
*
* THIS SOFTWARE IS PROVIDED "AS IS" WITHOU... | beniz/hmdp | src/hmdpsim/rational.cc | C++ | apache-2.0 | 7,168 |
package io.github.threetenjaxb.core;
import java.time.OffsetTime;
import java.time.ZoneOffset;
import java.util.HashMap;
import java.util.Map;
class OffsetTimeXmlAdapterTest extends AbstractXmlAdapterTest<String, OffsetTime, OffsetTimeXmlAdapter> {
private static final Map<String, OffsetTime> STRING_OFFSET_TIME_... | migesok/jaxb-java-time-adapters | threeten-jaxb-core/src/test/java/io/github/threetenjaxb/core/OffsetTimeXmlAdapterTest.java | Java | apache-2.0 | 605 |
//
// Last.Backend LLC CONFIDENTIAL
// __________________
//
// [2014] - [2020] Last.Backend LLC
// All Rights Reserved.
//
// NOTICE: All information contained herein is, and remains
// the property of Last.Backend LLC and its suppliers,
// if any. The intellectual and technical concepts contained
// herein are prop... | unloop/lastbackend | internal/cli/command/cluster/service.go | GO | apache-2.0 | 11,710 |
package org.ayo.app.tmpl;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import org.ayo.app.common.AyoSwipeBackActivityAttacher;
import genius.android.view.R;
/**
* 一个Activity装载一个Fragment
* Fragment管界... | cowthan/AyoWeibo | ayoview/src/main/java/org/ayo/app/tmpl/AyoJigsawActivityAttacher.java | Java | apache-2.0 | 1,539 |
/**
*
*/
package com.f1000.rank.journal;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import java.util.ArrayList;
import java.util.List;
import org.junit.Before;
import org.junit.Test;
import com.f1000.rank.journal.model.Journal;
/**
* The Class RankJournalsTes... | mattiamascia/jrank | src/test/java/com/f1000/rank/journal/RankJournalsTest.java | Java | apache-2.0 | 1,989 |
'use strict';
angular.module('ictsAppApp')
.controller('TelKpnDeleteModalCtrl', ['$scope', '$modalInstance', 'record',
function ($scope, $modalInstance, record) {
$scope.record = record;
$scope.delete = function () {
$modalInstance.close();
};
$scope.cancel = function () {
$modalInstance.dismiss('can... | utwente/lisa-telefonie | client/app/tel/kpn/kpnDelete.controller.js | JavaScript | apache-2.0 | 339 |
/*
* Copyright 2005-2010 Ignis Software Tools Ltd. All rights reserved.
*/
package jsystem.utils;
import java.io.File;
import java.io.FilenameFilter;
/**
* This filter use to filtering ends of file names.
*/
public class ExtentionFilter implements FilenameFilter {
String endWith = null;
/**
* Create instanc... | Top-Q/jsystem | jsystem-core-projects/jsystemCore/src/main/java/jsystem/utils/ExtentionFilter.java | Java | apache-2.0 | 773 |
<?php
/**
* This example creates a new proposal line item that targets the whole network.
* To determine which proposal line items exist, run
* GetAllProposalLineItems.php.
*
* Tags: NetworkService.getCurrentNetwork
* Tags: ProposalLineItemService.createProposalLineItems
*
* PHP version 5
*
* Copyright 2014, ... | freddiedfre/google_bing_ads | examples/Dfp/v201502/ProposalLineItemService/CreateProposalLineItems.php | PHP | apache-2.0 | 4,966 |
function imagecreate(image, pool, url, cmd){
if ( image === undefined ) {
image = $("#image").val();
}
if ( pool === undefined ) {
pool = $("#pool").val();
}
if ( url === undefined ) {
url = $("#url").val();
}
if ( cmd === undefined ) {
cmd = $("#cmd").val();
}
$("#wheel").show();
da... | karmab/kcli | kvirt/web/static/js/imageaction.js | JavaScript | apache-2.0 | 1,212 |
/*
* Copyright 2013-2020 consulo.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 ... | consulo/consulo | modules/base/ui-api/src/main/java/consulo/ui/layout/FoldoutLayout.java | Java | apache-2.0 | 1,731 |
/*
* Copyright 2015 OpenCB
*
* 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 wr... | dapregi/cellbase | cellbase-app/src/main/java/org/opencb/cellbase/app/cli/DownloadCommandExecutor.java | Java | apache-2.0 | 52,004 |
/*
* Copyright 2010-2011 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | lhfei/hadoop-in-action | src/main/java/cn/lhfei/hadoop/hbase/crud/DeleteApp.java | Java | apache-2.0 | 3,599 |
class Solution {
public:
int findMin(vector<int> &num) {
findMin(num, 0, num.size()-1);
}
inline int min(int a, int b) {
if (a > b) {
return b;
}
return a;
}
int findMin(vector<int> &num, int start, int end) {
if(start == end) {
... | hongtaocai/code_interview | cpp/FindMinimuminRotatedSortedArrayII.cpp | C++ | apache-2.0 | 831 |