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
7fd971bdedf7e76d37925fbb993dad108efc89a8393f4d8c30a5c6909ff8afc1
/* * Licensed to the Apache Software Foundation (ASF) under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional information regarding * copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the * "License"); you may not ...
Java
geode-membership/src/main/java/org/apache/geode/distributed/internal/membership/gms/fd/GMSHealthMonitor.java
davebarnes97/geode
apache-2.0
51,607
1,522
codeparrot/github-code
5b7a9ab81b75e36d37d8df2a6213d639f8eb100d3be4621793aaf917957ab78a
<?php final class HarbormasterBuildStepPHIDType extends PhabricatorPHIDType { const TYPECONST = 'HMCS'; public function getTypeName() { return pht('Build Step'); } public function newObject() { return new HarbormasterBuildStep(); } protected function buildQueryForObjects( PhabricatorObjectQ...
PHP
src/applications/harbormaster/phid/HarbormasterBuildStepPHIDType.php
optimizely/phabricator
apache-2.0
863
42
codeparrot/github-code
7ac26292453de8e0e91ad2b8ed4ec61f751ebbbcc4eb4377e5e3fb961bc25684
/* * Copyright Anatoly Starostin (c) 2017. */ package treeton.res.minimz; import treeton.core.TreenotationStorage; import treeton.core.config.context.ContextException; import treeton.core.config.context.resources.ExecutionException; import treeton.core.config.context.resources.Resource; import treeton.core.config.c...
Java
dev/lingvTools/src/treeton/res/minimz/Minimizator.java
TreetonOrg/Treeton
apache-2.0
5,609
142
codeparrot/github-code
8163deeef6c0bb36921d97042022833fce31a0a1e5c9da00d2e4be7a3f61abaf
package com.doctusoft.jsf.comp; import javax.faces.convert.Converter; import com.doctusoft.bean.binding.ConstantValueBinding; import com.doctusoft.bean.binding.ValueBinding; import com.doctusoft.jsf.comp.model.JsfOutputModel; public abstract class JsfAbstractOutput<Actual extends JsfAbstractOutput, Value, Model exte...
Java
jsf-builder/src/main/java/com/doctusoft/jsf/comp/JsfAbstractOutput.java
Doctusoft/jsf-builder
apache-2.0
806
31
codeparrot/github-code
119453d0dec324832dab9ce8bcfb99c584b5fd50cbe0f7a1c78c69592b2686c5
/* * Copyright © 2013-2018 camunda services GmbH and various authors (info@camunda.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2...
Java
qa/performance-tests-engine/src/main/java/org/camunda/bpm/qa/performance/engine/framework/PerfTestBuilder.java
xasx/camunda-bpm-platform
apache-2.0
2,343
80
codeparrot/github-code
b7a7be4b77eb57cb96fc0efc04946596812058db2673a5fad2a8b0627219242e
using CsDebugScript.Engine.Utility; using DIA; using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; namespace CsDebugScript.Engine.SymbolProviders { /// <summary> /// DIA library module representation /// </summary> internal class DiaModule : ISymbol...
C#
Source/CsDebugScript.DiaSymbolProvider/DiaModule.cs
LepiKlark/WinDbgCs
apache-2.0
40,700
1,136
codeparrot/github-code
c3f49869b9899e886b95cad1ac5a559ba83df68f7bb89b6dd09efdfa093285ea
/* * Copyright (c) EMC Corporation. All rights reserved. */ package radl.java.extraction; import java.util.Arrays; import java.util.Collection; import java.util.Set; import javax.lang.model.SourceVersion; import javax.lang.model.element.Element; import javax.lang.model.element.TypeElement; import org.junit.Before; ...
Java
java/core/src/test/java/radl/java/extraction/JaxrsProcessorTest.java
restful-api-description-language/RADL
apache-2.0
16,191
535
codeparrot/github-code
94cd1cf2be4e287613ca73487124231aae67824a06f2e7b2c87ef0565a85c31e
# # Copyright (c) 2008-2015 Citrix Systems, 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 l...
Python
nssrc/com/citrix/netscaler/nitro/resource/config/ns/nssimpleacl6.py
mahabs/nitro
apache-2.0
12,674
403
codeparrot/github-code
94c6acc4b3b055e8b90f7ec79ff5c238b792ccc07d44170f66abe53eab4cf113
package ro.pub.cs.systems.pdsd.practicaltest02; import java.io.BufferedReader; import java.io.IOException; import java.io.PrintWriter; import java.net.ServerSocket; import java.net.Socket; import java.net.UnknownHostException; import java.util.ArrayList; import org.apache.http.client.HttpClient; import org.apache.htt...
Java
Proiect/src/ro/pub/cs/systems/pdsd/practicaltest02/PracticalTest02.java
andreeastoican/PracticalTest02
apache-2.0
6,001
229
codeparrot/github-code
e800dad877651daa2c5f23e59690e3a87c93be169de04ad2eea46da29d14aefc
#ifndef _GNU_SOURCE #define _GNU_SOURCE #endif #include <stdio.h> #include <stdlib.h> #include "symbol_table.h" #include "../util/hash_table.h" #include "../util/list.h" #include "../util/error.h" #include "../program.h" #include "../codegen.h" #include "../function.h" #include "errorc.h" static struct symbol_table ...
C
src/cc1/symbol/symbol_table.c
tomtix/bcc
apache-2.0
4,705
213
codeparrot/github-code
b277c10017f755d1e66f54237133ee0400408e405645f3d389284ab3acef6e61
#include "IntegrationTools.h" // TODO: Could probably make this faster by explicitly using Rodrigues' rotation formula static void updateOrientation( const int nbodies, const int bdy_num, const VectorXs& q0, const VectorXs& v0, const scalar& dt, VectorXs& q1 ) { assert( q0.size() == q1.size() ); assert( q0.size() ...
C++
rigidbody3d/UnconstrainedMaps/IntegrationTools.cpp
breannansmith/scisim
apache-2.0
2,042
71
codeparrot/github-code
ae79e904b33d82865f461d552563243279f3f9d6c416e9dcc77db7d4bfb991e6
/* * 3D City Database - The Open Source CityGML Database * https://www.3dcitydb.org/ * * Copyright 2013 - 2021 * Chair of Geoinformatics * Technical University of Munich, Germany * https://www.lrg.tum.de/gis/ * * The 3D City Database is jointly developed with the following * cooperation partners: * * Virtua...
Java
impexp-core/src/main/java/org/citydb/core/writer/SequentialWriter.java
3dcitydb/importer-exporter
apache-2.0
4,247
142
codeparrot/github-code
aff9aa1628c9410ebbf10e7b6f524ff0eaa541b51c731765e5a463198ae1b502
package com.twitter.finagle.netty4.channel import com.twitter.finagle.netty4.channel.ChannelRequestStatsHandler.SharedChannelRequestStats import com.twitter.finagle.stats.{StatsReceiver, Verbosity} import io.netty.channel._ private object ChannelRequestStatsHandler { /** * Stores all stats that are aggregated a...
Scala
finagle-netty4/src/main/scala/com/twitter/finagle/netty4/channel/ChannelRequestStatsHandler.scala
twitter/finagle
apache-2.0
1,597
51
codeparrot/github-code
8bc8659c7d286d283ab5dbcef15d5f63d45f118af00f32c85f27a268cf5fa65d
<?php ini_alter('display_errors', 0); include_once("../resources/init.php"); Init::isLoggedInRedirect('superuser','login.php'); include_once '../globals.php'; //include_once 'cms/cmsController.php'; include_once '../quickCmsApp/ContentController.php'; ?> <!DOCTYPE html> <html lang="en"> <head> ...
PHP
superuser/500lcur.php
onimisionipe/departmentcms
apache-2.0
5,368
150
codeparrot/github-code
23403d94b0c11509a4ab31e30dad4acf60a54b4acc2eee32b33ed4ba56e9bca9
/* * 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
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/helpers/ContainerData.java
ChetnaChaudhari/hadoop
apache-2.0
8,332
327
codeparrot/github-code
4d838dc31bb2cc4770bbf065255a01d19b5f46372a968fee248cac122a0e3e98
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.Collections.Immutable; using System.IO; using System.Linq; using System.Reflection; using System...
C#
src/Test/Utilities/Portable/Pdb/PdbValidation.cs
weltkante/roslyn
apache-2.0
22,346
555
codeparrot/github-code
0c1dd9c918662cdb22d55a8fd644bc28c0d266cd012e33027e0e1349b63dba3f
# Copyright 2016 Bridgewater Associates # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
Python
security_monkey/watchers/rds/rds_security_group.py
markofu/security_monkey
apache-2.0
5,590
143
codeparrot/github-code
e0ede62ddff8fe0e1f9569397e03b5681d1d10d5e60c9f59f0e8817350ed43d5
package it.musichub.server.rest.impl.routes.control; import javax.ws.rs.POST; import javax.ws.rs.Path; import javax.ws.rs.Produces; import io.swagger.annotations.Api; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; import io.swagger.annotations.ApiOperation; import io....
Java
src/main/java/it/musichub/server/rest/impl/routes/control/SetVolume.java
sigitm/musichub
apache-2.0
2,337
68
codeparrot/github-code
27c7bd66960e70db785e0e9dca1a64dac942f91a384387ea79450bd544b8fbd8
import Vue from 'vue'; import Vuex from 'vuex'; import Buefy from 'buefy'; import 'buefy/lib/buefy.css'; import App from './App.vue'; import axios from 'axios'; import moment from 'moment'; Vue.use(Vuex); Vue.use(Buefy); Vue.filter('date', function (value) { return moment(value).format('DD/MM/YYYY'); }); const ...
JavaScript
src/main.js
cesarlopezfab/u-habit
apache-2.0
3,470
121
codeparrot/github-code
d5e21c0494467114750b98e205a4e23cb54939a48c89244b10506921636f7be4
/* * meego-handset-socialweb - Meego Handset Social Networking application * * Copyright (c) 2010, Intel Corporation. * * This program is licensed under the terms and conditions of the * Apache License, version 2.0. The full text of the Apache License is at * http://www.apache.org/licenses/LICENSE-2.0 * */ ...
C
src/socialwebapp.h
dudochkin-victor/handset-socialweb
apache-2.0
720
39
codeparrot/github-code
8ee11949e0b1256ee455a318deb816ac27ff10a45f6fe8da2fa72918184a5179
/* * Copyright 2017 Marek Wojtuszkiewicz * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
Java
src/main/java/pl/itrack/client/local/services/maps/TricitySchemaService.java
baldram/tristar-eye
apache-2.0
5,584
158
codeparrot/github-code
7492318ed965769accc4e1b63d60056cdb15a5e1a65fb8a58e965659a8d04daa
/* * Copyright 2019 Spotify AB. * * 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 ...
Scala
scio-examples/src/test/scala/com/spotify/scio/examples/extra/AvroExampleTest.scala
spotify/scio
apache-2.0
2,897
88
codeparrot/github-code
f1da5a2c94cec6f869af72961ab3e5e4981aa6ae5068fae5880371e6ff9ec629
# Copyright (C) 2009-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 in ...
Ruby
test/helpers/general.rb
janiskesteris/mongo
apache-2.0
1,163
51
codeparrot/github-code
460b20fd03ae613252be71ea785dced0ed9a89be5d74f8b55348561e4daf6a6d
using System; using System.Globalization; using System.Web.Mvc; namespace EPiServer.Reference.Commerce.Site.Features.Global.Shared.ModelBinders { public class DecimalModelBinder : DefaultModelBinder { public override object BindModel(ControllerContext controllerContext, ...
C#
Sources/EPiServer.Reference.Commerce.Site/Features/Global/Shared/ModelBinders/DecimalModelBinder.cs
simerc/QuicksilverPlus
apache-2.0
1,666
50
codeparrot/github-code
2f15e1550f02f17c67618bf24490e7336d129b2ed72291fdba8aef54b34272fb
/* * Copyright (c) 2014 Juniper Networks, Inc. All rights reserved. */ ServiceTemplatesObj = new ServiceTemplates(); function ServiceTemplates() { //Variable definitions //Text Box var txtTempName; //Dropdowns var ddDomain, ddProject, ddImageName, ddserType, ddserMode,ddFlavors; //Multi S...
JavaScript
webroot/config/services/template/ui/js/svctemplate_config.js
asbalaji/contrail-web-controller
apache-2.0
40,648
1,067
codeparrot/github-code
324113e6cf8e4e6e10e13c4da2e684f0cd8632dda51754c6fc55350b0c542fb9
package com.noundla.centerviewpagersample; import java.util.Random; import com.noundla.centerviewpagersample.comps.PagerAdapter; import android.app.Activity; import android.graphics.Color; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.view.View...
Java
src/com/noundla/centerviewpagersample/MyViewPagerAdapter.java
noundla/CenterLockViewPager
apache-2.0
2,032
76
codeparrot/github-code
33297a740f854134630e4de9cc106c0295686ebe68a4fdf7e02c72bd955d5b74
package org.kasource.web.websocket.client.id; import java.util.List; import java.util.UUID; import javax.websocket.server.HandshakeRequest; public abstract class AbstractClientIdGenerator implements ClientIdGenerator { private static final String DEFAULT_ID_KEY = "username"; private String idKey = DEF...
Java
core/src/main/java/org/kasource/web/websocket/client/id/AbstractClientIdGenerator.java
wigforss/Ka-Websocket
apache-2.0
1,326
52
codeparrot/github-code
95e1eee6425044c3a693fa350d959a102f23c81cbbb4c6102074f789addf6a2f
// Copyright 2017 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 applicable la...
C#
test/Steeltoe.Discovery.EurekaBase.Test/EurekaApplicationHealthContributorTest.cs
SteelToeOSS/Discovery
apache-2.0
3,382
79
codeparrot/github-code
a1478c79ef652de31d2cd5e728267f960042285efe2e39d1ac01a4512414980e
package db import ( "encoding/binary" "github.com/boltdb/bolt" "github.com/pkg/errors" ) // DBLocation is the on-disk file containing our database const DBLocation string = "poe.db" var bucketNames = [...]string{ stringHeapBucket, stringHeapInverseBucket, leagueHeapBucket, leagueHeapInverseBucket...
GO
db/db.go
Everlag/poeitemstore
apache-2.0
2,946
119
codeparrot/github-code
bd34e70c21437862f9fa2a9d53e3e65b79e335a916e38b860ba64d587cb53f6e
<?php use yii\helpers\Html; use kartik\grid\GridView; use yii\widgets\Pjax; use xj\bootbox\BootboxAsset; use yii\bootstrap\Modal; use yii\web\Controller; ?> <?php // echo $this->render('_search', ['model' => $searchModel]); ?> <?php echo GridView::widget([ 'dataProvider' => $data, //'filterModel'...
PHP
_protected/modules/pelaporan/views/pelaporanrekap/laporan2.php
hoaaah/bossan
apache-2.0
4,790
110
codeparrot/github-code
7e46b3008b6285dd95f606c662a8ec252cd19b8891daca7e22e78195f6efe9c1
/* * Copyright 2020 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
Java
grpc-google-cloud-asset-v1p1beta1/src/main/java/com/google/cloud/asset/v1p1beta1/AssetServiceGrpc.java
googleapis/java-asset
apache-2.0
21,893
529
codeparrot/github-code
465c3b8d9883c11c741a3309b195ac0a1b35036784f8fe820694d3c2c1e169d8
<?php namespace Riimu\Kit\PHPEncoder\Encoder; /** * Encoder for GMP number types. * @author Riikka Kalliomäki <riikka.kalliomaki@gmail.com> * @copyright Copyright (c) 2014, Riikka Kalliomäki * @license http://opensource.org/licenses/mit-license.php MIT License */ class GMPEncoder implements Encoder { ...
PHP
alcuin/system/Encoder/GMPEncoder.php
loie/Alcuin
apache-2.0
844
32
codeparrot/github-code
33ab9356543706e5415d999b9557987d9703e31365b228079036c6a60a4b5dc5
<html> <head> <meta name="Author" content="flashlizi - www.riaidea.com"> <meta name="Keywords" content="HTML5,canvas,casual framework"> <meta name="Description" content="HTML5 canvas experiment"> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>DisplayObject Demo - CasualJS Framework</title...
HTML
examples/DisplayObject.html
flashlizi/casualjs
apache-2.0
5,334
193
codeparrot/github-code
d88da6eb9a593e83d206e52b7f0bb967071b19218ec7c9f17ce02bd274693cec
'use strict'; const angular = require('angular'); module.exports = angular .module('spinnaker.widgets.numberInput.component', []) .component('numberInput', { template:` <div class="navbar-form" style="padding: 0 ;"> <div class="button-input" ng-class="{number: $ctrl.numberActive, text: $ctrl.tex...
JavaScript
app/scripts/modules/core/src/widgets/spelText/numberInput.component.js
kenzanlabs/deck
apache-2.0
2,471
84
codeparrot/github-code
336a5c3d5ff40092755eced6a953f0cfc1853ae8fbba3b31ffbe1d3e1cc0b8ca
package com.greengrowapps.ggarest; import com.greengrowapps.ggarest.GgaRestTest; import com.greengrowapps.ggarest.exceptions.AlreadyExecutingException; import com.greengrowapps.ggarest.listeners.OnObjResponseListener; import com.greengrowapps.ggarest.listeners.OnResponseListener; import com.greengrowapps.ggarest.tools...
Java
GgaRestAndroidLib/ggarest/src/androidTest/java/com/greengrowapps/ggarest/PostContentLengthTest.java
greengrowapps/ggarest
apache-2.0
2,543
70
codeparrot/github-code
716ba19c8048e475568e597cc7bbfe25761f19734eab5b78487d8e5edf6ad9c5
INDENT = " " def escape_text_html(str): return str.replace("&", "&amp;").replace("<", "&lt;") def escape_attr_html(str): return str.replace("\"", "&quot;") class Node(object): ELEMENT = 1 TEXT = 2 ROOT = 3 type = 0 parent = None def insert_before(self, node): if node.parent: node.pa...
Python
df2/codegen/node.py
operasoftware/dragonfly-build-tools
apache-2.0
4,544
161
codeparrot/github-code
77c84f7725c045533e211d06820af70464b366c36993936d54ebd783fe3fd662
'''some useful functions when working with web servers''' import re import os import base64 import zlib # import blockdiag # import blockdiag.imagedraw # import blockdiag.noderenderer # import blockdiagcontrib # import actdiag.plugins # import blockdiag.plugins # for supporting base64.js def base64_decode(the_string)...
Python
cloudmesh/util/webutil.py
rajpushkar83/cloudmesh
apache-2.0
4,482
167
codeparrot/github-code
c6e0a9cb56b54ffc4b7644c7dff52a4deadd3289116fb7ef6b8834f1cb0f98d0
/* * Copyright (c) 2001-2004 Ant-Contrib project. 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 ...
Java
src/main/java/net/sf/antcontrib/design/InstructionVisitor.java
antlibs/ant-contrib
apache-2.0
5,711
183
codeparrot/github-code
cd9a841f88317f783ac4178fb747dea01f056562940555cc120842cccdd333f6
package onehao.lucene; import java.io.IOException; import onehao.lucene.utils.FileToDocument; import org.apache.lucene.analysis.Analyzer; import org.apache.lucene.analysis.standard.StandardAnalyzer; import org.apache.lucene.document.Document; import org.apache.lucene.index.IndexWriter; import org.apache.lu...
Java
lucene/src/onehao/lucene/HelloWorld.java
onehao/opensource
apache-2.0
1,160
45
codeparrot/github-code
ab2045912e2cec2ad8454f3b3a7325b8e7ffe9dd2e18ca89effb5023d3d189dd
/* * 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
mllib/src/main/scala/org/apache/spark/ml/param/params.scala
tophua/spark1.52
apache-2.0
26,247
823
codeparrot/github-code
017445aa2129683234f946ee2dcd1eb99a6c406918ea471c418dfdc3c2b5d2fd
/* This file is part of the Pinocchio automatic rigging library. Copyright (C) 2007 Ilya Baran (ibaran@mit.edu) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either vers...
C++
smartbody/src/sbgui/external/Pinocchio/embedding.cpp
gsi-upm/SmartSim
apache-2.0
19,497
600
codeparrot/github-code
ebfe8bbf015d6cd9f3116ff2d404ffe15fdcf384539dce16b79ea77b20138b26
/* * 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/net/InboundMessageHandler.java
driftx/cassandra
apache-2.0
18,720
512
codeparrot/github-code
f0560bd2f4b2ec582ed8764d19ccc35f7da2c2f14f0d5b481ca9d30fea7e9009
 <?php require_once ("./mysqli.class.php"); $db = new Mysqlii ( "localhost", "root", "dapeng9988", "yanjing", "utf8" ); require_once ("./WxConfig.php"); $wx = new WxConfig ( "############", "############" ); ?> <?php if (isset ( $_POST ['Submit'] ) && $_POST ['Submit'] == "新增") { $name = $_POST ['name']; ...
PHP
Admin/qd/WxChannel.php
lz1988/ddglass
apache-2.0
2,339
98
codeparrot/github-code
8ac978409c02682fef66c4bdc04df46613bbf37b0c817f39162ffa88d04005aa
/******************************************************************************* * * Pentaho Data Integration * * Copyright (C) 2002-2012 by Pentaho : http://www.pentaho.com * ******************************************************************************* * * Licensed under the Apache License, Version 2.0 (the ...
Java
engine/src/org/pentaho/di/trans/steps/userdefinedjavaclass/UserDefinedJavaClass.java
jjeb/kettle-trunk
apache-2.0
35,471
1,524
codeparrot/github-code
f77951b38cd0adf84bb16f407f6dd37df6ba822c6bee2e8d2d19cefaabb8a622
/* * Copyright (c) 2015, Netherlands Forensic Institute * All rights reserved. */ package org.raqet.smb; import static com.javaforge.reifier.check.ArgumentChecker.argNotNull; import org.alfresco.jlan.server.filesys.FileInfo; import org.alfresco.jlan.server.filesys.SearchContext; import org.alfresco.jlan.server.fil...
Java
src/org/raqet/smb/RaqetSearchContext.java
raqet/acquisition-server
apache-2.0
2,166
89
codeparrot/github-code
3487d1114897c5f9b7a9c154cb0e42e85b029990e160f10c2b71106c5ccd43f7
package com.watermelonfueled.switchstate; import com.badlogic.gdx.math.MathUtils; import com.badlogic.gdx.math.Vector2; /** * Player class. Extends on superclass by adding velocity and direction. */ public class Player extends GameRectangle { private final int MAX_SPEED = 25; // units/s private fl...
Java
core/src/com/watermelonfueled/switchstate/Player.java
WatermelonFueled/SwitchState
apache-2.0
2,409
87
codeparrot/github-code
1b9253745f5a6a51941fca198ea29b1e139dade2ad63a1d95c775dd4f560c00d
package com.wincom.actor.editor.tutogef.wizard; import org.eclipse.jface.wizard.Wizard; import org.eclipse.jface.wizard.WizardPage; import org.eclipse.swt.SWT; import org.eclipse.swt.layout.RowLayout; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Label; import org.eclipse.swt.widgets.Text; i...
Java
plugins/com.wincom.actor.editor.tutogef/src/com/wincom/actor/editor/tutogef/wizard/RenameWizard.java
xtwxy/actor-editor
apache-2.0
1,614
64
codeparrot/github-code
c5a7f3928860c8828d181272a81ebd877578482355be7217e223eecb6b33214f
package com.evolveum.midpoint.model.impl.security; import org.apache.commons.lang.StringUtils; import org.jetbrains.annotations.NotNull; import org.springframework.security.authentication.AuthenticationCredentialsNotFoundException; import org.springframework.security.authentication.BadCredentialsException; import org....
Java
model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/security/PasswordAuthenticationEvaluatorImpl.java
Pardus-Engerek/engerek
apache-2.0
2,834
73
codeparrot/github-code
3706adb4e3f546450d67281784894229b05d32513ad859ae04b37fcb608b1e53
/* * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
Java
google-cloud-clients/google-cloud-os-login/src/test/java/com/google/cloud/oslogin/v1/OsLoginServiceClientTest.java
vam-google/google-cloud-java
apache-2.0
15,779
426
codeparrot/github-code
9b9c4a3ae992c7e08c309a95b8fd9a23dae9b6e78fd135c54cddab6a203317a0
package com.continuuity.loom.common.queue.guice; import com.continuuity.loom.common.conf.Constants; import com.continuuity.loom.common.queue.QueueGroup; import com.continuuity.loom.common.queue.QueueType; import com.continuuity.loom.common.queue.TrackingQueue; import com.continuuity.loom.common.queue.internal.Elements...
Java
server/src/main/java/com/continuuity/loom/common/queue/guice/QueueModule.java
awholegunch/loom
apache-2.0
1,997
46
codeparrot/github-code
1420a349d7c23e84ca277cc5f74ae7caaac34bfc151990b0c581d2052f786eb4
#pragma once #include <iostream> #include <string> #include <functional> #include <chrono> #include <thread> #include <gl/gl.h> #include <GLFW/glfw3.h> #include "rect.hpp" namespace num { namespace visual { // class GLWindow; static bool GLFW_INITIALIZED = false; class GLWindow { public: GLWindow(std::string t...
C++
include/num/visual/base/GLWindow.hpp
wenyuzhao/num
apache-2.0
1,553
82
codeparrot/github-code
1350d82740cff0371859323b616c1b2dc172074057b0939d6c85fe90ab23dcff
/******************************************************************************* * Copyright 2016 Jalian Systems Pvt. 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:...
Java
marathon-core/src/main/java/net/sourceforge/marathon/resource/navigator/ProjectFolderResource.java
jalian-systems/marathonv5
apache-2.0
3,695
123
codeparrot/github-code
14e8afc62aca2b44fa178ee64a494ef5790020d317b2c83335ab317b5922eb72
package com.compomics.sigpep.model.impl; import com.compomics.sigpep.model.*; /** * @TODO: JavaDoc missing * <p/> * Created by IntelliJ IDEA.<br/> * User: mmueller<br/> * Date: 05-Feb-2008<br/> * Time: 14:21:11<br/> */ public class ExonImpl implements Exon, Persistable { private int id; ...
Java
sigpep-model/src/main/java/com/compomics/sigpep/model/impl/ExonImpl.java
compomics/compomics-sigpep
apache-2.0
2,343
111
codeparrot/github-code
77b039f05101b34aa186a6105d9d0f6ab2fbce7c3fa7892bd3b798ec8454ffe8
package com.draagon.meta.generator.plantuml; import com.draagon.meta.generator.Generator; import com.draagon.meta.generator.GeneratorBase; import com.draagon.meta.generator.GeneratorTestBase; import com.draagon.meta.generator.direct.plantuml.PlantUMLGenerator; import com.draagon.meta.loader.file.FileMetaDataLoader; im...
Java
core/src/test/java/com/draagon/meta/generator/plantuml/PlantUMLTest.java
Draagon/draagon-metaobjects
apache-2.0
4,124
141
codeparrot/github-code
372f70e971c7b511817dd34bd4532982043708e76386560448ec441846665ba1
package core import ( "errors" ) type UserService interface { // insert user's information into db if it has validated username and email Register(user *User) error // test if the @user is registered or not // an user is registered if username or email exists in db IsUserRegistered(user *User) bool // found us...
GO
core/service.go
lanyitin/gotodoit
apache-2.0
3,640
131
codeparrot/github-code
93ead5aad01f509cfe17a482477b2411a5f6d20ba6caea52e86d153e383a7bdd
package org.springframework.data.jdbc.repository.sql; import static java.lang.String.format; import java.sql.DatabaseMetaData; import java.sql.SQLException; import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Sort; import org.springframework.data.jdbc.repository.support.J...
Java
src/main/java/org/springframework/data/jdbc/repository/sql/Oracle9SqlGenerator.java
jihwan/spring-data-jdbc
apache-2.0
1,513
46
codeparrot/github-code
704b95efdef31a08ad26d3780d0ecc3fb71909084216f6a2d2061a98c531e0cd
package com.sdsxer.mmdiary.web.response.comment; import com.sdsxer.mmdiary.domain.Comment; import com.sdsxer.mmdiary.dto.CommentDto; import com.sdsxer.mmdiary.dto.PageDto; import com.sdsxer.mmdiary.web.response.SuccessResponse; import org.springframework.core.convert.converter.Converter; import org.springframework.dat...
Java
server/source/mmdiary/src/main/java/com/sdsxer/mmdiary/web/response/comment/RetrieveCommentListResponse.java
sdsxer/mmdiary
apache-2.0
864
35
codeparrot/github-code
10347c9a8187e2a735532bf6896bf4f328b04bd58177833ee8bd93b7cd97802e
package org.zstack.header.vm; import org.zstack.header.message.APIMessage; import org.zstack.header.message.APIParam; /** * @api * * start a vm instance * * @since 0.1.0 * * @cli * * @httpMsg { "org.zstack.header.vm.APIStartVmInstanceMsg": { "uuid": "a57042713a3d4cdbb99c7c98b6628da8", "sess...
Java
header/src/main/java/org/zstack/header/vm/APIStartVmInstanceMsg.java
SoftwareKing/zstack
apache-2.0
1,154
62
codeparrot/github-code
a26b2d5bee9affbad14cf033fa21212cbff5ebcb8a340c0d822e8e0a22eea19f
#!/bin/bash -xe # Copyright (C) 2011-2013 OpenStack 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 applic...
Shell
nodepool/scripts/prepare_node.sh
anbangr/osci-project-config
apache-2.0
9,783
249
codeparrot/github-code
6c6497f255d33f148e1d2cf9b3907077a3015b3e43852c529d8c407ac09d0121
/* * Copyright 2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
Java
web/api/src/main/java/leap/web/api/mvc/params/PartialArgumentBinder.java
leapframework/framework
apache-2.0
1,143
37
codeparrot/github-code
1808ca983c6a7a5db488e7c9d96a07e88f2d06201e9477eea3b1d0a4fcb14c1c
/* ////////////////////////////////////////////////////////////////////////////////////// * includes */ #include "../demo.h" /* ////////////////////////////////////////////////////////////////////////////////////// * types */ typedef struct __tb_demo_context_t { // verbose tb_bool_t verbose; }tb...
C
src/demo/stream/stream.c
tboox/tbox
apache-2.0
15,649
402
codeparrot/github-code
201e8852bd93c2c82afec870ac59c113b3858668e7a33b31ccf928347e01f1a6
// Generated from /POI/java/org/apache/poi/util/CodePageUtil.java #pragma once #include <fwd-POI.hpp> #include <java/lang/fwd-POI.hpp> #include <java/util/fwd-POI.hpp> #include <org/apache/poi/util/fwd-POI.hpp> #include <java/lang/Object.hpp> struct default_init_tag; class poi::util::CodePageUtil : public virtu...
C++
src/org/apache/poi/util/CodePageUtil.hpp
pebble2015/cpoi
apache-2.0
5,069
101
codeparrot/github-code
120dc0a85c30934e5997190f12826a8204a2c065044a2a2131d5d26ef719eef6
using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Diagnostics; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.CodeAnalysis; using Roslyn.Utilities; namespace Pchp.CodeAnalysis.Symbols { /// <summary> /// A <see cref="MissingAs...
C#
src/Peachpie.CodeAnalysis/Symbols/MissingAssemblySymbol.cs
iolevel/peachpie
apache-2.0
3,867
147
codeparrot/github-code
d0e6350333e94c0f62e22cf645f2788c30336ef1434ccbacc15ea7773ef38802
#!/usr/bin/python # -*- coding: utf-8 -*- # ====================================================================== # Copyright 2016 Julien LE CLEACH # # 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 Lice...
Python
supvisors/client/subscriber.py
julien6387/supervisors
apache-2.0
6,689
167
codeparrot/github-code
695234d8e13dff839af64a5af8592a59ec94fe4da51811747b1da448f164cfb2
<?php final class DifferentialRevisionUpdateHistoryView extends AphrontView { private $diffs = array(); private $selectedVersusDiffID; private $selectedDiffID; private $selectedWhitespace; public function setDiffs(array $diffs) { assert_instances_of($diffs, 'DifferentialDiff'); $this->diffs = $diff...
PHP
src/applications/differential/view/DifferentialRevisionUpdateHistoryView.php
yangming85/phabricator
apache-2.0
9,827
330
codeparrot/github-code
bd2abc3be8eb827af44f35ed1e890a4e2527c460936632a9f3a733965cbd2aaf
/* * Copyright 2015-2016 LMAX 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...
Java
src/test/java/com/lmax/tool/disruptor/AbstractRingBufferProxyGeneratorTest.java
LMAX-Exchange/disruptor-proxy
apache-2.0
21,374
528
codeparrot/github-code
27f59f0c2bf122480225549dca500c31590c1786f971b6186651904271e1b2d7
// Copyright 2014 Technical Machine, Inc. See the COPYRIGHT // file at the top-level directory of this distribution. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your /...
C
src/hw/hw_digital.c
tessel/t1-firmware
apache-2.0
3,990
156
codeparrot/github-code
ae3b6b7a690d15efa9919ae374c25f51ba70dbdfa38c4cec3e71e10d3e9e6920
package de.uni_koeln.spinfo.upcase.service; import java.io.File; import java.io.FileFilter; import java.util.ArrayList; import java.util.List; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Service; import net.sourceforge.tess4j.Tesseract; import net.sourceforge.tess4j...
Java
src/main/java/de/uni_koeln/spinfo/upcase/service/OCRService.java
spinfo/upcase
apache-2.0
1,787
73
codeparrot/github-code
59df0876e98200850e12e509185c95c96ab154eceaa8c193eb3760a21a590fef
/* * Copyright 2011 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appli...
Java
examples/rest-assured-itest-java/src/test/java/com/jayway/restassured/itest/java/support/WithJetty.java
VoldemarLeGrand/rest-assured
apache-2.0
3,302
94
codeparrot/github-code
be7be0ef37a00b964c14ecc13825afa0593c2b3c1b144518c78eaf434a420752
/* * Copyright 2000-2016 JetBrains s.r.o. * * 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 agre...
Java
jps/jps-builders-6/src/org/jetbrains/jps/javac/JavacMain.java
signed/intellij-community
apache-2.0
21,267
558
codeparrot/github-code
b60fce0a62ea40476803d1e02367ffde93de52cb0c4d1f232ac5ce768c5c1160
package edu.neu.ccs.pyramid.regression.regression_tree; import edu.neu.ccs.pyramid.dataset.DataSet; import edu.neu.ccs.pyramid.dataset.RegDataSet; import org.apache.mahout.math.DenseVector; import org.apache.mahout.math.Vector; import java.util.*; import java.util.stream.IntStream; import java.util.stream.Stream; /...
Java
core/src/main/java/edu/neu/ccs/pyramid/regression/regression_tree/RegTreeTrainer.java
cheng-li/pyramid
apache-2.0
18,406
512
codeparrot/github-code
5cb3bc5a80475348dc5995d842c3503434fd586a602239171675f09c6fefacc6
/* * Copyright 2016 LINE Corporation * * LINE Corporation licenses this file to you under the Apache License, * version 2.0 (the "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless re...
Java
sample-spring-boot-kitchensink/src/main/java/com/example/bot/spring/KitchenSinkController.java
imamrinjani/percobaan2
apache-2.0
17,633
406
codeparrot/github-code
8c9503433a333d8c8129dc116c0b7c7bd051c8d13545fc4c6993bb69f7b73f39
/* * Copyright 2013 Rackspace * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
Java
blueflood-elasticsearch/src/main/java/com/rackspacecloud/blueflood/io/ElasticIO.java
rackerlabs/blueflood
apache-2.0
2,762
87
codeparrot/github-code
650395eb2eae7ddffec7c9f4d1e37541c4326451f356dea761c6e8d369ca0dcb
package com.twitter.finagle; import java.net.SocketAddress; import scala.Option; import scala.Some; import org.junit.Test; import com.twitter.concurrent.AsyncSemaphore; import com.twitter.finagle.builder.ClientBuilder; import com.twitter.finagle.client.DefaultPool; import com.twitter.finagle.client.StackClient; imp...
Java
finagle-core/src/test/java/com/twitter/finagle/StackParamCompilationTest.java
BuoyantIO/finagle
apache-2.0
6,590
149
codeparrot/github-code
935eb47243d4c9d46c954c682a6b8b608adeb2638869ff54588ce6320a304d19
/* * DBeaver - Universal Database Manager * Copyright (C) 2010-2019 Serge Rider (serge@jkiss.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.apache.org...
Java
plugins/org.jkiss.dbeaver.model/src/org/jkiss/dbeaver/model/data/DBDDataFilter.java
liuyuanyuan/dbeaver
apache-2.0
8,773
275
codeparrot/github-code
83802b055ca265538bed715c48e666cde7ad5785786435a48b573588e7a242a0
/* * Copyright (C) 2008 feilong * * 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...
Java
feilong-spring-core/src/test/java/com/feilong/SpringDITest.java
venusdrogon/feilong-spring
apache-2.0
3,362
99
codeparrot/github-code
74fcad4c923c1a5d65ea0494a31508f510d1d7684c63652fa623c3f7e05d0801
// NPM IMPORTS import assert from 'assert' // COMMON IMPORTS import T from '../utils/types' import { is_browser } from './is_browser' let forge = undefined if ( is_browser() ) { forge = require('forge-browser').forge } else { forge = require('node-forge') } const context = 'common/utils/digest' /** * @file D...
JavaScript
src/js/utils/digest.js
lucbories/devapt-core-common
apache-2.0
4,878
184
codeparrot/github-code
7df367f08f089a38c5e3910f25cdf8693c0b47cb2bbd25731a82fabd4d513d5c
// NPM IMPORTS import assert from 'assert' // import _ from 'lodash' // COMMON IMPORTS import T from '../utils/types' import Loggable from '../base/loggable' const context = 'common/rendering/rendering_builder' /** * Rendering wrapper class. * @author Luc BORIES * @license Apache-2.0 */ export default ...
JavaScript
src/js/rendering/rendering_builder_assets.js
lucbories/devapt-core-common
apache-2.0
7,564
246
codeparrot/github-code
9878b0d94700e52fe7465c7731dc0893db581345e660446a0a66c928077977c0
/* * Copyright 2017 K. P. Sroka * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
JavaScript
src/ui/Ui.js
kpsroka/splendid
apache-2.0
977
33
codeparrot/github-code
6ea5d6b4c953e4df66832cbc8d3b878a1f1e2574186e3ce2d20c825a2ff28b23
package com.sample.crawler; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.jsoup.select.Elements; import java.io.File; import java.io.IOException; /** * 公司线上库数据查询,进行sql生成. * User: xiongjinteng@raycloud.com * Date: 2017/5/21 * Time: 下午2:11 */ public class Crawler { public static void mai...
Java
melon-sample-crawler/src/main/java/com/sample/crawler/Crawler.java
Ansafari/melon
apache-2.0
1,863
46
codeparrot/github-code
e427ca55525c7802b051baf0cffef760f67fb2873285ec0657f0d5aadf6260c8
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Scalamachine: {{ page.title }}</title> <meta name="description" content="StackMob Internal Talks App"> <meta name="author" content="Jordan West"> <!-- Le HTML5 shim, for IE6-8 support of HTML elements --> <!--[if lt IE ...
HTML
core/src/jekyll/_layouts/default.html
stackmob/scalamachine
apache-2.0
2,216
62
codeparrot/github-code
fea2841044d1c76098b6e20e2c19e7fae29433c6ac15ef8011063f8082705ccd
/******************************************************************************* * Project: libopencad_api.cpp * Purpose: libOpenCAD OpenSource CAD formats support library * Author: Alexandr Borzykh, mush3d at gmail.com * Author: Dmitry Baryshnikov, bishop.dev@gmail.com * Language: C++ **********************...
C++
deps/libgdal/gdal/ogr/ogrsf_frmts/cad/libopencad/opencad.cpp
naturalatlas/node-gdal
apache-2.0
6,181
207
codeparrot/github-code
214093b8e79e33c7b48936efbedada8c8122a19ecbb3d1280726d6a14a443365
/* * 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
integration/spark-common-test/src/test/scala/org/apache/carbondata/spark/testsuite/createTable/TestCreateTableUsingSparkCarbonFileFormat.scala
jatin9896/incubator-carbondata
apache-2.0
12,491
357
codeparrot/github-code
f0fd3ae1bd5cfddd02d51c293720e82f3e39e0f476f5b1deabc8881d81423d0b
package cn.binarywang.wx.miniapp.executor; import cn.binarywang.wx.miniapp.bean.AbstractWxMaQrcodeWrapper; import me.chanjar.weixin.common.enums.WxType; import me.chanjar.weixin.common.error.WxError; import me.chanjar.weixin.common.error.WxErrorException; import me.chanjar.weixin.common.util.fs.FileUtils; import me.ch...
Java
weixin-java-miniapp/src/main/java/cn/binarywang/wx/miniapp/executor/OkHttpQrcodeFileRequestExecutor.java
Wechat-Group/WxJava
apache-2.0
2,264
61
codeparrot/github-code
b3e9642b7fe4e7a682909b3cbc39fb506aacf0c1673105686747da74c88ff694
export interface MinorVersion { displayVersion: string; runtimeVersion: string; isDefault: boolean; } export interface MajorVersion extends MinorVersion { minorVersions: MinorVersion[]; } export interface Framework { name: string; display: string; majorVersions: MajorVersion[]; } export i...
TypeScript
AzureFunctions.AngularClient/src/app/shared/models/arm/stacks.ts
chunye/azure-functions-ux
apache-2.0
6,066
183
codeparrot/github-code
290b257d3fb3af21f53b252294cf0904f97d6d37e9ad4472b6999233365ac741
/************************************************************************** Annotation.java is part of Titanium4j Mobile 3.0. Copyright 2012 Emitrom 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...
Java
src/com/emitrom/ti4j/mobile/client/map/Annotation.java
CraigAndrew/titanium4j
apache-2.0
6,397
202
codeparrot/github-code
48da3658afc995a4ab07abcc8179999f820459b068082ccb5ba3d923a8b954dd
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Threading.Tasks; using Windows.Data.Json; using Windows.Storage; using Windows.UI.Xaml.Media; using Windows.UI.Xaml.Media.Imaging; // The data model defined by this file serves as a representative exa...
C#
Voedselkalender/Voedselkalender.Shared/DataModel/SampleDataSource.cs
petermorlion/Voedselkalender
apache-2.0
6,321
153
codeparrot/github-code
e7e9e82e0cbd3038eb1a9507618d00e8457e2672efa95928284d16a82a5d6391
//===--- SILGenDecl.cpp - Implements Lowering of ASTs -> SIL for Decls ----===// // // 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++
lib/SILGen/SILGenDecl.cpp
tardieu/swift
apache-2.0
78,164
2,094
codeparrot/github-code
c0aa7db0a54a8a2b91966c0d091169ad2bf031b46cdf99f3401e6012f3781950
/* * Copyright 2015 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 applica...
Java
bigtable-client-core-parent/bigtable-hbase/src/test/java/com/google/cloud/bigtable/hbase/adapters/TestCellDeduplicationHelper.java
sduskis/cloud-bigtable-client
apache-2.0
2,548
63
codeparrot/github-code
5c58ff86b22ade27453237accd318fc188aa51bbd0bbe5a9b7df134c0c738a6a
/** * Copyright (c) 2013-2021 Nikita Koksharov * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
Java
redisson-micronaut/redisson-micronaut-30/src/main/java/org/redisson/micronaut/session/RedissonSessionStore.java
redisson/redisson
apache-2.0
10,557
272
codeparrot/github-code
d8f836141c9b782133dc467cdbca2932097808e7c5f3e7d66971e7b8b026e1a2
package de.codemakers.bot.supreme.commands.impl.moderation.util; import de.codemakers.bot.supreme.commands.Command; import de.codemakers.bot.supreme.commands.CommandCategory; import de.codemakers.bot.supreme.commands.arguments.ArgumentConsumeType; import de.codemakers.bot.supreme.commands.arguments.ArgumentList; impor...
Java
Supreme-Bot/src/de/codemakers/bot/supreme/commands/impl/moderation/util/GuildsCommand.java
Panzer1119/Supreme-Bot
apache-2.0
4,969
108
codeparrot/github-code
9c77f14f2b2e60ac540337eef09a6b3af2d2090ec10a5b9312434785ac28dafc
/* 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...
TypeScript
packages/backend-api/src/test/domain/topScores/calculateTopScores.spec.ts
conversationai/conversationai-moderator
apache-2.0
1,857
47
codeparrot/github-code
bae87461e562c7fdb5e5135e14c2ef9f17766204dd3ab875f995ab46b383405a
/** * Copyright 2011-2021 Asakusa Framework Team. * * 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
utils/common/src/main/java/com/asakusafw/lang/utils/common/InterruptibleIo.java
asakusafw/asakusafw-compiler
apache-2.0
5,649
186
codeparrot/github-code
25efd35db6c63fd4dc6b64a3d3b20f66a0c56f6ab4af66929aafe36404ba00ed
package bg.game.implem; import java.io.Serializable; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.ejb.EJB; import javax.ejb.Stateless; import bg.company.entities.Company; import bg.company.entities.Machine; import bg.company.entities.StockedProduct; ...
Java
src/main/java/bg/game/implem/SimulateYearBean.java
mathiascouste/BusinessGame
apache-2.0
7,013
229
codeparrot/github-code
d0b9bc292609a1bbbc488ac5a91056f97a8de8ec19220fbd204d8c1445df87d5
/** * */ package com.github.jcpp.jathenaeum.actions; import java.util.ArrayList; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import org.apache.struts.action.ActionErrors; import org.apache.struts.action.ActionForm;...
Java
src/com/github/jcpp/jathenaeum/actions/BookActionDo.java
JCPP/JAthenaeum
apache-2.0
11,951
433
codeparrot/github-code
bca59095fc94b09c026499c89dd3c7dcff3d6c9265c1c9947e7584a265604a90
define(function (require) { "use strict"; var net = require("net"); var soap = require("soap"); var models = require("models"); var event = require("utils/event"); var deviceService = require("deviceService"); function mediaController() { var that = ...
JavaScript
src/mediaController.js
oddbit/sonosjs
apache-2.0
9,169
232
codeparrot/github-code
f2d150042c1e85ee38f7f7ea72d4b7acaab0e8790e226e2de2c434b16771649f
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
Java
core/src/main/java/org/apache/carbondata/core/memory/HeapMemoryAllocator.java
ashokblend/incubator-carbondata
apache-2.0
2,993
85
codeparrot/github-code
c97f31261dd7afb83eb70e1f0dcde6837945e2a2700142f38257f4866c51164a
package com.commercehub.clouseau.graph; import com.commercehub.clouseau.api.LoadedSession; import com.commercehub.clouseau.api.Session; import com.commercehub.clouseau.graph.format.ObjectGraphFormatter; import com.commercehub.clouseau.targetapp.TargetAppService; import org.slf4j.Logger; import org.slf4j.LoggerFactory;...
Java
clouseau-app/src/main/java/com/commercehub/clouseau/graph/DefaultObjectGraphService.java
commercehub-oss/clouseau
apache-2.0
2,385
64
codeparrot/github-code
10b86856d5ef873a874226f525b9844a5272670ebeafd23f2b17b66102dc875f
// 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...
JavaScript
David_CastMediaPlayerStreamingDRM-master/mpl.js
devdev0100/devdev0100.github.io
apache-2.0
31,944
880
codeparrot/github-code
ab9ed0d69e39798ddc41cc059437bf46eeec4bc37fc8eb308f80e3ff474ddef6
package com.unity3d.scar.adapter.v1950.signals; import android.content.Context; import androidx.test.platform.app.InstrumentationRegistry; import com.unity3d.scar.adapter.common.signals.ISignalCollectionListener; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Moc...
Java
unity-scaradapter-1950/src/androidTest/java/com/unity3d/scar/adapter/v1950/signals/SignalsReaderTest.java
Unity-Technologies/unity-ads-android
apache-2.0
1,809
49
codeparrot/github-code