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
0d826a5d3025ce0cb3d9242bf67e6fba05654574b477c47d7153810b121611e6
/* * Copyright 2016 Well-Factored Software 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 l...
Scala
src/test/scala/com/wellfactored/playbindings/ValueClassQueryStringBindableTest.scala
WellFactored/play-extras
apache-2.0
1,482
48
codeparrot/github-code
fd6e1f3be2cd88aa7e72f6a82741dfc1690fd0a31366c1b91f69b1eb49b29e99
/* * * Licensed to the Apache Software Foundation (ASF) under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional information regarding * copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the * "License"); you may n...
Java
geode-gfsh/src/test/java/org/apache/geode/management/internal/cli/functions/CliFunctionTest.java
jdeppe-pivotal/geode
apache-2.0
2,311
63
codeparrot/github-code
77c70e078862bb00a1ee6eedf807964f03bca3644420a68f4addbbed7e89712b
/* * This file is part of the Soletta™ Project * * Copyright (C) 2015 Intel Corporation. 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.apach...
C
src/modules/flow/string/string-uuid.c
wanghongjuan/soletta
apache-2.0
1,904
66
codeparrot/github-code
4ab42ac9d1e920ca416bed97fe51f87e747fe804ee0e25d1b2e6ac7dd70dbf2e
/*-========================================================================-_ | - XACT3D - | | Copyright (c) Microsoft Corporation. All rights reserved. | |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| |VERSIO...
C
src/3rd party/dxsdk/Include/xact3d.h
OLR-xray/OLR-3.0
apache-2.0
10,450
274
codeparrot/github-code
5ceec18af87a3f2b8ae22330fa4bb27cb69f557eed260e929db6143d9a3ef67a
require_relative '../../services/auth_service/client' module V1 class AuthApi < Roda include RequestHelpers route do |r| r.post do data = parse_json_body begin result = AuthService::Client.new.authenticate(data) if result.nil? return nil end ...
Ruby
server/app/routes/v1/auth_api.rb
jnummelin/kontena
apache-2.0
1,259
46
codeparrot/github-code
ec1d71d1c77c1e844b36841d9ab278586f829571e72d74906817cf8585085a79
/* * 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
fate/src/test/java/org/apache/accumulo/fate/zookeeper/RetryTest.java
dhutchis/accumulo
apache-2.0
3,743
128
codeparrot/github-code
66da5a5a2fa05b19a4bd60942de104391e95d53606722c7202160de844b99054
package com.azhuoinfo.gbf.view.listview; import com.azhuoinfo.gbf.R; import android.content.Context; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.View; import android.widget.LinearLayout; import android.widget.ProgressBar; import android.widget.RelativeLayout; import androi...
Java
app/src/com/azhuoinfo/gbf/view/listview/LoadMoreFooter.java
zixinliuyun/GBF
apache-2.0
2,353
77
codeparrot/github-code
4a38218c83e396645d9649067ceda2af82228ed276d889618cfef2fc9ccee114
package com.ctrip.zeus.dao.entity; import java.util.ArrayList; import java.util.Date; import java.util.List; public class SlbVsDomainRExample { protected String orderByClause; protected boolean distinct; protected List<Criteria> oredCriteria; protected Integer offset; protected ...
Java
slb/src/main/java/com/ctrip/zeus/dao/entity/SlbVsDomainRExample.java
sdgdsffdsfff/zeus
apache-2.0
26,772
781
codeparrot/github-code
7a2ae7ab9337d36a34b73110837945f2bdc0b242d619d1ebb31e58a25f065753
/** * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved. */ package com.thinkgem.jeesite.modules.jxc.entity; import org.hibernate.validator.constraints.Length; import com.thinkgem.jeesite.common.persistence.DataEntity; /** * 客户类别Entity * @author 马万进 * @vers...
Java
src/main/java/com/thinkgem/jeesite/modules/jxc/entity/JxcPurchasekind.java
mawanjin/guqi
apache-2.0
755
37
codeparrot/github-code
871b1f3d04cde2b674e970ba542ca54051d042f66c0356ee5f9ddbffb11f3566
/* 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 agreed to in ...
Java
src/main/java/com/google/api/codegen/viewmodel/SimpleInitCodeLineView.java
jmuk/toolkit
apache-2.0
1,439
48
codeparrot/github-code
dde4981be0dac3a9f069788b3ec9f3b56184ad183ff48f1a0a2fcf7f9d4f258a
/* * Copyright 2013 Jaroslaw Wisniewski <j.wisniewski@appsisle.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
backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/AndroidLiveWallpaperService.java
ryoenji/libgdx
apache-2.0
25,130
666
codeparrot/github-code
256c5c8e1c541ede6e70036ebd4eac7752042e980513f1a493a1ac0e436311b1
package org.apache.ddlutils.io; /* * 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 Licen...
Java
src/test/org/apache/ddlutils/io/TestDataReaderAndWriter.java
etiago/apache-ddlutils
apache-2.0
13,423
320
codeparrot/github-code
735186e125d10aee5c0c6b7bc98e63fe2ca2c2f6c386a051904faa3736e4b900
package org.hibernate.bytecode.cglib; import org.hibernate.bytecode.ReflectionOptimizer; import org.hibernate.PropertyAccessException; import net.sf.cglib.beans.BulkBean; import net.sf.cglib.beans.BulkBeanException; import net.sf.cglib.reflect.FastClass; import java.io.Serializable; import java.io.ObjectOutputStream;...
Java
Hibernate-source/源代码及重要说明/Hibernate相关资料/hibernate-3.2.0.ga/hibernate-3.2/src/org/hibernate/bytecode/cglib/AccessOptimizerAdapter.java
renmeng8875/projects
apache-2.0
2,966
103
codeparrot/github-code
1b6d4aa1e1f45efdfe090e4220381a5cac27d948c4cd3b02d68ebffb2a459e68
/* * 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
platform/platform-impl/src/com/intellij/openapi/actionSystem/impl/ActionButton.java
semonte/intellij-community
apache-2.0
15,064
499
codeparrot/github-code
74bf8130031f927e523a041d53615dd2abcefda58259c6a3762effd53eda3a3e
/* * Copyright 2015-present Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
Java
test/com/facebook/buck/lua/LuaLibraryDescriptionTest.java
shybovycha/buck
apache-2.0
5,990
134
codeparrot/github-code
43bf5b311709659b56c6bf33b7fae6db371b42d1f9262356818384b713f06cb4
/* *------------------------------------------------------------------ * teib_api.c - teib api * * Copyright (c) 2016 Cisco and/or its affiliates. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the Li...
C
src/vnet/teib/teib_api.c
chrisy/vpp
apache-2.0
3,495
137
codeparrot/github-code
e7f2fe3d6a3fb7db72256c9bb9deeb9dd433503489b3357e2b2be82078ca1f17
<?php /* SQL Buddy - Web based MySQL administration http://www.sqlbuddy.com/ home.php - create a new database, links, etc MIT license 2008 Calvin Lough <http://calv.in> */ include "functions.php"; loginCheck(); ?> <table class="hometable"> <tr> <td> <h4><?php echo __("Welcome to SQL Buddy!"); ?></h4> </td> <...
PHP
cometchat/sqlbuddy/home.php
networksoft/erp.roshlife
apache-2.0
6,548
312
codeparrot/github-code
97b4781e9873409dcafccb3a2aaa9efc3803587ee4a30246adf90154d8e1ddf7
<?php /** * Created by PhpStorm. * User: huyanping * Date: 14-9-28 * Time: 下午3:05 * * <code> * <?php * require_once 'RedisSession.php'; * * RedisSession::init ( array ( * 'session_name' => 'redis_sess', * 'cookie_path' => '/', * 'cookie_domain' => '.acme.org', * 'l...
PHP
Zebra/Session/RedisSession.php
huyanping/Zebra-PHP-Framework
apache-2.0
6,143
211
codeparrot/github-code
421530efe78d4410e054cb07839a826d47bee8600978984b9cce6bed983c869f
# Copyright 2014 Open Source Robotics Foundation, 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...
Python
catkin_tools/verbs/catkin_create/cli.py
iwanders/catkin_tools
apache-2.0
6,417
157
codeparrot/github-code
74546cbacc3f0a5dee3df1ab3649ffe0e531feb9a3a1c158a3fff40209a2bee7
/* * 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
extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-postgresql/src/main/java/org/apache/guacamole/auth/postgresql/PostgreSQLGuacamoleProperties.java
lato333/guacamole-client
apache-2.0
6,174
201
codeparrot/github-code
59747637551a15a74cf05d709215988eee2817fe4a300077996cd2f8c43e933b
/* ============================================================================ Copyright (c) 2008-2014, Broadcom Corporation All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source c...
C
middleware/khronos/glsl/glsl_dataflow_print.c
vanwinkeljan/rpi_vmcsx
apache-2.0
24,512
870
codeparrot/github-code
67a95da6b44c7cb72188f014913856ad08137cd82166460327859c133c88789b
/* * Copyright 2010-2013 Ning, Inc. * * Ning 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 required by a...
Java
account/src/main/java/org/killbill/billing/account/dao/AccountModelDao.java
kares/killbill
apache-2.0
13,781
393
codeparrot/github-code
b97d43b11499676232a0b7ffc037041af558772898af8ae066b8745cad7fbb1e
# Copyright 2014: Mirantis 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 b...
Python
rally/benchmark/processing/plot.py
varunarya10/rally
apache-2.0
11,681
312
codeparrot/github-code
79cb7f94b4f2460bc0dd52feda1ced68e5a3f33aed8047241aa92c5a03333f81
package eu.atos.sla.datamodel.bean; import java.io.Serializable; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.List; import javax.persistence.Access; import javax.persistence.AccessType; import javax.persistence.CascadeType; import javax.persistence...
Java
sla-core/sla-repository/src/main/java/eu/atos/sla/datamodel/bean/BusinessValueList.java
Fiware/ops.Sla-framework
apache-2.0
3,161
120
codeparrot/github-code
11398a85ea7c54034b522844fb3a0dae124accef51dfce434c06280ac2617e2c
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>jQuery contextMenu</title> <link href='https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic|Roboto+Slab:400,700|Inconsolata:400,700&subset=latin,cyrilli...
HTML
public_html/public/app/components/jQuery-contextMenu-2.1.0/test/integration/html/trigger-hover.html
sergioserr/fullslider
apache-2.0
21,594
366
codeparrot/github-code
9ba4e30b7b5077c666c97684e5e33bf0c9600106024dacd38f5953d85dc39798
/** * Copyright 2013 Netflix, 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 ...
Java
servo-core/src/test/java/com/netflix/servo/BasicMonitorRegistryTest.java
samhendley/servo
apache-2.0
5,757
165
codeparrot/github-code
67ecc2483049f9a9630b29454d8823dc7b3a98eb9ef1fa1d1cfb4328f73ce9aa
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package org.jetbrains.idea.maven.server; import com.intellij.openapi.util.io.FileUtilRt; import com.intellij.openapi.util.text.StringUtilRt; import com.intellij.util.Function; import com.intellij.ut...
Java
plugins/maven/maven3-server-common/src/org/jetbrains/idea/maven/server/Maven3ServerEmbedder.java
jwren/intellij-community
apache-2.0
25,301
629
codeparrot/github-code
57325c4498729471937d3b5cb28f012bc39ab006f4a917408019fed5164eb000
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
Java
components/camel-smpp/src/test/java/org/apache/camel/component/smpp/SmppBindingTest.java
Fabryprog/camel
apache-2.0
21,617
422
codeparrot/github-code
8005526ba5ca3c3428aa206a1172c95f2862343b627470fce72ce97e1b2d34dd
# Copyright 2019 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 applica...
Python
Google/benchmarks/resnet/implementations/resnet-cloud-TF2.0-tpu-v3-32/tf2_common/modeling/activations/swish.py
mlperf/training_results_v0.7
apache-2.0
2,452
77
codeparrot/github-code
07b87b1655de4321a058ea13ff6f85f94764161efaae6000d179039672a24595
// (C) Copyright 2015 Moodle Pty Ltd. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agree...
TypeScript
src/providers/local-notifications.ts
FMCorz/moodlemobile2
apache-2.0
28,664
757
codeparrot/github-code
f33b1890cf470ac20d23836968995af400dcaa7ff8b51e4992e28cda3572b263
/* * ==================================================================== * 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 ...
Java
B2G/gecko/mobile/android/base/httpclientandroidlib/protocol/HttpRequestExecutor.java
sergecodd/FireFox-OS
apache-2.0
13,490
346
codeparrot/github-code
7feef0727a45e579dc7bb12d5e46dc272bc4c2fc74e3ccb22d4e69d4cf0d264c
/** * Copyright (C) FuseSource, Inc. * http://fusesource.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 by...
Java
gateway/gateway-core/src/main/java/org/fusesource/gateway/chooser/RandomChooser.java
janstey/fuse
apache-2.0
1,167
40
codeparrot/github-code
f1f7639db0629927e41b000b5a209a99c7defbea8c48f6d62e5b677ba1d9f03b
package nz.org.winters.legodisplaysequencer.sbrick.sbrickcommand; import android.support.annotation.NonNull; /** * WriteCharacteristicCommand subclass for writing to quick drive characteristic. */ public class WriteQuickDriveCommand extends WriteCharacteristicCommand { private int v0, v1, v2, v3; WriteQuickDr...
Java
app/src/main/java/nz/org/winters/legodisplaysequencer/sbrick/sbrickcommand/WriteQuickDriveCommand.java
wintersandroid/lego-train-remote-controller
apache-2.0
922
41
codeparrot/github-code
da0c657fc8590deded4ec68bee37ad8a464758bc472403e2ad48888ca5fee8e9
package me.ztiany.mvc.interceptor; import org.springframework.web.servlet.HandlerInterceptor; import org.springframework.web.servlet.ModelAndView; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class Interceptor1 implements HandlerInterceptor { public boolean...
Java
JavaEE/SpringMVC-Base/src/main/java/me/ztiany/mvc/interceptor/Interceptor1.java
Ztiany/CodeRepository
apache-2.0
1,279
39
codeparrot/github-code
48df446e789a7cb91be54046895727a3b8f537d2066d7beb619c7ae8bb4c3b68
/* Copyright (c) 2006 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 ...
C#
src/contentforshopping/elements/productweight.cs
michael-jia-sage/libgoogle
apache-2.0
2,084
62
codeparrot/github-code
e21b62eecebca43e50c804dd44872da7d30b684e33b84e55cfa59570059cad73
package ru.carabi.server.soap; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.sql.SQLException; import java.util.ArrayList; import java.util.HashMap; import java.util.Map; import java.util.logging.Level; import java.util.logging.Logg...
Java
src/main/java/ru/carabi/server/soap/QueryService.java
Carabi/carabiserver
apache-2.0
11,671
285
codeparrot/github-code
f73d2e129d7adbfd1ffd650ecae81fce11e52f1b2fb3d4da35cd89c330cb0000
/** * Copyright 2014-2017 Riccardo Massera (TheCoder4.Eu), Dario D'Urzo and Stephan Rauh (http://www.beyondjava.net). * * This file is part of BootsFaces. * * 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 ...
Java
src/main/java/net/bootsfaces/component/inputText/InputTextCore.java
chongma/BootsFaces-OSP
apache-2.0
44,843
1,052
codeparrot/github-code
24ddf647412ce753279805cdcf171a2f3d25bbca4822ae7871557aa67fa70745
<link rel="import" href="../../../bower_components/polymer/polymer.html"> <link rel="import" href="../shared/cellbase-shared-styles.html"> <dom-module id="cellbase-clinvar-grid"> <template> <style is="custom-style" include="cellbase-shared-styles"></style> <div style="padding: 10px; "> ...
HTML
cellbase-web/src/components/core/cellbase-clinvar-grid.html
Swaathik/cellbase
apache-2.0
4,958
125
codeparrot/github-code
87e12d14f3bd680e46ed741987297cae6a261feb44beba0892cd3081c00ac1b5
/* Copyright 2019 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/lite/micro/kernels/cmsis-nn/conv.cc
cxxgtxy/tensorflow
apache-2.0
19,478
461
codeparrot/github-code
d0d08ac64a7bfb60d7d955894e36df3cbc011573b7effe05d7e36386c1aaeee7
package config import ( "github.com/openshift/origin/pkg/build/apis/build" "k8s.io/apimachinery/pkg/api/resource" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/util/sets" "k8s.io/kubernetes/pkg/apis/core" ) // A new entry shall be added to FeatureAliase...
GO
pkg/cmd/server/apis/config/types.go
juanvallejo/origin
apache-2.0
80,316
1,841
codeparrot/github-code
61b6384d4e10971386558205f85c389349481801644365f1016292f4a8fc455e
<?php include_once(dirname(__FILE__).DIRECTORY_SEPARATOR."config.php"); $adCode = str_replace("'", "\'", $adCode); $adCode = str_replace("\r\n", "", $adCode); ?> /* * CometChat * Copyright (c) 2014 Inscripts - support@cometchat.com | http://www.cometchat.com | http://www.inscripts.com */ (function($){ $....
JavaScript
cometchat/extensions/ads/init.js
networksoft/erp.roshlife
apache-2.0
1,711
53
codeparrot/github-code
31bb495c886dda3b6091cd7b44a20df07a042f618dc7a7b058ac089efc1a39e6
/* 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/contrib/tensorflow-master/tensorflow/compiler/tf2xla/xla_op_registry.cc
AsimmHirani/ISpyPi
apache-2.0
5,024
135
codeparrot/github-code
1b1a206d977f666a74241ee4d04cd3aa5ea018e6e94ab9bc81923bce9e2bf673
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
Java
components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/HdfsFileType.java
chicagozer/rheosoft
apache-2.0
22,379
485
codeparrot/github-code
4f7ec2454e633c3d075046c3f0ebc1a98c64deec0cfdb2e55742e81c46f9b340
<?php class Scalr_Scaling_Algorithms_Sensor { public function __construct() { $this->logger = Logger::getLogger(get_class($this)); } public function makeDecision(DBFarmRole $dbFarmRole, Scalr_Scaling_FarmRoleMetric $farmRoleMetric, $isInvert = false) { ...
PHP
app/src/Scalr/Scaling/Algorithms/Sensor.php
kikov79/scalr
apache-2.0
2,114
52
codeparrot/github-code
9396edafebf1f884d52f11598dd10996286422c69c882f746311dd68ffaf5a3f
// 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.Collections.Generic; using System.Collections.Immutable; using System.Globalization; using System.Threading; namespace Microsoft.CodeAnalysis.C...
C#
src/Main/MetaDslx.CodeAnalysis.CSharp/Symbols/Wrapped/WrappedMethodSymbol.cs
balazssimon/meta-cs
apache-2.0
8,122
327
codeparrot/github-code
a9f013819b8eb8f2e6c19703f4d5c94d225c3640a74937e86c63924f08b9a9ed
/* * 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
stack/corepersistence/common/src/main/java/org/apache/usergrid/persistence/core/migration/data/MigrationInfoSerializationImpl.java
mdunker/usergrid
apache-2.0
7,507
216
codeparrot/github-code
d8eb1ef1b6dffca6136533a241b3b69e6e47bb0b9f24a49903c0fbfc2253a6ed
/* * 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
solr/solrj/src/java/org/apache/solr/client/solrj/io/eval/FuzzyKmeansEvaluator.java
apache/solr
apache-2.0
4,241
107
codeparrot/github-code
97575e00aae3eee6de4db5490de309fd5f9f71947805127b9536cef134e6cf88
package integration.sockjs; import io.vertx.ext.unit.TestContext; import org.junit.Ignore; import org.junit.Test; @Ignore public class TestRegexEventBusBridge extends EventBusBridgeTestBase { private final static String WS_ADDRESS = "/eventbus/regex/websocket"; @Test public void testInboundPermitted(TestConte...
Java
src/test/java/integration/sockjs/TestRegexEventBusBridge.java
aesteve/vertx-nubes
apache-2.0
862
33
codeparrot/github-code
be056f2fedf425759dee3e9eb0c6f1f4fb85545b83bf63876b2891db3c932c55
/* Copyright (c) 2007 Cyrus Daboo. 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 re...
C
MacOS/Sources/Application/General/CICSupport.h
mbert/mulberry-main
apache-2.0
4,116
125
codeparrot/github-code
caf4071f2295db474ff3339cde79be97b44cbb997bc49be88fd883344e8b8432
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
Java
src/test/java/org/elasticsearch/search/basic/SearchWithRandomExceptionsTests.java
Asimov4/elasticsearch
apache-2.0
19,460
374
codeparrot/github-code
c6c57a25dd8a9f846f7a419f6383b2331c1f89ec26333e8c2cd70da05acae5c5
<?php /** * digital-logsheets: A web-based application for tracking the playback of audio segments on a community radio station. * Copyright (C) 2015 Mike Dean * Copyright (C) 2015-2017 Evan Vassallo * Copyright (C) 2017 Donghee Baik * * This program is free software: you can redistribute it and/or modify * it...
PHP
digital-logsheets-res/php/validator/PlaylistValidator.php
mykedean/digital-logsheets
apache-2.0
2,201
74
codeparrot/github-code
715cda7f2863f11fde589e5b2615f04ffa983ed2728bdcfc746ceeeae5622864
package org.keycloak.common.util; import java.io.ByteArrayInputStream; import java.io.DataInputStream; import java.io.IOException; import java.io.InputStream; import java.security.PrivateKey; import java.security.PublicKey; import java.security.cert.X509Certificate; /** * Utility classes to extract PublicKey, Priva...
Java
common/src/main/java/org/keycloak/common/util/PemUtils.java
dylanplecki/keycloak
apache-2.0
2,994
109
codeparrot/github-code
abf5f8352dafe02ea1bb8febe4621954e01db442607c7e977d09182ea6af63ad
import { assert } from 'chai'; import { } from 'mocha'; import { discardProperties } from '../../../src/utils/data/filtering'; describe('Data filtering functions', () => { it('discardProperties(array, props)', () => { let array = [ { x: 'test', p1: 'n', p2: '3', pe: { a: 1 } }, ...
TypeScript
test/utils/data/filtering.spec.ts
proteus-h2020/proteic
apache-2.0
1,297
42
codeparrot/github-code
17ca429a0d1386fd573ca5279575361400f40ed35bbfdaafb553c4cceb279915
/* Copyright (c) 2016-2019 Progress Software Corporation and/or its subsidiaries or 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 ...
JavaScript
src/auth/progress.auth.sso.js
CloudDataObject/JSDO
apache-2.0
22,919
496
codeparrot/github-code
9a349351d67dee629429214118633aadd566cda0e22d62360c44ca4982d1966f
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
C
aws-cpp-sdk-medialive/include/aws/medialive/model/M2tsTimedMetadataBehavior.h
cedral/aws-sdk-cpp
apache-2.0
1,199
42
codeparrot/github-code
0e890c0a5059823f72bacd177d5874352c78f3ce56722179320cc233ef8f6737
var assert = require('assert'); var async = require('async'); var util = require('util'); var fs = require('fs'); var heapdump; var heapdumpPath = '/var/log/nodejs-driver'; try { heapdump = require('heapdump'); } catch (e) { console.log(e); } var helper = require('../../test-helper.js'); var cassandra = require('....
JavaScript
test/other/memory/profile-keeping-ref.js
Applifier/nodejs-driver
apache-2.0
3,668
105
codeparrot/github-code
2caf78142bf8041aae19ab569ef997e52cd7d41918fb47efca43e0865bf6a21a
/* * Copyright 2012 JBoss Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
Java
drools-wb-screens/drools-wb-guided-rule-editor/drools-wb-guided-rule-editor-client/src/main/java/org/drools/workbench/screens/guided/rule/client/editor/MethodParameterValueEditor.java
padmaragl/drools-wb
apache-2.0
12,566
316
codeparrot/github-code
491fea7211cf745a8d268db24979268b39affebd75fd675ef42d9bcc84ccddc2
/* * Copyright 2014-2015 Daniel Pedraza-Arcega * * 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...
Java
src/main/java/com/grayfox/server/service/ServiceException.java
dan-zx/rox-server
apache-2.0
1,124
35
codeparrot/github-code
777f7415d3e111fdfbc5fca1a1b183b078549f0139e1a6fe0cbfa72e6336e602
// Copyright 2018 Google LLC. 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
storage/cloudspanner/storage_provider.go
google/trillian
apache-2.0
6,604
166
codeparrot/github-code
6b162f07796702a900d850c53c2dc4a8a62213a8f0896983b26b69ebdd12d75a
package com.tngtech.test.junit.dataprovider.custom.meta; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import org.junit.jupiter.api.TestTemplate; import org.junit....
Java
junit-jupiter/src/integTest/java/com/tngtech/test/junit/dataprovider/custom/meta/DataProviderTest.java
TNG/junit-dataprovider
apache-2.0
1,523
48
codeparrot/github-code
8322da357690268b2eb0a0116fa0a2c04cd9d82d45a6b0c3fc6c86d83345809b
/* * Copyright 2016 Davide Pianca * * 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 ag...
C
mm/mm.c
davidepianca98/hoho-os
apache-2.0
4,640
208
codeparrot/github-code
7a507c5dd473c63a7638582ea48f2f6c16ccaeaedd6c9dbdaac09532fd69dced
/* * Copyright (C) 2010-2014 Hamburg Sud and the contributors. * * 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 a...
Java
src/main/java/org/aludratest/service/ComponentId.java
AludraTest/aludratest
apache-2.0
5,024
120
codeparrot/github-code
b66fefda65cdaf6c599c04611176265739b8105cad40f80b9a3b84bc9159d55b
/* ================================================================ * JSQLParser : java based sql parser * ================================================================ * * Project Info: http://jsqlparser.sourceforge.net * Project Lead: Leonardo Francalanci (leoonardoo@yahoo.it); * * (C) Copyright 2...
Java
skylucene/jsqlparser/net/sf/jsqlparser/statement/select/SubSelect.java
55open/skylunece
apache-2.0
2,235
70
codeparrot/github-code
56535fa6f3ee070102f311bda9f79cbf39a9e97089c405d4dcf51ac9789da5c2
#!/usr/bin/env ruby # Encoding: utf-8 # # Author:: api.dklimkin@gmail.com (Danial Klimkin) # # Copyright:: Copyright 2011, Google Inc. All Rights Reserved. # # License:: Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # ...
Ruby
examples/v201209/reporting/parallel_report_download.rb
i-click/google-adwords-api
apache-2.0
5,364
161
codeparrot/github-code
179b1cfa13c276d4f3d9d798c4ca95c15d06903ce692e6baa42985bc2f8052fb
/** @file @section license License 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, Versi...
C++
iocore/net/SSLUtils.cc
rpufky/trafficserver
apache-2.0
80,634
2,241
codeparrot/github-code
0f371e96d16695688b1986fcdb4afd8438beb5a80e3c7b741e8a552d13a52f0c
import {Workflow} from "../"; export class DynamicStylesheet { private styleElement: HTMLStyleElement; private scopedSelector: string; private innerStyle = ""; constructor(workflow: Workflow) { this.styleElement = document.createElement("style"); this.styleElement.type = "text/cs...
TypeScript
src/utils/dynamic-stylesheet.ts
ivanbatic/cwl-svg
apache-2.0
733
35
codeparrot/github-code
e780ff41623ec82b51d18aedfa25f32a2e798d4b6d3181411a4eca4550881b6d
/******************************************************************************* "FreePastry" Peer-to-Peer Application Development Substrate Copyright 2002-2007, Rice University. Copyright 2006-2007, Max Planck Institute for Software Systems. All rights reserved. Redistribution and use in source and binary forms, ...
Java
freepastry/src/org/mpisws/p2p/transport/peerreview/history/logentry/HistoryEvent.java
barnyard/pi
apache-2.0
2,539
59
codeparrot/github-code
0b88775372caf2ec32de59aeca82b7119259662ef51aa520b3a141f3cd81e3aa
package org.commcare.cases.entity; import org.commcare.suite.model.Detail; import org.javarosa.core.model.instance.TreeReference; import java.util.List; /** * Created by amstone326 on 5/24/17. */ public abstract class SortableEntityAdapter implements EntitySortNotificationInterface { private List<Entity<TreeR...
Java
src/main/java/org/commcare/cases/entity/SortableEntityAdapter.java
dimagi/commcare
apache-2.0
2,040
64
codeparrot/github-code
ecfffeab3ad312c5645aadfc37c9933af3cbd252a208661fc59873ea433a51c7
/* * 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
java/java-analysis-impl/src/com/intellij/codeInspection/bytecodeAnalysis/Parameters.java
semonte/intellij-community
apache-2.0
24,498
778
codeparrot/github-code
8418a90dbf542c2942406f5ccd71fde6bb2e934b480935ec1382dd667ba02bb1
<!DOCTYPE html> <html lang="en"> <head> <!-- Charisma v1.0.0 Copyright 2012 Muhammad Usman Licensed under the Apache License v2.0 http://www.apache.org/licenses/LICENSE-2.0 http://usman.it http://twitter.com/halalit_usman --> <meta charset="utf-8"> <title>Free HTML5 Bootstrap Admin Template</title> <...
HTML
gravitation-views/src/html/login.html
tesla-cm/gravitation
apache-2.0
7,034
177
codeparrot/github-code
2e58a2076857e709353282aa8809cb32baf0051dfe0621abde7599b81997e813
/*========================================================================= Library: CTK Copyright (c) Kitware 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.ap...
C
Libs/Widgets/ctkFittedTextBrowser.h
CJGoch/CTK
apache-2.0
4,445
122
codeparrot/github-code
568e9230d5c37d7b7a147bdb2fdef84b231f65e01ad893c4b57b2a87e9840b38
package jef.database.dialect.type; import java.io.ByteArrayInputStream; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.sql.Blob; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Types; import jef.common.BigDataBuffer;...
Java
common-orm/src/main/java/jef/database/dialect/type/BlobObjectMapping.java
xuse/ef-orm
apache-2.0
4,086
145
codeparrot/github-code
676a9d5c10f24b42dcddfb117e65e43c7491ac7eb30d19522c6de683fdcee85b
/** * 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
pulsar-client/src/main/java/org/apache/pulsar/client/impl/transaction/TransactionCoordinatorClientImpl.java
massakam/pulsar
apache-2.0
11,517
279
codeparrot/github-code
ea86919a46758374aaae0b20dfe89e692c16dbf29617a90d7f7bc8d25eedcf12
class PermitsController < ApplicationController before_action :set_permit, only: [:show, :edit, :update, :destroy] # GET /permits # GET /permits.json def index @permits = Permit.all end # GET /permits/1 # GET /permits/1.json def show end # GET /permits/new def new @permit = Permit.new ...
Ruby
app/controllers/permits_controller.rb
ElectronicPermits/Server
apache-2.0
1,895
75
codeparrot/github-code
52589fc97ab6caa88e2507db5fe46b63dd0aeda807a2ed8f858f07e598ba9898
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you m...
Java
qa/src/com/sun/jini/test/impl/start/SharedActivationGroupDescriptorTest2.java
cdegroot/river
apache-2.0
6,640
192
codeparrot/github-code
c5a6b0781608e8e43e68c41e4c35ea972c37b5064fdabb41ae7a2313ad242ccb
/* * 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
tomcat-7.0.63-sourcecode/target/classes/org/apache/catalina/authenticator/SingleSignOn.java
wenzhucjy/tomcat_source
apache-2.0
24,846
643
codeparrot/github-code
09b37b77b77cb880d54eaa176e50d3ca1e0b2580aa483b5b144aa33793fcb7cc
/* Copyright 2016 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
C++
tensorflow/core/kernels/crop_and_resize_op_gpu.cu.cc
jbedorf/tensorflow
apache-2.0
18,098
494
codeparrot/github-code
ca0ce5097f26c7bb1b3a1d1e571795c34ce4890f9beefb20f97b950264ff2433
/* * ProGuard -- shrinking, optimization, obfuscation, and preverification * of Java bytecode. * * Copyright (c) 2002-2014 Eric Lafortune (eric@graphics.cornell.edu) * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as publ...
Java
proguard/proguard/optimize/info/StaticInitializerContainingClassMarker.java
oneliang/third-party-lib
apache-2.0
2,103
65
codeparrot/github-code
1a91954400b811dc67daa221701c148d6104d2f688f01a58a523a34b761f47bf
# Copyright 2015 OpenStack Foundation # 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 requ...
Python
glance/async/flows/convert.py
dims/glance
apache-2.0
3,951
112
codeparrot/github-code
f9bd7c30f37a89813564fa426a1e5277fd439717392519340adb4555328379fe
package cgeo.geocaching.connector; import cgeo.geocaching.models.Image; import cgeo.geocaching.models.TrackableLog; import cgeo.geocaching.enumerations.LogType; import org.eclipse.jdt.annotation.NonNull; import org.eclipse.jdt.annotation.Nullable; import java.util.Calendar; import java.util.List; public interface I...
Java
main/src/cgeo/geocaching/connector/ILoggingManager.java
SammysHP/cgeo
apache-2.0
968
44
codeparrot/github-code
0c7d6c0532799c5c7635184c753532f0c26ce035b7304adc102139ed2279e5a3
/*************************************************************************** * * codecvt.cpp * * $Id$ * *************************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file d...
C++
util/codecvt.cpp
pathscale/stdcxx
apache-2.0
23,372
661
codeparrot/github-code
50bdca2face9e98be116548d047bee85b7d40f27cd266b7e60ec398caf6bc897
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> <HTML> <HEAD> <LINK REL=STYLESHEET TYPE="text/css" HREF="stylesheet.css" TITLE="Style"> <META NAME="GENERATOR" CONTENT="Java2HTML Version 1.3.1"> <TITLE>jena.examples.ontology.describeClass.Main (Java2HTML)</TITLE> </HEAD> <BODY><TABLE id="Header" border="0" cell...
HTML
Jenna-2.6.3/doc/examples/describe-class/Main.java.html
jianglili007/pretty-printer
apache-2.0
9,689
153
codeparrot/github-code
9b2a19059f26245cdcaa2795031eb89f25363964610573074fbe5b61410acdd5
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you m...
Java
JGDMS/browser/src/main/java/org/apache/river/example/browser/ServiceBrowser.java
pfirmstone/JGDMS
apache-2.0
7,542
283
codeparrot/github-code
e6247cd7bf8dcf61d5a9881d3ddfd56274eadb262ad25eeab002f87ffdf0a296
<?php /** * @file * Definition of Drupal\user\Plugin\views\access\Role. */ namespace Drupal\user\Plugin\views\access; use Drupal\views\Plugin\views\access\AccessPluginBase; use Drupal\views\Annotation\ViewsAccess; use Drupal\Core\Annotation\Translation; use Symfony\Component\Routing\Route; use Drupal\Core\Session...
PHP
www/core/modules/user/lib/Drupal/user/Plugin/views/access/Role.php
nickopris/musicapp
apache-2.0
2,584
94
codeparrot/github-code
fdf43e7927f38c34fc126d5673f362c457184d55b35fae384df6d8c41a255a6b
// Copyright 2018 The Prometheus Authors // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to...
GO
collector/info_schema_innodb_metrics.go
roman-vynar/mysqld_exporter
apache-2.0
6,187
202
codeparrot/github-code
fd7c73d35d5d7c24019f39d48f82511654019a5789094a4fc218dabc63ee5ed5
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="FailureHandler.cs" company="NFluent"> // Copyright 2018 Thomas PIERRAIN & Cyrille DUPUYDAUBY // Licensed under the Apache License, Version 2.0 (the "License"); // you may n...
C#
code/src/NFluent/Helpers/FailureHandler.cs
NFluent/NFluent
apache-2.0
8,191
160
codeparrot/github-code
44cf0706cb35cdeccb25d22e28e9b11cf6d0b5566b91cdef6885cc6a09c8b6b5
<?php namespace Scalr\Service\Aws\CloudFront\DataType; use Scalr\Service\Aws\CloudFront\AbstractCloudFrontListDataType; /** * DistributionConfigOriginList * * @author Vitaliy Demidov <vitaliy@scalr.com> * @since 04.02.2013 * * @method string getDistributionId() getDistribution...
PHP
app/src/Scalr/Service/Aws/CloudFront/DataType/DistributionConfigOriginList.php
kikov79/scalr
apache-2.0
2,335
78
codeparrot/github-code
81658951cb210794b4e0afbe0466c767ce475ad06e28339a4dc9c1925444a8db
/* * Copyright 2008 Last.fm * * 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
test/java/fm/last/ivy/plugins/svnresolver/SvnDaoTest.java
massdosage/ivysvn
apache-2.0
7,999
184
codeparrot/github-code
a15b06f19c0b15dedcd495ffd8fb98b83bb611899255fd43c56a6761f2f12a35
/* * Copyright 2013 MovingBlocks * * 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
engine/src/main/java/org/terasology/config/BindsConfig.java
CC4401-TeraCity/TeraCity
apache-2.0
13,203
298
codeparrot/github-code
3bdcdd459376de5e780efac0992913a1caa5ee75741783a9d9f914119bc8798c
/* * Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. */ package com.intellij.openapi.fileEditor.impl; import com.intellij.icons.AllIcons; import com.intellij.ide.actions.CloseAction; import com.intellij.ide.ui.UISettings; impor...
Java
platform/platform-impl/src/com/intellij/openapi/fileEditor/impl/EditorWindow.java
mglukhikh/intellij-community
apache-2.0
41,980
1,256
codeparrot/github-code
7a9da0f5ffa793f4840cda639ee72f5fb7e0a9e0aa6c66f1cf9f5442eea79d3b
/* $NetBSD: extern.h,v 1.15 2008/02/16 17:58:01 matt Exp $ */ /*- * Copyright (c) 1992, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: ...
C
sbin/restore/extern.h
execunix/vinos
apache-2.0
4,394
116
codeparrot/github-code
6e33ec048aac132bcd9f6c592ea0dded4ce3a113fb41c0c1db37e28356b119df
import {devAssert} from '#core/assert'; import {Services} from '#service'; import {calculateEntryPointScriptUrl} from '#service/extension-script'; import {dev} from '../log'; import {ModeDef, getMode} from '../mode'; import {getService, registerServiceBuilder} from '../service-helpers'; const TAG = 'web-worker'; /*...
JavaScript
src/web-worker/amp-worker.js
jpettitt/amphtml
apache-2.0
5,901
219
codeparrot/github-code
933335de1014be792a523601f4222645a4e4506ed09cdbe52795d8a82a90c294
/* * Copyright (C) 2017 Alex Stockinger * * 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
rest/src/main/java/fi/testee/rest/DelegatingConfigurator.java
dajudge/testee
apache-2.0
1,976
55
codeparrot/github-code
583e4905b56c7ec6b871b0d335d26537446715ff4c96a874e8493c605954b884
/* * Copyright (C) 2009 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
Java
core/java/android/content/pm/RegisteredServicesCache.java
xorware/android_frameworks_base
apache-2.0
29,809
737
codeparrot/github-code
5b3e1a9c054f58d3a8def6f35fcdc4061d8677d31e417272d1664c1892c852c0
/* * 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 applica...
Java
spring-cloud-vault-config/src/test/java/org/springframework/cloud/vault/config/VaultConfigTlsCertAuthenticationTests.java
rhoegg/spring-cloud-vault-config
apache-2.0
3,792
111
codeparrot/github-code
3fd1bf4d7b6939b7550fa6576be2fb5be05e089600190f1429f9302352920d2e
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Copyright 2012 Nebula, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # no...
Python
openstack_dashboard/dashboards/admin/projects/urls.py
rackerlabs/horizon
apache-2.0
1,755
44
codeparrot/github-code
b59f7506744a40b8c1a8aabf5648e7a7a3cd172b4ba21b45094ad9a70892dd4f
/* * SceneIO.h - MAXScript-related scene file I/O (persistent globals, on-open script, etc.) * * Copyright (c) Autodesk, Inc, 1998. John Wainwright. * */ #pragma once #include "mxsMaxFileVersion.h" #include "..\ScripterExport.h" #include "..\kernel\value.h" #include "..\..\maxtypes.h" #include "..\..\tab.h"...
C
Tools/MaxExporter/MaxSDKs/2012/include/maxscript/util/sceneio.h
LiangYue1981816/CrossEngine
apache-2.0
3,225
115
codeparrot/github-code
5c41bceff99260752a5108b8fd00b42fdf4dbf6b71048f09b55ac0c108d73d51
/* * 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-core/src/test/java/org/apache/geode/internal/ClassPathLoaderTest.java
charliemblack/geode
apache-2.0
21,201
620
codeparrot/github-code
9747bca744f78651fb09e9f748f1cf385a299db6f6a4ee933241b2a9ab95c1d5
(function($){ var oldLoadDataMethod = $.fn.datagrid.methods.loadData; $.fn.datagrid.methods.loadData = function(jq, data){ jq.each(function(){ $.data(this, 'datagrid').filterSource = null; }); return oldLoadDataMethod.call($.fn.datagrid.methods, jq, data); }; $.extend($.fn.datagrid.defaults, { filterMe...
JavaScript
web-app/js/lib/jquery-easyui-1.4.1/plugins/datagrid-filter.js
ligson/ism
apache-2.0
12,607
490
codeparrot/github-code
242f8a7568470da61894cc2709e10f5630e9638272c7833c6e3a93bbd27dccad
import re array_spec_pat = re.compile('.*(\[^]]\])$') const_prefix_pat = re.compile('^const ([a-zA-Z0-9_]+)(.*)$') moab_type_pat = re.compile('.*\Wm[a-z_0-9]+_t$') datatype_names = 'int|short|long|double|float|char|bool'.split('|') moab_struct_naming_pat = re.compile(r'm([a-z_]+)_t(?=$|\W)') moab_common_out_pat = re.c...
Python
param.py
dhh1128/own_fix
apache-2.0
5,815
184
codeparrot/github-code