repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
neo4j-contrib/neo4j-apoc-procedures
test-utils/src/main/java/apoc/periodic/PeriodicTestUtils.java
2248
package apoc.periodic; import org.neo4j.common.DependencyResolver; import org.neo4j.internal.helpers.collection.Iterators; import org.neo4j.kernel.api.exceptions.Status; import org.neo4j.kernel.impl.api.KernelTransactions; import org.neo4j.kernel.internal.GraphDatabaseAPI; import org.neo4j.test.rule.DbmsRule; import ...
apache-2.0
hongyan99/chart-faces
chartfaces/src/main/java/org/javaq/chartfaces/render/svg/Paths.java
9431
package org.javaq.chartfaces.render.svg; import java.util.HashMap; import java.util.Map; import org.javaq.chartfaces.util.IStringBuilder; import org.javaq.chartfaces.util.IStringBuilderFactory; import org.javaq.chartfaces.util.NumberRoundingStringBuilder; import org.javaq.chartfaces.util.NumberUtils; /**...
apache-2.0
mwringe/fabric8
components/kubernetes-api/src/main/java/io/fabric8/kubernetes/api/Controller.java
43576
/** * Copyright 2005-2015 Red Hat, Inc. * * Red Hat 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/LICENSE-2.0 * * Unless r...
apache-2.0
igitras-java/custom-boot
custom-boot-core/src/main/java/com/igitras/cbframework/exception/internal/config/InvalidConfigItemException.java
739
package com.igitras.cbframework.exception.internal.config; import static com.igitras.cbframework.exception.ErrorMessageBuilder.builder; import static java.lang.String.format; /** * Invalid Configuration File Path exception. Such as file required but given folder, or something like this. Or the * format of content ...
apache-2.0
Im-dex/xray-162
code/engine/xrGame/WeaponUSP45.cpp
242
#include "pch_script.h" #include "weaponusp45.h" using namespace luabind; #pragma optimize("s", on) void CWeaponUSP45::script_register(lua_State* L) { module(L)[class_<CWeaponUSP45, CGameObject>("CWeaponUSP45").def(constructor<>())]; }
apache-2.0
santhosh-tekuri/jlibs
wadl/src/main/java/jlibs/wadl/cli/model/WADLReader.java
5207
/** * Copyright 2015 Santhosh Kumar Tekuri * * The JLibs authors license 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/LICENSE-2.0 * * Unl...
apache-2.0
jonnyzzz/TeamCity.Virtual
common/src/com/jonnyzzz/teamcity/virtual/VMConstants.java
1923
/* * Copyright 2000-2014 Eugene Petrenko * * 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
czesiu/Luma.SimpleEntity
Src/Tests/Luma.SimpleEntity.Tests/CodeGenCustomAttributeGeneratorTests.cs
23406
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Globalization; using System.Reflection; using Luma.SimpleEntity.MetadataPipeline; using Luma.SimpleEntity.Tests.Utilities; using Microsoft.VisualStudio.TestTools.UnitTesting; using TestNamespace; namespace Luma.S...
apache-2.0
tlcowling/confmake
lib/confmake.rb
154
require 'confmake/env_reader' require 'confmake/conf_reader' require 'confmake/property_reader' require 'confmake/bash_parser' require 'confmake/version'
apache-2.0
sslavic/kafka
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/WorkerGroupMember.java
10119
/* * 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 n...
apache-2.0
wecatch/app-turbo
demos/helpers/user/user.py
311
#-*- coding:utf-8 -*- from datetime import datetime, timedelta from pymongo import DESCENDING, ASCENDING from models.user import model as user_model from helpers import settings MODEL_SLOTS = ['User'] class User(user_model.User): def hello_user(self): self.instance('user.User').find_one()
apache-2.0
googleapis/google-api-java-client-services
clients/google-api-services-osconfig/v1alpha/1.31.0/com/google/api/services/osconfig/v1alpha/model/InstanceOSPoliciesComplianceOSPolicyCompliance.java
4932
/* * 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
russbishop/swift
lib/AST/GenericSignature.cpp
21139
//===--- GenericSignature.cpp - Generic Signature AST ---------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LI...
apache-2.0
jekinchen/flatjni
tests/test.cpp
66867
/* * Copyright 2014 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 applica...
apache-2.0
OpenGamma/Strata
modules/math/src/test/java/com/opengamma/strata/math/impl/integration/GaussHermiteWeightAndAbscissaFunctionTest.java
1586
/* * Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.strata.math.impl.integration; import org.junit.jupiter.api.Test; /** * Test. */ public class GaussHermiteWeightAndAbscissaFunctionTest extends WeightAndAbsci...
apache-2.0
yexianyi/Cho-Ko-Nu
chukonu_java/src/main/java/com/yxy/chukonu/java/dp/observer/Test.java
292
package com.yxy.chukonu.java.dp.observer; public class Test { public static void main(String[] args) { ObserverableOrder order = new ObserverableOrder(1.10f) ; order.addObserver(new ObserverA("Email")); order.addObserver(new ObserverA("Phone")); order.modifyPrice(2.20f); } }
apache-2.0
vic/byte-buddy
byte-buddy-dep/src/main/java/net/bytebuddy/description/ModifierReviewable.java
8191
package net.bytebuddy.description; import org.objectweb.asm.Opcodes; import java.lang.reflect.Modifier; /** * Implementations of this interface can be described in terms of a Java modifier. */ public interface ModifierReviewable { /** * Representation of the default modifier. */ int EMPTY_MASK =...
apache-2.0
leisir2017/dyp
app/models/UserShopInvoice.php
318
<?php class UserShopInvoice extends \Phalcon\Mvc\Model{ public $id; public $uid; public $bili; public $type; public $addtime; public function initialize(){ $this->belongsTo("uid","User","id"); } public function beforeSave(){ $this->addtime = date("Y-m-d H:i:s",time()); } }
apache-2.0
gsoundar/hadoop-bench
src/main/java/mambo/tools/dfsio/Analyzer.java
4731
/** * 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"...
apache-2.0
bazelbuild/intellij
java/src/com/google/idea/blaze/java/libraries/DetachAllSourceJarsAction.java
4203
/* * Copyright 2018 The Bazel 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 a...
apache-2.0
googleads/googleads-dotnet-lib
src/AdWords/Util/Reports/QueryBuilder/Capabilities/IFilterBuilder.cs
1174
// Copyright 2018, 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 applicab...
apache-2.0
citizenmatt/gallio
src/Common/Gallio.Common.Splash/SnapPosition.cs
1762
// Copyright 2005-2010 Gallio Project - http://www.gallio.org/ // Portions Copyright 2000-2004 Jonathan de Halleux // // 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.a...
apache-2.0
chazsmi/go-education
lesson1/code/flags.go
525
package main import ( "flag" "fmt" ) // START OMIT func main() { // A string flag that returns a pointer to the value stringFlag := flag.String("name_of_flag", "default value", "description of how this flag should be used") // You can also use the typeVar method where you pass a var to the function var int...
apache-2.0
jeremyepling/TypeScript
src/compiler/core.ts
83537
/// <reference path="types.ts"/> /// <reference path="performance.ts" /> /* @internal */ namespace ts { /** * Ternary values are defined such that * x & y is False if either x or y is False. * x & y is Maybe if either x or y is Maybe, but neither x or y is False. * x & y is True if bo...
apache-2.0
baardev/lbtb
concrete/elements/permission/details/tree/node.php
418
<? defined('C5_EXECUTE') or die("Access Denied."); ?> <? $pk = PermissionKey::getByID($_REQUEST['pkID']); $pk->setPermissionObject($node); ?> <? Loader::element("permission/detail", array('permissionKey' => $pk)); ?> <script type="text/javascript"> var ccm_permissionDialogURL = '<?=Loader::helper('concrete/urls')-...
apache-2.0
OneWorld0neDream/QingQiQiu
app/src/main/java/com/qf/lenovo/qingqiqiu/storage/StorageFileName.java
248
package com.qf.lenovo.qingqiqiu.storage; /** * Created by 31098 on 9/21/2016. */ public interface StorageFileName { String INTERSTORAGE_HISTORY_TAGS_FILE_NAME = "history_tags"; String PREFERENCE_KEY_FIRST_START = "FIRST_START_FLAG"; }
apache-2.0
kave-cc/csharp-commons
KaVE.Commons/Utils/Json/EnumToStringConverter.cs
1427
/* * Copyright 2014 Technische Universität Darmstadt * * 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...
apache-2.0
hobinyoon/apache-cassandra-3.0.5-src
src/java/org/apache/cassandra/db/compaction/DateTieredCompactionStrategy.java
19412
/* * 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
flashscope/testJavaWebServer
public_html/ex07_cli.py
443
# Echo client program import socket import time HOST = 'localhost' PORT = 8000 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((HOST, PORT)) s.sendall('GET /\r\n\r\n') resp = '' while 1: data = s.recv(8192) resp += data if not data: break else: print len(data), 'bytes...
apache-2.0
kvr000/zbynek-java-exp
gradle/gradle-generate-exp/src/main/java/X.java
18
public class X {}
apache-2.0
rrpgfirecast/firecast
Plugins/Sheets/Ficha Tormenta 20/output/rdkObjs/Ficha Tormenta 20/MagiaForm.lfm.lua
10528
require("firecast.lua"); local __o_rrpgObjs = require("rrpgObjs.lua"); require("rrpgGUI.lua"); require("rrpgDialogs.lua"); require("rrpgLFM.lua"); require("ndb.lua"); require("locale.lua"); local __o_Utils = require("utils.lua"); local function constructNew_frmMagiaForm() local obj = GUI.fromHandle(_obj_newObject(...
apache-2.0
Yiiinsh/x-pipe
redis/redis-keeper/src/main/java/com/ctrip/xpipe/redis/keeper/config/DefaultKeeperContainerConfig.java
807
package com.ctrip.xpipe.redis.keeper.config; import com.ctrip.xpipe.api.config.Config; import javax.annotation.PostConstruct; /** * @author Jason Song(song_s@ctrip.com) */ public class DefaultKeeperContainerConfig implements KeeperContainerConfig { public static final String REPLICATION_STORE_DIR = "replicatio...
apache-2.0
dennybaa/mistral
mistral/tests/unit/test_expressions.py
9515
# Copyright 2013 - Mirantis, Inc. # Copyright 2015 - StackStorm, 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 # # Unl...
apache-2.0
drlove/opentele-server
src/java/org/opentele/server/cpr/stamdatalookup/generated/PersonCivilRegistrationStatusStructureType.java
3182
package org.opentele.server.cpr.stamdatalookup.generated; import java.math.BigInteger; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlType...
apache-2.0
dagnir/aws-sdk-java
aws-java-sdk-lexmodelbuilding/src/main/java/com/amazonaws/services/lexmodelbuilding/model/transform/GetBotChannelAssociationsRequestMarshaller.java
3440
/* * Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
apache-2.0
jcheron/phalcon-jquery
Ajax/bootstrap/html/HtmlBadge.php
437
<?php namespace Ajax\bootstrap\html; /** * Twitter Bootstrap Badge component * @see http://getbootstrap.com/components/#badges * @author jc * @version 1.001 */ use Ajax\bootstrap\html\base\HtmlBsDoubleElement; class HtmlBadge extends HtmlBsDoubleElement { public function __construct($identifier, $caption="") ...
apache-2.0
Jkoza/ConUHacks
app/src/main/java/com/macadamian/smartpantry/ui/activities/AboutActivity.java
1536
package com.macadamian.smartpantry.ui.activities; import android.app.Activity; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.res.Resources; import android.os.Bundle; import android.text.SpannableString; import android.text.method.LinkMovementMethod; import android.text....
apache-2.0
timofeevda/seismic-beachballs-demo
app/src/components/helpopup/helpopup.component.ts
228
import {Component, Input} from '@angular/core' @Component({ template: require('./helpopup.component.html'), selector: 'helpopup' }) export class HelpPopupComponent { @Input() header: string @Input() id: string }
apache-2.0
datawire/quark
setup.py
2400
# Copyright 2015 datawire. 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 agr...
apache-2.0
census-instrumentation/opencensus-csharp
src/OpenCensus.Abstractions/Stats/Aggregations/ILastValueDataLong.cs
1042
// <copyright file="ILastValueDataLong.cs" company="OpenCensus Authors"> // Copyright 2018, OpenCensus 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...
apache-2.0
PheMA/phema-executer
src/main/java/org/phema/executer/Runner.java
2348
package org.phema.executer; import com.typesafe.config.Config; import com.typesafe.config.ConfigFactory; import org.apache.commons.csv.CSVFormat; import org.apache.commons.csv.CSVParser; import org.apache.commons.io.FileUtils; import org.phema.executer.hqmf.IDocument; import org.phema.executer.hqmf.Parser; import org....
apache-2.0
Nandiwalesamahj/nandi3
test/controllers/shaskiyayojanas_controller_test.rb
147
require 'test_helper' class ShaskiyayojanasControllerTest < ActionDispatch::IntegrationTest # test "the truth" do # assert true # end end
apache-2.0
leppa/home-assistant
tests/components/binary_sensor/test_init.py
871
"""The tests for the Binary sensor component.""" import unittest from unittest import mock from homeassistant.components import binary_sensor from homeassistant.const import STATE_OFF, STATE_ON class TestBinarySensor(unittest.TestCase): """Test the binary_sensor base class.""" def test_state(self): ...
apache-2.0
kubernetes-client/java
fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1ExternalMetricStatusFluent.java
3354
/* Copyright 2022 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, softwar...
apache-2.0
prometheus/promdash
db/migrate/20160609130416_add_redirect_checkbox_to_dashboard.rb
168
class AddRedirectCheckboxToDashboard < ActiveRecord::Migration def change add_column :dashboards, :hard_redirect, :boolean, default: false, null: false end end
apache-2.0
axeolotl/wsrp4cxf
commons/src/java/oasis/names/tc/wsrp/v1/types/Contact.java
3587
package oasis.names.tc.wsrp.v1.types; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for Contact complex type. * * <p>The following schema fragment ...
apache-2.0
mike10004/appengine-imaging
gaecompat-awt-imaging/src/swing/com/gaecompat/javax/swing/text/AbstractDocumentI.java
16678
package com.gaecompat.javax.swing.text; import java.io.PrintStream; import java.util.Dictionary; import java.util.EventListener; import com.gaecompat.javax.swing.event.DocumentListener; public interface AbstractDocumentI { /** * Supports managing a set of properties. Callers * can use the <code>documentPropert...
apache-2.0
HarryMMR/Woodmin
app/src/main/java/app/bennsandoval/com/woodmin/data/WoodminProvider.java
14261
package app.bennsandoval.com.woodmin.data; import android.content.ContentProvider; import android.content.ContentUris; import android.content.ContentValues; import android.content.UriMatcher; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.net.Uri; /** * Created by Mackb...
apache-2.0
tudway/Qart
Src/src/Qart.Testing/ActionPipeline/Actions/AssertContentDiffAction.cs
2304
using Newtonsoft.Json.Linq; using Qart.Testing.Diff; using Qart.Testing.Framework; using Qart.Testing.Framework.Json; using System.Linq; namespace Qart.Testing.ActionPipeline.Actions { public class AssertContentDiffAction : IPipelineAction { private readonly string _baseFile; private readonly ...
apache-2.0
BigData-Abgabe/abgabe
Abgabe04/Aufgabe2/bigdata/ThreeLetterCodeMapper.java
3157
package bigdata; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.Path; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapreduce.Mapper; import org.apache.hadoop.mapreduce.Mapper.Context; import org.apache.hadoop.mapreduce.Counter; import org.apache.hadoop.mapreduce.Job; im...
apache-2.0
ricardojsanchez/nanite-deployer
init.rb
97
register Rabbit.new register Monit.new register Initd.new register Deployer.new #register God.new
apache-2.0
g8os/core0
apps/core0/bootstrap/network/protocol.go
323
package network import "fmt" type Protocol interface { Configure(mgr NetworkManager, inf string) error } var ( protocols = map[string]Protocol{} ) func GetProtocol(name string) (Protocol, error) { if proto, ok := protocols[name]; ok { return proto, nil } return nil, fmt.Errorf("unknown protocol '%s'", name)...
apache-2.0
uronce-cc/alluxio
shell/src/main/java/alluxio/shell/command/ChownCommand.java
2834
/* * The Alluxio Open Foundation licenses this work under the Apache License, version 2.0 * (the "License"). You may not use this work except in compliance with the License, which is * available at www.apache.org/licenses/LICENSE-2.0 * * This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI...
apache-2.0
joewalnes/idea-community
plugins/groovy/src/org/jetbrains/plugins/groovy/lang/psi/impl/statements/expressions/types/GrInstanceofExpressionImpl.java
2031
/* * 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...
apache-2.0
m3db/m3db
src/query/generated/mocks/generate.go
3541
// Copyright (c) 2018 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge...
apache-2.0
open-orchestra/open-orchestra-theme-bundle
ThemeBundle/Tests/Form/Type/ThemeChoiceTypeTest.php
1433
<?php namespace OpenOrchestra\ThemeBundle\Tests\Form\Type; use OpenOrchestra\BaseBundle\Tests\AbstractTest\AbstractBaseTestCase; use OpenOrchestra\ThemeBundle\Form\Type\ThemeChoiceType; use Phake; /** * ThemeChoiceTypeTest class */ class ThemeChoiceTypeTest extends AbstractBaseTestCase { protected $themeChoice...
apache-2.0
SE-Group1/HookedUp
HookedUp/api/company/posts/index.php
483
<?php require $_SERVER['DOCUMENT_ROOT'] . '/api/tools.php'; $method = htmlspecialchars($_SERVER['REQUEST_METHOD']); switch ($method) { case 'GET': if (!$companyId = getGETSafe('companyId')) { failure("companyId required arg"); } $query = "SELECT...
apache-2.0
wimsymons/sling
testing/http/clients/src/main/java/org/apache/sling/testing/clients/html/MicrodataClient.java
3281
/******************************************************************************* * 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 f...
apache-2.0
wlod4r/playground
src/test/java/com/gft/mlwz/AppTest.java
640
package com.gft.mlwz; 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 */ public AppTest( St...
apache-2.0
Azure/azure-mobile-apps-net-client
e2etests/DeviceTests.Shared/Helpers/Models/OfflineReadyItem.cs
2749
// ---------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. // ---------------------------------------------------------------------------- using Microsoft.WindowsAzure.MobileServices; using Newtonsoft.Json; using System; using System.Gl...
apache-2.0
slothOn/whuassistant
Whuassist1/src/com/example/whuassist/test/NewsParserTest.java
909
package com.example.whuassist.test; import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.InputStreamReader; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; import org.jsoup.select.Elements; public class NewsParserTest { public st...
apache-2.0
torakiki/sambox
src/main/java/org/sejda/sambox/pdmodel/interactive/annotation/PDAnnotationLink.java
7853
/* * 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
Richard-Linsdale/createmesh
src/main/java/uk/theretiredprogrammer/createmesh/ObjWriter.java
7455
/* * Copyright 2015-2017 Richard Linsdale. * * 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...
apache-2.0
sonarwhal/sonar
packages/utils/src/misc/normalize-includes.ts
288
import { normalizeString } from './normalize-string'; /** Return if normalized `source` string includes normalized `included` string. */ export const normalizeIncludes = (source: string, included: string) => { return normalizeString(source)!.includes(normalizeString(included)!); };
apache-2.0
google-research/google-research
homophonous_logography/neural/transformer_model.py
21315
# coding=utf-8 # Copyright 2022 The Google Research 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 applicab...
apache-2.0
ctr-lang/ctr
__tests__/cases-api/basic/variable/special/private-variable-set.js
397
const CTR = require('ctr').js; const ctr = new CTR(); ctr.setOption({ privateVariable: true }); ctr.setVar({ width: '99999px', height: '99999px', background: 'red' }); ctr.create('.test', { $$: { width: '200px', height: '400px' }, width: '_$width$_', height: '_$height$_', background: '$ba...
apache-2.0
tectronics/proteocloud
src/main/java/com/compomics/proteocloud/ui/DenovoResultPanel.java
39748
package com.compomics.proteocloud.ui; import javax.swing.*; import com.compomics.proteocloud.db.accessor.Pepnovohit; import com.compomics.proteocloud.io.MascotGenericFile; import com.compomics.proteocloud.model.DenovoHitSet; import com.compomics.proteocloud.model.DenovoSearchResult; import com.compomics.prote...
apache-2.0
yig/SubdivisionSkinning
lib/Timing.hpp
295
#ifndef __Timing_hpp__ #define __Timing_hpp__ void tic( const char* label = 0 ) ; void toc( const char* label = 0 ) ; struct Tick { Tick( const char* alabel = 0 ) : label( alabel ) { tic( label ); } ~Tick() { toc( label ); } const char* label; }; #endif /* __Timing_hpp__ */
apache-2.0
scootdev/scoot
config/scootconfig/saga_log_modules.go
1288
package scootconfig import ( "time" "github.com/twitter/scoot/ice" "github.com/twitter/scoot/saga" "github.com/twitter/scoot/saga/sagalogs" ) // InMemorySagaLog struct is used by goice to create an InMemory instance // of the SagaLog interface. type InMemorySagaLogConfig struct { Type string Expiratio...
apache-2.0
Budlee/Bonfire-Google_Authenticator
users/libraries/auth.php
36378
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); /** * Bonfire * * An open source project to allow developers get a jumpstart their development of CodeIgniter applications * * @package Bonfire * @author Bonfire Dev Team * @copyright Copyright (c) 2011 - 2013, Bonfire Dev Team * @lic...
apache-2.0
adamrduffy/trinidad-1.0.x
trinidad-api/src/main/java/org/apache/myfaces/trinidad/event/SetActionListener.java
3966
/* * 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")...
apache-2.0
dbflute-test/dbflute-test-dbms-oracle
src/main/java/org/docksidestage/oracle/dbflute/cbean/nss/SynonymProductNss.java
1244
package org.docksidestage.oracle.dbflute.cbean.nss; import org.docksidestage.oracle.dbflute.cbean.cq.SynonymProductCQ; /** * The nest select set-upper of SYNONYM_PRODUCT. * @author oracleman */ public class SynonymProductNss { // ================================================================================...
apache-2.0
Simplement/mailqueue
src/Bridges/SymfonyConsole/MailSendCommand.php
2299
<?php namespace Simplement\Bridges\SymfonyConsole; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputArgument; /** * Descri...
apache-2.0
revdaalex/learn_java
chapter3/TicTacToe/src/main/java/ru/revdaalex/tictactoe/model/Board.java
1998
package ru.revdaalex.tictactoe.model; import java.util.ArrayList; import java.util.List; /** * Game board. * Created by revdaalex on 09.12.2016. */ public class Board { List<Point> availablePoints; int[][] board = new int[3][3]; public Board() { } public boolean isWin() { return (XWin...
apache-2.0
blackcathacker/kc.preclean
coeus-code/src/main/java/org/kuali/kra/irb/personnel/ProtocolPersonRoleValuesFinder.java
3593
/* * Copyright 2005-2014 The Kuali Foundation * * Licensed under the Educational Community License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.osedu.org/licenses/ECL-2.0 * * Unless required by appli...
apache-2.0
Kirtish/spring-data-jpa
src/main/java/com/rsoft/app/services/impl/RoleServiceImpl.java
1154
package com.rsoft.app.services.impl; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Propagation; import org.springframework.tra...
apache-2.0
hpejcinovic-pivotal/chaos-lemur
src/test/java/io/pivotal/strepsirrhini/chaoslemur/infrastructure/OpenStackInfrastructureTest.java
2079
/* * Copyright 2014-2016 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...
apache-2.0
ONLYOFFICE/CommunityServer
redistributable/docusign-csharp-client/DocuSign.eSign/Model/Folder.cs
11773
/* * DocuSign REST API * * The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. * * OpenAPI spec version: v2 * Contact: devcenter@docusign.com * Generated by: https://github.com/swagger-api/swagger-codegen.git */ using System; using System....
apache-2.0
TomGrill/gdx-firebase
desktop/src/de/tomgrill/gdxfirebase/desktop/auth/DesktopTask.java
909
package de.tomgrill.gdxfirebase.desktop.auth; import de.tomgrill.gdxfirebase.core.auth.GdxFirebaseException; import de.tomgrill.gdxfirebase.core.auth.OnCompleteListener; import de.tomgrill.gdxfirebase.core.auth.Task; public class DesktopTask<TResult> implements Task<TResult> { private final boolean complete; ...
apache-2.0
evenjn/yarn
src/main/java/org/github/evenjn/yarn/IteratorMap.java
1550
/** * * Copyright 2017 Marco Trevisan * * 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
yahoo/pulsar
pulsar-broker/src/test/java/org/apache/pulsar/compaction/CompactorTest.java
8866
/** * 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
hmrs-cr/android-wear-gopro-remote
libcommon/src/main/java/com/hmsoft/libcommon/general/Logger.java
5789
/* * Copyright (C) 2014 Mauricio Rodriguez (ranametal@users.sf.net) * * 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 req...
apache-2.0
aljoscha/flink
flink-table/flink-table-planner-blink/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/stream/StreamExecSortLimit.java
2740
/* * 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
dhutchis/accumulo
server/base/src/main/java/org/apache/accumulo/server/util/DeleteZooInstance.java
3085
/* * 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
consulo/consulo-java
java-analysis-impl/src/main/java/com/intellij/codeInsight/guess/impl/GuessManagerImpl.java
22951
// 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.codeInsight.guess.impl; import com.intellij.codeInsight.guess.GuessManager; import com.intellij.codeInspection.dataFlow.*; import com.intellij.codeInspection...
apache-2.0
yinhongbo/URAS
urasd/sync/config.go
892
package syncSvc import ( "encoding/json" "fmt" ) func Init() *SyncSvc { syncSvc := &SyncSvc{} syncSvc.SvcList = SvcList{} syncSvc.exitChan = struct{}{} return syncSvc } func (this *SyncSvc) Start() { this.getConfigFromApi() this.parseConfig() fmt.Printf("%#v", this.SvcList["test"]) } func (this *SyncSvc)...
apache-2.0
oba2cat3/GCTest
GCTest/gen/com/gc_test/BuildConfig.java
153
/** Automatically generated file. DO NOT MODIFY */ package com.gc_test; public final class BuildConfig { public final static boolean DEBUG = true; }
apache-2.0
xiaomozhang/druid
druid-1.0.9/src/test/java/com/alibaba/druid/bvt/sql/mysql/MySqlCreateTableTest1.java
2316
/* * Copyright 1999-2011 Alibaba Group Holding 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 applica...
apache-2.0
vbartosik/pynet_test
parser.py
990
from ciscoconfparse import CiscoConfParse cfg = CiscoConfParse('cisco.cfg') crypto = cfg.find_objects(r"^crypto map CRYPTO") print("Task 1: Find all of the crypto map entries in the file (lines that begin with 'crypto map CRYPTO') and for each crypto map entry print out its children:\n") for map in crypto: prin...
apache-2.0
mjn19172/Savu
savu/plugins/driver/gpu_plugin.py
2763
# Copyright 2014 Diamond Light Source 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 t...
apache-2.0
shsdev/archiventory
src/main/java/eu/scape_project/archiventory/utils/IOUtils.java
6145
/* * Copyright 2012 The SCAPE Project Consortium. * * 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
jdufner/microservice
gateway/src/main/java/de/jdufner/microservice/gateway/SimpleFilter.java
1544
/* * Copyright 2016, Jürgen Dufner * * 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 ...
apache-2.0
aaabhilash97/google-python-exercises
basic/mimic.py
2416
#!/usr/bin/python -tt # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ """Mimic pyquick exercise -- optional extra exercise. Google's Python Class Read in the ...
apache-2.0
felliott/scrapi
scrapi/migrations.py
4163
import copy import logging from scrapi import tasks from scrapi import settings from scrapi.linter import RawDocument from scrapi.events import log_to_sentry from scrapi.processing import get_processor logger = logging.getLogger() @tasks.task_autoretry(default_retry_delay=30, max_retries=5) def rename(docs, target...
apache-2.0
andyredhead/graph-connection
src/test/java/net/sf/moksha/graph/access/connectors/neo4j/TestNeo4jQueryComponentsToCypherConverter.java
19105
package net.sf.moksha.graph.access.connectors.neo4j; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Vector; import java.util.concurrent.Concurren...
apache-2.0
loverdos/thrift3r
src/main/scala/com/ckkloverdos/thrift3r/BinReprType.java
1858
/* * Copyright (c) 2013 Christos KK Loverdos * * 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
DataDog/omnibus-software
config/software/futures.rb
317
name "futures" default_version "2.2.0" dependency "python" dependency "pip" build do license "Python-2.0" license_file "https://raw.githubusercontent.com/agronholm/pythonfutures/master/LICENSE" pip "install --install-option=\"--install-scripts=#{windows_safe_path(install_dir)}/bin\" #{name}==#{version}" end
apache-2.0
aws/aws-sdk-java
aws-java-sdk-iotthingsgraph/src/main/java/com/amazonaws/services/iotthingsgraph/model/transform/SystemTemplateSummaryMarshaller.java
2969
/* * 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
viraintel/OWASP-Nettacker
lib/language/messages_fr.py
17004
#!/usr/bin/env python # -*- coding: utf-8 -*- def all_messages(): """ keep all messages in fr Returns: all messages in JSON """ return \ { "scan_started": "Moteur Nettacker a commencé ...", "options": "python nettacker.py [options]", "help_menu"...
apache-2.0
geomajas/geomajas-project-graphics
graphics/src/main/java/org/geomajas/graphics/client/action/BringToFrontAction.java
1196
/* * This is part of Geomajas, a GIS framework, http://www.geomajas.org/. * * Copyright 2008-2015 Geosparc nv, http://www.geosparc.com/, Belgium. * * The program is available in open source according to the Apache * License, Version 2.0. All contributions in this program are covered * by the Geomajas Cont...
apache-2.0