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 |
|---|---|---|---|---|---|---|---|---|
b0abf5525f762f46ece379e5b5d6e94271b0fedd851b5822bb893b8ee285e1a3 | package org.stagemonitor.requestmonitor.ejb;
import static net.bytebuddy.matcher.ElementMatchers.named;
import static net.bytebuddy.matcher.ElementMatchers.returns;
import static net.bytebuddy.matcher.ElementMatchers.takesArguments;
import net.bytebuddy.description.method.MethodDescription;
import net.bytebuddy.descr... | Java | stagemonitor-requestmonitor/src/main/java/org/stagemonitor/requestmonitor/ejb/IsDeclaredInInterfaceHierarchyElementMatcher.java | trampi/stagemonitor | apache-2.0 | 1,446 | 40 | codeparrot/github-code |
4f667f607140fedd6e8f9eb450479facd8f036b886adf520ffb72ee462f4cd73 | /*
* %CopyrightBegin%
*
* Copyright Ericsson AB 1996-2014. 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
*
... | C | erts/emulator/beam/dist.c | hairyhum/otp | apache-2.0 | 97,687 | 3,728 | codeparrot/github-code |
839aba6f40bf5f48517b93476433459a5ba5218534882683d57f4adb9942c6cc | #! /usr/bin/python
'''
Saves relevant data fed back from TwitterStream etc next to its PID and timestamp ready for analysis
Needs to do limited analysis to work out which keywords in the tweet stream correspond to which programme
'''
from datetime import datetime
import os
import string
import time as time2
from time... | Python | Sketches/AB/backup/Bookmarks/DataCollector.py | sparkslabs/kamaelia_ | apache-2.0 | 13,360 | 217 | codeparrot/github-code |
a0b570730c72cd6eedc015ec61c90bc3eb3cff78df26b00db5ff6907531dc0b9 | /*
* Copyright 2011 DTO Solutions, Inc. (http://dtosolutions.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 r... | Java | core/src/main/java/com/dtolabs/rundeck/core/resources/DirectoryResourceModelSourceFactory.java | tjordanchat/rundeck | apache-2.0 | 2,236 | 59 | codeparrot/github-code |
ed73e7a4b34260fb10d834195c540cab8589ec44a2a053462b4cccb879f0a172 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Scala | sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetFileFormat.scala | akopich/spark | apache-2.0 | 28,932 | 657 | codeparrot/github-code |
c7f7960b6b0d9e73b19f9fff8a3d8c17dfe0e1984d5f8650983ed9cfb1b94504 | /*
*
* Copyright 2015 gRPC 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 agree... | C++ | src/core/lib/iomgr/iomgr_windows.cc | carl-mastrangelo/grpc | apache-2.0 | 3,126 | 98 | codeparrot/github-code |
7d89f883903603173b745f83bc89614d032e0bfb6d1fc918ad70328173725bac | /**
*
* Copyright © 2016-2019 Florian Schmaus
*
* 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 la... | Java | smack-experimental/src/main/java/org/jivesoftware/smackx/iot/data/provider/IoTDataRequestProvider.java | igniterealtime/Smack | apache-2.0 | 1,442 | 38 | codeparrot/github-code |
2c05017bc2882f741230a43ad306f9886506675268b2ed35101ec1d4ae8085a5 | /*
* 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/main/java/org/apache/geode/internal/cache/locks/TXLockBatch.java | smgoller/geode | apache-2.0 | 5,005 | 158 | codeparrot/github-code |
b74742673dc87d2036bf077fa63550fe4f15be5bace5d0299b78b23dcc62aec7 | /*
* 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 | phoenix-core/src/it/java/org/apache/phoenix/end2end/AlterMultiTenantTableWithViews.java | RCheungIT/phoenix | apache-2.0 | 39,739 | 702 | codeparrot/github-code |
c3e6c6a02f7b97c4153d695667c0845c347dd2d081d3384738ba0d12e2aeb8e1 | package com.intellij.openapi.externalSystem.service.project;
import com.intellij.openapi.externalSystem.model.DataNode;
import com.intellij.openapi.externalSystem.model.ProjectKeys;
import com.intellij.openapi.externalSystem.model.project.ContentRootData;
import com.intellij.openapi.externalSystem.model.project.Librar... | Java | platform/external-system-impl/src/com/intellij/openapi/externalSystem/service/project/ProjectStructureHelper.java | android-ia/platform_tools_idea | apache-2.0 | 9,454 | 253 | codeparrot/github-code |
b1814a6ed1b3b1885ce7eb1d1f9354b1b6c80d7770ebab1eeb3d682e8ca84eab | /*
* Copyright 2000-2009 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-indexing-impl/src/com/intellij/psi/impl/search/JavaSourceFilterScope.java | android-ia/platform_tools_idea | apache-2.0 | 2,412 | 75 | codeparrot/github-code |
98155225672fb4a285005b21787eb1033f63fc5680241041e63ca891d82ef1d5 | package com.adsdk.sdk.nativeformats;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.lang.Thread.UncaughtExceptionHandler;
import java.nio.charset.Charset;
import org.apache.http.... | Java | src/main/java/com/adsdk/sdk/nativeformats/NativeFormat.java | palaniyappanBala/MobFox-Android-SDK | apache-2.0 | 6,782 | 221 | codeparrot/github-code |
bfe54ce27ab5cf614c63991a1ac6c29155ff52bc3a437e5b477804e308014141 | /*
* Copyright 2013 Hewlett-Packard Development Company, L.P
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | Java | ali-plugin-main/src/test/java/com/hp/alm/ali/idea/services/AttachmentServiceTest.java | kovalcikr/ali-idea-plugin | apache-2.0 | 9,833 | 238 | codeparrot/github-code |
4a96e43b41135f9db83d739daad3189b124896ef508f958ecdbc470f1079721b | /**
* Copyright 2015 The AMP HTML 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 require... | JavaScript | test/functional/test-platform.js | avimehta/amphtml | apache-2.0 | 7,502 | 250 | codeparrot/github-code |
5d187d207f61881e9cedb3337669d0b06e11f4aaea1218cb81ca620c16001e4a | /*
* 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-gfsh/src/integrationTest/java/org/apache/geode/management/internal/cli/functions/Geode3544JUnitTest.java | smgoller/geode | apache-2.0 | 4,524 | 162 | codeparrot/github-code |
25110cc981815c2171b6b2acf305d28612ce1607b4cf0ebbb91ebe14c7832a58 | /*
* Copyright (c) 2003-2015 Rony Shapiro <ronys@users.sourceforge.net>.
* All rights reserved. Use of the code is allowed under the
* Artistic License 2.0 terms, as specified in the LICENSE file
* distributed with this code, or available from
* http://www.opensource.org/licenses/artistic-license-2.0.php
*/
#pragma on... | C | src/ui/Windows/Options_PropertyPage.h | ronys/pwsafe-test | artistic-2.0 | 7,347 | 199 | codeparrot/github-code |
764b35ca805d8cbc08eb3d99a62512017dbaddb5e3084df8a01d6198ab88e03b | namespace eidss.winclient.FlexForms.Controls
{
partial class DesignerHost
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
... | C# | EIDSS v6/eidss.winclient/FlexForms/Controls/DesignerHost.Designer.cs | EIDSS/EIDSS-Legacy | bsd-2-clause | 1,163 | 38 | codeparrot/github-code |
8597e13060f5ca64de780b1d890ab1bcbf2063815981692a892a0950e230ab5f | /*
* JFFS2 -- Journalling Flash File System, Version 2.
*
* Copyright (C) 2001-2003 Free Software Foundation, Inc.
*
* Created by Dominic Ostrowski <dominic.ostrowski@3glab.com>
* Contributors: David Woodhouse, Nick Garnett, Richard Panton.
*
* For licensing information, see the file 'LICENCE' in this directory... | C | src/fs/driver/jffs2/jffs2.c | abusalimov/embox | bsd-2-clause | 41,963 | 1,785 | codeparrot/github-code |
9609f916d04b672d8d030622d22923719c4b24a9d2fb13960877cb226aa24823 | ///////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2007-2011, Industrial Light & Magic, a division of Lucas
// Digital Ltd. LLC
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that ... | C | external/openexr/PyIlmBase/PyImath/PyImathFixedArray2D.h | zq317157782/raiden | bsd-2-clause | 39,917 | 803 | codeparrot/github-code |
a509e0567c02b7b6dbaff245bf25a3ff6b902ba47cbe9379d28515de1a23166a | #include "stdhdr.h"
#include "camplib.h"
#include "mfd.h"
#include "Graphics/Include/render2d.h"
#include "dispcfg.h"
#include "simdrive.h"
#include "camp2sim.h"
#include "hud.h"
#include "aircrft.h"
#include "fack.h"
#include "otwdrive.h" //MI
#include "cpmanager.h" //MI
#include "icp.h" //MI
#include "aircrft.h" //MI... | C++ | src/sim/displays/testmfd.cpp | GPUWorks/freefalcon-central | bsd-2-clause | 7,687 | 278 | codeparrot/github-code |
4408d7dfa3eb0d6889e3749c9ec426bb2de7d18c4e819959a755578297f9ca11 | /*
* L.Handler.TouchZoom is used internally by L.Map to add touch-zooming on Webkit-powered mobile browsers.
*/
L.Handler.TouchZoom = L.Handler.extend({
enable: function() {
if (!L.Browser.touch || this._enabled) { return; }
L.DomEvent.addListener(this._map._container, 'touchstart', this._onTouchStart, t... | JavaScript | src/handler/TouchZoom.js | coomsie/Leaflet | bsd-2-clause | 3,183 | 87 | codeparrot/github-code |
75a8e4e9f9b9c1be624460c1af70e66e987331dcab9481a957531cf91f2b62a9 | require 'formula'
class Qt < Formula
homepage 'http://qt-project.org/'
url "http://download.qt-project.org/official_releases/qt/4.8/4.8.6/qt-everywhere-opensource-src-4.8.6.tar.gz"
sha1 "ddf9c20ca8309a116e0466c42984238009525da6"
head 'git://gitorious.org/qt/qt.git', :branch => '4.8'
bottle do
revision ... | Ruby | Library/Formula/qt.rb | ktheory/homebrew | bsd-2-clause | 3,379 | 112 | codeparrot/github-code |
93055db2603811c4ae0be4c4a09e50ef518411f4fdc34592f58f6eeca9118767 | class Znc < Formula
desc "Advanced IRC bouncer"
homepage "https://wiki.znc.in/ZNC"
url "https://znc.in/releases/archive/znc-1.7.5.tar.gz"
sha256 "a8941e1385c8654287a4428018d93459482e9d5eeedf86bef7b020ddc5f24721"
bottle do
sha256 "4bc43bf605d281484dbc34a779da628960df63ece897aa4d216ab6a7fc728b10" => :catal... | Ruby | Formula/znc.rb | zmwangx/homebrew-core | bsd-2-clause | 2,199 | 72 | codeparrot/github-code |
77aee4c507066515875608dd24bffa13407a08bea2188229c1468dfbb485864c | // Copyright 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.
#include "components/viz/common/frame_sinks/delay_based_time_source.h"
#include <stdint.h>
#include "base/test/simple_test_tick_clock.h"
#include "base/... | C++ | components/viz/common/frame_sinks/delay_based_time_source_unittest.cc | nwjs/chromium.src | bsd-3-clause | 12,582 | 351 | codeparrot/github-code |
4e4d8335db682201923b06e175b539fa04314d4d7cec18bc42052702124aa4fe | """
==========================================================================
Illustration of prior and posterior Gaussian process for different kernels
==========================================================================
This example illustrates the prior and posterior of a
:class:`~sklearn.gaussian_process.Ga... | Python | examples/gaussian_process/plot_gpr_prior_posterior.py | huzq/scikit-learn | bsd-3-clause | 8,547 | 262 | codeparrot/github-code |
ee23c869a143fa0c885081c8567e0c84b3e8b731a0d3d96fa889dda365d99901 | // 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_TRANSLATE_TRANSLATE_INFOBAR_DELEGATE_H_
#define CHROME_BROWSER_TRANSLATE_TRANSLATE_INFOBAR_DELEGATE_H_
#include <string>
#incl... | C | chrome/browser/translate/translate_infobar_delegate.h | hujiajie/pa-chromium | bsd-3-clause | 9,889 | 248 | codeparrot/github-code |
1eaa6e34bbfb9d27ce63f4ec58349378b37465299bed0d2badd82999df094b31 | // Copyright 2020 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 "components/update_client/crx_downloader_factory.h"
#include "build/build_config.h"
#if defined(OS_WIN)
#include "components/update_client/backg... | C++ | components/update_client/crx_downloader_factory.cc | nwjs/chromium.src | bsd-3-clause | 1,955 | 59 | codeparrot/github-code |
d71f03e4a5a0fd7fc3719bc8a762127d2a88e0662b7c9e2e5f984eeecbc45b3b | /*
*
* Copyright 2015, Google 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 must retain the above copyright
* notice, this list of condi... | C | src/core/lib/transport/transport.h | dklempner/grpc | bsd-3-clause | 13,186 | 314 | codeparrot/github-code |
a9dbb48aa2f1ce7310d2e1ce64e08d68ae8fc36499d4c5ab06b209b9ecd7b8f6 | /*
* File: NormalInverseGammaDistribution.java
* Authors: Kevin R. Dixon
* Company: Sandia National Laboratories
* Project: Cognitive Foundry
*
* Copyright Mar 16, 2010, Sandia Corporation.
* Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusi... | Java | Components/LearningCore/Source/gov/sandia/cognition/statistics/distribution/NormalInverseGammaDistribution.java | codeaudit/Foundry | bsd-3-clause | 11,067 | 395 | codeparrot/github-code |
e12da086d36d0bc790e0f913d59251ea9dfa8a3124bb1352b3f30809dae9c11d | // =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of t... | C++ | src/chrono/motion_functions/ChFunction_Poly345.cpp | projectchrono/chrono | bsd-3-clause | 2,431 | 85 | codeparrot/github-code |
cf6127223656ff3a40da1593b15f92e42ee25f802e9b6ff629e06f289f4b734b | # coding=utf-8
from __future__ import unicode_literals
from random import randint
from .. import Provider as AddressProvider
class Provider(AddressProvider):
address_formats = ['{{street_address}}, {{city}}, {{postcode}}']
building_number_formats = ['#', '##', '###']
city_formats = ['{{city_prefix}} {{f... | Python | oscar/lib/python2.7/site-packages/faker/providers/address/uk_UA/__init__.py | vicky2135/lucious | bsd-3-clause | 3,897 | 75 | codeparrot/github-code |
e8c975cb856bac9b8011c14a683b9523b61518d896008ea6cb710230faf30e6c | // Copyright (c) 2010, Google 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 must retain the above copyright
// notice, this list of conditi... | C++ | src/processor/network_source_line_server_unittest.cc | AlericInglewood/3p-google-breakpad | bsd-3-clause | 37,850 | 956 | codeparrot/github-code |
0d710237156c03b868ffc3457b7a29a55b4c994a5df7998ae46faee872fed546 | # Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved.
from __future__ import absolute_import
from digits.utils import subclass, override, constants
from digits.extensions.data.interface import DataIngestionInterface
from .forms import DatasetForm, InferenceForm
import numpy as np
import os
TEMPLATE = "temp... | Python | plugins/data/imageGradients/digitsDataPluginImageGradients/data.py | bygreencn/DIGITS | bsd-3-clause | 3,492 | 113 | codeparrot/github-code |
cdeaafa055f30394eab3a7f352c08dcc6b438652ee77915a85e0d1042770ef68 | /**
* rijndael-test-fst.c
*
* @version 3.0 (December 2000)
*
* Optimised ANSI C code for the Rijndael cipher (now AES)
*
* @author Vincent Rijmen <vincent.rijmen@esat.kuleuven.ac.be>
* @author Antoon Bosselaers <antoon.bosselaers@esat.kuleuven.ac.be>
* @author Paulo Barreto <paulo.barreto@terra.com.br... | C | examples/CPSAT/rijndael-test-fst.c | tazodie/tazodie-crisscross | bsd-3-clause | 27,849 | 1,013 | codeparrot/github-code |
cf33a3410ea3f3c7e72765a49f949fb723723e16622e012d3cd79e7de1e59989 | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
* @format
*/
import React, {Component} from 'react';
import Link from 'gatsby-link';
import {Icon} from 'antd';
import '... | JavaScript | website/src/components/Footer.js | facebook/css-layout | bsd-3-clause | 851 | 33 | codeparrot/github-code |
452914505114c30ce7f8300f9f545625f0b70f37716c6659aa2f4ebcfa9cbc7d | {% extends "feedback/base.html" %}
{% block site_js %}
{% javascript 'fxos_feedback' %}
{% endblock %}
{% block page_title %}{{ _('Submit Your Feedback') }}{% endblock %}
{% set extra_body_attrs = {'data-form-name': 'fxos'} %}
{% block content %}
<div class="content">
<header>
<div class="header-conte... | HTML | fjord/feedback/templates/feedback/fxos_feedback.html | staranjeet/fjord | bsd-3-clause | 9,700 | 263 | codeparrot/github-code |
190b04bba5e5372876bdbb53fff5ed8b75044e20a874ea0a09b4fa7f14ba1e2a | /***************************************************************************/
/* */
/* sfdriver.c */
/* */
/* ... | C | src/sfnt/sfdriver.c | kitsilanosoftware/FreeType | bsd-3-clause | 17,883 | 657 | codeparrot/github-code |
0c55fd2d43f93325d1a52eab415be4ed28634557143ab7c6a59a14f5e15f3d2c | /*
* Copyright (C) 2012 Google 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 must retain the above copyright
* notice, this list of conditio... | C++ | third_party/WebKit/Source/WebCore/platform/chromium/MemoryUsageSupportChromium.cpp | leighpauls/k2cro4 | bsd-3-clause | 2,647 | 76 | codeparrot/github-code |
4d1eac9389aa45b624898b291e5d67fdf6d31244747c445ca38cea38b221e834 | //==============================================================================
// Copyright 2003 - 2011 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2014 LRI UMR 8623 CNRS/Univ Paris Sud XI
// Copyright 2012 - 2014 MetaScale SAS
//
// Distributed under the Boost S... | C++ | third_party/boost/simd/constant/constants/simd/vmx/altivec/eight.hpp | hainm/pythran | bsd-3-clause | 4,832 | 131 | codeparrot/github-code |
9850c8d7ca9061b8e440e595e98bfeb53e1197d5abc399b68e3627b4a8788734 | """
exec_command
Implements exec_command function that is (almost) equivalent to
commands.getstatusoutput function but on NT, DOS systems the
returned status is actually correct (though, the returned status
values may be different by a factor). In addition, exec_command
takes keyword arguments for (re-)defining enviro... | Python | numpy/distutils/exec_command.py | shoyer/numpy | bsd-3-clause | 10,919 | 331 | codeparrot/github-code |
5543cb3086ac67926eadbc9ac100b3aad980f2c4ec740a8fc5af5e983eb42c4f | // Copyright 2017 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 THIRD_PARTY_BLINK_RENDERER_PLATFORM_GRAPHICS_CANVAS_COLOR_PARAMS_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_GRAPHICS_CANVAS_COLOR_PARAMS_H_
#... | C | third_party/blink/renderer/platform/graphics/canvas_color_params.h | scheib/chromium | bsd-3-clause | 3,109 | 94 | codeparrot/github-code |
702d7eb87d74b499ffabc6021f17051cec0c7f567a2d0627d6317a632e9a5528 | # -*- coding: utf-8 -*-
"""
wakatime.dependencies.haxe
~~~~~~~~~~~~~~~~~~~~~~~~~~
Parse dependencies from Haxe code.
:copyright: (c) 2018 Alan Hamlett.
:license: BSD, see LICENSE for more details.
"""
from . import TokenParser
class HaxeParser(TokenParser):
exclude = [
r'^haxe$',
... | Python | wakatime/dependencies/haxe.py | wakatime/wakatime | bsd-3-clause | 1,199 | 49 | codeparrot/github-code |
453d74bc8c7b972f5039d467af05cee4ef5b6b9cdd61e88495a683c64575cd6b | // 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 "media/video/capture/linux/video_capture_device_linux.h"
#if defined(OS_OPENBSD)
#include <sys/videoio.h>
#else
#include <linux/videodev2.h>... | C++ | media/video/capture/linux/video_capture_device_linux.cc | guorendong/iridium-browser-ubuntu | bsd-3-clause | 4,680 | 149 | codeparrot/github-code |
67bc96e8aed2092d001940e8a700fd1e745318608225d8764d6c245175a732ff | // =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of t... | C | src/chrono_vehicle/wheeled_vehicle/driveline/ShaftsDriveline4WD.h | rserban/chrono | bsd-3-clause | 3,111 | 80 | codeparrot/github-code |
3e991aaff9c2f3f6209fc826e3167461637bd315f8b56c33c550ab5986c0f1ee | /*
* Copyright 2015, Google 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 must retain the above copyright
* notice, this list of conditions a... | Java | benchmarks/src/main/java/io/grpc/benchmarks/qps/ClientConfiguration.java | xzy256/grpc-java-mips64 | bsd-3-clause | 10,781 | 303 | codeparrot/github-code |
caf89d983513eef2624ffc4e644b0f93b847965930c893dce2f99d3a7be0234a | # 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.
from __future__ import print_function
from __future__ import absolute_import
import contextlib
import logging
import os
import py_utils
from py_utils import... | Python | telemetry/telemetry/internal/util/binary_manager.py | catapult-project/catapult | bsd-3-clause | 9,298 | 274 | codeparrot/github-code |
b987c8a74696e9c68837e5c8f7db31965325768a0276052d3de7fa87d91da846 | """
Oracle database backend for Django.
Requires cx_Oracle: http://cx-oracle.sourceforge.net/
"""
from __future__ import unicode_literals
import decimal
import re
import sys
import warnings
def _setup_environment(environ):
import platform
# Cygwin requires some special voodoo to set the environment variables... | Python | django/db/backends/oracle/base.py | atruberg/django-custom | bsd-3-clause | 39,830 | 962 | codeparrot/github-code |
3ed295d34b8323051a03ea45855b23adbb725db84b983f65dfd25c79b4866486 | <!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" lang="nl-NL" xml:lang="nl-NL">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>LightZone: Metadata</title>... | HTML | lightcrafts/help/Dutch/Metadata.html | MarinnaCole/LightZone | bsd-3-clause | 3,627 | 118 | codeparrot/github-code |
870766c6d77ec31461b7a3f4bc04e69a65837a3a485ada2be7b64f874c8d78db | /*
* Copyright (c) 2012, United States Government, as represented by the Secretary of Health and Human Services.
* 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... | Java | Product/Production/Common/CONNECTCoreLib/src/main/java/gov/hhs/fha/nhinc/gateway/executorservice/NhinTaskExecutor.java | sailajaa/CONNECT | bsd-3-clause | 7,263 | 148 | codeparrot/github-code |
6a56fd0fb38db899d5caeb9d4bf31fd58081b49738961549192a465737a90ffb | # -*- coding: utf-8 -*-
# pylint: disable=E265
"""
lantz.drivers.andor.ccd
~~~~~~~~~~~~~~~~~~~~~~~
Low level driver wrapping library for CCD and Intensified CCD cameras.
Only functions for iXon EMCCD cameras were tested.
Only tested in Windows OS.
The driver was written for the single-camera ... | Python | lantz/drivers/andor/ccd.py | varses/awsch | bsd-3-clause | 74,922 | 1,919 | codeparrot/github-code |
773ff290dc34d09f9ff4241b7d5c3e31db684d3715951809a312e253c144da49 | import datetime
import httplib2
import itertools
import json
from django.conf import settings
from django.db import connection, transaction
from django.db.models import Sum, Max
import commonware.log
from apiclient.discovery import build
from celeryutils import task
from oauth2client.client import OAuth2Credentials
... | Python | apps/stats/tasks.py | wagnerand/zamboni | bsd-3-clause | 19,050 | 524 | codeparrot/github-code |
a032d428030cfdf5805f7ecc05f03e5b961bb01af328052b04ac43b7d4553a6c | // 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 CONTENT_COMMON_QUOTA_DISPATCHER_H_
#define CONTENT_COMMON_QUOTA_DISPATCHER_H_
#include <map>
#include <set>
#include "base/basictypes.h"
#in... | C | content/common/quota_dispatcher.h | meego-tablet-ux/meego-app-browser | bsd-3-clause | 2,041 | 62 | codeparrot/github-code |
a18841c5fd6c0cd42e90794e37f3e5c61338d54fb202b8b167b98d326e8098a1 | import hashlib
import logging
import os
from django.conf import settings
from django.core.files.storage import default_storage as storage
from django.db import transaction
from PIL import Image
from olympia import amo
from olympia.addons.models import (
Addon, attach_tags, attach_translations, AppSupport, Compat... | Python | src/olympia/addons/tasks.py | mstriemer/addons-server | bsd-3-clause | 12,888 | 377 | codeparrot/github-code |
06336e0fcb2c1a03230f052e8ae57136f36eae54e69e47752a6d473aa96813a8 | //===- AliasSetTracker.cpp - Alias Sets Tracker implementation-------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | C++ | third_party/llvm/llvm/lib/Analysis/AliasSetTracker.cpp | endlessm/chromium-browser | bsd-3-clause | 26,484 | 778 | codeparrot/github-code |
115d8a829bba187d135e5493e3a5412ca4cbe2eee2b3d4bac659ad96adf0d64f | /*
* 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/utility/source/process_thread_impl.cc | guorendong/iridium-browser-ubuntu | bsd-3-clause | 7,255 | 238 | codeparrot/github-code |
1540c5e9877fefd92f6ea3ee7072deb2342c3bc872e9c0376c292984a2b27cb3 | ---
layout: data_model
title: NetworkFlowLabelType
this_version: 1.0
---
<div class="alert alert-danger bs-alert-old-docs">
<strong>Heads up!</strong> These docs are for STIX 1.0, which is not the latest version (1.2). <a href="/data-model/1.2/NetFlowObj/NetworkFlowLabelType">View the latest!</a>
</div>
<div clas... | HTML | data-model/1.0/NetFlowObj/NetworkFlowLabelType/index.html | johnwunder/johnwunder.github.io | bsd-3-clause | 4,553 | 144 | codeparrot/github-code |
7d34bee25075a9c249ef1a9015325bb03dafad1ed1a18d05dcd8af80a9e040bd | // 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 "media/video/capture/fake_video_capture_device.h"
#include <string>
#include "base/bind.h"
#include "base/memory/scoped_ptr.h"
#include "ba... | C++ | media/video/capture/fake_video_capture_device.cc | sgraham/nope | bsd-3-clause | 6,987 | 197 | codeparrot/github-code |
2cd346d99fc7a7551826d697a6013dbd8dca87843f4df65e453c8e68e348a632 | <?php
/* Prototype : bool usort(array $array_arg, string $cmp_function)
* Description: Sort an array by values using a user-defined comparison function
* Source code: ext/standard/array.c
*/
/*
* Test usort() when comparison function is:
* 1. a built in comparison function
* 2. a language construct
*/
echo "... | PHP | testdata/fuzzdir/corpus/ext_standard_tests_array_usort_variation8.php | evnix/go-php-parser | bsd-3-clause | 1,278 | 40 | codeparrot/github-code |
a1648b5c4a189b98cf6f901d2cc4654fab055f07e5d459ef594c884e25e02caa | /*
* Copyright (c) 2004-2022, 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 copyright notice, this
* list of cond... | Java | dhis-2/dhis-services/dhis-service-core/src/test/java/org/hisp/dhis/period/PeriodStoreTest.java | dhis2/dhis2-core | bsd-3-clause | 20,914 | 434 | codeparrot/github-code |
3f615c87f8c2ffaedab2a8d549ea233a6256941a65c3d4ef3d86f01a21f400e0 | // Copyright (c) 2009 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 "testing/gtest/include/gtest/gtest.h"
#include "webkit/appcache/appcache.h"
#include "webkit/appcache/appcache_frontend_impl.h"
#include "web... | C++ | webkit/appcache/appcache_unittest.cc | Crystalnix/house-of-life-chromium | bsd-3-clause | 10,054 | 262 | codeparrot/github-code |
9acf5fe2df69a96003f3652236e82a91afc22f80d72ed7fe491bb4264f11374c | // 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 "media/filters/file_data_source.h"
#include <algorithm>
#include "base/logging.h"
namespace media {
FileDataSource::FileDataSource()
... | C++ | media/filters/file_data_source.cc | leighpauls/k2cro4 | bsd-3-clause | 1,794 | 79 | codeparrot/github-code |
afa6851ef534e119cb2705b67e40e00783b71c7131b1c4af7d6aa98ad9c0ecc1 | // 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 "ash/wm/workspace_controller.h"
#include <map>
#include "ash/root_window_controller.h"
#include "ash/screen_util.h"
#include "ash/shelf/shelf_l... | C++ | ash/wm/workspace_controller_unittest.cc | sgraham/nope | bsd-3-clause | 62,788 | 1,618 | codeparrot/github-code |
3e2ee21002bcbedfe6b492abe46826732b51cde547024c8544fcc52f25a4f86f | //===- RegAllocFast.cpp - A fast register allocator for debug code --------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | C++ | third_party/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/RegAllocFast.cpp | endlessm/chromium-browser | bsd-3-clause | 41,634 | 1,123 | codeparrot/github-code |
1824ac55eca7abaf6d7d4e6912b2b174ce1ca9d03736fd0c051c0ba809cd1333 | package org.hisp.dhis.system.util;
/*
* Copyright (c) 2004-2016, 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 co... | Java | dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/util/PredicateUtils.java | mortenoh/dhis2-core | bsd-3-clause | 3,238 | 89 | codeparrot/github-code |
93f05de3a2f0554af4c6dd2ad77ed063f363163a5c267a1a2e7883406cd0b4f6 | // 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 REMOTING_HOST_POLICY_HACK_POLICY_WATCHER_H_
#define REMOTING_HOST_POLICY_HACK_POLICY_WATCHER_H_
#include "base/callback.h"
#include "base/mem... | C | remoting/host/policy_hack/policy_watcher.h | junmin-zhu/chromium-rivertrail | bsd-3-clause | 3,577 | 104 | codeparrot/github-code |
3bd6683a673c92e437689493323640aa818e5504172720e83ba3357929b7e7bd | // Copyright (c) 2015 The WebM 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 contributing projec... | C++ | encoder/win/capture_source_list_dshow.cc | felipebetancur/webmlive | bsd-3-clause | 1,799 | 65 | codeparrot/github-code |
dd05bafe830ef4601a5ab8ac41c59bffce84166e5fad588e92f4ad91c68df4e3 | // 210-Evt-EventListeners.cpp
// Contents:
// 1. Printing of listener data
// 2. My listener and registration
// 3. Test cases
// main() provided in 000-CatchMain.cpp
// Let Catch provide the required interfaces:
#define CATCH_CONFIG_EXTERNAL_INTERFACES
#include <catch2/catch.hpp>
#include <iostream>
// ----------... | C++ | worker/deps/catch/examples/210-Evt-EventListeners.cpp | ibc/MediaSoup | isc | 14,789 | 423 | codeparrot/github-code |
b5dbacacac77a8c5888e1a69a4c8ff7a39d405a2b1234192dbcf96a11648e944 | /* ###########################################################################
GLOBAL ASSETS RELEASE v6.0.2
BUILD DATE: 20100224
########################################################################### */
// init values
hele = new Array();
newspause = 4; // time to pause news items in seconds
fx = op = ni = 0;
t... | JavaScript | doc/javac/8/windows/javac_files/developer.js | fbiville/annotation-processing-ftw | mit | 4,902 | 211 | codeparrot/github-code |
ba5160f42e1eacdccba8098e733ce9c3dd9dc167903555bdc6a81145a6119dfd | module Fastlane
module Notification
class Slack
def initialize(webhook_url)
@webhook_url = webhook_url
@client = Faraday.new do |conn|
conn.use(Faraday::Response::RaiseError)
end
end
# Overriding channel, icon_url and username is only supported in legacy incomi... | Ruby | fastlane/lib/fastlane/notification/slack.rb | fastlane/fastlane | mit | 2,115 | 57 | codeparrot/github-code |
f3c8a3ff429a3c20e1fb91275516cfdcacae41e6d16f173cb31e03388f74626e | #!/usr/bin/env python
# Copyright (c) 2014-2015 Daniel Kraft
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
# CLI to solve an auxpow (or not) in regtest difficulty.
import binascii
import hashlib
import sys
def compu... | Python | contrib/solveauxpow.py | cerebrus29301/crowncoin | mit | 3,047 | 121 | codeparrot/github-code |
e23072af2e944a0b76f3ca1470d568bcf13ab7ad68169af9ca779b3a4aba23de | /*
* C# Version Ported by Matt Bettcher and Ian Qvist 2009-2010
*
* Original C++ Version Copyright (c) 2007 Eric Jordan
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
* Permission i... | C# | Nez.FarseerPhysics/Farseer/Common/Decomposition/EarclipDecomposer.cs | Blucky87/Nez | mit | 11,875 | 401 | codeparrot/github-code |
c2abe42dea9cbc094a170cad6a7563b819db32f077c8565a1361b0552ee04381 | import * as React from 'react';
import Select, { Props as SelectProps } from './Select';
import { handleInputChange } from './utils';
import manageState from './stateManager';
import { GroupedOptionsType, OptionsType, InputActionMeta, OptionTypeBase } from './types';
export interface AsyncProps<OptionType extends Opti... | TypeScript | types/react-select/src/Async.d.ts | mcliment/DefinitelyTyped | mit | 2,527 | 62 | codeparrot/github-code |
0f4e6758c9d061923673198fb90371d8d6eb8c11f321a19ee8104e9c6038b5a4 | /* Copyright (C) 1989, 1990 Aladdin Enterprises. All rights reserved.
Distributed by Free Software Foundation, Inc.
This file is part of Ghostscript.
Ghostscript is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY. No author or distributor accepts responsibility
to anyone for the conseque... | C | include/llvm/projects/test-suite/MultiSource/Benchmarks/MallocBench/gs/gspaint.h | ensemblr/llvm-project-boilerplate | mit | 1,730 | 40 | codeparrot/github-code |
8324e4631a95cc39b49690ee060d9f9a90dad2ba35f9c8f9b0eb9b758a986dcb | package org.knowm.xchange.ccex.dto.trade;
import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonProperty;
public class CCEXOpenorder {
private String OrderUuid;
private String Exchange;
private String OrderType;
private BigDecimal Quantity;
private BigDecimal QuantityRemaining;
private BigD... | Java | xchange-ccex/src/main/java/org/knowm/xchange/ccex/dto/trade/CCEXOpenorder.java | stevenuray/XChange | mit | 4,881 | 200 | codeparrot/github-code |
90091dccbcea1773c7253d41ac78d8af64971556d083b0d661a023662dbeadf0 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<title>Source code</title>
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
</head>
<body>
<div class="sourceContainer">
<pre><span class="s... | HTML | lib/commons-net-3.3/apidocs/src-html/org/apache/commons/net/io/ToNetASCIIOutputStream.html | asad/MCEDS | mit | 11,350 | 193 | codeparrot/github-code |
c4f3e82694eaf51ee9c0ba40f0781c51bbc895301c5d9c83bc15b0904acd439d | package collectors
import (
"encoding/json"
"fmt"
"strconv"
"strings"
"time"
"bosun.org/metadata"
"bosun.org/opentsdb"
"bosun.org/slog"
"bosun.org/util"
)
func init() {
const interval = time.Minute * 5
collectors = append(collectors,
&IntervalCollector{F: c_omreport_chassis, Interval: interval},
&Inte... | GO | cmd/scollector/collectors/dell_hw.go | bosun-sharklasers/bosun | mit | 12,824 | 397 | codeparrot/github-code |
bf3775dd14c604fdb957d6826d5eac0820b87847f75ad1c032b6d9fdcbc5b1ac | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Management.Automation.Internal;
using System.Management.Automation.L... | C# | src/System.Management.Automation/engine/SessionState.cs | JamesWTruher/PowerShell-1 | mit | 22,530 | 545 | codeparrot/github-code |
a7f5cceb2f22f5d1bb8deefa9e7892f9b4226acfaf07ab36edd9ec2de3542195 | /* @(#) Function which read a mask from a file.
* @(#) Result is written in the structure IMASK or DMASK depending on whether
* @(#) the input mask is integer or double. The structure of the mask is
* @(#) given in mask.h
* @(#) The mask coefficients can be either int (INTMASK)
* @(#) or double (DOUBLEMASK). ... | C | src/parsec/vips/src/mask/rw_mask.c | tudinfse/fex | mit | 16,382 | 813 | codeparrot/github-code |
2bd36b6c8d679a03a57b0c0b8cb1381e5c54dd53b67fe90184e1c5780b8938a8 | //
// Copyright (c) 2008-2017 the Urho3D project.
//
// 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, m... | C | Source/Urho3D/Urho2D/TileMapLayer2D.h | iainmerrick/Urho3D | mit | 4,064 | 131 | codeparrot/github-code |
cc225bf82faf672aac1b1b3b2276c4dc11129a34f402343c9ef692f6d2c6a210 | <!DOCTYPE html>
<html lang="en">
<!-- Head tag -->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Title -->
<title>page - mysupre.me</title>
<!--Favicon-->
<link rel="i... | HTML | public/page/2/index.html | whileLooper/MySupreme | mit | 5,103 | 162 | codeparrot/github-code |
bf1cf53c340b54334af18fb9739f06955e5ce0a04db91b0aea4812d52de8483a | /*
* starter_imagelist.cpp
*
* Created on: Nov 23, 2010
* Author: Ethan Rublee
*
* A starter sample for using opencv, load up an imagelist
* that was generated with imagelist_creator.cpp
* easy as CV_PI right?
*/
#include "opencv2/imgcodecs.hpp"
#include "opencv2/highgui.hpp"
#include <iostream>
#include... | C++ | opencv/samples/cpp/starter_imagelist.cpp | zzjkf2009/Midterm_Astar | mit | 2,246 | 88 | codeparrot/github-code |
cded77146aaa808848d044ff2a26776da91fcc4c28392fe9647622b1f2b1e084 | '''Trains two recurrent neural networks based upon a story and a question.
The resulting merged vector is then queried to answer a range of bAbI tasks.
The results are comparable to those for an LSTM model provided in Weston et al.:
"Towards AI-Complete Question Answering: A Set of Prerequisite Toy Tasks"
http://arxiv... | Python | examples/babi_rnn.py | kemaswill/keras | mit | 8,596 | 212 | codeparrot/github-code |
959f016ae5ca60ac8fdce6301123ac7c49fb507f697b26d9688df3627ba061a7 | /**
* Copyright (c) 2014 rxi
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the MIT license. See LICENSE for details.
*/
#include "vec.h"
int vec_expand_(char **data, int *length, int *capacity, int memsz) {
if (*length + 1 > *capacity) {
void *ptr;
i... | C | test/vec/vec.c | emekankurumeh/spork | mit | 2,485 | 115 | codeparrot/github-code |
bd84a43046ca7863a080f9fad0009f1837ca576ee97c1672f6d8163e38ce2811 | /***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\... | C | core/deps/curl/lib/curl_ntlm_core.c | K-Constantine/Amaraki | mit | 22,874 | 789 | codeparrot/github-code |
9a4779eef4dd24a4c157c1df735f00f9a2804eeb23ae31697980e21b8201e6b0 | //******************************************************************************
//
// Copyright (c) 2015 Microsoft Corporation. All rights reserved.
//
// This code is licensed under the MIT License (MIT).
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LI... | C | include/Platform/Universal Windows/UWP/WindowsSystemThreading.h | wanderwaltz/WinObjC | mit | 4,592 | 116 | codeparrot/github-code |
cf323ea13095454d068b3ff0362a1aa12bf0316598844f1bfaf16e6f70b74921 | <?php
/**
* CPAC_Column_User_Post_Count
*
* @since 2.0.0
*/
class CPAC_Column_User_Post_Count extends CPAC_Column {
function __construct( $storage_model ) {
// define properties
$this->properties['type'] = 'column-user_postcount';
$this->properties['label'] = __( 'Post Count', 'cpac' );... | PHP | wp-content/plugins/codepress-admin-columns/classes/column/user/post-count.php | jake-cooper/wpdfhfh | mit | 2,452 | 110 | codeparrot/github-code |
86ef0f589c1a95d501e44659d50febb517b2b65259ac6311ca08c96752138265 | /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* SHA-1 implementation in JavaScript (c) Chris Veness 2002-2014 / MIT Licence */
/* */
/* - see http://... | JavaScript | src/client/util-sha1.js | vinaymayar/maygh | mit | 5,613 | 158 | codeparrot/github-code |
b5077556fa155f2a07202c2b39334b40ad3d62a163014879491d3bce5ce0b1c6 | package ratecounter
import "time"
// A RateCounter is a thread-safe counter which returns the number of times
// 'Incr' has been called in the last interval
type RateCounter struct {
counter Counter
interval time.Duration
}
// Constructs a new RateCounter, for the interval provided
func NewRateCounter(intrvl time... | GO | ratecounter.go | eranchetz/ratecounter | mit | 761 | 34 | codeparrot/github-code |
ab85e2e61b13612c16b9ef15dad64d12e970faa1a07c03e0492d275cd1ca73b1 | /**
@module ember
@submodule ember-routing-htmlbars
*/
import Ember from "ember-metal/core"; // Handlebars, uuid, FEATURES, assert, deprecate
import { uuid } from "ember-metal/utils";
import run from "ember-metal/run_loop";
import { readUnwrappedModel } from "ember-views/streams/utils";
import { isSimpleClick } from "... | JavaScript | packages/ember-routing-htmlbars/lib/helpers/action.js | dgeb/ember.js | mit | 8,975 | 308 | codeparrot/github-code |
0fdc90f38ef4b806a4197696de11be64b1bfedab0f052e764fca739ca9ed85fc | alias be="bundle exec"
alias bl="bundle list"
alias bp="bundle package"
alias bo="bundle open"
alias bu="bundle update"
alias bi="bundle_install"
# The following is based on https://github.com/gma/bundler-exec
bundled_commands=(annotate berks cap capify cucumber foodcritic foreman guard irb jekyll kitchen knife middl... | Shell | plugins/bundler/bundler.plugin.zsh | klebervirgilio/my-zsh | mit | 1,796 | 70 | codeparrot/github-code |
6a77d699e0293113300c517ae8ac51b1dd9b3ecda52eb0935df30448459f51df | --
--
--
dofile("common.inc");
delay = 100;
function doit()
askForWindow('Falcon Assistant v1.0 by Cegaiel\n\nMacro will click "Search for Falcon Roosts" window. Then it will wait 1 second (so you can read) and close the popup box (OK Button) for you.\n\nIf the falcon is found, macro will quit, play a sound and di... | Lua | scripts/falcon.lua | DashingStrike/Automato-ATITD | mit | 2,627 | 71 | codeparrot/github-code |
f6d34d762623b4c9dde688e94c6fdda43afe9a927e3a49792996deb7eddd37f4 | import {NgbdAlertBasic} from './basic/alert-basic';
import {NgbdAlertCloseable} from './closeable/alert-closeable';
import {NgbdAlertCustom} from './custom/alert-custom';
import {NgbdAlertSelfclosing} from './selfclosing/alert-selfclosing';
import {NgbdAlertConfig} from './config/alert-config';
export const DEMO_DIREC... | TypeScript | demo/src/app/components/alert/demos/index.ts | spongessuck/ng-bootstrap | mit | 1,360 | 32 | codeparrot/github-code |
c60eddf8651f5008619d3ef4d69dd1021b709ea0728e167da8663d0cc8c30ec6 | /*---------------------------------------------------------------------------------------------
* 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/languages/json/common/jsonWorker.ts | sifue/vscode | mit | 15,489 | 406 | codeparrot/github-code |
1fc82b9b0cc1175a3f8cd8ef520bcfc53a72eb55c9be8620a4c9c5cf63148822 | #!/bin/bash
FN="rtu34probe_2.18.0.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.12/data/annotation/src/contrib/rtu34probe_2.18.0.tar.gz"
"https://bioarchive.galaxyproject.org/rtu34probe_2.18.0.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-rtu34probe/bioconductor-rtu34probe_2.18.0_src_all.ta... | Shell | recipes/bioconductor-rtu34probe/post-link.sh | bebatut/bioconda-recipes | mit | 1,417 | 48 | codeparrot/github-code |
17b5c74d03d2887eaa6e68916f73c92d805a7944f1cd1b076dd8d19d1d8d82f0 | <!DOCTYPE html><html lang="ru"><head>
<meta charset="utf-8">
<title>Тени</title>
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@threejs">
<met... | HTML | manual/ru/shadows.html | WestLangley/three.js | mit | 28,853 | 424 | codeparrot/github-code |
1149ec761658f08591db32fb97f35305948e7265d85f65b4a960d33987077fd6 | <?php
require_once(dirname(__FILE__)."/../pages/icalendar/icalendar_functions.php");
function init_calendar() {
return '
'.schedule_icalendar_tostring().'
'.schedule_calendar_preview().'
<input type=\'button\' style=\'display:none;\' name=\'onselect\' />';
}
function schedule_calendar_preview() {
$s_header = ' ... | PHP | tabs/Calendar.php | nocylah/banwebplus | mit | 2,095 | 54 | codeparrot/github-code |
57354ef4965f8f14d8e6c2af49845b488724992282399f42232e208b7d6477e2 | <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>has_trivial_destructor</title>
<link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../index.html" tit... | HTML | libs/boost_1_50_0/libs/type_traits/doc/html/boost_typetraits/reference/has_trivial_destructor.html | djsedulous/namecoind | mit | 9,068 | 109 | codeparrot/github-code |
331defaa278f3a5b23275bcce598061d36d69063e3a86bab91b2f0f1ea88d738 | <?php
/**
* @package WPSEO\Main
*/
if ( ! function_exists( 'add_filter' ) ) {
header( 'Status: 403 Forbidden' );
header( 'HTTP/1.1 403 Forbidden' );
exit();
}
/**
* @internal Nobody should be able to overrule the real version number as this can cause serious issues
* with the options, so no if ( ! defined() )
... | PHP | wp-content/plugins/wordpress-seo/wp-seo-main.php | michaelbontyes/ekogito | mit | 13,520 | 494 | codeparrot/github-code |
16a7e242131a7c9596ac376c1aa7e39541b6b5e7f0997dc787b52a2e47f1e9e3 | var engine = require('../');
var express = require('express');
var path = require('path');
var app = express();
app.engine('dot', engine.__express);
app.set('views', path.join(__dirname, './views'));
app.set('view engine', 'dot');
app.get('/', function(req, res) {
res.render('index', { fromServer: 'Hello from serv... | JavaScript | examples/index.js | danlevan/express-dot-engine | mit | 1,097 | 43 | codeparrot/github-code |
d725c6967d661da31b2ace9f894a5ee66b5c2f5d534d39a9b1aeaa5c2a404791 | using UnityEngine;
using System.Collections;
using System.Collections.Generic;
namespace Fungus
{
[CommandInfo("Flow",
"If",
"If the test expression is true, execute the following command block.")]
[AddComponentMenu("")]
public class If : Condition
{
[Tooltip("Variable to use in ex... | C# | Assets/Fungus/Flowchart/Scripts/Commands/If.cs | RonanPearce/Fungus | mit | 4,397 | 199 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.