id stringlengths 64 64 | content stringlengths 500 100k | language stringclasses 29
values | path stringlengths 4 333 | repo stringlengths 5 116 | license stringclasses 15
values | size int64 500 100k | lines int64 26 8.06k | source stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|
92f3e3eab161b87ca70a10a75621593d12e192873dbb4b57055cbbbd37e5d23a | // Copyright (c) 2017 Ubisoft Entertainment
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable la... | C# | Sharpmake/Options.AndroidMakefile.cs | nidoizo/Sharpmake | apache-2.0 | 3,276 | 116 | codeparrot/github-code |
175259273b8e2d24e0e7d926b3348cce7e178937af039d23e9ff09f4e00f53a5 | /*
* Copyright 2018 The Data Transfer Project 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 applicab... | Java | portability-transfer/src/main/java/org/datatransferproject/transfer/WorkerExtensionContext.java | google/data-transfer-project | apache-2.0 | 3,196 | 99 | codeparrot/github-code |
de73d6216d0a1ef081d886ac922440e1fc8e90488ace41025e654b7edfd48f11 | #!/bin/bash
#
# This delivers the swift-storage upgrade script to be invoked as part of the tripleo
# major upgrade workflow.
#
set -eu
UPGRADE_SCRIPT=/root/tripleo_upgrade_node.sh
cat > $UPGRADE_SCRIPT << ENDOFCAT
### DO NOT MODIFY THIS FILE
### This file is automatically delivered to the swift-storage nodes as part... | Shell | extraconfig/tasks/major_upgrade_object_storage.sh | michaelhenkel/tht | apache-2.0 | 1,694 | 54 | codeparrot/github-code |
57ddda5e9a6b8e121421aff322329a73cc18dd6a93c01a4866205f606da44b9f | /*
* 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 ... | Java | src/test/java/TestHTTPSource.java | mrtheb/flume-forgives | apache-2.0 | 18,860 | 558 | codeparrot/github-code |
f29a813f763cbc3804f2c566a0151a315fb88aaf6757a7f7eb2e9f24eaed47e0 | /*
* Copyright (c) 2010-2013 Evolveum
*
* 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... | Java | model/notifications-impl/src/main/java/com/evolveum/midpoint/notifications/impl/NotificationManagerImpl.java | arnost-starosta/midpoint | apache-2.0 | 8,364 | 195 | codeparrot/github-code |
e6cf3c259508f1a6562b120e29b812996fd12844a788233e1e91aeb6905e141a | /*
* Copyright 1999-2010 Luca Garulli (l.garulli--at--orientechnologies.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
... | Java | object/src/main/java/com/orientechnologies/orient/object/db/graph/OGraphVertex.java | MaDaPHaKa/Orient-object | apache-2.0 | 14,760 | 474 | codeparrot/github-code |
82fc5cd49f488754c776f6b13afe9ba12c042c62f037e94e53320c6ee75f01bb | /*
* 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... | Java | plugins/groovy/src/org/jetbrains/plugins/groovy/lang/psi/impl/statements/GrConstructorInvocationImpl.java | jexp/idea2 | apache-2.0 | 6,166 | 176 | codeparrot/github-code |
dc7a84d7e93aa34dd56de62185b21ea86f4135907058f6c44e5924976d154141 | package org.beigesoft.uml.factory.awt;
import java.awt.Frame;
import java.awt.Graphics2D;
import java.awt.Image;
import org.beigesoft.graphic.pojo.SettingsDraw;
import org.beigesoft.graphic.pojo.Point2D;
import org.beigesoft.graphic.service.ISrvDraw;
import org.beigesoft.service.ISrvI18n;
import org.beigesoft.ui.serv... | Java | beige-uml-swing/src/main/java/org/beigesoft/uml/factory/awt/FactoryAsmTextLight.java | demidenko05/beige-uml | apache-2.0 | 3,490 | 82 | codeparrot/github-code |
d0f2fe0f8e3f671b0d496914d46a06f1bf46e808bdf1b6475ba4ab712af70a18 | /**
* Copyright (c) 2008-2011, http://www.snakeyaml.org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | Java | src/test/java/org/yaml/snakeyaml/issues/issue64/MethodDesc.java | AssafMashiah/assafmashiah-yaml | apache-2.0 | 1,240 | 49 | codeparrot/github-code |
af0ac78be9b373c7beab21db7e3cf9f2c370d527b764ad3c1fc4ff3aec3d8d9e |
package com.xiongyingqi.util;
public class Base64 {
/* ******** P U B L I C F I E L D S ******** */
public final static int NO_OPTIONS = 0;
public final static int ENCODE = 1;
public final static int DECODE = 0;
public final static int GZIP = 2;
public final static... | Java | common_helper/src/main/java/com/xiongyingqi/util/Base64.java | blademainer/common_utils | apache-2.0 | 30,567 | 838 | codeparrot/github-code |
b9c6359d112a235f08058438ac297c52a71a7ef57f95310aa113f0500d0b5682 | const path = require("path");
const webpack = require("webpack");
const HtmlWebpackPlugin = require('html-webpack-plugin');
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const CopyWebpackPlugin = require('copy-webpack-plugin');
var babelOptions = {
presets: [
["@babel/preset-env", {
... | JavaScript | templates/Content/webpack.config.js | MangelMaxime/Fulma | apache-2.0 | 3,089 | 105 | codeparrot/github-code |
ebc0b17965e72613e18ecb4e843171d918176c498180e3bc89fd4f9ac54748a2 | package com.twitter.finagle.netty4.param
import com.twitter.finagle.netty4.param.WorkerPool.toEventLoopGroup
import com.twitter.finagle.stats.FinagleStatsReceiver
import com.twitter.finagle.Stack
import com.twitter.finagle.netty4.{numWorkers, useNativeEpoll}
import com.twitter.finagle.util.BlockingTimeTrackingThreadFa... | Scala | finagle-netty4/src/main/scala/com/twitter/finagle/netty4/param/WorkerPool.scala | twitter/finagle | apache-2.0 | 3,490 | 80 | codeparrot/github-code |
ade4688eabec4e5820dcad876e9c7a0edabc0ffe2b72cb477b66e92c8f56a19c | /**
* Copyright 2015, deepsense.io
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | Scala | deeplang/src/it/scala/io/deepsense/deeplang/doperables/DatetimeDecomposerIntegSpec.scala | deepsense-io/seahorse-workflow-executor | apache-2.0 | 10,271 | 271 | codeparrot/github-code |
bddea33738ec774ad9195efe3845e719449e711b5aa462d880f2b46fdd1473eb | #
# 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 or... | Python | python/googledatastore/local_cloud_datastore.py | pcostell/google-cloud-datastore | apache-2.0 | 7,713 | 239 | codeparrot/github-code |
a8ef90b2b5fb1f963c693f6d3ba94cb45abba72912f00220e823d42d9770e82b | /*
* Copyright 2011 JBoss 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 i... | Java | dtgov-war/src/test/java/org/overlord/sramp/governance/workflow/WorkflowFactoryTest.java | Governance/dtgov | apache-2.0 | 2,140 | 57 | codeparrot/github-code |
526383dec260a87c28015d67e105cd9a230ace9ffe743cfa01b4d5c7970e9a81 | package ODEsolver.interpreter;
//-----------------------------------------------------------------------------
// Written 2002 by Juergen Arndt.
//
//
// File Ex5.java
// Use semantische funktion fuer "-"
//-----------------------------------------------------------------------------
class Ex5 implements SemFuncPoin... | Java | ODEsolver/interpreter/Ex5.java | JPLeRouzic/PhysioSim | apache-2.0 | 852 | 41 | codeparrot/github-code |
8e3cec8e3d2e4288ec44325c8ef4ebe711cc790bac1971bf1f14e87d3a463566 | /**
* Copyright 2017 Pivotal Software, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | Java | src/main/java/org/springframework/metrics/instrument/binder/LogbackMetrics.java | checketts/spring-metrics | apache-2.0 | 2,719 | 74 | codeparrot/github-code |
79de774edffecd6da561590e0b18dd4aeb14012af9ff29168960ba8792edb3cc | /***************************************************************************
Copyright 2012 Emily Estes
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.o... | Java | src/main/java/net/metanotion/web/examples/FileServerSessionsApp.java | emily-e/webframework | apache-2.0 | 4,140 | 82 | codeparrot/github-code |
e0d85e1c14468dfab37f4fac19f5c07e9ac16f4df4474aaa5542df9b286c388d |
#include <assert.h>
#include <sys/time.h>
#include <sstream>
#include "utils.h"
#include "byte_stream.h"
#include "debug_utils.h"
#include "svr_reactor_facade.h"
#include "global_consts.h"
#include "config_loader.h"
#include "service_dispatcher.h"
#include "service_container.h"
#include "service_loader.h"
#include "se... | C++ | netframework/netplatform/netio2_with_cont/src/app.cpp | kuroroyoung/c2c_proj | apache-2.0 | 15,262 | 522 | codeparrot/github-code |
407fd0ae7aebf767319b6894bc3b08370fead4def15f6dd0c57a50e8f363172d | /*
* Copyright (C) 2012-2014 Open Source Robotics 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
*
* Unless required by... | C++ | gazebo/rendering/deferred_shading/ListenerFactoryLogic.hh | arpg/Gazebo | apache-2.0 | 2,139 | 64 | codeparrot/github-code |
a9c581f384c877a5dc6159d69ba3e5a5496c49aa3bb7b8559f33f9b6df8bc162 | /*
* Copyright 2006-2007 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... | Java | src/main/java/org/openspaces/core/executor/internal/ExecutorMetaDataProvider.java | Gigaspaces/xap-openspaces | apache-2.0 | 3,362 | 98 | codeparrot/github-code |
31799f833723fe667b72f493c54d11917192e51ef753d3a369ceda59510bd582 | package com.nvanbenschoten.motion;
import android.content.Context;
import android.hardware.SensorEvent;
import android.hardware.SensorManager;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.annotation.VisibleForTesting;
import android.view.Surface;
import ... | Java | motion/src/main/java/com/nvanbenschoten/motion/SensorInterpreter.java | nvanbenschoten/motion | apache-2.0 | 7,277 | 207 | codeparrot/github-code |
eeb53e5e21ab0ad8ab7aadbbd79546d36539bdaa79547130aff519e718002f2f | /*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2017 Serge Rider (serge@jkiss.org)
* Copyright (C) 2011-2012 Eugene Fradkin (eugene.fradkin@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... | Java | plugins/org.jkiss.dbeaver.ext.oracle/src/org/jkiss/dbeaver/ext/oracle/tools/OracleScriptExecuteWizard.java | ruspl-afed/dbeaver | apache-2.0 | 4,679 | 118 | codeparrot/github-code |
e06972371cc6116448f98fed92633eb514d8b48062339ce329b956b7b2a7bd4e | /*
* Copyright 2016 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 ... | Java | src/main/java/com/google/schemaorg/core/Painting.java | google/schemaorg-java | apache-2.0 | 24,692 | 787 | codeparrot/github-code |
85e7121987496a5774e79cbf732f47f3b507e2f75b4aa7dba65c16419d3a8423 | /**
* Copyright 2018 The AMP HTML 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 require... | TypeScript | src/transform-img/position-animation.ts | ampproject/animations | apache-2.0 | 3,444 | 100 | codeparrot/github-code |
af6c6831289cba3840c119f6885ad7a2eeeb37bcd313032b0f2ad9402cd5b1c5 | package com.peiliping.web.server.subscriber;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
impor... | Java | web-server/src/main/java/com/peiliping/web/server/subscriber/SubscriberFilter.java | yifzhang/web | apache-2.0 | 1,874 | 57 | codeparrot/github-code |
adc6b6d251cfa8504f414fd480fe11538a43da011b35937e6d53968ca279c753 | // Copyright 2017 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 to in w... | Java | src/codeu/chat/client/commandline/Chat.java | lee-tammy/CodeU-Summer-2017 | apache-2.0 | 33,418 | 936 | codeparrot/github-code |
10d6852e3c86d9abfaa964b1e01ee19ca61b53530fc2f8016f36955a172644bb | /**
* Copyright 2015 The AMP HTML 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 require... | JavaScript | test/functional/test-viewport.js | devjsun/amphtml | apache-2.0 | 43,477 | 1,284 | codeparrot/github-code |
a4bdf38742ccb67cde04b901e7eb6c82005493c8751fe072b017d7bb0ae0e41c | <!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>ConnectionReadyEvent | mongodb</title>
<meta name="description" content="Documentation for mongodb">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link re... | HTML | docs/4.0/classes/connectionreadyevent.html | mongodb/node-mongodb-native | apache-2.0 | 12,774 | 270 | codeparrot/github-code |
edf56d135ad96d903aff87146cb90063a28d562ca4643193776b1b1f199c0ddb | /*
* 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 ... | Java | server/base/src/test/java/org/apache/accumulo/server/security/handler/ZKAuthenticatorTest.java | mikewalch/accumulo | apache-2.0 | 3,429 | 91 | codeparrot/github-code |
44ef6d152656a01542c85d341f5477eea7476ab4e455c5ef3037e43af29d762a | # coding=utf-8
# Copyright 2016 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)
import logging
from... | Python | src/python/pants/engine/isolated_process.py | UnrememberMe/pants | apache-2.0 | 2,261 | 70 | codeparrot/github-code |
728886459d93a459a58bd282ad3e987d55b15e1901d3bc98b99c6c5b4ee62703 | 'use strict';
/**
* Requirements
* @ignore
*/
const Filter = require('./Filter.js').Filter;
const PathesConfiguration = require('../../model/configuration/PathesConfiguration.js').PathesConfiguration;
const assertParameter = require('../../utils/assert.js').assertParameter;
const pathes = require('../../utils/pathe... | JavaScript | source/nunjucks/filter/SvgViewBoxFilter.js | entoj/entoj-system | apache-2.0 | 2,791 | 122 | codeparrot/github-code |
054a54ca60981546e57793c3a8888cda479e165c8ab0bd0d4ee6eaf029389db6 | ## Adding ./getresults to the Python path so that the modules in folder can be imported
import sys
sys.path.insert(0, './getresults')
import datetime
from flightsearch import flightsearch, flightresult
import os
import uuid
import time
from pprint import pprint
def main():
flyfrom = 'YYZ' #input("Enter departure ... | Python | cheapflights/main.py | brahul90/cheapflights | apache-2.0 | 1,721 | 52 | codeparrot/github-code |
97ac2a4d33628ce264181ce76228b998213057fa64c2b6c4fe88bd3f34c9b50f | package org.arbeitspferde.groningen;
import static org.easymock.EasyMock.anyBoolean;
import static org.easymock.EasyMock.anyObject;
import static org.easymock.EasyMock.createMock;
import static org.easymock.EasyMock.createNiceMock;
import static org.easymock.EasyMock.eq;
import static org.easymock.EasyMock.expect;
imp... | Java | src/test/java/org/arbeitspferde/groningen/PipelineRestorerTest.java | matttproud/groningen | apache-2.0 | 2,709 | 69 | codeparrot/github-code |
312187ee6101b517dd6b9135155e1ed0ab06de7e6fb52feb321a7fc6deef9777 | /*
Copyright 2016, 2017 Institut National de la Recherche Agronomique
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... | Java | src/main/java/fr/inra/maiage/bibliome/util/pattern/tabular/expression/DefaultMatchRegexp.java | Bibliome/bibliome-java-utils | apache-2.0 | 1,141 | 37 | codeparrot/github-code |
469522a1f54a51cefe9b1585eb2dd51cc0eacd33af73a8bb3a5837ded2a4915c | package csdn.shimiso.eim.activity.im;
import java.util.Calendar;
import java.util.Collections;
import java.util.List;
import org.jivesoftware.smack.Chat;
import org.jivesoftware.smack.packet.Message;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import andro... | Java | src/csdn/shimiso/eim/activity/im/AChatActivity.java | ice-coffee/EIM | apache-2.0 | 3,876 | 147 | codeparrot/github-code |
e77146dce2b52ec4e62310b071e5a5508e6edf0a2d6dab2a100d9d0d15fc9099 | # 从SparkPi图解Spark core
----------------
@玄畅
2015.1.30
spark core是spark的核心库,执行最基础的RDD操作。通过本文,从万年pi入手,逐层分解spark core整个运行过程,一窥其貌。
文字是辅助阅读的面包屑。
先不管那么多名词,一路看下去,理脉络。
## 万年Pi
这个代码做了以下几件事:
1. 初始化配置`SparkConf`
2. 初始化上下文`SparkContext`
3. 准备数据,从1~N, 分slices段,用ParallelCollectionRDD表示
4. map变换,使用大括号里的函数计算ParallelColle... | Markdown | spark_core_getstart_from_pi.markdown | junwucs/spark_study | apache-2.0 | 9,498 | 268 | codeparrot/github-code |
b7628a22f164706e2880391891eee22d373eb8ec2eb0e66b02189afe51770635 | package org.apache.lucene.analysis;
/**
* 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, Ve... | Java | lucene-2.9.4/src/java/org/apache/lucene/analysis/Token.java | Overruler/retired-apache-sources | apache-2.0 | 31,174 | 881 | codeparrot/github-code |
d48bb384d540c97d977fa13b40570f3b1e31901de2da5ceef230306de033c8d7 | /*
* 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 ... | Scala | samza-hdfs/src/test/scala/org/apache/samza/system/hdfs/TestHdfsSystemProducerTestSuite.scala | nickpan47/samza | apache-2.0 | 11,638 | 353 | codeparrot/github-code |
2be75ee04e81ccde170df430b7b02602f5c0447b7bb53e50d1039669fe4a4354 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using System.ComponentModel;
using Azure.Core;
namespace Azure.Security.KeyVault.Administration
{
/// <summary>
/// A scope of the role assignment.
/// </summary>
public readonly struct RoleAs... | C# | sdk/keyvault/Azure.Security.KeyVault.Administration/src/RoleAssignmentScope.cs | stankovski/azure-sdk-for-net | apache-2.0 | 4,098 | 97 | codeparrot/github-code |
6b3ced5117898cc8b17e6047ce94d9717e67a94d9cf1222de8417a1d85c33b3b | using System;
namespace Template10.Mvvm
{
// http://codepaste.net/jgxazh
using System.Diagnostics;
// DOCS: https://github.com/Windows-XAML/Template10/wiki/Docs-%7C-MVVM
public class DelegateCommand : System.Windows.Input.ICommand
{
private readonly Action _execute;
private readon... | C# | Template10Library/Mvvm/DelegateCommand.cs | gabrielrainha/Template10 | apache-2.0 | 2,404 | 84 | codeparrot/github-code |
694a00edca07799ac1fc85e0946daada2a7cae1b8a5245388fe9469a8a2fd31b | /*
* Copyright 2000-2013 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... | Java | modules/base/lang-impl/src/main/java/com/intellij/psi/impl/source/resolve/reference/impl/providers/FileReferenceCompletionImpl.java | consulo/consulo | apache-2.0 | 4,888 | 126 | codeparrot/github-code |
7b6e6bc59426a0f45eaa457cbbb080dd13165a72ca41dfda75eaf62c7a6466e9 | ////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... | C++ | arangod/RestHandler/RestJobHandler.cpp | fceller/arangodb | apache-2.0 | 8,032 | 269 | codeparrot/github-code |
d7641df5f408c4829e043b6ac72a2bc0dafcf618a8fc4bac5aee5aeab6133f2e | /**
* Copyright 2013 DuraSpace, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | Java | fcrepo-kernel/src/main/java/org/fcrepo/kernel/rdf/impl/FixityRdfContext.java | barmintor/fcrepo4 | apache-2.0 | 4,793 | 110 | codeparrot/github-code |
d3fa81790fd0ad435d11a53538301f04bce4d4836b960754813cec83f1a72335 | /*
* 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 ... | Java | runners/spark/src/main/java/org/apache/beam/runners/spark/coders/BeamSparkRunnerRegistrator.java | axbaretto/beam | apache-2.0 | 3,355 | 78 | codeparrot/github-code |
c8a6e9869f9b8b2ad25008aba5f083124f73241e6d297112203883310d3094fa | "use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... | JavaScript | AngularCommons/app/Components/heroes-list/heroe-list.component.js | llarreta/larretasources | apache-2.0 | 2,759 | 69 | codeparrot/github-code |
770389ec12a9cd273ee82db2293099df32cdff1cfff1feac36a96ddfe2be6b0b | /* Copyright 2020 Telstra Open Source
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | Java | src-java/base-topology/base-storm-topology/src/main/java/org/openkilda/wfm/share/zk/ZooKeeperBolt.java | telstra/open-kilda | apache-2.0 | 3,814 | 106 | codeparrot/github-code |
717f5660d7fc19d07f9a02eb5767f2bbc2bcb3e309f12e6308862c42102fe839 | /*
* Copyright (C) 2015 University of Oregon
*
* You may distribute under the terms of either the GNU General Public
* License or the Apache License, as specified in the LICENSE file.
*
* For more information, see the LICENSE file.
*/
package vnmr.bo;
import java.awt.*;
import java.util.*;
import java.awt.ev... | Java | src/vnmrj/src/vnmr/bo/VTabPage.java | OpenVnmrJ/OpenVnmrJ | apache-2.0 | 1,590 | 65 | codeparrot/github-code |
ecdb05d17aedb520cb122dd71ec92728849a87328505fcb16e42e6c45edeb5d4 | var express = require('express');
var https = require('https');
var http = require('http');
var url = require('url');
var bodyParser = require('body-parser');
var request = require('request') ;
//var publicRouter = express.Router();
module.exports = function (publicRouter,vcapServices) {
publicRouter.use(bod... | JavaScript | routes/publicRouter.js | giladm/mcedemo | apache-2.0 | 7,077 | 191 | codeparrot/github-code |
7a54473597e81974381c2cd0bc10bb0a00c748d7231b8d0f91d606fd28588f01 | <?php
namespace fhu\CrudFilter\Model\BindType;
class Direct extends AbstractBindType
{
/**
* @param string $name
* @param string $value
* @return string
*/
public function getSql($name, $value)
{
return "'{$value}'";
}
/**
* @param string $name
* @param string... | PHP | Model/BindType/Direct.php | fernandohu/CrudFilter | apache-2.0 | 622 | 35 | codeparrot/github-code |
145b02181bb2532be35bbdea563a8a56baf71bc05a83d1f0fd2a035522528ea5 | /*
* Copyright (C) 2013 salesforce.com, 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 ... | Java | aura-impl/src/test/java/org/auraframework/impl/root/parser/handler/BaseAccessAttributeTest.java | TribeMedia/aura | apache-2.0 | 26,147 | 753 | codeparrot/github-code |
fadfca243aff086c7b41c5836e6458425f1143ca7b5d162fd6c9f819042c8cd9 | /*
* Copyright 2015 Twitter, 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 ... | C++ | heron/common/src/cpp/network/client.cpp | lucperkins/heron | apache-2.0 | 7,789 | 226 | codeparrot/github-code |
008d5f6ce91b6e9eabd3bc8b8cc8577e64eb8623cb915c00f73b830b1ce3eba7 | using ElmSharp;
using System;
using System.ComponentModel;
using Xamarin.Forms;
using Xamarin.Forms.Internals;
using Xamarin.Forms.Platform.Tizen;
using ZXing.Mobile;
using ZXing.Net.Mobile.Forms;
using ZXing.Net.Mobile.Forms.Tizen;
[assembly: ExportRenderer(typeof(ZXingBarcodeImageView), typeof(ZXingBarcodeImageViewR... | C# | ZXing.Net.Mobile.Forms/ZXingBarcodeImageViewRenderer.tizen.cs | Redth/ZXing.Net.Mobile | apache-2.0 | 2,358 | 89 | codeparrot/github-code |
bc803713ec8e18536cb38b38dc1c174b9c87a1d8eab04f119cb84112ffbc7366 | package org.lumongo.client.result;
import org.lumongo.cluster.message.Lumongo.GetNumberOfDocsResponse;
import org.lumongo.cluster.message.Lumongo.SegmentCountResponse;
import java.util.List;
public class GetNumberOfDocsResult extends Result {
private GetNumberOfDocsResponse getNumberOfDocsResponse;
public GetNum... | Java | lumongo-client/src/main/java/org/lumongo/client/result/GetNumberOfDocsResult.java | lumongo/lumongo | apache-2.0 | 1,460 | 52 | codeparrot/github-code |
b3bafcfa67b7c561d3a9f02fa7cceccb16bdf569111109847b9adef2ca3b421b | /*******************************************************************************
* Copyright 2016 Capital One Services, LLC and Bitwise, 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... | Java | hydrograph.engine/hydrograph.engine.transformation/src/test/java/hydrograph/engine/transformation/standardfunctions/StringFunctionTest.java | capitalone/Hydrograph | apache-2.0 | 2,774 | 73 | codeparrot/github-code |
15cb20207b1e2590e5e7a84f6001bc275d6a7446ea7c873b5da6722c11f871b3 | package endpoints
import akka.event.NoLogging
import akka.http.scaladsl.model.StatusCodes.OK
import akka.http.scaladsl.testkit.ScalatestRouteTest
import domain.codes.{CodesList, CodesListName}
import domain.errors.ErrorCode
import org.scalatest._
import org.scalatest.mock.MockitoSugar
import services.soap.LinkonGtsSal... | Scala | src/test/scala/endpoints/ConsumersCategoriesHttpEndpointSpec.scala | k0ner/micro-proxy | apache-2.0 | 1,753 | 56 | codeparrot/github-code |
6f9774521a53d0ae8acec6c90ab4004a5a772c6a4a769fa9a2d2c2d33b705c00 | /*
* Copyright 2016 CodiLime
*
* 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 writ... | C++ | src/ui/fileblobitem.cc | codilime/veles | apache-2.0 | 4,167 | 154 | codeparrot/github-code |
dd8483a590918bcf63ec278a048d74c33b66240d2d32712a8643ed212630e7fe | package org.jetbrains.plugins.scala
package codeInspection.cast
import com.intellij.codeInspection.ex.ProblemDescriptorImpl
import com.intellij.codeInspection.{ProblemHighlightType, ProblemsHolder}
import com.intellij.openapi.project.Project
import com.intellij.openapi.util.TextRange
import com.intellij.psi.PsiElement... | Scala | scala/scala-impl/src/org/jetbrains/plugins/scala/codeInspection/cast/ScalaRedundantCastInspection.scala | triplequote/intellij-scala | apache-2.0 | 2,063 | 55 | codeparrot/github-code |
3f5c715ae2efda2f1167c5a89c6016dbcc3f400090779ed6bd855db985de7209 | /*
* Copyright 2014-2019 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... | Java | aws-java-sdk-eks/src/main/java/com/amazonaws/services/eks/model/Certificate.java | jentfoo/aws-sdk-java | apache-2.0 | 5,125 | 144 | codeparrot/github-code |
1d9a13acba648e617c4f83a49d1e3bf40291e0baa7973676d97d86f23a29187f | #ifndef crypto_box_curve25519xsalsa20poly1305_H
#define crypto_box_curve25519xsalsa20poly1305_H
#include <stddef.h>
#include "export.h"
#ifdef __cplusplus
# if __GNUC__
# pragma GCC diagnostic ignored "-Wlong-long"
# endif
extern "C" {
#endif
#define crypto_box_curve25519xsalsa20poly1305_PUBLICKEYBYTES 32U
SODIUM_E... | C | platform/jni/include/sodium/crypto_box_curve25519xsalsa20poly1305.h | saschat/WLAN-Opp | apache-2.0 | 3,364 | 87 | codeparrot/github-code |
240ee924ee28a69697070d600857af2ab023cbf013ad34817e7c9be274f32ecc | import React from "react";
import { Link } from "react-router";
import Loader from "../../core/Loader";
import DataComponent from "../base/DataComponent";
import DataError from "../base/DataError";
import ResourceAction from "./../base/ResourceAction";
import history from "../../history";
/**
* @author Niklas Keller
... | JavaScript | src/js/components/notifications/NotificationDetail.js | coolcrowd/control-ui | apache-2.0 | 3,477 | 94 | codeparrot/github-code |
d95d21811337faff08655789aaf8146ccc788e241e152cc5cda46640d795e6c9 | /*
* Sakuli - Testing and Monitoring-Tool for Websites and common UIs.
*
* Copyright 2013 - 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
*
* ... | Java | src/integration-test/src/test/java/org/sakuli/integration/services/forwarder/gearman/GearmanTestCaseTemplateOutputBuilderIntegrationTest.java | ConSol/sakuli | apache-2.0 | 19,351 | 348 | codeparrot/github-code |
7b22ad96efcfa2db3806302aacde02c9bf480fb74449ef4d5d7bb818cce22464 | /**
* @license
* Copyright 2016 The Lovefield Project 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
... | JavaScript | gulpfile.js | arthurhsu/rdb-polyfill | apache-2.0 | 8,013 | 293 | codeparrot/github-code |
2feb2e802763cc3eefcb6ebd73ca0556ae011f9ac85c35bb94b6db24f7a0050e | /*
* 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... | Java | aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/model/transform/PasswordPolicyStaxUnmarshaller.java | dump247/aws-sdk-java | apache-2.0 | 5,283 | 137 | codeparrot/github-code |
19343173bc05faa075ad1e04663057eb727aef106f170ad936fd584b1ef9a014 | # _*_ coding: utf-8 _*_
# filename: pic.py
import csv
import numpy
import matplotlib.pyplot as plt
# 读取 house.csv 文件中价格和面积列
price, size = numpy.loadtxt('house.csv', delimiter='|', usecols=(1, 2), unpack=True)
print price
print size
plt.figure()
plt.subplot(211)
# plt.title("price")
plt.title("/ 10000RMB")
plt.hist(... | Python | shiyanlou_cs869/ershoufang_info/pic.py | tongxindao/shiyanlou | apache-2.0 | 678 | 41 | codeparrot/github-code |
a9f40885a634c004b01786f837fea38b95766476630bcd7c9b362e1f6dce2a8c | #include "param.h"
#include "tty.h"
#include "systm.h"
#include "conf.h"
#include "buf.h"
/*
* The actual structure of a clist block manipulated by
* getc and putc (mch.s)
*/
struct cblock {
struct cblock *c_next;
char c_info[CBSIZE];
};
struct cblock cfree[NCLIST];
struct cblock *cfreelist;
int cbad;
/*
* ... | C | f9_os/src/v6mini/prim.c | WarlockD/arm-cortex-v7-unix | apache-2.0 | 5,196 | 322 | codeparrot/github-code |
97d849268dcea15a51dd2db62f2b481883d7f8a7fc177e9e0bc73d55c754163c | /*
* 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... | Java | aws-java-sdk-logs/src/main/java/com/amazonaws/services/logs/model/transform/DescribeLogStreamsResultJsonUnmarshaller.java | dagnir/aws-sdk-java | apache-2.0 | 3,146 | 79 | codeparrot/github-code |
1078b4ab4ae4f3fd3073167500bb4818e0c0a678e018f5fb27c0537a4586c350 | #!python3
import requests
import yaml
import time
import enum
import sys
import re
import logging
import ssl
from requests.auth import HTTPDigestAuth
from requests.auth import HTTPBasicAuth
from lxml import etree as ET
from requests.packages.urllib3.exceptions import InsecureRequestWarning
from requests.adapters import... | Python | h3_py/h3.py | adam-miller/h3_py | apache-2.0 | 8,597 | 248 | codeparrot/github-code |
49f905c14778cf1cc4a6df9484a969644e48c6c75e58eb5f31636746e8e5157c | 'use strict';
const _ = require('lodash');
const config = require('../../../common/config');
const CONST = require('../../../common/constants');
const errors = require('../../../common/errors');
const logger = require('../../../common/logger');
const jwt = require('../jwt');
const utils = require('../../../common/util... | JavaScript | broker/lib/fabrik/ServiceFabrikOperation.js | sauravmndl/service-fabrik-broker | apache-2.0 | 4,373 | 127 | codeparrot/github-code |
88bcaa563c48d9cc2b7c6e1152998f65dd4164caf1575554a06ee6ca87a10ad3 | /*
* Generic framework code included with
* <a href="http://www.amazon.com/exec/obidos/tg/detail/-/1861007841/">Expert One-On-One J2EE Design and Development</a>
* by Rod Johnson (Wrox, 2002).
* This code is free to use and modify. However, please
* acknowledge the source and include the above URL in each
*... | Java | spring-framework-0.9.1/src/com/interface21/web/servlet/view/xslt/FormatHelper.java | Will1229/LearnSpring | apache-2.0 | 4,044 | 132 | codeparrot/github-code |
ac34625090612c8041095d0ccfc3dc2c2cccc8f95c78ac86ef502f12d58222a4 | /*
Package memory is a storage manager that just keeps the games and storage in
memory, which means that when the program exits the storage evaporates.
Useful in cases where you don't want a persistent store (e.g. testing or
fast iteration). Implements both boardgame.StorageManager and
boardgame/server.StorageManager.... | GO | storage/memory/main.go | jkomoros/boardgame | apache-2.0 | 5,384 | 215 | codeparrot/github-code |
f198bb333c39bc8be621029af773593aeca583899524cd8d8b82e7184b6f27bd | using System;
using System.Collections.Generic;
using System.Diagnostics.Tracing;
using System.Fabric;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.ServiceFabric.Services.Runtime;
namespace RoadRunners.ScannerWebApi
{
[EventSource(Name = "MyCompany-RoadRunners.SFCluster-Scan... | C# | RoadRunners/RoadRunners.ScannerWebApi/ServiceEventSource.cs | theroadrunners/ServiceFabricHackathon | apache-2.0 | 9,242 | 198 | codeparrot/github-code |
a1d93c29973f30ae99d8dbc42ad3763c72fc484b71e6933cefc9faeb61bf37c4 | package com.nugraviton.chao.job;
import java.io.BufferedReader;
import java.util.UUID;
public class DefaultProcessInputReader implements ProcessInputReader{
private final String jobName;
private final UUID sessionId;
private final BufferedReader reader;
public DefaultProcessInputReader(String jobNam... | Java | chao-core/src/main/java/com/nugraviton/chao/job/DefaultProcessInputReader.java | nugraviton/chao-open | apache-2.0 | 1,692 | 73 | codeparrot/github-code |
a6578629675e889e7898b14c204cd06d66d50bac57f464a8b62d9faef8964ce4 | /*
* Copyright (c) 2011-2013, Peter Abeles. All Rights Reserved.
*
* This file is part of BoofCV (http://boofcv.org).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www... | Java | main/feature/test/boofcv/alg/feature/detect/line/gridline/TestGridLineModelFitter.java | pacozaa/BoofCV | apache-2.0 | 2,361 | 84 | codeparrot/github-code |
b9c90796b5672e2a5035eae83d4ed68447bf71f62b26d1b949b5d007b8133def | //
// Copyright 2019 Google LLC
//
// 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, Ver... | C# | sources/Google.Solutions.IapDesktop.Extensions.Activity/Events/System/InstanceManagerHaltForRestartEvent.cs | GoogleCloudPlatform/iap-desktop | apache-2.0 | 2,014 | 53 | codeparrot/github-code |
3dfdc17c7780619024031b3b433a9a6b2aa57d2ae598c076f55f5c1d3a69e5fd | // <copyright file="BlankSpan.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.org/lice... | C# | src/OpenCensus/Trace/Internal/BlankSpan.cs | census-instrumentation/opencensus-csharp | apache-2.0 | 2,785 | 113 | codeparrot/github-code |
84f22a1892837c3a8c7a33290ef3333f739d97d9e41e38b61dbc8b71e81fed4d | /*
Copyright 2017 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, ... | GO | pkg/client/clientset_generated/internalclientset/typed/policy/internalversion/poddisruptionbudget.go | jpeeler/kubernetes | apache-2.0 | 6,198 | 173 | codeparrot/github-code |
682bf86015c05726a125cb6d849c421e76f508f58413b61992f079a443a75b9e | import java.util.Scanner;
import java.util.Set;
import java.util.TreeSet;
/**
* @author Oleg Cherednik
* @since 19.07.2018
*/
public class Solution {
private static final Set<Long> EVEN_FIBONACCI = new TreeSet<>();
private static long f0 = 0;
private static long f1 = 1;
static long findEvenFibonac... | Java | Compete/Project Euler/#0000 - #0099/#002 - Even Fibonacci numbers/Solution.java | oleg-cherednik/hackerrank | apache-2.0 | 968 | 47 | codeparrot/github-code |
fc659909045cff71e8d5c722324996b8026c31c4e2610edc7cde9237e155ac22 | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | Java | src/com/facebook/buck/features/python/PythonUtil.java | zpao/buck | apache-2.0 | 19,663 | 488 | codeparrot/github-code |
a11266c3f567329fdbb321ce1d606381deba50d12dfb46249b708a0d1f06a9c6 | /*
* 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 may... | Java | JavaSource/org/unitime/timetable/reports/PdfLegacyReport.java | UniTime/unitime | apache-2.0 | 10,138 | 341 | codeparrot/github-code |
6c7201456da0ab129cce422cab8f511a6cba93927e3cff18c36c8405635bb204 | /* Copyright 2016 Esri
*
* 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,... | Java | java/feature-layer-geodatabase/src/main/java/com/esri/arcgisruntime/sample/featurelayergeodatabase/MainActivity.java | Esri/arcgis-runtime-samples-android | apache-2.0 | 3,928 | 109 | codeparrot/github-code |
84e003a42fa9d16f65fbeda55c1e738d283a604c0c5222e8f808adb795901fe2 | /*
* 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 ... | Java | testing/org.apache.sling.testing.paxexam/src/main/java/org/apache/sling/testing/paxexam/SlingVersionResolver.java | wimsymons/sling | apache-2.0 | 14,723 | 211 | codeparrot/github-code |
acf757ef1961047c0ffa1e24d0066a6e41937a19b7f83b1e9be155c1b4ecabf6 | import { Derivable, DerivableAtom, ErrorWrapper, ReactorOptions, State, unresolved } from '@politie/sherlock';
export type StateObject<V> =
{ value: V, errored: false, resolved: true } |
{ error: any, errored: true, resolved: true } |
{ errored: false, resolved: false };
export function getStateObject<V>(... | TypeScript | extensions/sherlock-utils/src/state.ts | politie/sherlock | apache-2.0 | 1,831 | 58 | codeparrot/github-code |
c670712a00e66d3c6dfa2feb1b0f3632f9893b78d67ec87f733d1d014944a216 | '''
Implements the RTS ALUA Target Port Group class.
This file is part of RTSLib.
Copyright (c) 2016 by Red Hat, 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/lice... | Python | rtslib/alua.py | cvubrugier/rtslib-fb | apache-2.0 | 15,637 | 404 | codeparrot/github-code |
bb017e1290949883ea646d1f8adc63cf63848aed0519cac3b5afbbce32b51310 | // +build ignore
package directory
import (
"github.com/corestoreio/csfw/config/element"
"github.com/corestoreio/csfw/config/model"
)
// Backend will be initialized in the init() function together with ConfigStructure.
var Backend *PkgBackend
// PkgBackend just exported for the sake of documentation. See fields
/... | GO | config/_pkgtpl/config_directory_backend.go | joao-parana/csfw | apache-2.0 | 6,191 | 133 | codeparrot/github-code |
948938e3539f527641d1bd12278d4d26e5d7624e7cc3f39c4372d43a5f86d1a1 | package com.credit.actions.party;
import com.credit.managers.EMF;
import com.credit.managers.SessionManager;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import entities.ChoicesPartiesEntity;
import entities.UsersEntity;
import javax.persistence.EntityManager;
import jav... | Java | src/com/credit/actions/party/RegisterBetAction.java | smile59/credit_mut | apache-2.0 | 1,732 | 69 | codeparrot/github-code |
935965a723239a0550a3cf15f2fe9c0caf865b4d40df77bc894d90fd639db3dd | /*
* Copyright 2014-2019 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... | Java | aws-java-sdk-acmpca/src/main/java/com/amazonaws/services/acmpca/model/transform/UpdateCertificateAuthorityResultJsonUnmarshaller.java | jentfoo/aws-sdk-java | apache-2.0 | 1,742 | 45 | codeparrot/github-code |
d6fb1b9f0de3cb701d56108b5966a6c8865372737b5c5c026965f4d967a09431 | package org.qfox.jestful.gson;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import org.qfox.jestful.commons.IOKit;
import org.qfox.jestful.core.*;
import org.qfox.jestful.core.formatting.RequestSerializer;
import org.qfox.jestful.core.io.MultipartOutputStream;
import java.io.IOException;
import ja... | Java | jestful-gson/src/main/java/org/qfox/jestful/gson/GsonRequestSerializer.java | core-lib/jestful | apache-2.0 | 2,464 | 68 | codeparrot/github-code |
4be8022169f6d6bbef964bca96e0ea37bf6e33ab9db8bcc451ed7b580d1f8000 | package edu.the.way.of.testing.infrastructure;
import edu.the.way.of.testing.Flight;
import edu.the.way.of.testing.SeatClass;
import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
/**
* User: pcierpiatka
*/
public class FlightTestBuilder {
private Flight flight;
private DateTimeFormatter ... | Java | src/test/edu/the/way/of/testing/infrastructure/FlightTestBuilder.java | pcierpiatka/testing_presentation | apache-2.0 | 2,646 | 90 | codeparrot/github-code |
477927f595cc46f465c85f6f63c1b19333a032b19a5e885f59d70d5a84d3be0f | /* global QUnit, sinon */
sap.ui.define([
"sap/ui/mdc/Table",
"sap/ui/mdc/table/Column",
"sap/ui/mdc/library",
"../../QUnitUtils",
"../../util/createAppEnvironment",
"sap/ui/fl/write/api/ControlPersonalizationWriteAPI",
"sap/ui/core/Core",
"sap/ui/core/library",
"sap/ui/model/odata/v4/ODataModel",
"sap/ui/mod... | JavaScript | src/sap.ui.mdc/test/sap/ui/mdc/qunit/odata/v4/TableDelegate.qunit.js | SAP/openui5 | apache-2.0 | 54,115 | 1,484 | codeparrot/github-code |
e9e37117b47b82969f1002768f457bf46eef11f621d0959117e1082be5bdd618 | /*
* Copyright 2014-2019 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... | Java | aws-java-sdk-directory/src/main/java/com/amazonaws/services/directory/model/transform/TrustMarshaller.java | jentfoo/aws-sdk-java | apache-2.0 | 5,187 | 86 | codeparrot/github-code |
e0fdfdadac8d2c0572c244880a59b6c00f1e518a290a0d9a993b4164be731efc | package leetcode.medium;
/**
* Created by wangxiaoyi on 15/11/18.
*/
public class BestTimetoBuyandSellStock {
public int maxProfit(int[] prices) {
//int max = Integer.MIN_VALUE;
int max = 0;
int len = prices.length;
if(len < 2) return 0;
else {
// prices[0] = 0... | Java | src/main/java/leetcode/medium/BestTimetoBuyandSellStock.java | grokcoder/leetcode | apache-2.0 | 811 | 32 | codeparrot/github-code |
378390a278ad5462d584a0d6853d0352c04a19603f3cf8b3b475372e015a9114 | # Copyright 2019 The dm_control 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 i... | Python | dm_control/locomotion/soccer/soccer_ball.py | deepmind/dm_control | apache-2.0 | 8,413 | 263 | codeparrot/github-code |
85c15881be7b2c72b8376c6d36e1f8999305419ed8aa863849956949182fbdad | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
using IdentityServer4.Extensions;
using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensio... | C# | src/IdentityServer4/src/Configuration/DependencyInjection/ConfigureInternalCookieOptions.cs | MienDev/IdentityServer4 | apache-2.0 | 5,159 | 114 | codeparrot/github-code |
e508d46fa0829c8db08bcb5ebe9b469c2c2e91e5805e5cdaaf51bc1b9626812f | package se.l4.vibe.sampling;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.hamcrest.MatcherAssert.assertThat;
import java.util.concurrent.ThreadLocalRandom;
import org.junit.Test;
public class SamplerTest
{
@Test
public void testAddingListenerS... | Java | vibe-api/src/test/java/se/l4/vibe/sampling/SamplerTest.java | LevelFourAB/vibe | apache-2.0 | 1,245 | 54 | codeparrot/github-code |
837b09b1ab10c46d022a0e8071547aa401b5462e0ef66eef74f35ed391b032d8 | /**
* This is the controller file for "TodoDetail"
*
* @class Controller.TodoDetail
* @author Steven House
* @email steven.m.house@gmail.com
*/
var args = arguments[0] || {};
var itemId = args.itemId || "";
// Include logging utility
var log = Alloy.Globals.log;
var args = arguments[0] || {};
var id = args.id;... | JavaScript | app/controllers/TodoListDetail.js | titanium-forks/shouse.To-Do | apache-2.0 | 12,178 | 499 | codeparrot/github-code |
49523bdf764fffe78f8b4f93902e1977f7ea5c258704cd04cb1b47abb48e45a7 | /**
* Copyright 2007-2015, Kaazing 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
*
* Unless require... | Java | management/src/test/java/org/kaazing/gateway/management/test/util/TestLoginModule.java | chao-sun-kaazing/gateway | apache-2.0 | 1,892 | 70 | codeparrot/github-code |
41d7440eb0094e4397ee3c147b11eaf0586ab8e5725465a4890cdc96f8cb2fcb | //*****************************************************************************
// Copyright 2017-2020 Intel Corporation
//
// 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://w... | C++ | test/type_prop/batch_norm.cpp | NervanaSystems/ngraph | apache-2.0 | 56,743 | 1,323 | codeparrot/github-code |
b68e1bb8203a3d6325ee3b902d847f0e068bede861eaa3475de66a6f90c1105c | // This file is a part of the IncludeOS unikernel - www.includeos.org
//
// Copyright 2015 Oslo and Akershus University College of Applied Sciences
// and Alfred Bratterud
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may... | C++ | src/kernel/kernel_start.cpp | nlitsme/IncludeOS | apache-2.0 | 2,975 | 107 | codeparrot/github-code |
73de7a70b093363ff1c2ec42fc278a52fefb6eeee567dcb47a427aacbac0df03 | package com.qh.common.domain;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import com.alibaba.fastjson.JSON;
/**
* tree TODO <br>
*
* @author kangxu2 2017-1-7
*
*/
public class Tree<T> {
/**
* 节点ID
*/
private String id;
/**
* 显示节点文本
*/
private String text;
/**
* 节点状态... | Java | pay-product/src/main/java/com/qh/common/domain/Tree.java | chyzh1689/pay | apache-2.0 | 2,486 | 151 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.