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
f3ba3cd35d9dd6e46593bd4002fa7fa3bcd9e79d42e329b11f9b85eacc361614
/* * Copyright 2006-2010 Virtual Laboratory for e-Science (www.vl-e.nl) * Copyright 2012-2013 Netherlands eScience Center. * * 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 the following...
Java
source/nl.esciencecenter.vlet.vfs.lfc/src/nl/esciencecenter/vlet/vfs/lfc/SEInfo.java
NLeSC/vbrowser
apache-2.0
1,641
60
codeparrot/github-code
22e43ba59e04f837fc97e3c24f5f7d30c14c83ac17580a1dc6357e0468744fae
using Esri.ArcGISRuntime.Geometry; using Esri.ArcGISRuntime.Layers; using Esri.ArcGISRuntime.Symbology; using System; using System.Collections.Generic; using System.Windows; using System.Windows.Controls; using System.Windows.Media; namespace ArcGISRuntimeSDKDotNet_DesktopSamples.Samples { /// <summary> /// T...
C#
src/Desktop/ArcGISRuntimeSDKDotNet_DesktopSamples/Samples/GraphicsLayers/GraphicsSourceSample.xaml.cs
Tyshark9/arcgis-runtime-samples-dotnet
apache-2.0
3,723
105
codeparrot/github-code
d0d1b8369fde9f32063255d1041cf5ac951f12819bfafcda82930539fd6269c0
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Bagcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "walletdb.h" #include ...
C++
src/walletdb.cpp
bagcoin/bagcoin
apache-2.0
31,407
989
codeparrot/github-code
94c1308a90288f5c78e460c1e6200dd8dc661336db83ad9d9d6b4e6caebe00bc
<!-- Footer --> <footer> <div class="container"> <div class="row"> <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1"> <ul class="list-inline text-center"> {% if site.RSS %} <li> <a href="{{ "/feed.xml" ...
HTML
_includes/footer.html
XinzhuLee/XinzhuLee.github.io
apache-2.0
8,968
247
codeparrot/github-code
71a46d00d172ac877862ef6f7feccd57a64ac9404e40f16434199b80b2dd5431
/* * 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-lightsail/src/main/java/com/amazonaws/services/lightsail/model/CloudFormationStackRecordSourceInfo.java
jentfoo/aws-sdk-java
apache-2.0
8,005
262
codeparrot/github-code
31c9b03774469dc142e14ebffba7c7aec2d4160c1a23a9ff305304794ed6050f
/* * 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
common/src/main/java/org/apache/rocketmq/common/BrokerConfig.java
Coneboy-k/incubator-rocketmq
apache-2.0
15,137
496
codeparrot/github-code
13e51c224a53bfd84214da603bfb34762429b326ba47b2c6179a5f78c4338304
package command import ( "github.com/goodmustache/pt/actor" "github.com/goodmustache/pt/command/display" ) //counterfeiter:generate . ProjectListActor type ProjectListActor interface { Projects() ([]actor.Project, error) } type ProjectList struct { UserID uint64 `short:"u" long:"user-id" description:"User ID to...
GO
command/project_list.go
goodmustache/pt
apache-2.0
860
40
codeparrot/github-code
fffa687e976adfa1e98520ff7c80e26866964325334398df21984eac14ff57e2
/* * Copyright (C) 2015 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.strata.product.index; import static com.opengamma.strata.collect.TestHelper.assertSerialization; import static com.opengamma.strata.collect.TestHelper.coverBean...
Java
modules/product/src/test/java/com/opengamma/strata/product/index/IborFutureTradeTest.java
OpenGamma/Strata
apache-2.0
5,092
148
codeparrot/github-code
67e6c5aa781f82c8fbcceb16c01d1d7374dffeccfb09f106916b62ccd6296ce8
/* * Copyright (c) 2016. Sunghyouk Bae <sunghyouk.bae@gmail.com> * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
Java
debop4k-redis/src/test/java/debop4k/redisson/spring/cache/RedissonCacheTest.java
debop/debop4k
apache-2.0
2,169
74
codeparrot/github-code
9c56380cc6052b68e427667a019f4bf2354cdacfd0212cb75062d436da06c461
#!/usr/bin/env perl # Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute # Copyright [2016-2021] 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...
Perl
misc-scripts/xref_mapping/xref_data_analysis.pl
Ensembl/ensembl
apache-2.0
7,089
235
codeparrot/github-code
7fb1866b1005f222fa91c46ac05d4d56a2605e421675c5670e6a2051c227a9fe
from django_filters.rest_framework import DjangoFilterBackend from rest_framework.decorators import action from rest_framework.permissions import IsAuthenticated from rest_framework.response import Response from rest_framework.viewsets import ModelViewSet from rdmo.core.exports import XMLResponse from rdmo.core.permis...
Python
rdmo/conditions/viewsets.py
rdmorganiser/rdmo
apache-2.0
2,141
56
codeparrot/github-code
230563ae6dff8c1a67d45d812049d3383ba05faa38fe4a2569934ad258d19e0f
/* * Licensed to the Apache Software Foundation (ASF) under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional information regarding * copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the * "License"); you may not ...
Java
geode-apis-compatible-with-redis/src/main/java/org/apache/geode/redis/internal/RedisDistributedSystemService.java
masaki-yamakawa/geode
apache-2.0
1,750
44
codeparrot/github-code
b09983bfc341dbfec86d08fe0391d53de4943dc4d16e95a83f3fbaedd3452f96
package grammar.model.nouns; import grammar.model.Multiplicity; import grammar.model.PseudoEnum; import grammar.model.SubjectGender; import grammar.util.Utilities; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; public class Noun implements PseudoEnum<Noun> { private s...
Java
RomanceConjugator/src/main/java/grammar/model/nouns/Noun.java
dliroberts/lang
apache-2.0
3,873
140
codeparrot/github-code
a2d6e627bf8cc37a7e35c098566b71023d02d414fe52acbbd0f669cbf7fd2df8
/* * 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-route53/src/main/java/com/amazonaws/services/route53domains/model/EnableDomainAutoRenewResult.java
dagnir/aws-sdk-java
apache-2.0
2,301
72
codeparrot/github-code
5c0a5afe0e0f6d21d5c0c0c766e8faf806a4481269905b795fca23c3d17d8071
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
Java
presto-main/src/main/java/com/facebook/presto/operator/FileFragmentResultCacheManager.java
EvilMcJerkface/presto
apache-2.0
10,483
283
codeparrot/github-code
93e356d2c32ca0462c741d884b4f3aea402443fa8a5ea6775205c8d1a6013877
/* * 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
modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/near/GridPartitionedBackupLoadSelfTest.java
nivanov/ignite
apache-2.0
5,117
162
codeparrot/github-code
4516f9198148962f9b3d75bee529fc3d7e93dd7bf6f7613532369f25ea9330cd
package org.opencommercesearch.client.impl; import java.util.Date; /** * Represents a sku's availability. * * @author rmerizalde */ public class Availability { public enum Status { InStock, OutOfStock, PermanentlyOutOfStock, Backorderable, Preorderable } private Status status; privat...
Java
opencommercesearch-sdk-java/src/main/java/org/opencommercesearch/client/impl/Availability.java
madickson/opencommercesearch
apache-2.0
947
59
codeparrot/github-code
e07120d68667d2f6d5e22697a470ecca206d3ebf646fcbd2cf5801b6a20027ab
package distribution // import "github.com/tiborvass/docker/distribution" import ( "bufio" "compress/gzip" "context" "fmt" "io" "github.com/docker/distribution/reference" "github.com/tiborvass/docker/distribution/metadata" "github.com/tiborvass/docker/pkg/progress" "github.com/tiborvass/docker/registry" "gi...
GO
distribution/push.go
tiborvass/docker
apache-2.0
6,226
181
codeparrot/github-code
59cef23845d0e731130fe9be77cdc6789544cd45abf0a00b1d5106c499824af7
#pragma once #ifndef GEODE_INTEGRATION_TEST_QUERYHELPER_H_ #define GEODE_INTEGRATION_TEST_QUERYHELPER_H_ /* * 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 ownersh...
C++
cppcache/integration-test/QueryHelper.hpp
mmartell/geode-native
apache-2.0
12,719
389
codeparrot/github-code
908bcb21aaef4b15fec3bac71e4b061d003008cee135cc3a85f57592612f8b5f
/* * testdatefmtrange_wo_SN.js - test the date range formatter object Wolof-Senegal * * Copyright © 2021, JEDLSoft * * 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...
JavaScript
js/test/daterange/testdatefmtrange_wo_SN.js
iLib-js/iLib
apache-2.0
19,076
686
codeparrot/github-code
0f2bacd8b9480daf78a64a5a1e3972ffab1cc4ed174a631a28a59460d225be94
package org.usfirst.frc.team4453.robot.commands; import org.usfirst.frc.team4453.library.Vision; import org.usfirst.frc.team4453.robot.Robot; import edu.wpi.first.wpilibj.command.Command; import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; /** * */ public class DriveWithCamera extends Command { public...
Java
Robot/Programming/FRC2016Robot/src/org/usfirst/frc/team4453/robot/commands/DriveWithCamera.java
RedHotChiliBots/FRC4453
apache-2.0
2,359
76
codeparrot/github-code
2cf78eeeb9dc828e180925839857923dcf9cb9dc8bda38669daeb2305102bd73
/** * Copyright (C) 2012 52°North Initiative for Geospatial Open Source Software GmbH * * 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
src/main/java/org/n52/sos/cache/ObservationOfferingCache.java
52North/ArcGIS-Server-SOS-Extension
apache-2.0
4,088
144
codeparrot/github-code
4cff750fab98b17b8744ce3eaf8936ba56236837f06cd9624e020afa8ddeb059
package org.commcare.tasks; import android.content.Context; import android.text.TextUtils; import android.text.format.DateUtils; import android.util.Pair; import org.commcare.CommCareApplication; import org.commcare.models.AndroidSessionWrapper; import org.commcare.models.database.AndroidSandbox; import org...
Java
app/src/org/commcare/tasks/FormRecordLoaderTask.java
dimagi/commcare-android
apache-2.0
10,155
271
codeparrot/github-code
a424be8fa072e48a1ba8d9b2c92b680e99f578c02af19cf7218f5b96f67e3aad
/* Copyright 2019 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/network-topology/network-storm-topology/src/main/java/org/openkilda/wfm/topology/network/controller/BfdGlobalToggleFsm.java
jonvestal/open-kilda
apache-2.0
8,262
188
codeparrot/github-code
7f027aa817af1ab6f3399a52f1944eb6cd970e01b605f5502ae87de88c684386
/* * 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 ...
Scala
sql/core/v2.3/src/main/scala/org/apache/spark/sql/execution/datasources/orc/OrcFilters.scala
goldmedal/spark
apache-2.0
12,961
273
codeparrot/github-code
92cef7ca294a89a7332ad05f6a0c3fc8f518494df315d9efec7259ac62000e5c
using System; namespace NativeAppFabricConsoleUI { internal static class CreateRegionTests { internal static void CreateRegionWithNonEmptyString() { try { Logger.PrintTestStartInformation("Creating Region with non-empty string value"); st...
C#
samples/AppFabricWrapperTest/NativeAppFabricConsoleUI/RegionLevelBasicOperations/CreateRegionTests.cs
Alachisoft/NCache-Wrapper-For-AppFabric
apache-2.0
2,742
90
codeparrot/github-code
f41cb660c010d97404e1131b912cb71213bb9a3f44317356c052d0e19933b75b
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>create canvas</title> <link rel="stylesheet" href="../canvas/main.css"> <style> div { font-family: monospace; font-size: 20px; color: white; } ...
HTML
Old_Stuff/JS/JS_Core/Homework/BrickBreaker.html
MLG369/MLG369.github.io
apache-2.0
8,342
312
codeparrot/github-code
dff0d18843562291a64109a173ff54447183f53f9fc8e91c60059f25add03e20
package org.nbone.core.util; /** * * @author thinking * @version 1.0 * @since 2019-07-20 * org.elasticsearch.common.unit.ByteSizeUnit */ public enum ByteSizeUnit { BYTES { @Override public long toBytes(long size) { return size; } @Override public long toK...
Java
nbone/nbone-core/src/main/java/org/nbone/core/util/ByteSizeUnit.java
thinking-github/nbone
apache-2.0
5,035
230
codeparrot/github-code
49e7f0e7b44ae2e6c8bdf2ea41e8fd18f9d3737e1cd8eb9f05199da4c7a7d652
package scalacookbook.chapter03 /** * Created by liguodong on 2016/6/28. */ object UseMatchInsteadIsInstanceOf { // use the isInstanceOf method to test the type of an object // if (x.isInstanceOf[Foo]) { do something ... def isPerson(x: Any): Boolean = x match { case p: Person => true case _ => false...
Scala
src/main/scala/scalacookbook/chapter03/UseMatchInsteadIsInstanceOf.scala
liguodongIOT/java-scala-mix-sbt
apache-2.0
769
33
codeparrot/github-code
3ebe45125c797797247dd17178b819975d291ff9fc19aabed46b7b1151eb980f
// Copyright (c) 2009 Carl Barron // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include <iostream> #include <sstream> #include <boost/detail/lightweight_test.hpp> #include <boost/spirit/include/lex.hpp>...
C++
code/3rd-party/boost/libs/spirit/test/lex/dedent_handling_phoenix.cpp
Im-dex/xray-162
apache-2.0
2,510
98
codeparrot/github-code
fb77b05ef989575580b83dd13472bffae5a5a05cf5a7f255aadf1e851247bfa3
/* * 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 ...
JavaScript
packages/story-editor/src/elements/text/util.js
GoogleForCreators/web-stories-wp
apache-2.0
3,563
125
codeparrot/github-code
03bb528be207757acfaa44294d9864e77879b8c7292e48d7b84da57b2f29e308
/* * %CopyrightBegin% * * Copyright Ericsson AB 2006-2020. 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 ...
C
erts/emulator/sys/common/erl_check_io.c
lrascao/otp
apache-2.0
95,170
2,940
codeparrot/github-code
b1d9ed7a45714dc8d6cbb20caedd15a98969fb2ef8e3578204abb17b310d46cf
// Copyright 2016 PingCAP, 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...
GO
store/tikv/error.go
spongedu/tidb
apache-2.0
2,481
56
codeparrot/github-code
8849c9a2c82b84b60bc5cd5c77733ba41d0ec4ed33b9b0faae1034c201420caa
/* * #%L * ===================================================== * _____ _ ____ _ _ _ _ * |_ _|_ __ _ _ ___| |_ / __ \| | | | ___ | | | | * | | | '__| | | / __| __|/ / _` | |_| |/ __|| |_| | * | | | | | |_| \__ \ |_| | (_| | _ |\__ \| _ | * |_| |_| \__,_|___/...
Java
src/main/java/de/hshannover/f4/trust/ifmapj/messages/PollResultImpl.java
trustathsh/ifmapj
apache-2.0
3,270
112
codeparrot/github-code
d88bce5d2a9fa842c6f9f15ba955b71c3b7e9487f56b41ffe5c194f8c2d5e6f9
package com.lyubenblagoev.postfixrest.service; import com.lyubenblagoev.postfixrest.entity.User; import com.lyubenblagoev.postfixrest.security.JwtTokenProvider; import com.lyubenblagoev.postfixrest.security.RefreshTokenProvider; import com.lyubenblagoev.postfixrest.security.UserPrincipal; import com.lyubenblagoev.post...
Java
src/main/java/com/lyubenblagoev/postfixrest/service/AuthServiceImpl.java
lyubenblagoev/postfix-rest-server
apache-2.0
1,809
43
codeparrot/github-code
945af78fbb235804d59ad1f4b2a8e232542cf080bf617178801c5193d79b193d
package task03.pages; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; import org.openqa.selenium.support.ui.ExpectedConditions; public class TicketSelectionPage extends Page { public TicketSelectionPage(PageManager pages) { super(pages); } @FindBy(xpath = ".//*...
Java
src/test/java/task03/pages/TicketSelectionPage.java
RihnKornak/TestTasks
apache-2.0
945
33
codeparrot/github-code
da46bfd4a2e9c298c35c11d05346fff0ff167195a97c9bfb931001b96834b69e
using System.Collections; using System.Collections.Generic; namespace Basic.Ast { public class ParameterList : IEnumerable<Parameter> { private readonly List<Parameter> parameters; public ParameterList() { parameters = new List<Parameter>(); } public Metho...
C#
basc/Ast/ParameterList.cs
robertsundstrom/vb-lite-compiler
apache-2.0
1,479
70
codeparrot/github-code
1a7e3e74c984b9a6e6ffd06f77a8ced3f1505c86bea110e8d5718e91026acdb7
/* Copyright [2011] [Prasad Balan] 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 ...
Java
src/main/java/com/yarsquidy/x12/X12Parser.java
ryanco/x12-parser
apache-2.0
7,028
250
codeparrot/github-code
3b33b393d9323ca29caf4f85c4613b2460333087a5add18c9860697df0d54601
/* * Copyright 2015 Torridity. * * 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/de/tor/tribes/ui/models/RETSourceTableModel.java
Akeshihiro/dsworkbench
apache-2.0
2,442
99
codeparrot/github-code
0e46d09a682368ebb8a2e2e400d917c216d8b96dcbc406fa04efc93927a99c28
package com.zk.web.interceptor; import java.io.IOException; import java.io.PrintWriter; import java.io.StringWriter; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; impor...
Java
src/main/java/com/zk/web/interceptor/CustomizedHandlerExceptionResolver.java
wqintel/zookeeper-web
apache-2.0
2,187
60
codeparrot/github-code
19396c19e8325bfadce41fb828bf38cb6227049cedd4fd8f6a23fca70bd46db3
/** * 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, ...
Java
dowsers-core/src/main/java/org/intelligentsia/dowsers/core/serializers/jackson/ClassInformationDeserializer.java
geronimo-iia/dowsers
apache-2.0
2,180
65
codeparrot/github-code
6e5eac8bf34d4358c7d38c7d9368dbdbf5eb907efc7bb158100fe11915bc4cec
package org.jboss.resteasy.reactive.server.vertx.test; import static org.junit.jupiter.api.Assertions.fail; import io.smallrye.common.annotation.Blocking; import io.smallrye.common.annotation.NonBlocking; import java.util.function.Supplier; import javax.enterprise.inject.spi.DeploymentException; import javax.ws.rs.Pa...
Java
independent-projects/resteasy-reactive/server/vertx/src/test/java/org/jboss/resteasy/reactive/server/vertx/test/BothBlockingAndNonBlockingOnClassTest.java
quarkusio/quarkus
apache-2.0
1,351
44
codeparrot/github-code
075e466d398018ca8cb173aa4774858c1c8029efa68e35e39320b9c2c3a05473
/* * * * * Copyright (C) 2015 Orange * * Licensed under the Apache License, Version 2.0 (the "License"); * * you may not use this file except in compliance with the License. * * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
Java
src/test/java/com/orange/servicebroker/staticcreds/stories/support_route_services/ConfigureServiceBrokerWithRouteServiceTest.java
Orange-OpenSource/static-creds-broker
apache-2.0
6,730
145
codeparrot/github-code
bc9daf86a3c97d34f0f7138f8bd0fec8592aa20e9914957e38cf95a3796a1267
/* * Copyright 2018 Sebastien Callier * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
Java
src/main/java/sebastien/callier/serialization/codec/extendable/object/field/primitives/ByteFieldCodec.java
S-Callier/serialization
apache-2.0
2,341
69
codeparrot/github-code
8e7adf0e5bf528d737f7f1acf7ca1a1cc3f1258c5498474f5743a97ebfc2de00
import eventlet import gettext import sys from staccato.common import config import staccato.openstack.common.wsgi as os_wsgi import staccato.openstack.common.pastedeploy as os_pastedeploy # Monkey patch socket and time eventlet.patcher.monkey_patch(all=False, socket=True, time=True) gettext.install('staccato', unic...
Python
staccato/cmd/api.py
buzztroll/staccato
apache-2.0
899
34
codeparrot/github-code
9fd4062ffc9f039ba0617894e32e71476e2b40cd5e36db05be923f73bd11ebe0
using System; using System.Drawing; using NetTopologySuite.Geometries; namespace SharpMap { /// <summary> /// Utility class that checks Viewport min/max Zoom and constraint /// </summary> [Serializable] public class MapViewPortGuard { private double _minimumZoom; private double...
C#
SharpMap/Map/MapViewportGuard.cs
ShammyLevva/FTAnalyzer
apache-2.0
7,757
233
codeparrot/github-code
6aa5061b677b004ef3c739eebafb156d15c15ed2ac21a8f55bd6d1ae996a6aec
/* * Copyright 2010-2015 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" file...
C++
aws-cpp-sdk-ec2/source/model/DescribeNetworkInterfacesResponse.cpp
kahkeng/aws-sdk-cpp
apache-2.0
2,358
69
codeparrot/github-code
030b242ca92e75a6879ba65ab03c35b40225165dd1519589c22d7b7288c47a39
/* * * (c) Copyright Ascensio System Limited 2010-2021 * * 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 appli...
JavaScript
web/studio/ASC.Web.Studio/UserControls/Management/NamingPeopleSettings/js/namingpeoplecontent.js
ONLYOFFICE/CommunityServer
apache-2.0
3,300
75
codeparrot/github-code
a59e5f610505a0d95863f3c897aa711b6f4dd1a4946e8dde9ebaf328468d4fd1
""" IO classes for Omnivor input file Copyright (C) 2013 DTU Wind Energy Author: Emmanuel Branlard Email: ebra@dtu.dk Last revision: 25/11/2013 Namelist IO: badis functions to read and parse a fortran file into python dictonary and write it back to a file The parser was adapted from: fortran-namelist on code.google...
Python
py4we/fortran_namelist_io.py
DTUWindEnergy/Python4WindEnergy
apache-2.0
8,294
225
codeparrot/github-code
cbb5b7f127e69b60accf61217a6a58d249f9f13f7e83ba79ffbc3af56cbcf846
#include "stdafx.h" #include "NET_Common.h" #include "net_client.h" #include "net_server.h" #include "net_messages.h" #include "NET_Log.h" #include "../xr_3da/xrGame/battleye.h" #pragma warning(push) #pragma warning(disable:4995) #include <malloc.h> #include "dxerr.h" //#pragma warning(pop) static INetLog* pClNetLog ...
C++
src/xray/xrNetServer/NET_Client.cpp
OLR-xray/OLR-3.0
apache-2.0
30,074
1,085
codeparrot/github-code
4458efdbff1474f93c0019d4c789397b584508b10429f7405512dfaaacc1e61e
/******************************************************************************* * Copyright (c) 2015-2019 Skymind, Inc. * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2.0. * *...
Java
deeplearning4j/deeplearning4j-nn/src/main/java/org/deeplearning4j/nn/weights/embeddings/WeightInitEmbedding.java
deeplearning4j/deeplearning4j
apache-2.0
3,970
84
codeparrot/github-code
968673b9c3fa3bfe84028086b680a1ca7070e4600513517815f71df2f5ad4e5e
# coding=utf-8 # Copyright 2012 Hewlett-Packard Development Company, L.P. # Copyright (c) 2012 NTT DOCOMO, INC. # Copyright 2014 International Business Machines Corporation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance ...
Python
ironic/drivers/modules/ipmitool.py
Tan0/ironic
apache-2.0
44,249
1,111
codeparrot/github-code
0451aeedeb183ddbb6a281d27bf3f75e550307564e52570004001ac96950f426
/* * Copyright 2020 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
Java
kie-dmn/kie-dmn-openapi/src/main/java/org/kie/dmn/openapi/impl/DMNTypeSchemas.java
droolsjbpm/drools
apache-2.0
5,225
144
codeparrot/github-code
2c9fb30e902409146059ea824c9579b9b3fbde9fb0fb665db6f1d82db0a0c634
<!doctype html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang=""> <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang=""> <!--<![endif]--> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>My Website, improved<...
HTML
index.html
dmourmouras/website
apache-2.0
5,152
105
codeparrot/github-code
1b0db9399c4f9f7a1f2d86176ba3e0f89b9d73bdc8e827c39256b3c340c7d437
/* * Copyright 2018 OPS4J Contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
Java
kaiserkai-itest/src/test/java/org/ops4j/kaiserkai/rest/LocalAuthSupplier.java
hwellmann/org.ops4j.kaiserkai
apache-2.0
1,497
50
codeparrot/github-code
bc886212e765172daaa3517c0341311baeffe25f7fe2b39f5572459cfb6f1243
// Copyright 2018 The Oppia 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 ap...
TypeScript
core/templates/dev/head/domain/suggestion/SuggestionThreadObjectFactorySpec.ts
souravbadami/oppia
apache-2.0
4,690
118
codeparrot/github-code
d21ecfd2176e25e234414838b428cabbc49d8e926914735fa7ff97c508e476c3
#!/usr/bin/env python from random import choice from python.decorators import euler_timer SQUARES = ["GO", "A1", "CC1", "A2", "T1", "R1", "B1", "CH1", "B2", "B3", "JAIL", "C1", "U1", "C2", "C3", "R2", "D1", "CC2", "D2", "D3", "FP", "E1", "CH2", "E2", "E3", "R3",...
Python
python/complete/no084.py
dhermes/project-euler
apache-2.0
4,565
143
codeparrot/github-code
74fd0c8c9b264de01a37e7bc01c2a0170df1e966fbf63b2745e5a72738dc0eeb
/* * SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ #pragma once #include "esp_bit_defs.h" /// Mask of interrupts sending to the host. typedef enum { SDIO_SLAVE_HOSTINT_BIT0 = BIT(0), ///< General purpose interrupt bit 0. SDIO_SLAVE_HOST...
C
components/hal/include/hal/sdio_slave_types.h
espressif/esp-idf
apache-2.0
1,611
40
codeparrot/github-code
b0a7f204f5df1c4e12c6f735a475bef0065c0bf84528c8c03d967d47b8bc607e
# # Cookbook Name:: bcpc # Recipe:: diamond # # Copyright 2013, Bloomberg Finance L.P. # # 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 # # Unles...
Ruby
cookbooks/bcpc/recipes/diamond.rb
agilemobiledev/chef-bcpc
apache-2.0
2,355
89
codeparrot/github-code
1cae4bff000ec1e465eccada408be6e54bb0919c9d31140d655ad68628578cff
import React from 'react'; import RadioButton from '../RadioButton'; import { mount } from 'enzyme'; const render = (props) => mount( <RadioButton {...props} className="extra-class" name="test-name" value="test-value" /> ); describe('RadioButton', () => { describe('renders as expected', () => { ...
JavaScript
components/__tests__/RadioButton-test.js
hellobrian/carbon-components-react
apache-2.0
3,213
117
codeparrot/github-code
2bdd0b11d28cf84f32715cd77e787e43f86e96b48cf4c0fb7abad15229d00e56
/** * Copyright (C) 2010-2013 Alibaba Group Holding Limited * <p/> * 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 * <p/> * http://www.apache.org/licenses/LICENSE-2.0 * <p/> *...
Java
rocketmq-client/src/main/java/com/alibaba/rocketmq/client/impl/consumer/ProcessQueue.java
tgou/RocketMQ
apache-2.0
12,629
380
codeparrot/github-code
4bab31e25c6158a6514c429ddf6dc20e81dd6c29a9ace7083eae16fbf66adb4c
using System; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.IO; using System.Linq; using System.Net; using System.Runtime.Serialization.Json; using System.Text; using System.Threading; using System.Threading.Tasks; using System.Xml.Linq; using FeedProcessor.Contra...
C#
FeedProcessor/Feeds/TwitterStreamingFeed.cs
stimulant/SocialStream
apache-2.0
11,418
285
codeparrot/github-code
0d88ac97ba52eee4167304857130590959842b8a1917e65592facaf52da7415a
/** * 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/org/apache/hadoop/hdfs/server/namenode/CreateEditsLog.java
shot/hadoop-source-reading
apache-2.0
7,159
205
codeparrot/github-code
d5072a71c7e0d8fa9ab7ce87235dc44721ecb5d86b6360032edd653d6e31f579
// Copyright 2015 The Cockroach 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 ag...
GO
util/log/structured.go
jamesgraves/cockroach
apache-2.0
4,615
171
codeparrot/github-code
2609d8c4ba30630867ce11052105d0e8b208d54662d7cecd473bb9ef86fd9c4a
using System.Collections.Generic; using System.Net; using System.Text; namespace JFrog.Artifactory.Model { /// <summary> /// Artifactory MsBuild info model /// </summary> public class Build { public readonly static string STARTED_FORMAT = "{0}";//.000+0000"; public readonly static ...
C#
msbuild-artifactory-plugin/Model/Build.cs
nilleb/msbuild-artifactory-plugin
apache-2.0
9,383
291
codeparrot/github-code
39afcdba1b915ad2820e5747827f85b217711e3bf7365fa08130ddcc48c90602
/* * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
Java
aws-java-sdk-datapipeline/src/main/java/com/amazonaws/services/datapipeline/model/transform/DeactivatePipelineResultJsonUnmarshaller.java
aws/aws-sdk-java
apache-2.0
1,666
45
codeparrot/github-code
b729b12f04c102310348d65351f66099725796f506c9571d341993896670e9f7
/* * Copyright 2014 - 2016 Real Logic Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
Java
aeron-driver/src/main/java/io/aeron/driver/SubscriptionLink.java
tbrooks8/Aeron
apache-2.0
6,539
219
codeparrot/github-code
b506380a5d2604c3fa76cb7b9d36e4ec6c7e6d5d0d1104fce14b2eb0a5bc8770
<html><!-- Created using the cpp_pretty_printer from the dlib C++ library. See http://dlib.net for updates. --><head><title>dlib C++ Library - quantum_computing_abstract.h</title></head><body bgcolor='white'><pre> <font color='#009900'>// Copyright (C) 2008 Davis E. King (davis@dlib.net) </font><font color='#009900...
HTML
dlib-18.18/docs/dlib/quantum_computing/quantum_computing_abstract.h.html
Nekel-Seyew/Complex-3D-Vector-Fields
apache-2.0
33,641
593
codeparrot/github-code
ac3288df3155bc22618669ed5ca2f39ede862d409202d8dfad5876269c385920
/* * Hibernate Validator, declare and validate application constraints * * License: Apache License, Version 2.0 * See the license.txt file in the root directory or <http://www.apache.org/licenses/LICENSE-2.0>. */ package org.hibernate.validator.test.internal.engine.messageinterpolation; import static org.hibernat...
Java
engine/src/test/java/org/hibernate/validator/test/internal/engine/messageinterpolation/EscapedInterpolationVariableTest.java
shahramgdz/hibernate-validator
apache-2.0
4,239
138
codeparrot/github-code
4be9a034bbdd52574674c927905f205e3f4076be6ffd7cb2c8c0d9aceac86295
using System; using System.Collections.Generic; using System.Data; using System.Data.Entity; using System.Linq; using System.Web; using System.Web.Mvc; using Cats.Helpers; using Cats.Models; using Cats.Models.PSNP; using Cats.Data; using Cats.Services.Administration; using Cats.Services.PSNP; using Cats.Services.Secur...
C#
Web/Areas/PSNP/Controllers/RegionalPSNPPlanController.cs
ndrmc/cats
apache-2.0
12,464
310
codeparrot/github-code
dc1ee857cbe3df37d92c727d878bf5579f81862e939bf0769ff459ff3e6ad915
/* * 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/main/java/org/apache/giraph/benchmark/ShortestPathsBenchmark.java
aljoscha/giraph
apache-2.0
5,455
169
codeparrot/github-code
99553a688749047639f64c9abd6abb4a836194c49a3dd97ad2751eaf43be3037
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Gtk; namespace SailorsTab.Common { public class UIHelper { public static void ShowErrorDialog(Gtk.Widget parent, string message, params object[] parameters) { MessageDialog messa...
C#
SailorsTab.Common/UIHelper.cs
reinkrul/SailorsTab
apache-2.0
1,444
49
codeparrot/github-code
bf1b8dbf61e1cc547aaf976479a3403e3ec77fcbebaeaac54fc8033c04596c19
# NetApp Data ONTAP device module [![Coverage Status](https://coveralls.io/repos/fatmcgav/fatmcgav-netapp/badge.png?branch=develop)](https://coveralls.io/r/fatmcgav/fatmcgav-netapp?branch=develop) ####Table of Contents 1. [Overview](#overview) 1. [Module Description](#module-description) 1. [Setup](#setup) * [Re...
Markdown
README.markdown
ccaum/puppetlabs-netapp
apache-2.0
23,418
984
codeparrot/github-code
47b5dd89a0c42d215847e1531138effbb1702d59a0635e905f2add52954326c5
// // ======================================================================== // Copyright (c) 1995-2015 Mort Bay Consulting Pty. Ltd. // ------------------------------------------------------------------------ // All rights reserved. This program and the accompanying materials // are made available under the ter...
Java
jetty-spdy/spdy-core/src/main/java/org/eclipse/jetty/spdy/parser/CredentialBodyParser.java
xmpace/jetty-read
apache-2.0
9,058
275
codeparrot/github-code
1acdbbcf9f9c49b82d66196b126e67d0b5e9ee1f770773f79bd8c9b1917cff23
<? namespace CodeCraft; use CodeCraft\Helpers\LanguageLink; class SiteRouter { private $language = []; private $defaultLanguage = 'ru'; private $languageUrlMap = []; private $languageList = ['ru' => ['ru', 'be', ...
PHP
local/php_interface/include/classes/CodeCraft/SiteRouter.php
code-craft-ru/bx-features
apache-2.0
3,685
131
codeparrot/github-code
da6aa3b46bbbf283d2d51c324ee301c8c1dcc454c0751d8d6f792224ab37bcd0
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>AdminLTE 2 | Editors</title> <!-- Tell the browser to be responsive to screen width --> <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport...
HTML
pages/forms/editors.html
Tjiahong/AdminLTE
apache-2.0
34,088
815
codeparrot/github-code
62eba9ee8d5de67883a63b47521af3cbb8fdf057aa424bceb07b5530f0e92bc4
# coding=utf-8 # Copyright 2022 The Tensor2Tensor 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...
Python
tensor2tensor/data_generators/image_utils.py
tensorflow/tensor2tensor
apache-2.0
14,495
427
codeparrot/github-code
aa9b5481a0c9a3c4b45db1756e681066ffc29cef94debf4352cea3c8e44cf1d5
package com.sequenceiq.environment.api.v1.environment.model.response; import java.io.Serializable; import com.sequenceiq.environment.api.doc.environment.EnvironmentModelDescription; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @ApiModel("EnvironmentAuthenticationV1Response...
Java
environment-api/src/main/java/com/sequenceiq/environment/api/v1/environment/model/response/EnvironmentAuthenticationResponse.java
hortonworks/cloudbreak
apache-2.0
2,539
94
codeparrot/github-code
0ce77a1cdb0869ab3fc2fb4590f6bc469dd940f4c00bf5b2cf71ea75bc4396e2
/* * This file is part of "lunisolar-magma". * * (C) Copyright 2014-2022 Lunisolar (http://lunisolar.eu/). * * 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
magma-func/src/main/java/eu/lunisolar/magma/func/predicate/LBiObjLongPredicate.java
lunisolar/magma
apache-2.0
60,660
1,489
codeparrot/github-code
77815f43469c2d4b0694921eee9334b15eb1ac17aeae4418584d3b64d0ace347
/* * Copyright 2012-2018 Christophe Friederich * * 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...
Java
reflow-velocity-tools/src/main/java/org/devacfr/maven/skins/reflow/context/Context.java
devacfr/reflow-maven-skin
apache-2.0
9,918
283
codeparrot/github-code
3a44b92dc0c760c73cec9664fd92f332e7608db0f60aac42908c38cd3442d51b
""" Generate a toy dataset for the matrix factorisation case, and store it. We use dimensions 100 by 50 for the dataset, and 10 latent factors. As the prior for U and V we take value 1 for all entries (so exp 1). As a result, each value in R has a value of around 20, and a variance of 100-120. For contrast, the San...
Python
data_toy/bnmf/generate_bnmf.py
ThomasBrouwer/BNMTF
apache-2.0
3,430
95
codeparrot/github-code
a11befaee5078b33c520dab0324832ada8e9c248cb2419d3b37905c2c29594b8
using Artemis.System; using IHateRectangles.Screens; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Content; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; namespace IHateRectangles { public class MenuScreen : Screen { private SpriteBatch _spriteBatch; ...
C#
IHateRectangles/IHateRectangles/Screens/MenuScreen.cs
SoulBeaver/i-hate-rectangles
apache-2.0
1,782
53
codeparrot/github-code
bce482ddd301157edfe287812f93645c59d3f44eb0481e26cd2fb1f779ae197a
package org.easyaccess.nist; import java.io.File; import java.util.HashMap; import java.util.Locale; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.content.SharedPreferences.Editor; import android.os.Bundle; import a...
Java
src/org/easyaccess/nist/HomeScreenActivity.java
saurabh2590/NIST-Voting-Tablet
apache-2.0
13,985
443
codeparrot/github-code
f29d950c78511a1765e8d796968388e48d4dafb6f73b6793313fbcc97df01ed9
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.openapi.fileTypes.impl; import com.intellij.openapi.diagnostic.Logger; import com.intellij.openapi.fileTypes.ExtensionFileNameMatcher; import com.intellij.op...
Java
platform/platform-impl/src/com/intellij/openapi/fileTypes/impl/RemovedMappingTracker.java
mdaniel/intellij-community
apache-2.0
8,518
232
codeparrot/github-code
424e30ac45b6f7bf818ec75f14627eed03e0d57c2d43ffe4a286c4b4fa371ff9
{% extends "soc/models/edit.html" %} {% comment %} 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...
HTML
app/soc/templates/soc/role/edit.html
jamslevy/gsoc
apache-2.0
1,685
58
codeparrot/github-code
cb54de9abded46d0a7fb89dca6941765200616a186736a34f02ef3a7c9305093
# -*- coding: utf-8 -*- # Copyright 2014, 2015 Metaswitch Networks # # 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...
Python
calico/felix/test/stub_utils.py
nbartos/calico
apache-2.0
1,545
57
codeparrot/github-code
84be9d1e977d17e4ec5bf091e1ed47ebde0a9e9cd4a6c315ae716a36c5a88d8e
/* * 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
flink-runtime/src/test/java/org/apache/flink/runtime/scheduler/declarative/allocator/TestSlotInfo.java
kl0u/flink
apache-2.0
1,853
56
codeparrot/github-code
8a8285d95a946bfce149301b154e42426c3fce14d9ad8b7754e4df476ea93b52
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package beans; import java.io.Serializable; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; /** * * @author Chema */ @Component public class Persona implem...
Java
spring/Web/AnotacionesWebMaven/src/main/java/beans/Persona.java
xroca/planFormacionJava
apache-2.0
909
47
codeparrot/github-code
cc13c84d0498a9106d8a098e33e1b918553a8fdb0fd5c37297b6e1e453b570a1
/* * 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
src/main/java/delsh/livy/SessionKind.java
kojish/hdinsight-spark-livy-client
apache-2.0
1,484
53
codeparrot/github-code
48c373ceecd2a921a7aa7cc663147450576032e6c569a2e2578dadea364a58f1
/* * 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 ...
C
src/operator/nn/mkldnn/mkldnn_batch_norm-inl.h
CodingCat/mxnet
apache-2.0
17,404
432
codeparrot/github-code
e4eacfa5b9bb3caa123607af764856382c06ffd3e6b19c4436093c747b81c844
package fr.xebia.unittestwithdagger; import android.widget.TextView; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.robolectric.Robolectric; import org.robolectric.RobolectricTestRunner; import org.robolectric.annotation.Config; import fr.xebia.unittestwithdagger.internal...
Java
app/src/test/java/fr/xebia/unittestwithdagger/UserActivityTest.java
florent37/UnitTestWithDagger
apache-2.0
1,254
43
codeparrot/github-code
6442b0a214372b36380c23f07931d02042c5193fc12d52505c4b54ec014141a5
import { PluginMeta } from '@savantly/sprout-api'; export const validatePluginJson = (pluginJson: any) => { if (!pluginJson.id) { throw new Error('Plugin id is missing in plugin.json'); } if (!pluginJson.info) { throw new Error('Plugin info node is missing in plugin.json'); } if (!pluginJson.info.v...
TypeScript
frontend/tools/sprout-toolkit/src/config/utils/pluginValidation.ts
savantly-net/sprout-platform
apache-2.0
970
39
codeparrot/github-code
69241e88c6ed9f32011b23fb70e1ef472d16977177ef8192ed87f9d76ae02010
# -*- coding: utf-8 -*- # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
Python
google/analytics/data_v1alpha/services/alpha_analytics_data/transports/grpc_asyncio.py
googleapis/python-analytics-data
apache-2.0
19,474
434
codeparrot/github-code
32cbf4db035f76dbe93a7f3b6e62cf11aef031ac8ad665e0933af5ade98a391f
/** * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any later...
Java
docroot/WEB-INF/src/org/politaktiv/map/model/impl/LayerCacheModel.java
PolitAktiv/politaktiv-map2-portlet
apache-2.0
3,021
128
codeparrot/github-code
f8d9a679257ca3732d9fdcc251cd08fa8e8a03dfea30bc20f129fcd3d3f40e76
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or...
C++
paddle/fluid/operators/optimizers/rmsprop_op.cc
PaddlePaddle/Paddle
apache-2.0
7,369
176
codeparrot/github-code
8e6dbd526d294d87a32155c98a8ac64fee2e2d2e0e72243f6f816f67712a9c80
package main import ( "encoding/json" "fmt" "github.com/codegangsta/cli" "github.com/olekukonko/tablewriter" "github.com/zero-os/0-core/base/pm" "gopkg.in/yaml.v2" "os" "sort" "strconv" "strings" ) type containerData struct { Container struct { Arguments struct { Root string `json:"root"` Hos...
GO
apps/corectl/container.go
g8os/core0
apache-2.0
2,323
112
codeparrot/github-code
a7c3204bc4b7a1f7511bd937b09c000e4adcb293e5c06d8a1598483ec6d5240e
package org.poormanscastle.studies.compilers.grammar.grammar3_1.astparser.ast; import org.poormanscastle.studies.compilers.utils.grammartools.ast.CodePosition; /** * Created by georg on 15.01.16. */ public class OperatorExpression extends AbstractAstItem implements Expression { private final Expression leftOpe...
Java
straightline/src/main/java/org/poormanscastle/studies/compilers/grammar/grammar3_1/astparser/ast/OperatorExpression.java
georgfedermann/compilers
apache-2.0
1,401
50
codeparrot/github-code
fa59e15e38870bac55b00f6f2e9daebbc1144b9080270f76d2293603fb6b05d6
using Microsoft.AspNetCore.Http; using System.Collections.Generic; namespace OAuth.AspNet.AuthServer { /// <summary> /// Provides context information used in handling an OAuth resource owner grant. /// </summary> public class OAuthGrantResourceOwnerCredentialsContext : BaseValidatingTicketContext<OAut...
C#
src/OAuth.AspNet.AuthServer/OAuth/AspNet/AuthServer/OAuthGrantResourceOwnerCredentialsContext.cs
XacronDevelopment/oauth-aspnet
apache-2.0
1,705
51
codeparrot/github-code
90a622da1e2c4e30f3acf9a9703e88611326dcc1280250a4b3c2367ce6070863
package uk.ac.ebi.ddi.extservices.entrez.ncbiresult; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; /** * @author Yasset Perez-Riverol (ypriverol@gmail.com) * @date 18/05/2015 */ @JsonIgnoreProperties(ignoreUnknown = true) public class NCBITaxRe...
Java
src/main/java/uk/ac/ebi/ddi/extservices/entrez/ncbiresult/NCBITaxResult.java
BD2K-DDI/ddi-annotation
apache-2.0
974
43
codeparrot/github-code
a3996048eea86fc6d8226aad73d936aa35dc473a5f9cb5f443ec49d431c93aac
package com.ty.activity; import com.ty.app.R; import com.ty.service.AutoUpdateService; import com.ty.util.HttpCallbackListener; import com.ty.util.HttpUtil; import com.ty.util.Utility; import android.app.Activity; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; impor...
Java
src/com/ty/activity/WeatherActivity.java
tanqii/weather
apache-2.0
5,052
183
codeparrot/github-code