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
03ab882fe053ea2d569fd160ac48d345ce2e3d7a18d9cf81581028b54a5b1f78
#include "stdafx.h" #include "VertexAttributeBinding.hpp" #include "MeshPrimitive.hpp" #include "Technique.hpp" #include "Effect.hpp" #include "VertexAttributeAccessor.hpp" #include "IndexAccessor.hpp" #include "Logging.hpp" namespace kepler { namespace gl { VertexAttributeBinding::VertexAttributeBinding(GLuint handl...
C++
kepler-gl/src/VertexAttributeBinding.cpp
dgough/kepler3d
apache-2.0
1,904
69
codeparrot/github-code
f75b0d257ecabfd6d974a51818fe479f5a270914687bf53a696d06d9d986253c
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Networking; public class ShieldScriptNet : NetworkBehaviour { public ChallengerConNet p; public bool shieldIsUp; public int poffset; public float sx; public float sy; public Renderer shRend; /...
C#
smoosh/Assets/scripts/ShieldScriptNet.cs
meat4every1/Smoosh
apache-2.0
745
33
codeparrot/github-code
517d170c798ec20a17ba5aaeaafdf50eaa1d096637872e67e28499bdb5b6f96c
/* Copyright 2016 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, ...
GO
test/e2e/framework/service/jig.go
klaus1982/kubernetes
apache-2.0
35,766
999
codeparrot/github-code
f1dbfb8ae8ae595e6ea407676cba1d11a041a5d3fcc53c19171fd70d10d314b8
/* * 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-ec2/src/main/java/com/amazonaws/services/ec2/model/transform/MoveAddressToVpcRequestMarshaller.java
trasa/aws-sdk-java
apache-2.0
1,903
51
codeparrot/github-code
a7c6e1c5b96aa5e78f8af02d34fe415033d4f116847ae68734a7114f53013c6e
<div class="person-info clearfix border-b mb20"> <dl class="person-info-t clearfix"> <dt><a href="{$userInfo.space_url}"><img src="{$userInfo.avatar_big}" /></a><a href="{:U('public/Account/avatar')}" class="face">更换头像</a></dt> <dd> <div class="name"> <strong><a href="{$userInfo.space_url}">{$userInfo....
HTML
addons/widget/UserInformationWidget/right.html
kindlejiang/jkb
apache-2.0
4,830
102
codeparrot/github-code
848aa878b8ce9eed9f50d0fa2891932f857a059dd7545ba5f29714535c351ff0
<html> <head> <link rel="shortcut icon" type="image/x-icon" href="favicon.ico" /> <title>OneWatershed - Admin</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" > <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" type="text/css" href="nav.c...
PHP
action.php
dbenton2/onewatershed.org
apache-2.0
13,527
288
codeparrot/github-code
444a0af909123dd086f9304026f4b7786c4ddf901706e006b9e9e5eb905e06f8
package com.hultron.lifehelper.ui; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.os.Bundle; import android.support.annotation.Nullable; import android.widget.ImageView; import com.hultron.lifehelper.R; import com.xys.libzxing.zxing.encoding.EncodingUtils; /** * QrCodeShareAct...
Java
app/src/main/java/com/hultron/lifehelper/ui/QrCodeShareActivity.java
Hultron/LifeHelper
apache-2.0
1,255
45
codeparrot/github-code
3e301b64a20ef65b7ac1306fb2f9aef0f029d9b049bb11fb6eaf69c45c74a394
package kvstore import ( "context" "errors" "log" "strconv" "strings" "fmt" "github.com/gomodule/redigo/redis" "os" ) var ( errRedisNewHandler = "kvstore(redis): new handler error" errRedisConnectionNotExists = "kvstore(redis): '%s' handler not exists" errRedisZscanCursorTypeError = "kvstor...
GO
kvstore/redis.go
ltick/tick-framework
apache-2.0
18,847
740
codeparrot/github-code
2ceaf7b1a0fc5e2e7b0be91872c0a647df7bb5b5487128d8fc59d1c677f049b9
package com.twitter.finagle.http import com.twitter.finagle.{Status => CoreStatus} import com.twitter.finagle.http.codec.Http1ConnectionManager import com.twitter.finagle.http.exp.{Multi, StreamTransport, StreamTransportProxy} import com.twitter.util.{Future, Promise, Return, Try} import scala.util.control.NonFatal /...
Scala
finagle-base-http/src/main/scala/com/twitter/finagle/http/HttpTransport.scala
luciferous/finagle
apache-2.0
1,840
53
codeparrot/github-code
6b53a9fafa4c9e1c41ba3d8d8da1a66a88383f29dea1f15cc0606ac91345629a
package gce import ( "context" "github.com/supergiant/control/pkg/clouds/gcesdk" "io" "github.com/pkg/errors" "github.com/sirupsen/logrus" "github.com/supergiant/control/pkg/workflows/steps" "google.golang.org/api/compute/v1" ) const DeleteTargetPoolStepName = "gce_delete_target_pool" type DeleteTargetPoolSt...
GO
pkg/workflows/steps/gce/delete_target_pool.go
supergiant/supergiant
apache-2.0
1,871
74
codeparrot/github-code
eed16ba134688acd96941eee290ab860bd3713f8c1522a192716eccfaed0bad1
package com.jayway.jsonpath.internal.path; import com.jayway.jsonpath.internal.PathRef; import com.jayway.jsonpath.internal.function.Parameter; import com.jayway.jsonpath.internal.function.PathFunction; import com.jayway.jsonpath.internal.function.PathFunctionFactory; import com.jayway.jsonpath.internal.function.lateb...
Java
json-path/src/main/java/com/jayway/jsonpath/internal/path/FunctionPathToken.java
lafaspot/JsonPath
apache-2.0
3,127
88
codeparrot/github-code
bcef81fb343bcb14386052c9a150bede43bdddfb99faa235483eb172e24d9daf
package pro.taskana.user.rest; import static org.springframework.restdocs.mockmvc.RestDocumentationRequestBuilders.delete; import static org.springframework.restdocs.mockmvc.RestDocumentationRequestBuilders.get; import static org.springframework.restdocs.mockmvc.RestDocumentationRequestBuilders.post; import static org...
Java
rest/taskana-rest-spring/src/test/java/pro/taskana/user/rest/UserControllerRestDocTest.java
Taskana/taskana
apache-2.0
2,280
63
codeparrot/github-code
4328196fc83f4e9b51cc768e3f55a239d1c7abfc63bdc0970acdb4c056bece72
/* * Copyright 2011-2019 B2i Healthcare Pte Ltd, http://b2i.sg * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
Java
snomed/com.b2international.snowowl.snomed.datastore.server/src/com/b2international/snowowl/datastore/server/snomed/merge/SnomedMergeConflictRuleProvider.java
IHTSDO/snow-owl
apache-2.0
2,004
54
codeparrot/github-code
3275289ea7abecd257f67b155e43e4dd18d2dc4f8e134d31911d4eb1ab56e155
<?php /** * Abstract methods for CMS controllers including view, action, and nonce handling. * * PHP version 5 * * Crowd Fusion * Copyright (C) 2009-2010 Crowd Fusion, Inc. * http://www.crowdfusion.com/ * * Redistribution and use in source and binary forms, with or without * modification, are permitted under ...
PHP
system/core/classes/mvc/controllers/AbstractCmsController.php
wb-crowdfusion/crowdfusion
apache-2.0
5,079
161
codeparrot/github-code
2d3450885dfa326516f2fd26ef94b3b9b9ce1966a4a5691d1aa13f808eea8da8
/* Copyright 2017 Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
C
src/lullaby/util/color.h
Jon-Biz/lullaby
apache-2.0
1,826
64
codeparrot/github-code
22cd1687b1ac4e13f80f34465221ba1871662b255e122f43f840983a7c1393b6
use azure_sdk_core::errors::AzureError; use azure_sdk_core::prelude::IfMatchCondition; use http::HeaderMap; #[derive(Default, Serialize, Deserialize, Debug, Clone, PartialEq)] pub struct DocumentAttributes { #[serde(rename = "_rid")] pub rid: String, #[serde(rename = "_ts")] pub ts: u64, #[serde(re...
Rust
azure_sdk_cosmos/src/document_attributes.rs
MindFlavor/AzureSDKForRust
apache-2.0
2,260
104
codeparrot/github-code
9e4b4769c58f44cf68a2114e1c9822b5372cb1e67dfc47b7ff05ec4e00049efc
/* * Copyright 2017 Axway Software * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
Java
agent/core/src/test/java/com/axway/ats/agent/core/ant/component/agenttest/FirstActionClass.java
Axway/ats-framework
apache-2.0
2,877
93
codeparrot/github-code
1bbb7ae607808cec2a78baf6a6d062e41e12cf7ad98e484f601d02b9e296ed42
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="X-UA-Compatible" content="IE=Edge" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <t...
HTML
docs/new-pandas-doc/generated/pandas.Timestamp.strftime.html
datapythonista/datapythonista.github.io
apache-2.0
19,074
270
codeparrot/github-code
81ffaa07fc8a8e8ba9c96394eaa7caa56a6a1c57372a7a6392d8839ffacb2911
package com.github.rma350.jgraphv.core.demo; import com.github.rma350.jgraphv.core.engine.Engine; import com.github.rma350.jgraphv.core.shapes.ArcBuffer; import com.github.rma350.jgraphv.core.shapes.ArcBufferBuilder; import com.github.rma350.jgraphv.core.shapes.ArcBuilder; import com.github.rma350.jgraphv.core.shapes....
Java
JGraphVCore/src/com/github/rma350/jgraphv/core/demo/ArcDemo.java
rma350/jgraphv
apache-2.0
1,557
42
codeparrot/github-code
65959571c2eb4e5f1818e9d94bccc6dcc1ec3da213b09a65bb4cf34b79c593f0
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
C
weex_core/Source/include/JavaScriptCore/heap/StochasticSpaceTimeMutatorScheduler.h
acton393/incubator-weex
apache-2.0
2,631
86
codeparrot/github-code
44e944185ded4c3e83ed7b4c45f6736e6ef3e873900d93885d5083d885d61d44
'use strict'; /** * Created by zhaoxueyong on 2017/1/14. */ angular.module('browserApp'). controller('ColuslifeCtrl', function ($scope, $http) { $scope.countryName = "China"; var mapObj = null; $scope.init_map = function(){ console.log("init map now"); mapObj = new AMap.Map("mapbody", { ...
JavaScript
Browser/app/scripts/controllers/coluslife.js
ColusLife/ColusLifeDemo
apache-2.0
1,433
54
codeparrot/github-code
087afcf0d22c9f1bc53b55507983d99bf299690061e1d5879113af7600aa4954
package com.itsafe.phone.utils; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; /** * Created by Hello World on 2016/3/10. */ public class Md5Utils { /** ...
Java
phone/app/src/main/java/com/itsafe/phone/utils/Md5Utils.java
Monkeyyingbao/Mobilesafe
apache-2.0
2,490
86
codeparrot/github-code
9276988228fd4c40913f20737da3913773a15a112bb246ca404b1266eb9dfc0d
// Copyright 2007-2018 Chris Patterson, Dru Sellers, Travis Smith, et. al. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use // this file except in compliance with the License. You may obtain a copy of the // License at // // http://www.apache.org/licenses/LICENSE-2.0 // ...
C#
src/MassTransit.Azure.ServiceBus.Core/Topology/Topologies/ServiceBusMessagePublishTopology.cs
SanSYS/MassTransit
apache-2.0
5,316
155
codeparrot/github-code
8b0ec3ffffde74b321475acc6188157fc1563ee7f60253bb2b92d585e549f4c5
using System.IO; using System.Xml; using UnityEngine; namespace Ecosim { public static class IOUtil { public static string MyURIFileEncode (string path) { path = WWW.EscapeURL (path).Replace ("%2f", "/"); if (!path.StartsWith ("/")) path = "/" + path; return "file://" + path; } public static ...
C#
Assets/Scripts/Misc/IOUtil.cs
FantazmGameDevelopment/EcoSim
apache-2.0
2,752
103
codeparrot/github-code
cf08129b46caff169f27725b098f99965bd4cea5992cf23bf8596a371aef17f8
--- type: post110 title: Synchronous Replication categories: XAP110ADM parent: replication.html weight: 200 --- {{% ssummary %}} {{% /ssummary %}} In a synchronous replication, the client receives acknowledgement for any replicated operations only after all the space instances in the replication group have perform...
Markdown
sites/xap-docs/content/xap110adm/synchronous-replication.markdown
croffler/documentation
apache-2.0
9,678
150
codeparrot/github-code
f76ed069ca2ecfe4df823ab9e7a5bf7d41c86e2594ddfbb9d72cefbf8d22f82c
/* * JBoss, Home of Professional Open Source * Copyright 2014 Red Hat Inc. and/or its affiliates and other contributors * as indicated by the @authors tag. All rights reserved. * See the copyright.txt in the distribution for a * full listing of individual contributors. * * Licensed under the Apache License, Vers...
Java
readline/src/main/java/org/aesh/readline/util/TerminalUtil.java
aeshell/aesh-readline
apache-2.0
1,900
65
codeparrot/github-code
e6a5768344e3a230863b7cba6eeed400d5cd72e5573bcbc1c518511c87625196
/************************************************************************************ * xt_mm_api.c: Implementation File * * DESCRIPTION : * * AUTHOR : Sean Feng <SeanFeng2006@hotmail.com> * DATE : Sep. 24, 2010 * * Copyright (c) 2010-?. All Rights Reserved. * * REMARKS: * * ***********************...
C
xtrovert/xt_api/xt_mem_api.c
tempbottle/xtrovert
apache-2.0
1,307
76
codeparrot/github-code
387d4291cfb9fff0343423d9765215ac063c47eb432e4c7fa02865a5e3b4770a
package com.github.rahulsom.grooves.groovy.transformations.internal; import com.github.rahulsom.grooves.groovy.transformations.Event; import com.github.rahulsom.grooves.groovy.transformations.Query; import org.codehaus.groovy.ast.*; import org.codehaus.groovy.ast.expr.Expression; import org.codehaus.groovy.control.Sou...
Java
grooves-groovy/src/main/java/com/github/rahulsom/grooves/groovy/transformations/internal/EventASTTransformation.java
rahulsom/grooves
apache-2.0
1,822
44
codeparrot/github-code
79d19bc351e1339cc9bc0a1678e4f8020055e9a439d23c07d849d443d1eaf81b
package com.tpb.mdtext.views.spans; import android.graphics.drawable.Drawable; import android.text.style.ImageSpan; import com.tpb.mdtext.handlers.ImageClickHandler; import com.tpb.mdtext.imagegetter.HttpImageGetter; import java.lang.ref.WeakReference; /** * Created by theo on 22/04/17. */ public class Clickable...
Java
markdowntextview/src/main/java/com/tpb/mdtext/views/spans/ClickableImageSpan.java
tpb1908/AndroidProjectsClient
apache-2.0
1,138
39
codeparrot/github-code
1b2cfe007a7932a6f8d3aeeb94f6b0c0fbf6d7a7b4eb69b48f3a3ae7c9fb5ca0
// ---------------------------------------------------------------------------------- // // 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/ResourceManager/Kubernetes/Commands.Kubernetes/Models/Mapper.cs
devigned/azure-powershell
apache-2.0
1,978
42
codeparrot/github-code
ca0e96a736c7223307a4f0c7974cb7ca210a59a92462f48e7cbac3dd7cea3c1d
/* * #%L * OW2 Chameleon - Fuchsia Framework * %% * Copyright (C) 2009 - 2014 OW2 Chameleon * %% * 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/licens...
Java
bases/knx/calimero/src/main/java/tuwien/auto/calimero/knxnetip/servicetype/SearchRequest.java
ow2-chameleon/fuchsia
apache-2.0
5,426
156
codeparrot/github-code
915cfef34025d7d81f6744f7d2027c34d433d9ca81a1b421963d3bfa52c86263
/** * Copyright 2011 The Open Source Research Group, * University of Erlangen-Nürnberg * * 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/lic...
Java
swc-engine/src/test/java/org/sweble/wikitext/engine/output/HtmlRendererTest.java
pumpadump/sweble-wikitext
apache-2.0
3,804
125
codeparrot/github-code
f57fc431237595468d5f1117b3a15112d966c9276bc0963c6407efefee5aa155
package com.joss.conductor.mobile; import io.appium.java_client.AppiumDriver; import io.appium.java_client.MobileElement; import io.appium.java_client.TouchAction; import io.appium.java_client.remote.AndroidMobileCapabilityType; import io.appium.java_client.remote.MobileCapabilityType; import org.assertj.swing.asserti...
Java
src/test/java/com/joss/conductor/mobile/LocomotiveTest.java
jossjacobo/conductor-mobile
apache-2.0
43,409
999
codeparrot/github-code
117e25d4bb4a3ae97a11967917327ec0857ff914ec2a02b50bd4bbd33c851d1c
drop table if exists mu_code_tpl; drop table if exists mu_dbms_object; drop table if exists mu_db_datasource; drop table if exists mu_db_mobile_number; drop table if exists mu_db_version; drop table if exists mu_dz_category; drop table if exists mu_dz_code; drop table if exists mu_layout; drop table if exists mu_layout...
SQL
core/src/main/resources/db_upgrade/1.0.0/metaui_hsqldb.sql
weijiancai/metaui
apache-2.0
34,357
715
codeparrot/github-code
8bf0d225ef7fe2c22d8e82d50bda816f48c7c73bd3f2d5b5b8726c80af8664f0
// viewReportedPeptidesForProteinAllLoadedFromWebServiceTemplate.js // Process and load data into the file viewReportedPeptidesForProteinAllLoadedFromWebServiceTemplateFragment.jsp // Used on page viewSearchProteinAll.jsp ////////////////////////////////// // JavaScript directive: all variables have to be d...
JavaScript
proxl_web_app/front_end/src/js/page_js/data_pages/project_search_ids_driven_pages/protein_pages/viewReportedPeptidesForProteinAllLoadedFromWebServiceTemplate.js
yeastrc/proxl-web-app
apache-2.0
13,535
294
codeparrot/github-code
a899b6538baf15053e5f0e2f9013bed06b70e41a977ad0d95e5c4c0d0a4a5850
package org.patriques.output.digitalcurrencies; import org.patriques.input.digitalcurrencies.Market; import org.patriques.output.JsonParser; import org.patriques.output.digitalcurrencies.data.DigitalCurrencyData; import java.time.LocalDate; import java.util.ArrayList; import java.util.List; import java.util.Map; /**...
Java
alphavantage4j/src/main/java/org/patriques/output/digitalcurrencies/Monthly.java
leonarduk/stockmarketview
apache-2.0
2,795
83
codeparrot/github-code
d047cd978fcf8e444a9db74ef1d8f2b2745c9adbb3b37534b48d67059d77cdb4
/* * Copyright 2003-2005 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 applicable...
Java
xfweb/src/com/jdon/jivejdon/model/message/output/shield/Profanity.java
xfmysql/xfwdata
apache-2.0
6,007
199
codeparrot/github-code
01cb2d7a40a297cb2595e4604579480fac5bcdad8134f086d013b2bfe7b7c6f0
<?php namespace f2r\Fydrate\Adapter\Mysql; use f2r\Fydrate\Adapter\StatementInterface; class Statement implements StatementInterface { /** * @var \mysqli_result */ protected $statement; public function __construct(\mysqli_result $resullt) { $this->statement = $resullt; } /*...
PHP
src/Adapter/Mysql/Statement.php
f2r/fydrate
apache-2.0
701
43
codeparrot/github-code
c578ff5adadb0e6fcd955b8989f9059eaa14f123c71a87be92beac561a070cd8
/* * Licensed to the Apache Software Foundation (ASF) under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional information regarding * copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the * "License"); you may not ...
Java
geode-connectors/src/main/java/org/apache/geode/connectors/jdbc/internal/ConnectorsDistributedSystemService.java
masaki-yamakawa/geode
apache-2.0
1,749
44
codeparrot/github-code
6468dc81613df25b758881c6e9a8896e4f1c1beca0637440c2ab42cd6712aee4
using System; using System.Collections.Generic; using System.Data; namespace ServiceStack.OrmLite.Legacy { [Obsolete(Messages.LegacyApi)] internal static class ReadExpressionCommandExtensionsLegacy { [Obsolete("Use db.Select(db.From<T>())")] internal static List<T> Select<T>(this IDbComman...
C#
yafsrc/ServiceStack/ServiceStack.OrmLite/Legacy/ReadExpressionCommandExtensionsLegacy.cs
Pathfinder-Fr/YAFNET
apache-2.0
2,387
57
codeparrot/github-code
3cc1d9b8dcdac92c260aaffb74e556ca4f25452013a028ed8c1606c86935fc84
#!/usr/bin/python """ .. module:: shellscribe Shell-Scribe run.py @author: Keith E. Miller <keithmiller@umass.edu> Expected issues: - cd command is shell-scribe specific so commands that use cd in a non-trivial way might break the cd command """ import cmd import os import sys import argparse as ap import datetime im...
Python
shell-scribe.py
keithemiller/shell-scribe
apache-2.0
12,528
402
codeparrot/github-code
92cd119d80eb4c25386581c3c33997eacbf540c7d6dcc8b848355bc649ead5a9
/* * Copyright 2021 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
Java
google-ads-stubs-v10/src/test/java/com/google/ads/googleads/v10/services/CustomInterestServiceClientTest.java
googleads/google-ads-java
apache-2.0
4,447
123
codeparrot/github-code
b7d8c8161c0d53952453d15bfcf6b479f53e76a5883ae536680addf4817bb229
#!/usr/bin/env python import os import sys import etcd import subprocess import signal import time if len(sys.argv) < 2: print("Please provide a server argument") sys.exit(1) def siginthandler(signum, stackframe): sys.exit(-1) signal.signal(signal.SIGINT, siginthandler) logpath="/log" if len(sys.argv) > 2: lo...
Python
readlog.py
rasros/CloudTranscoderLTH2
apache-2.0
723
42
codeparrot/github-code
befba924a99e72faa28b0f1ca776f1c1cdeebff837ba97e92e8ec287cc958e55
from mido import MidiFile from time import sleep import pibrella """ fade test pibrella.light.red.fade(0,100,10) sleep(11) pibrella.light.red.fade(100,0,10) sleep(11) """ """ start pibrella.buzzer.note(-9) sleep(.9) pibrella.buzzer.off() sleep(0.1) pibrella.buzzer.note(-9) sleep(0.9) pibrella.buzzer.off() sleep(0.1) ...
Python
bin/pibrellaMidi.py
brata-hsdc/brata.station
apache-2.0
1,422
67
codeparrot/github-code
40868c1f45e5826bb5e774c92cc4144c7b20e79a052302ba84ddf606cf5bbe0f
angular.module('n52.core.base') .factory('styleService', ['$rootScope', 'settingsService', 'colorService', '$injector', "styleServiceStandalone", function($rootScope, settingsService, colorService, $injector, styleServiceStandalone) { var intervalList = settingsService.intervalList; ...
JavaScript
src/js/base/services/styleTs.js
52North/sensorweb-client-core
apache-2.0
4,493
113
codeparrot/github-code
82f234aec5ff3f5aae70bf3ee83f6084fe4fe9bdedfe19f67098810438439455
package main import ( "encoding/json" "flag" "fmt" "github.com/APTrust/bagman/bagman" "github.com/APTrust/bagman/workers" "io/ioutil" "os" ) /* apt_retry retries the record step of a failed item. This only works on items that have passed the prepare and store steps, and then have wound up in the trouble queue....
GO
apps/apt_retry/apt_retry.go
APTrust/bagman
apache-2.0
1,240
49
codeparrot/github-code
94f53cfe60c3619061f8ecfa8b527d313ab401b7c916b7e2670c9574f454cc0a
package org.github.etcd.service.rest.impl; import java.io.IOException; import java.net.URI; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Map; import javax.ws.rs.NotFoundException; import javax.ws.rs.RedirectionException; import javax.ws.rs.WebApplicationException; impor...
Java
src/main/java/org/github/etcd/service/rest/impl/EtcdProxyImpl.java
raoofm/etcd-viewer
apache-2.0
9,095
268
codeparrot/github-code
3135f780c5cfd424e0c53ec0feea7077e56da8ab1773811461446030673f36fc
/** * Slices arrays. * @param array * @param pos * @returns {string} */ var arraySlicer = function (array, pos) { return array.slice(0, pos).concat(array.slice(pos + 1, array.length)); }; /** * https://en.wikipedia.org/wiki/Cosine_similarity * https://en.wikipedia.org/wiki/Canberra_distance * https://en.w...
JavaScript
framework/shared/Utils.js
albertlinde/Legion
apache-2.0
1,720
65
codeparrot/github-code
e54508b763d11467e82bd42c11dd5c21d183be7eb6a8ec5bd19358a74f5e2481
/* * 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 * distribute...
Scala
airframe-json/src/main/scala/wvlet/airframe/json/JSON.scala
wvlet/airframe
apache-2.0
5,960
222
codeparrot/github-code
b378eaefaacd05678dbd6760a5d00d03185a7303870263b711db5a11ff14caca
package akka.contrib.persistence.mongodb import akka.actor.{Actor, ExtendedActorSystem, Props} import akka.persistence.query._ import akka.persistence.query.scaladsl.{CurrentEventsByPersistenceIdQuery, CurrentPersistenceIdsQuery} import akka.persistence.query.javadsl.{CurrentEventsByPersistenceIdQuery => JCEBP, Curren...
Scala
common/src/main/scala/akka/contrib/persistence/mongodb/MongoReadJournal.scala
tomzhang/akka-persistence-mongo
apache-2.0
3,336
86
codeparrot/github-code
7ed77b4f97fa0bc068bbc5da44ae5f6d52452a94dcce70fa0523d6cd8d192709
/* * RMT.cpp * * Created on: Mar 1, 2017 * Author: kolban */ #include <esp_log.h> #include <driver/rmt.h> #include "RMT.h" //static char tag[] = "RMT"; /** * @brief Create a class instance. * * @param [in] pin The GPIO pin on which the signal is sent/received. * @param [in] channel The RMT channel to w...
C++
cpp_utils/RMT.cpp
nkolban/esp32-snippets
apache-2.0
2,638
122
codeparrot/github-code
4ad56bc5c1605b0db112bb96babbad6dba0cb130eb7f040edd2fb87abc9e58d9
/* * Copyright (C) 2015 Decody Software. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
Java
sources/SimpleJSONClient/src/com/decody/android/core/json/exceptions/ResourceNotFoundException.java
menismu/decody-simple-json-client
apache-2.0
999
34
codeparrot/github-code
2ffb882b41d3680214dacfa82f26aed1a5dd5961dfb17619066cdba197fe724a
<?php /** * Created by Whb * Author: Whb * Date: 2016/11/23 * Time: 09:49 */ namespace Common\Model; use Think\Model; class CarModel extends Model { protected $tableName = 'Car'; public function getCount($uid) { $where['uid'] = $uid; $where['del'] = 0; return $this->alias('...
PHP
Application/Common/Model/CarModel.class.php
a13526738157/wx_study
apache-2.0
2,538
87
codeparrot/github-code
244d131397f954130611de0bc505bd70b3eebbc2fb05dfcb90d04fcae3eb9a21
<? class NavigatoroldController extends Zend_Controller_Action { public function init() { header("Location: list/open", true, 301); exit; /* $this->view->submenu_selected = "view"; $this->view->sortby = "nad"; if(isset($_REQUEST["sortby"])) { //dlog("setti...
PHP
app/controls/NavigatoroldController.php
opensciencegrid/ticket
apache-2.0
5,409
163
codeparrot/github-code
1757874a5e9c7b60e97caf2de2bfff0c4833636762b213fff9fda8b060ecb6ac
/* ======================================================================== * Copyright 2008-2011 Mark Crispin * ======================================================================== */ /* * Program: Post Office Protocol 3 (POP3) client routines * * Author: Mark Crispin * * Date: 6 June 1994 * Last Edit...
C
imap/src/c-client/pop3.c
0xkag/alpine
apache-2.0
35,752
1,114
codeparrot/github-code
0d6f3c3576e854a8cd6297cbb5a8f9c9f084695e4c0cbc19a39794c2bb646c24
module FreePalace.Handlers.Incoming where import Control.Concurrent import Control.Exception import qualified System.Log.Logger as Log import qualified FreePalace.Domain.Chat as Chat import qualified FreePalace.Domain.GUI ...
Haskell
src/FreePalace/Handlers/Incoming.hs
psfblair/freepalace
apache-2.0
14,645
265
codeparrot/github-code
9072133da5ec1686d303f5439432b2384d5ebf72b742237fb8327004648b9101
package com.djn.cn.spring.mongodbframework.util; import java.io.Serializable; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; import org.springframework.beans.factory.annotation.Aut...
Java
src/main/java/com/djn/cn/spring/mongodbframework/util/RedisCacheUtil.java
NieDongjia/spring-data-mongodb-master
apache-2.0
5,371
225
codeparrot/github-code
e9ac53c0afba4375086f8bd16b2ac2c9b708d8a67997c12e52316e4b1427288c
// $Id: Reactor_Token_T.cpp 96985 2013-04-11 15:50:32Z huangh $ #include "ace/Log_Category.h" #include "ace/Reactor_Token_T.h" ACE_BEGIN_VERSIONED_NAMESPACE_DECL template <class ACE_TOKEN_TYPE> void ACE_Reactor_Token_T<ACE_TOKEN_TYPE>::dump (void) const { #if defined (ACE_HAS_DUMP) ACE_TRACE ("ACE_Reactor_Token_T:...
C++
ACE_wrappers/ace/Reactor_Token_T.cpp
batmancn/TinySDNController
apache-2.0
1,983
81
codeparrot/github-code
3d481a99d85cfae0910074606fa0f939b9d1aa3e97c6c4c3b76e31e2d47624ee
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/ivs/model/StreamSummary.h> #include <aws/core/utils/json/JsonSerializer.h> #include <utility> using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namespace I...
C++
aws-cpp-sdk-ivs/source/model/StreamSummary.cpp
aws/aws-sdk-cpp
apache-2.0
2,782
138
codeparrot/github-code
89c8a2a4c20fb82302db2d67dddb164c2459a63303272aaf5abb41918de82cd1
/* * Copyright 2016 Lutz Fischer <l.fischer@ed.ac.uk>. * * 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/main/java/rappsilber/utils/Util.java
lutzfischer/XiSearch
apache-2.0
44,716
726
codeparrot/github-code
9797859e3123cacde3ab98c9479e3833ad1f9550fb18b58158a8ea1ad28534f8
/** * * 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
fabric/fabric-core/src/main/java/io/fabric8/api/jmx/MetaTypeObjectDTO.java
alexeev/jboss-fuse-mirror
apache-2.0
2,471
70
codeparrot/github-code
ec4b3ba3a2ea12943c7d14df3cb887c25f90a1d7b9ef26676ef8fe4abe3f7602
/* * Licensed to the Apache Software Foundation (ASF) under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional information regarding * copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the * "License"); you may not ...
Java
geode-dunit/src/main/java/org/apache/geode/test/dunit/DUnitEnv.java
PurelyApplied/geode
apache-2.0
2,522
74
codeparrot/github-code
820e68b03c172e1f0fd26fbd851755500fc3454d733c6ef11eb3247b0e8a360e
/** * * Copyright 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 applicable...
Java
smack-extensions/src/test/java/org/jivesoftware/smackx/forward/ForwardedTest.java
opg7371/Smack
apache-2.0
3,759
109
codeparrot/github-code
f6550c249137c591081570ccbfd086fdeebf4733b266c6cbb22e9429b03b1af4
// UsersSubview -------------------------------------------------------------- // Render a list of Users for the current Facility, with a callback to // handleSelect(user) when a particular User is selected, or // handleSelect(null) if a previously selected User is unselected. // External Modules --------------------...
TypeScript
client/src/subviews/UsersSubview.tsx
craigmcc/cityteam-guests
apache-2.0
5,225
157
codeparrot/github-code
edbdb36002c5717ebfcbc43dd756a8e0cfd314de9fe16d2b5f1f5c85ef8d146c
package cn.tomoya.module.section.entity; import javax.persistence.*; import java.io.Serializable; /** * xgb. * Copyright (c) 2016, All Rights Reserved. * http://tomoya.cn */ @Entity @Table(name = "pybbs_section") public class Section implements Serializable { @Id @GeneratedValue private int id; @Column(...
Java
src/main/java/cn/tomoya/module/section/entity/Section.java
ddppfamily/xgb
apache-2.0
569
37
codeparrot/github-code
75f925522507551c44c5d09b8a3b335800497c0545ed14abee2a6ef35c73bf4c
package uk.ac.ox.zoo.seeg.abraid.mp.common.service.core; import org.apache.commons.io.FileUtils; import org.joda.time.DateTime; import org.junit.Ignore; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; import uk.ac.ox.zoo.seeg.abraid.mp.common.config.SmtpConfiguration; import uk.ac...
Java
src/Common/test/uk/ac/ox/zoo/seeg/abraid/mp/common/service/core/EmailServiceIntegrationTest.java
SEEG-Oxford/ABRAID-MP
apache-2.0
1,815
54
codeparrot/github-code
c2c054d3c2327c3c7784acdd1d41b600732f3dc471623db217ec6d5f7008dfb0
package org.ovirt.engine.ui.userportal.section.main.view.popup.vm; import org.ovirt.engine.ui.common.CommonApplicationResources; import org.ovirt.engine.ui.common.CommonApplicationTemplates; import org.ovirt.engine.ui.common.idhandler.ElementIdHandler; import org.ovirt.engine.ui.common.view.popup.AbstractModelBoundWid...
Java
frontend/webadmin/modules/userportal-gwtp/src/main/java/org/ovirt/engine/ui/userportal/section/main/view/popup/vm/VmNextRunConfigurationPopupView.java
halober/ovirt-engine
apache-2.0
1,626
31
codeparrot/github-code
2cc39ea8444f6e7e7ff6634a8300e18bbc06ee2aa9510ea7415c8ec79a7b5802
/* * Copyright 2017 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
Java
cdep/src/main/java/io/cdep/cdep/ast/finder/ModuleArchiveExpression.java
jomof/cdep
apache-2.0
1,901
56
codeparrot/github-code
bcff45e85314b8813c2dbd2bd081d37c71e0e8ac8a18f2da0208350e9862d985
package info.knigoed.dao; import info.knigoed.config.DataSourceConfig; import info.knigoed.config.OtherConfig; import info.knigoed.config.RequestContext; import info.knigoed.config.WebConfig; import org.junit.FixMethodOrder; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.MethodSorters...
Java
src/test/java/info/knigoed/dao/SearchSphinxDaoTest.java
iormark/Knigoed
apache-2.0
1,654
53
codeparrot/github-code
d5a1953666d798ef42500b46185ad5d29e8c5351f05ca3594f5bbe3f66f7d93c
###########################################$ # Copyright 2008-2010 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.a...
Perl
src/main/resources/project/lib/Amazon/EC2/Model/CreateVolumeResponse.pm
electric-cloud/EC-EC2
apache-2.0
3,460
138
codeparrot/github-code
74458c8ad96df51a8042e3a86943deb6d4b0b40eb32f9d3fe57a78b839458bd5
#ifndef BEARER_TOKEN_H #define BEARER_TOKEN_H #include <stdint.h> #include "json.h" #include "json_object.h" #ifdef __cplusplus extern "C" { #endif #define ACCESS_ACTION_NONE 0 #define ACCESS_ACTION_PULL (1<<0) #define ACCESS_ACTION_PUSH (1<<1) typedef struct _bearer_token bearer_token_t; typed...
C
bearer_token.h
fovecifer/libBearerToken
apache-2.0
1,342
61
codeparrot/github-code
f01138e89bc42264033f7a9ca5bcffb73bf54ffdeee1b7a4651ca1e07c5b6411
/* * 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")...
Java
platform/src/main/java/net/firejack/platform/core/config/meta/element/authority/RoleElement.java
firejack-open/Firejack-Platform
apache-2.0
1,620
50
codeparrot/github-code
ba39b058622e46bf3da5ee7338654f4708c513bfc88cb5c28f5a189c0941a8f2
using System; using NServiceBus; using NServiceBus.Installation.Environments; class Program { static void Main() { Configure.Serialization.Json(); Configure configure = Configure.With(); configure.Log4Net(); configure.DefineEndpointName("Sample.Callbacks.Sender"); confi...
C#
samples/callbacks/Version_4/Sender/Program.cs
pedroreys/docs.particular.net
apache-2.0
3,092
103
codeparrot/github-code
ba16ecca120405942b0331840025e6bbe68be890f7603993304d6d2d873af8fb
/* * Copyright 2016 Ben Manes. 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 applicab...
Java
jcache/src/test/java/com/github/benmanes/caffeine/jcache/integration/CacheLoaderTest.java
ben-manes/caffeine
apache-2.0
3,335
107
codeparrot/github-code
cb96b2d0d170a076fd40ebc8d7be4a801b975ad8f0e5274e6f72912164affaa9
package shixiaofei.coolweather.love.shaonianAndxmv.model; /**County实体类 * Created by shixiaofei on 2016/9/24. */ public class County { private int id; private String countyName; private String countyCode; private int cityId; public int getId() { return id; } public void setId(in...
Java
app/src/main/java/shixiaofei/coolweather/love/shaonianAndxmv/model/County.java
snxmv/coolweather
apache-2.0
826
45
codeparrot/github-code
ad7db3d30821be363512a0f9226a9ea85a4a564af4f2ebbf7736286b42fb7a48
--- title: "PuppetDB 5.2: Reports endpoint" layout: default canonical: "/puppetdb/latest/api/query/v4/reports.html" --- [curl]: ../curl.html#using-curl-from-localhost-non-sslhttp [ast]: ./ast.html [events]: ./events.html [paging]: ./paging.html [statuses]: {{puppet}}/format_report.html#puppettransactionreport [query]:...
Markdown
documentation/api/query/v4/reports.markdown
rbrw/puppetdb
apache-2.0
16,798
457
codeparrot/github-code
c8f2ca4f7a3d1cb832d3d4c433a4769921242acf1ebbcd87b6fe82c26fd7244c
/* 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 * distributed...
Java
modules/flowable-ui-modeler/flowable-ui-modeler-logic/src/main/java/org/activiti/app/service/editor/ModelImageService.java
roberthafner/flowable-engine
apache-2.0
7,838
206
codeparrot/github-code
98dbbc312390061e8b4ec2cf5687afc5f6d3f2c85b4e4941c4039cc6fece42d8
/* * Copyright (c) 2014 Juniper Networks, Inc. All rights reserved. */ var global = require('./global'), config = process.mainModule.exports.config, commonUtils = require('../utils/common.utils'), logutils = require('../utils/log.utils'); var serviceRespData = {}; var webuiIP = null; function checkIfSe...
JavaScript
src/serverroot/common/discoveryclient.api.js
vishnuvv/contrail-web-core
apache-2.0
7,665
254
codeparrot/github-code
cbcaf89fbb40d28e3b8bb548c8d056c4468feebc81d987a6cb6c7d73312b4275
package edu.conncoll.cas.interrupts.web.flow; import java.util.Map; import org.apache.commons.lang3.tuple.Pair; import org.apereo.cas.authentication.Credential; import org.apereo.cas.authentication.principal.Principal; import org.apereo.cas.ticket.registry.TicketRegistrySupport; import org.apereo.cas.web.support.WebUt...
Java
src/main/java/edu/conncoll/cas/interrupts/web/flow/AbstractConncollInterruptsRepository.java
ConnCollege/cas-5
apache-2.0
3,485
91
codeparrot/github-code
7ddf5aa96d17b36990495daba5324f959074cf97de96da4f4cf9dba8bfcabb69
package com.lucilu.rxdynamicsearch.fragments.base; import com.lucilu.rxdynamicsearch.IInjectable; import com.lucilu.rxdynamicsearch.viewmodel.base.ViewModel; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import...
Java
app/src/main/java/com/lucilu/rxdynamicsearch/fragments/base/BaseFragment.java
luciapayo/RxDynamicSearch
apache-2.0
1,338
53
codeparrot/github-code
583eaea497fd209a1c2d9192b92b04f5b68831a9575bdc2320d22ce9603b63fb
/* This question is from https://leetcode.com/problems/strobogrammatic-number/ Difficulty: easy A strobogrammatic number is a number that looks the same when rotated 180 degrees (looked at upside down). Write a function to determine if a number is strobogrammatic. The number is represented as a string. Example 1: I...
Java
Easy/246 Strobogrammatic Number.java
yehchilai/IQ
apache-2.0
1,026
41
codeparrot/github-code
772faf8cdee7e7c7a75d9eec9c0eb1c191121ad72d4b4899a1fddb6ae3368760
from __future__ import absolute_import from __future__ import division from __future__ import print_function import paddle.fluid as fluid from utility import get_gpu_num class NpairsLoss(): def __init__(self, train_batch_size = 160, samples_each_class=2, reg_l...
Python
fluid/PaddleCV/metric_learning/losses/npairsloss.py
kuke/models
apache-2.0
2,981
59
codeparrot/github-code
a7d1c8619ee648538e2fd69dfcd80819aaee7a3883e5f583ba0eb2b0e37da13a
// Copyright (C) 2010 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 applicable ...
Java
gerrit-server/src/main/java/com/google/gerrit/server/project/RefControl.java
Saulis/gerrit
apache-2.0
20,772
626
codeparrot/github-code
4cea2d3e459d74884e4fbcdd6be8ce00e24361800cbf99b37432a6ce9807aa44
"""Support for INSTEON Modems (PLM and Hub).""" import asyncio from contextlib import suppress import logging from pyinsteon import async_close, async_connect, devices from homeassistant.config_entries import SOURCE_IMPORT from homeassistant.const import CONF_PLATFORM, EVENT_HOMEASSISTANT_STOP from homeassistant.exce...
Python
homeassistant/components/insteon/__init__.py
home-assistant/home-assistant
apache-2.0
5,664
175
codeparrot/github-code
a38f01169066489f32d7e8ccbb784a4ddaed65446aaf9bd8eb67061dfa21dfa0
/** * Copyright 2016 Smart Society Services B.V. * * 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 */ package org.opensmartgridplatform.ada...
Java
osgp-adapter-domain-microgrids/src/main/java/org/opensmartgridplatform/adapter/domain/microgrids/infra/jms/core/OsgpCoreRequestMessageListener.java
OSGP/Platform
apache-2.0
2,183
54
codeparrot/github-code
31f6b114462e67bb895c6657a1a8318c00166c7902e716c4e458d11c3749a429
/* Siconos is a program dedicated to modeling, simulation and control * of non smooth dynamical systems. * * Copyright 2018 INRIA. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * *...
C++
kernel/src/simulationTools/MoreauJeanCombinedProjectionOSI.cpp
fperignon/siconos
apache-2.0
6,457
199
codeparrot/github-code
07ef488905bfab69a739549f95f354b774d9f6149bcaf96485ac74ee7c50a475
"""Config flow for ReCollect Waste integration.""" from __future__ import annotations from typing import Any from aiorecollect.client import Client from aiorecollect.errors import RecollectError import voluptuous as vol from homeassistant import config_entries from homeassistant.const import CONF_FRIENDLY_NAME from ...
Python
homeassistant/components/recollect_waste/config_flow.py
sander76/home-assistant
apache-2.0
3,365
105
codeparrot/github-code
98f534eb19a7a17b80da5bf60ee7b8049589f46a5f1b16f30450a35cdfd31ef1
<title>George Washington Univeristy Bookstore</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="keywords" content="Keywords here"> <meta name="description" content="Description here"> <meta name="Author" content="MyFreeTemplates.com"> <META NAME="robots" CONTENT="index, follow...
PHP
gw/testpass.php
hammadalinaqvi/bookstoregenie
apache-2.0
7,123
142
codeparrot/github-code
427a26dbb21edf69a413d9ebe584f2e4a079a3a240cb48dec32af6f1c15f7428
// Copyright 2017 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
Java
courses/data_analysis/deepdive/pubsub-exercises/exercise2/solution/src/main/java/com/google/cloud/sme/pubsub/Subscriber.java
GoogleCloudPlatform/training-data-analyst
apache-2.0
5,078
137
codeparrot/github-code
085642c48b318aeac7422c2504dfc662cfbf1b4471dd345ee55187f144d28705
/* * 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/test/scala/org/apache/spark/DistributedSuite.scala
windeye/spark
apache-2.0
12,958
340
codeparrot/github-code
79f7910c347c88970ac1ac91509d4179b5c255ad7bd0fd8b50ef7418ffd37155
/* * Copyright 2015 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, soft...
Java
drools-reteoo/src/main/java/org/drools/reteoo/nodes/ReteRightInputAdapterNode.java
mdproctor/drools
apache-2.0
7,154
176
codeparrot/github-code
1981c3a49d3820fecb52d7624cc6bd42a8687a8c53e34775da950de9332cb6b1
webserver.prototype.__proto__ = require('events').EventEmitter.prototype; webserver.prototype.server = null; webserver.prototype.config = null; webserver.prototype.endpoints = []; const bodyParser = require('body-parser'); const express = require('express'); const multer = require('multer'); const formData = multer...
JavaScript
lib/webserver.js
Undeadkillz/node-steam-bot-manager
apache-2.0
5,757
165
codeparrot/github-code
95618d31180fa9386fda93b3fc690067b9ef3dae5401dd7969c44c0511e44c43
package ru; /** * Реализуем тест для класса Calculator * @author Aleksandr Belov * @date 23.09.2016 */ import org.junit.Test; import static org.hamcrest.core.Is.is; import static org.junit.Assert.*; public class CalculatorTest { /* * Тест сложения */ @Test public void whenAddShouldSummateIt() { final...
Java
chapter_001/part_002/src/test/java/ru/CalculatorTest.java
xcyde/Java-A-to-Z
apache-2.0
1,321
74
codeparrot/github-code
a3167560ef009fd77b3c7e9e3d44321d454623ce447c1f1a2dffdc69942ccd21
/** * $Id$ * * @author Moxiecode * @copyright Copyright © 2004-2006, Moxiecode Systems AB, All rights reserved. */ /* Import plugin specific language pack */ tinyMCE.importPluginLanguagePack('nonbreaking'); var TinyMCE_NonBreakingPlugin = { getInfo : function() { return { longname : 'Nonbreaking space', ...
JavaScript
webapps/ROOT/html/js/editor/tiny_mce/plugins/nonbreaking/editor_plugin_src.js
WilliamGoossen/epsos-common-components.gnomonportal
apache-2.0
1,758
63
codeparrot/github-code
a07c7065850ac47df4c3c4085c844dcdc9ca7add46df65d6bbea075f70259e6e
""" Cisco_IOS_XR_infra_objmgr_cfg This module contains a collection of YANG definitions for Cisco IOS\-XR infra\-objmgr package configuration. This module contains definitions for the following management objects\: object\-group\: Object\-group configuration Copyright (c) 2013\-2016 by Cisco Systems, Inc. All rig...
Python
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_infra_objmgr_cfg.py
111pontes/ydk-py
apache-2.0
90,489
2,588
codeparrot/github-code
d93129745f1a1af87f74498a1514bf95f3681863bfff09865195cb1029114d01
/* * Copyright 2017-present Open Networking Laboratory * * 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
apps/pce/app/src/main/java/org/onosproject/pce/pceservice/constraint/PceBandwidthConstraint.java
LorenzReinhart/ONOSnew
apache-2.0
3,582
115
codeparrot/github-code
c81d96e26a74c582ea4b7c512ab25da6ca3b63111f325dfd9228913793dc59fa
/** * */ package com.opensymphony.xwork2.ognl.accessor; import ognl.ObjectPropertyAccessor; import ognl.OgnlException; import org.apache.struts2.dispatcher.Parameter; import java.util.Map; public class ParameterPropertyAccessor extends ObjectPropertyAccessor { @Override public Object getProperty(Map conte...
Java
src/core/src/main/java/com/opensymphony/xwork2/ognl/accessor/ParameterPropertyAccessor.java
Ile2/struts2-showcase-demo
apache-2.0
1,102
33
codeparrot/github-code
5724d5347a1a787ffeb8075884d02fb8a18a4ae746355a724f482240f9bb5e06
package algorithms.search /** * Created by yujieshui on 2017/5/25. */ object AbsoluteElementSums { import scala.annotation.tailrec import scala.math.Ordering import scala.collection.Searching.{Found, InsertionPoint, SearchResult} implicit class WithSearch[A](coll: Seq[A]) { final def search[B >: ...
Scala
src/main/scala/algorithms/search/AbsoluteElementSums.scala
1178615156/hackerrank
apache-2.0
2,966
109
codeparrot/github-code
3e82dbb08e954edc60e31b6b8cb3396e296fca482cf151b24eed3071ddbf4767
/* * * 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"); y...
JavaScript
plugins/cordova-plugin-device-motion/src/tizen/AccelerometerProxy.js
michaelrbk/showCaseCordova
apache-2.0
1,957
52
codeparrot/github-code
c59bf090e90671ea9c044f79caaf23f455b5ea3abd6f314d008a1e032a1297ab
using System; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Web; namespace NuGetViz.Models { public class NuGetPackageVersion { public string PackageID { get; set; } public bool IsReleaseVersion { get...
C#
NuGetViz/Models/NuGetPackageVersion.cs
punitganshani/NuGetViz
apache-2.0
1,435
46
codeparrot/github-code