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 |
|---|---|---|---|---|---|---|---|---|
d896171eadb93749c0541b0d09dc365b7c9f0e4b1eb434cc06c2f4730a10bc62 | <?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: t... | HTML | QtEsrc/qt-everywhere-opensource-src-4.8.5/doc/html/declarative-text-textselection-textselection-pro.html | stephaneAG/PengPod700 | mit | 10,901 | 244 | codeparrot/github-code |
b93afbeabef2ad122eb2c26b034a289da9bcb8b7dbbcae3a6d50a868fa2ed48d | import {m} from 'malevic';
import {CheckBox, UpDown, Select} from '../../../controls';
import {getLocalMessage} from '../../../../utils/locales';
import type {FilterConfig} from '../../../../definitions';
interface FontSettingsProps {
config: FilterConfig;
fonts: string[];
onChange: (config: Partial<Filter... | TypeScript | src/ui/popup/components/font-settings/index.tsx | alexanderby/darkreader | mit | 1,920 | 50 | codeparrot/github-code |
915c74f5f2e8eb6cc2078c413fdc020ac3a31577d8700b6daaf8d3f2e4e22129 | #pragma once
// ----------------------------------------------------------------------- INCLUDES
#include <boost/optional.hpp>
// ----------------------------------------------------------------------- SYNOPSIS
#include "simulator/compiler/parser/type/type_i.h"
// ------------------------------------------------------... | C | simulator/compiler/parser/type/info.h | AlexChernov/rdo_studio | mit | 1,547 | 48 | codeparrot/github-code |
85f6a456d9b7648e754f93de2adb0262b1495cc9f393dabc51c8c1d38ab5c4f5 | var BrowserWindow = require('browser-window');
var Spawn = require('child_process').spawn;
/**
* The `core-level` debugger utils, when you turn on the debugger,
* it actually run a [node-inspector](https://github.com/node-inspector/node-inspector)
* process in the low-level, and you can use your chrome browser debu... | JavaScript | core/debugger.js | jarradh/nucliasm | mit | 1,788 | 68 | codeparrot/github-code |
5b72184bdf1a54d4fc0cd1c0b5965f9376e5c6f8aced0105fb2a91ba2255653c | require 'gmail'
class GmailService
extend Resque::Plugins::Result
@queue = :gmail_queue
def self.connect(username, password)
Gmail.connect!(username, password)
end
def logout
@gmail.logout
end
def self.perform(meta_id=nil, list_name)
email_array = filter_emails_by_destination(list_name)
... | Ruby | app/workers/gmail_service.rb | cyrusinnovation/cyrus-lists | mit | 623 | 31 | codeparrot/github-code |
bdcf801cfa761899b23b447683f949c6feedb59e36b1812636893f25a45a4f81 | <!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
<script src="../../web-component-tester/browser.js"></script>
<!-- IMPORTANT --... | HTML | test/dropdown-test-es5.html | C-Lodder/custom-elements | mit | 5,555 | 164 | codeparrot/github-code |
e9669c73f549b94c581460b474af433676baf529b9e00b9f9d1b9f79749479fa | // Copyright 2013 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build darwin dragonfly freebsd linux nacl netbsd openbsd solaris
package runtime
import (
"unsafe"
)
// crashing is the number of m's we have waited for... | GO | src/runtime/signal_sighandler.go | christopher-henderson/Go | mit | 3,970 | 139 | codeparrot/github-code |
41da639ccf843bd24386c330ce30f80319a8e059eed273954e6e966321373417 | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICUL... | C++ | Samples/UWP/D3D12DepthBoundsTest/src/D3D12DepthBoundsTest.cpp | KevindeQ/DirectX-Graphics-Samples | mit | 18,822 | 455 | codeparrot/github-code |
c108fded6129ce390976a419ad3e15a7d408202bf49e87e61f2b51b2a9c8da1e | package org.deri.grefine.rdf.commands;
import java.io.IOException;
import java.util.Properties;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.deri.grefine.rdf.RdfSchema;
import org.deri.grefine.rdf.app.ApplicationContext... | Java | src/org/deri/grefine/rdf/commands/SaveRdfSchemaCommand.java | DTL-FAIRData/FAIRifier | mit | 2,287 | 69 | codeparrot/github-code |
1b156c190bcba7a1522fd05fba113c4e58238cedabb6f235259f14b509398195 | import DS from 'ember-data';
import JSONAPIFixtureBuilder from './jsonapi-fixture-builder';
import RESTFixtureBuilder from './rest-fixture-builder';
import JSONFixtureBuilder from './json-fixture-builder';
import DRFFixtureBuilder from './drf-fixture-builder';
import ActiveModelFixtureBuilder from './active-model-fixtu... | JavaScript | addon/builder/fixture-builder-factory.js | cristinawithout/ember-data-factory-guy | mit | 1,508 | 50 | codeparrot/github-code |
cd5ae6e07f720b02c2696cf181fdeb4e4fe23e83d676305b7ef4dd1b48fff7ed | var path = require('path');
var grunt = require('grunt');
var s3 = require('../tasks/lib/s3').init(grunt);
var S3Task = require('../tasks/lib/S3Task');
var deferred = require('underscore.deferred');
var async = grunt.util.async;
var _ = grunt.util._;
_.mixin(deferred);
var s3Config = grunt.config("s3")
, common = r... | JavaScript | test/s3Task.js | WoodWing/grunt-s3 | mit | 4,739 | 156 | codeparrot/github-code |
fcd64d9fe28e7fb6fb4a214dff2b2931b13d36f1137cdaf4e47cbc9561376a1f | #!/usr/bin/env python
from __future__ import absolute_import
import logging
import os
import optparse
import warnings
import sys
import re
from pip.exceptions import InstallationError, CommandError, PipError
from pip.utils import get_installed_distributions, get_prog
from pip.utils import deprecation, dist_is_editab... | Python | pip/__init__.py | nthall/pip | mit | 10,278 | 312 | codeparrot/github-code |
74cce84e041829c3099e726d57ae5cbeaadd5f52c6fe68d637a8aadc625caa48 | (function ($) {
"use strict";
var defaultOptions = {
tagClass: function(item) {
return 'badge badge-info';
},
itemValue: function(item) {
return item ? item.toString() : item;
},
itemText: function(item) {
return this.itemValue(item);
},
typeahead: {
source: null... | JavaScript | src/bootstrap-tagsinput.js | hussion/bootstrap-tagsinput | mit | 10,065 | 331 | codeparrot/github-code |
12d1a3fb687ef618b2efbd3242264cfd92520248276db5874a49702c47aa079d | using Nucleus.Base;
using Nucleus.IO;
using Nucleus.Maths;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Nucleus.Extensions
{
/// <summary>
/// Extension methods for the IDictionary interface
/// </summary>
public static c... | C# | Nucleus/Nucleus/Extensions/IDictionaryExtensions.cs | pnjeffries/Nucleus | mit | 3,407 | 89 | codeparrot/github-code |
4c9d4e08e4577f866de200616888f5bf0fbd5e527e04c0861f854b08ea94e337 | #!/usr/bin/env bash
eval "$(docopts -V - -h - : "$@" <<EOF
Usage: download.sh [-f FILTER] [-l LIST] [-n] [-o OUTDIR] [-v] -d DATE PROJECT
download.sh [-v] --md5-only -d DATE PROJECT
download.sh (-h | --help)
-d, --date DATE Dump date (format: yyyymmdd).
-f, --filter FILTER Fi... | Shell | download.sh | youtux/wikidump | mit | 2,445 | 94 | codeparrot/github-code |
8f1c6719ccb4f709cb9ac6498de6336280185e66867dd3fab25daee8e9570795 | #ifndef SYSTEM_CONVERT_H
#define SYSTEM_CONVERT_H
#include "../../Defines.h"
#include "../../SystemTypes.h"
#include "DateTime.h"
#include <algorithm>
#include <memory>
namespace CppNet
{
namespace System
{
class Convert final : public Object
{
public:
Convert() = default;
Convert(Convert &&sNewConver... | C | CppNet/CppNet/CppNet/System/Convert.h | kmc7468/CSClasses | mit | 2,020 | 66 | codeparrot/github-code |
ef16367bb06de531cc4779ed74cec790444fb1a8450dbf0c747acb2d88bc945b | /*
The MIT License (MIT)
Copyright (c) 2016 Alexey Yegorov
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,... | C | elements/ui/control.h | TheVice/elements | mit | 2,388 | 86 | codeparrot/github-code |
7615df65ee7d73d935dbd99dd0179a4aa78288ea4862d09bcb89b550e45c9940 | #!/opt/exp/bin/expect
#
# tar CM log files.
#
#########################################################################
#
# libraries
#
source $env(LCSTOOLSLIB)/checkenv
source $env(LCSTOOLSLIB)/getoptval
source $env(LCSTOOLSLIB)/db
source $env(LCSTOOLSLIB)/chooseone
source $env(LCSTOOLSLIB)/lcstelnet
source $env(LCSTO... | Shell | lts08.lcstools/tools/src/tarlogs/tarcmlogs.sh | ombt/ombt | mit | 8,513 | 317 | codeparrot/github-code |
0fa07583b7f0982e86269da5807798c628ed9138f928a52f8125336b114eff88 | /**
* Module dependencies.
*/
var _ = require('lodash');
var sailsUtil = require('sails-util');
/**
* Expose route parser.
* @type {Function}
*/
module.exports = function (sails) {
/**
* interpretRouteSyntax
*
* "Teach" router to understand references to controllers.
* This is the event handler ... | JavaScript | lib/hooks/controllers/onRoute.js | scippio/sails | mit | 8,191 | 252 | codeparrot/github-code |
7426aa18391348e113d5246b483a45acac628bccac64167539cfd8d1e8f43163 | ;(function () {
'use strict';
/**
* @preserve FastClick: polyfill to remove click delays on browsers with touch UIs.
*
* @codingstandard ftlabs-jsv2
* @copyright The Financial Times Limited [All Rights Reserved]
* @license MIT License (see LICENSE.txt)
*/
/*jslint browser:true, node:true*/
... | JavaScript | dh/js/fastclick.js | ToshiFourteen/toshifourteen.github.io | mit | 26,804 | 841 | codeparrot/github-code |
e2682c959d3d5f7645a20bf074ecf281e582f9608acd88f19eced6ed18224327 | define([
'dojo/_base/declare', 'dijit/_WidgetBase', 'dojo/on',
'dojo/dom-class',
'dojo/text!./templates/SeqComparison.html', './AppBase', 'dojo/dom-construct', 'dijit/registry',
'dojo/_base/Deferred', 'dojo/aspect', 'dojo/_base/lang', 'dojo/domReady!', 'dijit/form/NumberTextBox',
'dojo/query', 'dojo/dom', 'di... | JavaScript | public/js/p3/widget/app/SeqComparison.js | dawenx/p3_web | mit | 23,327 | 583 | codeparrot/github-code |
eee9c752ace328eaf667aa36148315d420f48ce5d0b201af8f3683d200df2208 | from .exceptions import (
ZKWaitTimeout,
)
from .zkacid import (
cas_loop,
)
from .zkconf import (
KazooClientExt,
ZKConf,
kazoo_client_ext,
)
from .zkutil import (
PermTypeError,
close_zk,
init_hierarchy,
export_hierarchy,
is_backward_locking,
lock_id,
make_acl_entr... | Python | zkutil/__init__.py | sejust/pykit | mit | 1,117 | 83 | codeparrot/github-code |
e614c75cc1b6b0bbc1956b8bab930119955d3e075bbb4584293bacbf90847ad8 | 'use strict';
const fs = require('fs');
const path = require('path');
module.exports = function (graphicsDir, bundle) {
const graphics = [];
// If the graphics folder exists but the nodecg.graphics property doesn't, throw an error.
if (fs.existsSync(graphicsDir) && typeof bundle.graphics === 'undefined') {
thro... | JavaScript | lib/bundle-parser/graphics.js | IgorCandido/igrcnddStreamNotifications | mit | 1,996 | 64 | codeparrot/github-code |
08a1f4d32a8e1351c7af61e3a64bfcd459cf01e66c6cc169d433ba3d0717a930 | /*!
Ridiculously Responsive Social Sharing Buttons Plus
*/
+(function(window, $, undefined) {
'use strict';
var schema = {
size: {min: 0.1, max: 10, default: 1},
shrink: {min: 0.2, max: 1, default: 0.8},
regrow: {min: 0.2, max: 1, default: 0.8},
minRows: {min: 1, max: 99, default: 1},
... | JavaScript | js/rrssb.js | AdamPS/rrssb-plus | mit | 10,700 | 266 | codeparrot/github-code |
18169527ab6f0b43ed3d6e74f51adcf026e51b2e25d8ea629554ca2a69085141 | import {NgModule,Component,ElementRef,AfterViewInit,AfterContentInit,AfterViewChecked,DoCheck,Input,Output,ContentChildren,QueryList,TemplateRef,EventEmitter,ViewChild} from '@angular/core';
import {CommonModule} from '@angular/common';
import {ButtonModule} from '../button/button';
import {SharedModule,PrimeTemplate} ... | TypeScript | src/app/components/picklist/picklist.ts | fusion-ffn/primeng | mit | 23,266 | 561 | codeparrot/github-code |
0308d6797ce25fc1596a6fc106fb7ad70b2e3437b637ea6cd59303f22d814181 | <?php
namespace Chamilo\Core\Repository\Table\Complex;
use Chamilo\Core\Repository\Storage\DataClass\ContentObject;
use Chamilo\Libraries\Format\Structure\ToolbarItem;
use Chamilo\Libraries\Format\Table\Column\DataClassPropertyTableColumn;
use Chamilo\Libraries\Format\Table\Column\StaticTableColumn;
use Chamilo\Librar... | PHP | src/Chamilo/Core/Repository/Table/Complex/ComplexTableColumnModel.php | forelo/cosnics | mit | 1,828 | 53 | codeparrot/github-code |
0860f30f28a91ef2c409c8957bca405dcab10bf486a05f3c49b2022cd88262b0 | var isBrowser = typeof window === 'object';
if (!isBrowser) {
require('./setup/node');
}
function convertFile(testCase) {
var infile = getFileName('input', testCase.in);
return Converter.convert({
from: testCase.in.format,
to: testCase.out.format,
source: infile,
})
.then(function (spec) {
s... | JavaScript | test/convert.js | LucyBot-Inc/api-spec-converter | mit | 2,948 | 97 | codeparrot/github-code |
7906c308159a41329b936d5255c79d219a3d038f34b9b74335511d487533be29 | <!DOCTYPE html>
<html>
<head>
<title>isfalsy.js</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="stylesheet" media="all" href="../docco.css" />
<style type="text/css">
</style>
</head>
<body>
<div id="jump_to... | HTML | docs/code/src/isfalsy.html | formula/formula | mit | 30,166 | 1,066 | codeparrot/github-code |
38afb46cf727629f4674f40877aa50343571191dc356b9d021378be93ace4c9c | /**
* jscolor, JavaScript Color Picker
*
* @version 1.4.3
* @license GNU Lesser General Public License, http://www.gnu.org/copyleft/lesser.html
* @author Jan Odvarko, http://odvarko.cz
* @created 2008-06-15
* @updated 2014-07-16
* @link http://jscolor.com
*/
var jscolor = {
dir : '', // location of js... | JavaScript | plugin/js/components/jscolor.js | CybrHome/custom-background.js | mit | 29,034 | 998 | codeparrot/github-code |
3ed2893d2c14b4e1ec32136767eb2fc1f48ed30801ff43efe3e2d3f72d0dc747 | #// CS 764 : Project CALF
// author: satish@cs.wisc.edu,shenoy@cs.wisc.edu
// date: 8 Dec 2008
#ifndef CALF_MARSHALL_H
#define CALF_MARSHALL_H
namespace CALF
{
namespace Storage
{
//marshalls data to and from raw byte stream
class Marshall
{
public:
//interpret a single column
static void format(unsigned ... | C | masters/sem3/764/project/sources/Marshall.h | priyananda/student | mit | 973 | 37 | codeparrot/github-code |
b047ceece2f0edce9fe8d5c5d7ee65330598f443f7baf8701c1c77da74f7ef87 | /***************************************************************************
* parser.h is part of Math Graphic Library
* Copyright (C) 2007-2014 Alexey Balakin <mathgl.abalakin@gmail.ru> *
* *
* This program is free software; you can r... | C | srcmglplot/mgl2/parser.h | ivanceras/iup-mirror | mit | 9,257 | 199 | codeparrot/github-code |
68f60d835f29188c9020ef42a0f1452088e7103d5f8a596558870d0db5015c4a | #!/bin/sh
set -e
mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt
> "$RESOURCES_TO_COPY"
XCASSET_FILES=()
realpath() {
DIRECTORY="$(cd "${1%/*}" && pwd)"
FILENAME="${1##*/}"
echo "$DIRECTORY/$FILENAME"
}
install_reso... | Shell | Pods/Target Support Files/Pods/Pods-resources.sh | HackPlan/quark-shell-mac | mit | 4,862 | 102 | codeparrot/github-code |
2ade11bac6b734eb8da98c4eb62c29087e7ee74f45e388f892e7b6634be0e4c9 | # Makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS = -W
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = _build
# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS = -d $(BUILDDIR)... | Makefile | docs/Makefile | sunpy/solarbextrapolation | mit | 4,727 | 135 | codeparrot/github-code |
8638272c2cbd8df9cbcf92c26537a566c99763f3d7b7091bf60f4d1eca3bddb5 | /*
* $Id: json_tokener.c,v 1.20 2006/07/25 03:24:50 mclark Exp $
*
* Copyright (c) 2004, 2005 Metaparadigm Pte. Ltd.
* Michael Clark <michael@metaparadigm.com>
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the MIT license. See COPYING for details.
*
*/
#inclu... | C | platform/shared/json/RJSONTokener.c | Yashi100/rhodes3.3.2 | mit | 15,695 | 600 | codeparrot/github-code |
6e5e0f92a17265943af2396412decc8b5cae95025ed126f1cc1e0f0aede16553 | #!/usr/bin/python3
import argparse
import os
import sys
import configuration
import shouter
from gitFunctions import Commiter
from gitFunctions import Initializer, Differ
from rtcFunctions import ImportHandler
from rtcFunctions import RTCInitializer
from rtcFunctions import RTCLogin
from rtcFunctions import Workspace... | Python | migration.py | rtcTo/rtc2git | mit | 6,494 | 174 | codeparrot/github-code |
1588180aabd933d72a0e53f494194aabf5d930cb0627d8d765c6c057d38d2a61 | // Copyright Joyent, Inc. and other Node contributors.
//
// 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... | JavaScript | nodejs/test/pummel/test-tls-securepair-client.js | hoho/dosido | mit | 5,266 | 183 | codeparrot/github-code |
ac84afabdab3ad50abe3c49ebe9746d26fb80620fbb3c47733787fb9727dfc77 | // 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.
namespace System.Xml.Serialization.Configuration
{
using System;
using System.IO;
using System.Configura... | C# | src/System.Private.Xml/src/System/Xml/Serialization/Configuration/XmlSerializerSection.cs | shmao/corefx | mit | 2,260 | 82 | codeparrot/github-code |
85afba35fcac4efdba13c4dd480d6059bd855d379e5d14cdca2bdae7d59b3e4c | using System;
using System.Collections.Generic;
using System.Text;
namespace NUnit.Framework
{
/// <summary>
/// TestParameters class holds any named parameters supplied to the test run
/// </summary>
public class TestParameters
{
private readonly Dictionary<string, string> _parameters = n... | C# | src/NUnitFramework/framework/TestParameters.cs | JohanO/nunit | mit | 3,210 | 95 | codeparrot/github-code |
d94c16854a872044fad25cfa6846fac52d59582b0679a7685b79215b337069e0 | title: Virtual environments (virtualenvs)
category: page
slug: virtual-environments-virtualenvs-venvs
sortorder: 0216
toc: False
sidebartitle: Virtualenvs
meta: Virtual environments (virtualenvs) provide dependency isolation for your projects from external libraries.
Virtual environments, implemented by the library v... | Markdown | content/pages/02-development-environments/16-virtualenvs.markdown | mattmakai/fullstackpython.com | mit | 2,100 | 44 | codeparrot/github-code |
8bfca0360223e8410cbeac8eb64b160e2947bdd1375db797cb525a5383dfd42e | /*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2009 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person ... | C | OgreMain/include/OgreResource.h | gbruce/ogre3d_trunk | mit | 21,193 | 537 | codeparrot/github-code |
dd6640e57d9542bceca94f2604cfc25b916ae7e617ad90e116f4a986fcddcdb2 | #region
using System.Collections.Specialized;
using System.IdentityModel.Services;
using System.IdentityModel.Tokens;
using System.Web;
using System.Web.Security;
using Sitecore.Configuration;
using Sitecore.Diagnostics;
using Sitecore.Security.Accounts;
using Sitecore.Security.Authentication;
using Sitecore.Shell.Ap... | C# | ADFS.Authenticator/Authentication/FederatedAuthenticationProvider.cs | BasLijten/Sitecore-ADFS-Authenticator-Module | mit | 6,113 | 178 | codeparrot/github-code |
92871600d118fc839efa52170785487bff0c1311ccb53622cbb58aec78162c4f | --[[
##########################################################
S V U I By: Failcoder
##########################################################
LOCALIZED LUA FUNCTIONS
##########################################################
]]--
--[[ GLOBALS ]]--
local _G = _G;
local select = _G.select;
local assert ... | Lua | SVUI_!Core/setup/installer.lua | FailcoderAddons/supervillain-ui | mit | 41,433 | 1,243 | codeparrot/github-code |
b50f11e9317435416b240235cd1fe9bf88a08c100b60c835cb85e0f24c8d86a2 |
<!--
/* ============================================================================ *
* SUBTOPIC NAVIGATION *
* ============================================================================= */
-->
<div ng-include="'/views/templates/subtopicNav.html'"></div>
<... | HTML | public/views/comments.html | kristinejensen/PeopleSourced-Policy | mit | 12,705 | 276 | codeparrot/github-code |
2b48b65052198fb6af5e50057f5a671aba303698a10ba74e4ff9e303a4e38bbf | //========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#ifndef CHECKBUTTON_H
#define CHECKBUTTON_H
#ifdef _WIN32
#pragma once
#endif
#include <vgui/VGUI.h>
#includ... | C | public/vgui_controls/CheckButton.h | sswires/ham-and-jam | mit | 1,653 | 66 | codeparrot/github-code |
9b5c05ea2c30f7370047a9719ba72df454fe0859e7df07614f1e4583b8e2af0c | //
// Copyright (C) 2010 Jackson Harper (jackson@manosdemono.com)
//
// 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,... | C# | src/Manos/Manos.Http/HttpTransaction.cs | jmptrader/manos | mit | 4,641 | 204 | codeparrot/github-code |
9b4c995c28495deee1260c29cc058eff8f6285efe0afc5ed70fd4d8e2e9fb475 | using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Resources;
using ExpressiveAnnotations.Attributes;
namespace ExpressiveAnnotations.MvcWebSample.Inheritance
{
public class CustomAssertThatAttribute : ExpressiveAttribute
{
public CustomAssertThat... | C# | src/ExpressiveAnnotations.MvcWebSample/Inheritance/CustomAssertThatAttribute.cs | JaroslawWaliszko/ExpressiveAnnotations | mit | 2,056 | 47 | codeparrot/github-code |
e9f6a2b92f4453c25fda216c5d9a0d35fe6c96d44e14ef001da31c0e2c53c761 | import React from 'react';
import { fromJS, Map } from 'immutable';
import { mount } from 'enzyme';
import MarketingFlag from '../../app/components/MarketingFlag';
describe('MarketingFlag', () => {
it('should render properly when promotions are active', () => {
const marketingAttributes = fromJS({
special... | JavaScript | test/components/MarketingFlag.spec.js | Byte-Code/lm-digitalstore | mit | 1,047 | 33 | codeparrot/github-code |
5e12da4e1002ab6e430afd348e14d2f7057c2a15c8b138783fef8b095b9d5dcf | /** @license MIT License (c) copyright B Cavalier & J Hann */
/**
* Licensed under the MIT License at:
* http://www.opensource.org/licenses/mit-license.php
*/
(function(define){
define(function() {
"use strict";
var undef;
/**
* Creates an object by either invoking ctor as a function and returning the result... | JavaScript | labs/architecture-examples/cujo/lib/wire/lib/component.js | jsoverson/todomvc | mit | 2,332 | 91 | codeparrot/github-code |
dcb6e150c194c65c9d1bd735faa545e92e7ab8b1c633ef790d0f58f6a30ed6b1 | <!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8"/>
<meta charset="utf-8"/>
<title>Pages - Admin Dashboard UI Kit</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<script type="text/javascript">
//<![CDATA[... | HTML | backend/best/Pages/charts.html | newset/theme | mit | 66,525 | 2,038 | codeparrot/github-code |
576fcd5ac679a8ee0974dd89b3dee0b08ca7f7143ffecc9153eec102d8a6a6ec | <?php
/*
+--------------------------------------------------------------------------+
| Zephir |
| Copyright (c) 2013-present Zephir Team (https://zephir-lang.com/) |
| ... | PHP | Library/Commands/CommandBuildDev.php | sergeyklay/zephir | mit | 1,554 | 64 | codeparrot/github-code |
69455f6900f6ee34c8be22b03860f534a32bd35a46510fe1467b579aef40516f | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {Component, TemplateRef} from '@angular/core';
import {FormControl, Validators} from '@angular/forms';
import ... | TypeScript | src/dev-app/select/select-demo.ts | angular/components | mit | 5,073 | 169 | codeparrot/github-code |
a50ccdb7d60a6659ab90d07caac4c0c92a6f9ab20f771bbe7e8ee826c0ea075f | using System.Collections.Generic;
using System.Diagnostics;
using System.Linq.Expressions;
namespace NRules.RuleModel
{
/// <summary>
/// Pattern condition element.
/// </summary>
[DebuggerDisplay("{Expression.ToString()}")]
public class ConditionElement : RuleElement
{
private readonl... | C# | src/NRules/NRules.RuleModel/ConditionElement.cs | StanleyGoldman/NRules | mit | 1,319 | 44 | codeparrot/github-code |
3772db2a417ab0200579108acd3f712d949af0366bcc65af2550c5aee62cdf59 | #define _MSWIN
#include "shared.h"
#include "curve/curve_container.h"
#include "system/system_hashed_ansi_string.h"
#include "system/system_hash64map.h"
#include "system/system_variant.h"
#include "plugin.h"
#include "plugin_common.h"
/** TODO */
PRIVATE void AdjustCurveNodeValueByDelta(curve_container curve,
... | C++ | Emerald/apps/LW-AnimationDataExtractor/plugin_common.cc | grahamsellers/Emerald | mit | 24,717 | 538 | codeparrot/github-code |
03aca31d77731541f3a4d53aaa11cdae6388b4a6ac444483e9301a0bbcd6c048 | <?php
namespace Opifer\CmsBundle\Form\DataTransformer;
use Opifer\CmsBundle\Manager\MenuManager;
use Symfony\Component\Form\DataTransformerInterface;
/**
* Class MenuGroupTransformer.
*/
class MenuGroupTransformer implements DataTransformerInterface
{
/** @var MenuManager */
protected $menuManager;
/*... | PHP | src/CmsBundle/Form/DataTransformer/MenuGroupTransformer.php | dylanschoenmakers/Cms | mit | 1,424 | 73 | codeparrot/github-code |
63942276e26130d220d5bcea977969ba5e6ded3383fcc9f4e6584526ce2b5134 | #!/usr/bin/env python
#============================================================================
# Copyright (c) Microsoft Corporation. All rights reserved. See license.txt for license information.
#============================================================================
from __future__ import print_function
fro... | Python | Providers/Scripts/2.6x-2.7x/Scripts/nxIPAddress.py | MSFTOSSMgmt/WPSDSCLinux | mit | 30,909 | 710 | codeparrot/github-code |
94c5a77377a880e05cec2fe73d2eacb3b9ae67ad1fe14bc77f0a7b6746c5b6f3 | // Distrubuted under the MIT license
// ===================================================
// SharpMC uses the permissive MIT license.
//
// 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... | C# | src/SharpMC.Core/Networking/Packages/Ping.cs | Myvar/SharpMC | mit | 1,986 | 68 | codeparrot/github-code |
0900be787af8806706d74f31907ac21adfd2508d36d912ccb1ab7b90524288a8 | const auth = require('./data/auth.json')
const assert = require('assert')
const mailgun = require('../')({
'apiKey': auth.api_key,
'domain': auth.domain
})
describe('Events', () => {
beforeEach((done) => {
setTimeout(done, 500)
})
it('test mailgun.events().get() simple recipient query', (done) => {
... | JavaScript | test/events.test.js | bojand/mailgun-js | mit | 1,084 | 50 | codeparrot/github-code |
5d6254ffbba76ce23e2cd4cc48c65390db696bfe9beb20eb6c843f203182c34f | import { Component, OnInit } from '@angular/core';
import { Router, Routes, ROUTER_DIRECTIVES } from "@angular/router";
import { DashboardComponent } from "./dashboard/dashboard.component";
import { AuthService } from "./auth/auth.service";
import { AuthenticationComponent } from "./auth/authentication.component";
imp... | TypeScript | assets/app/app.component.ts | wintersa/nf-mean-boilerplate2 | mit | 1,885 | 55 | codeparrot/github-code |
13008b0fe45b33fafd2a1fcdce74083d9169d7ca84577acc87e9711933c2fb8a | /*
************************************************************************************************
* File: osa_system.h
*
* Programmer: Timofeev Victor
************************************************************************************************
*/
//****************************************... | C | RTOS1.X/osa/kernel/system/osa_system.h | SanUSB/RTOS-SanUSB | mit | 35,440 | 608 | codeparrot/github-code |
81eb8ced911771ca52b0feb3510af3aa05cd7986e8717011e1cee41afe5a1bda | /*----------------------------- LANG: TEMPLATE -----------------------------*/
fuse.Template = (function() {
function Klass() { }
function Template(template, pattern) {
pattern = pattern || fuse.Template.Pattern;
if (!isRegExp(pattern))
pattern = fuse.RegExp(escapeRegExpChars(pattern))... | JavaScript | src/lang/template.js | SlexAxton/fusejs | mit | 4,680 | 142 | codeparrot/github-code |
6e3b53183a0957cd994c993533e93cab43c7830a07a255f66d7746d4ff3ccb05 | $('form').on('submit', function (e) {
validate(e);
});
function validate(e) {
var valid = [];
var invalid = [];
var num = 1;
// Check all data-required tags
$('[data-required]').each(function () {
var textInputs = $(this).find('input[type="text"]');
var radioInputs = $(this).find('input[type="radi... | JavaScript | validation.js | steven-borthwick/agent-prototype | mit | 7,299 | 223 | codeparrot/github-code |
8b1df34dc06e31d68dc8d5035e90e796b708d1ef0061a87c30db0efaa1d90d24 | #ifndef SANDBOX_MEYERCLP_APPS_DREME_H_
#define SANDBOX_MEYERCLP_APPS_DREME_H_
#include <fstream>
#include <iostream>
#include <map>
#include <vector>
#include <math.h>
#include <stdlib.h>
#include <seqan/basic.h>
#include <seqan/file.h>
#include <seqan/find.h>
#include <seqan/stream.h>
#include <seqan/find_motif.h>
#i... | C | raw/pmbs12/pmsb13-data-20120615/sources/brbym28nz827lxic/879/sandbox/meyerclp/apps/dreme/dreme.h | bkahlert/seqan-research | mit | 70,109 | 2,086 | codeparrot/github-code |
a26cd61ec5799818bd18e0383d4d692eb869bc4cecaff215a63bf99e7c0e875d | /* @flow */
import { trapGet } from '../../../utils/proxy'
import type { Model } from '../index' // eslint-disable-line no-unused-vars
import type { Transaction$ResultProxy } from './interfaces'
/**
* @private
*/
export function createStaticTransactionProxy<T: Class<Model>>(
target: T,
trx: Object
): T {
ret... | JavaScript | src/packages/database/transaction/index.js | postlight/lux | mit | 1,165 | 63 | codeparrot/github-code |
b930c61101390f809218c1dded05874e091b112dc6abb74ba81c5fb5b5ced021 | import Router from '../router'
import { ServiceRequest } from './router'
import { AuthConfig } from '../lifecycle/handlers/auth'
import { ValidateResponseConfig } from '../lifecycle/handlers/validate-response'
import { LifecycleExtensions } from '../lifecycle'
declare module '@microfleet/core-types' {
export interfa... | TypeScript | packages/plugin-router/src/types/plugin.ts | makeomatic/mservice | mit | 866 | 33 | codeparrot/github-code |
a789a9f7a1d22b34e27c35e4b351aebc0058c75463cca8a35871ff1cc2fe711a | module.exports = Vue.extend({
data: function() {
return _.extend({
view: 'index',
update: false,
progress: 0,
errors: [],
steps: [
{ action: 'download', msg: 'Downloading...', progress: 33 },
{ action: 'copy', msg: ... | JavaScript | app/system/modules/package/app/views/update.js | RobertJGabriel/pagekit | mit | 2,322 | 93 | codeparrot/github-code |
7fde49ab1f3914b516b16e4693558d5631fecb7a6c7fc091a45b33a57a80e45c | using System.Threading.Tasks;
using Eurofurence.App.Domain.Model.Events;
using Eurofurence.App.Server.Services.Abstractions.Events;
using Eurofurence.App.Server.Services.Abstractions.Security;
using Microsoft.AspNetCore.Mvc;
namespace Eurofurence.App.Server.Web.Controllers
{
[Route("Api/[controller]")]
public... | C# | src/Eurofurence.App.Server.Web/Controllers/EventFeedbackController.cs | eurofurence/ef-app_backend-dotnet-core | mit | 1,795 | 53 | codeparrot/github-code |
3f70206fa8f4bdf43f7186346474a8f0171aef828fc3d0e9c1d5f5eaa6238afd | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import styles from './Icon.css';
export type IconType =
| 'arrow'
| 'bug'
| 'co... | JavaScript | packages/react-devtools-shared/src/devtools/views/Icon.js | facebook/react | mit | 6,720 | 185 | codeparrot/github-code |
034e1f6005e74c146501efe0b1e360d67c9441aeed4f7f3a492a8c0164162be2 | 'use strict';
var _ = require( 'lodash' );
var should = require( 'should' );
var sinon = require( 'sinon' );
var getLogger = function () {
return require( '../index' );
};
var getBaseRelay = function () {
return require( '../relays/base' );
};
describe( 'Balsa', function () {
describe( 'Initia... | JavaScript | test/index-spec.js | reidev/balsa | mit | 10,144 | 281 | codeparrot/github-code |
d6671caf265d32a1aea6a51957484f8a59b55df3709f11a3e75e229ecf3f4326 | #!/usr/bin/env python3
# Biligrab-Danmaku2ASS
#
# Author: Beining@ACICFG https://github.com/cnbeining
# Author: StarBrilliant https://github.com/m13253
#
# Biligrab is licensed under MIT licence
# Permission has been granted for the use of Danmaku2ASS in Biligrab
#
# Copyright (c) 2014
#
# Permission is hereby granted... | Python | bilidan.py | doublehou/BiliDan | mit | 23,006 | 472 | codeparrot/github-code |
c6c4116ccc32b3b0eaf630574c6a9af315d4068c3f116ac762d50384dd28caf9 | /**
* Definition for a binary tree node.
* function TreeNode(val) {
* this.val = val;
* this.left = this.right = null;
* }
*/
/**
* @param {TreeNode} root
* @return {boolean}
*/
var isSymmetric = function(root) {
if(root === null){
return true;
}
return recursiveTraversal(root.... | JavaScript | JS/Symmetric Tree.js | superdtx/leetcode | mit | 1,704 | 81 | codeparrot/github-code |
8281ce6ea8b0bb6e88762bac388e72340eaea803851f94b52792a77d5bd94153 | /**
* @defgroup type Data Types
*
* @defgroup algo Basic Operations
*
* @defgroup equiv Equivalence Filters
*
* @defgroup strat Strategies
*
* @defgroup prog Program
*
* @defgroup util Utility Routines
*/
/// @defgroup Rules Rules
/// @ingroup type
/// @defgroup Codeword Codeword
/// @ingroup type
/// @d... | C++ | src/Main.cpp | icare4mm/mastermind-strategy | mit | 17,588 | 656 | codeparrot/github-code |
b5a4d9df595340db45de20eb0566e1a87414e68f5776f4a40204600445fad269 | var Document = require('./document').Document;
var Cursor = require("./cursor").Cursor;
var Layout = require('./layout');
var keyboard = require('./keyboard');
var Render = require('./render');
var config = null;
function requestAnimationFrame(arg) {
config.requestAnimationFrame(arg);
}
var Viewport = {
makeV... | JavaScript | src/component.js | joshmarinacci/js-richtext | mit | 16,223 | 521 | codeparrot/github-code |
18448980a5b95b4ccf0219ab340a708f1a256b62c0b388dfac0e74fd7ecab073 | using System;
using System.Linq;
using _09.Traffic_Lights.Enums;
namespace _10.Custom_Attribute
{
[Info("Pesho", 3, "Used for C# OOP Advanced Course - Enumerations and Attributes.", "Pesho", "Svetlio")]
public class StartUp
{
public static void Main()
{
var attr = (InfoAtt... | C# | 06. C# OOP Advanced - July 2017/04. Enums And Attributes/04. Enums And Attributes - Exercise/Exercises Enums and Attributes/10. Custom Attribute/StartUp.cs | zrusev/SoftUni_2016 | mit | 1,282 | 43 | codeparrot/github-code |
a141d4f35d3c81f7353995968d99aac984b1e26272a8692bc41ee3fdc382af1c | var unflr = unflr || {};
unflr.root = (function() {
var my = {};
// init
// ------------------------------------
my.ready = function(url) {
// ouibounce
// if (window.sharerOpen !== true) {
setTimeout(function() {
ouibounce(false, {
aggressive: app.config.debug,
callback: function() {
$('#... | JavaScript | public/assets/javascripts/unflr/root.js | younes0/unflare | mit | 1,211 | 68 | codeparrot/github-code |
2390b47db03941d8ad2d122b07453f820b233539f7ecbd173f9e7039a1aee2a6 | <?xml version="1.0" ?><!DOCTYPE TS><TS language="eu_ES" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="14"/>
<source>About GoldCoin</source>
<translation type="unfinished"/>
</message>
... | TypeScript | src/qt/locale/bitcoin_eu_ES.ts | goldcoin/gldcoin | mit | 98,047 | 2,499 | codeparrot/github-code |
f1cc2a5b6b0977451a530561fb85f0a8265bd5bef870281d43b9298d66f8c8c6 | /* *************************************************************
* Service genérico para permitir chamadas CRUD padrão
* RESTful. Utilizado para chamar a camada MODEL do Java.
*
* Por: Rafael Lossurdo
************************************************************ */
angular.module('CrudServiceModule', [])
.service... | JavaScript | seriado-web/public_html/js/CrudService.js | lossurdo/poc-angularjs-rest-bd | mit | 3,538 | 104 | codeparrot/github-code |
8b2d6034b56c27312162f1e249fa147f65e611e40540bbd7570dc1644b185dac | var fs = require('fs')
, path = require('path')
, os = require('os')
, exercise = require('workshopper-exercise')()
, filecheck = require('workshopper-exercise/filecheck')
, execute = require('workshopper-exercise/execute')
, comparestdout = require('workshopper... | JavaScript | node-workshopper-runner/workshops/learnyounode/exercises/my_first_async_io/exercise.js | opensauceit/NIB | mit | 2,342 | 79 | codeparrot/github-code |
36c755e2d4b157d58cab3e679f44358d79e9bc3310a02c2c64607b5fca5c0991 | package com.rarchives.ripme.tst.ripper.rippers;
import com.rarchives.ripme.ripper.rippers.ImgurRipper;
import com.rarchives.ripme.ripper.rippers.ImgurRipper.ImgurAlbum;
import com.rarchives.ripme.utils.RipUtils;
import org.junit.jupiter.api.Test;
import java.io.IOException;
import java.net.URL;
import java.util.Arra... | Java | src/test/java/com/rarchives/ripme/tst/ripper/rippers/ImgurRipperTest.java | rephormat/ripme | mit | 4,424 | 100 | codeparrot/github-code |
0e873b512b8364c7783b5f79f31ce79ed6a8064977457b5f9d2dd2a2be1c18eb | /*
* Test router
*/
module.exports = function(req, res, next) {
var _Test = {};
config = require('../configs/server.js');
var configs = config.configs,
server_prefix = configs.server_prefix || 'MASK';
console.log(server_prefix + " - Test router required.");
var express = require('express'),
redirect = re... | JavaScript | routers/test.js | vanHeemstraSystems/kick | mit | 1,479 | 48 | codeparrot/github-code |
6cce5b9003da81e3e9ae77b4436195dc67c0f8d4f433c08886e8956faccf2cd2 | package com.afollestad.materialdialogs.util;
import android.content.Context;
import android.content.DialogInterface;
import android.content.res.TypedArray;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.support.annotation.AttrRes;
import android.view.V... | Java | library/src/main/java/com/afollestad/materialdialogs/util/DialogUtils.java | ganfra/material-dialogs | mit | 5,451 | 153 | codeparrot/github-code |
6a090f9b33133f9dfd3552521258a8e0642bc0f563e13ce9408dd8a650fd5e6a | var assert = require('assert');
var fs = require('fs');
var request = require('request');
var appHelper = require('./helpers/appHelper');
var path = require('path');
describe('Starting HTTPS sails server with lift', function() {
var appName = 'testApp';
before(function(done) {
this.timeout(5000);
appHelp... | JavaScript | test/integration/lift.https.test.js | scippio/sails | mit | 3,232 | 115 | codeparrot/github-code |
339c6f5e9b6114b638cb055bae1b49bf15dd62b260722d979059aab836ea66c1 | /*jshint jasmine: true */
/*global angular */
describe('SectionedForm', function () {
'use strict';
var $compile,
$document,
$scope,
$templateCache,
$timeout,
bbMediaBreakpoints,
element,
multipleSections;
function registerSectionTemplates() {
... | JavaScript | js/sky/src/sectionedform/test/sectionedform.component.spec.js | Blackbaud-LukeJones/skyux | mit | 11,419 | 355 | codeparrot/github-code |
c90da373c20356d474eaa41921456c697c0bbd1202473ccaad3de84e95734e61 | using Northwind.Data;
using System;
using System.Linq;
namespace Northwind.Utils
{
public class ConcurrentChanges
{
public static void Changes()
{
// Task - 7 - https://msdn.microsoft.com/en-us/data/jj592904.aspx
for (int i = 0; i < 5; i++)
{
... | C# | 2. Web Design and UI technologies/7. Databases/11. Entity-Framework/Northwind.Utils/ConcurrentChanges.cs | KaloyanchoSt/Telerik-Academy | mit | 1,741 | 44 | codeparrot/github-code |
b172d703a5339b1fa4ea2f78bf47f75e95d98f7086079641fd2994d6bb42c3d2 | // data needs to be a normalized store object
var _ = require('lodash');
var testData = require('./testStoreData').entities;
var filterData = require('../../server/client/utils/normalDataFilter');
var mocha = require('mocha');
var expect = require('chai').expect;
var correctResult = {
experiments: {
"88152": {
... | JavaScript | specs/utilspecs/filterData.spec.js | Agnition/agnition | mit | 1,204 | 39 | codeparrot/github-code |
45c9ab589d836b23a4efed540e486bc26c62353d93cf26bce880a3d90da005c2 | /*
* Copyright 2015 the original author or phly.
* 未经正式书面同意,其他任何个人、团体不得使用、复制、修改或发布本软件.
*/
package com.phly.ttw.manage.goods.facade;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;
import org.springframework.ui.ModelMap;
import com.phly.ttw.manage.goods.model.GoodsAttributeVO;
im... | Java | src/com/phly/ttw/manage/goods/facade/GoodsAttributeFacade.java | linmuxi/ttw | mit | 1,687 | 78 | codeparrot/github-code |
5453c4ba532aeae10306c48905bac74ff14b447519f58bc9c6465612dd4d1f4c | from opsbro.evaluater import export_evaluater_function
from opsbro.gossip import gossiper
FUNCTION_GROUP = 'gossip'
@export_evaluater_function(function_group=FUNCTION_GROUP)
def is_in_group(group):
"""**is_in_group(group)** -> return True if the node have the group, False otherwise.
* group: (string) group to ... | Python | data/core-configuration/packs/core-functions/module/node.py | naparuba/opsbro | mit | 2,773 | 109 | codeparrot/github-code |
c00800ad7a4fb2ac6e882300cee709f628a2543bad90c8d5eb1a6e55a72c4fd9 | const WebSocket = require('ws'),
colors = require('colors'),
events = require('events'),
util = require('util');
var PageConnection = function(pageJson) {
this.pageJson = pageJson;
this.serviceRequestID = 0;
this.messageBuffer = new Map();
this.requestBuffer = new Map();
this.messageHandl... | JavaScript | lib/page-connection.js | artygus/devtools-compat | mit | 3,646 | 139 | codeparrot/github-code |
dc0abdbb61937bc109cab58d40d38b8c1dd4240db542428d1a78b8f3862494cf | <?php
if ( ! defined( 'ICL_DISABLE_CACHE' ) ) {
define( 'ICL_DISABLE_CACHE', false );
}
class icl_cache{
private $data;
function __construct($name = "", $cache_to_option = false){
$this->data = array();
$this->name = $name;
$this->cache_to_option = $cache_to_option;
$this->... | PHP | web/app/plugins/sitepress-multilingual-cms/inc/cache.php | Kilbourne/biosphaera | mit | 4,189 | 168 | codeparrot/github-code |
3066620b48526a34da9c7daf4d0ccca2fa6e384a8fc579f6e971094fba1796ec | // Copyright 2015 Samvel Khalatyan
#include "ch1/s1/ex_23.h"
#include <algorithm>
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
using ch1::s1::ex23::BinarySearch;
using ch1::s1::ex23::Data;
using std::cin;
using std::cout;
using std::endl;
Data ReadData(std::string filename) {
std:... | C++ | src/ch1/s1/ex_23_main.cc | ksamdev/sedgewick | mit | 1,233 | 56 | codeparrot/github-code |
fcf31b791c1555bebe1c2ee9d72b758b02c7b7124c252c140bfbe080fba4aaca | /**
* BasicConfigFragment.java
*
* Copyright (C) 2017, Shunichi Yamamoto(Yamamoto Works Ltd.)
*
* This software is released under the MIT License.
* http://opensource.org/licenses/mit-license.php
**/
package com.jins_meme.bridge;
import android.content.Context;
import android.graphics.Color;
import android.gra... | Java | app/src/main/java/com/jins_meme/bridge/BasicConfigFragment.java | jins-meme/JinsMemeBRIDGE-Android | mit | 25,420 | 688 | codeparrot/github-code |
3599a13466f4fa937918d68492679217f32bc6cc71118f613e2d7b3fa24873d7 | /*******************************************************************************
The MIT License (MIT)
Copyright (c) 2015 Alexander Borsuk <me@alex.bio> from Minsk, Belarus
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Softwa... | C++ | examples/server/demo.cc | deathbaba/Alohalytics | mit | 3,496 | 70 | codeparrot/github-code |
3db1e875ee943985c25310357584c2e5b8b8cfa9cba396553ae4169bff5881f5 | // <copyright file="ModifiedStruve.cs" company="Math.NET">
// Math.NET Numerics, part of the Math.NET Project
// http://numerics.mathdotnet.com
// http://github.com/mathnet/mathnet-numerics
// http://mathnetnumerics.codeplex.com
//
// Copyright (c) 2009-2012 Math.NET
//
// Permission is hereby granted, free of charge, ... | C# | src/DevTreks.Extensions/Numerics/SpecialFunctions/ModifiedStruve.cs | kpboyle1/devtreks | mit | 22,461 | 555 | codeparrot/github-code |
c771a2acf5889983f76882957bfd4337cad8e7d96c0123ce9c4f68d4c9f6d378 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 4.3.2 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2006, EllisLab, Inc.
* @license http://codeigniter.... | PHP | CodeIgniter_1.6.2/CodeIgniter_1.6.2/system/libraries/Output.php | Calico90/codeigniter-version-scan | mit | 9,158 | 388 | codeparrot/github-code |
1a42854bc347bcb5eb3905cb0385a0cf04d885841c8be9e259a1db710742a224 | namespace GitHub.Api
{
class FileSystemWatchFactory : IFileSystemWatchFactory
{
private readonly IFileSystem fileSystem;
private readonly IFileSystemWatchWrapperFactory fileSystemWatchWrapperFactory;
private readonly FactoryStrategy strategy;
public FileSystemWatchFactory(IEnvir... | C# | src/GitHub.Api/IO/Watches/FileSystemWatchFactory.cs | github-for-unity/Unity | mit | 2,294 | 65 | codeparrot/github-code |
1f081762b8292db15f84cdec53eac8d0b362aa72661631f835620794f52ea115 | package summarize
import "unicode"
type TextSplitter interface {
Sentences(string) []string
Words(string) []string
}
type DefaultTextSplitter struct {
Punctuations []rune
}
func (d DefaultTextSplitter) Sentences(text string) []string {
buf := getBuffer()
defer bufferPool.Put(buf)
sentences := []string{}
new... | GO | summarize/text_splitter.go | urandom/text-summary | mit | 1,722 | 96 | codeparrot/github-code |
3a535353564f3ebb0ba01244737ebd859d4a4251ac0192d76dd02bb5c7a8cef3 | var support = require('../../support');
var expect = require('chai').expect;
var loopback = require('loopback');
var logger = require('../../../lib/support/logger')
var ItemSchema = require('../../../lib/domain/item-schema');
var LJSRequest = require('../../../lib/http/ljs-request');
var app = support.newLoopbackJso... | JavaScript | test/integration/domain/item-schema.test.js | globocom/loopback-jsonschema | mit | 8,981 | 226 | codeparrot/github-code |
40c0f9c35ab73a21708c467301963801e4dec36826dfeb0c8bf523ec96b0cd7e | package som.interpreter.nodes.specialized;
import com.oracle.truffle.api.dsl.Cached;
import com.oracle.truffle.api.dsl.GenerateNodeFactory;
import com.oracle.truffle.api.dsl.Specialization;
import com.oracle.truffle.api.nodes.DirectCallNode;
import bd.primitives.Primitive;
import som.interpreter.nodes.specialized.Int... | Java | src/som/interpreter/nodes/specialized/IntDownToDoMessageNode.java | richard-roberts/SOMns | mit | 1,432 | 38 | codeparrot/github-code |
b1e6b0b4d560055a4663c1c819adb351214fe756981b79d3937f8b8ff69acdc5 | const _ = require('lodash');
const mapNQLKeyValues = require('../../../../../../shared/nql-map-key-values');
const debug = require('ghost-ignition').debug('api:v2:utils:serializers:input:pages');
const converters = require('../../../../../lib/mobiledoc/converters');
const url = require('./utils/url');
const localUtils ... | JavaScript | versions/3.3.0/core/server/api/v2/utils/serializers/input/pages.js | dingotiles/ghost-for-cloudfoundry | mit | 5,585 | 204 | codeparrot/github-code |
2642d51fca70e5fb54afedbbae177d67745e7ae1d13fce14c5daeb8063ed3eea | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>
Class: ForemanApi::Resources::Hostg... | HTML | doc/ForemanApi/Resources/Hostgroup.html | theforeman/foreman_api | mit | 23,152 | 1,028 | codeparrot/github-code |
ecd4b83aea93ceab43615e58270e4735b50efe5cb8ec2f835fa3a25b80438a46 | using System;
using System.Collections.Generic;
using System.Reflection;
namespace JK.Common.Text
{
/// <summary>
/// Class which places values from objects into a given template.
/// </summary>
public class TemplateProcessor
{
private readonly string template;
private readonly Li... | C# | src/JK.Common/Text/TemplateProcessor.cs | digital-lagniappe/DL.Common | mit | 5,378 | 158 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.