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
026d8527880cdcb7748d084890ee937b6df763f70bfee85b073509ef7495471f
package com.example.android.sunshine.app.data; import android.content.Context; import android.database.Cursor; import android.support.v4.widget.CursorAdapter; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; i...
Java
app/src/main/java/com/example/android/sunshine/app/data/ForecastAdapter.java
SHS-SpecialTopics/Sunshine-Project
apache-2.0
4,612
125
codeparrot/github-code
f79d7605943aa5a6ca5733db93e4427afd0a95bd33b663c2a190d53c865dae0f
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved. * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common Development * and Distribution License("CDDL")...
Java
src/main/java/com/github/cxfplus/com/sun/xml/bind/WhiteSpaceProcessor.java
GeeQuery/cxf-plus
apache-2.0
7,068
210
codeparrot/github-code
4cf89123b97be65c5f684d4840906a7026840c725a4fc16c5d2628e8a4277f13
// checking template overloads on return type /*************************************************************************** * * 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 r...
C++
etc/config/src/TEMPLATE_ON_RETURN_TYPE.cpp
pathscale/stdcxx
apache-2.0
2,202
88
codeparrot/github-code
bba2410948245234d11170f85fd8c20805e6f8250e07ff91e2d1e3ecd43db25b
/* Copyright 2016 kanreisa 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 ...
TypeScript
src/Mirakurun/api/version.ts
Chinachu/Mirakurun
apache-2.0
1,447
50
codeparrot/github-code
b40e12dbf2abacf45370c34ca87f504d03b35a11dcc7824d35ae28d075ff0b8f
/* * Copyright Terracotta, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
Java
management/management-registry/src/main/java/org/terracotta/management/registry/AbstractManagementProvider.java
Terracotta-OSS/terracotta-platform
apache-2.0
6,464
191
codeparrot/github-code
1a9663e9cd66f2e39727aea9a124ca5b45731fb2a97dfb0e4f6b06783601126c
var net = require('net'); var fs = require('fs'); var msgpack = require('msgpack5')(); function MockFluentdServer(){ var self = this; this._port = null; this._received = []; this._clients = {}; this._server = net.createServer(function(socket){ var clientKey = socket.remoteAddress + ":" + socket.remotePo...
JavaScript
lib/testHelper.js
jahraphael/fluent-logger-node
apache-2.0
2,012
84
codeparrot/github-code
97ebe58a7f485cc861c15afebc801188d6664f9a213e6a5846d64bc2c8b3801b
# Copyright 2017 Battelle Energy Alliance, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
Python
doc/workshop/ExternalModels/Bateman/AnalyticalDplMain.py
idaholab/raven
apache-2.0
4,415
98
codeparrot/github-code
4d45edfb59a5ef00a0fdf986400fd885627774da742e7c519bb9b5442d58f65a
#!/usr/bin/env python __author__ = 'greghines' import numpy as np import os import pymongo import urllib import matplotlib.pyplot as plt import cv2 # the directory to store the movie preview clips in image_directory = "/home/greg/Databases/chimp/images/" # connect to the mongodb server client = pymongo.MongoClient() ...
Python
experimental/algorithms/chimp.py
zooniverse/aggregation
apache-2.0
2,689
87
codeparrot/github-code
74d7fbf930d4f85d380e2b5a7e8d6dbc1ed1cc70e038b5bbc76b1c43fed90d6e
/******************************************************************************* * Copyright (c) 2015-2018 Skymind, Inc. * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2.0. * *...
Java
deeplearning4j/deeplearning4j-modelimport/src/main/java/org/deeplearning4j/nn/modelimport/keras/utils/KerasRegularizerUtils.java
deeplearning4j/deeplearning4j
apache-2.0
3,191
65
codeparrot/github-code
fd3bea0f5b7671adece6cbf9b09d3a9c6546dab1c416eccce28da64027051308
/* * Copyright 2022 ThoughtWorks, 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 agr...
Java
server/src/main/java/com/thoughtworks/go/server/newsecurity/providers/AnonymousAuthenticationProvider.java
Skarlso/gocd
apache-2.0
2,408
59
codeparrot/github-code
f2845826c97540fdbfdaa283b80f842eedbf2c754f27bc0fd588ed6c95e56dba
/* * Sample module in the public domain. Feel free to use this as a template * for your modules. * * Contact: Brian Carrier [carrier <at> sleuthkit [dot] org] * * This is free and unencumbered software released into the public domain. * * Anyone is free to copy, modify, publish, use, compile, sell, or *...
Java
Core/src/org/sleuthkit/autopsy/examples/SampleDataSourceIngestModule.java
APriestman/autopsy
apache-2.0
5,465
129
codeparrot/github-code
67bcfd2b152c96628600c31a883ce570498edbc0e00781cd2a530098a185bebe
/* * 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
client/cli/src/main/java/org/apache/syncope/client/cli/commands/group/GroupDelete.java
NuwanSameera/syncope
apache-2.0
2,343
60
codeparrot/github-code
cd032e56e2e3a08288a0ffac529aabad6c0f26529a863f08e2377fab2a3c4d86
"""Flo device object.""" from __future__ import annotations import asyncio from datetime import datetime, timedelta from typing import Any from aioflo.api import API from aioflo.errors import RequestError from async_timeout import timeout from homeassistant.helpers.typing import HomeAssistantType from homeassistant....
Python
homeassistant/components/flo/device.py
w1ll1am23/home-assistant
apache-2.0
7,961
225
codeparrot/github-code
21798b39f73606881c3bb890e5700e3dffbebdb6f12010a2741113c3a6633c49
#ifndef PUSH_RESET_H #define PUSH_RESET_H #include <matVec/matVec.h> #include <TrackingObj/push_obj.h> #include "gl_parameter.h" #include <vector> #include <assert.h> #include <cstdlib> #include <ctime> class PushReset { public: PushReset() { srand(time(NULL)); InitParameters(); } ~Push...
C
PushExp/src_bk_08_27/PushReset.h
robinzhoucmu/MLab_EXP
apache-2.0
910
40
codeparrot/github-code
89fb49be7924e8394100d7de88013176fbdff192ec467db317efdb4a8a2f7ef9
/* * * 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
compiler/src/org/apache/flex/compiler/problems/UnexpectedEOFProblem.java
adufilie/flex-falcon
apache-2.0
1,417
40
codeparrot/github-code
fc3311fe4ed65dfcc4ab0fdbadf78108b21c6b723a714c8801280dd34513f289
<!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="Content-Type" content="text/html; charset=utf-8" /> <title>自动展开</title> <style type="text/css"> body ...
HTML
New folder/展开与收起效果(源代码)/Demo2.html
xgqfrms/PHP
apache-2.0
2,718
108
codeparrot/github-code
e9b4d9ea4d6bad7263ff1d3e9c3d53b23c2b12804558b2ed99d324ea9779ca72
/* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
Java
modules/flowable-rest/src/main/java/org/flowable/rest/service/api/history/HistoricDetailResponse.java
dbmalkovsky/flowable-engine
apache-2.0
4,447
169
codeparrot/github-code
b2243e6d37516d7afe4935771fa6dcf90506383a96ad348528e0eea163d9127a
package com.hubspot.singularity; import java.util.List; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.google.common.base.Optional; import com.hubspot.mesos.JavaUtils; public class SingularityTa...
Java
SingularityBase/src/main/java/com/hubspot/singularity/SingularityTaskHistory.java
grepsr/Singularity
apache-2.0
2,939
76
codeparrot/github-code
2f019650d51c61710a812fd342d33cd14679a6fa97c13f85662ecdb75c8fad35
package com.yammer.dropwizard.auth.basic; import com.google.common.base.Charsets; import com.google.common.base.Objects; import java.security.MessageDigest; import static com.google.common.base.Preconditions.checkNotNull; /** * A set of user-provided Basic Authentication credentials, consisting of a username and a...
Java
warwizard-auth/src/main/java/com/yammer/dropwizard/auth/basic/BasicCredentials.java
plausible-retired/warwizard
apache-2.0
2,040
70
codeparrot/github-code
f1b20a3f03827cdbaf28b5f76cc796520324bddf2b22c4393691a2978e0c02b7
/* * Copyright (c) 2017, NXP * * SPDX-License-Identifier: Apache-2.0 */ #define DT_DRV_COMPAT nxp_imx_gpio #include <errno.h> #include <device.h> #include <drivers/gpio.h> #include <soc.h> #include <fsl_common.h> #include <fsl_gpio.h> #include "gpio_utils.h" struct mcux_igpio_config { /* gpio_driver_config nee...
C
drivers/gpio/gpio_mcux_igpio.c
Vudentz/zephyr
apache-2.0
5,783
246
codeparrot/github-code
fd22b32970ab421c24058cc47343c4f8ae2ac323eb4310035b1a695775c0f214
/** * 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 m...
Java
ws-security-dom/src/main/java/org/apache/wss4j/dom/processor/SignatureConfirmationProcessor.java
asoldano/wss4j
apache-2.0
2,270
61
codeparrot/github-code
af6bec6c8b2f516c9b1e9d6a4e2bb2124b6a57a71652a4e114d0e66c55f306b2
/* * Copyright 2017 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
jbpm-services/jbpm-executor/src/test/java/org/jbpm/executor/DBUnavilabilityExecutorTest.java
romartin/jbpm
apache-2.0
5,355
145
codeparrot/github-code
28e5aa4a708b04948b02ba68df830ebdb8fcf1f536062cdcdf792a6a4f5eabea
package at.forsyte.apalache.tla.bmcmt.rules import at.forsyte.apalache.tla.bmcmt._ import at.forsyte.apalache.tla.bmcmt.rewriter.ConstSimplifierForSmt import at.forsyte.apalache.tla.bmcmt.types.BoolT import at.forsyte.apalache.tla.lir.convenience.tla import at.forsyte.apalache.tla.lir.oper.TlaBoolOper import at.forsyt...
Scala
tla-bmcmt/src/main/scala/at/forsyte/apalache/tla/bmcmt/rules/OrRule.scala
konnov/dach
apache-2.0
2,608
72
codeparrot/github-code
7170bb1d08be603ad56d15ef2d86f6060acba34754292179ba6f56f1b0a608ab
package org.anddev.andengine.input.touch.detector; import org.anddev.andengine.input.touch.*; public class ScrollDetector extends BaseDetector { private static final float TRIGGER_SCROLL_MINIMUM_DISTANCE_DEFAULT = 10.0f; private float mLastX; private float mLastY; private final IScrollDetectorListener...
Java
decompiled_src/Procyon/org/anddev/andengine/input/touch/detector/ScrollDetector.java
rLadia-demo/AttacknidPatch
apache-2.0
2,721
78
codeparrot/github-code
e7169d3e430d7c50079bb5fbb96c65542eead08420a5bfe48a135273c2e9c84b
/* The Image Registration Toolkit (IRTK) * * Copyright 2008-2015 Imperial College London * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE...
C++
Modules/Transformation/src/irtkSimilarityTransformation.cc
ghisvail/IRTK
apache-2.0
12,391
364
codeparrot/github-code
7b74103b331e0bad7347a687787ddf9c172e8d0eaa12046eade7be2f9146a9f0
/* * Copyright (C) 2013 salesforce.com, 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 ...
JavaScript
aura-impl/src/main/resources/aura/modules/AuraExportsServiceApi.js
forcedotcom/aura
apache-2.0
2,631
74
codeparrot/github-code
989cfc5615022806547e227ad886f8583774c790a4bc28383d0e1b8346e6213f
using SqlSugar; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace OrmTest { [SugarTable("OrderDetail")] public class OrderItemInfo { [SqlSugar.SugarColumn(IsPrimaryKey = true, IsIdentity = true)] public int ItemId ...
C#
Src/Asp.NetCore2/SqlSeverTest/OracleTest/Models/Mapper.cs
sunkaixuan/SqlSugar
apache-2.0
1,595
55
codeparrot/github-code
6d30433f08a7d8ca309dab7449c13d0ac3685e56a4d3816a58a05005eead1253
# ***************************************************************************** # Written by Ritchie Lee, ritchie.lee@sv.cmu.edu # ***************************************************************************** # Copyright ã 2015, United States Government, as represented by the # Administrator of the National Aeronautics...
Julia
modules/CASJson2DataFrame/src/time_series_features1.jl
rcnlee/GrammarExpts.jl
apache-2.0
9,732
222
codeparrot/github-code
1829d1998ee769a33804208a18439294a0e6650715feff8973a4f512d45fb79c
/* * 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
nifi-nar-bundles/nifi-atlas-bundle/nifi-atlas-reporting-task/src/test/java/org/apache/nifi/atlas/provenance/analyzer/TestUnknownDataSet.java
jtstorck/nifi
apache-2.0
4,961
103
codeparrot/github-code
1956ca5e1c649f4bf08c1a57a37f44e5856bf87cac876086ed522dcf8a31ccd2
<?php /** * Copyright (c) 2017 Cornell University * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
PHP
orderflex/src/App/UserdirectoryBundle/Entity/OrganizationalGroupDefault.php
victorbrodsky/order-lab
apache-2.0
15,227
665
codeparrot/github-code
b944be46a631fbb8c36fe24299d9a0adc87d555232e47eb2a03cfd45bc0b1cef
/* * Copyright 2016 The BigDL 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 agr...
Scala
scala/dllib/src/test/scala/com/intel/analytics/bigdl/dllib/nn/tf/VariableSpec.scala
intel-analytics/BigDL
apache-2.0
1,275
33
codeparrot/github-code
e688e4aa6be69ae3e2cfc97b059ccbd94477cf049730cd5d1933ee402d791e62
using System; using System.Text; namespace DataGenerator.Sources { /// <summary> /// Password generator data source /// </summary> /// <seealso cref="DataGenerator.Sources.DataSourceMatchName" /> public class PasswordSource : DataSourceMatchName { private static readonly string[] _name...
C#
src/DataGenerator/Sources/PasswordSource.cs
loresoft/AutoData
apache-2.0
3,144
92
codeparrot/github-code
e857039134c41af39ad40e68b8b1c8af691f2ad7f4b8b28ab16dffa30e936f8e
/* * sbt * Copyright 2011 - 2018, Lightbend, Inc. * Copyright 2008 - 2010, Mark Harrah * Licensed under Apache License 2.0 (see LICENSE) */ package sbt.std.neg import scala.tools.reflect.ToolBoxError import org.scalatest.{ TestData, fixture, funsuite } import sbt.std.{ TaskLinterDSLFeedback, TestUtil } import sb...
Scala
main-settings/src/test/scala/sbt/std/neg/TaskNegSpec.scala
xuwei-k/xsbt
apache-2.0
11,220
385
codeparrot/github-code
d1577cb3cc8ad0081aef6a2164762375f83089b82a0aa737a9de4d879c6b5823
/* * Copyright (C) 2012-2013 The Cat Hive Developers. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
Java
src/main/java/com/cathive/fx/guice/thread/FxApplicationThreadMethodInterceptor.java
cathive/fx-guice
apache-2.0
3,224
97
codeparrot/github-code
711bb96a71f960a3ed5a4f92b8811758653c5e345fc6adc23733472e4f2d0be2
/*********************************************************************** * Copyright (c) 2013-2016 Commonwealth Computer Research, Inc. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and is ...
Scala
geomesa-kafka/geomesa-kafka-datastore/geomesa-kafka-10-datastore/src/main/scala/org/locationtech/geomesa/kafka10/KafkaProducerFeatureStore.scala
nagavallia/geomesa
apache-2.0
6,253
161
codeparrot/github-code
619d7bdc7bca81a0e62afadaae1e51c6634ecaec103d5b342fcd91c9b58d2ef3
$( document ).ready(function() { $("#target").hide(); var url_api = "http://api.trasplante.cl/"; var user_admin = "admin@admin.com"; var pass_admin = "password"; var user_inst = "TRASPLANTE"; $("#registro").click(function() { if($("#password").val() != $("#passwordx").val()){ $("#target").html("L...
JavaScript
www/assets/js/app/registro.js
ralf-zombie/yosoydonante
apache-2.0
2,887
83
codeparrot/github-code
63b2d18da83fbc7167a6d2e44c44757dcba30042f7133aeb5fa7b58fc65de1ce
// +build linux package node import ( "encoding/json" "fmt" "net" "strconv" "sync" "syscall" "time" networkapi "github.com/openshift/origin/pkg/network/apis/network" "github.com/openshift/origin/pkg/network/common" "github.com/openshift/origin/pkg/network/node/cniserver" "github.com/openshift/origin/pkg/u...
GO
pkg/network/node/pod.go
raffaelespazzoli/origin
apache-2.0
21,112
709
codeparrot/github-code
894d4b3810fc8f1444582aa5255e4da15566754f7986f07a03b88050e171419c
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache license, Version 2.0 * (the "License"); you may n...
Java
log4j-core/src/main/java/org/apache/logging/log4j/core/jmx/StatusLoggerAdmin.java
ClarenceAu/log4j2
apache-2.0
4,375
133
codeparrot/github-code
dc7552c0779668f12c4b8908bca6abab44ca6fee7bcece0636adb5c5ad3ee440
# SPDX-License-Identifier: Apache-2.0 # Copyright Contributors to the Rez Project from __future__ import print_function import sys import os import os.path from fnmatch import fnmatch from rez import __version__ from rez.utils.data_utils import cached_property from rez.resolved_context import ResolvedContext from re...
Python
src/rez/status.py
nerdvegas/rez
apache-2.0
12,472
379
codeparrot/github-code
a964a1a8cfd5da28bfcf29f807729cc8d0dde86b1839dd51717ceeb708bdafd8
// context for simple expression // context means: // - the local variables // - the local variable names // - the lookup-input variables package cgeo.geocaching.brouter.expressions; import cgeo.geocaching.brouter.BRouterConstants; import cgeo.geocaching.storage.ContentStorage; import cgeo.geocaching.storage.Persista...
Java
main/src/cgeo/geocaching/brouter/expressions/BExpressionMetaData.java
tobiasge/cgeo
apache-2.0
2,760
74
codeparrot/github-code
e43fa3a9b6fc0c62325bac00baf4c5e2ef906730cabdcf626787a31dbf654c02
/* * 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
gemfire-core/src/test/java/com/gemstone/gemfire/internal/cache/RemoveGlobalDUnitTest.java
robertgeiger/incubator-geode
apache-2.0
8,407
236
codeparrot/github-code
6b10427aaed0af8064921d0a9029f169e2345161357b35af0df2e2d8050f95f4
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <title>Lista de Cultivos</title> ...
PHP
vista/listarcultivos.php
Reyes07/mdSFA
apache-2.0
6,682
213
codeparrot/github-code
78b6ef1b70c491bd621016f9245b05917c783a97381ad502541b217f1e92e8ef
package com.ljz.base.adapter.recyclerview; import android.support.annotation.LayoutRes; import android.util.SparseArray; import android.view.ViewGroup; import com.ljz.base.adapter.recyclerview.entity.MultiItemEntity; import java.util.List; /** * https://github.com/CymChad/BaseRecyclerViewAdapterHelper */ public a...
Java
AndroidBase/src/main/java/com/ljz/base/adapter/recyclerview/BaseMultiItemQuickAdapter.java
lujianzhao/AndroidBase
apache-2.0
1,744
66
codeparrot/github-code
4d6f804c4a4785bf5a7b8a03a26d28f457bde9a4ed6e26859bafd874f8d5847f
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
Scala
core/src/main/scala/kafka/tools/ConsumerPerformance.scala
ErikKringen/kafka
apache-2.0
15,388
347
codeparrot/github-code
44879358fea2e54b71a46b6e988dbb6e03a27c2581777b1b7998c4c03314a985
package lexic import ( "fmt" "strconv" "strings" ) // kwList contains all keywords var kwList = []string{"all", "and", "any", "ascii", "at", "condition", "contains", "entrypoint", "false", "filesize", "fullword", "for", "global", "in", "import", "include", "int8", "int16", "int32", "int8be", "int16be", "int32be", ...
GO
lexic/scanner.go
Northern-Lights/yago
apache-2.0
5,973
314
codeparrot/github-code
52f2fc0808d54e2fb9493a0026a6e1fe95b739033ace08fb0fd31cd604924c04
/* * Scala (https://www.scala-lang.org) * * Copyright EPFL and Lightbend, Inc. * * Licensed under Apache License 2.0 * (http://www.apache.org/licenses/LICENSE-2.0). * * See the NOTICE file distributed with this work for * additional information regarding copyright ownership. */ package scala.tools.nsc packag...
Scala
src/compiler/scala/tools/nsc/symtab/BrowsingLoaders.scala
scala/scala
apache-2.0
5,053
141
codeparrot/github-code
df63f2c9f78067877ebb4cde8e7d24adba5b6b6a240673e5d223772d04b4ea9d
/* * * 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...
Java
modules/workflow/workflow-core/src/main/java/org/apache/airavata/workflow/core/WorkflowEnactmentService.java
machristie/airavata
apache-2.0
7,163
171
codeparrot/github-code
18a0d82be2265bf17490c7a7d7017be575e828aa091716d69177100c81319bd0
package vbox import ( "bufio" "io/ioutil" "os" "path" ) // Return all the directories func loadIds(root string) ([]string, error) { dirs, err := ioutil.ReadDir(root) if err != nil { return nil, err } out := []string{} for _, d := range dirs { if !d.IsDir() { out = append(out, d.Name()) } } return ...
GO
lib/docker/daemon/graphdriver/vbox/dirs.go
WIZARD-CXY/hyper
apache-2.0
856
47
codeparrot/github-code
1f52fbd0ad629936369970e29b1812e6f6383e91ca63b8e92ed8375a2a1f701c
using System.Web.UI.WebControls; namespace Incoding.Block { #region << Using >> using System; using System.ComponentModel.DataAnnotations.Schema; using System.Data.Entity; using System.Data.Entity.ModelConfiguration; using System.Diagnostics.CodeAnalysis; using System.Linq; using Syst...
C#
src/Incoding/Block/Scheduler/Persistence/DelayToScheduler.cs
IncodingSoftware/Incoding-Framework
apache-2.0
7,500
228
codeparrot/github-code
78a8abc5cf2cd9df1017c632918942c53c8d78f56ce93e776c709e2b9f9e0dd6
/* * Copyright 2012-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
Java
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/orm/jpa/HibernatePropertiesTests.java
mdeinum/spring-boot
apache-2.0
7,246
174
codeparrot/github-code
6f8282feaa954e2590a55e284d69c0ceb297683ca8f57c934ddcf90540d63a8d
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2022 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except...
C
arangod/Pregel/Algos/AIR/WorkerContext.h
arangodb/arangodb
apache-2.0
3,000
85
codeparrot/github-code
0d3051107ef5eb2a664d64e26847bcc212b2096451afa8d0277ed2ab01c6cf4e
/***************************************************************************** * Licensed to Qualys, Inc. (QUALYS) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * QUALYS licenses this file to You under ...
C++
fast/generate.cpp
b1v1r/ironbee
apache-2.0
4,621
138
codeparrot/github-code
c1571081fd6ef525c01bc0b46d9226e0dfd4b24eaef5db91329a4f666d58063e
/* ==================================================================== 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...
C#
main/SS/Util/SheetUtil.cs
tonyqus/npoi
apache-2.0
27,334
658
codeparrot/github-code
9d313b2c82b5d2021f0eee5c09575d446266fa98f29e4c231e23be0a0116ee8b
import json import urllib2 from isodate.isodatetime import parse_datetime from isodate.isoerror import ISO8601Error from django.conf import settings from util import validate_uuid, convert_to_dict, get_agent_ifp from Authorization import auth from StatementValidator import StatementValidator from ..models import Sta...
Python
lrs/util/req_validate.py
diagonalwalnut/Experience
apache-2.0
32,206
746
codeparrot/github-code
f8bc791628a6536a716fdabb4cca37136808b3bb997979de8489b115298cef18
/* * 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
modules/visor-console/src/main/scala/org/apache/ignite/visor/commands/cache/VisorCacheCommand.scala
agura/incubator-ignite
apache-2.0
36,878
945
codeparrot/github-code
2efefbcb51e3c2e9489b2a061bed7731d3120df4ef192deadd6861cfca3bffe9
package com.navercorp.pinpoint.common.server.util; import java.io.PrintStream; import java.io.PrintWriter; import java.io.StringWriter; import java.util.Formatter; public final class ServerBootLogger { private final String loggerName; private final PrintStream out = System.out; private final PrintStream ...
Java
commons-server/src/main/java/com/navercorp/pinpoint/common/server/util/ServerBootLogger.java
jaehong-kim/pinpoint
apache-2.0
2,184
75
codeparrot/github-code
e4d852356df74d37e50264f83ed598a050603e60b7a517613281a9bf1106b68e
//===--- IDETypeChecking.h - Type-check entry points ------------*- C++ -*-===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
C
include/swift/Sema/IDETypeChecking.h
codestergit/swift
apache-2.0
5,316
146
codeparrot/github-code
8e78d79f87a80541975763f95952bfb553600cbfab82df7c761584b0acfbf6d6
<?php final class PhabricatorDiffusionConfigOptions extends PhabricatorApplicationConfigOptions { public function getName() { return pht('Diffusion'); } public function getDescription() { return pht('Configure Diffusion repository browsing.'); } public function getOptions() { return array( ...
PHP
src/applications/diffusion/config/PhabricatorDiffusionConfigOptions.php
telerik/phabricator
apache-2.0
3,217
87
codeparrot/github-code
ed2129204b83738b9dc3227f6206f2095cda85678bba5c480378a3498cc634e3
/* * Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" ...
Java
aws-resources-sns/src/main/java/com/amazonaws/resources/sns/internal/PlatformEndpointCollectionImpl.java
smartpcr/aws-sdk-java-resources
apache-2.0
2,122
62
codeparrot/github-code
a8215fac49bd1ab64fe96ea2f5d04c3908f0d651ef20632b1fe3f5f9704cd2ed
/* * DefaultDatasetRegistryBuilder.java */ package org.ngbw.sdk.data; import java.util.HashMap; import java.util.Map; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.ngbw.sdk.api.core.CoreRegistry; import org.ngbw.sdk.api.data.DataResource; import org.ngbw.sdk.api.da...
Java
saminda/cipres-airavata/sdk/src/main/java/org/ngbw/sdk/data/DefaultDatasetRegistryBuilder.java
SciGaP/DEPRECATED-Cipres-Airavata-POC
apache-2.0
6,198
142
codeparrot/github-code
a226926889651bfe5022d4ae50c14a267d89cff3449ff63c39159e81da3b7544
package pl.pronux.sokker.data.sql.dto; import java.sql.ResultSet; import java.sql.SQLException; public class PlayerStatsDto extends pl.pronux.sokker.model.PlayerStats { private ResultSet rs; public PlayerStatsDto(ResultSet rs) { this.rs = rs; } public PlayerStatsDto getPlayerStats() throws SQLExce...
Java
src/main/java/pl/pronux/sokker/data/sql/dto/PlayerStatsDto.java
levanhien8/SokkerViewer
apache-2.0
1,165
35
codeparrot/github-code
ee0ed2982b6d23abba84c30dce3ad9bf92670cafcdc6675a71c6fdd96da6fc48
/* * Copyright 2013 MongoDB, 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 ...
C
src/libmongoc/src/mongoc/mongoc-stream-buffered.c
acmorrow/mongo-c-driver
apache-2.0
9,771
350
codeparrot/github-code
c037b91fbd8183a6faeae70d9fe99d74415324b1fc4973ddb1656949b2b4d376
package apoc.search; import org.neo4j.procedure.Description; import apoc.result.NodeResult; import apoc.util.Util; import org.neo4j.graphdb.Node; import org.neo4j.graphdb.Result; import org.neo4j.graphdb.Transaction; import org.neo4j.kernel.internal.GraphDatabaseAPI; import org.neo4j.logging.Log; import org.neo4j.proc...
Java
src/main/java/apoc/search/ParallelNodeSearch.java
lilianaziolek/neo4j-apoc-procedures
apache-2.0
9,330
166
codeparrot/github-code
03694b0522a07267b422418272b7f992c580b89162ee7ce593707431ba0c9d0a
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; using System.Threading; us...
C#
src/Workspaces/CSharp/Portable/CodeGeneration/NamedTypeGenerator.cs
wvdd007/roslyn
apache-2.0
16,135
336
codeparrot/github-code
afbbb6963752e2e56aa155c540d5c8534e84e0a6b07b6846892c341e117b8764
//----------------------------------------------------------------------- // <copyright company="nBuildKit"> // Copyright (c) nBuildKit. All rights reserved. // Licensed under the Apache License, Version 2.0 license. See LICENCE.md file in the project root for full license information. // </copyright> //---------...
C#
src/nbuildkit/tasks/nBuildKit.MsBuild.Tasks.Core/FileSystem/PathUtilities.cs
nbuildkit/nBuildKit.MsBuild
apache-2.0
13,275
299
codeparrot/github-code
87a9a7db560fc339298caccf653864e1e352b9287828a9ed226715e475e7a242
/* * 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
test/org/apache/catalina/authenticator/TestNonLoginAndBasicAuthenticator.java
apache/tomcat
apache-2.0
24,680
606
codeparrot/github-code
5061ad667bb76cf9f8a2705ab4cb00c13013818ba600ea24ab30e236d425d5db
/*========================================================================= * * Copyright Insight Software Consortium * * 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 * * h...
C
Modules/Filtering/QuadEdgeMeshFiltering/include/itkDiscreteMaximumCurvatureQuadEdgeMeshFilter.h
PlutoniumHeart/ITK
apache-2.0
3,689
90
codeparrot/github-code
92666054ba0d3de8b1b794663c291ee2dbbe19edaf0b4007efc2c215e7c7b279
/* Copyright 2004 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ...
Java
src/test/java/compile/scomp/detailed/SchemaCompilerTests.java
apache/xmlbeans
apache-2.0
6,550
150
codeparrot/github-code
d08f4fe8ceb34b7276966890442824f6fe14aebc1e23e063293d9a51b4d94120
#!/usr/bin/env python3 import argparse import os import pwd import signal import subprocess import sys from typing import Any, Callable, Generator, List, Sequence from urllib.parse import urlunparse TOOLS_DIR = os.path.dirname(os.path.abspath(__file__)) sys.path.insert(0, os.path.dirname(TOOLS_DIR)) # check for the v...
Python
tools/run-dev.py
punchagan/zulip
apache-2.0
12,929
411
codeparrot/github-code
f15b42820b733c5d934a5623ea6de2eb035a2761b9a0a7967d8c1604af64d149
package promise import ( "errors" "sync/atomic" "time" ) //================================================================ // basic infrastructure //================================================================ //---------------- consts ---------------- const ( PRIORITY_MAX int32 = (int32)(((int64(1)) <<...
GO
promise/task.go
moetang-arch/common
apache-2.0
8,005
371
codeparrot/github-code
b303c5fd94eae06b2426157adc98ed965fea063cb9190c832d025936aed65561
/* This file is part of Subsonic. Subsonic is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Subsonic is distributed in the hope that i...
Java
Kalimba Radio/src/main/java/net/sourceforge/kalimbaradio/androidapp/util/AlbumView.java
AmbarishKr/KalimbaAndroid
apache-2.0
2,185
65
codeparrot/github-code
cf42977e3d6694de59183e49d6256ab7cf263d04803bc3e8c44eb561854c95b8
package org.marketcetera.photon.internal.strategy.engine.ui.workbench.handlers; import org.eclipse.core.runtime.IProgressMonitor; import org.marketcetera.photon.commons.ui.workbench.AbstractSelectionHandler; import org.marketcetera.photon.strategy.engine.model.core.DeployedStrategy; import org.marketcetera.photon...
Java
trunk/photon/plugins/org.marketcetera.photon.strategy.engine.ui.workbench/src/main/java/org/marketcetera/photon/internal/strategy/engine/ui/workbench/handlers/StartHandler.java
nagyist/marketcetera
apache-2.0
2,053
59
codeparrot/github-code
b4f4073d521fcbeaea8176c4fabbd4d6da29649a80d0192ff2680df02e10aae2
<?php namespace Fungku\NetSuite\Classes; class NonInventorySaleItem extends Record { public $createdDate; public $lastModifiedDate; public $salesDescription; public $includeChildren; public $incomeAccount; public $isTaxable; public $matrixType; public $taxSchedule; public $shippingCost; public $shippingCostU...
PHP
src/Classes/NonInventorySaleItem.php
Arkitecht/netsuite-php
apache-2.0
7,590
254
codeparrot/github-code
b17e65c5cdc0661b9aae48c3d5f4d2d3cda17db77117adc53de7922a8410feaf
/* **************************************************************************** * * Copyright (c) Microsoft Corporation. * * This source code is subject to terms and conditions of the Apache License, Version 2.0. A * copy of the license can be found in the License.html file at the root of this distribution. If ...
C#
Src/Microsoft.Dynamic/ComInterop/ComMetaObject.cs
huoxudong125/dlr
apache-2.0
3,218
82
codeparrot/github-code
eb187d2720bb3bfa4c92bf2a2d943208493a859d3420a386dbd15ec33a340d1b
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * CodeIgniter * * An open source application development framework for PHP 4.3.2 or newer * * @package CodeIgniter * @author ExpressionEngine Dev Team * @copyright Copyright (c) 2008 - 2010, EllisLab, Inc. * @license htt...
PHP
tripezi/system/database/drivers/postgre/postgre_forge.php
mrinsss/Full-Repo
apache-2.0
5,997
248
codeparrot/github-code
a9995a22fab72b42d97378508402e8f73ccefe51505fd6805f3ba20aab58d349
// Copyright 2011-2016 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
Java
src/main/java/com/google/security/zynamics/binnavi/Gui/GraphWindows/Actions/CActionSelectParents.java
google/binnavi
apache-2.0
2,136
66
codeparrot/github-code
1bf72f13f2f03678e3aff178b88dd9dfc770b8cd0fb54ccb2c1f82013c9478dd
/* * 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
source-kafka/src/main/java/org/apache/kylin/source/kafka/model/StreamCubeFactTableDesc.java
apache/kylin
apache-2.0
4,320
133
codeparrot/github-code
3c87ed97b2fd07d4d221f77480ce585c6559d2938a2909ab6176d52ef0083fbb
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
Java
components/camel-netty4-http/src/test/java/org/apache/camel/component/netty4/http/NettyHttpClientExpectContinueTest.java
Fabryprog/camel
apache-2.0
2,168
59
codeparrot/github-code
407a4dc4804205c6e6576d3013ce4bb0556c176ba37e5d792f575d473f383c75
/* Derby - Class org.apache.derby.iapi.types.CollatorSQLClob 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 un...
Java
java/engine/org/apache/derby/iapi/types/CollatorSQLClob.java
lpxz/grail-derby104
apache-2.0
6,636
212
codeparrot/github-code
d4850e4f24d6444826403cad0d72464ce5b60c754855b3b011e1f063ad913ffb
/* * Copyright (c) 2005-2010 Grameen Foundation USA * 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 * * Unl...
Java
application/src/main/java/org/mifos/application/servicefacade/LoginServiceFacadeWebTier.java
maduhu/mifos-head
apache-2.0
5,222
126
codeparrot/github-code
7084eb050bcd722eada0da68d4e165d7ca3472cb6ce8fe637c34813c7adacd21
namespace dotless.Test.Specs { using NUnit.Framework; using System.Collections.Generic; public class MediaFixture : SpecFixtureBase { [Test] public void MediaDirective() { var input = @" @media all and (min-width: 640px) { #header { background-color: #123456; ...
C#
src/dotless.Test/Specs/MediaFixture.cs
r2i-sitecore/dotless
apache-2.0
10,030
627
codeparrot/github-code
35d31685f185cc23a2c0fb92d7f7a4d3317792013c895106d985c76f564c0146
/* Copyright 2018 The Vitess 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, soft...
GO
go/vt/vtgate/vschemaacl/vschemaacl.go
davygeek/vitess
apache-2.0
1,677
65
codeparrot/github-code
440886e5348c22d36327f2bd8ef5278786f47b1b35ef62f200aa1895c34a6401
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
Java
core/src/main/java/org/elasticsearch/rest/action/admin/indices/alias/head/RestAliasesExistAction.java
sreeramjayan/elasticsearch
apache-2.0
4,008
91
codeparrot/github-code
edec49acb6db5cf4cf7e44b4f9dad56d2dcb1dd59f1686bc574a2bd44ca10529
/* * 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
storage/src/main/java/org/apache/kylin/storage/hbase/coprocessor/observer/AggregateRegionObserver.java
nvoron23/incubator-kylin
apache-2.0
4,846
109
codeparrot/github-code
659ac4ba6cdc32ff4f0142d34ab77bf71ddb06c449f9914591dc55ba1a525835
extern crate bip_metainfo; extern crate bip_disk; extern crate bip_util; extern crate bytes; extern crate futures; extern crate tokio_core; extern crate rand; use std::collections::HashMap; use std::io::{self}; use std::path::{Path, PathBuf}; use std::sync::{Mutex, Arc}; use std::cmp; use std::time::Duration; use bip...
Rust
bip_disk/test/mod.rs
GGist/redox-rs
apache-2.0
7,564
232
codeparrot/github-code
898cac3bb74670a60f3ab8a3c177ee92aee10dbafd3815a4b76726634fa27921
/* * Copyright 2004-2010 the Seasar Foundation and the Others. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
Java
src/test/java/org/seasar/doma/internal/apt/entity/OptionalIntEntity.java
backpaper0/doma2
apache-2.0
962
40
codeparrot/github-code
1cb70c48d6b0eed48ec96d9a2db0b53d0747c595b8cd2814b22f008d7bbe363a
/** * */ package com.thinkbiganalytics.metadata.modeshape.feed; /*- * #%L * kylo-metadata-modeshape * %% * Copyright (C) 2017 ThinkBig Analytics * %% * 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 o...
Java
metadata/metadata-modeshape/src/main/java/com/thinkbiganalytics/metadata/modeshape/feed/FeedData.java
claudiu-stanciu/kylo
apache-2.0
8,099
210
codeparrot/github-code
c54e79d433d604b3aa6673e7d1148d45b3d529481ce50d317c84d9b05c96fb1c
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
Java
common/common-protobuf/src/main/java/org/apache/servicecomb/codec/protobuf/internal/converter/ProtoToStringGenerator.java
ServiceComb/java-chassis
apache-2.0
4,503
135
codeparrot/github-code
e13fddcb7e61645a1e46dddd2364359e92848e2f9803c5d0b42c6c8faff072ce
# Table for storing temporary random state strings # # A matching state must be found when receiving authorization # callbacks to prevent fake authentication. # # The user relation is optional. # # You can store extra redirect_uri if you need to redirect back to for # example CLI after receiving the callback. # # The o...
Ruby
server/app/models/authorization_request.rb
mikkopiu/kontena
apache-2.0
1,369
55
codeparrot/github-code
480ceefe05c0951118531965bd2fe68490f2322e1704eb7f74f0bb118285510f
var common = require('../common'); var helpers = require('./helpers'); var assert = common.assert; var stormpath = require('../../'); var nJwt = require('njwt'); var JwtAuthenticationResult = require('../../lib/jwt/jwt-authentication-result'); function assertUnauthenticatedResponse(done){ return function(err){ ...
JavaScript
test/it/oauth_authenticator_it.js
stormpath/stormpath-sdk-node
apache-2.0
8,820
299
codeparrot/github-code
e56dded8979b3937483c7b30245e8ef6a9b722a9fa7f0f27804344195d609504
/* * 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
modules/core/src/main/java/org/apache/fluo/core/impl/LockResolver.java
mikewalch/fluo
apache-2.0
13,248
345
codeparrot/github-code
1954d69c973f1d5c7781086a1e0598196c400c9703d00917f361cb9dcd9f9002
/******************************************************************************* * 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...
Java
applications/product/src/main/java/org/apache/ofbiz/product/config/ProductConfigItemContentWrapper.java
rohankarthik/Ofbiz
apache-2.0
11,115
201
codeparrot/github-code
c5c5e329ce4a590871a29c23567ab426d98983d5a09547c76fddd688e1e1a98a
package org.apache.ibatis.type; import org.jmock.Expectations; import static org.junit.Assert.assertArrayEquals; import org.junit.Test; public class ByteArrayTypeHandlerTest extends BaseTypeHandlerTest { private static final TypeHandler TYPE_HANDLER = new ByteArrayTypeHandler(); @Test public void s...
Java
src/test/java/org/apache/ibatis/type/ByteArrayTypeHandlerTest.java
mrjabba/mybatis
apache-2.0
1,515
54
codeparrot/github-code
c303225afaaeebea6c2f92e51c5f9309f711ab2397e6082ceb1ed4276725b086
/* * HITACHI VANTARA PROPRIETARY AND CONFIDENTIAL * * Copyright 2020 Hitachi Vantara. All rights reserved. * * NOTICE: All information including source code contained herein is, and * remains the sole property of Hitachi Vantara and its licensors. The intellectual * and technical concepts contained herein are pr...
Java
spring-kafka/api/src/test/java/org/hitachivantara/spring/kafka/listener/AbstractMessageListenerFactoryTest.java
pentaho/pentaho-osgi-bundles
apache-2.0
3,226
80
codeparrot/github-code
18734d7de4cfa63ab8838eee86b4e0f6fd36a864015b3b6f1720b4a028753c0a
"""Component to allow users to login and get tokens. # POST /auth/token This is an OAuth2 endpoint for granting tokens. We currently support the grant types "authorization_code" and "refresh_token". Because we follow the OAuth2 spec, data should be send in formatted as x-www-form-urlencoded. Examples will be in JSON ...
Python
homeassistant/components/auth/__init__.py
partofthething/home-assistant
apache-2.0
18,097
581
codeparrot/github-code
cb5c417320283ae1ea0fb6049dfcfb153853bca707631791c40dfd8582195eda
import {BentoDailymotion} from '#bento/components/bento-dailymotion/1.0/component'; import * as Preact from '#preact'; export default { title: 'Dailymotion', component: BentoDailymotion, args: { width: 300, height: 200, videoId: 'x3rdtfy', }, }; const Template = ({height, width, ...args}) => ( ...
JavaScript
extensions/amp-dailymotion/1.0/storybook/Basic.js
danielrozenberg/amphtml
apache-2.0
740
36
codeparrot/github-code
ed3231f8e60f2dbfd49a553a0876d398c5cd0190dc216f48d2be30d3dd43f836
/* * Copyright (C) 2013 salesforce.com, 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 ...
JavaScript
aura-components/src/main/components/ui/menuTriggerLink/menuTriggerLinkController.js
navyliu/aura
apache-2.0
1,677
45
codeparrot/github-code
6f5768e4bc30d87df903639a4a110e72c746711a9388b59175a60c3b388f903c
/* * Copyright 2014 TWO SIGMA OPEN SOURCE, LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
Java
kernel/groovy/src/main/java/com/twosigma/beakerx/groovy/autocomplete/GroovyAbstractListener.java
jpallas/beakerx
apache-2.0
28,116
1,304
codeparrot/github-code
5822715f1c792b24d559e7087b625cdab2eea0bd45834e9d5ef1ac22e80f4fe0
"""Support for Automation Device Specification (ADS).""" import threading import struct import logging import ctypes from collections import namedtuple import asyncio import async_timeout import voluptuous as vol from homeassistant.const import ( CONF_DEVICE, CONF_IP_ADDRESS, CONF_PORT, EVENT_HOMEASSISTANT_STOP) ...
Python
homeassistant/components/ads/__init__.py
jabesq/home-assistant
apache-2.0
9,717
297
codeparrot/github-code
95697b3e8f094a320aafb3612a6123d46a694cc2f0d577422f3e120f5d8bcffe
#ifndef _TIZENRT_WIRELESS_WIFI_H__ #define _TIZENRT_WIRELESS_WIFI_H__ #define TRWIFI_MACADDR_LEN 6 #define TRWIFI_MACADDR_STR_LEN 17 #define TRWIFI_SSID_LEN 32 #define TRWIFI_PASSPHRASE_LEN 64 typedef enum { TRWIFI_FAIL = -1, TRWIFI_SUCCESS, TRWIFI_INVALID_ARGS, TRWIFI_TIMEOUT, TRWIFI_BUSY, TRWIF...
C
os/include/tinyara/net/if/wifi.h
chanijjani/TizenRT
apache-2.0
6,343
146
codeparrot/github-code