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
18717d2a0b2594110b78a4606f926e55b2938c26bfd6e0c87598ea8b01963139
/* * Minio Cloud Storage, (C) 2016 Minio, 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 la...
GO
cmd/storage-rpc-client.go
abperiasamy/minio
apache-2.0
8,778
317
codeparrot/github-code
1f69820563f9767d1b960bd4e2fe62f2ffab6a3aefd09b1a0bb996e336f3174c
namespace Baskerville.Services { using System.Collections.Generic; using System.Linq; using Data.Contracts.Repository; using Models.DataModels; using Models.ViewModels; using AutoMapper; using System.Web.Mvc; using System.Data.Entity; using System.Net; using Contracts; publ...
C#
BaskervilleWebsite/Baskerville.Services/ProductsService.cs
MarioZisov/Baskerville
apache-2.0
3,977
125
codeparrot/github-code
5a48767ae222d3213e835f487e85452808f3703cd699c0d72e8941c73384f51e
package com.rey.material.widget; import android.annotation.TargetApi; import android.app.Activity; import android.content.Context; import android.content.res.ColorStateList; import android.content.res.TypedArray; import android.graphics.Canvas; import android.graphics.ColorFilter; import android.graphics.Paint; import...
Java
lib/src/main/java/com/rey/material/widget/SnackBar.java
geliangdashen/Material
apache-2.0
20,428
693
codeparrot/github-code
2fec98ef8044c1bf00dd847f31862e717128faceaf22427cc1ec72277708c29f
#!/bin/sh # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you m...
Shell
bigtop-packages/src/common/zookeeper/install_zookeeper.sh
rvs/bigtop
apache-2.0
5,812
189
codeparrot/github-code
90879ee146abce9bbf3c70eb2de75e71e03207d05e7fe8bcfb28c2234fa303a0
package com.wavesplatform.matcher.model import com.wavesplatform.matcher.model.Events.{OrderCanceled, OrderExecuted} import com.wavesplatform.matcher.model.LimitOrder.OrderStatus import com.wavesplatform.matcher.util.{Cache, TTLCache} import scorex.transaction.AssetAcc import scorex.transaction.assets.exchange.Order i...
Scala
src/main/scala/com/wavesplatform/matcher/model/OrderHistory.scala
B83YPoj/Waves
apache-2.0
3,515
101
codeparrot/github-code
7d865b0e5fa1f70a9bb7390813852781671f61ac79a5f125c4bafcce1bda03e1
/* * Copyright 2015-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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
Java
spring-cloud-stream/src/main/java/org/springframework/cloud/stream/config/BindingProperties.java
ilayaperumalg/spring-cloud-stream
apache-2.0
4,364
162
codeparrot/github-code
9a236e48484861da0dac2b940d63b4ac87ee8c0956974153f5662264413f1d07
=head1 LICENSE Copyright [1999-2014] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute 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/licen...
Perl
modules/Bio/EnsEMBL/Variation/RegulatoryFeatureVariation.pm
dbolser-ebi/ensembl-variation
apache-2.0
2,600
94
codeparrot/github-code
9ca2207d6482074752dd8dcae7a2a437e9b6cc2cd319195741d9d7e9a3f1de3c
// File: finetune_classifier.cc // Author: Karl Moritz Hermann (mail@karlmoritz.com) // Created: 29-01-2013 // Last Update: Thu 03 Oct 2013 11:26:25 AM BST // STL #include <iostream> #include <algorithm> #include <random> #include <chrono> // Boost #include <boost/program_options/variables_map.hpp> #include <boost/pr...
C++
src/common/finetune_classifier.cc
karlmoritz/oxcvsm
apache-2.0
10,574
392
codeparrot/github-code
7f36ee76e6b14f10eed44b140c61d0829657314fbe04d3cf6f4177587cdc7f14
<?php include_once 'templates/open_head.php'; ?> </head> <body> <?php include_once 'templates/header.php'; include_once 'templates/ganar.php'; ?> <table> <tr> <!-- sentencia php para el manejo de archivos, (cargar los mundos ya creados) --> <?php ...
PHP
nivel8.php
fabianLeon/virtus
apache-2.0
7,125
151
codeparrot/github-code
31c9fa9fc292383f1c9be1e78893efad5b016dcea867b81acc111decb50ef16d
//////////////////////////////////////////////////////////////////////////////// /// @brief tasks used to handle timer events /// /// @file /// /// DISCLAIMER /// /// Copyright 2014 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version...
C++
lib/Scheduler/TimerTask.cpp
morsdatum/ArangoDB
apache-2.0
3,832
120
codeparrot/github-code
1dcb4729569889f44d0a18371dbb78562628e9bf2349942b7e61d305ca64400b
/* * Created by Orchextra * * Copyright (C) 2016 Gigigo Mobile Services SL * * 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...
Java
orchextrasdk/src/main/java/com/gigigo/orchextra/sdk/features/BeaconFeature.java
fSergio101/orchextra-android-sdk
apache-2.0
1,274
38
codeparrot/github-code
e514a7a9cd0ba001944b386a19de0a671b079ef0bb10b23cb2d0603f1881948b
// Copyright 2020 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
JavaScript
src/main/webapp/scripts/personalised-recommendations.js
googleinterns/step241-2020
apache-2.0
2,440
48
codeparrot/github-code
af6c6129782b2f83a7910bf776e2ca2a98e9ac595d80fb0c1d71aba63b78114c
/* * Copyright 2018 ThoughtWorks, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
Java
server/src/main/java/com/thoughtworks/go/server/newsecurity/controllers/AuthenticationController.java
jyotisingh/gocd
apache-2.0
10,802
217
codeparrot/github-code
eef9af878b7aa53b9ef6c7ecb5009661cc00e521e15fe455f8985996c3ca93b3
/* data_partition.h -*- C++ -*- Jeremy Barns, 26 August 2012 Copyright (c) 2012 mldb.ai inc. All rights reserved. This file is part of MLDB. Copyright 2015 mldb.ai inc. All rights reserved. Abstract data partition used for training. */ #pragma once #include...
C
plugins/jml/data_partition.h
mldbai/mldb
apache-2.0
3,953
130
codeparrot/github-code
5b2d00fe65bc27d26cdccd4018ebc362ad63dfd298974cd63e77c5f5e24e0cda
var detect = require('rtc-core/detect'); var extend = require('cog/extend'); var test = require('tape'); var expect = require('./helpers/expect-constraints'); var format = require('./helpers/format'); function mozMediaSource(type) { return { mozMediaSource: type, mediaSource: type }; } test('share', expec...
JavaScript
test/share-constraints.js
rtc-io/rtc-captureconfig
apache-2.0
1,483
66
codeparrot/github-code
b0db3606d7a557eb2a084b95a64bbdc3671b3ac21480bc5836c12aa755329bf8
/* Q Light Controller vcsoloframe.h Copyright (c) Anders Thomsen 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.txt Unless required...
C
ui/src/vcsoloframe.h
hveld/qlcplus
apache-2.0
2,805
99
codeparrot/github-code
91cf3523feb8ffc4445b2a8e99f1194516ced73ee92b07b56e7cfbf4649207b4
package com.passenger.android.sunshine.app.sync; import android.accounts.Account; import android.accounts.AccountManager; import android.annotation.SuppressLint; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.AbstractThreadedSyncAdapter; import android.content.ContentP...
Java
app/src/main/java/com/passenger/android/sunshine/app/sync/SunshineSyncAdapter.java
dalmia/Sunshine-Advanced
apache-2.0
29,453
644
codeparrot/github-code
92904c2f9d4958656ad51d69fe4d836d95b0c84979db141b03a2ed8078f52dc1
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package pl.hojczak.swa.agents; import pl.hojczak.swa.abstracts.AbstractAgent; import pl.hojczak.swa.enums.Resources; /** * * @autho...
Java
src/main/java/pl/hojczak/swa/agents/Country.java
MrJacek/agent
apache-2.0
959
33
codeparrot/github-code
5c66335bed3349686480cce90c45a9792824974a4ab8b0e2dcdd4ad0a42628e3
/* * DBeaver - Universal Database Manager * Copyright (C) 2010-2019 Serge Rider (serge@jkiss.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/license...
Java
plugins/org.jkiss.dbeaver.data.transfer.ui/src/org/jkiss/dbeaver/tools/transfer/ui/internal/DTUIActivator.java
liuyuanyuan/dbeaver
apache-2.0
1,686
58
codeparrot/github-code
2afff6ef41320501c35b3c7e7fad76690c1cb12225ed4fbaf4476d8e4ad8105d
// Copyright 2006 The Closure Library 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 requ...
JavaScript
closure/goog/net/xhrio.js
lucidsoftware/closure-library
apache-2.0
45,131
1,384
codeparrot/github-code
12fd240bf173be805e56db30406bb7fcaa695c84eb4a77224c7483fc7a2189c2
/* Copyright (c) 2011, Siemens Corporate Research a Division of Siemens 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....
C++
src/database/overlay/XipHermiteSpline.cpp
OpenXIP/xip-libraries
apache-2.0
3,302
111
codeparrot/github-code
0187fe03d436112418c5538f257a8341f23671515c9f0c3558568607926ee762
/* * Copyright (c) 2021, Peter Abeles. All Rights Reserved. * * This file is part of Efficient Java Matrix Library (EJML). * * 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:...
Java
main/ejml-ddense/test/org/ejml/dense/row/TestCovarianceOps_DDRM.java
lessthanoptimal/ejml
apache-2.0
1,893
64
codeparrot/github-code
59b19c718bcaf7605272ca59ef6cfd09674d425026eddfd19df2c3234d9330e8
/* * Copyright 2014-2020 Real Logic Limited. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
Java
aeron-cluster/src/test/java/io/aeron/cluster/TestNode.java
EvilMcJerkface/Aeron
apache-2.0
15,055
507
codeparrot/github-code
00f10416f84f90d24c0cdc9d972dd2d15fd474325e8fa50eb7ef0324c5c7b9fe
# Класс-помощник для работы с сессией class SessionHelper: def __init__(self, app): self.app = app # Функция входа на сайт def login(self, username, password): wd = self.app.wd self.app.open_home_page() wd.find_element_by_name("user").click() wd.find_element_by_name...
Python
fixture/session.py
kochetov-a/python_training
apache-2.0
2,127
58
codeparrot/github-code
783c258fc54da290d03019c1f15210c759ea753135a649c25101bfe85d6acf6a
{%- assign _author = site.data.authors[include.article.author] | default: site.author -%} {%- if include.html != false -%} {%- include snippets/assign.html target=site.data.variables.default.page.show_date source0=layout.show_date source1=include.article.show_date -%} {%- assign _show_date = __return -%} ...
HTML
docs/_includes/article-info-author.html
JohnSnowLabs/spark-nlp
apache-2.0
2,369
67
codeparrot/github-code
a2c01ef41da6b0223d5994eeba120055bb6270fd5be85f187a4a9f0e42383dbb
/* Copyright 2014 eBusiness Information 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
native-android-sources/app/src/main/java/mobi/designmyapp/template/sample/ods/util/StreamUtils.java
e-biz/dma-template-sample
apache-2.0
1,686
60
codeparrot/github-code
369319ed1cf05f22dbefc0edab2d6a5529cbbe9e0e88f8243dffd8c53daadfb9
package ru.javabreeze.android.sunshine.app.data; /** * Created by Алексей on 04.09.2016. */ import android.content.ComponentName; import android.content.ContentUris; import android.content.ContentValues; import android.content.pm.PackageManager; import android.content.pm.ProviderInfo; import android.database.Cursor;...
Java
app/src/androidTest/java/ru/javabreeze/android/sunshine/app/data/TestProvider.java
al-t/sunshine
apache-2.0
24,550
515
codeparrot/github-code
5d54c8db1bd9c84fe22fb6c4daf9fcdfffebd2db57bcc2ddbc435727d57c7b90
package com.lucidworks.hadoop.fusion; import com.lucidworks.hadoop.io.LWDocument; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.hadoop.mapred.Reporter; import org.apache.http.client.HttpResponseException; import org.apache.solr.common.SolrException; import org.j...
Java
solr-hadoop-io/src/test/java/com/lucidworks/hadoop/fusion/QueryPipelineClientTest.java
LucidWorks/solr-hadoop-common
apache-2.0
4,002
93
codeparrot/github-code
a07e9c94523841199fc586729b74137253329f22f3721ecfd433cdb51799a5b7
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Immutable; using System.Composition; using System.Threading; using Microsoft.CodeAnalysis.Completion; using Microsoft.CodeAnalysis.CS...
C#
src/Features/CSharp/Portable/Completion/CSharpCompletionService.cs
weltkante/roslyn
apache-2.0
4,146
99
codeparrot/github-code
040cb4a89d0174ef5aca06c23019208dc077234b89dbb65eba5a42a961b7abeb
package nl.htm.importer.swordfish import nl.htm.importer._ import scala.io.Source import scala.Array.canBuildFrom import java.net.URL import scala.util.matching.Regex case class SwordfishSettings(url: String, countries: List[(String, String)]) object Swordfish2013Importer extends Importer[SwordfishSettings] { val...
Scala
htm-importer/src/main/scala/nl/htm/importer/swordfish/Swordfish2013Importer.scala
hema-tournament-manager/htm
apache-2.0
4,621
110
codeparrot/github-code
0d9caa6536a775ba033b7926f61f3eeff3e22aeda944b877d4bac74bc8470dd6
package GrammarSimulator; import org.apache.commons.lang.builder.EqualsBuilder; import org.apache.commons.lang.builder.HashCodeBuilder; import java.util.ArrayList; import java.util.Collections; import java.util.List; /** * this class describes a production rule of a formal {@link Grammar}. * Every rule contains a ...
Java
src/main/java/GrammarSimulator/Rule.java
Winis04/STUPS-Toolbox-2.0
apache-2.0
2,448
98
codeparrot/github-code
7c2f32371a91f04cd421c1caa9a85ea5304112af3961679a4da5725bb7f7c9ef
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #nullable disable using System.Collections; using System.Collections.Generic; using System.Diagnostics; namespace Microsoft.AspNetCore.Routing.Tree { internal struct TreeEnumer...
C#
src/Http/Routing/src/Tree/TreeEnumerator.cs
aspnet/AspNetCore
apache-2.0
3,451
113
codeparrot/github-code
59cd1a694ce338990e9515caf4ef9b3ed1c6dea09292f8fb3c7bf6c002510372
"""This test checks that Nevergrad is functional. It also checks that it is usable with a separate scheduler. """ import ray from ray.tune import run from ray.tune.schedulers import AsyncHyperBandScheduler from ray.tune.suggest.nevergrad import NevergradSearch def easy_objective(config, reporter): import time ...
Python
python/ray/tune/examples/nevergrad_example.py
stephanie-wang/ray
apache-2.0
1,858
61
codeparrot/github-code
47d645488de76e131d42b97d8053ea7364ec7ae18df9494da15ace3a16e0c887
# Encoding: utf-8 # Cloud Foundry Java Buildpack # Copyright (c) 2013 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/L...
Ruby
lib/java_buildpack/container/spring_boot_cli.rb
leihongevan/java-buildpack
apache-2.0
2,803
95
codeparrot/github-code
f10a8da849ec85e3c88a8f55a011b521fb89845f6b130f29257239e375c804ee
/* * Copyright 2017 Hippo Seven * * 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 ...
Java
demo/src/main/java/com/hippo/stage/demo/scene/ChildDirectorScene.java
seven332/Stage
apache-2.0
1,664
56
codeparrot/github-code
9daf839abfa18055c565a869664e021462d0ba2754ca7e42c6604450cf09ac05
package pdp import ( "fmt" "sort" "strings" "github.com/infobloxopen/go-trees/strtree" ) type mapperPCA struct { argument Expression policies *strtree.Tree def Evaluable err Evaluable order int algorithm PolicyCombiningAlg } // MapperPCAParams gathers all parameters of mapper policy comb...
GO
pdp/mapper_pca.go
johnbelamaric/themis
apache-2.0
6,417
287
codeparrot/github-code
c11a29dac89dfd387e2058c5067f3c60df0759747a75bda0cb268c8d22e5c778
/* * 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.opensource.org/licenses/ecl1.php * * Unless required by...
Java
coeus-code/src/main/java/org/kuali/coeus/common/notification/impl/KcNotificationAuthorizationServiceImpl.java
blackcathacker/kc.preclean
apache-2.0
2,032
56
codeparrot/github-code
06b23281db926a6bbb07d9221c26e39cdb8623576252f0eff3032a7fb42ed45a
/** * Runs through some samples on how to use CloudCIX JAVA SDK. */ import java.util.Map; import java.util.HashMap; import org.json.simple.JSONObject; import cloudcix.base.CloudCIXAuth; import cloudcix.base.Response; import cloudcix.base.Utilities; import cloudcix.api.Auth; import cloudcix.api.Membership; /** * @...
Java
cloudcix-java/UsageSample/src/HelloWorld.java
CloudCIX/cloudcix-java
apache-2.0
4,956
134
codeparrot/github-code
c5a1d80daaccfa09246edc3fd6f62e4e5de5b5998ed7e06bd00bf978829de512
# Copyright 2022 The DDSP 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 wri...
Python
ddsp/training/train_util.py
magenta/ddsp
apache-2.0
12,295
342
codeparrot/github-code
6160781e814ba045d1ceb9398c8e2413b26f4aa74895dda863e6b960f5cbe236
package co.uk.sentinelweb.lantv.net.smb; import org.junit.Before; import org.junit.Test; import java.util.List; import co.uk.sentinelweb.lantv.domain.Media; import co.uk.sentinelweb.lantv.net.smb.url.SmbLocationParser; /** * Created by robert on 12/02/2017. */ public class SmbShareListInteractorTest { static ...
Java
net/src/test/java/co/uk/sentinelweb/lantv/net/smb/SmbShareListInteractorTest.java
sentinelweb/LanTV
apache-2.0
2,759
100
codeparrot/github-code
28ed572e85e4ad2f39d02432715f9e11c4b1ea6340f6ac9088d8549e69115497
package org.jeecg.common.api.dto; import lombok.Data; import javax.servlet.http.HttpServletResponse; import java.io.Serializable; /** * 文件下载 * cloud api 用到的接口传输对象 */ @Data public class FileDownDTO implements Serializable { private static final long serialVersionUID = 6749126258686446019L; private String...
Java
jeecg-boot/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/common/api/dto/FileDownDTO.java
zhangdaiscott/jeecg-boot
apache-2.0
724
31
codeparrot/github-code
d309dbeaaeca128f7d47c5f852bcef8c96d0ca1dc4929823bf046c0c3cdb2392
/* * 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 "license" fil...
C++
aws-cpp-sdk-machinelearning/source/model/RealtimeEndpointStatus.cpp
ambasta/aws-sdk-cpp
apache-2.0
3,064
94
codeparrot/github-code
d6283acddb471e44f3e53627195c8b1fcd2d9d7a27f039aa492a9f3884d3b47b
# Copyright 2015 The TensorFlow 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 applica...
Python
tutorials/image/cifar10/cifar10_train.py
jiaphuan/models
apache-2.0
4,491
128
codeparrot/github-code
22fd950ab2f9c0376119323feba73fb3788aa3bb29903eab8c54fc3a711240e6
# -*- coding: utf-8 -*- """The parsers and plugins interface classes.""" import abc import os from plaso.lib import errors class BaseFileEntryFilter(object): """File entry filter interface.""" # pylint: disable=redundant-returns-doc @abc.abstractmethod def Match(self, file_entry): """Determines if a fi...
Python
plaso/parsers/interface.py
Onager/plaso
apache-2.0
8,018
291
codeparrot/github-code
a662ed3d73e92658fc28740d9c28d6726df5d98e19917589a5131c8f47ccdcc5
# # Copyright 2015-2019, Institute for Systems Biology # # 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 ...
Python
scripts/isb_auth.py
isb-cgc/ISB-CGC-Webapp
apache-2.0
4,266
106
codeparrot/github-code
5cfa449ad354e6ec76474324c32e2b5ca1da0cfa50e7074de3794280c5d6ad02
// // Copyright 2011 Thomas Gumprecht, Robert Jacob, Thomas Pieronczyk // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless requir...
Java
src/net/sourcewalker/garanbot/account/LoginActivity.java
xperimental/garanbot
apache-2.0
7,931
221
codeparrot/github-code
ea435eac06a8715de5dee9b2bb303aadeeb238fefbce0cff00a8da9ab2cf048f
/* * Copyright 2020 Makani Technologies LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
C
avionics/common/novatel_serial.c
google/makani
apache-2.0
8,369
300
codeparrot/github-code
c378efad2e0003b607aa98313f2fc97bf13815624601de76da023a4e8f1ef899
--- layout: tutorial title: "Creating a library website with login and multiple languages" author: <a href="https://www.linkedin.com/in/davidaase" target="_blank">David Åse</a> date: 2016-06-10 11:11:11 comments: true permalink: /tutorials/application-structure github: https://github.com/tipsy/spark-basic-structure sum...
Markdown
_posts/tutorials/2016-06-11-spark-basic-structure.markdown
sparkjava/sparkjava.github.io
apache-2.0
8,758
135
codeparrot/github-code
77e4fd967b69b6a9e5a194ec3eeba981b28df3d845ab9226c40b860ed64dc871
package com.soulin.mvpdouban.data; import com.soulin.mvpdouban.data.local.DatabaseHelper; import com.soulin.mvpdouban.data.local.PreferencesHelper; import com.soulin.mvpdouban.data.model.Movie; import com.soulin.mvpdouban.data.model.MovieList; import com.soulin.mvpdouban.data.remote.MoviesService; import java.util.Li...
Java
app/src/main/java/com/soulin/mvpdouban/data/DataManager.java
Yoyun/MvpDouBan
apache-2.0
1,591
54
codeparrot/github-code
3cf6a57820789a1cdb6dad02e5404d00699b93fe8be3b9e81d0947d79dcc0a0d
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you m...
Java
java/gadgets/src/test/java/org/apache/shindig/gadgets/parse/caja/VanillaCajaHtmlSerializerTest.java
apparentlymart/shindig
apache-2.0
2,679
67
codeparrot/github-code
cab7e4d73b39d169420719a379e11a3de1acfd96f78992a37e26dd7f8df6b76a
/* * Copyright (c) Meta Platforms, Inc. and 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 appl...
C++
thrift/compiler/generate/t_mstch_html_generator.cc
facebook/fbthrift
apache-2.0
1,640
53
codeparrot/github-code
e431e1ff2b402307e5bac348803d6aa4cf295a7f6b5bfe3432b732457c88cd3e
/* * Copyright 2010 ZXing 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 ...
Java
src/com/google/zxing/aztec/AztecDetectorResult.java
talent518/zxing
apache-2.0
1,317
49
codeparrot/github-code
dab60591672eabe399aef2386879be3c9146edea36d396a51846d199525ba874
package com.coolweather.app.db; import java.util.ArrayList; import java.util.List; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import com.coolweather.app.model.City; import com.coolweather.app.model.Province; pu...
Java
src/com/coolweather/app/db/CoolWeatherDB.java
zhangchuanchuan/coolweather
apache-2.0
2,935
113
codeparrot/github-code
8aabddd2cd28488d2afbcc252d282f794c778a744ca750493b3044795cf1129d
package apriori import java.io.{File, FileInputStream} import models.DataRule.{Barang, Transaksi} import org.apache.poi.hssf.usermodel.HSSFWorkbook import org.apache.poi.ss.usermodel._ import org.apache.poi.xssf.usermodel.XSSFWorkbook import scala.collection.immutable.IndexedSeq import scala.util.matching.Regex cl...
Scala
app/apriori/Eksel.scala
ibnuda/hasembuh
apache-2.0
3,403
107
codeparrot/github-code
1925e8b9d0273a415b33965db3dd0b5610777309374ff18644f3bb06034fa964
package server; import java.io.IOException; import java.lang.reflect.InvocationTargetException; import java.net.Socket; import java.util.logging.Level; /** * Represents a thread that handles a request by a client in the logic of the * client server pattern * * @author Andrea Sessa * @author Giorgio Pea * @vers...
Java
src/main/java/server/SocketThread.java
DeadManPoe/AFOSpaceProject
apache-2.0
2,029
65
codeparrot/github-code
9d8f58387eb4c04d220a2b3b6dc1e7ae4f74423d0c72b7dea892379548708c0f
package org.jboss.resteasy.reactive.client.impl; import io.vertx.core.Vertx; import java.util.Collections; import java.util.Map; import java.util.function.Supplier; import javax.ws.rs.RuntimeType; import org.jboss.resteasy.reactive.client.spi.ClientContext; import org.jboss.resteasy.reactive.client.spi.ClientContextRe...
Java
independent-projects/resteasy-reactive/client/runtime/src/main/java/org/jboss/resteasy/reactive/client/impl/DefaultClientContext.java
quarkusio/quarkus
apache-2.0
1,815
59
codeparrot/github-code
841d324d8cf947e8c248175e18efba4e1646c11f2a234e1499301929e788eba9
var multiplayer = new function(){ this.players = []; this.add_player = function(player){ console.log("new player"); var scale = [1,1,1]; var data = {}; data['x1'] = 0; data['y1'] = 0; elements.add_OBJ(link_mushroom_obj,link_tree_texture,data, scale,"opponent",false, player.id); }; this.remove_player ...
JavaScript
core/javascript/multiplayer/socket.js
lucas34/mushroom-hunter
apache-2.0
1,464
60
codeparrot/github-code
b7d669cedd7796d300610cc415ff1aad61688fae4587cd6506838112defdb5be
package com.sequenceiq.cloudbreak.service.stack.repair; import java.util.Set; import java.util.concurrent.ExecutorService; import javax.inject.Inject; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Component; import com.sequenceiq.cloudbreak.api.model.Status; import c...
Java
core/src/main/java/com/sequenceiq/cloudbreak/service/stack/repair/StackRepairService.java
sequenceiq/cloudbreak
apache-2.0
4,618
116
codeparrot/github-code
e1830e381265d4923a641396e5aab3886ba5372d31f067e64d4a27a5ccb6129b
/* * 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 applica...
Java
src/main/java/com/google/jenkins/plugins/cloudbackup/initiation/NoActionInitiationStrategy.java
jenkinsci/google-cloud-backup-plugin
apache-2.0
1,402
42
codeparrot/github-code
937e5ce9f204031d237143d75fa4783c34749a86fcd1be5a6979d8f29bbee481
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/network-firewall/NetworkFirewall_EXPORTS.h> #include <aws/network-firewall/model/PerObjectSyncStatus.h> #include <utility> namespace Aws { namespace Utils { namespace Json ...
C
aws-cpp-sdk-network-firewall/include/aws/network-firewall/model/PerObjectStatus.h
jt70471/aws-sdk-cpp
apache-2.0
1,870
79
codeparrot/github-code
d2e98bdf1c339cbfdf6d55051b42e090d40bfb6ead4722af7082aef16ab4b95c
/** * */ package org.nick.wwwjdic.client; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.util.zip.GZIPInputStream; import org.apache.http.Header; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.HttpStatus; import org.apache....
Java
wwwjdic/src/org/nick/wwwjdic/client/GzipStringResponseHandler.java
nelenkov/wwwjdic
apache-2.0
1,897
58
codeparrot/github-code
51166fe1540ee49603162885e1119bef38dc2a9ca716863e5eddad2c15609c7b
package org.apache.pig.backend.hadoop.executionengine.spark_streaming.converter; import java.io.Serializable; import java.util.List; import org.apache.pig.backend.executionengine.ExecException; import org.apache.pig.backend.hadoop.executionengine.physicalLayer.POStatus; import org.apache.pig.backend.hadoop.executione...
Java
src/org/apache/pig/backend/hadoop/executionengine/spark_streaming/converter/FilterConverter.java
sigmoidanalytics/spork-streaming
apache-2.0
2,409
65
codeparrot/github-code
d4b635884dbb19931513c8e0ee17d2afb9e16b3a65fa4fee33f920aec2da360f
package com.android.ocrball; import android.app.Service; import android.content.Context; import android.content.Intent; import android.graphics.PixelFormat; import android.os.IBinder; import android.util.Log; import android.view.Gravity; import android.view.LayoutInflater; import android.view.MotionEvent; i...
Java
OcrBall/app/src/main/java/com/android/ocrball/OcrBallService.java
Jeson2016/ocr-ball
apache-2.0
2,016
73
codeparrot/github-code
73423baa49e00bd4d681481c990f31354d981382c4962949ca80abbcdf802167
package org.luapp.practise.mqtt; import org.fusesource.mqtt.client.*; import java.net.URISyntaxException; import java.util.concurrent.TimeUnit; /** * Created by lum on 2015/7/1. */ public class HelloMqtt { public static void main(String[] args) throws Exception { new Thread(new Runnable() { ...
Java
practise/src/main/java/org/luapp/practise/mqtt/HelloMqtt.java
lumeng689/luapp
apache-2.0
1,915
62
codeparrot/github-code
4e809a0e631fb77bdb2d16f3c59450894612691ef1f4976147c1c7ff385a218f
/* ==================================================================== 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 Y...
Java
src/testcases/org/apache/poi/ss/formula/EvaluationListener.java
lvweiwolf/poi-3.16
apache-2.0
2,276
68
codeparrot/github-code
362dd74ce1c38e19749920c160cec7a0435433490c4f04eb51d53d0c7d63d326
package mm.events; import android.content.Intent; import android.os.Bundle; import android.app.Activity; import android.support.v7.app.ActionBarActivity; import android.view.MenuItem; /** * An activity representing a single FBListEvent detail screen. This * activity is only used on handset devices. On tablet-size...
Java
app/src/main/java/mm/events/FBListEventDetailActivity.java
MarekMatejkaKCL/Events
apache-2.0
2,718
69
codeparrot/github-code
e8e92a0665d7a60b65cc7655c2e5663f8982e214bdeef9e2d9acee57c192ae80
/* * Copyright (c) 2009-2012 jMonkeyEngine * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of ...
Java
trunk/jme3-core/src/main/java/com/jme3/scene/debug/SkeletonInterBoneWire.java
PlanetWaves/clockworkengine
apache-2.0
4,908
128
codeparrot/github-code
c4e064973c348bb18ab7a81ab785107b2e84537e15bd781355e040e330caec2c
/** * Copyright 2015 David Karnok and Netflix, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in * compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
Java
src/test/java/hu/akarnokd/rxjava2/internal/operators/nbp/NbpOperatorDistinctUntilChangedTest.java
akarnokd/rxjava2-backport
apache-2.0
4,981
132
codeparrot/github-code
42767a3543bbbdfd69b952444d1f19b35f1490f5ca0ebdeb1969dfcd515bf801
/* * Copyright 2015 prashant kumar (prashant4nov). * * 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/com/pearson/statsagg/webui/api/NotificationGroupDetails.java
karimgarza/StatsAgg
apache-2.0
4,377
115
codeparrot/github-code
c0d3d4d05a279a137e513785c36064e9e0cef0d65fc22bb4d6ece2ce1e940a67
/* * * Copyright 2017-2019 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 req...
Java
springfox-spring-web/src/main/java/springfox/documentation/spring/web/plugins/JacksonSerializerConvention.java
springfox/springfox
apache-2.0
4,104
117
codeparrot/github-code
456a4c547958c3c6333f00911b36de629c5a5667cc5990ed8d76d8be961f3143
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="en-GB" xml:lang="en-GB" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <title>Statistics of ADV in UD_Livvi-K...
HTML
treebanks/olo_kkpp/olo_kkpp-pos-ADV.html
UniversalDependencies/universaldependencies.github.io
apache-2.0
14,737
242
codeparrot/github-code
4e52afc28075ed58b7fd14dd4b4b65729e176027e57689b26f09ac76cc63e86f
/* * Copyright 2012 Nodeable 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 l...
Java
analytics/src/test/java/com/streamreduce/storm/spouts/ConnectionSpoutTest.java
StreamReduce/streamreduce-core
apache-2.0
2,419
72
codeparrot/github-code
dfb7f8b842fdec5b91f397cff5542719538b51ba186309c6e505f781a1425aab
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vdslib.state; import com.yahoo.text.StringUtilities; import java.text.ParseException; import java.util.BitSet; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java...
Java
vdslib/src/main/java/com/yahoo/vdslib/state/ClusterState.java
vespa-engine/vespa
apache-2.0
20,549
548
codeparrot/github-code
3a8ffd58c83c46eebe4132910ba4af0b0afcc248fdb49f40f198a4fd5c9bcef4
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import merge from 'deepmerge'; import {Platform} from 'react-native'; import {Navigation} from 'react-native-navigation'; import configureMockStore from 'redux-mock-store'; import thunk from 'redux-thunk'; ...
JavaScript
app/actions/navigation/index.test.js
mattermost/mattermost-mobile
apache-2.0
18,305
526
codeparrot/github-code
762c796494721e0381eae75c8568ab70a8f745574685594dd539ab198ff4e456
package com.sksamuel.elastic4s import org.apache.lucene.search.Explanation import org.elasticsearch.action.search.{SearchResponse, ShardSearchFailure} import org.elasticsearch.common.bytes.BytesReference import org.elasticsearch.search.aggregations.Aggregations import org.elasticsearch.search.highlight.HighlightField ...
Scala
elastic4s-core/src/main/scala/com/sksamuel/elastic4s/RichSearchResponse.scala
nicoo/elastic4s
apache-2.0
6,099
153
codeparrot/github-code
6f65cfdafb56cf3b6bdda9e82615b3fdec95f999011044eb8aaf2f60bcdeda50
/* * 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/test/java/org/inferred/freebuilder/processor/property/ListPropertyTest.java
inferred/FreeBuilder
apache-2.0
38,015
987
codeparrot/github-code
9d8c7b2df92beff0ef408a4747c4298ab437ee97cc4c8dfe7ce4475a4c31fb3b
/* * Copyright 2018 Public Transit Analytics. * * 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/main/java/com/publictransitanalytics/scoregenerator/distance/ForwardPointSequencer.java
PublicTransitAnalytics/ScoreGenerator
apache-2.0
1,666
55
codeparrot/github-code
e1e41beeaf610f99b61bd355419ccea571e551ecb5c865968cc945921ca41c86
package com.datawizards.dmg.dialects import com.datawizards.dmg.{DataModelGenerator, DataModelGeneratorBaseTest} import com.datawizards.dmg.TestModel._ import org.junit.runner.RunWith import org.scalatest.junit.JUnitRunner @RunWith(classOf[JUnitRunner]) class GenerateElasticsearchMappingTest extends DataModelGenerato...
Scala
src/test/scala/com/datawizards/dmg/dialects/GenerateElasticsearchMappingTest.scala
mateuszboryn/data-model-generator
apache-2.0
7,832
281
codeparrot/github-code
734358cad01a6bd2e3a3944f660ff541a10aea31964337707f7b4ce8dfeb7b27
/****************************************************************************** * Copyright 2019 The Apollo 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 ...
C++
modules/planning/tasks/deciders/speed_bounds_decider/speed_bounds_decider.cc
wanglei828/apollo
apache-2.0
7,867
209
codeparrot/github-code
971b35dcabd5513cae66c921b5954837bfab5c0e59820d16dd8db87e1006551c
""" Helper classes for creating frontend metadata """ class ContactPersonDesc(object): """ Description class for a contact person """ def __init__(self): self.contact_type = None self._email_address = [] self.given_name = None self.sur_name = None def add_email_ad...
Python
src/satosa/metadata_creation/description.py
irtnog/SATOSA
apache-2.0
6,948
236
codeparrot/github-code
786e0cdbcf79375d9e03ac125c0fb37b5e2eb430c511522e7b8bbe91f72b8ea0
package com.tcl.idm.util; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.io.PrintWriter; /** * This class is intended to be used with the SystemCommandExecutor class to let * users execute system comma...
Java
src/main/java/com/tcl/idm/util/ThreadedStreamHandler.java
yuanhuan2005/idm-java-sdk
apache-2.0
3,693
149
codeparrot/github-code
53538f2362b7fb38d7fa5b41ce0494b0c7927a53b72680af0511b8ef7313e6eb
/* * Copyright 2010-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 "license" fil...
C
aws-cpp-sdk-iot/include/aws/iot/model/TaskStatistics.h
cedral/aws-sdk-cpp
apache-2.0
6,704
222
codeparrot/github-code
1a1ab0a7a61ca71480af3890824409d4e8e717ba00278dc350a98a986c804c96
# Webhooks for external integrations. from __future__ import absolute_import from django.utils.translation import ugettext as _ from zerver.lib.actions import check_send_message from zerver.lib.response import json_success, json_error from zerver.decorator import REQ, has_request_variables, api_key_only_webhook_view fr...
Python
zerver/webhooks/crashlytics/view.py
SmartPeople/zulip
apache-2.0
1,910
46
codeparrot/github-code
7c3ea5a133179a32092c0e4ec3b0ae76e663df7f6683fe6b1412d009f2a1c064
package org.nutz.plugins.view.freemarker; import java.util.Enumeration; import java.util.HashMap; import java.util.Map; import javax.servlet.GenericServlet; import javax.servlet.ServletContext; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpS...
Java
src/org/nutz/plugins/view/freemarker/FreemarkerView.java
lusparioTT/fks
apache-2.0
6,555
162
codeparrot/github-code
7027917ea8c6d1cfb4583fc640d8b38ab262843f7610c64f678a7ba171f73590
/* ======================================================================== * PlantUML : a free UML diagram generator * ======================================================================== * * (C) Copyright 2009-2020, Arnaud Roques * * Project Info: https://plantuml.com * * If you like this project or if ...
Java
src/plantuml-asl/src/net/sourceforge/plantuml/windowsdot/WindowsDotArchive.java
talsma-ict/umldoclet
apache-2.0
3,464
125
codeparrot/github-code
574e67f8103e7ef5786122aec4d5c8699ab3978c9685cf44ed0d567e689a0731
# Copyright 2012 Cloudbase Solutions Srl # # 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 l...
Python
cloudbaseinit/osutils/windows.py
cmin764/cloudbase-init
apache-2.0
42,295
1,115
codeparrot/github-code
fc66571e09920f7aef3276c33e55187a6da8767a90ecf3b7e3d799d354265cc7
/* * Copyright 2017 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 a...
Java
OpenScienceJournal/whistlepunk_library/src/main/java/com/google/android/apps/forscience/whistlepunk/ReusableFormatter.java
googlearchive/science-journal
apache-2.0
1,207
39
codeparrot/github-code
7df12784a54bdee8e3d308d6a6b1b70b6ee5bbdc96e654bb1103574cba439568
# Copyright 2012 Kevin Ormbrek # # 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...
Python
src/SudsLibrary/factory.py
ombre42/robotframework-sudslibrary
apache-2.0
2,975
71
codeparrot/github-code
18411f91509eeeae86e7c2ec668b03a8d49c5ac50b8d677ce47fc13bd95ca38d
package org.support.project.knowledge.bat; import org.apache.commons.lang.ClassUtils; import org.h2.tools.Server; import org.support.project.common.config.ConfigLoader; import org.support.project.common.log.Log; import org.support.project.common.log.LogFactory; import org.support.project.knowledge.logic.DataTransferLo...
Java
src/main/java/org/support/project/knowledge/bat/DataTransferBat.java
support-project/knowledge
apache-2.0
3,496
100
codeparrot/github-code
4d455dbb644b5e3b7f45dcc86dc28690cf7141f6ac6daa991fd380c26a05a0d8
/* * 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
nifi-nar-bundles/nifi-scripting-bundle/nifi-scripting-processors/src/main/java/org/apache/nifi/record/script/ScriptedRecordSetWriter.java
tijoparacka/nifi
apache-2.0
7,624
172
codeparrot/github-code
bb27419f0b6f32788ad41d946c7bac797a559424581a4b24a865bad205a6e656
/* * Copyright 2015-2019 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
Java
spring-cloud-zookeeper-core/src/main/java/org/springframework/cloud/zookeeper/ZookeeperHealthAutoConfiguration.java
spring-cloud/spring-cloud-zookeeper
apache-2.0
2,290
59
codeparrot/github-code
d2cb42c574ec9ebc2655210ce9266a63eb41754d58571aaa78e49357c8eb711f
/* * Copyright 2015 recommenders.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 required by applicable law or agr...
Java
rival-evaluate/src/test/java/net/recommenders/rival/evaluation/metric/NDCGTest.java
recommenders/rival
apache-2.0
7,401
197
codeparrot/github-code
6528937a41c65a4419205f2507f1a92ede6085c9d57abb5b1f3a16d7b9060b3f
#!/bin/bash # This file contains list-manipulation functions. # A list is defined here as a string of items separated by some delimiter. The PATH variable is one such # example. if ! test "${default_delim+defined}" ; then readonly default_delim=" " fi # Performance note: It is important for these functions to r...
Shell
bin/gen_list.sh
openbmc/openbmc-test-automation
apache-2.0
4,114
119
codeparrot/github-code
d60fc991bdecd0cddde8578437e626aa6e9c8bd74d12c8542e8451ea87ec21d5
/* * Copyright (c) 2014 Keetip * * 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 ...
Java
core/src/main/java/com/keetip/versio/domain/Project.java
keetip/versio
apache-2.0
2,561
111
codeparrot/github-code
a1b8be3a852ffb98fb01d6457dbe16a06e1b7accdfc5ef1ab3ba22fc02e1d905
package org.zalando.tracer.okhttp; import com.github.restdriver.clientdriver.ClientDriver; import com.github.restdriver.clientdriver.ClientDriverFactory; import io.opentracing.Scope; import io.opentracing.Span; import io.opentracing.mock.MockTracer; import okhttp3.OkHttpClient; import okhttp3.Request; import okhttp3.R...
Java
tracer-okhttp/src/test/java/org/zalando/tracer/okhttp/FlowInterceptorTest.java
whiskeysierra/tracer
apache-2.0
2,347
71
codeparrot/github-code
1b646638f8d113198b0bc55247ff0e42d809b5515d3a87a6a399c9525391c079
import {Color, DeliveryData, DialogAlignment, FclElements, Position, StationData, TableMode} from './datatypes'; import {DialogPosition, MdDialog, MdDialogRef, MdMenuTrigger} from '@angular/material'; import * as ol from 'openlayers'; import {DialogAlertComponent, DialogAlertData} from '../dialog/dialog-alert/dialog-al...
TypeScript
src/app/util/utils.ts
thoens/FCL-Web-App
apache-2.0
5,360
198
codeparrot/github-code
48da3321eb3380da61f543983f2ac7a4a15365f5a3c39f516caa41802cdd1087
/* * Copyright 2012 AMG.lab, a Bull Group Company * * 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
openstack-climate-sdk/src/main/java/org/xlcloud/openstack/model/climate/Lease.java
ow2-xlcloud/openstack-sdk
apache-2.0
4,898
195
codeparrot/github-code
d8ba95564c52f880e300952eddec24247101833b1f3a495f196f45e088377d83
/* * 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-medialive/src/main/java/com/amazonaws/services/medialive/model/transform/Scte27SourceSettingsJsonUnmarshaller.java
jentfoo/aws-sdk-java
apache-2.0
2,791
75
codeparrot/github-code
56ea6c87febdeb36d0807d3053730b08e95e35b8b42f664ed0470c73a5f1134c
module Clavator class Service def initialize end end class Action def activate(context) @context = context end def attach_host(host) @host = host end def post_interfaces up_downer = @context.find_instances_from_type(Construqt::Flavour::Nixian::Services::UpDowner::...
Ruby
image/clavator.rb
mabels/clavator
apache-2.0
1,477
63
codeparrot/github-code
f873e6c58e27ff84f43fdb269cb52be1d620def8bc77dd6f7462c423c07bed87
package com.nateyolles.sling.publick.sightly; import java.net.URI; import java.net.URISyntaxException; import javax.jcr.RepositoryException; import javax.jcr.Session; import javax.script.Bindings; import org.apache.commons.lang.StringUtils; import org.apache.jackrabbit.api.JackrabbitSession; import org.apache.jackra...
Java
src/main/java/com/nateyolles/sling/publick/sightly/WCMUse.java
raducotescu/publick-sling-blog
apache-2.0
5,429
183
codeparrot/github-code