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
c4aca68028e8621c67f6cbde9377ed021f944a721064013f1c1a0dfb8c61e632
/* * 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-ivs/src/main/java/com/amazonaws/services/ivs/model/transform/ListTagsForResourceRequestProtocolMarshaller.java
aws/aws-sdk-java
apache-2.0
2,686
63
codeparrot/github-code
7f9139a864e4d3fdd71c8c8add052674cd6f049b07b1f23eb369bddd0fb6a8b8
package com.taobao.tddl.rule; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Set; import com.google.common.collect.Lists; import com.taobao.tddl.common.exception.TddlException; import com.taobao.tddl.common.exception.TddlRun...
Java
tddl-rule/src/main/java/com/taobao/tddl/rule/TddlRule.java
xloye/tddl5
apache-2.0
11,886
344
codeparrot/github-code
0cd81267e986e8abb83997dba38b718528599c07dd3f19d93e216459bff9c6cf
package org.apereo.cas.audit.spi; import lombok.Getter; import lombok.val; import org.apereo.inspektr.audit.AuditActionContext; import org.apereo.inspektr.audit.AuditTrailManager; import org.junit.jupiter.api.Test; import java.time.LocalDate; import java.util.Collections; import java.util.Date; import java.util.HashS...
Java
core/cas-server-core-audit-api/src/test/java/org/apereo/cas/audit/spi/FilterAndDelegateAuditTrailManagerTests.java
GIP-RECIA/cas
apache-2.0
2,383
73
codeparrot/github-code
75bb3aeb2ce85153d8a2da3ca55e65880dfee475d7472fe11c8e040fa00847a5
package org.jnbis.internal.record.reader; import org.jnbis.internal.NistHelper; import org.jnbis.api.model.record.HighResolutionGrayscaleFingerprint; /** * @author ericdsoto */ public class HighResolutionGrayscaleFingerprintReader extends RecordReader { @Override public HighResolutionGrayscaleFingerprint r...
Java
src/main/java/org/jnbis/internal/record/reader/HighResolutionGrayscaleFingerprintReader.java
kulgan/jnbis
apache-2.0
1,280
40
codeparrot/github-code
5ca94239ca62a81a7fa0a8916ee9737cedfb3ab40691749066109b2b7085fa00
setTimeout(function(){ (function(){ id = Ti.App.Properties.getString("tisink", ""); var param, xhr; file = Titanium.Filesystem.getFile(Titanium.Filesystem.resourcesDirectory,"examples/table_view_composite.js"); text = (file.read()).text xhr = Titanium.Network.createHTTPClient(); xhr.open("POST...
JavaScript
Resources/examples/table_view_composite.js
steerapi/KichenSinkLive
apache-2.0
2,078
74
codeparrot/github-code
1f931bd56717912a023526f2c9218bf917fd9e3a810e162d644326de23690c1a
package com.spaceproject.ui.debug.nodes; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.scenes.scene2d.ui.Label; import com.kotcrab.vis.ui.VisUI; import com.spaceproject.ui.debug.ECSExplorerWindow; import com.spaceproject.utility.DebugUtil; import com.spaceproject.utility.SimpleTimer; import java.lan...
Java
core/src/com/spaceproject/ui/debug/nodes/ReflectionNode.java
0XDE57/SpaceProject
apache-2.0
1,746
65
codeparrot/github-code
76df58613a50060aec6254b0cd6f4d1efcd6aa09759602cff7b2f00b0fc3c189
using System; using System.Diagnostics.Contracts; using System.Linq; using System.Text.RegularExpressions; using System.Web.Http.Routing; namespace Pelykh.Common.Web.Http { [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, Inherited = true, AllowMultiple = true)] public class RouteExAttribute ...
C#
Pelykh.Common.Web/Http/RouteExAttribute.cs
alexey-pelykh/Pelykh.Common
apache-2.0
2,836
87
codeparrot/github-code
05e38c199c5306f99b7b7df153473356039875bfbf90c224862c253fcbfbf4a7
/* 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 writing, software dis...
GO
go/vt/sqlparser/analyzer.go
sougou/vitess
apache-2.0
7,427
300
codeparrot/github-code
492636c72afff043550c886b2828e8dc14220e6a3fab561899fa9957a0703a76
/* * Copyright 2012-2016 The Pkcs11Interop 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...
C#
src/Pkcs11Interop/Pkcs11Interop/HighLevelAPI40/MechanismParams/CkKipParams.cs
thearkhelist/Pkcs11Interop
apache-2.0
4,545
136
codeparrot/github-code
fc17141a6a3a4c05260f33e5e0ca1a4edda3f0ad02f2f2e16140f82470b0eaaf
package com.atsebak.embeddedlinuxjvm.protocol.ssh.jsch; import com.jcraft.jsch.UIKeyboardInteractive; import com.jcraft.jsch.UserInfo; import javax.swing.*; import java.awt.*; /** * Referenced from http://www.jcraft.com/jsch/examples/ */ public class EmbeddedUserInfoInteractive implements UserInfo, UIKeyboardInter...
Java
src/com/atsebak/embeddedlinuxjvm/protocol/ssh/jsch/EmbeddedUserInfoInteractive.java
asebak/embeddedlinux-jvmdebugger-intellij
apache-2.0
3,242
104
codeparrot/github-code
970b97e0b5ac373d405de7c2e7272399d37d974f2e28022d07d53f3a6d78b2d5
/* GStreamer * Copyright (C) 2012 Roland Krikava <info@bluedigits.com> * Copyright (C) 2010-2011 David Hoyt <dhoyt@hoytsoft.org> * Copyright (C) 2010 Andoni Morales <ylatuya@gmail.com> * Copyright (C) 2012 Sebastian Dröge <sebastian.droege@collabora.co.uk> * * This library is free software; you can redistribute i...
C
third_party/gst-plugins-bad/sys/d3dvideosink/d3dhelpers.c
google/aistreams
apache-2.0
77,400
2,779
codeparrot/github-code
82588c191635c87595956ec32f4b0186adc527a479a0c93e135b9da060f4211d
/* * JBoss, Home of Professional Open Source. * Copyright 2014 Red Hat, Inc., and individual contributors * as indicated by the @author tags. * * 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 Licen...
Java
core/src/main/java/io/undertow/server/HttpServerExchange.java
wildfly-security-incubator/undertow
apache-2.0
82,953
2,352
codeparrot/github-code
72f8878050c0ba099a6c3bbb86082e304e37d3a2c1b867c3dd3b1668b8fcdbdc
# =============================================================================== # Copyright 2011 Jake Ross # # 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...
Python
pychron/extraction_line/switch_manager.py
UManPychron/pychron
apache-2.0
40,032
1,202
codeparrot/github-code
91c7f934469b345fdff2cab0b73d755a33bb1f9848cde925474146eb1850cbf8
/* * * Copyright 2012-2014 Eurocommercial Properties NV * * * Licensed under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless req...
Java
module/src/main/java/org/incode/module/communications/dom/impl/commchannel/EmailAddressRepository.java
incodehq/incode-module-communications
apache-2.0
2,266
67
codeparrot/github-code
916316e88bbc4400a5bc98afca51a2318669a130a1be0e543091ddddda6e40ae
package app.coolweather.coolweather.model; /** * Created by 付增庆 on 2016/3/31. */ public class County { private int id; private String countyName; private String countyCode; private int cityId; public int getCityId() { return cityId; } public void setCityId(int cityId) { ...
Java
app/src/main/java/app/coolweather/coolweather/model/County.java
fuzqcwy/coolweather
apache-2.0
794
44
codeparrot/github-code
5f9c36590ffbb480778911a1a9d3cc21e6f181579b9060d6ef1cacfd1d1493a0
# -*- coding: utf8 -*- from urllib.request import Request, urlopen import logging import parsing __author__ = 'carlos' class Downloader(object): def __init__(self, url): self.url = url def read(self): request = Request( self.url ) request.add_header('Accept-encoding', 't...
Python
data_input/__init__.py
carlosvin/pricecalculator
apache-2.0
1,020
47
codeparrot/github-code
d56249f87e8f9f8c410fdc527881468ac9efc608a7c382e647f01c8eeb3a245f
package by.youdrive.commons; import by.youdrive.commons.support.ResourceRepresentation; import by.youdrive.domain.UserEntity; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import org.hibernate.validator.constraints.NotEmpty; import javax.validation.constraints.NotNull; @JsonIgnoreProperties(ignoreUnk...
Java
src/main/java/by/youdrive/commons/User.java
GermisMc/YouDrive-api
apache-2.0
1,780
79
codeparrot/github-code
0cc540ae54fdffa0603b5ee2a78fc12513e4b909bb9c520e9c16c8dd6eb3e0fd
package org.elfwerks.sandbox.jetty; import java.net.URL; import java.security.ProtectionDomain; import org.eclipse.jetty.server.Server; import org.eclipse.jetty.webapp.WebAppContext; public class Bootstrap { public static void main(String[] args) throws Exception { Server server = new Server(8080);...
Java
Java/mvn/jetty-embedded-shade/src/main/java/org/elfwerks/sandbox/jetty/Bootstrap.java
egustafson/sandbox
apache-2.0
810
31
codeparrot/github-code
eec0eb18c5ea71849a40ace57702896ee2d8c38a350851d0b86cdeeb5d503a3c
# Copyright 2019 Capital One Services, LLC # Copyright The Cloud Custodian Authors. # SPDX-License-Identifier: Apache-2.0 from c7n.utils import type_schema from c7n_gcp.actions import MethodAction, SetIamPolicy from c7n_gcp.provider import resources from c7n_gcp.query import QueryResourceManager, TypeInfo, ChildTypeInf...
Python
tools/c7n_gcp/c7n_gcp/resources/spanner.py
capitalone/cloud-custodian
apache-2.0
5,796
184
codeparrot/github-code
e34240e2788a07a2c97074ca2769a601e083e63ea67332bbe6b842f463bcd9d8
/* * 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
enhanced/archive/classlib/java6/modules/swing/src/main/java/common/javax/swing/text/PlainView.java
freeVM/freeVM
apache-2.0
12,242
339
codeparrot/github-code
1db047054aac4c4256d2a02535a076027596d0199b58d558b5be5bc369cef04c
/* Glassomium - web-based TUIO-enabled window manager http://www.glassomium.org Copyright 2012 The Glassomium 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:...
C
src/WebView.h
pierotofy/glassomium
apache-2.0
4,702
158
codeparrot/github-code
ddea18d6ed12eeaac561590f5f88a6c095889d51bf636f67a83251adfd80c7d8
<?php /** * MyBB 1.6 English Language Pack * Copyright 2010 MyBB Group, All Rights Reserved * * $Id$ */ $l['nav_profile'] = "Profile of {1}"; $l['nav_warning_log'] = "Warning Log"; $l['nav_add_warning'] = "Warn User"; $l['nav_view_warning'] = "Warning Details"; $l['warning_for_post'] = ".. Post:"; $l['already_...
PHP
forum/inc/languages/english/warnings.lang.php
Flauschbaellchen/florensia-base
apache-2.0
4,857
93
codeparrot/github-code
e778d1c478a97f8dab090aaae4fe9b134bcc3024927bf42868384fc74862e104
using System; namespace NefitSharp { class NefitHTTPResponse { public int Code { get; } public string[] HeaderData { get; } public string Payload { get; } public NefitHTTPResponse(string result) { string[] res = result.Split('\n'); if (re...
C#
NefitSharp/NefitHTTPResponse.cs
ThaStealth/NefitSharp
apache-2.0
795
30
codeparrot/github-code
430a4058de1e49a6e85781e025f24d26127c00142cb54bf247942eddff2108f8
/** * TestValida.java * appEducacional * 28/07/2014 18:06:57 * Copyright David Romero Alcaide * com.app.pruebasunitarias.domainservices */ package com.app.pruebasunitarias.domainservices; import org.junit.Test; import org.springframework.util.Assert; import com.app.domain.domainservices.Valida; /** * @author David...
Java
appEducacionalVaadin/src/test/java/com/app/pruebasunitarias/domainservices/TestValida.java
david-romero/tfg-vaadin
apache-2.0
820
47
codeparrot/github-code
ef3ffbb5d123cc8df8b70578539b1fda51eb2882c1d61ce723ebcc49a0358989
<!doctype html> <html lang="{{ HTML_LANG }}"> <head> <meta charset="utf-8"/> <title>{% block title %}{{ SITENAME }}{%endblock%}</title> <meta name="author" content="{{ AUTHOR }}"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="top" href="#" /><link href='http://fonts.googleapis...
HTML
theme/templates/base.html
mrunge/blog
apache-2.0
3,406
113
codeparrot/github-code
c4699f58ba1d4e8fbb3ddd3618f975b7c575079ea41e5fe7093f30d80641e2db
/* * 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-ecr/src/main/java/com/amazonaws/services/ecr/model/GetAuthorizationTokenRequest.java
aws/aws-sdk-java
apache-2.0
6,271
165
codeparrot/github-code
864a047a0c18286f72a926c3f34afa4f30d37bb7432b3efe0bba6c19de539d5a
package us.hebi.histogram.visualizer.parser; import javafx.scene.chart.XYChart; import javafx.scene.chart.XYChart.Data; import org.HdrHistogram.*; import java.util.ArrayList; import java.util.List; import java.util.function.DoubleBinaryOperator; import java.util.function.DoubleFunction; import java.util.function.Doub...
Java
src/main/java/us/hebi/histogram/visualizer/parser/HistogramAccumulator.java
ennerf/HdrHistogramVisualizer
apache-2.0
5,176
141
codeparrot/github-code
8f2755a31fe1c5ae8e4cc9e213638975363a0d9d5fcd2e28530b4b9b74fe9945
/* * Copyright (C) 2007-2013 German Aerospace Center (DLR/SC) * * Created: 2010-08-13 Markus Litz <Markus.Litz@dlr.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...
C++
src/fuselage/CCPACSFuselage.cpp
DLR-SC/tigl
apache-2.0
21,911
651
codeparrot/github-code
57627986df27dc8ea61472b6715b59b3dc79ebfc9eb438f9c53437a45825d9e7
/* * 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-kinesisvideo/src/main/java/com/amazonaws/services/kinesisvideo/AmazonKinesisVideoArchivedMediaAsyncClientBuilder.java
aws/aws-sdk-java
apache-2.0
2,653
66
codeparrot/github-code
d3b2b239717cb4b55d0412877eaeb91f1e944e5cb175e6f787ced4ef0b0bd493
<?xml version="1.0" encoding="iso-8859-1"?> <!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> <!-- template designed by Marco Von Ballmoos --> <title>Docs For Class App_Filter_RemoveBOM<...
HTML
frontend/source/docs/phpdoc/Filter/App_Filter_RemoveBOM.html
TKiura/WeDGenS
apache-2.0
6,099
193
codeparrot/github-code
1b4e8b0b6857096c600ccd1c1ffcdcb57fd8a4b7a985c4b62cb7954219fc7757
/* * #%L * wcm.io * %% * Copyright (C) 2014 wcm.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 ap...
Java
media/src/test/java/io/wcm/handler/mediasource/inline/InlineMediaSourceTest.java
cnagel/wcm-io-handler
apache-2.0
55,000
1,038
codeparrot/github-code
23c12f8800c94cd827a5f0233a13bf880f31de80565223cf4981cc26851f1e9c
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
Java
src/java/org/apache/cassandra/db/BinaryMemtable.java
sammyyu/Cassandra
apache-2.0
5,577
182
codeparrot/github-code
5a3b48405e6273e4ce698e50cfafa3dae1ecb463cbc71a1fe4a25b7c53cde42a
/* * Copyright (c) 2021, Peter Abeles. All Rights Reserved. * * This file is part of BoofCV (http://boofcv.org). * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apac...
Java
main/boofcv-ip/src/test/java/boofcv/alg/border/CheckGrowBodersSB.java
lessthanoptimal/BoofCV
apache-2.0
3,054
100
codeparrot/github-code
fa55b0990bb698335e1bf37a4711db424067f723ad46ff298054c4b6938d618f
<?php namespace Zerifas\Supermodel\Metadata; use InvalidArgumentException; use Zerifas\Supermodel\Cache\CacheInterface; use Zerifas\Supermodel\Model; use Zerifas\Supermodel\Relation\AbstractRelation; use Zerifas\Supermodel\Transformer\TransformerInterface; class MetadataCache { /** * @var CacheInterface ...
PHP
src/Metadata/MetadataCache.php
Drarok/supermodel
apache-2.0
2,844
116
codeparrot/github-code
6356743a245820fddbe1578d63c6975c4396f04dff9b3c3c4ee70f87555f7566
/* MicroNFCBoard mbed API Copyright (c) 2014-2015 AppNearMe Ltd Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
C
src/transport.h
AppNearMe/micronfcboard-mbed-peripheral
apache-2.0
2,690
107
codeparrot/github-code
4fc15c345afaa70ea60faaefd03b49cb4a402f50e1090dee12f503f295f6a983
#include "source/common/http/async_client_impl.h" #include <chrono> #include <map> #include <memory> #include <string> #include <vector> #include "envoy/config/core/v3/base.pb.h" #include "source/common/grpc/common.h" #include "source/common/http/utility.h" #include "source/common/tracing/http_tracer_impl.h" namesp...
C++
source/common/http/async_client_impl.cc
envoyproxy/envoy
apache-2.0
14,632
340
codeparrot/github-code
8c7a5d588981f80de5c1b32b18711ce668ba38354c4039fa63805bbe6d4dd9d4
<?php namespace Braintree; use InvalidArgumentException; /** * Braintree TransactionGateway processor * Creates and manages transactions * * * <b>== More information ==</b> * * For more detailed information on Transactions, see {@link http://www.braintreepayments.com/gateway/transaction-api http://www.braintre...
PHP
application/libraries/braintree-php-3.18.0/lib/Braintree/TransactionGateway.php
kbrohkahn/sixsided.com
apache-2.0
17,049
521
codeparrot/github-code
df102890987e9d17d79ac86c0cbf6c80b30c1943747337b1eb80737d7f1ee69e
/* 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
jerry-core/ecma/operations/ecma-regexp-object.h
akosthekiss/jerryscript
apache-2.0
7,272
188
codeparrot/github-code
88879bc82de21de1ef594db84455401bc2cca6cbfda99d0606f7bebfb65b0904
class Reg { public code:number; public desc:string; constructor(code:number, desc:string) { this.code = code; this.desc = desc; } } class RegMap { /* public static map = [ new Reg( 0x00, "vertex attribute" ), new Reg( 0x01, "fragment constant" ), new Reg( 0x01, "vertex constant" ), new Reg( 0x02,...
TypeScript
lib/aglsl/assembler/RegMap.ts
ImaginationSydney/awayjs-stagegl
apache-2.0
2,553
85
codeparrot/github-code
b2bbfd9c80ac07ca3584ef3d48179fe17b4e7084041e002ae1a9ae9a8717926c
/* * Comet4J Copyright(c) 2011, http://code.google.com/p/comet4j/ This code is * licensed under BSD license. Use it as you wish, but keep this copyright * intact. */ package org.comet4j.core.temp; import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Date; import jav...
Java
comet4j-jar/src/org/comet4j/core/temp/StreamingXHRServlet.java
jinghai/comet4j
apache-2.0
4,515
187
codeparrot/github-code
16add576e0f6ac31065a2536ce17331b1f43a8eb1f048ca6055cd6060e7a2b5f
"""Event loop implementation that uses the `asyncio` standard module. The `asyncio` module was added to python standard library on 3.4, and it provides a pure python implementation of an event loop library. It is used as a fallback in case pyuv is not available(on python implementations other than CPython). Earlier p...
Python
neovim/msgpack_rpc/event_loop/asyncio.py
meitham/python-client
apache-2.0
4,579
138
codeparrot/github-code
97e7395063afa1706175a8d14276f45680181a37020f3ec9b61898923b8c624e
package nsserviceaccount import ( "context" rv1 "github.com/rancher/rancher/pkg/generated/norman/core/v1" "github.com/rancher/rancher/pkg/types/config" "github.com/sirupsen/logrus" corev1 "k8s.io/api/core/v1" apierrors "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/runtime" ) const ( projectID...
GO
pkg/controllers/managementagent/nsserviceaccount/nssvcaccnt.go
rancher/rancher
apache-2.0
2,501
71
codeparrot/github-code
1e73b97095c004e6fd590de4246f0e82bce35340c3dc70885b7b24baf55972f5
package com.superclassgroup.navigationdriving.modules; /** * Created by Mai Thanh Hiep on 4/3/2016. */ public class Duration { private String text; private int value; public String getText() { return text; } public void setText(String text) { this.text = text; } public ...
Java
navigationdrivinglibrary/src/main/java/com/superclassgroup/navigationdriving/modules/Duration.java
huyjackson/NavigationDrivingLibrary
apache-2.0
548
32
codeparrot/github-code
59e54e3de1393c88deeef474c51c4a1526829c1d7a2477957cacd4e8c3404e27
from version import VERSION import sys, os, getpass import re import optparse def coalesce( *values ): for f in values: if f is not None: return f class ConversionError(Exception): def __init__(self, value): self.value = value def __str__(self): return repr(self...
Python
mastersystem/zxb-sms-2012-02-23/zxb-sms/wip/zxb2wla.py
haroldo-ok/really-old-stuff
apache-2.0
11,822
426
codeparrot/github-code
9a89935c2b5c341c53e641adb72d9ecdf45f9a9c22b70a31c38ac4fbdc2df7ca
'use strict'; angular.module('testProjectApp') .provider('AlertService', function () { this.toast = false; this.$get = ['$timeout', '$sce', '$translate', function($timeout, $sce,$translate) { var exports = { factory: factory, isToast: isToast, ...
JavaScript
src/main/webapp/scripts/components/alert/alert.service.js
BastienSabos/TestProject
apache-2.0
4,249
133
codeparrot/github-code
68318876bd99969cde2dce6aadcefcccca7f1f6b8ba3a9f27ac3fb0fa2df3030
/* * Copyright 2014-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
src/com/facebook/buck/cxx/CxxPreprocessAndCompile.java
rowillia/buck
apache-2.0
10,699
314
codeparrot/github-code
d8c8ea83c78fba8500aeb34e226cdbfc6b7f768f5c5a61e4cee95f3e9e4827c6
package com.timehop.stickyheadersrecyclerview; import android.graphics.Canvas; import android.graphics.Rect; import android.support.v4.util.LongSparseArray; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.util.SparseArray; import android.view.View; im...
Java
library/src/main/java/com/timehop/stickyheadersrecyclerview/StickyRecyclerHeadersDecoration.java
felipecsl/sticky-headers-recyclerview
apache-2.0
8,717
217
codeparrot/github-code
3ea47c14d6c0659129e76a5430eb9fa4ed9d0af813d358d0a1247beb4dea8ab5
package com.example.bot.spring.database; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.List; import java.util.ArrayList; import java.util.Set; import java.util.HashSet; public class ConfirmDBEngine extends DBEngine { // functions for confirmation // r...
Java
sample-spring-boot-kitchensink/src/main/java/com/example/bot/spring/database/ConfirmDBEngine.java
xzhangbx/Line-chatbot-for-COMP3111
apache-2.0
3,278
121
codeparrot/github-code
4050cc4ea459fa4483327b980192e8ab24ce62ed87d7c06329faa8d826929715
import React, { Component } from 'react'; import {Responsive, WidthProvider} from 'react-grid-layout'; import AboutView from './AboutView'; import ConfigStorageHelper from './util/ConfigStorageHelper'; import DeviceListView from './DeviceListView'; import DeviceWidget from './widgets/DeviceWidget'; import JSONClientSin...
JavaScript
src/App.js
domoticz/Reacticz
apache-2.0
23,283
649
codeparrot/github-code
1bad6743cbe53ef4fa1e93e16ffd001de9d1daac0c9bd2f2d19c094e157de5ef
package com.planet_ink.coffee_mud.Abilities.Spells; 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/Spells/Spell_Mirage.java
bozimmerman/CoffeeMud
apache-2.0
5,461
197
codeparrot/github-code
3e9e60b1aaf2f7399e49fe0d915570099a5a126350027d1716e3dcf5d0dc41ec
/* * Copyright 2011-2015 Numeric Technology * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
C#
KPCodeGen.Core/Generator/KPAspNetFormsGerenator.cs
NumericTechnology/KPCodeGen.Net
apache-2.0
24,770
534
codeparrot/github-code
31f8c04c9e18fed6c1375a2d44512ca20527daca71cdd39b062b36fc2c0cea4f
/* * User: anna * Date: 20-May-2008 */ package com.intellij.coverage; import com.intellij.execution.configurations.SimpleJavaParameters; import com.intellij.openapi.diagnostic.Logger; import com.intellij.openapi.module.Module; import com.intellij.openapi.module.ModuleManager; import com.intellij.openapi.project.Pro...
Java
plugins/coverage/src/com/intellij/coverage/JaCoCoCoverageRunner.java
signed/intellij-community
apache-2.0
5,791
156
codeparrot/github-code
b2185381ac0607b0cfae0a9f513ba62772bc1de08b5ae6e765836832b53e9170
<!DOCTYPE html > <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> <title>Evaluator 1.0.0 - net.totietje.complex.ComplexFunction.UnaryMinus</title> ...
HTML
docs/1.0.0/net/totietje/complex/ComplexFunction$$UnaryMinus.html
totietje/Evaluator
apache-2.0
61,149
923
codeparrot/github-code
df98517742f84e59fdd86297f2a79d17ca8201b5ec18853be3933552c0bef3ea
package io.citrine.lolo.encoders import org.junit.{Assert, Test} import java.io._ /** * Created by maxhutch on 12/1/16. */ @Test class CategoricalEncoderTest { /** * Test that encoding preserves equality, unknown goes to zero */ @Test def testStringEncoder(): Unit = { val inputs = Seq("foo", "...
Scala
src/test/scala/io/citrine/lolo/encoders/CategoricalEncoderTest.scala
CitrineInformatics/lolo
apache-2.0
2,104
79
codeparrot/github-code
aafe894279ffd3e2288af6d454a94ce37b0f9ef00261899ba64d764cb67c0a7f
// Copyright 2013 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
Java
projects/connector-manager/source/java/com/google/enterprise/connector/pusher/AclInheritFromDocidFilter.java
googlegsa/manager.v3
apache-2.0
2,696
71
codeparrot/github-code
fb8f6f40f08617ecc62b0ee7c49c2ca20708dacac41e12600c4b2e7b0220ad2a
package model; public class City { private int id; private String cityName; private String cityCode; private int provinceId; public int getId(){ return id; } public void setId(int id){ this.id = id; } public String getCityName(){ return cityName; } public void setCityName(String cityName){ this.ci...
Java
src/model/City.java
Allan-jing/coolweather
apache-2.0
602
34
codeparrot/github-code
bef830b0ef69c8727a48c1e5ac099f27a51f57ca7729279e41467c4957f07b25
#Задача №10, Вариант 30 #Напишите программу "Генератор персонажей" для игры.Пользователю должно быть предоставлено 30 пунктов, #которые можно распределить между четырьмя характеристиками: Сила, Здоровье, Мудрость и Ловкость. #Надо сделать так, чтобы пользователь мог не только брать эти пункты из общего "пула", но ...
Python
INBa/2015/Shemenev_A_V/task_100_30.py
Mariaanisimova/pythonintask
apache-2.0
2,057
62
codeparrot/github-code
680177d031392e6fa4aa4640a2f3452ec005310214a3b3e1e008859e504f761d
<!DOCTYPE html><html><head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=Edge"> <meta name="description"> <meta name="keywords" content="static content generator,static site generator,static site,HTML,web development,.NET,C#,Razor,Markdown,YAML"> <meta na...
HTML
docs/api/FunctionalSharp.PatternMatching/DiscriminatedPatternMatch_3/index.html
Patrickkk/FunctionalSharp
apache-2.0
22,642
473
codeparrot/github-code
d7f18d247a0b36392ea971ef23bb67986aedd238b389f48fd8a1ede18b707261
/* * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ #include <string.h> #include "sdkconfig.h" #include "esp_log.h" #include "esp_secure_boot.h" #include "bootloader_flash_priv.h" #include "bootloader_sha.h" #include "bootloader_utility.h" #include ...
C
boot/espressif/hal/src/secure_boot.c
runtimeco/mcuboot
apache-2.0
10,695
249
codeparrot/github-code
7e921aca41c34e0d8d4cf2eaa0b8d1a6317d175198f482bf10cddb4d2efcde88
/* 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 applicable law or a...
C++
tensorflow/core/kernels/conv_grad_ops.cc
EvenStrangest/tensorflow
apache-2.0
69,368
1,585
codeparrot/github-code
f54ed374f3760823988149719a45a814e5945b7d6d1d5b2751b3bf3c4c77e6d1
package org.sagebionetworks.doi; import static org.mockito.Mockito.doThrow; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import org.junit.Test; import org.springframework.test.util.ReflectionTestUtils; public class EzidAsyncClientTest { ...
Java
lib/lib-doi/src/test/java/org/sagebionetworks/doi/EzidAsyncClientTest.java
hhu94/Synapse-Repository-Services
apache-2.0
2,906
89
codeparrot/github-code
0560551089710183ec029ccdcaec65f911c8b7c4167c220bb5a2bae77d3c5047
/*********************************************************************\ File name : BrowserMenu.cpp Description : Created at : 26.03.02, @ 11:22:57 Created by : Thomas Kunert Modified by : \*********************************************************************/ #include "stdafx.h" #inc...
C++
source/BrowserMenu.cpp
nr-plugins/ResEdit
apache-2.0
1,836
65
codeparrot/github-code
361ceecc49c36abd1ee660721c5105983cd2bdbda98d70ad28b7e631acf61445
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>时区和Unix时间戳的整理 | 思</title> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="description" content="对时区和Unix时间戳的简单总结整理。"> <meta property="og:type" content="article"> <meta property="og:title" content="时区...
HTML
2016/01/04/时区和Unix时间戳的整理/index.html
oabinga/oabinga.github.io
apache-2.0
22,980
561
codeparrot/github-code
e6456c1ca12d2d90b91052c15e7b71f08214dabed638935a7881746c8d5c0958
#!/usr/bin/env python import sys import os import numpy from osgeo import gdal, gdal_array TAIL_TRIM = 0.01 def get_band(filename, target_percent): ds = gdal.Open(filename) xsize = int(ds.RasterXSize * target_percent / 100.0) ysize = int(ds.RasterYSize * target_percent / 100.0) image = ds.GetRasterB...
Python
ingestor/thumbnailer.py
landsat-pds/landsat_ingestor
apache-2.0
3,430
116
codeparrot/github-code
28fa8456defd22cfaaa5649476b6fcc7a88292e9336fbc423e1e0e55f3f4afe7
package com.Upwork.api.Routers.Reports.Finance; import static org.junit.Assert.*; import java.util.HashMap; import org.json.JSONObject; import org.junit.Test; import org.junit.runner.RunWith; import org.powermock.core.classloader.annotations.PrepareForTest; import org.powermock.modules.junit4.PowerMockRunner; impor...
Java
test/com/Upwork/api/Routers/Reports/Finance/EarningsTest.java
upwork/java-upwork
apache-2.0
1,803
55
codeparrot/github-code
4a68b1fb11adf7ee52e8cf2f677c8619743a70a1becd214f688ea8772967bafd
/* * 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-logs/src/main/java/com/amazonaws/services/logs/model/transform/DescribeResourcePoliciesRequestProtocolMarshaller.java
aws/aws-sdk-java
apache-2.0
2,808
64
codeparrot/github-code
34be899187f8c882499b548102bb8b1025b7cfb3f0ff7c657ba72ef38ad15de7
package cn.felord.wepay.ali.sdk.api.request; import java.util.Map; import cn.felord.wepay.ali.sdk.api.AlipayRequest; import cn.felord.wepay.ali.sdk.api.internal.util.AlipayHashMap; import cn.felord.wepay.ali.sdk.api.response.AlipayZdataassetsMetadataResponse; import cn.felord.wepay.ali.sdk.api.AlipayObject; /** * A...
Java
src/main/java/cn/felord/wepay/ali/sdk/api/request/AlipayZdataassetsMetadataRequest.java
NotFound403/WePay
apache-2.0
4,742
216
codeparrot/github-code
ce7fd3067d95f7ee6ed2d66349688414adbae19695f37faaced979e4a6c888ab
/** * Copyright @ 2012 Quan Nguyen * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
Java
src/test/java/net/sourceforge/tess4j/TessAPI1Test.java
nguyenq/tess4j
apache-2.0
30,819
705
codeparrot/github-code
0484c2b639e868374449e70c1ab5508a6a854533d49779c5bb0ad1208d1e4111
/* * Copyright (c) jmelzer 2011. * All rights reserved. */ package com.jmelzer.service.batch; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationConte...
Java
src/main/java/com/jmelzer/service/batch/AbstractBatch.java
chokdee/lukchan
apache-2.0
1,879
64
codeparrot/github-code
db6f4f69645682cb0e4cee5f1425671c94e1ee4d8da46f17b6fb030ae40692c2
/* * Copyright 2016 Palantir Technologies, 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 req...
Java
src/test/java/com/palantir/docker/compose/RemoveConflictingContainersIntegrationTest.java
tomasulo/docker-compose-rule
apache-2.0
2,439
66
codeparrot/github-code
93bb7f1b9e2e35e59185f061c1ae1d512dc4831d2dbc4a694d252ddcc81b3af5
/* * Copyright 2009-2013 by The Regents of the University of California * 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 from * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless r...
Java
asterix-om/src/main/java/edu/uci/ics/asterix/dataflow/data/nontagged/printers/AObjectPrinterFactory.java
parshimers/incubator-asterixdb
apache-2.0
1,116
30
codeparrot/github-code
405ced5628f509a2952658fe36e1887d87c75747210774c1fb64dc1ba588b7fa
/* * Copyright (c) 2011-2018, Meituan Dianping. All Rights Reserved. * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to Y...
Java
cat-home/src/test/java/com/dianping/cat/report/task/heavy/HeavyReportBuilderTest.java
dianping/cat
apache-2.0
2,168
50
codeparrot/github-code
2e769c2895fdbe640c630d362c2e5f44fb1ac4828b94d7901ef87a7eaa14235d
use math::{self, scale_shift, Point2, Point3, Point4}; use noise_fns::{MultiFractal, NoiseFn, Perlin, Seedable}; use std; /// Noise function that outputs "billowy" noise. /// /// This noise function produces "billowy" noise suitable for clouds and rocks. /// /// This noise function is nearly identical to fBm noise, ex...
Rust
src/noise_fns/generators/fractals/billow.rs
brendanzab/noise-rs
apache-2.0
6,225
209
codeparrot/github-code
b814704a7aa5eca90f69b28725081e53af1ffce24dae7f6dd2e6842821a81d8d
import * as React from 'react'; import { CommonProps } from '../../'; import * as types from '../../types'; export interface MultiDropdownRangeProps extends CommonProps { beforeValueChange?: (...args: any[]) => any; customQuery?: (...args: any[]) => any; data?: types.data; dataField: string; defaultValue?: types....
TypeScript
packages/web/src/components/range/MultiDropdownRange.d.ts
appbaseio/reactivesearch
apache-2.0
884
31
codeparrot/github-code
8ab35aa095a58094674ac1daff83286540dda143e5eaaae8726829a981110928
<!doctype html> <html class="default no-js"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>AssertionCheck | Relution-SDK</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="../as...
HTML
public/docs/interfaces/core.assertioncheck.html
relution-io/relution-sdk
apache-2.0
15,605
314
codeparrot/github-code
9fa2429d8857afe4e4d9494ec39f323caee405eedeb6d475f6a4be152f00c211
import React from 'react'; import { template, isEmpty } from 'lodash'; import { Observable, Subject } from 'rxjs'; import { JobManifestPodLogs } from './JobManifestPodLogs'; import { IManifest } from 'core/domain/IManifest'; import { Application } from 'core/application'; import { IPodNameProvider } from '../PodNamePr...
TypeScript
app/scripts/modules/core/src/manifest/stage/JobStageExecutionLogs.tsx
ajordens/deck
apache-2.0
2,133
77
codeparrot/github-code
61d32dd0638396ecc374ae2142b3da2e54b280a667f6fd2f0d7cdd36cfbd2e77
package cmd import ( "fmt" "io" "strings" "time" kapi "k8s.io/kubernetes/pkg/api" "k8s.io/kubernetes/pkg/api/errors" kclient "k8s.io/kubernetes/pkg/client/unversioned" "k8s.io/kubernetes/pkg/fields" kcmdutil "k8s.io/kubernetes/pkg/kubectl/cmd/util" "k8s.io/kubernetes/pkg/watch" "github.com/openshift/origi...
GO
Godeps/_workspace/src/github.com/openshift/origin/pkg/cmd/cli/cmd/importimage.go
vbehar/openshift-git
apache-2.0
11,882
396
codeparrot/github-code
76d70502fda6cc76b7eab3d0642e33730d05d47b1031d2695d639da89ff46fa5
/** * Copyright (C) 2015 Red Hat, 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...
GO
kubernetes-model/cmd/generate/generate.go
rhuss/kubernetes-client
apache-2.0
14,966
276
codeparrot/github-code
5707c52e2bf91a1caa20f53ac7badda6d7cec973fce792612ed5b1cd6ed8fe98
#!/usr/bin/python #coding:utf-8 import os import sys import re def usage(): help_info="Usage: %s <recinfo_file> <sendinfo_file>" % sys.argv[0] print help_info def main(): try: recinfo_file=sys.argv[1] sendinfo_file=sys.argv[2] except: usage() sys.exit(-1) if ...
Python
netem/statdata/statdelay.py
melon-li/tools
apache-2.0
1,581
60
codeparrot/github-code
c2c9a251843d525294882bc20b1b2563c1d74d09e1d7344ddac6f3e8a3199153
// Copyright 2014 The Oppia Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by ap...
JavaScript
core/templates/dev/head/editor/GadgetEditor.js
won0089/oppia
apache-2.0
7,691
210
codeparrot/github-code
8eaea6b5964bc97a2ae32b4407ffe9b55b0cf441407bf5819da47a89f0d019ba
# Copyright 2019 Canonical Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
Python
charms_openstack/plugins/trilio.py
coreycb/charms.openstack
apache-2.0
24,279
637
codeparrot/github-code
0414ca2668c238eae7a7dd01a53669b4500ce928568590697ba455b4baaf2fef
package com.twitter.rowz package jobs import com.twitter.gizzard.nameserver.NameServer import com.twitter.gizzard.shards.ShardId import com.twitter.gizzard.scheduler._ import com.twitter.rowz.RowzShard.Cursor class RowzCopyFactory(nameServer: NameServer[RowzShard], scheduler: JobScheduler, defaultCount: Int = 500) e...
Scala
src/main/scala/com/twitter/rowz/jobs/Copy.scala
twitter/Rowz
apache-2.0
1,480
49
codeparrot/github-code
4cf2ca4afc65105a9c6cda1cf80d82c98a88bf1b1b43ff97645f701556c43977
package cmd import ( "context" "fmt" log "github.com/sirupsen/logrus" "github.com/spf13/cobra" csi "github.com/container-storage-interface/spec/lib/go/csi/v0" ) var controllerUnpublishVolume struct { nodeID string } var controllerUnpublishVolumeCmd = &cobra.Command{ Use: "unpublish", Aliases: []string{...
GO
csc/cmd/controller_unpublish_volume.go
akutz/gocsi
apache-2.0
1,479
70
codeparrot/github-code
2b691ed2268a617062a76869f90c6ec9dcbd475d0b9f2134cbb42f96afdf75e3
// Copyright 2012 Paolo Severini // // 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++
src/cppLinqUnitTest/firstTest.cpp
paolosev/cpplinq
apache-2.0
10,998
288
codeparrot/github-code
8a55f692e52cfeeb3e562f6f05fb7ad66c0496103d760404e8d63505f3d95404
package br.com.bemobi.shortener.web.controller; import java.util.Optional; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.s...
Java
src/main/java/br/com/bemobi/shortener/web/controller/ShortUrlController.java
gsgama/shortener
apache-2.0
2,240
65
codeparrot/github-code
f9c89105a8792d7456e53e9979a6ebfd69fef8b3b0cb71e1a8e214427d243755
/* * Copyright 2014-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
Java
aws-java-sdk-codecommit/src/main/java/com/amazonaws/services/codecommit/model/transform/UpdatePullRequestDescriptionRequestProtocolMarshaller.java
jentfoo/aws-sdk-java
apache-2.0
2,896
65
codeparrot/github-code
db87bc7fe32ae93a308ec76aaf9704f360970202174aea4ad3c0e2b18699e4b5
/* * 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
exec/java-exec/src/test/java/org/apache/drill/test/BaseTestQuery.java
sohami/drill
apache-2.0
22,127
621
codeparrot/github-code
df8af19d5bb6deb021fa71bbe20889c007dadbb41c2863fb058076d19b082069
'use strict'; const should = require('should'); const sinon = require('sinon'); const mockrequire = require('mock-require'); const { EmbeddedSDK } = require('../../../lib/core/shared/sdk/embeddedSdk'); const KuzzleMock = require('../../mocks/kuzzle.mock'); describe('Backend', () => { let application; let Backend...
JavaScript
test/core/backend/Backend.test.js
kuzzleio/kuzzle
apache-2.0
5,684
169
codeparrot/github-code
98187f0684ecc0c81fef05154b73dd1f5e9add5ddf01a1c09fff975c3ad23645
function(doc) { // !code lib/alignment.js try { if (doc.doc_type == "resource_data" && doc.resource_data && doc.resource_locator && doc.node_timestamp) { var nodeTimestamp = convertDateToSeconds(doc); try { var parserDCT = function (conformsToText) { ...
JavaScript
data_services/standards-alignment-related/views/discriminator-by-resource/map.js
LearningRegistry/LearningRegistry
apache-2.0
3,480
76
codeparrot/github-code
f492a4de1b405fa7a014ae6e60d8e954d27cc34328a19152d1505ff66ea8ee03
package systems.rcd.bm.json; import java.io.IOException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import systems.rcd.bm.model.BmModelService; import systems.rcd.fwk.core.ctx.RcdContext; import systems.rcd.fwk.core.format.json.RcdJsonService; import system...
Java
src/main/java/systems/rcd/bm/json/BmYearsJsonInterfaceHandler.java
rcd-systems/budget-manager
apache-2.0
1,068
33
codeparrot/github-code
ed92d325d2c1e2364fc3b9e775dca066150251f2395fa9bd54523e9cc69e92df
/* Copyright 2012 Twitter, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distr...
Scala
algebird-util/src/main/scala/com/twitter/algebird/util/summer/AsyncListMMapSum.scala
nevillelyh/algebird
apache-2.0
3,063
88
codeparrot/github-code
ea5a5b3d0da2ee6444cba56b4499f092a2b89871ca7ee623f1e533e3590cfee2
/* * Copyright (C) 2009 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...
Java
src/com/android/inputmethod/deprecated/voice/VoiceInput.java
soeminnminn/LatinIME_ICS_ported
apache-2.0
27,204
694
codeparrot/github-code
d3d1e018ca820b5e189ff56e1a036fac9571ab56d96721759b3fb768d31b44fe
<html lang="ja"> <head> <meta charset="utf-8"> <title>Simulcast test</title> </head> <body> <div class="container"> <h1>Simulcast test</h1> <button id="start">start</button> <div> <h2>sendonly<span id="local-video-client-id"></span>...
HTML
example/simulcast.html
shiguredo/sora-js-sdk
apache-2.0
3,296
81
codeparrot/github-code
32a23156233dade726d6914545c27ab54a2a2310c2893afa89e1d249c433a58d
<?php namespace ApiBundle\Command; use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use ApiBund...
PHP
src/ApiBundle/Command/CreateClientCommand.php
slaterama/FOSPlayground
apache-2.0
1,950
63
codeparrot/github-code
0749a21b3015039b1b6f4ab4e40913cdf8e23007625f6fbef8e7ef4e104a82b2
/* * Copyright 2014 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 applic...
Java
app/src/main/java/com/greenpixels/birdsofcostarica/utils/LogUtils.java
PiXeL16/birdsofcostaricaio
apache-2.0
3,622
119
codeparrot/github-code
969f4c68484fdec65c35ec6d3eb89bf4fedbf39ee67c43e5619619a365c4048c
namespace EF读写分离.Model { using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Data.Entity.Spatial; [Table("CityLandMark")] public partial class CityLandMark { [Key] p...
C#
Jerry/架构/EF读写分离/Model/CityLandMark.cs
luoyefeiwu/Jerry
apache-2.0
1,038
45
codeparrot/github-code
77795ce23e749876be17d8d0b5d616a5b58e6c52535dd2a58135d2def6f704f2
/* * 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
profitbricks/src/test/java/org/jclouds/profitbricks/compute/internal/ProvisioningStatusPollingPredicateTest.java
hardfish/justTest
apache-2.0
7,080
174
codeparrot/github-code
c99b776adc2227dd70f88231dabd7aaba500e2cb91cd767fa64f88ffe330e8cd
package com.example.liwenguang.lwg.b_Okhttp.adapter; import android.content.Context; import android.graphics.Bitmap; import android.util.Log; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ImageView; import android.widget.TextView; import com.example....
Java
app/src/main/java/com/example/liwenguang/lwg/b_Okhttp/adapter/OKHttpListAdapter.java
LiWenGu/LWG
apache-2.0
2,899
96
codeparrot/github-code
8443d7b67c37211cdce8240f3b629347f363fea305b6f86d2dd18c4d5e6eaf53
import React, { Component } from 'react' import { StyleSheet } from 'react-native' import Icon from 'react-native-vector-icons/FontAwesome' import MaterialIcon from 'react-native-vector-icons/MaterialIcons' const defaultIconSize = 27 const iconColor = '#B0B0B3' const selectedIconColor = '#1992F5' class TabIcon extend...
JavaScript
App/Components/TabIcon.js
oreofish/v2exClient
apache-2.0
1,560
44
codeparrot/github-code
c1703bdba82ce231beafb4d574e481ff8e9b393e8466ce7b09d6eef9f6122790
/* * 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-proton/src/main/java/com/amazonaws/services/proton/model/transform/RejectEnvironmentAccountConnectionResultJsonUnmarshaller.java
aws/aws-sdk-java
apache-2.0
3,168
77
codeparrot/github-code