repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
PressLabs/zipa
tests/test_resource_iter.py
845
import pytest import httpretty from requests.exceptions import HTTPError from .fixtures import pretty_api from zipa import api_test_com as t @pytest.mark.httpretty def test_iter_returns_single_object(pretty_api): t.config.secure = False for item in t.item['a']: assert item.name == 'a' @pytest.mark...
apache-2.0
missioncommand/mil-sym-java
renderer/mil-sym-renderer/src/main/java/sec/web/renderer/portable/RendererSystemTray.java
4584
package sec.web.renderer.portable; import ArmyC2.C2SD.Utilities.RendererSettings; import java.awt.AWTException; import java.awt.Image; import java.awt.Menu; import java.awt.MenuItem; import java.awt.PopupMenu; import java.awt.SystemTray; import java.awt.TrayIcon; import java.awt.event.ActionEvent; import java.awt.even...
apache-2.0
youdonghai/intellij-community
java/java-impl/src/com/intellij/codeInspection/streamMigration/MigrateToStreamFix.java
3125
/* * Copyright 2000-2016 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
apache-2.0
paineliu/tflearn
helen.py
1084
import os from PIL import Image img_path = '/home/palm/deep/helen/train' lab_path = '/home/palm/deep/helen/annotation' filename = '/home/palm/deep/helen/trainnames.txt' f = open(filename) index = 1 for each in f: each = each.strip() img_file = os.path.join(img_path, each + '.jpg') img = Image.open(img_fi...
apache-2.0
jayware/entity-essentials
entity-essentials-api/src/main/java/org/jayware/e2/component/api/PropertyDeclarationException.java
1582
/** * Entity Essentials -- A Component-based Entity System * * Copyright (C) 2017 Elmar Schug <elmar.schug@jayware.org>, * Markus Neubauer <markus.neubauer@jayware.org> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the...
apache-2.0
serlo-org/serlo-abc
src/components/common/TextPicker.js
2860
import { addIndex, map, max, reduce, repeat } from 'ramda'; import React, { Component } from 'react'; import { TouchableOpacity, View, Text } from 'react-native'; import { BLACK_TRANSPARENT, PRIMARY_WEAK, GREEN, RED } from '../../styles/colors'; import { DEFAULT } from '../../styles/text'; const mapIndexed = ...
apache-2.0
hazendaz/assertj-core
src/test/java/org/assertj/core/api/longarray/LongArrayAssert_endsWith_Test.java
1287
/* * 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
nlamirault/abraracourcix
server/abraracourcixd/abraracourcixd.go
3779
// Copyright (C) 2015-2018 Nicolas Lamirault <nicolas.lamirault@gmail.com> // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless requ...
apache-2.0
luciferous/finagle
finagle-netty4/src/main/scala/com/twitter/finagle/netty4/ssl/Netty4SslConfigurations.scala
3311
package com.twitter.finagle.netty4.ssl import com.twitter.finagle.ssl.{ApplicationProtocols, SslConfigurationException, TrustCredentials} import com.twitter.util.{Return, Throw, Try} import io.netty.handler.ssl.{ApplicationProtocolConfig, SslContextBuilder, SslProvider} import io.netty.handler.ssl.ApplicationProtocolC...
apache-2.0
CChengz/dot.r
workspace/fits/jexi-1.0b-all/src/com/crackj2ee/jexi/ui/ViewDecorator.java
3023
/* * Created on 2004-7-25 * Author: Xuefeng, Copyright (C) 2004, Xuefeng. */ package com.crackj2ee.jexi.ui; /** * The view decorator. * * @author Xuefeng */ public abstract class ViewDecorator implements View { // a reference to view component: protected View component; /** * To create a wr...
apache-2.0
minimoog/virtualringbuffer
main.cpp
1576
#include "virtualringbuffer.h" #include <string.h> #include <stdio.h> int main() { VirtualRingBuffer vbrb(8000); char *indata = new char[2000]; char *outdata = new char[2000]; memset(indata, '1', 2000); //simple test memcpy(vbrb.writePointer(), indata, 2000); vbrb.commit(2000); memc...
apache-2.0
Lycsona/blog
blog-server/src/App/BlogBundle/Entity/User.php
591
<?php namespace App\BlogBundle\Entity; use Doctrine\ORM\Mapping as ORM; use JMS\Serializer\Annotation as JMS; use FOS\UserBundle\Model\User as BaseUser; /** * @ORM\Entity(repositoryClass="App\BlogBundle\Repository\UserRepository") * @ORM\Table(name="`user`") * * Defines the properties of the User entity to repre...
apache-2.0
vzabavnov/AVRTL
samples/BlinkLED/main.cpp
491
/* * BlinkLED.cpp * * Created: 3/27/2017 2:41:39 PM * Author : Vadim Zabavnov */ #ifndef F_CPU #define F_CPU 800000UL #endif #include <avr/io.h> #include <util/delay.h> #include <atlexpr.h> #include <atlstd.h> int main(void) { const atl::std::DigitalPortB thePort; const int pinMask = atl::expr::CreateBit...
apache-2.0
sdgdsffdsfff/tddl
tddl-executor/src/main/java/com/taobao/tddl/executor/function/scalar/Not.java
901
package com.taobao.tddl.executor.function.scalar; import com.taobao.tddl.common.exception.NotSupportException; import com.taobao.tddl.executor.function.ScalarFunction; import com.taobao.tddl.optimizer.core.expression.ISelectable.DATA_TYPE; /** * @since 5.1.0 */ public class Not extends ScalarFunction { public ...
apache-2.0
canalplus/rx-player
src/compat/is_offline.ts
1766
/** * Copyright 2015 CANAL+ Group * * 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
OpenUniversity/ovirt-engine
frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/vms/ImportEntityData.java
2208
package org.ovirt.engine.ui.uicommonweb.models.vms; import java.util.ArrayList; import java.util.List; import org.ovirt.engine.core.common.businessentities.ArchitectureType; import org.ovirt.engine.core.common.businessentities.Cluster; import org.ovirt.engine.core.common.businessentities.Quota; import org.ovirt.engin...
apache-2.0
ml4j/ml4j-impl
ml4j-base-impl/src/main/java/org/ml4j/nn/axons/AxonsGradientImpl.java
2374
/* * Copyright 2017 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 applicable law ...
apache-2.0
OpenUniversity/ovirt-engine
backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/common/predicates/RunningVmPredicateTest.java
1006
package org.ovirt.engine.core.bll.common.predicates; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertThat; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; import org.mock...
apache-2.0
devetude/BOJ-PSJ
src/boj_submitter/views/MainDialog.java
1621
package boj_submitter.views; import java.awt.Dialog; import java.awt.Dimension; import java.awt.Font; import java.awt.Frame; import java.awt.Label; import java.awt.Toolkit; import java.awt.event.WindowEvent; import java.awt.event.WindowListener; /** * 메인 다이얼로그 클래스 * * @author devetude */ public class MainDialog ...
apache-2.0
dbondarchuk/MailWebCient
GmailWebClient/Scripts/internal/app.js
39
app = angular.module('mailApp', []);
apache-2.0
rackerlabs/finding_dory
dory/openstack/common/gettextutils.py
18030
# Copyright 2012 Red Hat, Inc. # Copyright 2013 IBM Corp. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2....
apache-2.0
reportportal/service-api
src/main/java/com/epam/ta/reportportal/core/imprt/impl/ImportStrategy.java
1162
/* * Copyright 2019 EPAM Systems * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
apache-2.0
sysdevone/gab-cmdline
src/main/java/com/gabstudios/cmdline/UnsupportedException.java
2332
/***************************************************************************************** * * Copyright 2016 Gregory Brown. 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 Li...
apache-2.0
mezz64/home-assistant
homeassistant/components/envirophat/sensor.py
8627
"""Support for Enviro pHAT sensors.""" from __future__ import annotations from datetime import timedelta import importlib import logging import voluptuous as vol from homeassistant.components.sensor import ( PLATFORM_SCHEMA, SensorDeviceClass, SensorEntity, SensorEntityDescription, ) from homeassista...
apache-2.0
amitdhiman000/MyOffers
MyOffers/management/commands/preload.py
543
from django.core.management.base import (BaseCommand, CommandError) from myadmin.backenddb import (insert_custom_areas, insert_default_categories) class Command(BaseCommand): help = 'Closes the specified poll for voting' def add_arguments(self, parser): pass # parser.add_argument('poll_id', n...
apache-2.0
aws/aws-sdk-java
aws-java-sdk-appconfig/src/main/java/com/amazonaws/services/appconfig/model/transform/DeploymentSummaryJsonUnmarshaller.java
5349
/* * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
apache-2.0
opencord/voltha
voltha/adapters/openolt/openolt_flow_mgr.py
74670
# # Copyright 2018 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 applicable law or agre...
apache-2.0
RenzoH89/hsac-fitnesse-fixtures
src/main/java/nl/hsac/fitnesse/junit/HsacFitNesseRunner.java
8302
package nl.hsac.fitnesse.junit; import fitnesse.ContextConfigurator; import fitnesse.FitNesseContext; import fitnesse.components.PluginsClassLoader; import fitnesse.junit.FitNesseRunner; import fitnesse.wiki.WikiPage; import nl.hsac.fitnesse.fixture.Environment; import nl.hsac.fitnesse.fixture.slim.web.SeleniumDriverS...
apache-2.0
yeastrc/proxl-web-app
proxl_web_app/front_end/src/js/page_js/data_pages/project_search_ids_driven_pages/structure_page/linkable-positions-utils.js
9567
"use strict"; import {StructureAlignmentUtils} from "./structure-alignment-utils"; import {StructureUtils} from "./stucture-utils"; export class LinkablePositionUtils { static getRenderedDistanceArray( renderedLinks, linkExclusionHandler ) { let distanceArray = [ ]; let UDRsCounted = { }; ...
apache-2.0
tylerchen/springmvc-mybatis-modules-project
security/src/main/java/com/foreveross/common/module/security/application/impl/SecurityAllInOneApplicationImpl.java
11251
/******************************************************************************* * Copyright (c) 2014-2-28 @author <a href="mailto:iffiff1@hotmail.com">Tyler Chen</a>. * All rights reserved. * * Contributors: * <a href="mailto:iffiff1@hotmail.com">Tyler Chen</a> - initial API and implementation ********...
apache-2.0
Tacticalmint/04_BattleTank
BattleTank/Source/BattleTank/Private/TankAimingComponent.cpp
1642
// Fill out your copyright notice in the Description page of Project Settings. #include "TankAimingComponent.h" #include "TankBarrel.h" #include "TankTurret.h" #include "Engine.h" // Sets default values for this component's properties UTankAimingComponent::UTankAimingComponent() { // Set this component to be initia...
apache-2.0
SAP/openui5
src/sap.m/test/sap/m/qunit/rules/Button.qunit.js
1113
/*global QUnit */ sap.ui.define([ "sap/m/Button", "sap/m/Page", "sap/m/Panel", "sap/ui/core/IconPool", "test-resources/sap/ui/support/TestHelper" ], function (Button, Page, Panel, IconPool, testRule) { "use strict"; QUnit.module("Button rule tests", { setup: function () { this.page = new Page({ conten...
apache-2.0
paulseawa/p4ic4idea
plugin/src/net/groboclown/idea/p4ic/v2/server/connection/ServerStatusController.java
3419
/* ************************************************************************* * (c) Copyright 2015 Zilliant Inc. All rights reserved. * * ************************************************************************* * * * THIS ...
apache-2.0
Guille1406/The-Legend-of-Zelda-Hyrule-Conquest
Project/Dev_class11_handout/Motor2D/Particle_Explosion.cpp
7094
#include "Particle_Explosion.h" #include "Particle.h" P_Explosion::P_Explosion(Arrow* element, iPoint* object, iPoint position_static, SDL_Rect initial_rect, Explosion_Type type, iPoint perimeter_object, iPoint timelife_particle, fPoint speed_particle, Part_Direction p_direction, int num_particles, int num_textures) {...
apache-2.0
googleapis/java-vision
proto-google-cloud-vision-v1p3beta1/src/main/java/com/google/cloud/vision/v1p3beta1/ImportProductSetsRequestOrBuilder.java
2839
/* * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
apache-2.0
techwyseintl/Northwood
newapp/lib/authenticated_system.rb
4495
module AuthenticatedSystem protected # Returns true or false if the user is logged in. # Preloads @current_user with the user model if they're logged in. def logged_in? current_user != :false end # Accesses the current user from the session. def current_user @current_user ||= ...
apache-2.0
strapdata/elassandra5-rc
plugins/mapper-size/src/test/java/org/elasticsearch/index/mapper/size/SizeMappingTests.java
7253
/* * 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
lastaflute/lastaflute-test-fortress
src/main/java/org/docksidestage/remote/fortress/wx/routing/restlike/lmlike/RemoteFortressWxRoutingRestlikeLmlikeBhv.java
1551
/* * Copyright 2015-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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
apache-2.0
ConsecroMUD/ConsecroMUD
com/suscipio_solutions/consecro_mud/Abilities/Prayers/Prayer_Sanctum.java
5096
package com.suscipio_solutions.consecro_mud.Abilities.Prayers; import java.util.List; import java.util.Vector; import com.suscipio_solutions.consecro_mud.Abilities.interfaces.Ability; import com.suscipio_solutions.consecro_mud.Common.interfaces.CMMsg; import com.suscipio_solutions.consecro_mud.Locales.interfaces.Room;...
apache-2.0
klarna/HiveRunner
src/test/java/com/klarna/hiverunner/CommentTest.java
1388
/** * Copyright (C) 2013-2021 Klarna 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 law or agr...
apache-2.0
finmath/finmath-experiments
src/main/java/net/finmath/experiments/montecarlo/BrownianMotionTests.java
2942
/* * (c) Copyright Christian P. Fries, Germany. All rights reserved. Contact: email@christian-fries.de. * * Created on 10.02.2004 */ package net.finmath.experiments.montecarlo; import java.text.DecimalFormat; import net.finmath.montecarlo.BrownianMotionLazyInit; import net.finmath.montecarlo.RandomVariableFromDou...
apache-2.0
reportportal/commons-model
src/main/java/com/epam/ta/reportportal/ws/model/launch/UpdateLaunchRQ.java
2173
/* * Copyright 2019 EPAM Systems * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
apache-2.0
xisberto/workschedule
src/net/xisberto/work_schedule/history/InstrucionDialog.java
2630
/******************************************************************************* * Copyright 2014 xisberto * * 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...
apache-2.0
tellesnobrega/storm_plugin
sahara/service/edp/workflow_creator/java_workflow.py
1791
# Copyright (c) 2013 RedHat 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 writin...
apache-2.0
PavelZubaha/pzubaha
chapter_002/tracker/src/main/java/ru/pzubaha/gui/HeaderBar.java
1227
package ru.pzubaha.gui; /** * Chapter 2. OOP. * Lesson 4. Polymorphism. * * Class HeaderBar header is part of GUI Menu. * Class contains solution of task 396. * * @author Pavel Zubaha (mailto:Apximar@gmail.com) * @since 25.05.017 * @version 2 */ public class HeaderBar { /** * Header for menu. */ private S...
apache-2.0
equella/Equella
Source/Plugins/Core/com.equella.admin/src/com/dytech/edge/admin/script/ifmodel/Equals.java
1096
/* * Licensed to The Apereo Foundation under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * * The Apereo Foundation licenses this file to you under the Apache License, * Version 2.0, (the "License"); you ma...
apache-2.0
java-prolog-connectivity/jpc
src/main/java/org/jpc/error/RepresentationError.java
198
package org.jpc.error; import org.jpc.term.Compound; public class RepresentationError extends IsoPrologError { public RepresentationError(Compound exceptionTerm) { super(exceptionTerm); } }
apache-2.0
AndriyBas/CBLMessenger
01-Basic/app/src/main/java/com/explain/cblmessenger/utils/Utils.java
2137
package com.explain.cblmessenger.utils; import android.content.Context; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.widget.Toast; import com.explain.cblmessenger.CBLMessenger; import com.explain.cblmessenger.Const; import com.explain.cblmessenger.common.logger.Log; import o...
apache-2.0
V119/spidersManager
src/com/sicdlib/service/IStopWordsService.java
136
package com.sicdlib.service; import java.util.List; public interface IStopWordsService { public List<String> getAllStopWords(); }
apache-2.0
google/grr
grr/server/grr_response_server/databases/mem_test_base.py
359
#!/usr/bin/env python """Base class for all memory database tests.""" from grr_response_server.databases import db_test_mixin from grr_response_server.databases import mem class MemoryDBTestBase(db_test_mixin.DatabaseSetupMixin): def CreateDatabase(self): return mem.InMemoryDB(), None def CreateBlobStore(s...
apache-2.0
his-eg/plugfy
src/sample/net/sf/plugfy/sample/SampleFieldInstance.java
658
/* * Copyright 2013 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may use this file in compliance with the Apache License, Version 2.0. * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * ...
apache-2.0
leafclick/intellij-community
platform/platform-impl/src/com/intellij/ide/actions/QuickChangeSchemesAction.java
1218
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.ide.actions; import com.intellij.featureStatistics.FeatureUsageTracker; import com.intellij.openapi.actionSystem.*; import com.intellij.openapi.project.DumbA...
apache-2.0
googleapis/google-api-php-client-services
src/CloudNaturalLanguage/AnalyzeEntitiesResponse.php
1504
<?php /* * Copyright 2014 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 agreed t...
apache-2.0
hmrc/amls-frontend
app/utils/JsonMapping.scala
3104
/* * Copyright 2021 HM Revenue & Customs * * 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...
apache-2.0
mwl/gwt-upload
core/src/main/java/gwtupload/server/UploadAction.java
8110
/* * Copyright 2010 Manuel Carrasco Moñino. (manolo at apache/org) * http://code.google.com/p/gwtupload * * 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.apach...
apache-2.0
phrocker/sharkbite
native-iterators-jni/src/main/java/org/poma/accumulo/WrappedIterator.java
2520
package org.poma.accumulo; import org.apache.accumulo.core.data.ArrayByteSequence; import org.apache.accumulo.core.data.ByteSequence; import org.apache.accumulo.core.data.Range; import org.apache.accumulo.core.data.Value; import org.apache.accumulo.core.iterators.IteratorEnvironment; import org.apache.accumulo.core.it...
apache-2.0
FreemapSlovakia/freemap-v3-react
src/components/gallery/galleryTileRenderrer.ts
4869
import color from 'color'; import { GalleryColorizeBy } from 'fm3/actions/galleryActions'; import { LatLon } from 'fm3/types/common'; import { LatLng } from 'leaflet'; type Marble = LatLon & { rating: number; userId: number; createdAt: number; takenAt?: number | null; }; type Props = { tile: HTMLCanvasEleme...
apache-2.0
buffetboy2001/model-argument-switching
src/main/java/com/github/buffetboy2001/mas/algorithms/FixedStepIntegrationArguments.java
885
/** * */ package com.github.buffetboy2001.mas.algorithms; import com.github.buffetboy2001.mas.interfaces.IFixedStepIntegratorArguments; /** * This class does not contain a setter, so the value cannot be updated within * the lifetime of the object. * * @author SBOWMAN * */ public class FixedSt...
apache-2.0
arshvin/scripts
mvn_cleaner/mvn-hash-cleaner.py
5629
__author__ = 'ivan.v.polyakov' import re import os, os.path from datetime import datetime import argparse parser = argparse.ArgumentParser(description="Maven's repo cleaner of artifacts with git-hash") parser.add_argument("-p", "--repo-path", metavar="PATH", dest="path", action="store", required=True, type = ...
apache-2.0
Jasig/SSP-Platform
uportal-war/src/main/java/org/jasig/portal/layout/dlm/remoting/registry/ChannelBean.java
3257
/** * 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
skwasjer/SilentHunter
src/SilentHunter.FileFormats/ChunkedFiles/Chunk.cs
3085
using System.IO; using System.Threading.Tasks; using SilentHunter.FileFormats.IO; namespace SilentHunter.FileFormats.ChunkedFiles { /// <summary> /// Represents a file chunk, which is identified via a strongly typed magic. /// </summary> /// <typeparam name="TMagic">The type of the magic.</typeparam> public abst...
apache-2.0
rum-ata/pdt39
addressbook-web-tests/src/test/java/ru/stqa/pft/addressbook/tests/TestBase.java
1155
package ru.stqa.pft.addressbook.tests; import org.openqa.selenium.remote.BrowserType; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.testng.annotations.AfterMethod; import org.testng.annotations.AfterSuite; import org.testng.annotations.BeforeMethod; import org.testng.annotations.BeforeSuite; imp...
apache-2.0
mhidaka/playgroundthon
SampleProject/CSharp/Properties/AssemblyInfo.cs
1569
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // Les informations générales relatives à un assembly dépendent de // l'ensemble d'attributs suivant. Changez les valeurs de ces attributs pour modifier les informations // associées à un assembly. [assembly:...
apache-2.0
ali-ince/neo4j-dotnet-driver
Neo4j.Driver/Neo4j.Driver/Internal/Result/Record.cs
1490
// Copyright (c) 2002-2019 "Neo4j," // Neo4j Sweden AB [http://neo4j.com] // // This file is part of Neo4j. // // 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....
apache-2.0
bmhm/ffb.depot.client
src/main/java/de/bmarwell/ffb/depot/client/value/FfbDepotNummer.java
2307
/* * Copyright 2018 The ffb.depot.client contributors * * 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
wuyuehang/yuehan9
gfxnuts/src/unittest_noise2d_wood.cpp
2281
#include "noise2d.hpp" #include "ppm.hpp" int main() { noise2d a; int amp_factor = 8.0; unsigned char *texture = new unsigned char [noise2d::MetaWidth*amp_factor*noise2d::MetaHeight*amp_factor*3]; int NumLayers = 7; int layer_factor[NumLayers]; float base_frequency_factor = 0.2; // be friendly with it float s...
apache-2.0
griffon/griffon
subprojects/griffon-core-api/src/main/java/griffon/core/resources/package-info.java
768
/* * SPDX-License-Identifier: Apache-2.0 * * Copyright 2008-2022 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/license...
apache-2.0
Alpistinho/SPICE16
Spice/Spice/CurrentSource.cpp
839
#include "stdafx.h" #include "CurrentSource.h" namespace spiceSimulator { CurrentSource::CurrentSource(void) { } CurrentSource::CurrentSource(Node* n1, Node* n2, double current, double phase, unsigned long newKey) { node1 = n1; node2 = n2; value = std::complex<double>(current*std::cos(phase), current*std::...
apache-2.0
thommay/chef
chef/spec/unit/cookbook/metadata_spec.rb
13181
# # Author:: Adam Jacob (<adam@opscode.com>) # Copyright:: Copyright (c) 2008 Opscode, Inc. # License:: Apache License, Version 2.0 # # 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 # # ht...
apache-2.0
Aleatoribus/aleator.stream
diagnostics.php
5513
<!DOCTYPE html> <html> <head> <title>Diagnostics</title> <meta charset="UTF-8"/> <link rel="icon" href="favicon.ico"/> </head> <body> <?php function get_browser_name(){ $user_agent = $_SERVER['HTTP_USER_AGENT']; if(strpos($user_agent, 'Opera') || strpos($user_agent, 'OPR/')){ return 'Opera'; ...
apache-2.0
zxylvlp/LockFree
TestConcurrentQueue.cpp
1055
/* * TestConcurrentQueue.cpp * * Created on: 2017年7月2日 * Author: zxy */ #include "concurrent_queue.h" #include "SimpleSpinLock.h" #include <thread> #include <vector> #include <iostream> int main() { ConcurrentQueue<uint64_t> cq; SimpleSpinLock ssl; std::vector<std::thread> threads; for (int i...
apache-2.0
NakedObjectsGroup/NakedObjectsFramework
NakedFramework/NakedFramework.Metamodel/SemanticsProvider/ShortValueSemanticsProvider.cs
2175
// Copyright Naked Objects Group Ltd, 45 Station Road, Henley on Thames, UK, RG9 1AT // 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 requir...
apache-2.0
mmartell/geode-native
tests/cli/NewFwkLib/FwkTest.cs
52569
/* * 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
IdentityServer/IdentityServer4.Templates
src/IdentityServer4EntityFramework/Migrations/ConfigurationDb/ConfigurationDbContextModelSnapshot.cs
32305
// <auto-generated /> using System; using IdentityServer4.EntityFramework.DbContexts; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; namespace IdentityServer4EntityFramework.Migrations.ConfigurationDb { [DbConte...
apache-2.0
daileyet/openlibs.utilities
src/main/java/com/openthinks/libs/utilities/handler/annotation/GroupRef.java
864
package com.openthinks.libs.utilities.handler.annotation; import static java.lang.annotation.ElementType.FIELD; import static java.lang.annotation.RetentionPolicy.RUNTIME; import java.lang.annotation.Documented; import java.lang.annotation.Retention; import java.lang.annotation.Target; @Documented @Retention...
apache-2.0
aajjbb/contest-files
USACO/Crosswords.cpp
1481
#include <bits/stdc++.h> template<typename T> T gcd(T a, T b) { if(!b) return a; return gcd(b, a % b); } template<typename T> T lcm(T a, T b) { return a * b / gcd(a, b); } template<typename T> void chmin(T& a, T b) { a = (a > b) ? b : a; } template<typename T> void chmax(T& a, T b) { a = (a < b) ? b : a; ...
apache-2.0
thurt/arangodb
js/server/modules/@arangodb/formatter.js
8098
/*jshint strict: false, unused: false */ /*global FORMAT_DATETIME, PARSE_DATETIME */ //////////////////////////////////////////////////////////////////////////////// /// @brief formatter functions /// /// @file /// /// DISCLAIMER /// /// Copyright 2011-2012 triagens GmbH, Cologne, Germany /// /// Licensed under the Ap...
apache-2.0
masaki-yamakawa/geode
geode-assembly/src/distributedTest/java/org/apache/geode/management/internal/rest/DeploymentSemanticVersionJarDUnitTest.java
10908
/* * Licensed to the Apache Software Foundation (ASF) under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional information regarding * copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the * "License"); you may not ...
apache-2.0
yamahata/tacker
tacker/plugins/common/constants.py
2143
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 OpenStack Foundation. # 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.apac...
apache-2.0
bcopy/opc-ua-stack
stack-core/src/main/java/com/digitalpetri/opcua/stack/core/types/structured/PublishRequest.java
2594
package com.digitalpetri.opcua.stack.core.types.structured; import com.digitalpetri.opcua.stack.core.Identifiers; import com.digitalpetri.opcua.stack.core.serialization.DelegateRegistry; import com.digitalpetri.opcua.stack.core.serialization.UaDecoder; import com.digitalpetri.opcua.stack.core.serialization.UaEncoder; ...
apache-2.0
matrix-org/synapse
synapse/config/captcha.py
2233
# Copyright 2014-2016 OpenMarket 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 agreed to in w...
apache-2.0
markkerzner/nn_kove
hadoop/src/hdfs/org/apache/hadoop/hdfs/server/namenode/mapdb/Engine.java
8666
/* * Copyright (c) 2012 Jan Kotek * * 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...
apache-2.0
nischalsheth/contrail-controller
src/vnsw/agent/cmn/agent_signal.cc
528
// // Copyright (c) 2017 Juniper Networks, Inc. All rights reserved. // #include "cmn/agent_signal.h" AgentSignal::AgentSignal(EventManager *evm) : process_signal_(evm, process::Signal::SignalCallbackMap(), std::vector<process::Signal::SignalChildHandler>(), true) { } AgentSignal::~AgentSignal() { } voi...
apache-2.0
NCI-GDC/portal-ui
src/packages/@ncigdc/components/Pagination/index.js
4026
/* @flow */ import React from 'react'; import _ from 'lodash'; import { Row } from '@ncigdc/uikit/Flex'; import { withTheme } from '@ncigdc/theme'; import PaginationButton from './PaginationButton'; import PaginationLink from './PaginationLink'; import Sizes from './Sizes'; export type TProps = { params: Object, ...
apache-2.0
qiao4/SharpLearn
MainForm.Designer.cs
6913
/* * 由SharpDevelop创建。 * 用户: qiao4 * 日期: 2016/11/2 * 时间: 22:27 * * 要改变这种模板请点击 工具|选项|代码编写|编辑标准头文件 */ namespace SharpLearn { partial class MainForm { /// <summary> /// Designer variable used to keep track of non-visual components. /// </summary> private System.ComponentModel.IContainer co...
apache-2.0
mediocre/mehdown
test/plugins/youtube.js
4913
const assert = require('assert'); const mehdown = require('../../lib'); describe('youtube', function() { it('http://www.youtube.com/watch?v=kU9MuM4lP18', function(done) { mehdown.render('http://www.youtube.com/watch?v=kU9MuM4lP18', function(err, html) { assert.equal(html, '<p><iframe allowfull...
apache-2.0
ankuradhey/dealtrip
library/Zend/View/Helper/PartialLoop.php
3268
<?php /** * Zend Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://framework.zend.com/license/new-bsd * If you did not receive a copy of the ...
apache-2.0
razie/diesel-rx
diesel/src/main/scala/razie/diesel/expr/ExprParser.scala
18545
/* ____ __ ____ ____ ____,,___ ____ __ __ ____ * ( _ \ /__\ (_ )(_ _)( ___)/ __) ( _ \( )( )( _ \ Read * ) / /(__)\ / /_ _)(_ )__) \__ \ )___/ )(__)( ) _ < README.txt * (_)\_)(__)(__)(____)(____)(____)(___/ (__) (______)(____/ LICENSE.txt */ package razi...
apache-2.0
googleapis/java-tasks
proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/TaskName.java
6774
/* * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
apache-2.0
codereligion/beast
src/main/java/com/codereligion/beast/internal/test/ToStringFormatTest.java
5386
/** * Copyright 2013 www.codereligion.com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
apache-2.0
LQJJ/demo
126-go-common-master/app/service/main/up/service/log_test.go
887
package service import ( "context" "testing" "go-common/app/service/main/up/model" "github.com/smartystreets/goconvey/convey" ) func TestServicesendUpSpecialLog(t *testing.T) { convey.Convey("sendUpSpecialLog", t, func(ctx convey.C) { var ( c = context.Background() opInfo = &UpSpecialLogInfo{} )...
apache-2.0
VirtualGamer/SnowEngine
Dependencies/opengl/src/org/lwjgl/opengl/EXTBlendEquationSeparate.java
2520
/* * Copyright LWJGL. All rights reserved. * License terms: https://www.lwjgl.org/license * MACHINE GENERATED FILE, DO NOT EDIT */ package org.lwjgl.opengl; import static org.lwjgl.system.Checks.*; import static org.lwjgl.system.JNI.*; /** * Native bindings to the <a href="http://www.opengl.org/registry/specs/EX...
apache-2.0
carbon-design-system/carbon-components
packages/react/src/components/FluidForm/FluidForm.js
1016
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import PropTypes from 'prop-types'; import React from 'react'; import classnames from 'classnames'; import { settings } from 'carbon-componen...
apache-2.0
nshikalkov/timesheet
vendor/autoload.php
178
<?php // autoload.php @generated by Composer require_once __DIR__ . '/composer/autoload_real.php'; return ComposerAutoloaderInit6f55a4a23f6a5f9ca92be0da2c18c823::getLoader();
apache-2.0
dimone-kun/cuba
modules/gui/src/com/haulmont/cuba/gui/components/mainwindow/FoldersPane.java
1105
/* * Copyright (c) 2008-2016 Haulmont. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
apache-2.0
amoudi87/asterixdb
asterix-metadata/src/main/java/org/apache/asterix/metadata/feeds/FeedLifecycleEventSubscriber.java
2348
/* * 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
huangshanqi/algorithom-tutorial
src/cn/evilcoder/algorithm/Gcd.java
925
package cn.evilcoder.algorithm; /** * 最大公约数 * Created by huangshanqi on 2016/1/1. */ public class Gcd { /** * 辗转相除法. * x = ky + b. * f(x, y) = f(y, b) = f(y, x%y) * @param x * @param y * @return */ public static int gcdByMod(int x, int y) { return y == 0 ? x : gcd...
apache-2.0
xxs/es-shop
src/main/java/com/sishuok/es/showcase/excel/entity/ExcelData.java
756
/** * Copyright (c) 2005-2012 https://github.com/zhangkaitao * * Licensed under the Apache License, Version 2.0 (the "License"); */ package com.sishuok.es.showcase.excel.entity; import com.sishuok.es.common.entity.BaseEntity; import javax.persistence.Column; import javax.persistence.Entity; import java...
apache-2.0
zhuzengpeng/app-console
src/main/java/com/thinkgem/jeesite/modules/act/utils/ActUtils.java
6509
/** * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved. */ package com.thinkgem.jeesite.modules.act.utils; import java.lang.annotation.Annotation; import java.lang.reflect.Method; import java.util.HashMap; import java.util.List; import java.util.Map; import or...
apache-2.0
flashreport-io/flashreport-cf-spring
src/main/java/io/flashreport/cfspring/controller/ReportController.java
1968
package io.flashreport.cfspring.controller; import io.flashreport.cfspring.integration.ReportStatus; import io.flashreport.cfspring.service.ReportManager; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.spr...
apache-2.0