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
a3878dc83fce0e520b7daf6772ec200188370a763dacaa7896195d26a4234d2c
/* * Copyright 2013-2017 consulo.io * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
Java
csharp-impl/src/main/java/consulo/csharp/ide/actions/generate/memberChoose/CSharpVariableChooseObject.java
consulo/consulo-csharp
apache-2.0
2,404
77
codeparrot/github-code
eb30c63e42371a968b26d265fdd3ac64b9eb1a094c0b687e99d241876571c58c
// 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 applicable...
GO
live_tracker.go
danw/blueprint
apache-2.0
4,278
214
codeparrot/github-code
96f2cf6528443579adfa84f699f5738f352ee67d96bf347facd6c7be5ab2ffb6
/* * Copyright 2016-2022 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
joinfaces-autoconfigure/src/test/java/org/joinfaces/autoconfigure/primefaces/PrimefacesFileUploadServletContextInitializerTest.java
joinfaces/joinfaces
apache-2.0
2,484
68
codeparrot/github-code
cddfd4a5b75fa55aacc10e1f458d8c649fb76dc081d95497a5e619f11e97c1c3
/* Copyright 2017-2019 Google Inc. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed t...
C++
lullaby/modules/render/image_decode_astc.cc
google/lullaby
apache-2.0
4,565
118
codeparrot/github-code
bacbd335e1eee72d4f030cde89766c55883cc33d051b543700ab73bafcfb359d
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Shared.Core.Context; using Shared.Dtos.Paintings; using PagedList; using Shared.Core.Dtos; using Server.Model; using Shared.Dtos.Resources; using Shared.Core.Context.Expressions; using Shared.Core....
C#
Server/Daos/PaintingDao.cs
MurielSoftware/MyArt
apache-2.0
3,385
84
codeparrot/github-code
5b11ed40322ef5dd7f30a8a9f68142cfe132f47d20c688be155e986331a6b982
import { updateError, resource } from '../../actions' var id=1; export function getArticle() { return (dispatch) => { return resource('GET', 'articles').then((r) => { dispatch({ type: 'GET_ARTICLE', articles: r.articles }); }) } } export function addArticle(text1, image) { // ...
JavaScript
hw7-frontend/src/components/article/articleActions.js
lanyangyang025/COMP531
apache-2.0
2,481
87
codeparrot/github-code
ab5dc932a83a31de78dfda82920c81a2c0af0fd10733b6a8d78743068b7bfecd
/* * 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
fop-core/src/main/java/org/apache/fop/render/afp/AFPFontConfig.java
argv-minus-one/fop
apache-2.0
23,611
533
codeparrot/github-code
a266c58f3eb5aa16e8349740f8c91f1d2e0a350ad748c7a30defb08b0d7540ee
from django.contrib.auth.decorators import user_passes_test, login_required from profiles.models import Musician, NonMusician from django.core.exceptions import ObjectDoesNotExist from django.shortcuts import redirect # import login_required user_passes_test # these functions are made to be passed into user_passes_tes...
Python
cleff/custom_wrappers.py
lancekrogers/music-network
apache-2.0
1,287
48
codeparrot/github-code
22b3cd70819ac5aa096156d1e1c16b658d52f2a5134554e7f24228860fc05214
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Train an Auxiliary Classifier Generative Adversarial Network (ACGAN) on the MNIST dataset. See https://arxiv.org/abs/1610.09585 for more details. You should start to see reasonable images after ~5 epochs, and good images by ~15 epochs. You should use a GPU, as the conv...
Python
example/keras/mnist_acgan.py
kitstar/DNNConvert
apache-2.0
11,426
321
codeparrot/github-code
e6f6f46f3afe839695ddafdb1388602c1b4a4835b4ab0141c48e1c38c816e464
/* * 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/TestCreateExternalTable.scala
sgururajshetty/carbondata
apache-2.0
5,238
149
codeparrot/github-code
299f9ec9b65cce9618945f1781c400d7d526926358fcc1d150df5006dc5cb792
#!/bin/bash echo "This script is deprecated by a new java tool, which is much faster. Run hadoop FileTester.jar analyzesnap \$DFPATH." #DFPATH=/benchmarks/TestDFSIO/io_data DFPATH=/pmudata #GARBAGE_PREFIX=test_io_ GARBAGE_PREFIX=pmu # Control: the default data pattern is like # 1441256756825 PPPPPP... #DATA_PATTERN="...
Shell
experiments/precision/ana/collect.sh
songweijia/hdfsrs
apache-2.0
1,769
61
codeparrot/github-code
74329007f9133529694b049e01a5fe9905cc90ee0b15195994ce2226f7df2601
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System; using System.Collections.Generic; using System.Net.Http; using System.Net.Http.Headers; using System.Security.Claims; using System.Security.Cryptography; using System.T...
C#
src/Security/Authentication/MicrosoftAccount/src/MicrosoftAccountHandler.cs
aspnet/AspNetCore
apache-2.0
5,719
130
codeparrot/github-code
9791d7ae3ec7582ce878c911f42552024c02bbb81c960b86ddaf9fd6b6958561
/** * Copyright 2016 EDIA (r) Licensed under the * Educational Community 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.osedu.org/licenses/ECL-2.0 * Unless required by applicable law or agreed to i...
Java
src/test/java/org/apereo/openlrs/storage/mongo/FongoConfiguration.java
EdiaEducationTechnology/OpenLRS
apache-2.0
1,197
40
codeparrot/github-code
4a7c8a26c53dde2f8988b674d0076dbc03da447fcbb52e104cf4134027445d9d
/* * Copyright 2002-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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
Java
oauth2/oauth2-client/src/test/java/org/springframework/security/oauth2/client/web/OAuth2AuthorizationRequestRedirectFilterTests.java
kazuki43zoo/spring-security
apache-2.0
19,592
401
codeparrot/github-code
0ec785c1cd466f1a84996f53834aa0d90192fdb8f978bf2052d03aeb28b40004
{% extends "account/base.html" %} {% load breadcrumbs feature_tag %} {% load i18n %} {% load uni_form_tags %} {% load account_tags %} {% block breadcrumbs %} {{ block.super }} {% breadcrumb_url 'Sign In' account_login %} {% endblock %} {% block head_title %}{% trans "Sign In" %}{% endblock %} {% block body_...
HTML
sw/templates/account/login.html
snswa/swsites
apache-2.0
1,453
45
codeparrot/github-code
3fad795aa366f7d01f1a89e57fa9537918fdf8f3446bd60141c4e519d08f48b8
package org.crazyit.net; import android.app.Activity; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; /** * Description: *...
Java
W_eclipse1_2/MultiThreadClient/src/org/crazyit/net/MultiThreadClient.java
00wendi00/MyProject
apache-2.0
1,968
80
codeparrot/github-code
9f046296c53aea27b4104201552e05bbc86fe452481863a4d535f7400d5ca536
/** * 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"); yo...
Java
StatelessLoginForm/src/test/java/org/wicketTutorial/statelesslogin/TestHomePage.java
bitstorm/Wicket-tutorial-examples
apache-2.0
2,061
67
codeparrot/github-code
b69672f6111522d386d06c5206ec8873e3818f8feb8726e4ec5de8b321339ed6
# -*- coding: utf-8 -*- # auxilium # -------- # Python project for an automated test and deploy toolkit. # # Author: sonntagsgesicht # Version: 0.1.8, copyright Saturday, 02 October 2021 # Website: https://github.com/sonntagsgesicht/auxilium # License: Apache License 2.0 (see LICENSE file) from datetime import ...
Python
.aux/venv/lib/python3.9/site-packages/auxilium/tools/setup_tools.py
sonntagsgesicht/regtest
apache-2.0
3,576
114
codeparrot/github-code
f215d7101cc011705d095980804cbe4fdc014fc9e790f54547b2c41e29fd0314
use std::net::{TcpListener}; use std::io::{BufReader, BufWriter, BufRead, Write}; use std::thread; fn main() { let listener = match TcpListener::bind("127.0.0.1:8888") { Ok(v) => { println!("127.0.0.1:8888 binded."); v }, Err(e) => { panic!("bind failed : {:?}", e) } }; let mut threads = v...
Rust
Rust_TcpEcho/echo/src/main.rs
c86j224s/snippet
apache-2.0
1,879
62
codeparrot/github-code
8cd3560009136a54bd7a807ce16b6a657931b0b327115639af0fc141fe409a81
package com.vote.activity; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.app.Activity; import android.content.SharedPreferences; import android.text.TextUtils; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.EditTe...
Java
vote_version2/src/com/vote/activity/CreateGroupActivity.java
guozhongxin/VoteYourVoice
apache-2.0
3,093
124
codeparrot/github-code
c2342ed89c0b80de7f38b5100d91f8b27ca59a1673e0b81c99f3df29facf2a21
/* * Copyright 2019 ACINQ SAS * * 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...
Scala
eclair-core/src/test/scala/fr/acinq/eclair/wire/protocol/LightningMessageCodecsSpec.scala
ACINQ/eclair
apache-2.0
46,178
490
codeparrot/github-code
6c908fff67f653fc415cde7c75135af4797dce842afd25e26dbe4682d9d11ab6
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
C++
tensorflow/core/grappler/optimizers/arithmetic_optimizer.cc
dyoung418/tensorflow
apache-2.0
37,378
1,011
codeparrot/github-code
cac61cec5ddd693bf5849d1d63b7135aee7ac325e968002c4f9dd4b2879ddc4d
package com.cloud.network.dao; import com.cloud.api.InternalIdentity; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name = ("load_balancer_...
Java
cosmic-core/engine/schema/src/main/java/com/cloud/network/dao/LoadBalancerVMMapVO.java
remibergsma/cosmic
apache-2.0
2,221
93
codeparrot/github-code
3c409728f3fc33947e08e738b27833868169dcecd2451f7f66be0866bc0dce6d
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
Python
schema_guided_dst/baseline/pred_utils.py
google-research/google-research
apache-2.0
6,649
155
codeparrot/github-code
30c76ca332310ab5d91da1ad4cb7693afbb83b98f08164d3d22c3de01324cefe
/* * Copyright 2013 Barzan Mozafari * * 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
dbseer_front_end/src/dbseer/comp/data/TransactionMap.java
barzan/dbseer
apache-2.0
2,391
116
codeparrot/github-code
ef864c090468a0f73723e75cde0f6718847451ae5439b7062d3ebdb781a3bd6a
package Paws::Config::DescribeConfigRules; use Moose; has ConfigRuleNames => (is => 'ro', isa => 'ArrayRef[Str|Undef]'); has NextToken => (is => 'ro', isa => 'Str'); use MooseX::ClassAttribute; class_has _api_call => (isa => 'Str', is => 'ro', default => 'DescribeConfigRules'); class_has _returns => (isa...
Perl
auto-lib/Paws/Config/DescribeConfigRules.pm
ioanrogers/aws-sdk-perl
apache-2.0
1,953
64
codeparrot/github-code
1551b368ce9d37f166756f88576dd0b15ed48a14b9773ee0ae53582206972e70
package io.dshell.runtime; import io.dshell.runtime.api.Context; import org.junit.Test; import org.mockito.Mockito; import java.net.MalformedURLException; import java.net.URL; import java.net.URLClassLoader; import java.nio.file.Paths; import static org.junit.Assert.assertEquals; public class RuntimeTest { @Te...
Java
runtime/src/test/java/io/dshell/runtime/RuntimeTest.java
dshell-io/dshell
apache-2.0
1,675
46
codeparrot/github-code
7ef0679553c40bbb2c6caf439f7269af102ee813c65c139a451251f70805d4e2
package leetcode.unique_binary_search_trees_ii; import java.util.ArrayList; import common.TreeNode; public class Solution { public ArrayList<TreeNode> generateTrees(int n) { return generateTrees(1, n); } public ArrayList<TreeNode> generateTrees(int from, int to){ if(from > to){ ArrayList<TreeNode> ret = ...
Java
java/leetcode/unique_binary_search_trees_ii/Solution.java
ckclark/leetcode
apache-2.0
1,437
65
codeparrot/github-code
236d459596177ff2ca8571a1aa4124c9237437a37c0038f6175ba9a52cffa83e
package com.common.util; import com.common.util.RedisUtil; import org.junit.AfterClass; import org.junit.Assert; import org.junit.BeforeClass; import org.junit.Test; public class RedisUtilTest { @BeforeClass public static void beforeClass() { RedisUtil.open(); } @AfterClass public static ...
Java
common/src/test/java/com/common/util/RedisUtilTest.java
rickding/WallE
apache-2.0
821
37
codeparrot/github-code
2b7d1947772e1d8c14bc0026d4b113e507b6c747f986cd6d8e3fe766f31776a4
/* * Copyright 2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
Java
base/core/src/main/java/leap/core/params/DefaultParamsFactory.java
leapframework/framework
apache-2.0
2,403
98
codeparrot/github-code
4d3a380a5eddb3a2eaf62c945cf7730d44deb5ad15d5c1b2230b1dd061037133
// Package suggest contains routines to implement a suggest engine package suggest import ( "github.com/google/btree" "sync" ) // Suggester is the interface for all suggest engines type Suggester interface { // Suggest returns the strings in this instance that start with q. // If max > 0, then Suggest returns at ...
GO
suggest/api.go
Symantec/scotty
apache-2.0
1,636
61
codeparrot/github-code
61a65f1d2b15669bec12dd2242de77f53e26ca18581a57c941a5e579ccc1eae8
/* * 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
flink-runtime/src/test/java/org/apache/flink/runtime/jobmanager/JobManagerProcessUtilsTest.java
jinglining/flink
apache-2.0
12,614
297
codeparrot/github-code
e34571a106b1cb4499e63d8da0f851706ac2aa15b330d36378bc1c8beffc0a88
#!/bin/bash -eu # Copyright 2016 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 agree...
Shell
projects/wget2/build.sh
ssbr/oss-fuzz
apache-2.0
3,215
96
codeparrot/github-code
36c2b5fdfe90c45413426a329217501baf6ec73a9657f0c2eadd2fa3e8ee4f42
import ProjectImageConstants from "constants/ProjectImageConstants"; import ProjectImage from "models/ProjectImage"; import Utils from "./Utils"; import stores from "stores"; export default { // ------------------------- // Add/Remove Project Image // ------------------------- addImageToProject: fun...
JavaScript
troposphere/static/js/actions/ProjectImageActions.js
CCI-MOC/GUI-Frontend
apache-2.0
1,876
60
codeparrot/github-code
0096c025d6f8e6e7add80e898a36b8922a0996930f9a73ab241fab3e02736136
# Copyright 2012 OpenStack Foundation # All Rights Reserved # Copyright (c) 2012 NEC Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/lic...
Python
nova/network/neutronv2/api.py
raildo/nova
apache-2.0
88,749
1,879
codeparrot/github-code
86b75079f64ffef4c538bfe6a06eb0cf9aa029bcd68e807d83b081f86cb2bb07
#region License // // Copyright (c) 2011-2012, João Matos Silva <kappy@acydburne.com.pt> // // 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#
DateTimeExtensions/WorkingDays/DayInYear.cs
cuongtranba/DateTimeExtensions
apache-2.0
2,212
69
codeparrot/github-code
89f783ab26313a8e52412a0c43698a127a5a117ed1a46cc9bf7854eddfee787b
/* * @(#)TdSmOrganizationDao.java * * Copyright @ 2001-2012 SANY Group Co.,Ltd. * All right reserved. * * 这个软件是属于三一集团有限公司机密的和私有信息,不得泄露。 * 并且只能由三一集团有限公司内部员工在得到许可的情况下才允许使用。 * This software is the confidential and proprietary information * of SANY Group Co, Ltd. You shall not disclose such * Confidential Infor...
Java
BPS/src/com/sany/masterdata/hr/dao/TdSmOrganizationDao.java
tzou24/BPS
apache-2.0
2,850
102
codeparrot/github-code
f7ba479e0774be7ceab3e6fca633ee2ffadb4907ae36d0b51a978b00f8ec1705
using Microsoft.Azure.Mobile.Server; using Microsoft.Azure.Mobile.Server.Tables; using Microsoft.Xrm.Client.Services; using Microsoft.Xrm.Sdk; using Microsoft.Xrm.Sdk.Query; using System; using System.Collections.Generic; using System.Threading.Tasks; using System.Web.Http.OData.Query; namespace Microsoft.Azure.Mobil...
C#
MobileAppsCrm-preview/server/MobileCrmDomainManager-preview/Azure.Mobile.Server.DynamicsCrm/DynamicsCrmTableController.cs
Azure/mobile-services-dynamics-connector
apache-2.0
3,043
61
codeparrot/github-code
f3bc690797023891201ef2787230f1d889bfd7cf4d82107857ecdd0370b70011
<? session_start(); if($_SESSION['role']=='') { header('Location: http://wjrnl.esy.es/'); } if($_SESSION['role']=='2') { header('Location: http://wjrnl.esy.es/parent'); } if($_SESSION['role']=='3') { header('Location: http://wjrnl.esy.es/teacher'); } $login = $_POST['login']; $password = md5($_POST['pass'...
PHP
forums/settings/index.php
funtrum/school-webjournal
apache-2.0
11,025
248
codeparrot/github-code
8cc1601af839d530166007cf17c94ce274e85ea71b18842243b9fc94dc6c6b32
package com.github.mkopylec.recaptcha.security.login; import com.github.mkopylec.recaptcha.security.RecaptchaAuthenticationFilter; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.configurers.FormLoginConfigurer; import org.sprin...
Java
src/main/java/com/github/mkopylec/recaptcha/security/login/FormLoginConfigurerEnhancer.java
mkopylec/recaptcha-spring-boot-starter
apache-2.0
1,957
38
codeparrot/github-code
c1b5a7cb9b4c6df5280064bd590d1b453c35706eed8c407d3b9f39b22d3ca504
package chandu0101.scalajs.react.components package semanticui import chandu0101.macros.tojs.JSMacro import japgolly.scalajs.react._ import japgolly.scalajs.react.vdom.{VdomElement, VdomNode} import scala.scalajs.js import scala.scalajs.js.`|` /** * This file is generated - submit issues instead of PR against it ...
Scala
core/src/main/scala/chandu0101/scalajs/react/components/semanticui/SuiLabel.scala
rleibman/scalajs-react-components
apache-2.0
1,873
44
codeparrot/github-code
fc23719bb761e67c51191b42efe4032de11607476af49f13a2ef22c71c079cc4
package org.jetbrains.plugins.scala package lang.psi.light.scala import com.intellij.psi.impl.light.LightElement import org.jetbrains.plugins.scala.lang.psi.types.ScType import org.jetbrains.plugins.scala.lang.psi.api.statements.ScFunctionDeclaration import org.jetbrains.plugins.scala.lang.psi.api.statements.params._ ...
Scala
src/org/jetbrains/plugins/scala/lang/psi/light/scala/ScLightFunctionDeclaration.scala
consulo/consulo-scala
apache-2.0
3,436
83
codeparrot/github-code
b8808decd1e3d7dcf0481de805675e92ef726f77f2b79c6ab5b2a78163ccdc48
/* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2011 ZAP development team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Licens...
Java
src/org/zaproxy/zap/extension/ext/OptionsExtensionPanel.java
Harinus/zaproxy
apache-2.0
10,230
289
codeparrot/github-code
106dd59eb724ad39a6a83f7bdf79d9733e2a1e27ecf1bf597eb02ac01e36c4d4
package clusterpolicy import ( kapi "k8s.io/kubernetes/pkg/api" "k8s.io/kubernetes/pkg/api/rest" "k8s.io/kubernetes/pkg/watch" authorizationapi "github.com/openshift/origin/pkg/authorization/api" "github.com/openshift/origin/pkg/authorization/registry/policy" ) // Registry is an interface for things that know h...
GO
pkg/authorization/registry/clusterpolicy/registry.go
fabianofranz/origin
apache-2.0
4,017
118
codeparrot/github-code
f8833faa6580a80a8d367d8e90902347927d62e5ddd673402e04622a862acc24
package com.plutonium.playtopay; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.util.Log; import com.plutonium.playtopay.fragments.SelectPlayersFragment; import com.plutonium.playtopay.models.Game; import com.plutonium.playtopay.models.Player; import com.plutonium.playtopay....
Java
app/src/main/java/com/plutonium/playtopay/MainActivity.java
inderdhir/PlayToPay-Android
apache-2.0
5,587
175
codeparrot/github-code
f6027f50507fcd446376bf5e2d809383e9222b97e30b90dacca8ba3cd4ed5310
/* * FIME (Fast Infoset ME) software ("Software") * * Copyright, 2005 Sun Microsystems, Inc. All Rights Reserved. * * Software is 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: * * ...
Java
FIME/src/com/sun/xml/fime/stax/StAXDocumentSerializer.java
aadamowski/fi.java.net
apache-2.0
21,281
625
codeparrot/github-code
0543307c9ef3e71a44dad0d690fe2b810e097c105eaf8fc214961490f9477236
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package bc; import be.ClientePotencial; import javax.ejb.Stateless; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; /** * * @author root */ @Stateless public class ClientePotenci...
Java
integrado-ejb/src/java/bc/ClientePotencialFacade.java
danielyzc/integrado
apache-2.0
675
31
codeparrot/github-code
3fde2b209e0b9e3b86d26b5fa56bfe8ccd3fb4a7a5ff12125e36240aadfee7b5
/** * Copyright © 2013 Antonin Stefanutti (antonin.stefanutti@gmail.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless...
Java
envs/se/src/main/java/io/astefanutti/metrics/aspectj/se/MeteredStaticMethodWithExceptions.java
astefanutti/metrics-aspectj
apache-2.0
1,313
34
codeparrot/github-code
1faddca9e4091d3db400e6cb9646e5e177acc60d5d4a9a05b02c7b065fbb496f
/* * Java Genetic Algorithm Library (@__identifier__@). * Copyright (c) @__year__@ Franz Wilhelmstötter * * 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
jenetics.incubator/src/main/java/io/jenetics/incubator/parser/TokenRing.java
jenetics/jenetics
apache-2.0
1,626
61
codeparrot/github-code
f7bf57c4f32b47209a38b6e82c0506f0a514c28d31772e084ab7fe4908799f9d
// 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
api/src/org/apache/cloudstack/api/command/admin/host/PrepareForMaintenanceCmd.java
mufaddalq/cloudstack-datera-driver
apache-2.0
3,861
111
codeparrot/github-code
08eefc50783939d061de6f1f36232bc0f490d25e3acd748e87c0eb614e54c997
package mesosphere.marathon package raml import java.time.OffsetDateTime import mesosphere.marathon.core.condition.Condition import mesosphere.marathon.core.health.{ MesosCommandHealthCheck, MesosHttpHealthCheck, MesosTcpHealthCheck, PortReference } import mesosphere.marathon.core.instance.Instance import mesosphere....
Scala
src/main/scala/mesosphere/marathon/raml/PodStatusConversion.scala
natemurthy/marathon
apache-2.0
11,178
260
codeparrot/github-code
d5b8905528f6ae70bf91f75b264482110a6a1eebbaa0da88b89d6bc7a62c39f6
// // NBCWorkflowItem.h // NBICreator // // Created by Erik Berglund. // Copyright (c) 2015 NBICreator. 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 // // ...
C
NBICreator/Workflow/NBCWorkflowItem.h
NBICreator/NBICreator
apache-2.0
3,455
102
codeparrot/github-code
a78091ffd3239f94e3b84e302f470747761489b64f7249b8d83b935959697ac5
/* * Copyright 2018 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
app/src/main/java/com/google/cannonball/view/ThemeAdapter.java
googlearchive/cannonball-android
apache-2.0
4,556
127
codeparrot/github-code
6039bc2fb667e2c6c996dbb608c1bb52ca1ac675369dff7349102528112ed963
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright 2013, 2014 Intel Corporation. # Copyright 2013, 2014 Isaku Yamahata <isaku.yamahata at intel com> # <isaku.yamahata at gmail com> # All Rights Reserved. # # # Licensed under the Apache License, Version 2.0 (the "License"); ...
Python
tacker/vm/drivers/nova/nova.py
yamahata/tacker
apache-2.0
9,504
246
codeparrot/github-code
e051e31c07276e9d8f2b5e20cba89fd9338f1d6be8350c315777031fcbc679d2
/* * Copyright 2017 Sumo Logic * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
Java
java/schema-parser-common/src/main/java.generated/ws/epigraph/schema/parser/psi/SchemaDeleteProjection.java
SumoLogic/epigraph
apache-2.0
999
36
codeparrot/github-code
1b31713e2ed58fe2231c858ef2f1adbfbbb8ca58d6bd8a45c15b2c5d0bfd19b8
from citrination_client.models.columns.base import BaseColumn from citrination_client.base.errors import CitrinationClientError from six import string_types class CategoricalColumn(BaseColumn): """ A categorical column configuration for a data view. Parameterized with the basic column options and a list o...
Python
citrination_client/models/columns/categorical.py
CitrineInformatics/python-citrination-client
apache-2.0
2,304
66
codeparrot/github-code
94c92d55dbc64c1f39f1ddaff2cf4c17e21b47ed8ad5b6bf1c0cf84fca12bcb9
package org.apache.mesos.elasticsearch.systemtest.base; import com.containersol.minimesos.docker.DockerClientFactory; import com.github.dockerjava.api.DockerClient; import com.github.dockerjava.core.DockerClientBuilder; import org.apache.log4j.Logger; import org.apache.mesos.elasticsearch.systemtest.ESTasks; import or...
Java
system-test/src/systemTest/java/org/apache/mesos/elasticsearch/systemtest/base/SchedulerTestBase.java
mesos/elasticsearch
apache-2.0
1,933
44
codeparrot/github-code
57d9b0c6e8d693e5e09d32dc2003611ff9e75fdac8a349b913bbaa8919002575
/** * */ package gov.va.med.imaging.storage.cache.memento; import java.io.Serializable; import java.util.ArrayList; import java.util.List; /** * @author VHAISWBECKEC * */ public abstract class CacheMemento implements Serializable { private static final long serialVersionUID = -75707646507196869L; private Stri...
Java
Source/Java/CacheAPI/main/src/java/gov/va/med/imaging/storage/cache/memento/CacheMemento.java
VHAINNOVATIONS/Telepathology
apache-2.0
2,210
99
codeparrot/github-code
4af145df83f26ee52b5d1721c7e77e95c75a0971193d178a8b6e230d4502cf1e
package org.jctools.queues; import java.util.ArrayList; import java.util.Collection; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import org.jctools.queues.spec.ConcurrentQueueSpec; import org.jctools.queues.spec.Ordering; import org.jctools.util.Pow2; import static org.jctools.util.Port...
Java
jctools-core/src/test/java/org/jctools/queues/MpqSanityTestMpscCompound.java
JCTools/JCTools
apache-2.0
926
32
codeparrot/github-code
7b196567fab76cb044dd7de543057e42655f064165de0005919663965d4f9bda
/* * Copyright (C) 2014 Ruikye's open source project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
Java
src/com/awaysoft/nightlymode/utils/Utils.java
rakkang/NightMode
apache-2.0
4,158
123
codeparrot/github-code
c305ae7470157212e64a8d3efd9c958fba8c085581e68db918cda4ed4c1c073f
package org.apache.rave.portal.repository.impl; import org.apache.rave.model.DietPlan; import org.apache.rave.portal.model.conversion.JpaDietPlanConverter; import org.apache.rave.portal.repository.DietPlanRepository; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.anno...
Java
rave-components/rave-jpa/src/main/java/org/apache/rave/portal/repository/impl/JpaDietPlanRepository.java
lletsica/my_test_repo
apache-2.0
1,404
64
codeparrot/github-code
ab239bae92b21b642def53e07b2224260490a2a2badf1b4e9edb9693aa04702d
/* * Copyright 2015 Kejun Xia * * 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
library/android-mvc-test/src/main/java/com/shipdream/lib/android/mvc/view/injection/controller/internal/ControllerBImpl.java
tananrules/AndroidMvc
apache-2.0
1,411
48
codeparrot/github-code
296a8ff9c27aa07330cddd08f6c6adc97ca92e5f9161dceef1f1901b97149adc
function Controller() { function spawnDetails() { common.openWindow("loot/details", { model: $model }); } require("alloy/controllers/BaseController").apply(this, Array.prototype.slice.call(arguments)); arguments[0] ? arguments[0]["__parentSymbol"] : null; var $model = arg...
JavaScript
Resources/alloy/controllers/loot/thumb.js
ryanhobsonsmith/lootapp
apache-2.0
1,747
47
codeparrot/github-code
94df5391430c379bc3d02afcccc09f3af1c6d432cf7a24b20bf7b572f86f033a
# -*- coding: utf-8 -*- # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
Python
google/ads/googleads/v10/enums/types/payment_mode.py
googleads/google-ads-python
apache-2.0
1,172
41
codeparrot/github-code
8ca15e65460652bf8110062281540c0dec5d8b863541c9ef4c950b004438ed72
<?php /******************************************** * Easy PHP * * * * A lightweight PHP framework for studying * * * * TIERGB * * <https://github.com/TIGERB> ...
PHP
framework/handles/ExceptionHandle.php
TIGERB/easy-php
apache-2.0
2,020
98
codeparrot/github-code
04a1353f5ec1d6ef83ab1648d902606c323ad8d5633dcfe8567365a649da8fd1
# # Makefile for any test class # NAME=trace # TODO: Everything below this should be made into a template that can # be included. FILES=\ cli-to-spec \ enumerate \ participants \ result-format \ spec-format \ spec-is-valid \ spec-to-cli \ limit-is-valid \ limit-passes \ MODULES=\ validate \ PYS=$(MODUL...
Makefile
pscheduler-test-trace/trace/Makefile
perfsonar/pscheduler
apache-2.0
751
51
codeparrot/github-code
dab90a2366f2837e7c41c2897bea1ee87c5e06b3923b1780cf730da0ebf87e12
package org.ebayopensource.turmeric.tools.codegen; import static org.junit.Assert.assertTrue; import java.io.File; import java.io.FileInputStream; import java.util.Properties; import junit.framework.Assert; import org.junit.Before; import org.junit.Test; public class ToolsUpdateNsGenMetadataPropsTest e...
Java
codegen/codegen-tools/src/test/java/org/ebayopensource/turmeric/tools/codegen/ToolsUpdateNsGenMetadataPropsTest.java
vthangathurai/SOA-Runtime
apache-2.0
3,353
133
codeparrot/github-code
68a4e8e2296beac22a6e961d0d9cab71bcf6291e0939dc2d275b43847538b532
/* * Copyright 2015 xinjunli (micromagic@sina.com). * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required b...
Java
main/src/java/main/self/micromagic/util/ref/LongRef.java
micromagic/eterna
apache-2.0
2,394
127
codeparrot/github-code
a8e89b6bcce3b129a41774bb9954d770ffb0ab4e50de36d934f8ec1ee4ff0dc5
/* * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
Java
aws-java-sdk-alexaforbusiness/src/main/java/com/amazonaws/services/alexaforbusiness/model/SearchContactsResult.java
aws/aws-sdk-java
apache-2.0
8,209
263
codeparrot/github-code
416b9ce484d6b2f30e71d26571af41ef3ae76d4c1218000ebc169a0f4d3fd90c
/* * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
Java
aws-java-sdk-macie2/src/main/java/com/amazonaws/services/macie2/model/transform/MatchingBucketMarshaller.java
aws/aws-sdk-java
apache-2.0
6,077
92
codeparrot/github-code
de356fce355ed959e96dfb7428304c7da5ae30abefb449bb853909e59a42a2e6
"""HTTP Client for asyncio.""" import asyncio import base64 import hashlib import os import sys import traceback import warnings from multidict import CIMultiDict, MultiDict, MultiDictProxy, istr from yarl import URL import aiohttp from . import hdrs, helpers from ._ws_impl import WS_KEY, WebSocketParser, WebSocket...
Python
aiohttp/client.py
esaezgil/aiohttp
apache-2.0
26,142
790
codeparrot/github-code
78dd8b37bab47962ef819d5460fb3d4e493bbd70eb6951aaa9a01b409416802b
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package gov.faa.ang.swac.common.flightmodeling; import java.io.BufferedReader; import java.io.IOException; import java.io.PrintWriter; import java.io.StringReader; import java.io.StringWriter; import java.util.ArrayList...
Java
swac-common/src/test/java/gov/faa/ang/swac/common/flightmodeling/ScheduleRecordTest.java
csmith932/uas-schedule-generator
apache-2.0
4,557
84
codeparrot/github-code
a4c1c5fce01dfb21b0e2a248982abea55a15b1573f51fdef7bdbe78c6955a202
# Daniel Fernandez Rodriguez <danielfr@cern.ch> from argparse import ArgumentParser from collections import defaultdict from requests_kerberos import HTTPKerberosAuth import json import requests import subprocess import logging import sys class PuppetDBNodes(object): def __init__(self, args): for k, v ...
Python
rundeck-puppetdb-nodes-plugin/contents/rundeck_puppetdb_nodes.py
ak0ska/rundeck-puppetdb-nodes
apache-2.0
5,881
152
codeparrot/github-code
dd6489837d0a8d14f6a8f1cb65461bd43925b557dd19e3d5ef9675fa6d95a86d
'use strict'; var gulp = require('gulp'); var eslint = require('gulp-eslint'); var mocha = require('gulp-mocha'); var istanbul = require('gulp-istanbul'); var coveralls = require('gulp-coveralls'); var runSequence = require('run-sequence'); var rimraf = require('rimraf'); var _ = require('lodash'); var paths = { ...
JavaScript
gulpfile.js
axeal/solusvm
apache-2.0
1,878
76
codeparrot/github-code
2c356dd7ce1d43223cbf97b0a8a967d5df131ce71358e3511ec09a905d32a71c
/** * Copyright 2017-2019 The GreyCat Authors. All rights reserved. * <p> * 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 * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Un...
Java
greycat/src/test/java/greycatTest/internal/chunk/AbstractStringIntMapTest.java
datathings/greycat
apache-2.0
3,330
99
codeparrot/github-code
74f15cddf28a14051398d3f311303b486fe0c5a48f736c371e07a244e98a3c27
package com.ansteel.dhtmlx.widget.formoption; import java.util.ArrayList; import java.util.List; import com.ansteel.core.utils.StringUtils; import com.ansteel.dhtmlx.widget.form.Options; /** * 创 建 人:gugu * 创建日期:2015-06-18 * 修 改 人: * 修改日 期: * 描 述:字符串下拉解析。 */ public class StringOption implements IFormOption {...
Java
2017workspace/go-public/go-core/src/main/java/com/ansteel/dhtmlx/widget/formoption/StringOption.java
LittleLazyCat/TXEYXXK
apache-2.0
879
41
codeparrot/github-code
90dc6583a29cf5661553c7392b470948ce1029892e1238acbda818e4b3e167de
import java.util import java.util.concurrent.LinkedBlockingQueue import scala.language.postfixOps import scala.io.StdIn import scala.util._ import scala.util.control.NonFatal import scala.concurrent._ import scala.concurrent.duration._ import ExecutionContext.Implicits.global import scala.async.Async.{async, await} /...
Scala
nodescala/src/main/scala/nodescala/package.scala
umeshvk/prp
apache-2.0
8,618
323
codeparrot/github-code
f0f18a80800f10c89bebba3c28d0e9e01c72a86abfb94321592317bee2eda81b
/** * Copyright (c) 2013-2019 Contributors to the Eclipse Foundation * * <p> See the NOTICE file distributed with this work for additional information regarding copyright * ownership. All rights reserved. This program and the accompanying materials are made available * under the terms of the Apache License, Versio...
Java
services/rest/src/main/java/org/locationtech/geowave/service/rest/FileUploadResource.java
spohnan/geowave
apache-2.0
5,748
133
codeparrot/github-code
b550a3bf80314554c5a1d1b6176f00a740c7c9e7fa8bee0ffca387ac01880ff2
package ee.cone.c4actor import com.typesafe.scalalogging.LazyLogging import ee.cone.c4actor.HashSearchTestProtocol.{D_SomeModel, D_SomeRequest} import ee.cone.c4actor.Types.SrcId import ee.cone.c4assemble.Types.{Each, Values} import ee.cone.c4assemble._ import ee.cone.c4proto.{Id, Protocol, protocol} case class StrE...
Scala
c4actor-base-examples/src/main/scala/ee/cone/c4actor/HashSearchTest.scala
wregs/c4proto
apache-2.0
5,986
191
codeparrot/github-code
478317733c819509d9e4e3109c52783b03a3079984997fd79b08f247dd510f36
/* * Copyright 2012-2014 Kieron Wilkinson. * * 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 o...
Scala
domain/src/main/scala/viper/domain/Severity.scala
vyadh/viper
apache-2.0
1,491
41
codeparrot/github-code
609caa37968412d4be3362755666c97ea7f6851ab658f606cd456387b9367813
-- retrieve a download a CSV file as a clob directly from the web and return it as a table with a single statement: select * from table(csv_util_pkg.clob_to_csv(httpuritype('http://www.foo.example/bar.csv').getclob())) -- do a direct insert via INSERT .. SELECT insert into my_table (first_column, second_column) sele...
SQL
database/oracle/plsql-utils-v170/demos/csv_util_pkg_demo.sql
zzsoszz/MyPaper
apache-2.0
2,740
105
codeparrot/github-code
179d720d4d5ae68ed6953f391ea9ca61c2ca3a205322e2bb69ff10308bddbd7a
package test; import android.test.AndroidTestCase; import android.test.RenamingDelegatingContext; import com.android.yet_another_recipe_app.objects.Ingredient; import com.android.yet_another_recipe_app.objects.Measurement; import com.android.yet_another_recipe_app.objects.Recipe; import com.android.yet_another_recipe...
Java
Yet-Another-Recipe-App/src/main/java/test/RecipeDatabaseHelperTest.java
winter991/Yet-Another-Recipe-App
apache-2.0
5,122
155
codeparrot/github-code
11ede915069216877ecb7df2392c908e51d43b35f227987ab2fe0229a738c119
/* * Copyright (c) Facebook, Inc. and 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 applic...
Java
src/com/facebook/buck/cli/AbstractInstallResult.java
zpao/buck
apache-2.0
955
32
codeparrot/github-code
e0bb7feb38d037e2c5dea7b316b0f25358418b6b2f5461fb8d5812737facc0b9
/* * 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/base/src/test/java/com/twosigma/beaker/chart/xychart/plotitem/PointsTest.java
ScottPJones/beaker-notebook
apache-2.0
1,855
63
codeparrot/github-code
aa043ae3da9711ddc4fd5794b307946ff0a4193e170379e2d6e80301415816b6
package com.syntrust.www.elasticsearch; import java.net.InetAddress; import java.util.Iterator; import java.util.Map; import java.util.Map.Entry; import org.elasticsearch.action.delete.DeleteResponse; import org.elasticsearch.action.get.GetResponse; import org.elasticsearch.action.index.IndexResponse; import org.elas...
Java
src/main/java/com/syntrust/www/elasticsearch/ElasticSearchClient.java
ReeceDowson/fileshare
apache-2.0
2,967
113
codeparrot/github-code
41749534ee61977c89a647aef97c6ff7aa19fda689bf812774f3ad295f9bb993
package org.jsapar.schema; import org.jsapar.model.CellType; import org.jsapar.text.EnumFormat; import org.jsapar.text.Format; import org.jsapar.utils.StringUtils; import org.jsapar.utils.XmlTypes; import org.w3c.dom.Attr; import org.w3c.dom.Element; import org.w3c.dom.Node; import org.w3c.dom.NodeList; import org.xml...
Java
src/main/java/org/jsapar/schema/Xml2SchemaBuilder.java
org-tigris-jsapar/jsapar
apache-2.0
28,460
629
codeparrot/github-code
1bada47a30bc08c7dc70a0a314da895d1fefce95fbe80df5f4cbe5695e889daa
package breeze.linalg /* Copyright 2012 David Hall 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...
Scala
math/src/main/scala/breeze/linalg/DenseVector.scala
wstcpyt/breeze
apache-2.0
28,279
802
codeparrot/github-code
0c4badc98a1353d636403165cea163d4ccf48a826f7193cc55ee9f25665cc645
/* * Copyright 2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
Java
spring-social-facebook/src/main/java/org/springframework/social/facebook/api/ActionMetadata.java
wilkinsona/spring-social-facebook
apache-2.0
3,879
134
codeparrot/github-code
14bfa458fb9908df55399dacf83231d246e8dac246798dc450949683a630fbfa
// STLport regression testsuite component. // To compile as a separate example, please #define MAIN. #include <algorithm> #include <vector> #include <iostream> #include <iterator> #ifdef MAIN #define pheap1_test main #endif #if !defined (STLPORT) || defined(__STL_USE_NAMESPACES) using namespace std; #...
C++
src/STLport/test/regression/pheap1.cpp
aestesis/elektronika
apache-2.0
717
36
codeparrot/github-code
c9e11206f5022a3ee818d2385cb1a328add5dc4e924de4af41f405c2c1dc5018
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
Scala
core/src/test/scala/org/apache/spark/util/EventLoopSuite.scala
Dax1n/spark-core
apache-2.0
7,100
279
codeparrot/github-code
1cd0d2a6a076e1ce62e28bc0b981a134da54ef941bbcd0bb01080769e5c0b73f
#pragma once #include <thread> #include <boost/asio.hpp> #include "io_runner.hpp" #include "output_writer.hpp" namespace metrics { /** * The IORunner runs the async scheduler which powers the OutputWriter and all ContainerReaders, * while also acting as a factory for ContainerReaders. */ class IORunner...
C++
mesos_module/io_runner_impl.hpp
dcos/dcos-metrics
apache-2.0
1,430
53
codeparrot/github-code
f0f60dfe672df656a70c4315e30c54b33dae73f3f7867de8c07aef33d38949c9
/* * Copyright 2000-2014 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
phizdets/phizdets-idea/src/vgrechka/phizdetsidea/phizdets/refactoring/rename/RenamePyFileProcessor.java
vovagrechka/fucking-everything
apache-2.0
3,942
106
codeparrot/github-code
abd91326019cca21266fa3448b81e3436155baa51ebc425fb88ef92503dd3dff
package com.buschmais.xo.neo4j.test; import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.List; import com.buschmais.xo.api.ConcurrencyMode; import com.buschmais.xo.api.Transaction; import com.buschmais.xo.api.ValidationMode; import com.buschmais.xo.api.XOManager; impor...
Java
neo4j/test/src/test/java/com/buschmais/xo/neo4j/test/AbstractNeo4JXOManagerIT.java
buschmais/extended-objects
apache-2.0
1,831
46
codeparrot/github-code
1d2f0663e63f9b9916e85840793efcef12d866460765a4eeeaebef7b7c5dceb1
package com.blinkurban.backend.domain; import com.googlecode.objectify.annotation.Entity; import com.googlecode.objectify.annotation.Id; @Entity public class Model{ @Id private Long id; private String name; private int height; private int weight; private String description; public Model(){} ...
Java
src/main/java/com/blinkurban/backend/domain/Model.java
jaytao/blinkurban-back
apache-2.0
801
45
codeparrot/github-code
d42d5f74059ad947f383e89166f5a0ed1215b848b1e478ecf53cd76b7d7edb7f
package com.github.q115.goalie_android.modelsTest; import com.github.q115.goalie_android.models.Goal; import org.junit.Test; import test_util.ModelUtil; import static com.github.q115.goalie_android.models.Goal.GoalCompleteResult.Failed; import static com.github.q115.goalie_android.models.Goal.GoalCompleteResult.Suc...
Java
app/src/test/java/com/github/q115/goalie_android/modelsTest/GoalTest.java
Q115/Goalie_Android
apache-2.0
2,430
68
codeparrot/github-code
afda5c43b947ff47f5a95e2eb496248779bc29f1b6c2d5ed851f37c3ebd7bd3c
<?php namespace Oranges\MongoDbBundle\Helper; use Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\ParamConverterInterface; use Sensio\Bundle\FrameworkExtraBundle\Configuration\ConfigurationInterface; use Symfony\Component\HttpFoundation\Request; class Converter implements ParamConverterInterface { func...
PHP
Oranges/MongoDbBundle/Helper/Converter.php
rjkeller/OrangesMongoDbBundle
apache-2.0
977
37
codeparrot/github-code
b84eaad6077648cb721543cb638216c5b167254335145619d2b2a8d5d34a0130
# Copyright (c) 2014 Bull. # # 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, sof...
Python
kwrankingclient/v1/shell_commands/nodes.py
frossigneux/python-kwrankingclient
apache-2.0
1,816
62
codeparrot/github-code
0493a8e7c2bbf320487f403407e50804e417d162a24a5746390e43abdaf3b2b4
/** @module scene **/ game.module( 'engine.scene' ) .body(function() { /** Game scene. @class Scene **/ game.createClass('Scene', { /** Background color of scene. @property {String} backgroundColor @default null **/ backgroundColor: null, /** List of emit...
JavaScript
src/engine/scene.js
spleennooname/shadow-of-the-beast-html5
apache-2.0
10,919
456
codeparrot/github-code
a80773dfb0269ac8a25e2126b3c5d4108cfad2bbca4451c2ea3054af5107a883
/* * 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/unit/org/apache/cassandra/io/util/MmappedRegionsTest.java
MichaelTong/cassandra-rapid
apache-2.0
12,980
381
codeparrot/github-code
47811af65b1a262b9914b6abce1a877cf0a1988ef69cb39f16a1d9df532f9b2c
(function () { // Main module var app = angular.module('odalic-app'); // directive represets ui-select box for classification and disambiguation // attribute 'data' has to contain data related to cell of table (classifications and disambiguations from result) var currentFolder = $.getPathForRelat...
JavaScript
src/templates/taskresult/view/classdisam/cdmodalselection/cdselecting/cdselectbox/cdselectbox.js
odalic/odalic-ui
apache-2.0
5,010
129
codeparrot/github-code