repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
charlesw/tesseract
src/Tesseract/PixToBitmapConverter.cs
6096
#if SYSTEM_DRAWING_SUPPORT using System; using System.Drawing; using System.Drawing.Imaging; using SD = System.Drawing; namespace Tesseract { public class PixToBitmapConverter { public Bitmap Convert(Pix pix, bool includeAlpha = false) { var pixelFormat = GetPixelFormat(pix); ...
apache-2.0
aws/aws-sdk-go
service/ecr/service.go
3478
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. package ecr import ( "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/aws/client" "github.com/aws/aws-sdk-go/aws/client/metadata" "github.com/aws/aws-sdk-go/aws/request" "github.com/aws/aws-sdk-go/aws/signer/v4" "github.com/aws/aws-s...
apache-2.0
soundcloud/gocd
server/webapp/WEB-INF/rails.new/app/presenters/api_v1/agent_summary_representer.rb
1116
########################################################################## # Copyright 2015 ThoughtWorks, 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/li...
apache-2.0
mdproctor/drools
drools-core/src/main/java/org/drools/core/reteoo/builder/AccumulateBuilder.java
6458
/* * Copyright 2010 Red Hat, Inc. and/or 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 ap...
apache-2.0
apache/forrest
whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/java/org/apache/forrest/solr/client/SolrQueryTransformer.java
4525
/* * 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 ...
apache-2.0
wso2/product-ei
integration/mediation-tests/tests-transport/src/test/java/org/wso2/carbon/esb/passthru/transport/test/PassthroughTransportHttpProxyTestCase.java
3233
/* *Copyright (c) 2005-2010, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * *WSO2 Inc. 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 copy of the License at * *http://www.apache.org/licenses/LI...
apache-2.0
aljoscha/flink
flink-table/flink-sql-client/src/main/java/org/apache/flink/table/client/config/entries/ExecutionEntry.java
20595
/* * 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 ...
apache-2.0
sajithaliyanage/Travel_SriLanka
platforms/android/platform_www/plugins/cordova-plugin-filepath/www/FilePath.js
565
cordova.define("cordova-plugin-filepath.FilePath", function(require, exports, module) { var exec = require('cordova/exec'); module.exports = { /** * Resolve native path for given content URL/path. * @param {String} path Content URL/path. * @param successCallback invoked with a native filesystem p...
apache-2.0
rackerlabs/horizon
openstack_dashboard/dashboards/project/routers/urls.py
1654
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012, Nachi Ueno, NTT MCL, 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...
apache-2.0
robjcaskey/Unofficial-Coffee-Mud-Upstream
com/planet_ink/coffee_mud/MOBS/HillGiant.java
2538
package com.planet_ink.coffee_mud.MOBS; import com.planet_ink.coffee_mud.core.interfaces.*; import com.planet_ink.coffee_mud.core.*; import com.planet_ink.coffee_mud.Abilities.interfaces.*; import com.planet_ink.coffee_mud.Areas.interfaces.*; import com.planet_ink.coffee_mud.Behaviors.interfaces.*; import com.pla...
apache-2.0
Alachisoft/TayzGrid
src/tgmanagement/src/com/alachisoft/tayzgrid/management/CacheInfo.java
3113
/* * Copyright (c) 2015, Alachisoft. 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 applic...
apache-2.0
Kixeye/chassis
chassis-support/src/main/java/com/kixeye/chassis/support/util/NetworkingUtils.java
2539
package com.kixeye.chassis.support.util; /* * #%L * Chassis Support * %% * Copyright (C) 2014 KIXEYE, 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.ap...
apache-2.0
lukhnos/j2objc
jre_emul/android/platform/libcore/ojluni/src/main/java/java/util/SortedMap.java
14166
/* * Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
apache-2.0
mulesoft-consulting/sumtotal-connector
lib/apache-cxf-2.7.5/samples/ws_rm/src/main/java/demo/ws_rm/server/Server.java
1783
/** * 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 m...
apache-2.0
lpxz/grail-lucene358684
src/gcj/org/apache/lucene/index/GCJSegmentReader.java
1243
package org.apache.lucene.index; /** * Copyright 2004 The Apache Software Foundation * * 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...
apache-2.0
apetro/uPortal
uportal-war/src/main/java/org/apereo/portal/xml/stream/FilteringXMLEventReader.java
4823
/** * Licensed to Apereo under one or more contributor license * agreements. See the NOTICE file distributed with this work * for additional information regarding copyright ownership. * Apereo licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file * except in ...
apache-2.0
huguesv/PTVS
Python/Tests/Core/CPythonInterpreterTests.cs
5913
// Python Tools for Visual Studio // Copyright(c) Microsoft Corporation // All rights reserved. // // Licensed under the Apache License, Version 2.0 (the License); you may not use // this file except in compliance with the License. You may obtain a copy of the // License at http://www.apache.org/licenses/LICENSE-2.0 //...
apache-2.0
jkacer/pac4j
pac4j-core/src/main/java/org/pac4j/core/client/direct/AnonymousClient.java
884
package org.pac4j.core.client.direct; import org.pac4j.core.client.DirectClient; import org.pac4j.core.credentials.AnonymousCredentials; import org.pac4j.core.profile.AnonymousProfile; /** * Anonymous client. Not to be used except for advanced use cases. * * @author Jerome Leleu * @since 1.8.1 */ public final cl...
apache-2.0
kevinearls/camel
components/camel-jms/src/main/java/org/apache/camel/component/jms/ConsumerType.java
902
/** * 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...
apache-2.0
kubernetes/minikube
pkg/minikube/machine/cluster_test.go
13281
/* Copyright 2016 The Kubernetes 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 ag...
apache-2.0
yihongyuelan/DesignBox
app/src/main/java/com/seven/designbox/designpatterns/patterns/factory/SimpleFactoryFragment.java
609
package com.seven.designbox.designpatterns.patterns.factory; import com.seven.designbox.designpatterns.common.PatternsCommonFragment; import android.os.Bundle; import android.webkit.WebView; public class SimpleFactoryFragment extends PatternsCommonFragment { @Override public void loadData(Bundle bundle, Web...
apache-2.0
dudymas/python-openstacksdk
openstack/cluster/cluster_service.py
951
# 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...
apache-2.0
PaulieC/sprint2-Council
AvailablePlayers/RPSPlayerExample.py
4050
__author__ = "Paul Council, Joseph Gonzoph, Anand Patel" __version__ = "sprint1" __credits__ = ["geebzter"] # imports from ServerPackage import Message from ClientPackage import Player class RPSPlayerExample(Player.Player): """ Example of how to implement an RPS player within the framework Attributes: ...
apache-2.0
manovotn/api
weld-spi/src/main/java/org/jboss/weld/resources/spi/ClassFileServices.java
1871
/* * JBoss, Home of Professional Open Source * Copyright 2013, Red Hat, Inc., and individual contributors * by the @authors tag. See the copyright.txt in the distribution for a * full listing of individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this fi...
apache-2.0
fabric8-ui/fabric8-ui
packages/planner/src/app/components_ngrx/assignee/assignee.module.ts
775
import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { RouterModule } from '@angular/router'; import { BsDropdownConfig, BsDropdownModule } from 'ngx-bootstrap/dropdown'; import { TooltipConfig, TooltipModule } from 'ngx-bootstrap/tooltip'; import { WidgetsModule } from 'ngx-...
apache-2.0
sassoftware/conary
conary/build/filesetrecipe.py
6103
# # Copyright (c) SAS Institute 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...
apache-2.0
imcsk8/packstack
packstack/plugins/nagios_910.py
4519
# -*- coding: utf-8 -*- # 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...
apache-2.0
roundrop/ermasterr
src/org/insightech/er/editor/controller/editpart/outline/group/GroupSetOutlineEditPart.java
2847
package org.insightech.er.editor.controller.editpart.outline.group; import java.util.Collections; import java.util.List; import org.eclipse.gef.DragTracker; import org.eclipse.gef.Request; import org.eclipse.gef.RequestConstants; import org.eclipse.gef.commands.Command; import org.eclipse.gef.tools.SelectEdi...
apache-2.0
amirsojoodi/tez
tez-ui/src/main/webapp/app/scripts/controllers/vertex_task_attempts_controller.js
6592
/** * 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...
apache-2.0
teamsaas/meq
ui/src/packages/datav-core/src/ui/components/Forms/Legacy/Input/Input.tsx
3037
import React, { PureComponent, ChangeEvent } from 'react'; import classNames from 'classnames'; import { validate, EventsWithValidation, hasValidationEvent } from '../../../../utils'; import { ValidationEvents, ValidationRule } from '../../../../types'; export enum LegacyInputStatus { Invalid = 'invalid', Valid = ...
apache-2.0
baldimir/drools
drools-compiler/src/test/java/org/drools/compiler/compiler/TypeDeclarationTest.java
44655
/* * Copyright 2015 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, soft...
apache-2.0
google/netstack
tcpip/header/ndp_router_advert.go
4278
// Copyright 2019 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...
apache-2.0
EBWiki/EBWiki
spec/lib/sitemap_generator/interpreter_spec.rb
438
# frozen_string_literal: true require 'rails_helper' describe SitemapGenerator::Interpreter do describe '.run' do it 'does not raise an error' do allow(SitemapGenerator::Sitemap).to receive(:ping_search_engines).and_return true allow(SitemapGenerator::Sitemap).to receive(:create).and_yield # ...
apache-2.0
xamarin/xamarin-forms-book-preview-2
Chapter20/AlertAwait/AlertAwait/AlertAwait.UWP/App.xaml.cs
4262
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsRuntime; using Windows.ApplicationModel; using Windows.ApplicationModel.Activation; using Windows.Foundation; using Windows.Foundation.Collections; using Windows.UI.Xaml; using Windows.UI.Xam...
apache-2.0
batfish/batfish
projects/batfish-common-protocol/src/main/java/org/batfish/specifier/IpSpaceAssignmentSpecifier.java
962
package org.batfish.specifier; import java.util.Set; import org.batfish.datamodel.IpSpace; /** An abstract specifier of assigning {@link IpSpace} to location by some means. */ public interface IpSpaceAssignmentSpecifier { /** * Resolve the specifier into concrete {@link IpSpace}s. * * @param locations The ...
apache-2.0
Gagravarr/VorbisJava
core/src/main/java/org/gagravarr/vorbis/VorbisPacket.java
1438
/* * 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...
apache-2.0
RayZ-O/grokit
src/ExecutionEngine/php/WorkDescription.h.php
11339
<?php // // Copyright 2013 Tera Insights 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 applicabl...
apache-2.0
gkathir15/unisannio-reboot
app/src/main/java/solutions/alterego/android/unisannio/di/SystemServicesModule.java
1220
package solutions.alterego.android.unisannio.di; import android.app.Application; import android.content.Context; import android.content.SharedPreferences; import android.net.ConnectivityManager; import android.preference.PreferenceManager; import javax.inject.Singleton; import dagger.Module; import dagger.Provides; ...
apache-2.0
literacyapp-org/literacyapp-android
app/src/main/java/org/literacyapp/authentication/animaloverlay/AnimalOverlayHelper.java
6107
package org.literacyapp.authentication.animaloverlay; import android.content.Context; import android.text.TextUtils; import android.util.DisplayMetrics; import android.util.Log; import com.google.gson.Gson; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Lis...
apache-2.0
outjie/jqm4gwt
library/src/main/java/com/sksamuel/jqm4gwt/form/elements/JQMRangeSlider.java
7180
package com.sksamuel.jqm4gwt.form.elements; import com.google.gwt.dom.client.Document; import com.google.gwt.event.logical.shared.ValueChangeEvent; import com.google.gwt.event.logical.shared.ValueChangeHandler; import com.google.gwt.user.client.ui.FlowPanel; import com.sksamuel.jqm4gwt.HasMini; import com.sksam...
apache-2.0
googleapis/google-cloud-ruby
google-cloud-automl-v1beta1/snippets/automl/list_column_specs.rb
1546
# frozen_string_literal: true # Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
apache-2.0
tchellomello/home-assistant
homeassistant/components/cpuspeed/sensor.py
2255
"""Support for displaying the current CPU speed.""" import logging from cpuinfo import cpuinfo import voluptuous as vol from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.const import CONF_NAME, FREQUENCY_GIGAHERTZ import homeassistant.helpers.config_validation as cv from homeassistant.hel...
apache-2.0
pkilambi/ceilometer
ceilometer/network/notifications.py
9568
# # Copyright 2012 New Dream Network, LLC (DreamHost) # # 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...
apache-2.0
afkham/wso2con-rfid
core/src/main/java/com/wso2/rfid/RFIDRegistrationBuffer.java
1606
/* * Copyright (c) 2005-2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. 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 copy of the License at * * http://www.ap...
apache-2.0
patricklaw/pants
src/python/pants/backend/awslambda/python/register.py
647
# Copyright 2019 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). """Create AWS Lambdas from Python code. See https://www.pantsbuild.org/docs/awslambda-python. """ from pants.backend.awslambda.python import rules as python_rules from pants.backend.awsl...
apache-2.0
davidkarlsen/camel
core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/JGroupsRaftEndpointBuilderFactory.java
17783
/* * 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 ...
apache-2.0
georghinkel/NMF
Models/Models/Meta/IClass.cs
5847
//------------------------------------------------------------------------------ // <auto-generated> // Dieser Code wurde von einem Tool generiert. // Laufzeitversion:4.0.30319.42000 // // Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn // der Code erneut generi...
apache-2.0
kryptnostic/gallery
src/containers/permissions/components/RequestPermissionsForm.test.js
2348
// import React from 'react'; // import { Map } from 'immutable'; // import { shallow } from 'enzyme'; // import { expect } from 'chai'; // import '../../../../config/chai/chai.config'; // // import RequestPermissionsForm from './RequestPermissionsForm'; // // // describe('RequestPermissionsForm', function() { // con...
apache-2.0
ggerla/aries
blueprint/blueprint-authz/src/main/java/org/apache/aries/blueprint/authorization/impl/AuthorizationInterceptor.java
3621
/* * 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 ...
apache-2.0
CNinnovation/TechConference2016
VisualStudio2015/BooksSampleCS5/BooksSampleCS6/Models/Book.cs
987
using BooksSample.Framework; namespace BooksSample.Models { public class Book : BindableBase { public Book(int bookId) { BookId = bookId; Title = string.Empty; Publisher = string.Empty; } // DONE: 02 - getter-only auto property publi...
apache-2.0
googleapis/google-cloud-ruby
google-cloud-service_management-v1/snippets/service_manager/enable_service.rb
1509
# frozen_string_literal: true # Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
apache-2.0
karimgarza/StatsAgg
src/main/java/com/pearson/statsagg/database_objects/metric_group_tags/MetricGroupTagsSql.java
2932
package com.pearson.statsagg.database_objects.metric_group_tags; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * @author Jeffrey Schmidt */ public class MetricGroupTagsSql { private static final Logger logger = LoggerFactory.getLogger(MetricGroupTagsSql.class.getName()); protected final...
apache-2.0
apigee/apigee-android-sdk
samples/geolocation/app/src/main/java/com/apigee/geolocation/StartActivity.java
4791
/* APIGEE ANDROID SDK GEOLOCATION EXAMPLE APP This sample app will show you how to perform basic location-based entity operations using the Apigee Android SDK, including: - creating an entity with location data - retrieving an entity based on location Note that this app is designed to run using the unsecured 's...
apache-2.0
john9x/jdbi
core/src/test/java/org/jdbi/v3/core/argument/LikeClauseTest.java
2395
/* * 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 u...
apache-2.0
akomakom/ehcache3
core-spi-test/src/main/java/org/ehcache/internal/store/StoreEvictionEventListenerTest.java
4829
/* * 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 ...
apache-2.0
quiltdata/quilt
catalog/app/utils/SagaInjector.js
1328
import invariant from 'invariant' import isFunction from 'lodash/isFunction' import * as React from 'react' import * as redux from 'react-redux' import { applyMiddleware } from 'redux' import createSagaMiddleware from 'redux-saga' const scope = 'app/utils/SagaInjector' export const useSaga = (saga, ...args) => { co...
apache-2.0
googleads/googleads-dfa-reporting-samples
python/v3_5/get_userprofiles.py
1547
#!/usr/bin/python # # Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
apache-2.0
bridgedotnet/Bridge
Bridge/Resources/Locales/nds-DE.js
3021
Bridge.merge(new System.Globalization.CultureInfo("nds-DE", true), { englishName: "Low German (Germany)", nativeName: "Neddersass’sch (Düütschland)", numberFormat: Bridge.merge(new System.Globalization.NumberFormatInfo(), { nanSymbol: "NaN", negativeSign: "-", positiveSign: "+", ...
apache-2.0
Ztiany/Repository
Android/RxJava-Lmitative/async/src/main/java/com/sxdsf/async/imitate1/NewThreadSwitcher.java
318
package com.sxdsf.async.imitate1; /** * com.sxdsf.async.imitate1.NewThreadSwitcher * * @author SXDSF * @date 2017/11/14 下午11:02 * @desc 新线程的switcher */ public class NewThreadSwitcher extends Switcher { @Override public Worker createWorker() { return new NewThreadWorker(); } }
apache-2.0
Humbinal/java-items
hum-component/hum-zookeeper/src/main/java/com/humbinal/zookeeper/framework/TestWatcher.java
4120
package com.humbinal.zookeeper.framework; import org.apache.curator.RetryPolicy; import org.apache.curator.framework.CuratorFramework; import org.apache.curator.framework.CuratorFrameworkFactory; import org.apache.curator.framework.recipes.cache.*; import org.apache.curator.retry.ExponentialBackoffRetry; import org.ju...
apache-2.0
sloria/osf.io
admin/base/urls.py
2021
from django.conf.urls import include, url from django.contrib import admin from settings import ADMIN_BASE from . import views base_pattern = '^{}'.format(ADMIN_BASE) urlpatterns = [ ### ADMIN ### url( base_pattern, include([ url(r'^$', views.home, name='home'), url(r...
apache-2.0
ixc/django-fluent-contents
fluent_contents/plugins/rawhtml/models.py
591
from future.utils import python_2_unicode_compatible from django.db import models from django.utils.html import strip_tags from django.utils.translation import ugettext_lazy as _ from fluent_contents.models import ContentItem @python_2_unicode_compatible class RawHtmlItem(ContentItem): html = models.TextField(_('...
apache-2.0
knodir/son-emu
src/emuvim/cli/rest/datacenter.py
3475
""" Copyright (c) 2015 SONATA-NFV and Paderborn University 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 ap...
apache-2.0
julianhyde/luciddb
farrago/src/net/sf/farrago/namespace/flatfile/FlatFileDataWrapper.java
6195
/* // Licensed to DynamoBI Corporation (DynamoBI) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. DynamoBI licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may ...
apache-2.0
cinderella/incubator-cloudstack
ui/scripts/ui/events.js
1959
// 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...
apache-2.0
unreadable/FileWall
Client/FormBugReport/FormBugReport.Designer.cs
10820
namespace VitaliiPianykh.FileWall.Client { partial class FormBugReport { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </su...
apache-2.0
mlperf/training_results_v0.7
Fujitsu/benchmarks/resnet/implementations/implementation_open/mxnet/3rdparty/onnx-tensorrt/third_party/onnx/onnx/backend/test/case/node/hardmax.py
2435
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import numpy as np # type: ignore import onnx from ..base import Base from . import expect class Hardmax(Base): @staticmethod def export(): # type: () -> No...
apache-2.0
benmccann/kubernetes
pkg/api/v1beta3/types.go
114491
/* Copyright 2014 The Kubernetes 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 ag...
apache-2.0
daxnet/apworks-examples
src/WeText/client/src/app/components/friends/friends.component.ts
273
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-friends', templateUrl: './friends.component.html', styleUrls: ['./friends.component.css'] }) export class FriendsComponent implements OnInit { constructor() { } ngOnInit() { } }
apache-2.0
crystaldust/containerops
singular/module/infras/flannel.go
9397
/* Copyright 2016 - 2017 Huawei Technologies Co., Ltd. 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 applic...
apache-2.0
JeffLi1993/java-core-learning-example
src/main/java/org/javacore/nio/FileChannelTransferTo.java
1688
package org.javacore.nio; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.nio.channels.FileChannel; /* * Copyright [2015] [Jeff Lee] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except ...
apache-2.0
luuhfelix/ProjetoFilmesAndroid
app/old/main/java/com/exemplo/luciana/catalogofilmes/model/Filme.java
1419
package com.exemplo.luciana.catalogofilmes.model; import java.io.Serializable; /** * Created by Luciana on 14/11/2015. */ public class Filme implements Serializable { private String nome; private String diretor; private String nacionalidade; private String atores; private String lancamento; ...
apache-2.0
spring-projects/rest-shell
src/main/java/org/springframework/data/rest/shell/formatter/Formatter.java
180
package org.springframework.data.rest.shell.formatter; public interface Formatter { boolean isSupported(String contentType); String format(String nonFormattedString); }
apache-2.0
jdehlin/Xamarin-Sidebar
Samples/SimpleSample/AppDelegate.cs
1333
using System; using System.Collections.Generic; using System.Linq; using MonoTouch.Foundation; using MonoTouch.UIKit; namespace Sample { // The UIApplicationDelegate for the application. This class is responsible for launching the // User Interface of the application, as well as listening (and optionally responding...
apache-2.0
mmaracic/elasticsearch
core/src/main/java/org/elasticsearch/common/network/NetworkModule.java
24371
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
apache-2.0
majetideepak/arrow
cpp/src/gandiva/precompiled/decimal_ops.cc
29011
// 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...
apache-2.0
monospacesoftware/quickstart
helloworld-client-ssl/src/main/java/org/jboss/as/quickstarts/helloworld/BouncyIntegration.java
1246
/* * JBoss, Home of Professional Open Source * Copyright 2015, Red Hat, Inc. and/or its affiliates, and individual * contributors by the @authors tag. See the copyright.txt in the * distribution for a full listing of individual contributors. * * Licensed under the Apache License, Version 2.0 (the "License"); * y...
apache-2.0
sumeko/phalcon-ide-stub
Phalcon/Cli/Dispatcher.php
2192
<?php namespace Phalcon\Cli { /** * Phalcon\Cli\Dispatcher * * Dispatching is the process of taking the command-line arguments, extracting the module name, * task name, action name, and optional parameters contained in it, and then * instantiating a task and calling an action on it. * *<code> * * ...
apache-2.0
google/swiftshader
third_party/llvm-subzero/lib/Support/CommandLine.cpp
74081
//===-- CommandLine.cpp - Command line parser implementation --------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
apache-2.0
stevesloka/kubernetes
pkg/registry/batch/rest/storage_batch.go
3397
/* Copyright 2016 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, ...
apache-2.0
ruhan1/pnc
ui/app/common/util/QueryHelper.js
1316
/* * JBoss, Home of Professional Open Source. * Copyright 2014 Red Hat, Inc., and individual contributors * as indicated by the @author tags. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the Licen...
apache-2.0
samchrisinger/osf.io
api_tests/users/views/test_user_list.py
19097
# -*- coding: utf-8 -*- import itsdangerous import mock from nose.tools import * # flake8: noqa import unittest import urlparse from modularodm import Q from tests.base import ApiTestCase from tests.factories import AuthUserFactory, UserFactory, ProjectFactory, Auth from api.base.settings.defaults import API_BASE ...
apache-2.0
StackPointCloud/knife-profitbricks
lib/chef/knife/profitbricks_volume_delete.rb
1231
require 'chef/knife/profitbricks_base' class Chef class Knife class ProfitbricksVolumeDelete < Knife include Knife::ProfitbricksBase banner 'knife profitbricks volume delete SERVER_ID [SERVER_ID] (options)' option :datacenter_id, short: '-D ID', long: '--datacenter-i...
apache-2.0
zapbot/zap-extensions
addOns/exportreport/src/main/java/org/zaproxy/zap/extension/exportreport/model/Alerts.java
2007
/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2016 The ZAP Development Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Yo...
apache-2.0
WebAssembly/binaryen
src/tools/fuzzing/fuzzing.cpp
106186
/* * Copyright 2021 WebAssembly Community Group participants * * 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...
apache-2.0
flofreud/aws-sdk-java
aws-java-sdk-datapipeline/src/main/java/com/amazonaws/services/datapipeline/DataPipelineClient.java
71381
/* * 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 "l...
apache-2.0
raja15792/googleads-java-lib
examples/adwords_axis/src/main/java/adwords/axis/v201502/express/GetProductServices.java
3937
// Copyright 2015 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law...
apache-2.0
frapu78/processeditor
src/com/inubit/research/validation/bpmn/choreography/branchingTree/AbstractSplit.java
6803
/** * * Process Editor * * (C) 2009, 2010 inubit AG * (C) 2014 the authors * */ package com.inubit.research.validation.bpmn.choreography.branchingTree; import com.inubit.research.validation.bpmn.adaptors.EventAdaptor; import com.inubit.research.validation.bpmn.adaptors.NodeAdaptor; import java.util.Collection; ...
apache-2.0
lburgazzoli/spring-boot
spring-boot-samples/spring-boot-sample-jooq/gensrc/main/java/sample/jooq/domain/Keys.java
3806
/** * This class is generated by jOOQ */ package sample.jooq.domain; import javax.annotation.Generated; import org.jooq.ForeignKey; import org.jooq.Record; import org.jooq.UniqueKey; import org.jooq.impl.AbstractKeys; /** * A class modelling foreign key relationships between tables of the <code>PUBLIC</code> * s...
apache-2.0
XClouded/t4f-core
scala/src/tmp/XML/writing/atom-feed.scala
996
// code-examples/XML/writing/atom-feed.scala import scala.xml.XML class AtomFeed(posts: Seq[Post]) { val feed = <feed xmlns="http://www.w3.org/2005/Atom"> <title>My Blog</title> <subtitle>A fancy subtitle.</subtitle> <link href="http://example.com/"/> <link href="http://example.com/atom.xml" rel="...
apache-2.0
dhf0820/hapi-fhir-1.2
hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/V3OrderableDrugFormEnumFactory.java
26330
package org.hl7.fhir.instance.model.valuesets; /* Copyright (c) 2011+, HL7, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain th...
apache-2.0
BrunoMRodrigues/apps-android-tbrc-work
scripts/convert-icons.py
1871
import os import sh from glob import glob DENSITIES = { "ldpi": 0.75, "mdpi": 1, "hdpi": 1.5, "xhdpi": 2, "xxhdpi": 3 } OUTPUT_PATH_PREFIX = os.path.abspath(os.path.join(os.path.dirname(__file__), "../wikipedia/res/")) class ImagesBatch(object): def __init__(self, path): self.dp = i...
apache-2.0
Teino1978-Corp/NCache
Integration/MemCached/Clients/Enyim.Caching/Src/Enyim.Caching/Memcached/Locators/VBucketNodeLocatorFactory.cs
2914
// Copyright (c) 2015 Alachisoft // // 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...
apache-2.0
lrytz/scala
test/files/pos/t12122.scala
81
class C { def f(i: Int, s: String) = s * i def g = (i: Int, s) => f(i, s) }
apache-2.0
Fabryprog/camel
components/camel-spring/src/test/java/org/apache/camel/spring/processor/SpringInterceptSendToEndpointInOnExceptionTest.java
1373
/* * 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 ...
apache-2.0
davidkarlsen/camel
core/camel-core/src/test/java/org/apache/camel/component/validator/ValidatorBeanCallTest.java
2960
/* * 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 ...
apache-2.0
t3377/MyPuppet
modules/dsc/lib/puppet/type/dsc_log.rb
1943
require 'pathname' Puppet::Type.newtype(:dsc_log) do require Pathname.new(__FILE__).dirname + '../../' + 'puppet/type/base_dsc' require Pathname.new(__FILE__).dirname + '../../puppet_x/puppetlabs/dsc_type_helpers' @doc = %q{ The DSC Log resource type. Automatically generated from 'PSDesiredStateCon...
apache-2.0
Buzzardo/spring-boot
spring-boot-system-tests/spring-boot-image-tests/src/systemTest/java/org/springframework/boot/image/assertions/ImageAssert.java
3033
/* * Copyright 2012-2021 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
apache-2.0
daiqiquan/framework-base
core/java/android/net/NetworkPolicyManager.java
13719
/* * Copyright (C) 2011 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...
apache-2.0
OSLL/mariadb-cookbooks
recipes/purge.rb
223
include_recipe "mariadb::uninstall" execute "Configuration cleaning" do command "rm -fr /etc/my*" end execute "Data removing" do command "rm -fr /usr/share/mysql/ /usr/lib/mysql/ /usr/lib64/mysql/ /var/lib/mysql/" end
apache-2.0