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
24dfddd30a99bd7385cc3d8e8c395fe8885aa1506dbf68a1eea5d259d4a85727
/******************************************************************************* * Copyright (c) 2013 GigaSpaces Technologies Ltd. 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 th...
Java
src/main/java/org/openspaces/grid/gsm/machines/backup/MachinesStateBackupToSpace.java
Gigaspaces/xap-openspaces
apache-2.0
8,314
192
codeparrot/github-code
cd5588bcc81d53bdc5f64db141a4303e409d0ccb70ddba8664bbfc4adc3323e8
package ignition // This schema structure is based on github.com/coreos/ignition/config/v2_2/types/schema.go // Due to issue with unmarshalling embedded anonymous nested structures, // this file removes such structures. // Changed types: Directory, File, Link. type CaReference struct { Source string `json...
GO
pkg/ignition/schema.go
giantswarm/k8scloudconfig
apache-2.0
11,251
210
codeparrot/github-code
646b727edc8780732b3f51b07469f078efe356848aa92ca9b6631c28c00ea4f1
#!/usr/bin/env python2 # find-kam-node.py: python2 example of loading kam, resolving kam node, and # printing out BEL terms # # usage: find-kam-node.py <kam name> <source_bel_term> from random import choice from suds import * from ws import * import time def load_kam(client, kam_name): ''' ...
Python
web-api/python/find-kam-node.py
OpenBEL/openbel-framework-examples
apache-2.0
2,020
71
codeparrot/github-code
0fe9a8c51c4c046e63902d87e0349c5622191bded4e450488469c17fe3d178ea
package com.planet_ink.coffee_mud.Abilities.Songs; import com.planet_ink.coffee_mud.core.interfaces.*; import com.planet_ink.coffee_mud.core.*; import com.planet_ink.coffee_mud.core.collections.*; import com.planet_ink.coffee_mud.Abilities.interfaces.*; import com.planet_ink.coffee_mud.Areas.interfaces.*; impor...
Java
com/planet_ink/coffee_mud/Abilities/Songs/Play_Flutes.java
oriontribunal/CoffeeMud
apache-2.0
2,309
78
codeparrot/github-code
a90c23b06b1c8de8579fd53c7069755c46d1dbd2be403ed7bad5e00574471394
/** * Class describing a basic get ok frame * * @copyright 2014 Copernica BV */ /** * Set up namespace */ namespace AMQP{ /** * Class implementation */ class BasicGetOKFrame : public BasicFrame { private: /** * server-assigned and channel specific delivery tag * @var uint64_t */ u...
C
src/basicgetokframe.h
fantastory/AMQP-CPP
apache-2.0
4,628
192
codeparrot/github-code
03179a77d06fe6a71751f1921997b59b0d1a25a139a8335d2e533fd4592dca97
package io.cattle.platform.allocator.service.impl; import io.cattle.platform.core.util.PortSpec; import java.util.List; public class PortBindingResourceRequest implements ResourceRequest { private String instanceId; private String resourceUuid; private String resource; private List<PortSpec> portRequ...
Java
code/iaas/allocator/src/main/java/io/cattle/platform/allocator/service/impl/PortBindingResourceRequest.java
Cerfoglg/cattle
apache-2.0
1,312
61
codeparrot/github-code
0117fa14a1e2569075883978e7b924229f8d16839dfa726fc29e75324e029a1d
""" Weather component that handles meteorological data for your location. For more details about this component, please refer to the documentation at https://home-assistant.io/components/weather/ """ import asyncio import logging from homeassistant.helpers.entity_component import EntityComponent from homeassistant.he...
Python
homeassistant/components/weather/__init__.py
persandstrom/home-assistant
apache-2.0
4,851
171
codeparrot/github-code
47be2a08e0c556c0b0644d115a7c1f6c1060cd0e0a78a45faa7a2ff82f0fb429
/** * Copyright (c) 2015 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
Java
src/main/java/org/trustedanalytics/servicebroker/hdfs/plans/binding/HdfsBindingClient.java
trustedanalytics/hdfs-broker
apache-2.0
2,311
65
codeparrot/github-code
f68b2fc27f3a4b689410ed4ff52d79cdc5a67776ef52266918c5455b23161d88
/* * Copyright 2014 Renaud Bruneliere * * 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...
Scala
core/src/test/scala/com/github/bruneli/scalaopt/core/gradient/SteihaugCGSpec.scala
bruneli/scalaopt
apache-2.0
1,883
56
codeparrot/github-code
31ed23ba64c56ec98f4aa2f767224267e9558897666e8d2ef30ca173feb610eb
// // main.cpp // test // // Created by 刘金鑫 on 14-3-11. // // #ifndef _WIN32 #include <stdio.h> #else #include "stdafx.h" #include <conio.h> #endif #include "../../src/tcpclient.h" #ifndef _WIN32 #include <termios.h> #include <unistd.h> #include <fcntl.h> int _kbhit(void) { struct termios oldt, newt; int c...
C++
examples/test/main.cpp
adrianx77/packet_tcp_client
apache-2.0
1,312
77
codeparrot/github-code
869b518189011216b0bb893478d8b5e8b3ec3b3ffea4c360ba09e81aac3a23b3
/**************************************************************** * Licensed to the AOS Community (AOS) under one or more * * contributor license agreements. See the NOTICE file * * distributed with this work for additional information * * regarding copyright ownership. The AOS licenses this...
Java
java/security/crypto/src/main/java/io/aos/crypto/spl02/KeyGeneratorExample.java
XClouded/t4f-core
apache-2.0
3,479
82
codeparrot/github-code
abab30815b719b76302b8dd10ccfd7b256849fca0dea097d2b63d81740d4359d
/* $NetBSD: trm.c,v 1.36 2014/03/29 19:28:25 christos Exp $ */ /*- * Copyright (c) 2002 Izumi Tsutsui. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code mu...
C
sys/dev/pci/trm.c
execunix/vinos
apache-2.0
69,409
2,672
codeparrot/github-code
b5d7f7a6d0cb8fe7a7e219be8225c6243b30eb52c3b0be6ccb37265c7ab31b4b
// Copyright 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. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unles...
C++
quality_of_service_demo/rclcpp/src/utils.cpp
ros2/demos
apache-2.0
3,690
146
codeparrot/github-code
1afb2ae1ff4d5a23568206b213e7f0bf8cecedd7bc19ea9a072c4e956b18b5a8
Clazz.declarePackage ("J.util"); Clazz.load (null, "J.util.SimpleUnitCell", ["java.lang.Float", "J.util.ArrayUtil", "$.Matrix4f", "$.V3"], function () { c$ = Clazz.decorateAsClass (function () { this.notionalUnitcell = null; this.matrixCartesianToFractional = null; this.matrixFractionalToCartesian = null; this.na...
JavaScript
root/static/js/jsmol/j2s/J/util/SimpleUnitCell.js
DeepLit/WHG
apache-2.0
7,722
230
codeparrot/github-code
2cfba577681deb47484c3233ff1a1e3b037621a6bbf95274e1da81f923ae6d95
package com.sequenceiq.cloudbreak.core.flow2.config; import java.util.Arrays; import java.util.List; import java.util.stream.Collectors; import java.util.stream.Stream; import javax.annotation.PostConstruct; import javax.annotation.Resource; import javax.inject.Inject; import org.springframework.stereotype.Component...
Java
core/src/main/java/com/sequenceiq/cloudbreak/core/flow2/config/Flow2Initializer.java
sequenceiq/cloudbreak
apache-2.0
1,149
39
codeparrot/github-code
66a0db789f8190ba0c3218f571264a032476975f611aad4002d66e92732f3969
#! /usr/bin/env python # coding=utf-8 # Copyright (c) 2019 Uber Technologies, 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 # # Unles...
Python
ludwig/collect.py
uber/ludwig
apache-2.0
15,469
502
codeparrot/github-code
c8b9ded3c9104cbe0c5cc27a2b70ef937f3e230d19b0be836555e6958c33f8df
import { StripePaymentCardTextFieldBase, cardCvcProperty, cardExpDateProperty, cardNumberProperty, cardCvcPlaceholder, cardExpirationPlaceholder, cardNumberPlaceholder, } from './stripe-payment-card-text-field.common'; export class StripePaymentCardTextField extends StripePaymentCardTextFieldBase { pri...
TypeScript
src/stripe-payment-card-text-field.ios.ts
piotrilski/nativescript-stripe-sdk
apache-2.0
5,480
216
codeparrot/github-code
6dbb2597ced64c21e9168d18f0e1522a5c4906ea60bedb6e87300737a7c9f618
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.chrome.browser.toolbar; import android.content.Context; import android.graphics.drawable.Drawable; import android.os.Handler; import...
Java
app/src/main/java/org/chromium/chrome/browser/toolbar/ToolbarManager.java
Smalinuxer/Vafrinn
apache-2.0
42,616
1,072
codeparrot/github-code
fd189c00afc467b8d3cd72df5808fa9e3eec49b6357628c4985f736c08bbeb99
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2013 The Plaso Project Authors. # Please see the AUTHORS file for details on individual 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 L...
Python
plaso/formatters/android_calls.py
iwm911/plaso
apache-2.0
1,199
38
codeparrot/github-code
7673419ac8749b40cf9ef9e6207078ec1959a2c22de9b3fe89c4a5d3833cb1b7
//engine: JScript //uname: diff_1C //dname: Backend к diff, типовое сравнение от 1С (mxl,txt,js,vbs) //addin: global global.connectGlobals(SelfScript) function СравнениеФайлов1С(Path1, Path2) { var file1 = v8New("File", Path1); var file2 = v8New("File", Path2); if ((!file1.isFile()) & (!file2.i...
JavaScript
core/addins/dvcs/diff_1C.js
artbear/snegopat-reborn-scripts
apache-2.0
1,447
33
codeparrot/github-code
906fb12dc253f5b0199c4b0169d838996c83857614fb7c6495214cc857cd48ca
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache license, Version 2.0 * (the "License"); you may n...
Java
log4j-core/src/main/java/org/apache/logging/log4j/core/appender/rolling/RollingFileManager.java
lqbweb/logging-log4j2
apache-2.0
16,439
433
codeparrot/github-code
a58197dca4931e9e6ddee168c2cca52ce3e7e7c36b97c63f7d8bea052f273eb8
package biz.neustar.ultra.rest.client; import biz.neustar.ultra.rest.client.util.JsonUtils; import biz.neustar.ultra.rest.constants.UltraRestSharedConstant; import biz.neustar.ultra.rest.constants.ZoneType; import biz.neustar.ultra.rest.dto.AccountList; import biz.neustar.ultra.rest.dto.AlertDataList; import biz.neust...
Java
src/main/java/biz/neustar/ultra/rest/client/RestApiClient.java
ultradns/java_rest_api_client
apache-2.0
50,229
964
codeparrot/github-code
db75b8f5a4b6f99a577ef3a8d6ff3cedd4fc29e05d464d1e7eb5d6fcecb38d0a
// Copyright 2016 Mark Clarkson // // 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
obdi/workers.go
mclarkson/obdi
apache-2.0
6,662
306
codeparrot/github-code
a8d1f108010abe53c7255e5dbb759d41ad2a59b428e3c2c1b60a4a1e96aadb65
// Copyright 2013 Velodyne Acoustics, 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 ...
C
VelodyneHDL/vtkPlaneFitter.h
frizaro/Veloview
apache-2.0
2,011
62
codeparrot/github-code
c8b3cc623ce4adc04d69a24e9c3f9e84cc8e3b7e08c0ab445c4afecfe38b1b7c
/** * Plus : Checkbox Tree * Author : zhaoyang */ (function ($) { $.fn.treeview = function(settings) { var chkname = "pri", dfop = { method: "POST", datatype: "json", url: false, cbiconpath: contextPath + "/rc/sc/jq/themes/treeview/img/tree/", oncheckboxclick: false, // 当checks...
JavaScript
WebRoot/rc/sc/jq/plus/checkboxTree.js
TTroia/CommunityManager
apache-2.0
8,961
334
codeparrot/github-code
72f4ecef7239fa76bbe33123427919068fe2369820bc45e72659e2b5372f16b9
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
Python
tensorflow/contrib/framework/python/framework/tensor_util.py
naturali/tensorflow
apache-2.0
11,844
332
codeparrot/github-code
b05d5f0d66142e579b49265780cfd9a621270ede83a78d2126d0aa9af3cce9d1
/* * 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-qldb/src/main/java/com/amazonaws/services/qldb/model/transform/DescribeJournalKinesisStreamResultJsonUnmarshaller.java
aws/aws-sdk-java
apache-2.0
3,008
75
codeparrot/github-code
f8766fe703ba0fdd86b320279e32560792dd6e5ad62856d8545be1105ad2fa2c
/* * 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-neptune/src/main/java/com/amazonaws/services/neptune/model/transform/DeleteDBInstanceRequestMarshaller.java
aws/aws-sdk-java
apache-2.0
2,434
59
codeparrot/github-code
43339c26c5f9797d3e1d53fe5f8b344eadb5e54f3489d318644e3b3896cbe3d1
/* * TlosSW_V1.0_Model * com.likya.tlossw.model.client.resource : CpuInfoTypeClient.java * @author Merve Ozbey * Tarih : 29.Sub.2012 09:55:35 */ package com.likya.tlossw.model.client.resource; import java.io.Serializable; public class CpuInfoTypeClient implements Serializable { private static fin...
Java
TlosSW_V1.0_Model/src/com/likya/tlossw/model/client/resource/CpuInfoTypeClient.java
likyateknoloji/TlosSWGroup
apache-2.0
1,160
47
codeparrot/github-code
f5908b9be49f27bf89f43d1a5ac32882ac579d27daae15dd095850ca21512d8f
/* * Seldon -- open source prediction engine * ======================================= * * Copyright 2011-2015 Seldon Technologies Ltd and Rummble Ltd (http://www.seldon.io/) * * ******************************************************************************************** * * Licensed under the Apache License, V...
Java
server/src/io/seldon/api/service/async/JdoAsyncActionFactory.java
smrjan/seldon-server
apache-2.0
4,727
158
codeparrot/github-code
ca37a5e23e3ae1cebfffdf117914a54eb8102a5b11aae2b1b65e88f69c9c2c65
package cases; import java.util.LinkedHashMap; import java.util.Map; import java.util.Random; import org.testng.annotations.Test; import base.TestBase; import net.sf.json.JSONArray; import net.sf.json.JSONObject; import utils.APIUtil; import utils.HttpUtil; @Test public class ApiTestModifyEvidence exte...
Java
test/testcase/testng/APITest-1.0/src/cases/ApiTestModifyEvidence.java
bubichain/blockchain
apache-2.0
13,788
404
codeparrot/github-code
f58b1fdf7469f30304361c7cd35402e85b5c33018372d5f09b7611f51b67b1a1
/* * Copyright IBM Corp. 2017 * * 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 wr...
JavaScript
lib/files.js
steveatkin/Subtitler
apache-2.0
1,903
73
codeparrot/github-code
bb13f2ba8d418a35119eccb1d1559788c1a007a230d989fae7ab8d237f9ee3de
/** * Project Name:demo8 * File Name:MyConfiger.java * Package Name:com.testin * Date:2016年12月16日上午12:45:03 * Copyright (c) 2016, All Rights Reserved. * */ package com.testin; import java.lang.reflect.Method; import java.util.concurrent.ArrayBlockingQueue; import java.util.concurrent.Executor; import java.util....
Java
demo8/src/main/java/com/testin/MyConfiger.java
xushjie1987/java-demos
apache-2.0
2,354
69
codeparrot/github-code
068e40f1ff02c874e43e97798f63ae7a455fdaddbd316c579c08d92b097c14f3
// // ======================================================================== // Copyright (c) 1995-2014 Mort Bay Consulting Pty. Ltd. // ------------------------------------------------------------------------ // All rights reserved. This program and the accompanying materials // are made available under the ter...
Java
jetty-util/src/main/java/org/eclipse/jetty/util/QuotedStringTokenizer.java
sdw2330976/Research-jetty-9.2.5
apache-2.0
17,643
610
codeparrot/github-code
12d5430b7dea94df4f0c314abdf95f19661545afe582e510ac17de40ef4241c9
/*------------------------------------------------------------------------- * * translator.c * Author: Ying Ni yni6@hawk.iit.edu * One-line description * * Here starts the more detailed description where we * explain in more detail how this works. * *----------------------------------------...
C
src/analysis_and_translate/translator.c
IITDBGroup/gprom
apache-2.0
4,130
181
codeparrot/github-code
6c1cdd651c075db4fc83dfb9c3b78ec900c23e77bbb067e06a051d1abe1876bd
package org.antbear.jee.spring.jdbc; import org.antbear.jee.spring.jdbc.dataaccess.CustomerDao; import org.antbear.jee.spring.jdbc.dataaccess.OrderDao; import org.antbear.jee.spring.jdbc.dataaccess.OrderPositionDao; import org.antbear.jee.spring.jdbc.dataaccess.ProductDao; import org.antbear.jee.spring.jdbc.domain.Cus...
Java
spring/spring-jdbc-first/src/main/java/org/antbear/jee/spring/jdbc/App.java
bwolf/je-misc-samples
apache-2.0
1,747
51
codeparrot/github-code
3cc0dbc50eca0f2bfd65bea590c1b5c22d4203034fe919e22bb5dd1cb431070c
/* Copyright JS Foundation and other contributors, http://js.foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
C
targets/nuttx-stm32f4/jerry_main.c
bzsolt/jerryscript
apache-2.0
12,130
469
codeparrot/github-code
96e5315f258a5bce9487e84c420cca339f0f1d80a5240c10fbc5ef54616e8012
/** * Copyright (C) 2006-2020 Talend Inc. - www.talend.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 by appli...
Java
component-runtime-design-extension/src/test/java/org/talend/test/MetadataMigrationProcessor.java
chmyga/component-runtime
apache-2.0
3,409
103
codeparrot/github-code
6c79a450a9a3d2f1f00cdec66ca9fa4d70c7e2e9f3766d264832c8784bc540b8
package io.udash.bindings import com.avsystem.commons._ import io.udash._ import io.udash.bindings.modifiers.Binding import io.udash.properties.{HasModelPropertyCreator, seq} import io.udash.testing.UdashFrontendTest import org.scalajs.dom.Node import java.util.concurrent.atomic.AtomicInteger class TagsBindingTest e...
Scala
core/.js/src/test/scala/io/udash/bindings/TagsBindingTest.scala
UdashFramework/udash-core
apache-2.0
71,645
2,355
codeparrot/github-code
afa31bf314e299e1f5d2fc8ad1fcf8a1172feb407f6f97f14dc72fed9d3a63f8
/* Copyright 2016-2017 University of Pittsburgh 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 ...
JavaScript
pre-annot-tool/load-ner.js
dbmi-pitt/dbmi-annotator
apache-2.0
7,843
212
codeparrot/github-code
548df34a493a4120364a31365f3adcd97e74f6c06286f85518bec217b6f7b811
package com.remondis.remap.basic; import static org.assertj.core.api.Assertions.assertThatThrownBy; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNull; import java.util.Arrays; import java.util.HashSet; import java.util.Iterator; import j...
Java
src/test/java/com/remondis/remap/basic/MapperTest.java
remondis-it/remap
apache-2.0
14,645
423
codeparrot/github-code
ef07a5ea6013f600fddb0f94056041b51234cd1a7690de9dcd10c278a2f90485
/** * Copyright 2015 ads-tec 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 * * Unless required by applicable law...
Java
src/jsonrpcdevice/JSONRpcException.java
ads-tec/JSONRpcDevice
apache-2.0
1,027
41
codeparrot/github-code
261a24d02fbf6f1cedf8e811a1399fd2c0c1eca556f5802803d70e45ee4baccf
/* * DBeaver - Universal Database Manager * Copyright (C) 2017-2017 Karl Griesser (fullref@gmail.com) * Copyright (C) 2010-2022 DBeaver Corp and others * * 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...
Java
plugins/org.jkiss.dbeaver.ext.exasol.ui/src/org/jkiss/dbeaver/ext/exasol/ui/config/ExasolCreateForeignKeyDialog.java
dbeaver/dbeaver
apache-2.0
1,353
37
codeparrot/github-code
b56a47e25419010d0603f94904e6909107e1d23dc2dd73a12f51b3bac7f3f056
/** * Copyright (C) 2015 The Gravitee team (http://gravitee.io) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requ...
Java
gravitee-gateway-http/src/main/java/io/gravitee/gateway/http/vertx/VertxHttp2ServerRequest.java
gravitee-io/gravitee-gateway
apache-2.0
1,884
57
codeparrot/github-code
7986efe70b055bb3b02e841937dc9f49d33fe406f5fa6603b1857b8b92e455c1
/** * 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
core/src/main/scala/kafka/log/LogManager.scala
akosiaris/kafka
apache-2.0
11,506
324
codeparrot/github-code
4839e68748128762c60a204cdf7a51752629a61ccef56a1db3497302846ed20b
/* * 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
asterixdb/asterix-om/src/main/java/org/apache/asterix/om/typecomputer/impl/ClosedRecordConstructorResultType.java
kisskys/incubator-asterixdb
apache-2.0
3,561
76
codeparrot/github-code
eccda419911896e0962bd0630a3323a964176b33731f7cbcdcfe2f8e3d56a4f4
/* * Copyright (C) 2014 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
src/com/android/settings/sim/SimSettings.java
manuelmagix/android_packages_apps_Settings
apache-2.0
25,435
628
codeparrot/github-code
976d31acabd1b315ee2125b26a80bc4eed9218ae49ef2fb7935a244fb831daaa
/* * Copyright (c) 2008-2020, Hazelcast, 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 ...
Java
hazelcast/src/main/java/com/hazelcast/sql/impl/expression/ColumnExpression.java
mdogan/hazelcast
apache-2.0
3,330
113
codeparrot/github-code
ecbf774b4ecb40c7c865998740e0612395fc9e1fd98b40b532cd6ba47829d2c3
/* * ==================================================================== * 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 license...
Java
src/ooxml/testcases/org/apache/poi/ss/formula/TestFormulaParser.java
lvweiwolf/poi-3.16
apache-2.0
9,998
231
codeparrot/github-code
e4c44cb1a87e7c3b9f28fd3ef7d23f2fce60d43a10a066d57136bf5d1915dfbd
// 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
core/src/com/cloud/agent/api/UpgradeSnapshotCommand.java
mufaddalq/cloudstack-datera-driver
apache-2.0
2,448
65
codeparrot/github-code
647fdbc0734db44e7c8d03247b8cb7c621f65b885bd541fdc52ba793db621d26
import React from 'react'; import PageTemplate from '../../components/PageTemplate'; import BannerMain from '../../components/BannerMain'; import Carousel from '../../components/Carousel'; import dadosIniciais from '../../data/dados_iniciais.json'; function Home() { return ( <PageTemplate> <BannerMain ...
JavaScript
frontend/react-stack/react/aluraflix/src/pages/Home/index.js
wesleyegberto/courses-projects
apache-2.0
1,009
47
codeparrot/github-code
162b0f045ba537fa502c6710d42b388fa4e71939a7b40247f074e86d2ccee05b
package storm.parser.converter; import android.content.ContentValues; import android.database.Cursor; import junit.framework.TestCase; import org.junit.Test; import org.junit.runner.RunWith; import org.robolectric.RobolectricTestRunner; import org.robolectric.annotation.Config; import java.lang.reflect.Type; import...
Java
stormparser/parser-test/src/test/java/storm/parser/converter/StormConverterTest.java
noties/Storm2.0
apache-2.0
9,834
321
codeparrot/github-code
50f2066be77fa7e7facfd8b775f5e15cc6a070eb93ad337aa12bc19f68912b23
package org.apache.lucene.swing.models; /** * Copyright 2005 The Apache Software 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/LICE...
Java
contrib/swing/src/java/org/apache/lucene/swing/models/TableSearcher.java
tokee/lucene
apache-2.0
12,319
363
codeparrot/github-code
b730c9d1b7720550a441dfbaf00ea8fa2422e35e91322b7be4911f3b29c6cb4e
package com.crawljax.plugins.testilizer.generated.claroline_INIT; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.HashSet; import java.util.Set; import java.util.concurrent.TimeUnit; import org.junit.*; import static org.junit.Assert.*; import org.openqa.selenium.*; im...
Java
examples/src/test/java/com/crawljax/plugins/testilizer/generated/claroline_INIT/GeneratedTestCase45.java
aminmf/crawljax
apache-2.0
24,939
772
codeparrot/github-code
67c11c41a35dc07cf97af46afb5ed3f71d05a542029cc8c985315ddbd1bb72bf
package ru.job4j; import java.io.*; import java.lang.ref.SoftReference; import java.util.HashMap; /** * FileCacheManager class. * @author agavrikov * @since 28.08.2017 * @version 1 */ public class FileCacheManager extends CacheManger<String, String> { /** * Cache map. */ private final HashMap...
Java
chapter_006/src/main/java/ru/job4j/FileCacheManager.java
AntonGavr92/agavrikov
apache-2.0
2,120
80
codeparrot/github-code
b3b71a5867ae075e8dcb8afc5d50a44ae86842e2e466e5572d9695e34593ae4c
package CC15_5_Works; import java.awt.Color; import java.util.HashMap; import java.util.Map; public class Co2_PreColorClass_2 { public static void main(String[] args) { Drawer2 d=new Drawer2(); d.drawLine(); d.drawLine("RED"); } } class Drawer2{ public Drawer2() { super(); } public void drawLine() { Sy...
Java
javaworkplace/ZJXL_java/src/CC15_5_Works/Co2_PreColorClass_2.java
wapalxj/Java
apache-2.0
1,181
49
codeparrot/github-code
35e43fa2d3a10dfe5975301e280c8ea354060f1d3b10b3265d7b992b37d426c5
/* Reeve - Test Module Copyright 2015 Evan Borgstrom 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...
GO
modules/test/test.go
borgstrom/reeve
apache-2.0
830
35
codeparrot/github-code
dfc3b6cf3e72f41a5a32b5c4b3f49a92ae4f0242cd7895d112c918557a56eaa6
class EvaluatorsController < ApplicationController before_action :set_evaluator, only: [:show, :edit, :update, :destroy] respond_to :html def index @evaluators_grid = initialize_grid(Evaluator.accessibles(current_user), order: :name, include: :user ) respond_to do |format| format.html # index.html....
Ruby
app/controllers/evaluators_controller.rb
pubannotation/pubannotation
apache-2.0
1,023
56
codeparrot/github-code
938c8a9c88b447bae454abd631c9dd40d2d5a00d21dbc06de7db252f26035a17
package beans; import java.util.ArrayList; import javax.faces.application.FacesMessage; import javax.faces.bean.ManagedBean; import javax.faces.context.FacesContext; import domain.Adresse; import services.AdresseService; @ManagedBean(name="modifyAddress") public class ModifyAddressBean { private Stri...
Java
src/beans/ModifyAddressBean.java
ymhadjou/JSFGestionContact
apache-2.0
2,200
102
codeparrot/github-code
299eefb7f8716fdc436a79ba23f9ffaccf82908747ea9f551ed5b37214b1e6cc
/** * Copyright(C) 2014-2015 CHCP * Licensed to CHCP under Apache License Version 2.0 * Author: Gordon Wang */ package org.chcp.framework.user.user; import java.util.List; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import ...
Java
framework-user/src/main/java/org/chcp/framework/user/user/UserServiceImpl.java
rtsgordon/chcp-toolmaker
apache-2.0
2,811
100
codeparrot/github-code
e756469a719afa30f6617017b5fc700ea8b8b5a211f25e51d713ce86d7d612ec
/* * Copyright (C) 2014 Markus Junginger, greenrobot (http://greenrobot.de) * * 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 * * Un...
Java
src/main/java/com/michael/corelib/coreutils/StringUtils.java
MichaelSun/corelib
apache-2.0
13,318
400
codeparrot/github-code
1fb424bb0d39d82260f1599c27e9304baa1c001a4071de48560c4cfdd7e9bcab
/* * Copyright 2013 Guidewire Software, Inc. */ package gw.lang.parser; import java.util.HashMap; public class ExternalSymbolMapForMap extends ExternalSymbolMapBase { private HashMap<String, ISymbol> _externalSymbols; public ExternalSymbolMapForMap( HashMap<String, ISymbol> externalSymbols) { this(extern...
Java
gosu-core-api/src/main/java/gw/lang/parser/ExternalSymbolMapForMap.java
gosu-lang/old-gosu-repo
apache-2.0
1,227
49
codeparrot/github-code
21c47d77d87dc3cf412eae6be36149ff34b3cd92e160a1d63dfbddb67560b4f2
'use strict'; const _ = require('lodash'); const utils = require('../common/utils'); const bosh = require('../data-access-layer/bosh'); const Agent = require('../data-access-layer/service-agent'); const logger = require('../common/logger'); const errors = require('../common/errors'); const ServiceInstanceNotFound = er...
JavaScript
operators/BaseDirectorService.js
sauravmndl/service-fabrik-broker
apache-2.0
2,696
88
codeparrot/github-code
08f785e00d6791d578c44f84f5e47a71ca1cf7bf47da0b7f12507452575b6efa
(function () { /* Imports */ var Meteor = Package.meteor.Meteor; var _ = Package.underscore._; var Iron = Package['iron:core'].Iron; /* Package-scope variables */ var compilePath, Url; (function () { ////////////////////////////////////////////////////////////////////////////////////////////////////////////// // ...
JavaScript
.demeteorized/bundle/programs/server/packages/iron_url.js
durwasa-chakraborty/navigus
apache-2.0
64,533
593
codeparrot/github-code
5c60aa183899f2df414604807e5c2abf26d776b93fd3861cae5a3cde756c8952
/* * Copyright 2014 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 ...
Java
java/src/com/google/template/soy/sharedpasses/render/Environment.java
yext/closure-templates
apache-2.0
6,182
187
codeparrot/github-code
85b96a527df7faf0aed06e5c6a1a6531398f8d2d56e2cfc37e0a6afe5abe9471
import React, { FunctionComponent } from 'react'; import { Range, createSliderWithTooltip } from 'rc-slider'; import { cx, css } from 'emotion'; import { Global, css as cssCore } from '@emotion/core'; import { stylesFactory } from '../../themes'; import { GrafanaTheme } from '@savantly/sprout-api'; import { useTheme } ...
TypeScript
frontend/libs/sprout-ui/src/components/Slider/Slider.tsx
savantly-net/sprout-platform
apache-2.0
4,208
141
codeparrot/github-code
518b2296586a683cc36019366082ae1d462ae9cb27845d3e5a0a2dd54b8bbc19
# # Copyright 2022 Centreon (http://www.centreon.com/) # # Centreon is a full-fledged industry-strength solution that meets # the needs in IT infrastructure and application monitoring for # service performance. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in com...
Perl
storage/netapp/ontap/restapi/mode/snapmirrors.pm
centreon/centreon-plugins
apache-2.0
4,254
136
codeparrot/github-code
31363379649de5cc8543280a0f57390682bdb1d81196ea21ef0526310e884a3e
/* * Copyright 2013-2016 consulo.io * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
Java
modules/base/compiler-impl/src/main/java/consulo/compiler/make/DependencyCache.java
consulo/consulo
apache-2.0
2,159
60
codeparrot/github-code
112fdb97dbd5103a06fa8b3773d848f7b3d778952ac4fd997d61314d0d207ec0
package biz.neustar.ultra.rest.dto; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.google.common.base.MoreObjects; import com.google.common.base.Objects; /** * Security Question. */ @JsonInclude(Include.NON_NULL) public class SecurityQues...
Java
src/main/java/biz/neustar/ultra/rest/dto/SecurityQuestion.java
ultradns/java_rest_api_client
apache-2.0
2,160
105
codeparrot/github-code
b0a64e22679d778c7ea7c927920ce807e4e487b8fed6c62858db7111cb232adc
using System; using System.Collections.Generic; using Elasticsearch.Net.Connection; using Elasticsearch.Net.Providers; namespace Elasticsearch.Net.ConnectionPool { public class SingleNodeConnectionPool : IConnectionPool { public int MaxRetries => 0; public bool SupportsReseeding => false; public bool Support...
C#
src/Elasticsearch.Net/ConnectionPool/SingleNodeConnectionPool.cs
jonyadamit/elasticsearch-net
apache-2.0
949
35
codeparrot/github-code
0944e7a170bfa0ecd4deddfeece2442ae1ff945fa1a0f59fdfd755b86fef6efe
/* * Copyright 2015-present Facebook, 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...
Java
test/com/facebook/buck/python/PythonTestBuilder.java
marcinkwiatkowski/buck
apache-2.0
5,060
150
codeparrot/github-code
8da2016aa31f94daab3df54b2f0966a0dea052d5f45e32d238d9d8e2e47bdcec
/* * JaamSim Discrete Event Simulation * Copyright (C) 2014 Ausenco Engineering Canada Inc. * Copyright (C) 2016-2021 JaamSim Software Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License...
Java
src/main/java/com/jaamsim/input/ExpResult.java
jaamsim/jaamsim
apache-2.0
5,378
199
codeparrot/github-code
60a45ee762bb4d0d5b0fafb2584a1ee8e50f927958470c008ef397534bb9f67f
package emmy.inference.aevb import breeze.numerics.sqrt import emmy.autodiff._ import emmy.distribution.Factor import emmy.inference._ case class AEVBModel(variables: Set[VariablePosterior]) extends Model { override def sample[U[_], V, S](n: Variable[U, V, S], ec: SampleContext): U[V] = ??? override def update(...
Scala
src/main/scala/emmy/inference/aevb/AEVBModel.scala
fvlankvelt/emmy
apache-2.0
3,767
146
codeparrot/github-code
e0bacc92de911c08d345e9c36fe99148d272123539e440cb8da3f7c87d578815
package com.planet_ink.coffee_mud.Abilities.Druid; import com.planet_ink.coffee_mud.core.interfaces.*; import com.planet_ink.coffee_mud.core.*; import com.planet_ink.coffee_mud.core.collections.*; import com.planet_ink.coffee_mud.Abilities.interfaces.*; import com.planet_ink.coffee_mud.Areas.interfaces.*; import ...
Java
com/planet_ink/coffee_mud/Abilities/Druid/Chant_MetalMold.java
oriontribunal/CoffeeMud
apache-2.0
5,151
136
codeparrot/github-code
8b09bdb25cd53ac13a4effc96ba69673d1077720e5650554eebb921f44780c6e
/** * 首页 */ pageData = window.pageData?window.pageData:[]; var vm = avalon.define({ $id : "sidebar", test: "tst", //domainBuyList1 : [{title:"test"},{title:"test2"}], //domainSoldList1 : [{title:"test"},{title:"test2"}],//买标信息一览(最新11条,首页只表示最新的) datas : { domainArticleList : [],//sidebar信...
JavaScript
src/main/webapp/static/front/js/sidebar.js
GSSBuse/GSSB
apache-2.0
1,187
55
codeparrot/github-code
5ca7cb0304f8060f6bfb355062068b268c4a1f05c389dbff962e059fa630c98d
/* * Copyright 2015 HM Revenue & Customs * * 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...
Scala
src/test/scala/uk/gov/hmrc/play/events/monitoring/HttpErrorCountMonitorSpec.scala
keithhall/play-events
apache-2.0
6,575
252
codeparrot/github-code
f6bc4e06ecb69d82cbefb5558b5b3379f82ea0bee24e5d2d0da410fb58943546
#!/usr/bin/env ruby # Encoding: utf-8 # # Copyright:: Copyright 2013, Google Inc. All Rights Reserved. # # License:: 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 # # ...
Ruby
dfp_api/examples/v201605/audience_segment_service/populate_first_party_audience_segments.rb
kjvarga/google-api-ads-ruby
apache-2.0
3,277
100
codeparrot/github-code
45d9b5f390b40f7a8e2b79cd3eb98607187caf9819adb1ec79e1dce7dd574d39
package jetbrains.buildserver.sonarplugin; import jetbrains.buildServer.RunBuildException; import jetbrains.buildServer.agent.plugins.beans.PluginDescriptor; import jetbrains.buildServer.agent.runner.CommandLineBuildService; import jetbrains.buildServer.agent.runner.JavaCommandLineBuilder; import jetbrains.buildServer...
Java
sonar-plugin-agent/src/main/java/jetbrains/buildserver/sonarplugin/SQRBuildService.java
rodm/TeamCity.SonarQubePlugin
apache-2.0
8,810
197
codeparrot/github-code
35b104859f6961caf0e90f5f8cfa20fef35c753adf9f66228a649298184e5814
/** * 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
metron-platform/metron-enrichment/metron-enrichment-common/src/test/java/org/apache/metron/enrichment/cache/ObjectCacheTest.java
anandsubbu/incubator-metron
apache-2.0
3,919
120
codeparrot/github-code
0ef324f2256da3eeae1645a7dec139d51cae1825b634ffcbe8bd3a3b8145e21f
/* * Copyright 2014 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 applica...
Java
Java.Source/spring-data-elasticsearch/src/main/java/org/springframework/data/elasticsearch/core/facet/request/RangeFacetRequestBuilder.java
KiviMao/kivi
apache-2.0
1,997
85
codeparrot/github-code
289a2efb6f4d39f4ea804b998dbe1f5ab23ffc9fc812aa92cd48ed8e8c316f3f
/* * Copyright (C) 2017 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
library/core/src/test/java/com/google/android/exoplayer2/source/CompositeSequenceableLoaderTest.java
KiminRyu/ExoPlayer
apache-2.0
12,343
280
codeparrot/github-code
f037e5eb1364dd66cc37d98683dcc2cd44b5654f4e9761b9fe73471f66abfda3
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict //EN"> <html> <head> <title>Topic: Ebean agent does not seem to work</title> <link rel="shortcut icon" href="/image/favicon.ico" > <link rel="stylesheet" type="text/css" href="/static/v2style.css" > <!-- <link rel="stylesheet" type="text/css" href="/css/100/bas...
HTML
topic-160.html
archive-avaje-org/archive-avaje-org.github.io
apache-2.0
9,088
263
codeparrot/github-code
1d42c3090bc2e7e3d93aa6c1722c62c80dd3e95309d4b3b5227fa8d37bbd3454
/** * This file is part of the Iritgo/Aktera Framework. * * Copyright (C) 2005-2011 Iritgo Technologies. * Copyright (C) 2003-2005 BueroByte GbR. * * Iritgo 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 m...
Java
aktera-journal/src/main/java/de/iritgo/aktera/journal/JournalManagerImpl.java
iritgo/iritgo-aktera
apache-2.0
10,792
369
codeparrot/github-code
ff165d6bad001fdaa5575acf2eff3d9e73defc851dc90a8421ff015fa0eabb81
/** * * Copyright 2011 (C) Rainer Schneider,Roggenburg <schnurlei@googlemail.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/LICENS...
Java
jdy/jdy.model.metadata/src/main/java/de/jdynameta/metamodel/metainfo/MetaModelPersistentObjectCreator.java
schnurlei/jdynameta
apache-2.0
5,136
141
codeparrot/github-code
d2f8af3138a11bbbcf13a77e2f4a3925bfd37ed4d0b0575f2e0ddf49f9a2c52a
#pragma once #include <iostream> #include "layer.h" class DummyLayer : public Layer { // dummy layer that adds delta to matrix when ff, and substracts when bp public: DummyLayer(FloatT delta_) : delta(delta_) {} virtual void forward_cpu( const std::vector<Blob> & inputs, const std::vector<Blob> & output...
C
MinxNet/MinxNet/dummylayer.h
minerva-developers/MinxNet_Interface
apache-2.0
953
34
codeparrot/github-code
ca8ab8c6ea73ad498a08dd2f08a6d8675465b6336ee01230c718e5f5aae9bb74
/*global jQuery */ /*jshint browser:true */ /*! * FitVids 1.1 * * Copyright 2013, Chris Coyier - https://css-tricks.com + Dave Rupert - https://daverupert.com * Credit to Thierry Koblentz - https://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/ * Released under the WTFPL license - https://sam.zoy...
JavaScript
js/jquery.fitvids.js
kinasmith/kinasmith.com
apache-2.0
3,685
84
codeparrot/github-code
7aca35e65b060b2398730ea30e01b137ec6d181a3eb990bbcb8159cfdd587ac6
/** * Escapes a string for SQL insertion */ exports.escapeString = function(_string) { if(typeof _string !== "string") { return "\"" + _string + "\""; } return "\"" + _string.replace(/"/g, "'") + "\""; }; /** * Removes HTML entities, replaces breaks/paragraphs with newline, strips HTML, trims */ exports.c...
JavaScript
app/lib/utilities.js
bob-sims/quickJFTC
apache-2.0
14,150
576
codeparrot/github-code
155f28f322218e32796864d4ed9f7b8adbb32359e7f5304f0f9efe4f7e196e93
package com.alittlelost.soundaffectsample; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.widget.Toast; import com.alittlelost.soundaffect.SoundAffect; public class MainActivity extends AppCompatActivity { private static final String TAG = "Mai...
Java
app/src/main/java/com/alittlelost/soundaffectsample/MainActivity.java
seanashmore/soundAffect
apache-2.0
1,306
42
codeparrot/github-code
8f4301c290416b9c9a58a7a48f8f41a3ddae8ca43569faa965665f0029731f00
#!/bin/bash declare -a cleanupARR declare -a cleanupLBARR declare -a dbInstanceARR declare -a ARN declare -a s3 aws ec2 describe-instances --filter Name=instance-state-code,Values=16 --output table | grep InstanceId | sed "s/|//g" | tr -d ' ' | sed "s/InstanceId//g" mapfile -t cleanupARR < <(aws ec2 describe-instanc...
Shell
destroy-all.sh
itmo544/itmo544-444-env
apache-2.0
4,183
119
codeparrot/github-code
e44ae125c7390b068d4c4c2f2e5a94050d06d49f713439655a2e151b1a806625
namespace Stripe { using System; using Newtonsoft.Json; using Stripe.Infrastructure; public class SubscriptionListOptions : ListOptionsWithCreated { /// <summary> /// This field has been renamed to <c>CollectionMethod</c> and will be removed /// in a future API version. ...
C#
src/Stripe.net/Services/Subscriptions/SubscriptionListOptions.cs
richardlawley/stripe.net
apache-2.0
2,410
60
codeparrot/github-code
e092f833152c298647b96808c3e021549498cd7ca472995a57cf4d9f7669974b
package eu.stosdev.theresistance.model.messages; import android.support.annotation.NonNull; import java.util.Map; import eu.stosdev.theresistance.model.messages.utils.AbsEvent; import eu.stosdev.theresistance.model.messages.utils.AbsMessage; import lombok.AccessLevel; import lombok.AllArgsConstructor; import lombok....
Java
app/src/main/java/eu/stosdev/theresistance/model/messages/VoteFinishedMessage.java
pablow91/TheResistance
apache-2.0
1,034
41
codeparrot/github-code
b2f44beef22f39d9a8ecd2b20750f309460982632532c31bc8009bd52bf5d04d
/* * Copyright 2014-2016 Groupon, Inc * Copyright 2014-2016 The Billing Project, LLC * * The Billing Project 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...
Java
profiles/killbill/src/main/java/org/killbill/billing/server/filters/RequestDataFilter.java
sbrossie/killbill
apache-2.0
4,158
108
codeparrot/github-code
f02156338d614bc77050e1f30a16f3b19d31845756824b63101641e819ec7cb8
/** * Copyright (C) 2013-2014 EaseMob Technologies. 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 requi...
Java
src/com/easemob/chatuidemo/activity/VoiceCallActivity.java
liyuzhao/enterpriseChat-android
apache-2.0
14,697
403
codeparrot/github-code
94ea194bb625618d2f42662335b2b7be7f8f1f5a78f28e617ecd47f3b6f93bc2
/* * Copyright © 2013-2018 camunda services GmbH and various authors (info@camunda.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...
Java
qa/test-db-instance-migration/test-migration/src/test/java/org/camunda/bpm/qa/upgrade/scenarios720/eventsubprocess/NestedParallelNonInterruptingEventSubprocessScenarioTest.java
xasx/camunda-bpm-platform
apache-2.0
8,569
241
codeparrot/github-code
06009cb0fe57f51e5c0283064becf884f1222d5ee72729c5442f953616780562
// ---------------------------------------------------------------------------------- // // 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.apa...
C#
src/Common/Commands.Common.Authentication/Factories/AuthenticationFactory.cs
atpham256/azure-powershell
apache-2.0
14,354
351
codeparrot/github-code
97662d04b8fc01005d8a1122d4fe16102d337349eff4326149640c05d87448d6
# python3 class HeapBuilder: def __init__(self): self._swaps = [] self._data = [] def ReadData(self): n = int(input()) self._data = [int(s) for s in input().split()] assert n == len(self._data) def WriteResponse(self): print(len(self._swaps)) for swap in self._swaps: print(swa...
Python
courses/coursera-sandiego-algorithms/data-structures/assignment002/make_heap/build_heap.py
xunilrj/sandbox
apache-2.0
1,100
40
codeparrot/github-code
6b0720a095c82c34fae3e57fe33dbff75e6c29f0ff8b365d66802343c5254ca4
#ifndef SYSCFG_COMMON_T_HH #define SYSCFG_COMMON_T_HH #include "lib/types.hh" #include "lib/regbit.hh" namespace hal { enum struct syscfg_mem_remap_mem_mode_t : lib::u8 { main_flash = 0, system_flash = 1, fsmc_bank1 = 2, embedded_sram = 3 }; using syscfg_mem_remap_mem_mode ...
C++
include/hal/common/syscfg_common_t.hh
no111u3/stm32cclib
apache-2.0
3,895
141
codeparrot/github-code
1aec361de73d596c7fa2b9c8f15f9ea4da13a67e52ce4667c85d40c659c9955b
package server import ( "io" "time" ) // DatabaseConfig contains all the information to start the Kappa server. type DatabaseConfig struct { // NodeName is the name of the node. If it is empty, a name // will be generated. NodeName string // ClusterName prevents two clusters from merging. ClusterName string ...
GO
server/config.go
blacklabeldata/kappa
apache-2.0
1,466
63
codeparrot/github-code
c85e69e77069fd7e6e58ad8155009643c5a3c7d4f87e838e40d95e5556eb8a5d
/* * 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
components/camel-platform-http-vertx/src/main/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpConsumer.java
ullgren/camel
apache-2.0
9,366
241
codeparrot/github-code
b4156ef23120272e988d57b0904d90f4b3c913ad012c4f80c9a8b8d4426d5130
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
Python
smu/geometry/smu_molecule.py
google-research/google-research
apache-2.0
12,148
380
codeparrot/github-code