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
f96d8ed1a6cb461a1a52d57c46fc9080c85294b9a04ee9be0aa48448ea3b9a18
<?php namespace Oro\Bundle\ConfigBundle\DependencyInjection\SystemConfiguration; use Symfony\Component\Config\Definition\Processor; use Symfony\Component\Config\Definition\Builder\TreeBuilder; use Symfony\Component\Config\Definition\Builder\NodeDefinition; use Symfony\Component\Config\Definition\Exception\InvalidType...
PHP
src/Oro/Bundle/ConfigBundle/DependencyInjection/SystemConfiguration/ProcessorDecorator.php
Djamy/platform
mit
12,262
379
codeparrot/github-code
7586c4ce9352883121213bdf3328251784f55eebc5fea7163a5d88f6dd1a41a9
module Serenity class ImagesProcessor include Debug IMAGE_DIR_NAME = "Pictures" def initialize(xml_content, context) @replacements = [] @images = eval('@images', context) @xml_content = xml_content end def generate_replacements require 'nokogiri' if @images && @im...
Ruby
lib/serenity/images_processor.rb
theoo/serenity
mit
831
33
codeparrot/github-code
df48dae687cabeb4c132641d0c6796e6551fc66ddd97bd00863878f0daf39fe7
<?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" /> <!-- qtmac-as-nati...
HTML
QtEsrc/qt-everywhere-opensource-src-4.8.5/doc/html/qtmac-as-native.html
stephaneAG/PengPod700
mit
14,846
245
codeparrot/github-code
6059b02c9b4eee0fbdcdb0517ac5e463c51395345ee13a7cfa33f89dab5bdc42
import _Set from './internal/_Set.js'; import _curry2 from './internal/_curry2.js'; /** * Returns a new list containing only one copy of each element in the original * list, based upon the value returned by applying the supplied function to * each list element. Prefers the first item if the supplied function produ...
JavaScript
source/uniqBy.js
Bradcomp/ramda
mit
1,102
40
codeparrot/github-code
54e9d862ac0a7f40f7c45df804dc97c820c708d51cde7634f11b94a83301bc20
<?php namespace Encore\Admin\Grid\Tools; use Encore\Admin\Grid; use Illuminate\Contracts\Support\Renderable; abstract class AbstractTool implements Renderable { /** * @var Grid */ protected $grid; /** * Set parent grid. * * @param Grid $grid * * @return $this */ ...
PHP
src/Grid/Tools/AbstractTool.php
zhanghuacn/kaneki
mit
618
42
codeparrot/github-code
b860b061e972c10a1356391aee8638b68cf3f6e17867fb09150022ba7cf25f84
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. // =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ // // Sorting.cs // // Sup...
C#
src/System.Linq.Parallel/src/System/Linq/Parallel/Utils/Sorting.cs
shimingsg/corefx
mit
31,652
653
codeparrot/github-code
6745b845a127e271e7bf41837d36f1e3da245e53eba29ea088478bf59412c24e
const Constraint = Jymfony.Component.Validator.Constraint; /** * @memberOf Jymfony.Component.Validator.Constraints */ export default class Choice extends Constraint { /** * @inheritdoc */ static getErrorName(errorCode) { switch (errorCode) { case __self.NO_SUCH_CHOICE_ERROR: ret...
JavaScript
src/Component/Validator/src/Constraints/Choice.js
alekitto/jymfony
mit
1,581
47
codeparrot/github-code
8406e6c5e3adf4188b43910020863fc81a13b5307db05502706ef5ca0a19b1b3
<!doctype html> <html> <head> <title>Rozvrhy FIT ČVUT</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link type="text/css" rel="stylesheet" href="fittable.css"> </head> <body> <div id="fittable-signpost"> <div class="langswitcher js-langswitcher"><...
HTML
src/signpost.html
cvut/fittable-widget
mit
3,653
129
codeparrot/github-code
fd197a395d3ea630c3a5cc5292e6e7bf4c22fb004214a353f01b93dcbcb20021
class EuropePmcFulltext < Agent # include common methods for Europe PMC include Pmcable def get_query_url(options = {}) query_string = get_query_string(options) return {} unless query_string.present? page = options[:page] || 1 url % { query_string: query_string, page: page } end def get_qu...
Ruby
app/models/agents/europe_pmc_fulltext.rb
articlemetrics/lagotto
mit
2,622
92
codeparrot/github-code
fccc35703ac793eaa4ab331adfe19b601657f39c5e18db4b980982129ed28641
<?php /* * This file is part of the Sylius package. * * (c) Paweł Jędrzejewski * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Sylius\Bundle\ResourceBundle; use Sylius\Bundle\ResourceBundle\DependencyInjection\Compiler...
PHP
src/Sylius/Bundle/ResourceBundle/AbstractResourceBundle.php
pfwd/Sylius
mit
5,741
172
codeparrot/github-code
e93eab086c25a27648376d4b82b6d9acc5d563e0232f09d2aa169129c703d4f4
# encoding: UTF-8 module MongoMapper module Plugins module Associations class OneEmbeddedPolymorphicProxy < OneEmbeddedProxy def replace(value) @value = value.respond_to?(:attributes) ? value.attributes.merge(association.type_key_name => value.class.name) : value reset en...
Ruby
lib/mongo_mapper/plugins/associations/proxy/one_embedded_polymorphic_proxy.rb
mongomapper/mongomapper
mit
745
32
codeparrot/github-code
f637135d9a18e736f752ad0b731fc5b05888a89fd25e83a75ed503d42c4a9715
'use strict'; const common = require('../common'); const assert = require('assert'); const async_hooks = require('async_hooks'); const initHooks = require('./init-hooks'); // Verify that if there is no registered hook, then those invalid parameters // won't be checked. assert.doesNotThrow(() => async_hooks.emitInit()...
JavaScript
nodejs/test/async-hooks/test-emit-init.js
hoho/dosido
mit
1,731
50
codeparrot/github-code
c79b574e9d828559a8c920435b951829ad3b8ce16788319231ed03d43bc9f985
package com.uphold.uphold_android_sdk.test.integration.service; import com.darylteo.rx.promises.java.Promise; import com.darylteo.rx.promises.java.functions.RepromiseFunction; import junit.framework.Assert; import com.uphold.uphold_android_sdk.client.restadapter.UpholdRestAdapter; import com.uphold.uphold_android_sd...
Java
src/app/src/androidTest/java/com/uphold/uphold_android_sdk/test/integration/service/ReserveServiceTest.java
uphold/uphold-sdk-android
mit
5,024
127
codeparrot/github-code
563c4a47dd68076f1529e0247c4d62712be40cc2c35ca10449b26d7ea2e43e10
using System; using System.Collections.Generic; namespace GoogleMeasurementProtocol.Parameters.Timing { /// <summary> /// Specifies the time it took to do a DNS lookup.The value is in milliseconds. /// </summary> public class DnsTime : Parameter { public DnsTime(int value) : base...
C#
src/GoogleMeasurementProtocol/Parameters/Timing/DnsTime.cs
ayls/google-measurement-protocol-dotnet
mit
688
32
codeparrot/github-code
0880e3b05102f01460c4305a4872544cb06de2c8b012d50a9ba64631ba742872
using System; using System.Linq; using System.Collections.Generic; using System.Drawing; using MonoTouch.Foundation; using MonoTouch.UIKit; using Cheapster.Data; using Cheapster.Data.Models; using Cheapster.ViewControllers.Shared; namespace Cheapster.ViewControllers { public class HomeTableView : UITableView { pri...
C#
Cheapster/ViewControllers/HomeTableView.cs
ayoung/Cheapster
mit
4,325
165
codeparrot/github-code
d8537d87e04e1ace178ae8161e61dfcdab88c24e0e8f3b47c6e9b95498c263cb
using System; using System.ComponentModel; using System.Drawing; using System.Drawing.Drawing2D; using System.Drawing.Text; using System.Windows.Forms; namespace stCoreUI { public delegate void ValueChangedEventHandler(object sender, ValueChangedEventArgs e); [DefaultProperty("Value"), DefaultEvent("Val...
C#
stRevizorUI/stCoreUI-dll/Control/FlatNumeric.cs
PetersSharp/stRevizor
mit
5,317
239
codeparrot/github-code
066fb4f3dd8a2744a1b1f8ff06cf9dfa01eea139ad4015f7261453699e4e9ae3
<?php class Creatuity_Processor extends Error_Processor { protected $_storeCode; protected $_magentoConfig; public function process503() { $this->pageTitle = 'Error 503: Service Unavailable'; $this->_sendHeaders(503); header('Retry-After: 86400'); $this->_renderPage('m...
PHP
errors/creatuity_processor.php
creatuity/custom-maintenance
mit
2,875
94
codeparrot/github-code
d7bad26d116a49db279c6e955c922a70f103ca130a248e23d8299dd93e00225f
<?php namespace Sun\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class RegistrationRequest extends FormRequest { /** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return true; } /** * G...
PHP
src/Http/Requests/RegistrationRequest.php
hemusyl/Laravel-Auth
mit
645
33
codeparrot/github-code
6bb0cf45da5850cac9ec10a74441bf0c057676a80aca42b01c752c3e8254e591
/* _/ _/_/ _/_/_/_/_/ _/ _/ _/ _/ _/_/ _/ _/ _/_/_/ _/_/_/ _/ _/ _/_/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ ...
JavaScript
jqtouch/extensions/jqt.activityIndicator.js
scottpersinger/M5
mit
4,954
144
codeparrot/github-code
2f130b650b21ab4b91989a32f78322b32f060dbdda43e8ccbe671fefbb6d59c6
# encoding: utf-8 require 'erb' require 'fileutils' require 'base64' require 'set' require 'stringio' module RubyProf # Prints a HTML visualization of the call tree. # # To use the printer: # # result = RubyProf.profile do # [code to profile] # end # # printer = RubyProf::...
Ruby
src/speedup/precompiled-gems/Ruby27/mac/Gems/gems/ruby-prof-1.4.3/lib/ruby-prof/printers/call_stack_printer.rb
SketchUp/speedup
mit
5,323
181
codeparrot/github-code
c29a66782be0467203c5679def99a6e315af3defa2b85c85be87b90ffe267e21
/* Copyright Joyent, Inc. and other Node contributors. All rights reserved. * * 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 * righ...
C
src/node/deps/uv/src/win/fs-event.c
x684867/nemesis
mit
15,654
527
codeparrot/github-code
b77d3b870cf245096213819669382289b27cd0302100415f62dbe9d83266ea69
/** */ package gluemodel.CIM.IEC61968.Metering.impl; import gluemodel.CIM.IEC61968.Common.DateTimeInterval; import gluemodel.CIM.IEC61968.Customers.CustomerAgreement; import gluemodel.CIM.IEC61968.Customers.CustomersPackage; import gluemodel.CIM.IEC61968.Metering.DemandResponseProgram; import gluemodel.CIM.IEC61968...
Java
solutions/eMoflon/rgse.ttc17.metamodels.src/src/gluemodel/CIM/IEC61968/Metering/impl/EndDeviceControlImpl.java
georghinkel/ttc2017smartGrids
mit
26,820
773
codeparrot/github-code
97936d4c272c05a12f4dbfed03517a2bb24587f5b0641d02eb02b4d5a9f20612
var expect = require('chai').expect, Model = require('../lib/model'); describe('attribute initial state', function () { var ModelClass, NestedClass; before(function () { NestedClass = Model.inherit({ attributes: { a: Model.attributeTypes.String.inherit({ ...
JavaScript
test/isset-unset.js
km256/promised-models
mit
3,226
94
codeparrot/github-code
3f3ac128b1e510f239113951648e166b7767108389260934c060be6fec3b9893
import { RELOAD_WEBVIEW, WEBVIEW_ERROR } from '../../middlewares/Webviews/types'; import { ADD_ACCOUNT, REMOVE_ACCOUNT, TOGGLE_SIDEBAR, TOGGLE_SIDEBAR_ITEM_POSITION, UPDATE_SETTINGS, UPDATE_UNREAD_EMAILS } from './types'; const initialState = { accounts: [], settings: { darkTheme: false, hideSidebar: false...
JavaScript
src/renderer/containers/App/reducer.js
BeatPlus/Protonmail
mit
1,821
85
codeparrot/github-code
56dd0b1051be9e88bfe986127be03e77267098965a09c7531fdd02b0e3572203
using System; using System.Diagnostics; using System.Threading; namespace TomanuExtensions.Utils { public class Profiler { public static long Profile(Action a_action, int a_tries = 5, int a_action_repeats = 1, bool a_boost = true) { IntPtr old_aff = Process.GetCurrentProcess().Proc...
C#
Hashing/TomanuExtensions/Utils/Profiler.cs
dangershony/NStratis
mit
1,701
53
codeparrot/github-code
e21bc9975a7db4cd1dc2a43ca24e28b97d951364294325cca321b41a05088d02
import numpy import chainer from chainer import backend from chainer import configuration import chainer.functions as F from chainer import link_hook import chainer.links as L from chainer import variable import chainerx from chainerx import _fallback_workarounds as fallback def l2normalize(xp, v, eps): """Norma...
Python
chainer/link_hooks/spectral_normalization.py
keisuke-umezawa/chainer
mit
11,583
295
codeparrot/github-code
cb807fc9aee04f9b2ec5eb492c4fbaf9cf49260e5e78cd40e1bb6d384810e8af
'use strict'; /*global ActiveXObject:true*/ var defaults = require('./../defaults'); var utils = require('./../utils'); var buildUrl = require('./../helpers/buildUrl'); var cookies = require('./../helpers/cookies'); var parseHeaders = require('./../helpers/parseHeaders'); var transformData = require('./../helpers/tra...
JavaScript
lib/adapters/xhr.js
bananaoomarang/axios
mit
3,041
110
codeparrot/github-code
0daa12ef1faff2227f5df7d1513c5f205122bd3d089ad085350d481a79c435fc
#include "cbase.h" #include "nb_header_footer.h" #include "vgui_controls/Label.h" #include "vgui_controls/ImagePanel.h" #include <vgui/ISurface.h> #include "vgui_hudvideo.h" //#include "sdk_video.h" #include "VGUIMatSurface/IMatSystemSurface.h" #include "hl2_gamerules.h" // UI defines. Include if you want to implement...
C++
src/game/client/hl2/vgui/nb_header_footer.cpp
sparrowstar/Sourcemod-Name-TBD-EnginePort
mit
13,061
456
codeparrot/github-code
f279854cbb838036d7ee1bde74e8ea97b012ff067add907776fe8d6a5c0e857c
using GenFx; using GenFx.Components.Lists; using GenFx.Validation; namespace BinaryPatternMatching { [RequiredGeneticEntity(typeof(BinaryStringEntity))] public class BinaryStringMutationOperator : UniformBitMutationOperator { protected override bool GenerateMutation(GeneticEntity entity) {...
C#
samples/BinaryPatternMatching/BinaryStringMutationOperator.cs
mthalman/GenFx
mit
1,038
35
codeparrot/github-code
c8622e62498b705f558e81dfbc82a6c909ccbd4f7959248d0c7be384ab4824cc
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>. // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using osu.Framework.Allocation; using osu.Framework.Extensions.Color4Extensions; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framewo...
C#
osu.Game/Screens/Ranking/ResultModeButton.cs
NeoAdonis/osu
mit
3,326
100
codeparrot/github-code
78dcb040ce45e5f8c4da5a87fadce5593ef9fb06f11a6e0a6ca82185084f88d9
angular.module('teamform-manage_team-app', ['firebase']) .controller('ManageTeamCtrl', ['$scope', '$firebaseObject', '$firebaseArray', function($scope, $firebaseObject, $firebaseArray) { initalizeFirebase(); var teamleader; firebase.auth().onAuthStateChanged(function(user) { if (user) { var userPath ...
JavaScript
app/assets/js/manage_team.js
henryszex42s/teamform-seed
mit
5,798
181
codeparrot/github-code
02f2431b06bfdb3e1f00c1f8d4b392bfa06e3692615d5db321a8be8354584ff9
/* * Copyright (c) 2012, 2013, Joel Bodenmann aka Tectu <joel@unormal.org> * Copyright (c) 2012, 2013, Andrew Hannam aka inmarket * * All rights reserved. * * uRedistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * ...
C
Middlewares/ugfx/demos/modules/gdisp/multiple_displays/main.c
BeyondCloud/uRock
mit
4,366
135
codeparrot/github-code
de4be3da3dd2ee022b7704de47bf6cdd247d9a9c6dd1e836d0ca4ed8585253d7
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using Mono.Cecil; public partial class InnerWeaver : IAssemblyResolver { Dictionary<string, AssemblyDefinition> assemblyDefinitionCache = new Dictionary<string, AssemblyDefinition>(StringComparer.InvariantC...
C#
FodyIsolated/AssemblyResolver.cs
umutozel/Fody
mit
3,530
99
codeparrot/github-code
f26375ad5655ca9a6f0f3d4d3afd71737664fd4973a39427f329ffa59ec71314
import m from 'mithril'; import prop from 'mithril/stream'; import h from '../h'; import _ from 'underscore'; const EnterKey = 13; const innerFieldInput = { oninit: function(vnode) { const inputState = { value: vnode.attrs.inputValue, setValue: function(value) { val...
JavaScript
legacy/src/c/filter-dropdown-number-range.js
catarse/catarse_admin
mit
7,404
188
codeparrot/github-code
e590ab336a2ecb8d9e73c8f121bbd864be8f1718255cdc4096d8b36e82ed8cfa
using System.IO; namespace FileHelpers { /// <summary> /// Read a record that is delimited by a newline /// </summary> internal sealed class NewLineDelimitedRecordReader : IRecordReader { private readonly TextReader mReader; /// <summary> /// Read a file line by...
C#
FileHelpers/Core/NewLineDelimitedRecordReader.cs
MarcosMeli/FileHelpers
mit
984
38
codeparrot/github-code
3d22a83e236d8ee704de8abc557e60518d681a96a2d7b855cb13894014982253
import sys as _sys import ast as _ast from ast import boolop, cmpop, excepthandler, expr, expr_context, operator from ast import slice, stmt, unaryop, mod, AST def _make_node(Name, Fields, Attributes, Bases): def create_node(self, *args, **kwargs): nbparam = len(args) + len(kwargs) assert nbparam ...
Python
Tensorflow_Pandas_Numpy/source3.6/gast/gast.py
ryfeus/lambda-packs
mit
9,289
255
codeparrot/github-code
0a0505e366f1f60c6096ed311fe9d67f39b6ceca131c6d1ed54ceda3fd234dc8
/* ______ ___ ___ * /\ _ \ /\_ \ /\_ \ * \ \ \L\ \\//\ \ \//\ \ __ __ _ __ ___ * \ \ __ \ \ \ \ \ \ \ /'__`\ /'_ `\/\`'__\/ __`\ * \ \ \/\ \ \_\ \_ \_\ \_/\ __//\ \L\ \ \ \//\ \L\ \ * \ \_\ \_\/\____\/\____\ \____\ \____ \ \_\\ \____/ * ...
C
Libraries/allegro5-5.1/src/linux/lhaptic.c
tsteinholz/CPP-SRHS
mit
20,739
856
codeparrot/github-code
260461f8643a438f25f533ae1a8840890f8e57298105579d11e1e51be5da77c4
<?php namespace Browser; /** * Language Detection * * @package browser */ class Language { private static $acceptLanguage; private static $languages; /** * Detect a user's languages and order them by priority * * @return void */ private static function checkLanguages() { ...
PHP
src/Browser/Language.php
MatiasNAmendola/php-browser
mit
3,191
135
codeparrot/github-code
888229aecc9317da23ccd2fde859ae9f972e9d5668fabe57b5c9a8755006a127
import { expect } from 'chai'; import React from 'react'; import { Provider } from 'react-redux'; import { mount } from 'enzyme'; import fakeStore from './fakeStore'; import CreateRecipe from '../../client/components/CreateRecipe.js'; describe('<CreateRecipe />', () => { let wrapper; before('render CreateRecipe'...
JavaScript
test/components/CreateRecipe.test.js
rompingstalactite/rompingstalactite
mit
1,032
34
codeparrot/github-code
fe9eeae822daed3c1c5158d05d870c36706d5974ac3f94cdeeffe76dde470e6d
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { MaterialModule } from '../material.module'; import { ProgressComponent } from './progress.component'; import { ProgressService } from './progress.service'; describe('ProgressComponent', () => { let component: ProgressComponent; le...
TypeScript
src/app/progress/progress.component.spec.ts
ditup/ditapp
mit
855
35
codeparrot/github-code
7f4e0cac038443456e7a88175bb5dd72af0260bac71647385161a3a6615ddd4c
/** * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE, version 2.1, dated February 1999. * * This program is free software; you can redistribute it and/or modify * it under the terms of the latest version of the GNU Lesser General * Public License as published by the Free Software Foundation; * * This progr...
Java
openbiwiki-core/src/main/java/org/jamwiki/utils/Utilities.java
opendatakraken/openbiwiki
mit
17,621
496
codeparrot/github-code
1d7a9fadb88c1ce0ea177d7d4e2b5214a2532097f2da86ab23bcf230c0e222ce
"use strict"; var FilterDispatcher = require("../dispatcher/filter_dispatcher"); module.exports = { changeDate: function changeDate(key, date) { var pos = arguments.length <= 2 || arguments[2] === undefined ? "start" : arguments[2]; FilterDispatcher.handleChangeDate({ type: "CHANGE_DATE", date:...
JavaScript
lib/actions/filter_actions.js
djforth/walkabout-jobs-search
mit
1,456
69
codeparrot/github-code
3c774ceaa43a63a8efccc9ace54e44327afc05c0594e49d5ba44e135b0abd7ec
// Generated on 12/11/2014 19:02:00 using System; using System.Collections.Generic; using System.Linq; using BlueSheep.Common.Protocol.Types; using BlueSheep.Common.IO; using BlueSheep.Engine.Types; namespace BlueSheep.Common.Protocol.Messages { public class RawDataMessage : Message { public ...
C#
BlueSheep/Common/Protocol/messages/security/RawDataMessage.cs
Sadikk/BlueSheep
mit
825
47
codeparrot/github-code
b03268ef92468d649bf0d4895a5dc56c26d63722526df70b89b78c966f88c016
//go:build windows // +build windows package win_services import ( "fmt" "os" "github.com/influxdata/telegraf" "github.com/influxdata/telegraf/filter" "github.com/influxdata/telegraf/plugins/inputs" "golang.org/x/sys/windows/svc" "golang.org/x/sys/windows/svc/mgr" ) type ServiceErr struct { Message string ...
GO
plugins/inputs/win_services/win_services.go
influxdata/telegraf
mit
5,225
234
codeparrot/github-code
13e755b4b1d282abe5817c37721d203801875d20a9a5eb0b21ea34422f6ef3c9
<?php /** * OAuth2 Hash Behavior * * PHP 5 * * Copyright (c) WizeHive, Inc. (http://www.wizehive.com) * * Licensed under The MIT License * For full copyright and license information, please see the LICENSE * Redistributions of files must retain the above copyright notice. * * @author Anthony Putignano <...
PHP
app/Plugin/OAuth2/Model/Behavior/OAuth2HashBehavior.php
ojengwa/cakephp-api-utils
mit
3,712
158
codeparrot/github-code
71db6fedaf5a67997557ebdfa932c9414aec4cf18699290a46fd99e40e1bef33
// Boost.Range library // // Copyright Neil Groves 2009. Use, modification and // distribution is subject to the Boost Software License, Version // 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // // For more information, see http://www.boost.org/libs/range/ // #ifn...
C++
mars/boost/range/algorithm_ext/overwrite.hpp
zhenyiyi/LearnDiary
mit
2,673
85
codeparrot/github-code
f976799d32055066dd66cbe89aa41ecaa35849ab0d6f2656106a9369f7b83d17
# Invert gray image import cv2 from . import print_image from . import plot_image def invert(img, device, debug=None): """Inverts grayscale images. Inputs: img = image object, grayscale device = device number. Used to count steps in the pipeline debug = None, print, or plot. Print = save ...
Python
plantcv/invert.py
AntonSax/plantcv
mit
794
34
codeparrot/github-code
4d8fd25a46c6a7bff4c3882ad6ddadece794b62d3edb218315f7073f03edcf24
<?php /** * This file is part of the @package@. * * @author: Nikolay Ermin <keltanas@gmail.com> * @version: @version@ */ namespace Module\Mailer\Subscriber; use Sfcms\Kernel\KernelEvent; use Symfony\Component\DependencyInjection\ContainerAware; use Symfony\Component\EventDispatcher\EventSubscriberInterface; cl...
PHP
class/Module/Mailer/Subscriber/EmailSenderSubscriber.php
siteforever/SiteForeverCMS
mit
1,966
64
codeparrot/github-code
cf3946f239062145090a88adeadb65f15ae7c151b39cb16914ce5f5ce13369f7
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content=""> <meta name="author" content="Dashboard"> <meta name="keyword" content="Dashboard, Bootstrap, Admin, Template, Theme, Res...
PHP
PMT_V0/application/views/calendar_view.php
SamPiy93/Project_management_Tool
mit
28,570
551
codeparrot/github-code
8171bea23672803a026edbd84235c8537257ea838bc1bd632986540c957600a9
<?php /* Plugin Name: Ultimate Branding Plugin URI: https://premium.wpmudev.org/project/ultimate-branding/ Description: A complete white-label and branding solution for multisite. Login images, favicons, remove WordPress links and branding, and much more. Author: WPMU DEV Version: 1.7.2.1 Author UR...
PHP
wp-content/plugins/ultimate-branding/ultimate-branding.php
creative2020/aao
mit
2,528
72
codeparrot/github-code
ccdeae846df6eeab3beaae487140e4ab6c8511c6896174a794ccef26f15610df
using System; using System.IO; namespace Bermuda.ExpressionGeneration { public class Input { public static void Main(string[] args) { MemoryStream stream = new MemoryStream(); String saber = new String('c', 4); StreamWriter writer = new StreamWrit...
C#
Bermuda.ExpressionGenerator/QL/Input.cs
melnx/Bermuda
mit
2,982
83
codeparrot/github-code
f3754c8bffc98a83882e28fbf03b8951273b4335d5ce944f95a7ff3719aa74e0
package crafttweaker.mc1120.formatting; import crafttweaker.api.formatting.IFormattedText; import net.minecraft.util.text.TextFormatting; /** * @author Stan */ public class FormattedMarkupString implements IMCFormattedString { private final TextFormatting markup; private final IMCFormattedString contents; ...
Java
CraftTweaker2-MC1120-Main/src/main/java/crafttweaker/mc1120/formatting/FormattedMarkupString.java
AllTheMods/CraftTweaker
mit
1,094
44
codeparrot/github-code
b26ae4f1e51545e3445b6a316cd66d07261a5f0d7d60fd2eb53f84d4ada951ae
// DotNetNuke® - http://www.dotnetnuke.com // Copyright (c) 2002-2018 // by DotNetNuke Corporation // // 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...
C#
DNN Platform/Library/UI/Modules/WebFormsModuleControlFactory.cs
svdv71/Dnn.Platform
mit
2,082
43
codeparrot/github-code
23b1fb662b87177c03aa484b652f3d882aa948f0a40f454c6dceab94a14e5b13
/* Copyright (c) 2013-2018 Mahmoud Fayed <msfclipper@yahoo.com> */ #ifndef GGEOAREAMONITORSOURCE_H #define GGEOAREAMONITORSOURCE_H #include <QApplication> #include <QGeoAreaMonitorSource> extern "C" { #include "ring.h" } class GGeoAreaMonitorSource : public QGeoAreaMonitorSource { Q_OBJECT public: VM *pVM;...
C
extensions/webassembly/ringqt/project/ringqt/include/ggeoareamonitorsource.h
ring-lang/ring
mit
934
57
codeparrot/github-code
254db200678b56ddb0033dcd064f36fcf49a5810f849bab4e707ebcbb6118f8a
<?php /* ======================================= ____ =========== DANGEROUS AREA! =========== ,' Y`. ======================================= / \ = These functions can not be changed! = \ () () / ======================================= `. /\ ,' ==================...
PHP
lib/magic-posts/dangerous.php
wp-plugins/magic-posts
mit
18,800
455
codeparrot/github-code
afbfe94169a0d007fa9955fe59116bce3b90edbd3c2c78d056cf0253ed2583d0
using System; using System.Globalization; using System.Windows; using System.Windows.Data; namespace RucheHome.Windows.Mvvm.Converters { /// <summary> /// 真偽値を反転させるクラス。 /// </summary> public class BooleanInverter : IValueConverter { /// <summary> /// 真偽値を反転させる。 /// </summar...
C#
Windows/Mvvm/Converters/BooleanInverter.cs
ruche7/RucheHomeLib
mit
1,621
57
codeparrot/github-code
0c22d475d3a5ca430c92ff5de9a3899ee1c5263a8bf8a0d5028e4b928e163af3
<!doctype html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=1024" /> <meta name="apple-mobile-web-app-capable" content="yes" /> <title>Submitting Bugs the Right Way | TJ VanToll</title> <meta name="description" content="Submitting Bugs the Right Way" /> <meta name="auth...
HTML
speaking/slides/Submitting-Bugs-the-Right-Way/Toronto/index.html
tjvantoll/tjvantoll.github.com
mit
44,876
643
codeparrot/github-code
d40ee4b7c159f9e9a0fa4b8ed551ce22742ccaccc83e03b033e0506620c378cd
/* * Copyright 2019 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 contributing ...
C++
erizo/src/third_party/webrtc/src/webrtc/rtc_base/task_utils/repeating_task.cc
lodoyun/licode
mit
2,503
81
codeparrot/github-code
81cfee601ff961b02237292834d3dd1aa030fd05785c700f7ae11edce6e4cf76
//________________________________________________________________________________________________ // statevector.js //todo: update description // // cStateVector object - This is a generic container useful for ... // Every item added to the queue is time stamped for time series analyis, playback, etc. // There ...
JavaScript
lbswebgl/js/statevector.js
richstoner/richstoner.github.com
mit
20,598
460
codeparrot/github-code
35a5226ec38774a22ba5b91432c3671e25bfb6c6afefa26bb6562e9e507fe11f
/******************************************************************************* * SAT4J: a SATisfiability library for Java Copyright (C) 2004, 2012 Artois University and CNRS * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0...
Java
Sat4jCore/src/org/sat4j/tools/encoding/Ladder.java
SCPTeam/Safe-Component-Provider
mit
7,433
223
codeparrot/github-code
30aebf7862efa014365adfb464d61722c16d79213d0a42c9bcecdcf5469fcd4a
export function seed(db) { const table = 'states' let id = 1 return Promise.all([ db(table).del(), // `id` is autoincrement and not generally necessary to explicitly define // However, for the `company_state` seed, having a consistent `id` to // reference makes things easier. db(table).insert({ id: id++...
JavaScript
starters/api/database/seeds/02-states.js
shnhrrsn/grind-framework
mit
4,761
65
codeparrot/github-code
2410394c72057cf947e0d603db6c5d981f77555791fa54386f86663b642dddf5
import { put, takeEvery } from 'redux-saga/effects'; import { push } from 'react-router-redux'; import { CRUD_CREATE_FAILURE, CRUD_CREATE_SUCCESS, CRUD_DELETE_FAILURE, CRUD_DELETE_SUCCESS, CRUD_GET_LIST_FAILURE, CRUD_GET_MANY_FAILURE, CRUD_GET_MANY_REFERENCE_FAILURE, CRUD_GET_ONE_FAILURE...
JavaScript
src/sideEffect/saga/crudResponse.js
matteolc/admin-on-rest
mit
2,388
67
codeparrot/github-code
30bedbc041fd10809de5eb2e02800ef4b78209a72d215634ee03bd8ec4756789
#!/usr/bin/env node 'use strict'; // Pseudo-constants: var DEFAULT_OPTIONS = { "format": "manifest" , "compactUrls": true , "includeErrors": false , "includeTypes": false }; // “Global” variables: var Nightmare = require("nightmare") , phantomjs = require("phantomjs-prebuilt") , pth = r...
JavaScript
echidna-manifester.js
darobin/echidna-manifester
mit
5,235
166
codeparrot/github-code
345193f9bfc951027fad0aaa816e9fa4731fbb69a49f5eadce1132c7d59ea122
// (c) Copyright 2016 Hewlett Packard Enterprise Development LP // 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/com/hp/application/automation/tools/model/SvDataModelSelection.java
hpsa/hp-application-automation-tools-plugin
mit
4,092
108
codeparrot/github-code
aebd82ca0a5e18be967391dc11b912d8af28e08c7cff9778acd8c2418da23e24
import re import quantities as pq from numbers import NumberService class ConversionService(object): __exponents__ = { 'square': 2, 'squared': 2, 'cubed': 3 } def _preprocess(self, input): def handleExponents(input): m = re.search(r'\bsquare (\w+)', input) ...
Python
semantic/units.py
jobdash/semantic
mit
4,744
147
codeparrot/github-code
6cdd4d5e5217953156a2a64ba09db6ca074bf7ab95661d05fb9d2334d15f84e8
namespace TeamElderberryProject { using System; using System.Windows.Forms; public struct TransactionData { private decimal amount; private DateTime date; public TransactionData(decimal amount, DateTime date) : this() { this.Amount = amount; ...
C#
LevelMoney/TeamElderberryProject/TransactionData.cs
DimitarSD/ElderberryTeam
mit
801
44
codeparrot/github-code
2ba5902b5cc8778f15dd7cd3a92c6cb4c6e9ef72267c77155b3c2a3e7c3a972d
var React = require('react/addons'); var blacklist = require('blacklist'); var classNames = require('classnames'); module.exports = React.createClass({ displayName: 'FormLabel', propTypes: { className: React.PropTypes.string, htmlFor: React.PropTypes.string, id: React.PropTypes.string, style: React.PropTypes...
JavaScript
src/components/FormLabel.js
VictorBjelkholm/elemental
mit
971
38
codeparrot/github-code
f68ec19f055c2c65e3f7002234e1b5967fa040586ed8e0624b7c75f80a58f362
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2013 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "rpcprotocol.h" #include "util.h" #include <stdint.h> #include <boost/algor...
C++
src/rpcprotocol.cpp
zeded/diff-test
mit
7,754
255
codeparrot/github-code
e151ad069ebe1f3d441ef789aeb95edca5f1e9ff643fbe9e212a169023f6144e
package org.jabref.logic.externalfiles; import java.io.IOException; import java.nio.charset.StandardCharsets; import java.nio.file.Path; import org.jabref.logic.importer.ImportFormatPreferences; import org.jabref.logic.importer.OpenDatabase; import org.jabref.logic.importer.ParserResult; import org.jabref.logic.impor...
Java
src/main/java/org/jabref/logic/externalfiles/ExternalFilesContentImporter.java
sauliusg/jabref
mit
1,554
37
codeparrot/github-code
f84cdcca8f4262e8e9991dfffdba525b262b9c2ec3ec9faa1b96fa9e635356af
package com.alorma.github.sdk.services.orgs; import com.alorma.github.sdk.services.client.GithubListClient; import com.alorma.gitskarios.core.client.UsernameProvider; import core.User; import java.util.List; import retrofit.RestAdapter; public class GetOrgsClient extends GithubListClient<List<User>> { private Strin...
Java
app/src/main/java/com/alorma/github/sdk/services/orgs/GetOrgsClient.java
epiphany27/Gitskarios
mit
1,469
53
codeparrot/github-code
92cde2d9131844d13736c977049f72534944e68b07d53d358a79cb50d5443b43
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class M_admin extends CI_Model { function __construct() { parent::__construct(); } function getAllData($table, $where = null, $order = null, $limit = null, $offset = null) { if (($limit !== null) && ($offset !== null)) { ...
PHP
simaak_app/models/M_admin.php
finsanurpandi/simaak
mit
2,214
92
codeparrot/github-code
dc305b76b1e1e3b2fc61f7d8901278f068135c0f255eaca5e92c13b7fe4aecc8
/*- * See the file LICENSE for redistribution information. * * Copyright (c) 2002,2008 Oracle. All rights reserved. * * $Id: Sample.java 63573 2008-05-23 21:43:21Z trent.nelson $ */ package collections.ship.index; import java.io.FileNotFoundException; import java.util.Iterator; import java.util.Map; import co...
Java
UnrealPyEmbed/Development/Python/2015.08.07-Python2710-x64-Source-vs2015/Python27/Source/db-4.7.25.0/examples_java/src/collections/ship/index/Sample.java
mollstam/UnrealPy
mit
9,635
279
codeparrot/github-code
9e32b24766d4d7e145f878fa20592a35b929e89a4077165eb233c3d0267c79fa
/** * 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; import com.microsoft.azure.management.apigeneration.Beta; import com.microsoft.azure.management.apig...
Java
azure-mgmt-graph-rbac/src/main/java/com/microsoft/azure/management/graphrbac/ActiveDirectoryGroup.java
jianghaolu/azure-sdk-for-java
mit
1,262
38
codeparrot/github-code
4a2ded9c727077a47ae37d49e0d7eafb046ce31419431479f89efb6ebc087812
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using System; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; #if UNITY_WSA || UNITY_STANDALONE_WIN using UnityEngine.Windows.S...
C#
Assets/HoloToolkit/Input/Scripts/Utilities/Managers/InputManager.cs
paseb/MixedRealityToolkit-Unity
mit
43,524
978
codeparrot/github-code
a583a3a719003d76881bf163c2ff0d90c3099dfb20b1845bf642d40e30566205
using GuiLabs.Canvas.DrawStyle; using GuiLabs.Utils; namespace GuiLabs.Canvas.Controls { public partial class Control { #region Events public event ActivatedHandler ControlActivated; protected void RaiseControlActivated(Control control) { if (ControlActivated != null) { ControlActivated(control); ...
C#
structurededitor-70298/Main/Controls/Control.Focus.cs
Ju2ender/CSharp-Exercise
mit
2,498
129
codeparrot/github-code
86875819825ffe25dc7434decb0fa66c9f99482d906e4ffadc940870b46b47aa
/** * Module dependancies */ var express = require('express') , models = require('../../models'); var router = express.Router() , Applicant = models.applicant() , JobPosting = models.jobPosting(); var ObjectIdBase64Conv = require('../../util').ObjectIdBase64Conv , objectIdToBase64 = ObjectIdBase64Con...
JavaScript
app/router/routes/bookmark.js
CrazyWearsPJs/UCRcareer
mit
2,793
114
codeparrot/github-code
073de4c91f9b4b59fafe7ea7a22478e2e19c3c5ea397ed45f39c888edf17b294
package nucleus.example.main; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.test.ActivityInstrumentationTestCase2; import android.test.UiThreadTest; import nucleus.example.TestActivity; import nucleus.factory.PresenterFactory; import nucleus.presenter.Presenter;...
Java
nucleus-example-with-fragments/src/androidTest/java/nucleus/example/main/FragmentStackTest.java
hejunbinlan/nucleus
mit
4,143
134
codeparrot/github-code
5146fcd5c9738d0ebbc511d19a8161f34b41ce2564502e1535e01358fe080d82
#import <Cocoa/Cocoa.h> #import "TKDTokaidoController.h" #import "TKDAppLogViewerController.h" #import "TKDApp.h" #import "TKDSelectableIcon.h" #import "TKDRailsAppTokenField.h" @interface TKDAppViewItem : NSCollectionViewItem <TKDRailsAppTokenFieldDelegate, TKDSelectableIconDelegate> @property (nonatomic, weak) IB...
C
Tokaido/TKDAppViewItem.h
webdev1001/tokaidoapp
mit
1,358
37
codeparrot/github-code
635782d5449cf9881be817e15eefbf806fd5e580f3a2f078599a8ec9230b752c
/** * Problem: Find the length of shortest transformation sequence * * Solution: BFS--for words in each level, try each possible letter a-z on each position of the word; * Use queue to store words in a level and use a hashset to mark visited words. */ import java.util.*; public class WordLadder{ public...
Java
leetcode/medium/WordLadder.java
wanghaohappy1/coding_problems
mit
1,427
54
codeparrot/github-code
35eb82c9d6e0200b77ecc644b6bb4e8f00b99aabd05d8dd6ff75f591677f0f38
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2019 Photon Storm Ltd. * @license {@link https://opensource.org/licenses/MIT|MIT License} */ // Adapted from [gl-matrix](https://github.com/toji/gl-matrix) by toji // and [vecmath](https://github.com/mattdesl/vecmath) by mattdesl var ...
JavaScript
src/math/Vector4.js
mahill/phaser
mit
13,857
540
codeparrot/github-code
081d1f1a2c42b6a28282ff01d9eac74e7b1b05cd640eb8f4da246972154fc064
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
TypeScript
src/vs/editor/common/view/viewEvents.ts
the-ress/vscode
mit
10,252
419
codeparrot/github-code
2dab5cc7dbe000a65c6e9a5e720252dc1320794df07942a7c534f5107e43dedd
'use strict'; // Adapted from https://github.com/tleunen/babel-plugin-module-resolver/blob/master/src/normalizeOptions.js const path = require('path'); const { createSelector } = require('reselect'); const defaultExtensions = ['.js']; const normalizeRoots = (optsRoot, cwd) => { return Object.keys(optsRoot).reduce...
JavaScript
packages/utils/babel-plugin-switch-ee-ce/lib/normalizeOptions.js
wistityhq/strapi
mit
859
37
codeparrot/github-code
0db576d2cbfec722cb7131c745cafe90713ba088c637f808929e00d24ac14a7c
module Refinery module Core include ActiveSupport::Configurable config_accessor :rescue_not_found, :s3_backend, :base_cache_key, :site_name, :google_analytics_page_code, :authenticity_token_on_frontend, :dragonfly_secret, :wymeditor_whitelist_tags, ...
Ruby
core/lib/refinery/core/configuration.rb
elhachimi/refinerycms
mit
2,377
78
codeparrot/github-code
4517303c7cc62cb35937356da522f738412bec66e732907e51ce074b11db4501
module OverSIP::WebSocket class WssServer < WsServer TLS_HANDSHAKE_MAX_TIME = 4 def post_init @client_pems = [] @client_last_pem = false start_tls({ :verify_peer => true, :cert_chain_file => ::OverSIP.tls_public_cert, :private_key_file => ::OverSIP.tls_private_ce...
Ruby
lib/oversip/websocket/listeners/wss_server.rb
yuan-/OverSIP
mit
3,037
89
codeparrot/github-code
c0f9bc535e3d4209eb9cfb6c16b6d385edb1887ede94c11498f13e571628ef1b
// -------------------------------------------------------------------------------------------------------------------- // <copyright file="Program.cs"> // Copyright (c) 2013 Alexander Logger. All rights reserved. // </copyright> // ------------------------------------------------------------------------------------...
C#
src/SharpTL.Compiler.CLI.NET45/Program.cs
Everbytes/SharpTL.Compiler
mit
3,208
92
codeparrot/github-code
cf413fb997f1a3ea99ee7e67af6a24cfd4621537461ddbc0d77e9153fd4ebab3
// // examples/fetch_cxx03.cpp // ------------------------ // // Copyright (c) 2015 Daniel Joos // // Distributed under MIT license. (See file LICENSE) // // ---------------------------------- // // This example shows how to create a 'FetchRequest' to get messages for a // specific Topic & partition. On success, all re...
C++
examples/fetch_cxx03.cpp
DEvil0000/libkafka-asio
mit
2,003
78
codeparrot/github-code
07a81ca8e50509d8a53ddc9cafea011bf74829abcb0daaf803e25be262c5c86f
{$headerLayout} <style media="screen"> .users .col-sm-2 { border-left: 1px dashed #ddd; height: 40px; } </style> <div id="wrap"> <!-- 左侧菜单栏目 --> {$sidebarLayout} <!-- 右侧内容 --> <div id="right-content"> <a class="toggle-btn"> <i class...
PHP
app/views/admin/users.php
rocboss/ROCBOSS
mit
13,202
246
codeparrot/github-code
c8feeba741c76b14eb5c8db737275a7c7a4e2e1e2de4cedc8891685b16d390f0
/*global SixSpeed */ var Fs = require('fs'), Path = require('path'); var $type = process.argv[2]; if ($type === 'babel') { require('babel-polyfill'); } if ($type === 'traceur') { require('traceur/bin/traceur-runtime'); } require('./runner'); var testDir = Path.join(__dirname, '..', 'build/tests'); Fs.readdir...
JavaScript
lib/node-test.js
Akkuma/six-speed
mit
709
33
codeparrot/github-code
991df49ecbb5abbea0c3f98fe9783ed6646c0aa538ae4b096ad9a1e603e1bd80
/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org Copyright (c) 2000-2014 Torus Knot Software Ltd Permission is hereby granted, free of charge, to any person obtain...
C
Components/RTShaderSystem/src/OgreShaderFFPFog.h
OGRECave/ogre
mit
4,989
188
codeparrot/github-code
0501c22d6270ef4dd857faa51775bf14bf466e160305e312fb3dbcdc9a151984
/* * Copyright 2011 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
Java
gradle/src/tooling-api/org/gradle/tooling/internal/consumer/loader/DefaultToolingImplementationLoader.java
HenryHarper/Acquire-Reboot
mit
6,676
111
codeparrot/github-code
9f304a3b5112004780b1333e6a8a8dc9f3bcb0fb03c4b8fb36a3798d5184c67f
#!/usr/bin/env python # coding:utf-8 import select import socket from nbNetUtils import DEBUG, dbgPrint __all__ = ["nbNet"] class STATE: def __init__(self): self.state = "accept" # 定义状态 self.have_read = 0 # 记录读了的字节 self.need_read = 10 # 头文件需要读取10个字节 self.have_write = 0 # 记录读了...
Python
net/cpNbnet.py
VictorXianwu/Python-Program
mit
8,370
220
codeparrot/github-code
b22bcf1a5f1398ce284eac4e44dafdd173364f5b98103ca044ea6888afa892cc
<?php namespace Oro\Bundle\EmbeddedFormBundle\Manager; use Symfony\Component\HttpFoundation\RequestStack; use Symfony\Component\Security\Csrf\TokenStorage\TokenStorageInterface; /** * This decorator allows to use the embedded form even if third-party cookies * are blocked in a web browser. */ class CsrfTokenStora...
PHP
src/Oro/Bundle/EmbeddedFormBundle/Manager/CsrfTokenStorageDecorator.php
Djamy/platform
mit
2,844
104
codeparrot/github-code
acc6953e252dcc2ff65a3e8ac5cf1b563b8cc823f1539276c13820bbc38bf982
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "walletdb.h" #include "wallet.h" #include <boost/version.hpp> #include <b...
C++
src/walletdb.cpp
coinkeeper/2015-06-22_18-41_hyper
mit
29,707
883
codeparrot/github-code
484ae90841706f0786269d6dc0e29cac7ca8d29c28e9d4cf9e8cac2a686cdebe
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v1.1.0-rc3-master-30e6657 */ (function( window, angular, undefined ){ "use strict"; /** * @ngdoc module * @name material.components.progressLinear * @description Linear Progress module! */ angular.module('material.components....
JavaScript
web/bower_components/angular-material/modules/js/progressLinear/progressLinear.js
jcasner/cyclesmc
mit
6,837
213
codeparrot/github-code
6ca6e6aae0788da44a7212db5e32e1deb2a81e04f39273673ac5632a9f4bd6cb
// Copyright (C) 2010-2015 Joshua Boyce // See the file COPYING for copying permission. #pragma once #include <string> #include <utility> #include <vector> #include <windows.h> #include <hadesmem/config.hpp> #include <hadesmem/error.hpp> namespace hadesmem { namespace detail { std::pair<bool, std...
C++
include/memory/hadesmem/detail/environment_variable.hpp
geota/hadesmem
mit
1,383
56
codeparrot/github-code
76b17c45e9b9c4f1cedfc454ac0a871950192683425deb6be67741e19955b5e2
package org.hmhb.csv; import javax.annotation.Nonnull; import javax.annotation.Nullable; import java.util.List; import org.hmhb.program.Program; import org.hmhb.user.HmhbUser; /** * A service to generate CSV from our data. */ public interface CsvService { /** * Generates the contents for a CSV from the ...
Java
src/main/java/org/hmhb/csv/CsvService.java
RyanBard/healthbam
mit
1,263
43
codeparrot/github-code
b87481bf6dc062e512261174476e55429ac0a99ebfedbbc719b57c34ed48a8d2
"use strict"; import * as fs from "fs"; import * as tl from "vsts-task-lib/task"; import ContainerConnection from "docker-common/containerconnection"; import * as sourceUtils from "docker-common/sourceutils"; import * as imageUtils from "docker-common/containerimageutils"; import * as utils from "./utils"; function d...
TypeScript
Tasks/Docker/containerpush.ts
pascalberger/vso-agent-tasks
mit
2,880
73
codeparrot/github-code
f67d6cb460e097278da252cfa6c5af106b9a0e7313c58afe24ab910fb109dc89
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <title>Uses of Class org.apache.poi.poifs.property.DocumentProperty (POI API Documentation)</title> <link rel="stylesheet" type="text/css" href="../../../../../../styleshe...
HTML
eclipse/poi-3.12/docs/apidocs/org/apache/poi/poifs/property/class-use/DocumentProperty.html
misuqian/ExcelTool
mit
6,999
161
codeparrot/github-code
83cd0f9e937f82aa14468a3b73e92f56b121f6006116816b698e11c8c163dd89
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <title>ShapesTable (POI API Documentation)</title> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> </head> <body> <script typ...
HTML
eclipse/poi-3.12/docs/apidocs/org/apache/poi/hwpf/model/ShapesTable.html
misuqian/ExcelTool
mit
10,695
286
codeparrot/github-code
3cd84986eaff35d22008c96c71a95e1d36e6412e0a005b81e13f861e1e29fd9b
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
C++
lib/Runtime/ByteCode/FuncInfo.cpp
Microsoft/ChakraCore
mit
16,894
555
codeparrot/github-code