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
3f993e98c5883562aa6d1dc24e8f0be7421986bae05357e704b246f1832842a8
/******************************************************************************* * 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 f...
Java
odata2-lib/odata-core/src/test/java/org/apache/olingo/odata2/core/edm/provider/EdmNamedImplProvTest.java
apache/olingo-odata2
apache-2.0
4,281
101
codeparrot/github-code
f59cd341c4e2146f8ce6c62d4f8fd16bcb3f56f2d115c36578b16c8d21ee6611
/* * 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
modules/zookeeper/src/main/java/org/apache/ignite/spi/discovery/zk/internal/ZookeeperClient.java
shroman/ignite
apache-2.0
38,713
1,333
codeparrot/github-code
2b6fba38612d79953b932e43cbc5c0e7ead40bd172b924f1c9b2fa6e35f73f20
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <title>Implementation</title> <link rel="stylesheet" href="../../../doc/src/boostbook.css" type="text/css"> <meta name="generator" content="DocBook XSL Stylesheets V1.78.1"> <link rel="home" href="../index.html" title="The Boost C++ Li...
HTML
src/boost_1_57_0/doc/html/circular_buffer/implementation.html
biospi/seamass-windeps
apache-2.0
31,326
403
codeparrot/github-code
9c28587b622fecbeff17d32da0ba0ee31573c1f74dc015d69d0547dcc8d0304e
/* * Copyright (c) 2008-2017, Hazelcast, 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 ...
Java
hazelcast/src/test/java/com/hazelcast/internal/partition/impl/PartitionReplicaStateCheckerTest.java
tombujok/hazelcast
apache-2.0
12,515
280
codeparrot/github-code
f2aecea8d105a7536a6c6fc6b6018ce69ca9a016085c4f2c85a9ece84287fe13
/** * @file * Transmission Control Protocol for IP * * This file contains common functions for the TCP implementation, such as functinos * for manipulating the data structures and the TCP timer functions. TCP functions * related to input and output is found in tcp_in.c and tcp_out.c respectively. * */ /* * Co...
C
components/lwip/core/tcp.c
daiyinger/esp-idf
apache-2.0
64,976
2,106
codeparrot/github-code
804deca262741fbf059dc252fac293e71f7a0816994b2d0d4959e5f5ac9fb055
import {buildUrl} from '#ads/google/a4a/shared/url-builder'; import {dict} from '#core/types/object'; import {Services} from '#service'; /** * A fake ad network integration that is mainly used for testing * and demo purposes. This implementation gets stripped out in compiled * production code. * @implements {./a...
JavaScript
extensions/amp-auto-ads/0.1/ping-network-config.js
jpettitt/amphtml
apache-2.0
1,416
69
codeparrot/github-code
1276ddaedf9c5526ce450502a883ef26dbb2dda9da1aeb17e342e346c56bb991
/******************************************************************************* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this...
Java
src/test/resources/apache-ofbiz-16.11.03/applications/order/src/main/java/org/apache/ofbiz/order/test/PurchaseOrderTest.java
yuri0x7c1/ofbiz-explorer
apache-2.0
4,793
102
codeparrot/github-code
97c47dcee897c9843a516d7a94c9b53bd047a0f6b38ece315b8127c82113d7c9
/* -------------------------------------------------------------------------- */ /* Copyright 2002-2016, OpenNebula Project, OpenNebula Systems */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); you may ...
C
include/RequestManagerChmod.h
alvarosimon/one
apache-2.0
8,828
254
codeparrot/github-code
a8dd321ddc08ed86243aea36cbdb77e18a667d851781d8f8a8f0b4c38556aabc
/* * Copyright 2017 PayPal * * 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
samples/pubsub/pubsubsvc/src/main/scala/org/squbs/samples/pubsub/actors/UnsignedHexUtil.scala
Harikiranvuyyuru/squbs
apache-2.0
2,773
78
codeparrot/github-code
1127d0533645b0b1bc05927b8c54d4d67b4afcf3a4ebbdab75200de947437f92
/* * Copyright 2018 NAVER Corp. * * 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 w...
Java
plugins-it/cassandra-it/src/test/java/com/navercorp/pinpoint/plugin/cassandra/CassandraDatastax_3_0_x_IT.java
naver/pinpoint
apache-2.0
1,743
46
codeparrot/github-code
661fce1b61e4d19f277e7b19fe39ac32036ccbf0f18670c444d4de6a3d189dd4
# 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 u...
Shell
conf/cassandra-env.sh
newrelic-forks/cassandra
apache-2.0
10,338
274
codeparrot/github-code
01cf9681f0799c00b42dd734af50ac0140e4a6f02710ec398f76d83c8f23de7d
void cfunc1(); void cfunc1(void); float cfunc2(); float cfunc2(long a, int b); typedef double (^double_bin_op_block)(double, double); double_bin_op_block cfunc3(double (^)(double, double)); float cfunc4(); void exit(int); double pow(double x, double y); long double powl(long double x, long double y); void f16ptrfu...
C
test/Inputs/clang-importer-sdk/usr/include/cfuncs.h
apple/swift
apache-2.0
1,611
63
codeparrot/github-code
5bea0ee267e7bdf87ccce94b91d2048cb8f1673636c0e6908a70af5ee5a935a8
/* * 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
server/src/test/java/org/elasticsearch/search/aggregations/InternalMultiBucketAggregationTests.java
coding0011/elasticsearch
apache-2.0
10,038
184
codeparrot/github-code
937964915984b50e714b0486639f6d2291c1efeabe6eb103ae3d4bfd01a84611
/** * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribu...
Java
src/test/java/org/apache/aurora/scheduler/thrift/aop/FeatureToggleInterceptorTest.java
shahankhatch/aurora
apache-2.0
2,870
85
codeparrot/github-code
0c4f88965cb683c6b04611144e02b1c6c193712628f1768fffd0a8c580caf5a5
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /** * 微信端函数库 */ class Wxfunction { #上传图片 function fileimg($arr,$url){ if ($this->upload->do_upload($arr)) { # 上传成功,获取文件路径 $fileinfo = $this->upload->data(); $this->config->load('upload.php'); $upload = $this->config->item('uplo...
PHP
home/libraries/Wxfunction.php
kerenTeam/Besting-dev
apache-2.0
774
45
codeparrot/github-code
215584b6e997f1054e68c3f47414a901395f9e647a2696cc99c2f07d6acccfc1
/* * Copyright 2010-2012 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 "l...
Java
src/main/java/com/amazonaws/services/ec2/model/LaunchPermissionModifications.java
puppetlabs/aws-sdk-for-java
apache-2.0
6,993
208
codeparrot/github-code
b7edd93cd2f285b1d21055f339c95d3d2005b11ced2977da563e723c4ae1370a
package org.simpleframework.xml.core; import junit.framework.TestCase; import java.io.StringWriter; import java.util.Arrays; import org.simpleframework.xml.Element; import org.simpleframework.xml.ElementList; import org.simpleframework.xml.ElementListUnion; import org.simpleframework.xml.ElementUnion; impor...
Java
test/src/org/simpleframework/xml/core/Test5Test.java
unisx/simplexml
apache-2.0
3,015
96
codeparrot/github-code
6b597a3d5a08fbcb05ec47b1663efa1cdbbadb91c3d1d468d63a56f034134b3d
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PowerShellTools.Common { internal static class Constants { public const string ProcessManagerHostUri = "net.pipe://localhost/"; public const string Intelli...
C#
PowershellTools.Common/Constants.cs
daviwil/poshtools
apache-2.0
5,323
116
codeparrot/github-code
8a80fbe15fdf922ceb58e3be15ece8514d9d7355602e3adabe1f6ce90a3f6b16
/* * Licensed to GraphHopper GmbH under one or more contributor * license agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. * * GraphHopper GmbH licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not ...
Java
core/src/main/java/com/graphhopper/util/DistancePlaneProjection.java
routexl/graphhopper
apache-2.0
2,908
77
codeparrot/github-code
125ff37fb05220ad0ae1feaa83052f64f3672df17e9721fb1aafb8573b1d4cb1
// 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...
TypeScript
js/src/util/bn.ts
apache/arrow
apache-2.0
10,623
232
codeparrot/github-code
4ec165a87a34835fd2898b3d67299ab771d59a997d0858c419ac203f11b719ea
/** * 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
gora-core/src/main/java/org/apache/gora/store/DataStoreFactory.java
cguzel/gora
apache-2.0
18,590
485
codeparrot/github-code
af0630db1f9ed31d7fb94b27b70a30e4a3fedbc0dd811fa5e76ce44617e59ba9
//===--- Executor.h - ABI structures for executors --------------*- C++ -*-===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
C
include/swift/ABI/Executor.h
apple/swift
apache-2.0
8,444
255
codeparrot/github-code
f4fa5be7ad81ce21c4668c9208f12246abf46e20cdd0f9891b12a26b7b2d0b53
// // CairoPdfWriter.cs // // Author: // Krzysztof Marecki // // Copyright (c) 2010-2011 Krzysztof Marecki // // This file is part of the NReports project // This file is part of the My-FyiReporting project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this ...
C#
RdlGtkViewer/RdlGtkViewer/CairoPdfWriter.cs
majorsilence/My-FyiReporting
apache-2.0
2,049
73
codeparrot/github-code
634b7a9bff3c7d8ada2c2b8c1215c4c5b53f6f774c5d419b512ca2fb3ff3aadb
/* * 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
src/test/java/org/apache/commons/lang3/ArrayUtilsInsertTest.java
britter/commons-lang
apache-2.0
13,102
254
codeparrot/github-code
9559b965ee72cc7c4c241d7e3c2b2d754cd83ec9faa810c48d5b1950285061bb
package org.apache.lucene.expressions.js; /* * 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...
Java
lucene/expressions/src/test/org/apache/lucene/expressions/js/TestJavascriptFunction.java
zhangdian/solr4.6.0
apache-2.0
10,853
269
codeparrot/github-code
96fcd147ee0b8970f6e32477165865c26f092df7bd01e2305aeff1e0036ca255
"""Platform for retrieving meteorological data from Environment Canada.""" import datetime import re from env_canada import ECData # pylint: disable=import-error import voluptuous as vol from homeassistant.components.weather import ( ATTR_FORECAST_CONDITION, ATTR_FORECAST_PRECIPITATION_PROBABILITY, ATTR_...
Python
homeassistant/components/environment_canada/weather.py
sdague/home-assistant
apache-2.0
8,104
237
codeparrot/github-code
2a4507654b2f01507e7612b504dcfdc0643866a1386b5ecae458a84479ffbf3f
/* * Copyright 2012 gitblit.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 applicable law or ...
Java
src/main/java/com/gitblit/models/SubmoduleModel.java
heavenlyhash/gitblit
apache-2.0
1,266
47
codeparrot/github-code
ea4033076c58ac41da8a8e48dd02dbfa7b7b364c076b2f4fb0e20df11eb495ef
// ---------------------------------------------------------------------------------- // // Copyright Microsoft 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.apa...
C#
WindowsAzurePowershell/src/Management.ServiceManagement/IaaS/PersistentVMs/StartAzureVM.cs
Juliako/azure-sdk-tools
apache-2.0
2,400
67
codeparrot/github-code
2c795fcd989ca5012c4cef8296eca6eb50f61e1a6cc3a62a498494d10412a560
<?php final class DoorkeeperBridgeJIRA extends DoorkeeperBridge { const APPTYPE_JIRA = 'jira'; const OBJTYPE_ISSUE = 'jira:issue'; public function canPullRef(DoorkeeperObjectRef $ref) { if ($ref->getApplicationType() != self::APPTYPE_JIRA) { return false; } $types = array( self::OBJTYP...
PHP
src/applications/doorkeeper/bridge/DoorkeeperBridgeJIRA.php
freebsd/phabricator
apache-2.0
4,347
158
codeparrot/github-code
3d3bf07d33c6f2f822d11185d5fe2d4ff5fe0ac62ce8ed0cb294ed80b08ece75
/* * Copyright (c) 2008-2017, Hazelcast, 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 ...
Java
hazelcast/src/test/java/com/hazelcast/map/QueryListenerTest.java
juanavelez/hazelcast
apache-2.0
6,032
172
codeparrot/github-code
69965181529cedff0d864c2f9b46153681130b95e2e6da1474a85bf1940d2bc6
/* * 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-impl/src/com/intellij/refactoring/replaceConstructorWithBuilder/ReplaceConstructorWithBuilderViewDescriptor.java
paplorinc/intellij-community
apache-2.0
1,084
36
codeparrot/github-code
32477496a3de98ec1065d8b872cdd899e303321b8c77383949ed52a020e8319f
/******************************************************************************* * Copyright 2012 University of Southern California * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * ...
Java
karma-common/src/main/java/edu/isi/karma/rep/sources/InvocationManager.java
rpiotti/Web-Karma
apache-2.0
11,985
365
codeparrot/github-code
5c23a9e0378688f2e36590cd8e86efd81b2739493b85b0e7e4a17aef9c43e655
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Threading; using System.Threading.Tasks; using Micro...
C#
src/EditorFeatures/Test/MinimalTestExportProvider.cs
danielcweber/roslyn
apache-2.0
8,003
152
codeparrot/github-code
912375413a30749f2b39471ae99828cc5c3455e561dcfb16fad85738ce60e830
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Trackback Class : CodeIgniter User Guide</tit...
HTML
user_guide/libraries/trackback.html
prashants/webzash-v1-defunct
apache-2.0
12,107
246
codeparrot/github-code
cce8c7940f7aafe80cdbfe527ef500275e35d35dd8eba25a44c4352ecb6f63bd
/** * Copyright 2010 Wallace Wadge * * 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
bonecp/src/test/java/com/jolbox/bonecp/TestCloseThreadMonitor.java
squidsolutions/bonecp
apache-2.0
3,341
108
codeparrot/github-code
b359e52566cbd10051d620421693ab22335440b627a4d91cf87ed486f6e8429a
/* * 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
indexing-service/src/main/java/org/apache/druid/indexing/common/task/batch/parallel/distribution/ArrayOfStringsNullSafeSerde.java
monetate/druid
apache-2.0
3,797
111
codeparrot/github-code
8f78d264a1033be5827b201e1a3e3fb68b49a13ba17f88632f5fd2c462982ce0
/* filesys.c -- filesystem specific functions. $Id: filesys.c,v 1.6 2004/07/30 17:17:40 karl Exp $ Copyright (C) 1993, 1997, 1998, 2000, 2002, 2003, 2004 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public Lice...
C
head/contrib/texinfo/info/filesys.c
dplbsd/soc2013
bsd-2-clause
19,720
712
codeparrot/github-code
073c713e88726261cbda72cf42c890b228a2bc591e9040ccb96b36363fa2b2e4
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_CHROMEOS_SET_TIME_DIALOG_H_ #define CHROME_BROWSER_CHROMEOS_SET_TIME_DIALOG_H_ #include <string> #include "base/compiler_specific...
C
third_party/webrtc/include/chromium/src/chrome/browser/chromeos/set_time_dialog.h
ssaroha/node-webrtc
bsd-2-clause
2,064
57
codeparrot/github-code
8e3f56a1b5aff171be7be2dc665e87b1fc2a4b3cbfa4f7d47e935170b32dc027
// -*- coding: utf-8 -*- // Copyright (C) 2014 Yusuke Suzuki <utatane.tea@gmail.com> // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright // ...
JavaScript
test/es6-block-scope.js
mysticatea/escope
bsd-2-clause
8,227
200
codeparrot/github-code
8f638a2fb0bce120c1380a9b8fcc2a808bc483401011e2cc3f90b5c8fbaf1a69
import json import logging import inspect from .decorators import pipeline_functions, register_pipeline from indra.statements import get_statement_by_name, Statement logger = logging.getLogger(__name__) class AssemblyPipeline(): """An assembly pipeline that runs the specified steps on a given set of statem...
Python
indra/pipeline/pipeline.py
johnbachman/indra
bsd-2-clause
16,636
434
codeparrot/github-code
b622112d8f3e17da1cb18f12716df0887c433ceeda424f98ef5f75454b79167f
# Factory methods for UITabBarItem. I've never understood why UITabBarItem makes # it so easy to set the view tag, but these methods do not require you to do so. class UITabBarItem class << self def titled(title, options={}) tag = options.fetch(:tag, 0) image = options[:image] badge = options[...
Ruby
lib/ios/sugarcube-factories/uitabbaritem.rb
earthrid/sugarcube
bsd-2-clause
2,351
90
codeparrot/github-code
692655365e8c17c03c18997a4e8b66c2da2b2eb37acfa35076796113647a6ba1
// Copyright (C) 2017 Josh Wolfe. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- description: Bitwise AND for BigInt values esid: sec-bitwise-op info: | BitwiseOp(op, x, y) 1. Let result be 0. 2. Let shift be 0. 3. Repeat, until (x = 0 or x = -1) and (y = 0 o...
JavaScript
Jint.Tests.Test262/test/language/expressions/bitwise-and/bigint.js
sebastienros/jint
bsd-2-clause
6,297
108
codeparrot/github-code
dbb131dd44c8a032a2843a6b2d09a6933820dae6f9fe406f6ade12044ed7c06c
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_SCREEN_LOCKER_H_ #define CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_SCREEN_LOCKER_H_ #include <string> #include "base...
C
chrome/browser/chromeos/login/lock/screen_locker.h
ondra-novak/chromium.src
bsd-3-clause
6,305
197
codeparrot/github-code
2faafbf7823ef1c20be5bc05f05d3725d884334018eef041705fc48ac39118d7
/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty o...
C
Examples/Plugins/org.mitk.example.gui.customviewer.views/src/internal/DicomView.h
iwegner/MITK
bsd-3-clause
2,112
79
codeparrot/github-code
2ec360d788f599fe229fc6114e1a4a82e6da256bf42e0efd4d8246c877a339d7
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/sync_file_system/local/local_file_change_tracker.h" #include <queue> #include "base/location.h" #include "base/logging.h" #incl...
C++
chrome/browser/sync_file_system/local/local_file_change_tracker.cc
anirudhSK/chromium
bsd-3-clause
19,188
583
codeparrot/github-code
b8b028fc4cb2a4fd41c34c1c9305ad0b629271b50363b155bf704b6ff737736c
/* * Copyright (c) 2016 Goldman Sachs. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * and Eclipse Distribution License v. 1.0 which accompany this distribution. * The Eclipse Public License is available at http://www.ecli...
Java
eclipse-collections/src/main/java/org/eclipse/collections/impl/block/procedure/MaxComparatorProcedure.java
g-votte/eclipse-collections
bsd-3-clause
1,290
44
codeparrot/github-code
0f75b13a503b611ad320614406d1dc2d8b66f4f568293aca1fe34420fecb3f22
// Copyright (C) 2014 The Regents of the University of California (Regents). // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above...
C++
src/convolution.cpp
sweeneychris/akaze-eigen
bsd-3-clause
8,411
218
codeparrot/github-code
09822e19e459c56eebbf4f0aec5f2caa323dc5ca0862c7f861ec48c0d252564b
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ #define CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ #include "base/co...
C
chrome/browser/ui/views/frame/glass_browser_frame_view.h
ChromiumWebApps/chromium
bsd-3-clause
4,294
115
codeparrot/github-code
101b3dc03b968b0481daf231a5e08a40ff709bd40ae19df80fc5b4654068d9c9
/* * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
C
third_party/webrtc/modules/video_coding/main/source/jitter_buffer.h
guorendong/iridium-browser-ubuntu
bsd-3-clause
14,548
359
codeparrot/github-code
faa68b03f47984ea00d363d8931cbe93d2a3b4410bb935911867732d5b18fb38
/** * Copyright (c) 2014-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under both the Apache 2.0 license (found in the * LICENSE file in the root directory of this source tree) and the GPLv2 (found * in the COPYING file in the root directory of this source tree). * You may...
C++
osquery/logger/plugins/tls_logger.cpp
jedi22/osquery
bsd-3-clause
3,737
123
codeparrot/github-code
f8b4a3e247feb1b38cf6032f03051743fd69e324b7f025146732d876b98c0234
package org.webbitserver.stub; import org.webbitserver.EventSourceConnection; import org.webbitserver.HttpRequest; import org.webbitserver.WebSocketConnection; import java.util.LinkedList; import java.util.List; import java.util.concurrent.Executor; /** * Implementation of {@link EventSourceConnection} and {@link W...
Java
src/main/java/org/webbitserver/stub/StubConnection.java
webbit/webbit
bsd-3-clause
3,190
131
codeparrot/github-code
a4a5cbab6e0462ac0d91c1df45407487d4b4671a51182c70900403602a8bae40
/* Redis CLI (command line interface) * * Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions o...
C
src/redis-cli.c
lrita/redis-2.8.24-with-comment
bsd-3-clause
75,592
2,281
codeparrot/github-code
096b00dfd17899966f5412c26afbfeffd7a394ae34636693f451208912cf7d01
// Copyright 2013 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "flutter/runtime/embedder_resources.h" #include <string.h> #include "flutter/fml/logging.h" namespace flutter { using runtime::ResourcesEntry;...
C++
runtime/embedder_resources.cc
cdotstout/sky_engine
bsd-3-clause
1,335
53
codeparrot/github-code
bfee5e486c347328a4952c97e01f05aa916fc3c9867f01288ed07fcb12348671
// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_WINDOW_H_ #define CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_WINDOW_H_ #pragma once #include "base/basictypes.h" ...
C
chrome/browser/chromeos/login/lock_window.h
aYukiSekiguchi/ACCESS-Chromium
bsd-3-clause
1,560
60
codeparrot/github-code
130b3a61508206a9eb31f46624fb2295f4ca2b10219d377ad7c8dee2b982487c
/** * Use `Polymer.IronValidatableBehavior` to implement an element that validates user input. * * ### Accessiblity * * Changing the `invalid` property, either manually or by calling `validate()` will update the * `aria-invalid` attribute. * * @demo demo/index.html * @polymerBehavior *...
JavaScript
third_party/polymer/v1_0/components-chromium/iron-validatable-behavior/iron-validatable-behavior-extracted.js
TheTypoMaster/chromium-crosswalk
bsd-3-clause
1,835
88
codeparrot/github-code
bd910cf100eebc02e3c99a270be156cfd6c633879bbc271953976da4e498b5d8
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "services/view_manager/server_view_drawn_tracker.h" #include "services/view_manager/server_view.h" #include "services/view_manager/server_view_d...
C++
services/view_manager/server_view_drawn_tracker.cc
collinjackson/mojo
bsd-3-clause
2,165
77
codeparrot/github-code
35ee5e5a78d1d080a2d8b3219eb3fdbf8282a07785e6bb415d9b50d9fd36c57c
/* * Copyright 2015 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef GrVkRenderTarget_DEFINED #define GrVkRenderTarget_DEFINED #include "src/gpu/GrRenderTarget.h" #include "src/gpu/vk/GrVkImage.h" #include "include/gpu/vk/GrVkTypes.h...
C
third_party/skia/src/gpu/vk/GrVkRenderTarget.h
youtube/cobalt
bsd-3-clause
7,180
183
codeparrot/github-code
43cee8963774995bc59efde2e11456a0368d30bbed283364ea504b854eb2698c
package org.motechproject.tasks.service.util; import org.joda.time.DateTime; import org.junit.Test; import org.motechproject.commons.api.MotechException; import org.motechproject.commons.date.util.DateUtil; import org.motechproject.tasks.service.util.KeyEvaluator; import static junit.framework.Assert.assertEquals; p...
Java
modules/tasks/tasks/src/test/java/org/motechproject/tasks/service/util/KeyEvaluatorTest.java
sebbrudzinski/motech
bsd-3-clause
2,767
49
codeparrot/github-code
3598a3b06dd76f43c22531be80469eece90e557d048aa6d842ec298d90d1c305
<?php /** * Виджет для отображения информации о модуле * Используется в панели управления * * @category YupeWidget * @package yupe.modules.yupe.widgets * @author Yupe Team <team@yupe.ru> * @license BSD http://ru.wikipedia.org/wiki/%D0%9B%D0%B8%D1%86%D0%B5%D0%BD%D0%B7%D0%B8%D1%8F_BSD * @version 0.1 * @link...
PHP
protected/modules/yupe/widgets/YModuleInfo.php
slivas/hoz
bsd-3-clause
742
32
codeparrot/github-code
e1c1455e8d2312cff1314471006688f5bde203db9ee0e467b5786a2d324fb41f
<?php class LoginForm extends YFormModel { public $email; public $password; public $remember_me; public $verifyCode; private $_identity; public function rules() { $module = Yii::app()->getModule('user'); return array( array('email, password', 'required'), ...
PHP
protected/modules/user2/forms/LoginForm.php
itrustam/yode
bsd-3-clause
2,648
81
codeparrot/github-code
f334ac132ba18251408dff43e422b9b62796cab8bb5b5a18c9622ebf6b022b0d
// Copyright (c) 2013 Intel Corporation. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. var _callbacks = {}; var _next_reply_id = 0; var postMessage = function(msg, callback) { var reply_id = _next_reply_id; _next_reply_id += 1; _call...
JavaScript
src/bluetooth/bluetooth_api.js
pk-sam/tizen-extensions-crosswalk
bsd-3-clause
39,100
1,194
codeparrot/github-code
9be842e3a1ed1db0621d10bd5e585496d9445aac6ff7960789fbdb2170605fc8
/* * Author: Zoltán Lajos Kis <zoltan.lajos.kis@ericsson.com> */ "use strict"; (function() { var util = require('util'); var ofp = require('../ofp.js'); var offsets = ofp.offsets.ofp_action_tp_port; module.exports = { "unpack" : function(buffer, offset) { var action = { ...
JavaScript
lib/ofp-1.0/actions/set-tp-dst.js
gaberger/oflib-node
bsd-3-clause
1,230
43
codeparrot/github-code
7e4b9d694cd07c73619fb68cd81d717ccfe5505e010ba2dee39796df00fde3d3
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/bind.h" #include "base/callback.h" #include "base/command_line.h" #include "base/memory/ref_counted.h" #include "base/message_loop/mess...
C++
chrome/browser/prefs/proxy_policy_unittest.cc
guorendong/iridium-browser-ubuntu
bsd-3-clause
8,849
233
codeparrot/github-code
760f6130c54493bb6e7426243d6541591e38cca077b3b0dfebf1b6ff54c84f41
{-# LANGUAGE RecordWildCards, GADTs #-} module CmmLayoutStack ( cmmLayoutStack, setInfoTableStackMap ) where import StgCmmUtils ( callerSaveVolatileRegs ) -- XXX layering violation import StgCmmForeign ( saveThreadState, loadThreadState ) -- XXX layering violation import BasicTypes import Cmm import ...
Haskell
compiler/cmm/CmmLayoutStack.hs
lukexi/ghc-7.8-arm64
bsd-3-clause
42,050
1,118
codeparrot/github-code
36844ab5c444cc8cb5c1eaea16fcd81d00e12beb9a21fc7d0916c00c1aa6604b
package org.hisp.dhis.commons.action; /* * Copyright (c) 2004-2015, University of Oslo * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above...
Java
dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/commons/action/GetCategoryOptionCombosAction.java
kakada/dhis2
bsd-3-clause
4,992
144
codeparrot/github-code
4028b586b42f95b1f812f56c3f966e0aa7d9066d6f5ac5b121a04b96bd309ab0
// Copyright (c) 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_BROWSER_RENDERER_HOST_COMPOSITING_IOSURFACE_CONTEXT_MAC_H_ #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITING_IOSURFACE_CONTEXT_MAC_H_ ...
C
content/browser/renderer_host/compositing_iosurface_context_mac.h
sencha/chromium-spacewalk
bsd-3-clause
3,054
86
codeparrot/github-code
3c57946bb52a20e2930d2c2ddcbee5d9ffdfafa849d4ed97217cd506f168a9de
/* ** Copyright 2001-2004, Travis Geiselbrecht. All rights reserved. ** Distributed under the terms of the NewOS License. */ #include <boot/stage2.h> #include <kernel/kernel.h> #include <sys/types.h> #include <kernel/arch/int.h> #include <kernel/arch/cpu.h> #include <kernel/console.h> #include <kernel/debug.h> #inc...
C
kernel/arch/x86_64/arch_timer.c
dioptre/newos
bsd-3-clause
2,116
92
codeparrot/github-code
9fb479d0f7e99fb6655ad4f48f6a32837fb41b750d2172883b97eb491bed3b91
/* * WPA Supplicant - Basic AP mode support routines * Copyright (c) 2003-2009, Jouni Malinen <j@w1.fi> * Copyright (c) 2009, Atheros Communications * * This software may be distributed under the terms of the BSD license. * See README for more details. */ #include "utils/includes.h" #include "utils/common.h" #...
C
wpa_supplicant/ap.c
kelvincheung/rt_hostap
bsd-3-clause
36,734
1,382
codeparrot/github-code
d0927f8cac9ce04535408e9e4ffc231e1fe6374b96f70d90c7753fabc37ebd1e
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/signin/signin_manager.h" #include "base/bind.h" #include "base/bind_helpers.h" #include "base/compiler_specific.h" #include ...
C++
chrome/browser/signin/signin_manager_unittest.cc
gavinp/chromium
bsd-3-clause
12,215
333
codeparrot/github-code
3d8c3ca0039503fdd199e0291311fc2af892300fae0e9f1b24335ce001429878
// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/browser/service_worker/service_worker_storage.h" #include <stdint.h> #include <string> #include <utility> #include "base/files/file_ut...
C++
content/browser/service_worker/service_worker_storage_unittest.cc
ds-hwang/chromium-crosswalk
bsd-3-clause
69,087
1,693
codeparrot/github-code
91fdce1b525883f623dae75d5c59ddd0b15b6b0e5ee19e7968c0e05f60c61856
/* * Copyright 2015 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef GrGLUniformHandler_DEFINED #define GrGLUniformHandler_DEFINED #include "src/gpu/glsl/GrGLSLUniformHandler.h" #include "src/gpu/gl/GrGLProgramDataManager.h" class Gr...
C
third_party/skia/src/gpu/gl/GrGLUniformHandler.h
youtube/cobalt
bsd-3-clause
2,597
79
codeparrot/github-code
d0937939c7dd623731d500ab404790119762a2aa0e6a4ae6731f9b487fd3d6cb
#!/usr/bin/env python ''' Copyright (c) 2013 Potential Ventures Ltd Copyright (c) 2013 SolarFlare Communications Inc All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code ...
Python
cocotb/generators/packet.py
stuarthodgson/cocotb
bsd-3-clause
2,962
77
codeparrot/github-code
971314967132c1ae4fad6e962af2387a96a69bc868f0c35953f2c5c7a1268330
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_RENDERER_MOUSE_LOCK_DISPATCHER_H_ #define CONTENT_RENDERER_MOUSE_LOCK_DISPATCHER_H_ #include "base/basictypes.h" #include "content/co...
C
content/renderer/mouse_lock_dispatcher.h
keishi/chromium
bsd-3-clause
3,129
84
codeparrot/github-code
de7d61c7e7b7279bf47032fe4737b4338a551459dbc33efe6a09de53a2905600
using System; using Autofac.Extras.Multitenant; using MultitenantExample.WcfService.Dependencies; namespace MultitenantExample.WcfService.ServiceImplementations { /// <summary> /// Common logic for building a service info response. /// </summary> /// <remarks> /// <para> /// This <s...
C#
Examples/MultitenantExample.WcfService/ServiceImplementations/ServiceInfoBuilder.cs
neoe1984/autofac
mit
2,072
54
codeparrot/github-code
45304330c69614383bfd2a2a7fac06bfaa1528a54faf0845bc0652c3342969ea
// Copyright (c) 2011-2016 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "clientmodel.h" #include "bantablemodel.h" #include "guiconstants.h" #include "guiutil.h" #include "peertablemodel....
C++
src/qt/clientmodel.cpp
Mirobit/bitcoin
mit
10,055
339
codeparrot/github-code
0cecfb7909d4ae370a3c4ac4dc51a4a23859f2cb90dbd2bf17a351ba495bae84
// // Copyright (c) 2008-2011, Kenneth Bell // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // to deal in the Software without restriction, including without limitation // the rights to use, copy, modify, ...
C#
src/ApplePartitionMap/BlockZero.cs
quamotion/discutils
mit
2,359
59
codeparrot/github-code
1181877ee04960f4328d66c2938bc9102291f44bdbefe79d34224a289f5dbbd7
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. /*++ Module Name: shmobjectmgr.cpp Abstract: Shared memory based object manager --*/ #include "shmo...
C++
src/pal/src/objmgr/shmobjectmanager.cpp
cydhaselton/coreclr
mit
39,735
1,568
codeparrot/github-code
0e55b576048fb83f70c0a15080565387a6d1097c64e0abd2404fec3a03862fa0
<?php /** * This file is part of the Meup GeoLocation Bundle. * * (c) 1001pharmacies <http://github.com/1001pharmacies/geolocation-bundle> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Meup\Bundle\GeoLocationBundle\Handler; ...
PHP
Handler/Locator.php
crazyball/geolocation-bundle
mit
1,378
58
codeparrot/github-code
e6dc7c21b9174227d47aa3277c346f43e4a485cfea4934b15cadb046fa7285ec
/* tslint:disable */ import { ReaderFragment } from "relay-runtime"; import { FragmentRefs } from "relay-runtime"; export type Headline_facet = { readonly name?: string | null; readonly " $refType": "Headline_facet"; }; export type Headline_facet$data = Headline_facet; export type Headline_facet$key = { re...
TypeScript
src/v2/__generated__/Headline_facet.graphql.ts
erikdstock/force
mit
1,048
49
codeparrot/github-code
87b78ebf635d00c7a89eb5b49f015108ecf915b979475e26bdb51de6d0a929b5
const models = require('../../models'); const {i18n} = require('../../lib/common'); const errors = require('@tryghost/errors'); const urlUtils = require('../../../shared/url-utils'); const ALLOWED_INCLUDES = ['tags', 'authors', 'authors.roles']; const UNSAFE_ATTRS = ['status', 'authors', 'visibility']; module.exports ...
JavaScript
core/server/api/v2/pages.js
e10/Ghost
mit
5,771
209
codeparrot/github-code
436bcacd745d24b6f80f27443fe20a0d18a3f3b2a3bb988775033388ca6217e9
package org.knowm.xchange.btce.v3; import java.io.IOException; import java.math.BigDecimal; import javax.ws.rs.Consumes; import javax.ws.rs.FormParam; import javax.ws.rs.HeaderParam; import javax.ws.rs.POST; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import org.knowm.xch...
Java
xchange-btce/src/main/java/org/knowm/xchange/btce/v3/BTCEAuthenticated.java
stevenuray/XChange
mit
6,812
147
codeparrot/github-code
fbd88717be044aef4ff1b32239ab34bf0a0c2e63357bcb13f7602a899cbcbe81
function trading_init(){ if (!this.trading){ //if (this.trading === undefined || this.trading === null){ this.trading = apiNewOwnedDC(this); this.trading.label = 'Trading'; this.trading_create_escrow_bag(); this.trading.currants = 0; } var escrow = this.trading_get_escrow_bag(); if (!escrow){ this.t...
JavaScript
players/inc_trading.js
yelworc/eleven-gsjs
mit
22,066
1,130
codeparrot/github-code
2b7ca7d71031c3d14de57981181ecdc0f8bd1cb1498da7d6f189259cf9a0be4b
/* * Copyright 2014-2016 CyberVision, 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 o...
C
flowerbed-ep/kaa/src/kaa/platform-impl/common/kaa_failover_strategy.c
Donny3000/auto-gardern-kaa
mit
2,618
85
codeparrot/github-code
0fd1092e39c4f18c3e1f21240819a5a82a2e2fac17ca5fb4400fc6d963c06278
/**************************************************************************** Copyright (c) 2011-2012 cocos2d-x.org Copyright (c) 2013-2014 Chukong Technologies Inc. http://www.cocos2d-x.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation...
JavaScript
frameworks/cocos2d-html5/extensions/cocostudio/armature/animation/CCTween.js
oneliojr/CityDefender
mit
16,987
453
codeparrot/github-code
556c0e50f89d0ea5ae0cee70f1b92882b965e5e78dff3476aad4b03fa8485d38
using UnityEngine; using UnityEditor; using System.Collections; [CanEditMultipleObjects] [CustomEditor(typeof(tk2dUIDropDownMenu))] public class tk2dUIDropDownMenuEditor : Editor { public override void OnInspectorGUI() { tk2dGuiUtility.LookLikeInspector(); base.OnInspectorGUI(); tk2dUIDropDo...
C#
Game/Assets/TK2DROOT/tk2dUI/Editor/Controls/tk2dUIDropDownMenuEditor.cs
Conflei/IndiesVSPewDiePie
mit
3,476
80
codeparrot/github-code
1760208446596e91414e69fddcbd8bd97f7821edd13ea6658602344863ed0fc2
#include <stdlib.h> #include <9unit.h> #include <hash/hhash.h> uint fill(HHash *T) { uint m = 0; for(uint i = 0; i < 100; ++i){ uint x = rand()%T->n; if(hhashsucc(T,x,0) < 0) if(hhashput(T,x,x)) ++m; } return m; } uint count(HHash *T) { uint m = 0; uint h = 0; while(h < T->n){ int i = hhashsucc(T,...
C
ut/test6.c
sigman78/libhhash
mit
550
45
codeparrot/github-code
6dde48ff479cf096243cdec2ce731bc1cbe2a15251096ea36a58e1b26ef49928
// © 2016 and later: Unicode, Inc. and others. // License & terms of use: http://www.unicode.org/copyright.html /* ******************************************************************************* * * Copyright (C) 2003-2015, International Business Machines * Corporation and others. All Rights Reserved. * **********...
C++
flaw-font-icu/src/icu/source/tools/toolutil/pkgitems.cpp
quyse/flaw
mit
22,302
635
codeparrot/github-code
b799cf22773f4909f2bf54404e2c23bbbbb4d3bc723b2a8ea29c04bce4b9cfa7
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
TypeScript
src/vs/editor/browser/viewParts/lineNumbers/lineNumbers.ts
landonepps/vscode
mit
6,205
180
codeparrot/github-code
360811597da65260252f1aeb2ad0dc8ad72934040d6a0fec7f3190c7fcf5aaef
<?php class FileCacher{ public function __construct($url, $config) { $this->user = (logged_in()) ? Visitor::current()->login : "guest" ; $this->path = INCLUDES_DIR."/caches/".sanitize($this->user); $this->caches = INCLUDES_DIR."/caches"; $this->url = $url; ...
PHP
modules/cacher/filecacher.php
vito/chyrp-site
mit
2,706
83
codeparrot/github-code
8e7bb72b387b96d3bfefcb146ad5748c70c61a9aeeda17e305ab984272c31e58
#ifndef org_apache_lucene_queryparser_flexible_standard_builders_NumericRangeQueryNodeBuilder_H #define org_apache_lucene_queryparser_flexible_standard_builders_NumericRangeQueryNodeBuilder_H #include "java/lang/Object.h" namespace org { namespace apache { namespace lucene { namespace queryparser { ...
C
project/venv/lib/python2.7/site-packages/lucene-4.9.0-py2.7-linux-x86_64.egg/lucene/include/org/apache/lucene/queryparser/flexible/standard/builders/NumericRangeQueryNodeBuilder.h
devs4v/devs4v-information-retrieval15
mit
2,822
106
codeparrot/github-code
2454d36c80509d88ffa27f78c950ee34dec1fcca26a9d25c53facc0f70af39dc
module Pageflow module WidgetsHelper def render_widget_head_fragments(entry, options = {}) fragments = entry.widgets.resolve(options).map do |widget| widget.widget_type.render_head_fragment(self, entry) end safe_join(fragments) end def render_widgets(entry, options = {}) ...
Ruby
app/helpers/pageflow/widgets_helper.rb
schoetty/pageflow
mit
1,252
44
codeparrot/github-code
c4014590470f612defce10389c1082c09a3e1c8a9c713a4b55bf52e2c5e60865
import pyspeckit import os from pyspeckit.spectrum.models import nh2d import numpy as np import astropy.units as u if not os.path.exists('p-nh2d_spec.fits'): import astropy.utils.data as aud from astropy.io import fits f = aud.download_file('https://github.com/pyspeckit/pyspeckit-example-files/raw/master/...
Python
examples/example_pNH2D.py
jpinedaf/pyspeckit
mit
1,329
41
codeparrot/github-code
fbcd3b0a6443217720a0cc0499e68ae77604c4de8afe7a6356b745118a428d02
<?php /* * This file is part of the Sylius package. * * (c) Paweł Jędrzejewski * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Sylius\Bundle\PaymentsBundle\Form\Type; use Symfony\Component\Form\FormBuilderInterface; us...
PHP
src/Sylius/Bundle/PaymentsBundle/Form/Type/CreditCardType.php
chuandadexiaoyu/UniversitySylius
mit
2,993
115
codeparrot/github-code
9aafa78f29d8206896cd76aca3ad83644a59f3c33cc9811fc66a942e34b32b87
/************************************************************************************* Extended WPF Toolkit Copyright (C) 2007-2013 Xceed Software Inc. This program is provided to you under the terms of the Microsoft Public License (Ms-PL) as published at http://wpftoolkit.codeplex.com/license ...
C#
wpftoolkit-110921/Main/Source/ExtendedWPFToolkitSolution_35/Src/Xceed.Wpf.Toolkit/DropDownButton/Implementation/DropDownButton.cs
BenInCOSprings/WpfDockingWindowsApplicationTemplate
mit
12,389
418
codeparrot/github-code
f9436c2bb3c9ddfbcb5adc97a2e6650a91e5f7dd0fbc8340514b11560ab1abaa
/* * (C) Copyright 2011 * Joe Hershberger, National Instruments, joe.hershberger@ni.com * * (C) Copyright 2000 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. * * SPDX-License-Identifier: GPL-2.0+ */ #include <common.h> #include <command.h> #include <mapmem.h> #include <u-boot/md5.h> #include <asm/io.h...
C
u-boot/cmd/md5sum.c
guileschool/beagleboard
mit
3,651
184
codeparrot/github-code
8c6578b803c02210c9b1c7b9ac0a62ea1b03ade0449388b84f69f9f60a602578
/***************************************************************************** * AudioEffects.h: MacOS X interface module ***************************************************************************** * Copyright (C) 2004-2012 VLC authors and VideoLAN * $Id: 143bb864b648a2502bd68b3be632de9ee8dee3aa $ * * Authors: ...
C
vlc-2.1.4/modules/gui/macosx/AudioEffects.h
junioraby/architec.awardspace.info
mit
4,902
148
codeparrot/github-code
07ee70e02f2dfcf108662d3c4b3131c29ec0efc538c5c23cf62f80ab66b1cf57
/* * Copyright (c) 2016, NVIDIA CORPORATION. * * SPDX-License-Identifier: GPL-2.0 */ #include <common.h> #include <asm/io.h> #include <dm.h> #include <mailbox-uclass.h> #include <dt-bindings/mailbox/tegra186-hsp.h> #define TEGRA_HSP_INT_DIMENSIONING 0x380 #define TEGRA_HSP_INT_DIMENSIONING_NSI_SHIFT 16 #define T...
C
u-boot/drivers/mailbox/tegra-hsp.c
guileschool/beagleboard
mit
4,510
195
codeparrot/github-code
7bbcc6db7b021f9de02d25edeffcf09886da8d1c88ae983c10320a93e8e6979a
using System; using System.Collections; namespace NBarCodes { class Code128Encoder : ISymbolEncoder { // consider using this on code 39!! private class SymbolWrap { private readonly BitArray symbol; private readonly int value; public SymbolWrap(BitArray s, int v) { symbol = s; ...
C#
src/NBarCodes/BarCodes/Code128/Code128Encoder.cs
satrion/nbarcodes
mit
13,489
257
codeparrot/github-code
17b2c5b35e619a498d1f27d07b57331e47f1706e5c0a1e1c4f330bfa00c65f6f
/* Copyright (c) 2011 Arduino. All right reserved. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This ...
C++
zap-2.3.0-windows/papilio-zap-ide/hardware/arduino/sam/variants/arduino_due_x/variant.cpp
chcbaram/FPGA
mit
21,728
414
codeparrot/github-code
4b8ea4dbbf62b45435819a4f50cb9235816f9a9dfbcba8f0aae691be9b25837f
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Media; namespace Splat { public static class ColorExtensions { public static Color ToNative(this System.Drawing.Color This) { return Color.FromAr...
C#
Splat/Xaml/Color.cs
shiftkey/splat
mit
787
32
codeparrot/github-code