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
b6c10d21265b68474de5efecb06fddb0fe9b32d927930d25d08ac6e82d9c0606
/* * 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-finspacedata/src/main/java/com/amazonaws/services/finspacedata/model/transform/GetWorkingLocationRequestProtocolMarshaller.java
aws/aws-sdk-java
apache-2.0
2,696
63
codeparrot/github-code
fb1c20998e4dc9503921659978c0256116d7bc76eef01c59751985066759171e
<!DOCTYPE html> <!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]--> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> ...
HTML
docs/NetworkObject/RemoteProcedureCalls/rpc-validation-by-server/index.html
BeardedManStudios/ForgeNetworkingRemastered
apache-2.0
17,866
481
codeparrot/github-code
3083520305f5f2df946f6666661e671e38dcca09bdf1dfd9e2ef256d46451f63
/* * Copyright (C) 2013 The Calrissian 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...
Java
store/event-store/src/main/java/org/calrissian/accumulorecipes/eventstore/iterator/EventIntersectingIterator.java
cjnolet/accumulo-recipes
apache-2.0
1,788
54
codeparrot/github-code
1209798c82a0a6c8c7cd073793a779acf7a04bd06dc0720ccbb8790f6946dcec
/* * 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/test/java/com/facebook/presto/sql/planner/iterative/rule/TestPlanRemoteProjections.java
twitter-forks/presto
apache-2.0
15,432
251
codeparrot/github-code
9455441e59fb199136089567695ec48ae6ae7462bba10b8a88f4b705033bc330
# frozen_string_literal: true # WARNING ABOUT GENERATED CODE # # This file is generated. See the contributing guide for more information: # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md # # WARNING ABOUT GENERATED CODE module Aws::PI # When PI returns an error response, the Ruby SDK constructs...
Ruby
gems/aws-sdk-pi/lib/aws-sdk-pi/errors.rb
aws/aws-sdk-ruby
apache-2.0
2,452
87
codeparrot/github-code
fca390f71eec2b6fb174cfabceb8ab376c7b320b287e53f33d0dc761e71544ec
/* * 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-sesv2/src/main/java/com/amazonaws/services/simpleemailv2/model/transform/DeleteSuppressedDestinationRequestMarshaller.java
aws/aws-sdk-java
apache-2.0
2,148
56
codeparrot/github-code
74fbfde4abeb51c9a71d6bd398670fe22adc8857f543acb4aea3b4f4d38aea57
from lxml import etree from nxpy.interface import Interface from nxpy.vlan import Vlan from nxpy.flow import Flow from util import tag_pattern class Device(object): # Singleton _instance = None def __new__(cls, *args, **kwargs): if not cls._instance: cls._instance = super( ...
Python
nxpy/device.py
Kent1/nxpy
apache-2.0
2,884
86
codeparrot/github-code
2445a48e61ef244b521af6e17150c634a9dcd407732072f4e460371d5cfd4f45
# # 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 # ...
Python
heat/db/sqlalchemy/models.py
steveb/heat
apache-2.0
17,625
443
codeparrot/github-code
c69bf2112c21f8cbabcab0a847116ca0969f31c7ed7a7b445f610ce8aaae4c62
import { postToServer } from "../app/utils"; import { wait } from "../app/utils"; /** * Google Authentication and linking module * @returns {{link: function:object, login: function}} */ const googleProvider = new firebase.auth.GoogleAuthProvider(); function callIfFunction(func, arg1, arg2) { if ($.isFunction(...
JavaScript
src/main/resources/src/authentication/google.js
zhcet-amu/zhcet-web
apache-2.0
4,462
139
codeparrot/github-code
df726138481751ede4294a9b5726aa92e101bfd84879e4f6abb2ccd3ed8fcca9
package com.tasktoys.archelon.data.dao.jdbc; import com.tasktoys.archelon.data.dao.ActivityDao; import com.tasktoys.archelon.data.entity.Activity; import com.tasktoys.archelon.data.entity.Activity.ActivityType; import com.tasktoys.archelon.data.entity.Activity.Builder; import java.sql.Timestamp; import java.util.Array...
Java
src/main/java/com/tasktoys/archelon/data/dao/jdbc/JdbcActivityDao.java
tAsktoys/Archelon
apache-2.0
4,230
119
codeparrot/github-code
c95cb5af3f7587c181efa64db7ff71c299dcd6d7e4149d20879847d252014a7b
/* * Copyright 2019 LinkedIn Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
Java
azkaban-common/src/main/java/azkaban/executor/ExecutionRampDao.java
azkaban/azkaban
apache-2.0
27,150
730
codeparrot/github-code
7ae8f237f7cf172e4b43506949e2f7e7af98167835afd21ee5bf35767983bc8d
/** * @author Damien Dell'Amico <damien.dellamico@gmail.com> * @copyright Copyright (c) 2016 * @license GPL-3.0 */ import { Component } from '@angular/core'; import { AlertController, NavController } from 'ionic-angular'; import { FormGroup, FormBuilder, Validators } from '@angular/forms'; import { GeocoderSe...
TypeScript
src/pages/confirmation/confirmation.ts
ddellamico/ionic2-taxi-app
apache-2.0
2,221
74
codeparrot/github-code
6362f86d384bcbaece05cf61c7bc3b6ab283d381f25dfe6ebfb5c00bf1217045
#ifndef __LOCAL_VEC_STORE_H__ #define __LOCAL_VEC_STORE_H__ /* * Copyright 2015 Open Connectome Project (http://openconnecto.me) * Written by Da Zheng (zhengda1936@gmail.com) * * This file is part of FlashMatrix. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file exc...
C
matrix/local_vec_store.h
zheng-da/FlashX
apache-2.0
8,177
282
codeparrot/github-code
ef2dffc45761f41e37a7af280847df166590e61a5f67985aad2fd4cd3e807b37
package com.wwq.genesisfreelander.mvp.presenter.setting; import com.wwq.genesisfreelander.model.json.FindTalkEntity; import com.wwq.genesisfreelander.mvp.contract.setting.SetCommentContract; import com.wwq.genesisfreelander.mvp.model.setting.SetCommentModel; import rx.Subscriber; import rx.Subscription; /** * Creat...
Java
app/src/main/java/com/wwq/genesisfreelander/mvp/presenter/setting/SetCommentPresenter.java
weiwenqiang/GenesisFreelander
apache-2.0
1,493
47
codeparrot/github-code
45e345463fc9d20d985e5431ed2ce728a4efadd885f3f524014a0909c8fe1caa
/////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2007 University of Texas at Austin and (C) 2005 // University of Pennsylvania and Copyright (C) 2002, 2003 University // of Massachusetts Amherst, Department of Computer Science. // // This software is licensed under the te...
Java
tools/mstparser/src/main/java/mstparser/io/CONLLWriter.java
lephong/iornn-depparse
apache-2.0
2,238
74
codeparrot/github-code
5537ea8e1d1276d71e50bbdc6ca64c890023849edfaf35835f279120610e084d
/* * Copyright 2014 Space Dynamics Laboratory - Utah State University Research Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
Java
server/openstorefront/openstorefront-core/model/src/main/java/edu/usu/sdl/openstorefront/core/entity/UserWatch.java
jbottel/openstorefront
apache-2.0
2,441
115
codeparrot/github-code
53a2fcd69d00cf54eea780412ad702fe7a2b8a0cccb2caead971bb03e34ba7d9
package events import ( "io" "time" "github.com/gravitational/teleport/lib/session" ) // DiscardAuditLog is do-nothing, discard-everything implementation // of IAuditLog interface used for cases when audit is turned off type DiscardAuditLog struct { } func (d *DiscardAuditLog) Close() error { return nil } func...
GO
lib/events/discard.go
sokoow/teleport
apache-2.0
1,728
62
codeparrot/github-code
4ca082190599e5bf9a9d29118054d1d1339974dc73298ad74843d71da4a07862
package com.box.l10n.mojito.service.tm; import com.box.l10n.mojito.entity.TMTextUnitVariant; import com.box.l10n.mojito.entity.TMTextUnitVariantComment; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import org.joda.time.DateTime; import java.util.ArrayList; import java.util.List; /** * Used to serial...
Java
webapp/src/main/java/com/box/l10n/mojito/service/tm/ImportExportNote.java
box/mojito
apache-2.0
2,582
97
codeparrot/github-code
844e9704f0a31712a5f0f8d2f6008cd4f87cb5358398b46cc8c5f4d0880588fe
package org.urbanbyte.cueserver.cli.actions; import org.urbanbyte.cueserver.CueServerClient; import org.urbanbyte.cueserver.cli.InputParser; import static com.google.common.base.Preconditions.checkNotNull; /** * Example for updating a cue. * <p> * author: Chris Reising */ public class DeleteCueAction implements ...
Java
cli/src/main/java/org/urbanbyte/cueserver/cli/actions/DeleteCueAction.java
creising/CueServer-Client
apache-2.0
1,098
50
codeparrot/github-code
8449b7577514b65ecd1bb26b41e934800f4bb5573fa7604c179668fe0e7e1b62
// ---------------------------------------------------------------------------------- // // Copyright Microsoft Corporation // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apac...
C#
src/ServiceManagement/Services/Commands.Utilities/Scheduler/SchedulerMgmntClient.CreateJobs.cs
nandhanurrevanth/azure-powershell
apache-2.0
31,825
574
codeparrot/github-code
d994d4a6b59a8091ec798dd3073e7754f420d25d28f886b0f2dbb7d803953b9d
package org.scribble.parser.ast; import org.antlr.runtime.tree.CommonTree; import org.scribble.ast.MessageSigNameDecl; import org.scribble.ast.AstFactoryImpl; import org.scribble.ast.name.qualified.MessageSigNameNode; import org.scribble.parser.ScribParser; import org.scribble.parser.ast.name.AntlrSimpleName; // FIXM...
Java
src/main/jbake/assets/docs/scribble/modules/parser/src/main/java/org/scribble/parser/ast/AntlrMessageSigDecl.java
scribble/scribble.github.io
apache-2.0
1,710
55
codeparrot/github-code
ee394bca845576d0b28a6254b122159234477cccf3eee46f9aa0ffdca070748f
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content="Open Source OTT Platform"> <meta name="author" content=""> <title>Open OT...
HTML
index.html
nexttv/nexttv.github.io
apache-2.0
14,680
309
codeparrot/github-code
1bbb9a1b774ff814df62eb2fe5ec1f2da963a531892d4f6888c33356fc5fd61a
package com.nucleus.opengl.shader; import com.nucleus.opengl.GLESWrapper.GLES20; import com.nucleus.opengl.GLESWrapper.GLES30; import com.nucleus.shader.ShaderVariable; /** * Data for an active named shader variable, ie variable declared and used in a compiled shader. * This can be attribute, uniform or block varia...
Java
graphics-by-opengl-j2se/src/main/java/com/nucleus/opengl/shader/NamedShaderVariable.java
rsahlin/graphics-by-opengl
apache-2.0
5,511
177
codeparrot/github-code
1f225eece48e410218b71d06cffcf3a4dde2b8e08586c0f48bb2dc464c898c64
package ch.rasc.eds.starter.service; import static ch.ralscha.extdirectspring.annotation.ExtDirectMethodType.STORE_MODIFY; import static ch.ralscha.extdirectspring.annotation.ExtDirectMethodType.STORE_READ; import java.time.ZoneOffset; import java.time.ZonedDateTime; import java.util.ArrayList; import java.util.Date;...
Java
src/main/java/ch/rasc/eds/starter/service/UserService.java
ralscha/eds-starter6-mongodb
apache-2.0
10,491
306
codeparrot/github-code
3c9836e13d4e3ae321586bc9d7308b3d5b49485db35b94e89150f4285404cb00
/* This file is part of: NoahFrame https://github.com/ketoo/NoahGameFrame Copyright 2009 - 2018 NoahFrame(NoahGameFrame) File creator: lvsheng.huang NoahFrame is open-source software and you can redistribute it and/or modify it under the terms of the License; b...
C++
NFServer/NFDBLogicPlugin/dllmain.cpp
lightningkay/NoahGameFrame
apache-2.0
2,007
57
codeparrot/github-code
a481c39cf37fed76876b27aa0ad02a10a9377b48e1e7b24b68066222d54e916b
package org.dashbuilder.dataprovider.backend.elasticsearch.rest.impl.jest.gson; import com.google.gson.*; import org.dashbuilder.dataprovider.backend.elasticsearch.rest.impl.jest.ElasticSearchJestClient; import org.dashbuilder.dataset.DataColumn; import org.dashbuilder.dataset.DataSetMetadata; import java.lang.reflec...
Java
dashbuilder-backend/dashbuilder-dataset-elasticsearch/src/main/java/org/dashbuilder/dataprovider/backend/elasticsearch/rest/impl/jest/gson/SearchQuerySerializer.java
porcelli-forks/dashbuilder
apache-2.0
3,103
73
codeparrot/github-code
e4058ffe542545d3f5953875530c631317de41ed77ae6a0887498ac8fbba4e19
/* * Copyright (C) 2013 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
android/android/src/org/jetbrains/android/inspections/lint/IntellijRegistrationDetector.java
consulo/consulo-android
apache-2.0
4,486
131
codeparrot/github-code
dd1c151f552f46a27186deff31c9c6de9c6f2266b949fd258fe6c3d398092c31
/* Copyright 2013 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software di...
GO
http.go
ijibu/groupcache
apache-2.0
5,635
201
codeparrot/github-code
4bb886ac33c21797b5786b70410fa9467d470a5c2fb24b052d1b9fd80e0b9f04
// Copyright 2015 - 2016 Square 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 ...
GO
main/web/server/common.go
square/metrics
apache-2.0
2,617
92
codeparrot/github-code
622c2bd343c250777509ebfabdb3016d708e5d24e0cf77ef3807dbfbbdd94055
/* * 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/org/apache/pig/backend/hadoop/executionengine/HExecutionEngine.java
simplegeo/hadoop-pig
apache-2.0
22,338
505
codeparrot/github-code
e135b7f5890006a3d9ce348a1054cb9b40d97cadb0428efc20428223de6bad82
/* * Copyright 2016 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 law or agreed to in...
Java
rsocket-transport-aeron/src/main/java/io/rsocket/aeron/internal/reactivestreams/AeronChannel.java
yschimke/rsocket-java
apache-2.0
3,018
99
codeparrot/github-code
814df29076cc2e03b2470f80d324423e1bc1b574a33a8b794d3a63ae99666707
/*!The Treasure Box Library * * 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 ...
C
core/src/tbox/src/tbox/container/element/obj.c
tboox/xmake
apache-2.0
3,622
120
codeparrot/github-code
d6eb1cbde9f0312c27ecc687cc505e8c80ecf15621b453bde799d7b9751cf1ee
package com.yl.merchat.widget.web; import android.annotation.TargetApi; import android.content.Context; import android.os.Build; import android.util.AttributeSet; import android.webkit.WebChromeClient; import android.webkit.WebSettings; import android.webkit.WebView; import android.webkit.WebViewClient; import com.yl...
Java
app/src/main/java/com/yl/merchat/widget/web/DWebView.java
pengzhiming/AndroidApp
apache-2.0
4,732
147
codeparrot/github-code
aeabe958719031dda2e2eb3ef5d2e2f3767635015143f5175fb2b348249ea662
<?php namespace Liuwen\Alipay\Request; /** * ALIPAY API: alipay.marketing.campaign.discount.whitelist.update request * * @author auto create * @since 1.0, 2016-11-10 14:13:49 */ class AlipayMarketingCampaignDiscountWhitelistUpdateRequest { /** * 优惠活动白名单设置 **/ private $bizContent; private $apiParas = ar...
PHP
src/Request/AlipayMarketingCampaignDiscountWhitelistUpdateRequest.php
kkfd008/alipay-sdk-php
apache-2.0
1,964
123
codeparrot/github-code
e59ede351a5a443b81c7a96e0ab4f8bc7e854b50229d3d9b297adf7c1de1efca
/******************************************************************************* * Copyright 2014 United States Government as represented by the * Administrator of the National Aeronautics and Space Administration. * All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you m...
Java
gov.nasa.ensemble.core.plan.resources/test/gov/nasa/ensemble/core/plan/resources/TestActivityEffect.java
nasa/OpenSPIFe
apache-2.0
6,538
151
codeparrot/github-code
2f169c44fe2fbbb28b61a3fabb1a630b71837f9078764fba845a1684325fc222
package kenkron.burrowers; import java.util.ArrayList; import net.minecraft.block.Block; import net.minecraft.block.BlockAir; import net.minecraft.entity.EntityCreature; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.ai.EntityAIBase; import net.minecraft.item.ItemStack; import net.minecraft...
Java
main/java/kenkron/burrowers/EntityAIBurrow.java
Kenkron/burrowers
apache-2.0
10,123
297
codeparrot/github-code
ace3e1a31f3f49a38dca907f4833c36cb3b0b6990c712df0148c0e68ae76e14f
# -*- coding: utf-8 -*- """ Created on Mon Apr 27 09:30:47 2015 @author: martin """ from Bio.Seq import Seq from Bio.Alphabet import IUPAC from Bio.SubsMat.MatrixInfo import blosum62 #remarque : Ceci n'est pas une maélioration de modifDoublon, #c'est une version alternative qui ne s'applique pas aux même doublons. de...
Python
src/modifDoublon2.py
MartinSilvert/overlappingGenesCreator
apache-2.0
1,841
61
codeparrot/github-code
8304be9b3536e79e91cf2e8f54175318127afb6f747556ebde93e2925204b313
package com.rocko.update; import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; import android.app.Service; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.os.Handler; import android.os.IBinder; import android.os...
Java
old-library-with-sample/src/main/java/com/rocko/update/UpdateService.java
zhengxiaopeng/AndroidUtils
apache-2.0
6,178
160
codeparrot/github-code
352130089abec4e15b2e2a64fc14f4e9fa732c1a209ecaef8429d10f4ae39fd1
/* * Copyright (c) 2009-2018, toby weston & tempus-fugit committers * * 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
src/main/java/com/google/code/tempusfugit/temporal/RealClock.java
tobyweston/tempus-fugit
apache-2.0
937
35
codeparrot/github-code
ba71bd6beecee128981b3179eba1ac7c5247f57d9d1bfe9f0971b6884ac451ff
package com.github.mikkoi.maven.plugins.enforcer.rule.propertyusage.configuration; import org.apache.maven.plugin.logging.Log; import org.codehaus.plexus.util.DirectoryScanner; import org.codehaus.plexus.util.StringUtils; import javax.annotation.Nonnull; import java.io.File; import java.nio.file.Path; import java.nio...
Java
src/main/java/com/github/mikkoi/maven/plugins/enforcer/rule/propertyusage/configuration/FileSpecs.java
mikkoi/maven-enforcer-property-usage
apache-2.0
4,117
100
codeparrot/github-code
7745baf9d8b0f39aefe6fa3bc35594a8186461c15ea4419edf10b2ec0582c0ed
var RoonApi = require("node-roon-api"), RoonApiStatus = require("node-roon-api-status"), RoonApiSettings = require("node-roon-api-settings"), RoonApiSourceControl = require("node-roon-api-source-control"), RoonApiVolumeControl = require("node-roon-api-volume-control"), Yamaha = require("node-yam...
JavaScript
app.js
statesofpop/roon-yamaha
apache-2.0
7,948
242
codeparrot/github-code
41414a8f0ff1cf2d11e6e7a07130bce376e550da13026a001c249208306eea7a
package native import ( "errors" "github.com/CyCoreSystems/ari/v5" ) // Modules provides the ARI modules accessors for a native client type Modules struct { client *Client } // Get obtains a lazy handle to an asterisk module func (m *Modules) Get(key *ari.Key) *ari.ModuleHandle { return ari.NewModuleHandle(m.cl...
GO
client/native/modules.go
CyCoreSystems/ari
apache-2.0
1,791
78
codeparrot/github-code
85b6b414aad9781052360720f478e0dcbc57b1829133cca4e488965105926073
package org.ssascaling; public class ModelFunctionConfigGenerator { private static double[] otherFunctionANN = { 6000, //15000 5, 0.15, 0.01 }; private static double[] throughputFunctionANN = { 6000, 5, 0.25, 0.01 }; /** * We assume the identical configuration first */ private static...
Java
src/main/java/org/ssascaling/ModelFunctionConfigGenerator.java
taochen/ssascaling
apache-2.0
977
52
codeparrot/github-code
034752b6719c8e5b4c7525c6d1a2bede8e91a8a9aeb073686449b625e703741f
package io.elegie.luchess.web.framework.routing; import io.elegie.luchess.web.framework.payload.Result; import java.io.File; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.lang.reflect.Method; import java.lang.reflect.Modifier; import java.net.URL; import java.net.URLDecoder; imp...
Java
projects/luchess-web-framework/src/main/java/io/elegie/luchess/web/framework/routing/ControllerUtil.java
Elegie/luchess
apache-2.0
5,597
143
codeparrot/github-code
e6e6f4f0bc84d91a429150a52b7e5fde986ab66221e16ff23c1bda55daad7b3f
#pragma once #include "../ui_widget.h" #include "halley/core/graphics/text/text_renderer.h" #include <climits> #include "halley/text/i18n.h" #include "halley/concurrency/future.h" namespace Halley { class UILabel : public UIWidget { public: explicit UILabel(String id, UIStyle style, LocalisedString text); explic...
C
src/engine/ui/include/halley/ui/widgets/ui_label.h
amzeratul/halley
apache-2.0
2,109
74
codeparrot/github-code
1e60bf7748f8a3ffb8cc1b1493725e054efb6d33d8f537132488abb073cb9c60
/** * Copyright 2015 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
Java
neo4art-core/src/main/java/org/neo4art/core/batch/ArtistIndexCreator.java
MZaratin-Larus/neo4art
apache-2.0
1,548
53
codeparrot/github-code
4ba88454cda801b04a7ec868efa855ff109841745233df7ec147720c147e87a4
/* * * Copyright (c) 2013-2017 Nest Labs, 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...
C++
src/wrappers/jni/security-support/native/WeaveKeyExportClientNative.cpp
openweave/openweave-core
apache-2.0
11,990
359
codeparrot/github-code
dc94721b883e8f3c19d82c8197f7f245a8f93bfa43befea78fd499542ffbc5be
# -*- coding: utf-8 -*- from optparse import make_option from django.core.management.base import BaseCommand from messytables import XLSTableSet, headers_guess, headers_processor, offset_processor from data.models import Source, Course, MerlotCategory class Command(BaseCommand): help = "Utilities to merge our da...
Python
search/data/management/commands/courses.py
ocwc/ocwc-data
apache-2.0
3,372
89
codeparrot/github-code
ebcdd58f05629aaaa54aba0df743bbb53eaf1c8ceb02c38230c2365e96e75511
package mil.nga.giat.geowave.core.ingest.kafka; import kafka.serializer.Encoder; import kafka.utils.VerifiableProperties; import org.apache.avro.specific.SpecificRecordBase; /** * Default encoder used by Kafka to serialize Avro generated Java object to * binary. This class is specified as a property in the Kafka c...
Java
core/ingest/src/main/java/mil/nga/giat/geowave/core/ingest/kafka/AvroKafkaEncoder.java
ruks/geowave
apache-2.0
972
36
codeparrot/github-code
dbb91458538e9c1f6d13faadcb2bd5e2275b2b26a12f579040634d2aa7ec753e
/** * Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.component.factory.master; import static com.opengamma.component.factory.master.DBMasterComponentUtils.isValidJmsConfiguration; import java.util.LinkedHashMap;...
Java
projects/component/src/main/java/com/opengamma/component/factory/master/InMemoryRegionMasterComponentFactory.java
McLeodMoores/starling
apache-2.0
19,314
539
codeparrot/github-code
a0b52021cc4e3e0574f650a023ec727afdcfc411604a2ff21f0553069d715781
package org.optaplanner.examples.projectjobscheduling; import org.osgi.framework.BundleActivator; import org.osgi.framework.BundleContext; public class Activator implements BundleActivator { private static BundleContext context; public static BundleContext getContext() { return context; } /* * (non-Javadoc...
Java
org.optaplanner.examples.projectjobscheduling/src/org/optaplanner/examples/projectjobscheduling/Activator.java
martenscs/optaplanner-osgi
apache-2.0
981
43
codeparrot/github-code
d9dd50d1e336d1ac7cb1fd75d2615f26d1b9399e64475e5859d659852d8e7851
################################################################################ # nc.py # # Base class for NC code creation # And global functions for calling current creator # # Hirutso Enni, 2009-01-13 # altered by Dan Falck 2010-08-04 # added tap() arguments Michael Haberler 2010-10-07 #############################...
Python
heekscnc/nc/nc.py
JohnyEngine/CNC
apache-2.0
20,018
701
codeparrot/github-code
7649b3bb7946c3e9fd3ad4451f9447c860565791aa06da8c21d4314976271184
$(function () { $(window).scroll(function() { if ($(".navbar").offset().top>30) { $(".navbar-fixed-top").addClass("sticky"); } else { $(".navbar-fixed-top").removeClass("sticky"); } }); // Flex if ($(".flexslider").length) { $('.flexslider...
JavaScript
deploy/js/theme.js
pointwesthealthcare/pwhmcdw
apache-2.0
2,502
96
codeparrot/github-code
75c80d7c8ead941383006a9b65092df32061050fdd13178e0f3ae49c910518e5
package nl.nn.adapterframework.align; import static org.junit.Assert.assertEquals; import org.junit.Before; import org.junit.Test; public class OverridesMapTest { OverridesMap<String> map; @Before public void setUp() throws Exception { map = new OverridesMap<String>(); } AlignmentContext parse(String path...
Java
core/src/test/java/nl/nn/adapterframework/align/OverridesMapTest.java
ibissource/iaf
apache-2.0
1,781
61
codeparrot/github-code
1935b3f3270cc313765ba829d1c228df21671cd6fb9d288137f2b3d77581e1f6
# -*- coding: utf-8 -*- """ Given an array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear runtime complexity. Could you implement it without using extra memory? """ __author__ = 'yelongyu1024@gmail.com' class Solution(object): def __init_...
Python
136.single_number.py
yelongyu/leetcode
apache-2.0
801
36
codeparrot/github-code
1d0dd3351c8f9047311bcde5ee4133286049a1ed0ec159c1f2ef4ffdcd67e861
// 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
java/kudu-client/src/test/java/org/apache/kudu/client/TestPartialRow.java
InspurUSA/kudu
apache-2.0
21,264
505
codeparrot/github-code
d451c1bde030542a30da438771fba1b775c2a58c6c449923e92b8d82ffa28803
package io.github.ibuildthecloud.dstack.object.postinit; import io.github.ibuildthecloud.dstack.object.ObjectDefaultsProvider; import io.github.ibuildthecloud.dstack.util.type.InitializationTask; import java.lang.reflect.InvocationTargetException; import java.util.HashMap; import java.util.List; import java.util.Map;...
Java
code/framework/object/src/main/java/io/github/ibuildthecloud/dstack/object/postinit/ObjectDefaultsPostInstantiationHandler.java
ibuildthecloud/dstack
apache-2.0
2,194
69
codeparrot/github-code
2e3c7c769801836c4399f5a8b9458dbca657fe148f5ab58a36772b7816806543
package com.leovandriel.reversible.proxy; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.List; import com.leovandriel.reversible.action.Action; import com.leovandriel.reversible.action.AdvancedRunner; public class DebugProxyCollection<T> implements Collection<T> {...
Java
src/com/leovandriel/reversible/proxy/DebugProxyCollection.java
leonardvandriel/Reversible
apache-2.0
2,866
127
codeparrot/github-code
09d2da31d693ca6df7410a9eaebc5e8bf308d5d7334a4b86543671a2f6d5fb88
package com.xrtb.jmq; import javax.servlet.http.HttpServletResponse; import org.zeromq.ZMQ; public class Pull { public Pull(HttpServletResponse response, String port, String timeout, String limit) throws Exception { int lim = 1; if (limit != null) { lim = Integer.parseInt(limit); } ZMQ.Context context =...
Java
src/com/xrtb/jmq/Pull.java
benmfaul/XRTB
apache-2.0
679
32
codeparrot/github-code
a80c642dfa0c765056b396f15a717b1dfc69cb4b76ff5c7232f3dec98ecde9db
/* * Copyright 2016-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-vault-core/src/main/java/org/springframework/vault/authentication/LoginToken.java
mp911de/spring-vault
apache-2.0
6,972
220
codeparrot/github-code
4f786dc10631e8d2fa2a28e7e5929e8f8959e3f96304130dbdc7bd598c8130de
package net.zaczek.launcherforblind.activitysupport; import net.zaczek.launcherforblind.listentries.ListEntry; import android.util.Log; /* * Abstract list activity for dealing with simple lists */ public abstract class AbstractArrayActivity extends AbstractActivity { private static final String TAG = "launcherforb...
Java
src/net/zaczek/launcherforblind/activitysupport/AbstractArrayActivity.java
arthurzaczek/launcherforblind
apache-2.0
1,817
100
codeparrot/github-code
e1ac3356731fd9e01d3aa2847b7c997538ca70626f997cf036066e6252dcf9dc
/******************************************************************************** ** Form generated from reading UI file 'vphg.ui' ** ** Created by: Qt User Interface Compiler version 5.8.0 ** ** WARNING! All changes made in this file will be lost when recompiling UI file! **********************************************...
C
SILENT/ui_vphg.h
DPSablowski/silent
apache-2.0
20,998
508
codeparrot/github-code
6e6beef0e227e87fe986472903e2ef6d36c30b5b2707165141d10ba388131f7a
/* * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights * Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "l...
Java
aws-java-sdk-route53/src/main/java/com/amazonaws/services/route53domains/model/transform/RetrieveDomainAuthCodeRequestMarshaller.java
mhurne/aws-sdk-java
apache-2.0
3,132
88
codeparrot/github-code
57bf1303c0784f2210f82074f1a1c99e38516694e461162ed2d671a3243b4de6
/* * This file is part of the PSL software. * Copyright 2011-2013 University of Maryland * * 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
psl-core/src/main/java/edu/umd/cs/psl/application/learning/weight/WeightLearningApplication.java
JackSullivan/psl
apache-2.0
4,890
150
codeparrot/github-code
91e176c06fdfeb646152c0dcef1d9bdde04e0f6ac35c0dfa943e06f3085fdfa3
// 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...
C++
src/common/recordio.hpp
asamerh4/mesos
apache-2.0
7,284
273
codeparrot/github-code
db3d683ea10bf740b17befd6f16b203e864b971714c4fef69b80ec5bc1510a43
/* * $Header: /var/chroot/cvs/cvs/factsheetDesigner/extern/jakarta-slide-server-src-2.1-iPlus Edit/projector/src/java/org/apache/slide/projector/processor/query/PropertyQuery.java,v 1.2 2006-01-22 22:45:14 peter-cvs Exp $ * $Revision: 1.2 $ * $Date: 2006-01-22 22:45:14 $ * * =======================================...
Java
projector/src/java/org/apache/slide/projector/processor/query/PropertyQuery.java
integrated/jakarta-slide-server
apache-2.0
3,785
86
codeparrot/github-code
888e49f517f8d1925cd4679ab3f054ac738e3393d4aa37d6fa69d690cf82e87e
/* * Copyright 2015-2019 Ben Ashford * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
Rust
src/lib.rs
benashford/rs-es
apache-2.0
8,299
291
codeparrot/github-code
c74a729deb9bb398a7baa3a9c7c18277fcc43207eca3c06733a2076803ef28ba
/* * Copyright 2019 VMware, 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
Java
micrometer-binders/src/main/java/io/micrometer/binder/mongodb/MongoMetricsCommandListener.java
micrometer-metrics/micrometer
apache-2.0
2,889
89
codeparrot/github-code
d0aef2dc542736ccd52868e176f728c8f2c8430280d5bbb384a808aa5f7cdf17
/* * Copyright 2015 Techgrains Technologies * * 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...
Java
TGFramework/library/src/main/java/com/techgrains/session/TGSession.java
techgrains/TGFramework-Android
apache-2.0
6,732
242
codeparrot/github-code
322e3243f7b32c7c21afbe2b12a73c9f851c604aab37be3f3306be17dfa1b714
/** * Copyright 2015-2018 The OpenZipkin 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 ...
Java
benchmarks/src/main/java/zipkin2/internal/BufferBenchmarks.java
soundcloud/zipkin
apache-2.0
3,253
100
codeparrot/github-code
61a6cdeba4b108c57b553826dc61428e83d13fa9b5fc979c62a844be3c598ccd
package br.eti.erickcouto.occultflashtag; /* * Copyright (C) 2015 Erick Couto * * 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
occult-flash-tag/app/src/main/java/br/eti/erickcouto/occultflashtag/Mark.java
erick-couto/occult-flash-tag
apache-2.0
1,503
65
codeparrot/github-code
d72088281414f3cbcf8e30451d52d4a5af29026723bd7f137d44123fd0161af7
import React from "react"; import {Input} from "reactstrap"; interface TriggerConfigProps { allModuleTypes: string[]; setConfig: (value: any) => void; configValue: string; } const TriggerConfig: React.FC<TriggerConfigProps> = ({ configValue = "", setConfig, allModuleTypes, }) => { const [triggerType, set...
TypeScript
src/components/views/Countermeasures/TriggerConfig.tsx
Thorium-Sim/thorium
apache-2.0
2,124
78
codeparrot/github-code
7a5c3ccce86f63b139bc4b6fe00352c4ad018d1829c11b5ecfb57b600a19230a
#pragma once #include "envoy/api/v2/discovery.pb.h" #include "envoy/config/grpc_mux.h" #include "envoy/config/subscription.h" #include "common/common/assert.h" #include "common/common/logger.h" #include "common/grpc/common.h" #include "common/protobuf/protobuf.h" #include "common/protobuf/utility.h" namespace Envoy ...
C
source/common/config/grpc_mux_subscription_impl.h
sebrandon1/envoy
apache-2.0
3,553
90
codeparrot/github-code
a3886e57a0ca0865a2fd443643bce2d3ae001f593f3c3b6dc8899435fcaf78e9
/* *Copyright (c) 2005-2012, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * *WSO2 Inc. licenses this file to you under the Apache License, *Version 2.0 (the "License"); you may not use this file except *in compliance with the License. *You may obtain a copy of the License at * *http://www.apache.org/licenses/LI...
Java
components/org.wso2.carbon.appmgt.impl/src/main/java/org/wso2/carbon/appmgt/impl/token/DefaultClaimsRetriever.java
lakshani/carbon-mobile-appmgt
apache-2.0
5,394
130
codeparrot/github-code
bbe8f436ab7f5d7436f67ed7397da4ac29e7c89033ca8b0b2045ff2073fc4f2c
package de.frosner.broccoli.nomad.models import play.api.libs.functional.syntax._ import play.api.libs.json.{JsPath, Reads} import shapeless.tag import shapeless.tag.@@ /** * A partial model for a single allocations. */ final case class Allocation( id: String @@ Allocation.Id, jobId: String @@ Job.Id, ...
Scala
server/src/main/scala/de/frosner/broccoli/nomad/models/Allocation.scala
FRosner/cluster-broccoli
apache-2.0
1,113
33
codeparrot/github-code
9b372f65e424145ad443441e8c88addc760234feba86e0ee91f784aadc365ab2
// Copyright 2000-2018 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.siyeh.ig.classlayout; import com.intellij.codeInspection.InspectionProfileEntry; import com.siyeh.ig.LightInspectionTestCase; import org.jetbrains.annotations.Nullabl...
Java
plugins/InspectionGadgets/testsrc/com/siyeh/ig/classlayout/UtilityClassCanBeEnumInspectionTest.java
paplorinc/intellij-community
apache-2.0
1,394
42
codeparrot/github-code
1735caa013e6b1d3e610fb64deb64b438f2dab57e3ca489c195f1c54445d7fe6
package inventory import ( "github.com/docker/infrakit/pkg/controller/inventory" "github.com/docker/infrakit/pkg/discovery" "github.com/docker/infrakit/pkg/launch/inproc" logutil "github.com/docker/infrakit/pkg/log" "github.com/docker/infrakit/pkg/plugin" "github.com/docker/infrakit/pkg/rpc/client" manager_rpc ...
GO
pkg/run/v0/inventory/inventory.go
chungers/infrakit
apache-2.0
2,428
93
codeparrot/github-code
f531ea0c534695f2ba7ee953795c0a3910ddb6b7b54dd652077b28706b04c7a7
/* * Copyright 2007-2022 Scott C. Gray * * 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
jsqsh-core/src/main/java/org/sqsh/DataFormatter.java
scgray/jsqsh
apache-2.0
14,248
470
codeparrot/github-code
881e820f095833d67a9dde58aeac4f46ff1623ef6da9e88e590758dfd49c3002
package com.example.greatbook.base; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import butterknife.ButterKnife; import butterknife.Unbinder; /** * Created by...
Java
greatbook/src/main/java/com/example/greatbook/base/BaseFragment.java
zhiaixinyang/LightThink
apache-2.0
1,231
47
codeparrot/github-code
7eccf022d1d70b6c6a4a8ab52c07273b53cb60d4a2d7a43aa2222b64f9ac25ab
/******************************************************************************** ** Form generated from reading UI file 'configdlg.ui' ** ** Created: Wed Oct 21 15:22:21 2015 ** by: Qt User Interface Compiler version 4.8.2 ** ** WARNING! All changes made in this file will be lost when recompiling UI file! *******...
C
ModuleTest/ModuleTest/GeneratedFiles/ui_configdlg.h
sxxlearn2rock/SissorActionTest
apache-2.0
1,588
57
codeparrot/github-code
539a5aa7e04fb99efc1761a2dc01acbccfe5297b7d04309cbbae3f8c6586893f
using kmd.Core.Explorer.Contracts; using System; using System.Threading.Tasks; using Windows.Storage; using Windows.Storage.FileProperties; using Windows.UI.Xaml.Media; using Windows.UI.Xaml.Media.Imaging; namespace kmd.Core.Explorer.Models { public class ExplorerItem : IExplorerItem { public IStorage...
C#
kmd.Core/Explorer/Models/ExplorerItem.cs
kommanderapp/kmd-uwp
apache-2.0
2,367
77
codeparrot/github-code
cde778d17c2d06e8d066fea8e469a96156a1cd07cfda3238990df2086aa5dbe6
// Copyright 2019 NDP Systèmes. All Rights Reserved. // See LICENSE file for full licensing details. package models import ( "fmt" "strings" "github.com/hexya-erp/hexya/src/models/security" ) // SyncDatabase creates or updates database tables with the data in the model registry func SyncDatabase() { log.Info("U...
GO
src/models/database_sync.go
hexya-erp/hexya
apache-2.0
11,038
354
codeparrot/github-code
c698a978e725ae7ae1d3fb2b6e0173850090a044654a9c4db549e6687fb3a1dc
#ifndef ARNOLDI_GENERIC_H_ #define ARNOLDI_GENERIC_H_ /**** arnoldi_generic.h - Implicitly Restarted Arnoldi Method ******** * David Weir, Joni Suorsa and Teemu Rantalaiho 2011-14 * ********************************************************************* * * Copyright 2011-2014 David Weir, Joni Suorsa ...
C
arnoldi_generic.h
trantalaiho/Cuda-Arnoldi
apache-2.0
85,758
3,531
codeparrot/github-code
ee205f51867d601d69b4ead4109c51e70fa7600202a665e66e03c6f437ffb3d7
/* Copyright (c) 2010, 2011, 2015 Nicira, 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...
C
lib/cfm.h
onecloud/ovs-igmp-v3
apache-2.0
3,941
115
codeparrot/github-code
eac7428c2ac0905c370eace897b09391e3794ed26bb54431abe2ec2879044fbf
<html> <?php include 'data/common/head.php' ?> <body> <center> <div style="display:inline;"> <div class = "first_index"> <!-- Full Start (This Contain Two tables (Right and Left)) --> <table > <tr> <td> <!-- Left Table Start --> <table class="left_container" align="left" bord...
PHP
index.php
imarunsinghal/sewabhartividya
apache-2.0
4,404
131
codeparrot/github-code
cfb5783f011573ee99c38d139a648983447d7f6b75674716ebf84c4a5a7bbc45
<?php if ( isset( $_POST ) ) { extract( $_POST ); } else { exit(); } ?> <table class = "reference" cellspacing = "0" cellpadding = "0" border = "1" width = "auto" align = "center" > <tbody > <tr > <td colspan = "2" color = "#FFFFFF" bgcolor = "#0E3960" align = "left" > <font size = "3" color...
PHP
views/home/home.php
leandrolasnor/scare
apache-2.0
1,622
60
codeparrot/github-code
4c52673ff50e03c87e7ffbb57d05a52f1eb72f234428aeb02b3c8233e72350dd
/** * Copyright IBM Corp. 2020, 2020 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. * * @jest-environment node */ 'use strict'; describe('yml', () => { let vol; let adapter; beforeEach(() => { jest.mock('fs', () =>...
JavaScript
packages/icon-build-helpers/src/metadata/adapters/__tests__/yml-test.js
carbon-design-system/carbon-components
apache-2.0
1,532
61
codeparrot/github-code
2c2014ba281e9a76b184481832ce0baa28406fbfc7e13e386ae1ede5bcc740b6
angular.module("userTableModule", []) .controller('userTableController', ['$http', function ($http, $scope, $log) { var userTable = this; userTable.users = []; $http.get('/allUsers').success(function (data) { userTable.users = data; }).error(function (data) { })...
JavaScript
src/main/resources/public/js/userTableModule.js
andreevym/stadium
apache-2.0
1,224
40
codeparrot/github-code
8ea5c70fb2c979e9b92aec7fc37aaf1af110e81f324e5838824f597eaa67792d
import subprocess, os, sys from reverseZone_naming import reverseZone_name from netaddr import * zone_files_path="/etc/bind/zones" def remove_reverse_record(): host_name_to_be_removed= sys.argv[1] reverse_zone_file_name,reverse_zone_name=reverseZone_name() os.chdir(zone_files_path) readFiles = open(reverse_zone_f...
Python
blueprints/clustered-dns/dns/dns_remove_reverse_record.py
anilveeramalli/cloudify-azure-plugin
apache-2.0
927
34
codeparrot/github-code
9fb04d70aaee7c3569c7888bcb3638c042fecc65a8d96bed2432a6abab41c920
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/resiliencehub/model/RecommendationTemplateStatus.h> #include <aws/core/utils/HashingUtils.h> #include <aws/core/Globals.h> #include <aws/core/utils/EnumParseOverflowContainer.h> using n...
C++
aws-cpp-sdk-resiliencehub/source/model/RecommendationTemplateStatus.cpp
aws/aws-sdk-cpp
apache-2.0
2,749
85
codeparrot/github-code
6ff58478ae28e4c16e1810bb0794bebbd3c2fcbe0fa5621d0043cc36e2714727
package com.ctrip.xpipe.redis.console.health.console; import com.ctrip.xpipe.redis.console.alert.ALERT_TYPE; import com.ctrip.xpipe.redis.console.config.impl.DefaultConsoleDbConfig; import com.ctrip.xpipe.redis.console.model.ConfigModel; import org.springframework.stereotype.Component; /** * @author chen.zhu * <p> ...
Java
redis/redis-console/src/main/java/com/ctrip/xpipe/redis/console/health/console/SentinelAutoProcessChecker.java
Yiiinsh/x-pipe
apache-2.0
1,194
34
codeparrot/github-code
2f7066755a109c363c6550629784b1f717334a30ef98f61b35e8a12f67909cb9
using System; using System.Drawing; using System.Linq; namespace SudokuSolver { public class BoardRenderer { private const float Gbw = 1; private readonly Board board; private Size viewportSize; private SizeF cellSize; private SizeF boardSize; public Image Re...
C#
SudokuSolver/SudokuSolver/BoardRenderer.cs
iqman/playground
apache-2.0
7,456
193
codeparrot/github-code
fe048f44213b172a7d4b01a6a3e495976d61af0f6562a80a86c2bc6c77f9ca29
package org.jerlang.erts.erlang; import org.jerlang.type.Atom; import org.jerlang.type.Integer; import org.jerlang.type.List; import org.jerlang.type.Term; /** * The multiply operator */ public class ErlangAtomMultiply { private ErlangAtomMultiply() { } public static Term dispatch(List params) { ...
Java
src/main/java/org/jerlang/erts/erlang/ErlangAtomMultiply.java
jerlang/jerlang
apache-2.0
828
37
codeparrot/github-code
e70e5dadc8bf1f62d8aefcd5ef79270eb555a2e768323c021abcdff136e9a473
/******************************************************************************* * Copyright (c) 2009 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is a...
Java
phizdets/phizdets-idea/eclipse-src/org.eclipse.php.debug.core/src/org/eclipse/php/internal/debug/core/zend/model/ResolveBlackList.java
vovagrechka/fucking-everything
apache-2.0
2,605
92
codeparrot/github-code
17da1f383e02aa3ac0fc0cce4ae6cf074b9dc84f6fbd5ff433f8dc07453d0650
/* * - * #%L * Pipeline: AWS Steps * %% * Copyright (C) 2017 Taimos 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/test/java/de/taimos/pipeline/aws/S3UploadStepTest.java
tekkamanendless/pipeline-aws-plugin
apache-2.0
1,213
43
codeparrot/github-code
90c8669dbaf323565a230afb52a85849ee4dc7a0bda4cac62dcc26f87bed1ad2
/** * Copyright 2012 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
Java
src/main/java/com/brainardphotography/acracadabra/GuestbookServlet.java
JohnBrainard/acra-cadabra
apache-2.0
1,501
45
codeparrot/github-code
381b9cc011979b7976355a58955af33b6290552aba4523b38918e8612e62bf28
/* * Copyright 2007-2009 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/ecl2.php * * Unless requi...
Java
impl/src/main/java/org/kuali/rice/kew/actionrequest/bo/RuleMaintenanceActionRequestCodeValuesFinder.java
sbower/kuali-rice-1
apache-2.0
3,400
73
codeparrot/github-code
2f873606ed2c605d3ab2e07dce6071474dd9067879a18d2eeb573a847097a4da
package edu.emory.cci.aiw.i2b2etl.dest.table; /* * #%L * AIW i2b2 ETL * %% * Copyright (C) 2012 - 2015 Emory University * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * ...
Java
src/main/java/edu/emory/cci/aiw/i2b2etl/dest/table/AbstractFactHandler.java
eurekaclinical/aiw-i2b2-etl
apache-2.0
4,221
108
codeparrot/github-code
f2b7efa60240ca968fd48689a5afcd74e4f53f54441cbd6a6f814c4a2a2949bd
package com.bxj.common; import android.os.Bundle; import android.support.v4.app.FragmentActivity; import android.text.TextUtils; import android.view.GestureDetector; import android.view.GestureDetector.SimpleOnGestureListener; import android.view.MotionEvent; import android.view.View; import android.widget.Button; imp...
Java
app/src/main/java/com/bxj/common/BaseActivity.java
wudizhuo/BXJ
apache-2.0
3,749
161
codeparrot/github-code
809b0c666334449a7f740fa82fe76cef71ae67f73ac8edcda9df768214674cca
package kr.dogfoot.hwplib.writer.bodytext.paragraph.control.secd; import kr.dogfoot.hwplib.object.bodytext.control.sectiondefine.BatangPageInfo; import kr.dogfoot.hwplib.object.bodytext.control.sectiondefine.ListHeaderForBatangPage; import kr.dogfoot.hwplib.object.etc.HWPTag; import kr.dogfoot.hwplib.util.compoundFile...
Java
src/main/java/kr/dogfoot/hwplib/writer/bodytext/paragraph/control/secd/ForBatangPageInfo.java
neolord0/hwplib
apache-2.0
1,596
58
codeparrot/github-code