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 |
|---|---|---|---|---|---|---|---|---|
163c0121821147fbc569137ef6d89e658a316f86d3e8d862ad9337fd2822e6b3 | require "heroku/command/base"
require "heroku/helpers/log_displayer"
# run one-off commands (console, rake)
#
class Heroku::Command::Run < Heroku::Command::Base
# run:detached COMMAND
#
# run a detached dyno, where output is sent to your logs
#
# -s, --size SIZE # specify dyno size
# -t, --tail ... | Ruby | lib/heroku/command/run.rb | heroku/heroku | mit | 3,828 | 127 | codeparrot/github-code |
addaccdc6c7471dd2833957285418c80815cc259edbaa23e3a2821b9e9b77209 | (function(){
if(!window.Prism) {
return;
}
function $$(expr, con) {
return Array.prototype.slice.call((con || document).querySelectorAll(expr));
}
var CRLF = crlf = /\r?\n|\r/g;
function highlightLines(pre, lines, classes) {
var ranges = lines.replace(/\s+/g, '').split(','),
offset = +pre.getAttribute('data-... | JavaScript | 2014Q2/bower_components/prismjs/plugins/line-highlight/prism-line-highlight.js | inergex/meetups | mit | 2,089 | 92 | codeparrot/github-code |
a135ddad28a81087437721f0be6a369280f0811673f0fdca9b110e98d9028daa | module Shoulda
module Matchers
module ActiveRecord
module AssociationMatchers
# @private
class OptionVerifier
delegate :reflection, to: :reflector
DEFAULT_VALUE_OF_OPTIONS = {
has_many: {
validate: true,
},
}.freeze
... | Ruby | lib/shoulda/matchers/active_record/association_matchers/option_verifier.rb | thoughtbot/shoulda-matchers | mit | 3,920 | 139 | codeparrot/github-code |
6981c97f9cf98d184df65b2819265f8a140b740e2f5168fc75841e3489a89451 | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
var path = require("path");
var fs = require("fs");
var minify = require("jsonminify");
var js_beaut... | JavaScript | sublime/Packages/HTML-CSS-JS Prettify/scripts/run.js | micahwood/linux-dotfiles | mit | 4,755 | 155 | codeparrot/github-code |
46e44b1af853405e199c61f21da89356200be09fc25b027f38605b553e991736 | package saberapplications.pawpads.service;
import android.app.IntentService;
import android.content.ActivityNotFoundException;
import android.content.Intent;
import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.os.Handler;
import android.webkit... | Java | app/src/main/java/saberapplications/pawpads/service/FileDownloadService.java | castaway2000/Pawpads | mit | 4,649 | 130 | codeparrot/github-code |
2181d61889a44048be9eefb619fbf88992a19e28d8c4f25f34fd479b602fec16 | <?php
/**
phpSec - A PHP security library
@author Audun Larsen <larsen@xqus.com>
@copyright Copyright (c) Audun Larsen, 2011, 2012
@link https://github.com/phpsec/phpSec
@license http://opensource.org/licenses/mit-license.php The MIT License
@package phpSec
*/
namespace phpSec\Auth;
/**
* Pr... | PHP | lib/phpSec/Auth/Otp.php | phpsec/phpSec | mit | 3,380 | 127 | codeparrot/github-code |
7515653cb41861853b88dc92efa4ce86feed02aa958360682c3efd22280eb060 | <!DOCTYPE html>
<!--
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
-->
<html>
<head>
<meta charset="utf-8">
<title>CKEditor Samples</title>
<link rel="stylesheet" href="sample.css">
</head>
<body>
<h1 class="samples">
CKEdi... | HTML | web/bundles/app/js/ckeditor/samples/index.html | razzaghi/MessageCenter | mit | 4,976 | 119 | codeparrot/github-code |
2f3021980860ca8577a0da789d96c7411b656ccf157b1a5b8d7685f77fb14fa2 | /// \file
/// \brief \b [Internal] Generates a huffman encoding tree, used for string and global compression.
///
/// This file is part of RakNet Copyright 2003 Kevin Jenkins.
///
/// Usage of RakNet is subject to the appropriate license agreement.
/// Creative Commons Licensees are subject to the
/// license found at
... | C | RakNet/Headers/DS_HuffmanEncodingTree.h | Miclebrick/Imagination-Server | mit | 2,532 | 72 | codeparrot/github-code |
cdf75fa228a3552efec9de92967d81cb111b6d7c8010fe0c801cefd88904eff2 | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file license.txt or http://www.opensource.org/licenses/mit-license.php.
#include <map>
#include <boost/version.hpp>
#include <boost/filesystem.hpp>
#... | C++ | src/txdb-leveldb.cpp | Bitspender/h10 | mit | 20,331 | 566 | codeparrot/github-code |
5969de04c7e44aa3835b00fb824b05e18936612946c5ee66ef0796bc495d796f | import copy
from collections import OrderedDict
from collections import defaultdict
from conans.model.env_info import EnvValues
from conans.model.options import OptionsValues
from conans.model.values import Values
class Profile(object):
"""A profile contains a set of setting (with values), environment variables
... | Python | conans/model/profile.py | birsoyo/conan | mit | 3,409 | 89 | codeparrot/github-code |
cfc9742e6533b3def131d1ecad101d591b0b28d49264c1aeb11657c2f0a05551 | namespace AngleSharp.Network
{
using AngleSharp.Extensions;
using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
/// <summary>
/// The virtual response class.
/// </summary>
public class VirtualResponse : IResponse
{
#region Fields
... | C# | src/AngleSharp/Network/VirtualResponse.cs | FlorianRappl/AngleSharp | mit | 6,194 | 218 | codeparrot/github-code |
33aa7340c2e81cccf3e3b79fe4938621e4f13ece0f545594b50a70abaf3eb820 | import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _extends from "@babel/runtime/helpers/esm/extends";
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import { deepmerge } from '@material-ui/utils';
import { unstable_c... | JavaScript | ajax/libs/material-ui/5.0.0-alpha.27/modern/Drawer/Drawer.js | cdnjs/cdnjs | mit | 9,817 | 314 | codeparrot/github-code |
4051b68d7711ae5124e29b2b0da87f1d6c4988536e6951e4f8e6415c9de66f30 | /*++
Copyright (c) 2014 Microsoft Corporation
Module Name:
hitting_sets.h
Abstract:
Hitting set approximations.
Author:
Nikolaj Bjorner (nbjorner) 2014-06-06
Notes:
--*/
#include "vector.h"
#include "util.h"
#include "hitting_sets.h"
#include "simplex.h"
#include "sparse_matrix_def.h"
#include "s... | C++ | src/opt/hitting_sets.cpp | seahorn/z3 | mit | 39,509 | 1,088 | codeparrot/github-code |
1d3d18e20ae82b2f7a297a0b57c95e9560a28af4fa268f4984a00322e3e0e199 | /**
* simple
*/
var mysinleton = {
property1 : 'something',
property2 : 'something else',
method1 : function() {
console.log("hello world");
}
}
/***
* encapsulation like java get、set
*/
var mysinleton2 = function() {
var privateVariable = 'something private';
function showPrivate(... | JavaScript | js/app/singleton/singleton.js | tianzx/design-patterns | mit | 1,985 | 102 | codeparrot/github-code |
af7f38d86298d6f8223c6d8f0a3fb49be54e7fdc42f96cbb709efb15af55fed8 | import * as React from 'react';
import Button from '@material-ui/core/Button';
import ClickAwayListener from '@material-ui/core/ClickAwayListener';
import Grow from '@material-ui/core/Grow';
import Paper from '@material-ui/core/Paper';
import Popper from '@material-ui/core/Popper';
import MenuItem from '@material-ui/co... | TypeScript | docs/src/pages/components/menus/MenuListComposition.tsx | callemall/material-ui | mit | 3,099 | 106 | codeparrot/github-code |
1c969b2ae5515ef1d37a61b5d3cc6954ec5fed19b364844e96f54b0896c7442c | package leetcode221_230;
import java.util.ArrayList;
import java.util.List;
/**Given a sorted integer array without duplicates, return the summary of its ranges.
For example, given [0,1,2,4,5,7], return ["0->2","4->5","7"].
* Created by eugene on 16/4/23.
*/
public class SummaryRanges {
public List<String> su... | Java | src/main/java/leetcode221_230/SummaryRanges.java | Ernestyj/JStudy | mit | 1,582 | 52 | codeparrot/github-code |
30697ae140793b4b3d0b13e6f30b0faeb15afc44882fa2f7ef86b0b20f91b436 | /*
* Copyright (c) 2011, Dirk Thomas, TU Darmstadt
* 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, t... | C++ | src/syllo_rqt/catkin_ws/src/rqt_autopilot/src/rqt_autopilot/ratio_layouted_frame.cpp | gt-ros-pkg/humans | mit | 3,531 | 117 | codeparrot/github-code |
b7a038de805bc1bfe1cfac876c1fa46f6618d762ff116c048436cb48546ba6eb | /**
* 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.
*
* @emails oncall+relay
* @flow strict-local
* @format
*/
// flowlint ambiguous-object-type:error
'use strict';
const useRelay... | JavaScript | packages/relay-experimental/useFragmentNode.js | iamchenxin/relay | mit | 6,025 | 177 | codeparrot/github-code |
5a838e7dbfc4422f8cad25eb084b57cf690155d971f931b3241033d8a77ed5fe | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.puntodeventa.global.Entity;
import java.io.Serializable;
import java.math.BigInteger;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;
/**
*
* @author ... | Java | src/main/java/com/puntodeventa/global/Entity/CredAmortPK.java | lalongooo/POSSpring | mit | 2,149 | 80 | codeparrot/github-code |
83f061721a6ba9fa0d56673fbe1bb039387fe7047f281c13cfe23f57046fb7c2 | 'use strict';
describe('LoginController', function () {
// Load the parent app
beforeEach(module('demoSite'));
var $controller;
var $scope, controller, $window;
beforeEach(inject(function (_$controller_) {
$controller = _$controller_;
$scope = {};
$window = { location: {}... | JavaScript | sample/assets/js/angular/login/login.module.spec.js | privakey/privakey-nodejs | mit | 3,902 | 114 | codeparrot/github-code |
3b053f515057127374f9f7a3486bacb725f2fb56be725294a83a761cff2565e2 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Ploeh.Samples.AssortedCodeSnippets.Cycle.Lazy
{
public class B : IB
{
private readonly IC c;
public B(IC c)
{
if (c == null)
{
throw new ArgumentNull... | C# | Module-2/Design-Patterns/Materials/DI.NET/AssortedCodeSnippets/AssortedCodeSnippets/Cycle/Lazy/B.cs | owolp/Telerik-Academy | mit | 550 | 32 | codeparrot/github-code |
5fd7ebc1cbcb640287527d366b1d6f261a205b4341c4dfdd0bd26d6a186d896c | /*
ConnectionErrorView.java
Copyright (c) 2017 NTT DOCOMO,INC.
Released under the MIT license
http://opensource.org/licenses/mit-license.php
*/
package org.deviceconnect.android.manager.setting;
import android.content.Context;
import androidx.annotation.Nullable;
import android.util.AttributeSet;
import android.v... | Java | dConnectManager/dConnectManager/dconnect-manager-app/src/main/java/org/deviceconnect/android/manager/setting/ConnectionErrorView.java | TakayukiHoshi1984/DeviceConnect-Android | mit | 3,645 | 105 | codeparrot/github-code |
923832c736f186af4ddcb87d741bf559dd5f123679235e98a98dd61ae3aaf3bf | /* =========================================================
* bootstrap-datepicker.js
* http://www.eyecon.ro/bootstrap-datepicker
* =========================================================
* Copyright 2012 Stefan Petre
* Improvements by Andrew Rowls
*
* Licensed under the Apache License, Version 2.0 (the "Lic... | JavaScript | Presentation/WebAPI/MyMoney.Presentation.WebAPI/scripts/angular-bootstrap-datepicker.js | andrepires/mymoney | mit | 86,811 | 2,126 | codeparrot/github-code |
8ebbaf426d0fa35a1ac674af7bc1f3634ccfa471b72049942eefe91865b3911e | <?php
/**
* @license http://opensource.org/licenses/MIT MIT
* @copyright Copyright (c) 2015 Vinicius Fagundes
*/
namespace Zff\Base;
use Zend\ModuleManager\Feature\AutoloaderProviderInterface;
use Zend\ModuleManager\Feature\ConfigProviderInterface;
use Zend\ModuleManager\Feature\ViewHelperProviderInterface;
class... | PHP | src/Module.php | fagundes/ZffBase | mit | 2,124 | 67 | codeparrot/github-code |
8d2325da8fa8b3f2ad368e468f3cda157ff23ddb21ca861944364632e1aa3b61 | <?php
/* interfaces.twig */
class __TwigTemplate_8fdc22b550eaa31e6b5cbe1b1954739cb407d722b679449628dcdbc20319c74b extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
// line 1
$this->parent = $this->loadTemplate("layout/layout.twig", ... | PHP | docs/cache/master/twig/6b/6b14133a52ef0d18ba39782cb4839a649a005fb85d9ffb5b729a39e6f63ecf78.php | Edujugon/laravel-google-ads | mit | 2,804 | 92 | codeparrot/github-code |
dac86002200318e584a8c79337c06e8359cb50546e8a908a4667c05fb2abf9e5 | /*
* Copyright 2015 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, soft... | Java | testing/droolsjbpm-integration-master/kie-server-parent/kie-server-api/src/main/java/org/kie/server/api/model/instance/TaskAttachmentList.java | rokn/Count_Words_2015 | mit | 1,582 | 50 | codeparrot/github-code |
b46ee1fa5dc9fda96c704fdd395f836f6128cd22dacf554e020b13417125c715 | 'use strict';
const path = require('path');
// This is a custom Jest transformer turning file imports into filenames.
// https://facebook.github.io/jest/docs/en/webpack.html
module.exports = {
process(src, filename) {
const assetFilename = JSON.stringify(path.basename(filename));
if (filename.match(/\.svg... | JavaScript | examples/preact/config/jest/fileTransform.js | lgollut/material-ui | mit | 816 | 32 | codeparrot/github-code |
c8d66fd6062cf6de1dab920d31c41260a50b73ad56f5f341a59401c8c305d464 | package integration;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import static com.codeborne.selenide.CollectionCondition.empty;
import static com.codeborne.selenide.Condition.cssClass;
import static com.codeborne.selenide.Condition.value;
import ... | Java | src/test/java/integration/ReplacingElementTest.java | codeborne/selenide | mit | 1,651 | 61 | codeparrot/github-code |
b7a37d43df5b9c762d1b437614d646aa510970c6cf5d3f5e15e12692e9ff6ac6 | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "l... | Java | src/com/amazonaws/internal/config/SignerConfig.java | loremipsumdolor/CastFast | mit | 1,109 | 44 | codeparrot/github-code |
5575f9df2c458ec4ff9b59add53927dee5532e03e0e0fa1e93f26dd7a19aa33e | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Qt 4.8: s... | HTML | QtEsrc/qt-everywhere-opensource-src-4.8.5/doc/html/network-bearermonitor-sessionwidget-cpp.html | stephaneAG/PengPod700 | mit | 25,444 | 407 | codeparrot/github-code |
5fde45000ca3e6a93c5e858639410b682b9eceb2d70d79f35033de1d30f19b4d | require 'digest/md5'
module Loggr
class ExceptionData
def self.format_exception(ex, request=nil)
res = ""
# basic info
res = res + sprintf("<b>Exception</b>: %s<br />", ex.message)
res = res + sprintf("<b>Type</b>: %s<br />", ex.class)
res = res + sprintf("<b>Machine</b>: %s<br />", get_... | Ruby | lib/loggr-rb/exceptiondata.rb | davideweaver/lrails | mit | 1,820 | 49 | codeparrot/github-code |
35a862ce5c1b21a95797804be8f3f816cdabd77192052c01794260fc50a3a942 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
patterns = [r'^.*?/bc_jpg_makerDrop/(crop_fullsize_pad_center)/?.*?/(\d{9}(.*?))\.(.*?)$',
r'^.*?/bc_jpg_makerDrop/(crop_fullsize_pad_anchor)/?.*?/(\d{9}(.*?))\.(.*?)$',
r'^.*?/bfly_jpg_makerDrop/(crop_fullsize_center)/?.*?/(\d{9}(.*?))\.(.*?)$',
... | Python | python/regex_matcherator_naturectr.py | relic7/prodimages | mit | 1,999 | 41 | codeparrot/github-code |
d2c569720a6be277339861014146b3830fd4625a1adef06c13192e3a348825fb | import {
RECEIVE_ALL_JOBS, RECEIVE_JOB, REQUEST_ALL_JOBS, REQUEST_JOB,
RECEIVE_FILTERED_JOBS, REQUEST_FILTERED_JOBS, CREATE_JOBS,
PAGINATE_JOBS, UPDATE_JOB, DELETE_JOB } from './constants'
const initialState = {
fetchingSelected: false,
selected: null,
fetchingAll: false,
all: null,
filteredJobs: null,... | JavaScript | src/reducers/jobsReducer.js | jackson-/colorforcode | mit | 3,987 | 136 | codeparrot/github-code |
4be24b13bc6e6e3e0c4323f304eb3125a80f99e43ddf9011586c9cbf17edb5bb | """Extension to execute code outside the Python shell window.
This adds the following commands:
- Check module does a full syntax check of the current module.
It also runs the tabnanny to catch any inconsistent tabs.
- Run module executes the module's code in the __main__ namespace. The window
must have... | Python | tools/project-creator/Python2.6.6/Lib/idlelib/ScriptBinding.py | babyliynfg/cross | mit | 7,992 | 210 | codeparrot/github-code |
9f8fcd23496750ec4818e17200c821f23dd494a04258d770bcbdafb42bc4ff62 | /*
* Encog(tm) Core v3.2 - Java Version
* http://www.heatonresearch.com/encog/
* https://github.com/encog/encog-java-core
* Copyright 2008-2013 Heaton Research, 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 ... | Java | lib/Encog/src/main/java/org/encog/ml/tree/traverse/tasks/TaskGetNodeIndex.java | ladygagapowerbot/bachelor-thesis-implementation | mit | 1,915 | 65 | codeparrot/github-code |
49fc7ed57b1c38acbeeda0cdd3cc1130cbfbb271982d79fbd58e521a8c9a1c21 | import { t } from 'app/i18next-t';
import { DimCrafted } from 'app/inventory/item-types';
import { percent } from 'app/shell/filters';
import React from 'react';
/**
* A progress bar that shows weapon crafting info like the game does.
*/
export function WeaponCraftedInfo({
craftInfo,
className,
}: {
craftInfo:... | TypeScript | src/app/dim-ui/WeaponCraftedInfo.tsx | DestinyItemManager/DIM | mit | 833 | 33 | codeparrot/github-code |
47e757519b941a34a6d29f835b83092d35cdd5a29b295acb7a2199bb5e1cd6ee | /* global logger, processWebhookMessage */
import moment from 'moment';
RocketChat.integrations.triggerHandler = new class RocketChatIntegrationHandler {
constructor() {
this.vm = Npm.require('vm');
this.successResults = [200, 201, 202];
this.compiledScripts = {};
this.triggers = {};
RocketChat.models.Inte... | JavaScript | packages/rocketchat-integrations/server/lib/triggerHandler.js | mwharrison/Rocket.Chat | mit | 23,767 | 774 | codeparrot/github-code |
5c282f1227e9ef7b2b366e5d4b4da6a2606749eec05218c121ec8b6fb742189a | # -*- coding:utf8 -*-
from fabric.api import task, run, local, cd, hosts, env
import time
from oozappa.config import get_config, procure_common_functions
_settings = get_config()
procure_common_functions()
import sys
from common_multiple_fabric_environment import _deploy_template_sample_a
test_host = ('192.168.0.1... | Python | sample/ops/staging/fabfile/__init__.py | frkwy/oozappa | mit | 1,594 | 72 | codeparrot/github-code |
28a73028a9805d4d72a0b0b5748c5885f9f1ed80b6304d94dff2eca1ede682c9 | <?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Security\Http\Authenticator\Passport\Badge;
use Symfo... | PHP | src/Symfony/Component/Security/Http/Authenticator/Passport/Badge/UserBadge.php | Slamdunk/symfony | mit | 2,898 | 90 | codeparrot/github-code |
35124daeb0a3f5a934de8c9f84a014163a4ede26fbfdac7af0722d17bea7e2be | using System;
using System.ComponentModel.Composition;
using System.Linq;
using UniRx;
using UnityEngine;
namespace Inconspicuous.Framework {
public class QuitApplicationCommand : ICommand<Unit> { }
public class QuitApplicationCommandHandler : CommandHandler<QuitApplicationCommand, Unit> {
private const string we... | C# | Inconspicuous.Framework/Providers/Controller/QuitApplicationCommand.cs | inconspicuous-creations/Inconspicuous.Framework | mit | 970 | 31 | codeparrot/github-code |
689faf8620c986eaecb8494bca01ca5876e5874dcdfffe646090c33b0ea54b60 | /**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2019 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var imageHeight = 0;
/**
* @function addFrame
* @private
* @since 3.0.0
*/
var addFrame = function (texture, sourceIndex, name, frame)
{
... | JavaScript | src/textures/parsers/UnityYAML.js | mahill/phaser | mit | 3,910 | 165 | codeparrot/github-code |
b8ee131f313ed3e5e3f04b2c1c49ed732bff76319846495e92605fd7f77e3804 | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: MIT. See LICENSE
import frappe
import json
from frappe.model.document import Document
from frappe.utils import get_fullname, parse_addr
exclude_from_linked_with = True
class ToDo(Document):
DocType = 'ToDo'
def validate(self):
self... | Python | frappe/desk/doctype/todo/todo.py | frappe/frappe | mit | 4,119 | 136 | codeparrot/github-code |
89772309f0156ed510e82f7e44752dd6c82c4b4c05a68095baac02d44f9f9c32 | <?php
namespace Renatio\DynamicPDF\Console;
use Illuminate\Console\Command;
use Renatio\DynamicPDF\Models\Layout;
use Renatio\DynamicPDF\Models\Template;
use System\Classes\PluginManager;
use System\Models\Parameter;
class Demo extends Command
{
protected $signature = 'dynamicpdf:demo {--disable}';
protecte... | PHP | console/Demo.php | mplodowski/dynamicpdf-plugin | mit | 1,254 | 50 | codeparrot/github-code |
8c45c2034fee904d0baa348e4ae3465118d19054a3c43fcc66acc97c633ffcbd | <?php
namespace TelegramBot\Api\Types\InputMedia;
use TelegramBot\Api\BaseType;
use TelegramBot\Api\Collection\CollectionItemInterface;
/**
* Class InputMedia
* This object represents the content of a media message to be sent.
*
* @package TelegramBot\Api
*/
class InputMedia extends BaseType implements Collecti... | PHP | src/Types/InputMedia/InputMedia.php | tgbot/api | mit | 2,448 | 130 | codeparrot/github-code |
7041c2a107b1e39b824f66d0ad00701d6ff51802c4e6bb1b956d0263389d4a9b | /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/
package com.microsoft.azure.management.graphrbac.samples;
import com.google.common.io.ByteStreams;
import com.microsoft.azure.AzureEnvironment;
import ... | Java | azure-samples/src/main/java/com/microsoft/azure/management/graphrbac/samples/ManageServicePrincipalCredentials.java | martinsawicki/azure-sdk-for-java | mit | 10,249 | 231 | codeparrot/github-code |
eec230a6830493e7c50e199720a5274243f3580863c02aa9b5f6d21ddb49d89e | require File.dirname(__FILE__) + '/../../spec_helper'
require File.dirname(__FILE__) + '/shared/each'
require 'timeout'
# force reload for Prime::method_added and Prime::instance
Object.send(:remove_const, :Prime) if defined?(Prime)
load 'prime.rb'
describe "Prime.each" do
it_behaves_like :prime_each, :each, Prime
... | Ruby | library/prime/each_spec.rb | sorah/rubyspec | mit | 2,532 | 104 | codeparrot/github-code |
12764396af4a86b264a3fcfcd140389222da646dfa92a5b43f058164368295b2 | /*global require: false, module: false, process: false */
"use strict";
var mod = function(
_,
Promise,
Options,
Logger
) {
var Log = Logger.create("AppContainer");
var WebAppContainer = function() {
this.initialize.apply(this, arguments);
};
_.extend(WebAppContainer.prototype, {
initialize:... | JavaScript | src/web/thicket/appkit/web-app-container.js | maseb/thicket | mit | 963 | 49 | codeparrot/github-code |
02a46efa6de271cee7cd1c7cc31730db3837699d4875b9a572da1c7f4458a6b3 | "use strict";
const Base = require('yeoman-generator');
const generatorArguments = require('./arguments');
const generatorOptions = require('./options');
const generatorSteps = require('./steps');
module.exports = class ResponseGenerator extends Base {
constructor(args, options) {
super(args, options);
Obj... | JavaScript | generators/response/index.js | italoag/generator-sails-rest-api | mit | 1,039 | 50 | codeparrot/github-code |
a6e9e0eea5ebe73f9a26940d307b02326a60978cd1d32009d5ff5373025a07ae | --- === cp.apple.finalcutpro.inspector.color.ColorBoard ===
---
--- Color Board Module.
local require = require
--local log = require "hs.logger".new "colorBoard"
local Aspect = require "cp.apple.finalcutpro.inspector.color.ColorBoardAspect"
local axutils ... | Lua | src/extensions/cp/apple/finalcutpro/inspector/color/ColorBoard.lua | CommandPost/CommandPost | mit | 11,040 | 359 | codeparrot/github-code |
20eb56bf4972355dc7bf27798f4b706f839e66e15f7374e9310178973ceb5bcf | var _extend = function(obj, source) {
for (var prop in source) {
obj[prop] = source[prop];
}
return obj;
};
var STATUS = {
blank: 'blank',
booked: 'booked',
overflowing: 'overflowing'
};
var ACTION = {
initialBook: 'initialBook',
book: 'book'
};
/**
* SequenceObject
*/
var S... | JavaScript | src/sequence.js | henryleu/mysequence | mit | 5,414 | 174 | codeparrot/github-code |
a5df38061e7d51a153f7bbb8460f9dd217aaeedfd2cf9f4bd9ba1421d69234dc | /* recipf4 - for each of four float slots, compute reciprocal.
Copyright (C) 2006, 2007 Sony Computer Entertainment 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:
* Redist... | C | bullet-2.78/Extras/simdmathlibrary/spu/simdmath/recipf4.h | xissburg/XDefrac | mit | 2,271 | 51 | codeparrot/github-code |
1149555c1c1b76315c1a5ea7a7f7098896609237cfb063da7dd1794085d377a5 | '''
Created on Mar 4, 2017
@author: preiniger
'''
def __validate_alliance(alliance_color, teams, official_sr):
team1sr = None
team2sr = None
team3sr = None
# TODO: there has to be a better way... but I'd rather not touch the DB
for sr in teams[0].scoreresult_set.all():
if sr.match.matchN... | Python | ScoutingWebsite/Scouting2011/model/validate_match.py | ArcticWarriors/scouting-app | mit | 2,608 | 87 | codeparrot/github-code |
57c2a301d6b0d63b5197ae501ff83359b2840fb02e1ea34f2040e89429eb87be | /*
* File: gtypes.cpp
* ----------------
* This file implements the classes in the gtypes.h interface.
*
* @version 2016/10/14
* - modified floating-point equality tests to use floatingPointEqual function
* @version 2015/07/05
* - using global hashing functions rather than global variables
* @version 2014/10/... | C++ | lectures/26-Inheritance/code/Polymorphism/lib/StanfordCPPLib/graphics/gtypes.cpp | tofergregg/cs106X-website-winter-2017 | mit | 5,032 | 205 | codeparrot/github-code |
84e981ade1ddac241967be442e9795efc7bb5a447045d4054fe19e28fb0f683f | /*
Package: dyncall
Library: dyncallback
File: dyncallback/dyncall_args_x86.c
Description: Callback's Arguments VM - Implementation for x86
License:
Copyright (c) 2007-2009 Daniel Adler <dadler@uni-goettingen.de>,
Tassilo Philipp <tphilipp@potion-studios.com>
Permission to use, copy, mo... | C | jni/dyncall/dyncallback/dyncall_args_x86.c | atsushieno/jenoa | mit | 3,814 | 119 | codeparrot/github-code |
35cbc693e7ee78c37370b850580e4e871af9efa4653af2fb00a72d4e3cdcb2a7 | package fr.sii.atlantique.siistem.personne.model;
/**
* Event Class with JPA
* @author Dorian Coqueron & Pierre Gaultier
* @version 1.0
*/
import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.Jso... | Java | personne/src/main/java/fr/sii/atlantique/siistem/personne/model/Event.java | P1erreGaultier/PepSIIrup-2017 | mit | 4,247 | 203 | codeparrot/github-code |
e8daf8a2fdc0571d83ec9c7149bc7f71626e175d44a48528d78d5c52bfdd9a3d | using Ploeh.AutoFixture;
using Xunit;
using Xunit.Extensions;
namespace Ploeh.Samples.ProductManagement.PresentationLogic.Wpf.UnitTest
{
public class MoneyViewModelTest
{
[Theory, AutoMoqData]
public void AmountIsProperWritableProperty(decimal expectedAmount, MoneyViewModel sut)
{
... | C# | Module-2/Design-Patterns/Materials/DI.NET/WpfProductManagementClient/PresentationLogicUnitTest/MoneyViewModelTest.cs | owolp/Telerik-Academy | mit | 1,406 | 46 | codeparrot/github-code |
59ec02d04e8dc4b9119721c47776b03e5c5584b6af2aef090aeb2c965098ac01 | #ifndef AD_DBXUTIL_H
#define AD_DBXUTIL_H 1
//
// (C) Copyright 1993-2004 by Autodesk, Inc.
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
// provided that the above copyright notice appears in all copies and
// tha... | C | 2006/inc/dbxutil.h | kevinzhwl/ObjectARXMod | mit | 11,987 | 337 | codeparrot/github-code |
eb373c5d91abb3fc4cbfa0ac276bdaa1027be39abf73ff80f6f66911aaba2b17 | /*
* Copyright (c) 2010-2017 Nathan Rajlich
*
* 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... | Java | src/main/java/org/java_websocket/AbstractWrappedByteChannel.java | leancloud/Java-WebSocket | mit | 2,843 | 98 | codeparrot/github-code |
a9c4bb39b54df0da906de2828cdb30fdacb781044c76af7cc05b97895fa9a28e | 'use strict';
const _ = require('lodash');
const moment = require('moment-timezone');
module.exports = BaseTypes => {
BaseTypes.ABSTRACT.prototype.dialectTypes = 'https://mariadb.com/kb/en/library/resultset/#field-types';
/**
* types: [buffer_type, ...]
* @see documentation : https://mariadb.com/kb/en/libr... | JavaScript | lib/dialects/mariadb/data-types.js | yjwong/sequelize | mit | 3,315 | 123 | codeparrot/github-code |
8cdef5c177ed8153f3874e0924abb68c74592a4708cbf9e47ca4cc9510a5c2f4 |
//
// Copyright (c) .NET Foundation and Contributors
// See LICENSE file in the project root for full license information.
//
#include <nanoHAL.h>
#include <lwip/netif.h>
extern "C" struct netif * nf_getNetif();
bool Network_Interface_Bind(int index)
{
(void)index;
return true;
}
int Network_Interface_Op... | C++ | targets/FreeRTOS/NXP/_nanoCLR/Target_Network.cpp | nanoframework/nf-interpreter | mit | 1,449 | 60 | codeparrot/github-code |
90363abe3619bbdfa76dffe1791e2ad0f54be8f3a62d8260cacd05806b248782 | module.exports = function () {
var faker = require('faker');
var _ = require('lodash');
var getUserInfo = require('./mocks/getUserInfo.js');
var productName = function () {
return faker.commerce.productAdjective() +
' ' +
faker.commerce.productMaterial() +
' Widget';
};
var productIm... | JavaScript | generators/ng/templates/api/generate.js | matt-newell/generator-force | mit | 1,333 | 53 | codeparrot/github-code |
92ed71a506b8eae1fa01a65837bdb4dd66b19b463785e87bfc276945eb908539 | /*jshint esversion: 6 */
import Service from '@ember/service';
export default Service.extend({
createCustomBlock(name, options, callback_to_change_block) {
options.colour = options.colour || '#4453ff';
if (Blockly.Blocks[name]) {
//console.warn(`Redefiniendo el bloque ${name}`);
}
Blockly.Bl... | JavaScript | addon/services/blockly.js | hugoruscitti/ember-blockly | mit | 3,914 | 152 | codeparrot/github-code |
a1afbf59e2ea2ca1d14fc243097b45f0a98ecedf1a37941ac5ccb954ef9d2b05 | using System;
namespace Nop.Core.Caching
{
/// <summary>
/// Extensions
/// </summary>
public static class CacheExtensions
{
/// <summary>
/// Get a cached item. If it's not in the cache yet, then load and cache it
/// </summary>
/// <typeparam name="T">Type</typepar... | C# | Libraries/Nop.Core/Caching/Extensions.cs | andri0331/cetaku | mit | 1,654 | 46 | codeparrot/github-code |
5bf53255823f4e5d680304ff8af40ab81ae8e67933dde0a61c4e24bedac17027 | using GalaSoft.MvvmLight.Messaging;
using System;
using System.Diagnostics;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using WordPressUWP.ViewModels;
namespace WordPressUWP.Views
{
public sealed partial class ShellPage : Page
{
private ShellViewModel ViewModel
{
get { r... | C# | WordPressUWP/Views/ShellPage.xaml.cs | wp-net/WordPressUWP | mit | 2,455 | 82 | codeparrot/github-code |
56334342bac5b5743f3239aec13ae38913cffbf1570a2c9bfafe966861af5233 | mf.include("chat_commands.js");
mf.include("assert.js");
mf.include("arrays.js");
/**
* Example:
* var id;
* var count = 0;
* task_manager.doLater(new task_manager.Task(function start() {
* id = mf.setInterval(function() {
* mf.debug("hello");
* if (++count === 10) {
* task_mana... | JavaScript | mineflayer-script/lib/task_manager.js | crazy2be/mineflayer | mit | 3,848 | 138 | codeparrot/github-code |
dcdbc669c07ce45dbea3670b7071575f5ac333e63e7d0e1c49f9fb9b3d1c77e1 | <?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\ErrorHandler;
use Doctrine\Common\Persistence\Proxy a... | PHP | src/Symfony/Component/ErrorHandler/DebugClassLoader.php | zorn-v/symfony | mit | 41,716 | 1,075 | codeparrot/github-code |
2c4cd0aca8373da1ac7ba1863512791e473c4776691574c782e205eb9fec0dad | /**
* Adds a new plugin to plugin.json, based on user prompts
*/
(function(){
var fs = require("fs"),
inquirer = require("inquirer"),
chalk = require("chalk"),
plugins = require("../plugins.json"),
banner = require("./banner.js"),
tags = require("./tags.js"... | JavaScript | scripts/addNewPlugin.js | admdh/postcss-plugins | mit | 3,389 | 100 | codeparrot/github-code |
62f2f6e659b172f24df3b462cb3d8d8e58c24aa538c47b2bbdd7523cd076e534 | import java.util.List;
class BuilderSingularNoAuto {
private List<String> things;
private List<String> widgets;
private List<String> items;
@java.beans.ConstructorProperties({"things", "widgets", "items"})
@java.lang.SuppressWarnings("all")
@javax.annotation.Generated("lombok")
BuilderSingularNoAuto(final List<S... | Java | test/transform/resource/after-delombok/BuilderSingularNoAuto.java | openlegacy/lombok | mit | 5,179 | 141 | codeparrot/github-code |
1058e9cf13d1608d8f56ccc6cbca67605b4b93133a9668d1705dab6edf5fb719 | $(function() {
/* We're going to use these elements a lot, so let's save references to them
* here. All of these elements are already created by the HTML code produced
* by the items page. */
var $orderPanel = $('#order-panel');
var $orderPanelCloseButton = $('#order-panel-close-button');
var $itemName =... | JavaScript | hw4/api/js/items.js | zyz29/yzhou9-webapps | mit | 4,719 | 136 | codeparrot/github-code |
5a2563783a53bfb57ce9476fc25170d6d150f39a682854b382607dc00664066b | // @flow
/* eslint-disable react/no-danger */
// $FlowMeteor
import { find, propEq } from "ramda";
import { Link } from "react-router";
import Split, {
Left,
Right,
} from "../../../components/@primitives/layout/split";
import Meta from "../../../components/shared/meta";
import AddToCart from "../../../components/... | JavaScript | imports/pages/give/campaign/Layout.js | NewSpring/apollos-core | mit | 2,414 | 90 | codeparrot/github-code |
1f8a99da9a8ffee5973b1a8694e36789b2a05f35bb410750bbbfcd6c2fd42722 | // Copyright (c) 2010-2014 SharpDX - Alexandre Mutel
//
// 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, modi... | C# | Source/Toolkit/SharpDX.Toolkit.Game/GameWindowRenderer.cs | sharpdx/Toolkit | mit | 9,285 | 259 | codeparrot/github-code |
fa0416dfac8d5d2e31232620e8cb41423cf1f6ac5d56336da60bbccd1eeb5dc2 | module Serve #:nodoc:
# Many of the methods here have been extracted in some form from Rails
module EscapeHelpers
HTML_ESCAPE = { '&' => '&', '>' => '>', '<' => '<', '"' => '"' }
JSON_ESCAPE = { '&' => '\u0026', '>' => '\u003E', '<' => '\u003C' }
# A utility method for escaping HTML ... | Ruby | lib/serve/view_helpers.rb | tka/serve | mit | 12,835 | 388 | codeparrot/github-code |
3be6d59bf758eca04879ca61901bc23ee1f41c19e0f41a2fd6addd7d8b60971c | import { Simple } from '@glimmer/interfaces';
import { DirtyableTag, Tag, TagWrapper, VersionedPathReference } from '@glimmer/reference';
import { Opaque, Option } from '@glimmer/util';
import { environment } from 'ember-environment';
import { run } from 'ember-metal';
import { assign, OWNER } from 'ember-utils';
impor... | TypeScript | packages/ember-glimmer/lib/views/outlet.ts | sivakumar-kailasam/ember.js | mit | 4,703 | 189 | codeparrot/github-code |
39eca84c6fdc7ca460b87503d2fdbcef6f07936a144305f5af81afc37c23abfa | var API_PHP ="http://devtucompass.tk/pici/BackEnd/Clases/chatAdmin.php";
var API_REST = "http://devtucompass.tk/pici/API/";
$.support.cors = true;
$.mobile.allowCrossDomainPages = true;
function enviarInfo(){
$("#enviarInfo").click(function(){
$.ajax({
type: "POST",
url: API_PHP,
dat... | JavaScript | js/chat.js | estigio/pici_prueba | mit | 2,859 | 99 | codeparrot/github-code |
acc044cf3a9b75420212a769d80f573c1c55e006056fc27a2c0618b927616ab7 |
(function(jiglib) {
var MaterialProperties = jiglib.MaterialProperties;
var CachedImpulse = jiglib.CachedImpulse;
var PhysicsState = jiglib.PhysicsState;
var RigidBody = jiglib.RigidBody;
var HingeJoint = jiglib.HingeJoint;
var BodyPair = jiglib.BodyPair;
var PhysicsSystem = jiglib.PhysicsSystem;
... | JavaScript | public/JigLibJS2/physics/PhysicsController.js | charlieschwabacher/Walking | mit | 871 | 51 | codeparrot/github-code |
ac4c100fa778500aa4746dbd1fac8393c7a0d3e89a5405a2ec96da7e2c8db376 | /*
* SameValue() (E5 Section 9.12).
*
* SameValue() is difficult to test indirectly. It appears in E5 Section
* 8.12.9, [[DefineOwnProperty]] several times.
*
* One relatively simple approach is to create a non-configurable, non-writable
* property, and attempt to use Object.defineProperty() to set a new v... | JavaScript | ecmascript-testcases/test-conv-samevalue.js | andoma/duktape | mit | 4,217 | 272 | codeparrot/github-code |
d60e9218f3b0befa6301def7cd94cf509244d14c2dfdc88808003ce2db523172 | <!-- saved from url=(0014)about:internet --><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
<!-- Standard Head Part -->
<head>
<title>NUnit - ParameterizedTests</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta http-equiv="Content-Language" content="en-US">
<meta n... | HTML | lib/NUnit-2.6.3/doc/parameterizedTests.html | primeinc/superputty | mit | 7,009 | 169 | codeparrot/github-code |
9adb6b2f9aea96f81faeeb49860f0c7fe3f3098879bc5369c9c07a2c920d9896 | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qdialog.cpp -... | HTML | QtEsrc/qt-everywhere-opensource-src-4.8.5/doc/html/qdialog-members.html | stephaneAG/PengPod700 | mit | 54,766 | 568 | codeparrot/github-code |
0a9f0e08f2fa7589afffab984507ceb541c381f88a3ce8d97cdbf903f9aa5dbe | /*
* @name शेक बॉल बाउंस
* @description एक बॉल क्लास बनाएं, कई ऑब्जेक्ट्स को इंस्टेंट करें, इसे स्क्रीन के चारों ओर घुमाएं, और कैनवास के किनारे को छूने पर बाउंस करें।
* त्वरणX और त्वरण में कुल परिवर्तन के आधार पर शेक घटना का पता लगाएं और पता लगाने के आधार पर वस्तुओं को गति दें या धीमा करें।
*/
let balls = [];
... | JavaScript | src/data/examples/hi/35_Mobile/03_Shake_Ball_Bounce.js | processing/p5.js-website | mit | 2,625 | 115 | codeparrot/github-code |
6af67fbaa83a0b168b05f1aca3230b652a1dd69d5b58770d391145402bdbd563 | import { removeFromArray } from '../../../utils/array';
import fireEvent from '../../../events/fireEvent';
import Fragment from '../../Fragment';
import createFunction from '../../../shared/createFunction';
import { unbind } from '../../../shared/methodCallers';
import noop from '../../../utils/noop';
import resolveRef... | JavaScript | src/view/items/shared/EventDirective.js | magicdawn/ractive | mit | 5,387 | 240 | codeparrot/github-code |
5214d77f70ed39dd520bf999089f4f2a70d081f2c8493b163b23b7916b2724f7 | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for details.
using System;
using System.Collections;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Globalization;
using System.Windows.Forms;
using ... | C# | src/managed/OpenLiveWriter.SpellChecker/SpellingPreferencesPanel.cs | gduncan411/OpenLiveWriter | mit | 15,853 | 340 | codeparrot/github-code |
9c82644edd385c764efaafbb139f020204e97b5b1e8c368d80931ba39db8142b | # -*- coding: utf-8 -*-
from math import floor
from typing import (
Tuple,
Any
)
from PyQt5.QtCore import (
QPointF,
QRectF,
Qt
)
from PyQt5.QtGui import (
QBrush,
QPen,
QPainterPath,
QPolygonF,
QMouseEvent,
QPainter
)
from PyQt5.QtWidgets import (
qApp,
QGraphicsIte... | Python | cadnano/views/pathview/strand/endpointitem.py | scholer/cadnano2.5 | mit | 22,478 | 591 | codeparrot/github-code |
24d87547d5571ba1d8a7925d53b37a807ff822ab1f48d318982572924b5dfaa8 | package infovis.gui;
import java.awt.Graphics2D;
import java.awt.event.MouseEvent;
import java.awt.geom.Point2D;
import java.awt.geom.Rectangle2D;
/**
* Provides meaningful default implementations for a {@link Painter}.
*
* @author Joschi <josua.krause@googlemail.com>
*/
public class PainterAdapter implements Pa... | Java | src/main/java/infovis/gui/PainterAdapter.java | JosuaKrause/BusVis | mit | 1,535 | 78 | codeparrot/github-code |
9e3b23e0f6837a02b81823f02d2488d7a72d24dfcd88500613ab198f1e00ae08 | using System;
using System.Diagnostics;
using slnRun.Helper;
namespace slnRun.SystemWrapper
{
public interface IProcessRunner
{
int Run(string path, string arguments, Action<OutputData> onOutput = null);
}
public class ProcessRunner : IProcessRunner
{
private readonly ILogger _log... | C# | source/slnRun/SystemWrapper/ProcessRunner.cs | danielvetter86/slnRun | mit | 1,620 | 56 | codeparrot/github-code |
75d37d2b64e2332066b4886a1eb3378910f4090d6a92a0bbd2b0bee27066ad22 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO.Ports;
using System.Diagnostics;
using System.IO;
using System.Windows.Threading;
namespace NintendoSpy
{
public delegate void PacketEventHandler (object sender, byte[] packet);
public class SerialMonitor
... | C# | SerialMonitor.cs | dram55/NintendoSpy | mit | 3,187 | 97 | codeparrot/github-code |
d48e5904edbfb9ca1ec49de5efa2514d57be905a34d1072a922e47e3f039a3e2 | // Copyright (c) 2017 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef ATOM_RENDERER_ATOM_AUTOFILL_AGENT_H_
#define ATOM_RENDERER_ATOM_AUTOFILL_AGENT_H_
#include <vector>
#include "base/memory/weak_ptr.h"
#include "content/public/renderer/render... | C | atom/renderer/atom_autofill_agent.h | thomsonreuters/electron | mit | 2,823 | 79 | codeparrot/github-code |
742ee273073f01eb75cd533d668e39ab3f157d1325010d75392a28748ee75d56 | /*
Copyright (C) 2015-2016 by Brendan G Bohannon
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, merge, publish, ... | C | bsvm2i/bs2i_oparr.c | cr88192/bgbtech_bsvm2 | mit | 42,661 | 1,348 | codeparrot/github-code |
d1ac06dd669c692bd4089ffd6a1961fc03200f8a1d7496320438ba2763bc34b5 | package de.stevenschwenke.java.writingawesomejavacodeworkshop.part3ApplyingToLegacyCode.legacy_ugly_trivia;
import java.util.Random;
/**
* This is the Java implementation of the "ugly trivia game", see
* https://github.com/jbrains/trivia/blob/master/java/src/main/java/com/adaptionsoft/games/uglytrivia/Game.java
*... | Java | src/test/java/de/stevenschwenke/java/writingawesomejavacodeworkshop/part3ApplyingToLegacyCode/legacy_ugly_trivia/GameRunner.java | stevenschwenke/WritingAwesomeJavaCodeWorkshop | cc0-1.0 | 871 | 39 | codeparrot/github-code |
f97b0861b0fa48107ab7a9275c9f8e21b5877aa0168610516881f8bbe3d4afe3 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
... | HTML | wks/2015/bios/205_kmendoza.html | ameliachu/nycaasc | cc0-1.0 | 7,115 | 135 | codeparrot/github-code |
be3a9b319b1362de603edaa9e2983e2fb0346c2ed7adfae0ace3fdd9e8091b06 | package mat.client.cqlworkspace;
import java.util.List;
import org.gwtbootstrap3.client.ui.Button;
import org.gwtbootstrap3.client.ui.ButtonGroup;
import org.gwtbootstrap3.client.ui.DropDownMenu;
import org.gwtbootstrap3.client.ui.constants.ButtonType;
import org.gwtbootstrap3.client.ui.constants.IconType;
import org... | Java | mat/src/main/java/mat/client/cqlworkspace/CQLLibraryEditorView.java | MeasureAuthoringTool/MeasureAuthoringTool_Release | cc0-1.0 | 5,251 | 162 | codeparrot/github-code |
806afd4404fe8589c4745545d3897990e06462dd49506fb01ed0809424dfafe0 | package org.hamcrest.junit.internal;
import java.io.PrintWriter;
import java.io.StringWriter;
import org.hamcrest.Description;
import org.hamcrest.Matcher;
/**
* A matcher that delegates to throwableMatcher and in addition appends the
* stacktrace of the actual Throwable in case of a mismatch.
*/
public class Sta... | Java | src/main/java/org/hamcrest/junit/internal/StacktracePrintingMatcher.java | alb-i986/hamcrest-junit | epl-1.0 | 1,670 | 54 | codeparrot/github-code |
94613d0ef6f96a7cdcf6cbda49eb1d6caad082c0374529a2fb7b4e01fd383a57 | /*******************************************************************************
* Copyright (c) 2019 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is a... | JavaScript | dev/com.ibm.ws.security.openidconnect.server/resources/WEB-CONTENT/tokenManager/js/apiUtils.js | OpenLiberty/open-liberty | epl-1.0 | 6,782 | 166 | codeparrot/github-code |
1717017c2d8f2627647b218cc12000aa7204e70f9ed670e73b1aaad0084a40c0 | /*!
* Copyright 2010 - 2015 Pentaho Corporation. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | JavaScript | js-lib/expanded/common-ui/visual/ccc/wrapper/charts/BarLineChart.js | SteveSchafer-Innovent/innovent-pentaho-birt-plugin | epl-1.0 | 4,152 | 112 | codeparrot/github-code |
33e68e58cbe89cd72458abfa87e366945b1aa560465acc3a07598d065f8e1f77 | /*
* Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
package org.... | Java | code-generator/binding-generator-impl/src/test/java/org/opendaylight/yangtools/sal/binding/generator/impl/ControllerTest.java | 522986491/yangtools | epl-1.0 | 1,645 | 41 | codeparrot/github-code |
e9ac97c7d4a18b0c8e0ad3538c8910b7dd79ed70142a9587194a65badafec81b | /******************************************************************************
*
* Copyright 2014 Paphus Solutions Inc.
*
* Licensed under the Eclipse Public License, Version 1.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 | sdk/java/src/org/botlibre/sdk/config/AvatarMedia.java | BOTlibre/BOTlibre | epl-1.0 | 2,939 | 92 | codeparrot/github-code |
f215051bd7033c5a8f61cbd48182e96575d16209353c35f524b4a1b2aa35dd78 | /**
* Copyright (c) 2005-2012 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Eclipse Public License (EPL).
* Please see the license.txt included with this distribution for details.
* Any modifications to this file must keep this entire header intact.
*/
/*
* Author: atotic
* Created... | Java | plugins/org.python.pydev.debug/src/org/python/pydev/debug/ui/launching/LaunchShortcut.java | akurtakov/Pydev | epl-1.0 | 1,054 | 35 | codeparrot/github-code |
097f7e32e3e35f6c1b4a5c9eed52a50f1ae5889714f1da321ab97fbaf40b3a3b | /*******************************************************************************
* Copyright (c) 2016, 2020 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, an... | Java | dev/com.ibm.ws.security.social/src/com/ibm/ws/security/social/internal/Oauth2LoginConfigImpl.java | kgibm/open-liberty | epl-1.0 | 30,610 | 814 | codeparrot/github-code |
0c2bc675580d530167a6ff3ef5e6b05ef24c1474f8b91a43bf8badbb17414c25 | /*******************************************************************************
* Copyright (c) 2011, 2019 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, an... | Java | dev/com.ibm.ws.app.manager.war/src/com/ibm/ws/app/manager/war/internal/ZipUtils.java | OpenLiberty/open-liberty | epl-1.0 | 16,415 | 433 | codeparrot/github-code |
840ad328b3345ade4c44ec1c2f8ae4de1dca2ac0c003ae945c208e4c3f1382d3 | var deps = [
'common-ui/angular',
'test/karma/unit/angular-directives/templateUtil',
'common-ui/angular-ui-bootstrap',
'angular-mocks',
'common-ui/angular-directives/recurrence/recurrence'
];
define(deps, function (angular, templateUtil) {
describe('weeklyRecurrence', function () {
var... | JavaScript | js-lib/expanded/common-ui/test/karma/unit/angular-directives/weeklyRecurrenceSpec.js | SteveSchafer-Innovent/innovent-pentaho-birt-plugin | epl-1.0 | 11,930 | 291 | codeparrot/github-code |
f94e5d4678022b30d9d18787e313c979c478768d6c18f7c8751caeb9e7c404d1 | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you m... | Java | dev/com.ibm.ws.org.apache.cxf.cxf.rt.rs.mp.client.3.3/src/org/apache/cxf/microprofile/client/cdi/CDIInterceptorWrapper.java | OpenLiberty/open-liberty | epl-1.0 | 2,578 | 68 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.