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 |
|---|---|---|---|---|---|---|---|---|
af3ef61632ed2ed42f3c58ceec4c1922a55602d4a59b83060b7e1a400ee2b40d | /* ShipManager.js
KC3改 Ship Manager
Managesship roster and does indexing for data access.
Saves and loads list to and from localStorage
*/
(function(){
"use strict";
window.KC3ShipManager = {
list: {},
max: 100,
pendingShipNum: 0,
// Get a specific ship by ID
get :function( rosterId ){
... | JavaScript | src/library/managers/ShipManager.js | ethrundr/KC3Kai | mit | 3,113 | 114 | codeparrot/github-code |
ef2ab26cf435abb95c171d98a6f712c04a3f39409044b4b108de68e8dc219d4b | // Copyright (c) 2011-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <qt/walletmodeltransaction.h>
#include <interfaces/node.h>
#include <key_io.h>
WalletModelTransaction::WalletModel... | C++ | src/qt/walletmodeltransaction.cpp | biblepay/biblepay | mit | 2,759 | 89 | codeparrot/github-code |
244925c0a15d7d08fadd585a91d0fecbcc40f99a816b109770c282702c72aa2b | package org.jenkinsci.plugins.github_integration.its;
import hudson.matrix.AxisList;
import hudson.matrix.MatrixBuild;
import hudson.matrix.MatrixProject;
import hudson.matrix.MatrixRun;
import hudson.matrix.TextAxis;
import hudson.tasks.Shell;
import org.jenkinsci.plugins.github.pullrequest.GitHubPRMessage;
import or... | Java | github-pullrequest-plugin/src/test/java/org/jenkinsci/plugins/github_integration/its/MatrixProjectITest.java | jenkinsci/github-pullrequest-plugin | mit | 2,100 | 54 | codeparrot/github-code |
e3ceb9dc56d0df18876af0e0e84461ad199bc3b2b9920e9bf04121dfa626fa6b | package org.bouncycastle.cert.crmf.jcajce;
import java.io.IOException;
import java.security.AlgorithmParameterGenerator;
import java.security.AlgorithmParameters;
import java.security.GeneralSecurityException;
import java.security.InvalidAlgorithmParameterException;
import java.security.InvalidKeyException;
import jav... | Java | pkix/src/main/java/org/bouncycastle/cert/crmf/jcajce/CRMFHelper.java | partheinstein/bc-java | mit | 15,753 | 451 | codeparrot/github-code |
25a745efd9756c14aaf1305a859a0486bd64c6314cd6b4b33a714566f4206f70 | # -*- coding: utf-8 -*-
"""
IAMService
"""
import time
import xml.sax.saxutils as saxutils
# post xml soap message
import sys, httplib
from lxml import etree
from cStringIO import StringIO
#import static
import toml
class IAMClient(object):
def __init__(self):
conf_fn = "config.toml"
... | Python | py/webservices/orgService.py | mabotech/mabo.ai | mit | 5,747 | 226 | codeparrot/github-code |
e92396624552a03cce83d41d46fe95a8020ff3cb7212187ef752a7c4f5053adb | ---
layout: post
title: "Serverless REST API with Angular, Persistence and Security"
description: "Develop an Angular app from scratch, with serverless REST API, security and persistence and deploy it to GitHub Pages in no time."
date: 2017-02-22 08:30
category: Technical Guide, Angular, Angular2
author:
name: "Bruno... | Markdown | _posts/2017-02-22-serverless-angular-app-with-persistence-and-security.markdown | auth0/blog | mit | 39,388 | 810 | codeparrot/github-code |
e1ccfd3cb91a66aa0080b05a83caecff4dd82faf43d0408229fd41a3cff59dbf | //===- bugpoint.cpp - The LLVM Bugpoint utility ---------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | C++ | thirdparty/llvm/tools/bugpoint/bugpoint.cpp | wrmsr/lljvm | mit | 5,698 | 156 | codeparrot/github-code |
fb9e21df985f8058d2559c804d4853b4b511413ef764e567c9a382956c0a333b | describe("About Expects", function() {
// We shall contemplate truth by testing reality, via spec expectations.
it("should expect true", function() {
expect(true).toBeTruthy(); //This should be true
});
// To understand reality, we must compare our expectations against reality.
it("should expect equalit... | JavaScript | koans/AboutExpects.js | mchaperc/5.2-javascript-koans | mit | 1,162 | 39 | codeparrot/github-code |
0df8ae8c96d577fa61d23185e11c1c7456cc9df4cf59fb10f5d322348f1d5f71 | // Project: Open Vehicle Monitor System
// Date: 6 November 2011
//
// Changes:
// 1.0 Initial release
//
// (C) 2011 Sonny Chen
//
// Based on information and analysis provided by Scott451, Michael Stegen,
// and others at the Tesla Motors Club forums, as well as personal analysis
// of... | C | simulators/DummyCAN.X/main.c | collin80/Open-Vehicle-Monitoring-System | mit | 6,293 | 186 | codeparrot/github-code |
79b884b4c448b7b67ae3e200795b5b11ab0b9a8fb0b6b0af273d2d33ebe8a417 | class A {
}
class B {
}
class if_acmp1
{
private static B get_B() {
B b = new B();
return b;
}
public static void main(String[] args) {
A a0 = new A();
A a1 = new A();
A a2 = new A();
A a3 = new A();
A a4 = new A();
assert a0 == a0;
assert a1 == a1;
assert a2 == a2;
... | Java | jayhorn_cav16_ae/cbmc_benchmarks/if_acmp1/if_acmp1.java | jayhorn/cav_experiments | mit | 569 | 37 | codeparrot/github-code |
d0fc00638ffa6b8ceb695dfd85a2f25491fdc2d28e1a888753fb7f52b7e5fd73 | require "grape"
require "grape/resources/version"
module Grape
class API
include Grape::Resources
class << self
def resources_for( clazz, methods=[:list, :get, :post, :put, :delete])
raise Error("To use grape_resources on a given class it should inherit from ActiveRecord::Base.( at least for no... | Ruby | lib/grape/resources.rb | nightweb/grape-resources | mit | 3,674 | 113 | codeparrot/github-code |
acd5d2be00f7277d27f326be0a59e881687cf7a77636060bca5c2b76b26d5807 | # -*- coding: utf-8 -*-
from __future__ import print_function
# Form implementation generated from reading ui file 'InputChannelTemplate.ui'
#
# Created: Sun Feb 22 13:29:16 2015
# by: PyQt4 UI code generator 4.10.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
... | Python | acq4/devices/DAQGeneric/InputChannelTemplate.py | meganbkratz/acq4 | mit | 3,321 | 84 | codeparrot/github-code |
299d51d9b908fa6b6c8756fbc57a4141a6867cdc0b1b9891ac5a868e4297978d | # Natural Language Toolkit: Confusion Matrices
#
# Copyright (C) 2001-2015 NLTK Project
# Author: Edward Loper <edloper@gmail.com>
# Steven Bird <stevenbird1@gmail.com>
# URL: <http://nltk.org/>
# For license information, see LICENSE.TXT
from __future__ import print_function, unicode_literals
from nltk.... | Python | venv/lib/python2.7/site-packages/nltk/metrics/confusionmatrix.py | MyRookie/SentimentAnalyse | mit | 7,825 | 207 | codeparrot/github-code |
d0e182bf5241755a77eaa4a2a4c8ca71a0b398d0b7616ae60216c476775cb736 | __author__ = "Jon Dawson"
__copyright__ = "Copyright (C) 2012, Jonathan P Dawson"
__version__ = "0.1"
class Allocator:
"""Maintain a pool of registers, variables and arrays. Keep track of what they are used for."""
def __init__(self, reuse):
self.registers = []
self.all_registers = {}
... | Python | chips2/chips/compiler/allocator.py | amerc/phimii | mit | 1,644 | 49 | codeparrot/github-code |
dee3e53950d367a044ba00f656ca022d757cda54f3b7db8444014d052f883199 | 'use strict';
const common = require('../common');
const assert = require('assert');
const tick = require('./tick');
const initHooks = require('./init-hooks');
const { checkInvocations } = require('./hook-checks');
const fs = require('fs');
const hooks = initHooks();
hooks.enable();
fs.readFile(__filename, common.mu... | JavaScript | plugins/languageAPI/jsAPI/3rdParty/nodejs/10.1.0/source/test/async-hooks/test-fsreqwrap-readFile.js | MTASZTAKI/ApertusVR | mit | 1,626 | 49 | codeparrot/github-code |
272e856a594a7a04fa36e1ff0d9cfd6a426dbcb8e150a6786a1d7d8dbcffafc2 | /*
* libjingle
* Copyright 2004 Google Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the fo... | C | third_party/webrtc/src/talk/media/base/fakenetworkinterface.h | Teamxrtc/webrtc-streaming-node | mit | 7,666 | 246 | codeparrot/github-code |
28838504ff595b4593abf0bebba228d5c7d723ee9d6dcdc8318c4d9c74ca6e36 | from tkinter.scrolledtext import ScrolledText
import tkinter as tk
from trace_json import traceparse
from parsley_json import jsonGrammar
jsonData = open('337141-steamcube.json').read()
class Tracer(object):
def __init__(self, grammarWin, inputWin, logWin, trace):
self.grammarWin = grammarWin
s... | Python | reference/parsley/examples/trace_visualiser.py | JaDogg/__py_playground | mit | 2,033 | 71 | codeparrot/github-code |
b98fa14df81516c63e9a383ddd8b4b1878971ec065f1cd1efbe4f35897851839 | #!/usr/bin/env python2.7
#The MIT License (MIT)
#Copyright (c) 2015-2016 mh4x0f P0cL4bs Team
#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... | Python | 3vilTwin-Attacker.py | samyoyo/3vilTwinAttacker | mit | 1,843 | 41 | codeparrot/github-code |
cb1e41bff7faa8473555b6d3652588829528b947930fbb743e433ed595244afc | // 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 | test/simple/test-stream-pipe-error-handling.js | csr1010/xmmagik | mit | 1,890 | 59 | codeparrot/github-code |
2246417f0c8d09b88f8b85705b8ab85e52e469cfc7286c24ae1bd9700435885e | using System;
using System.Linq;
namespace AutoFixture.DataAnnotations
{
/// <summary>
/// A customization that removes support for generating values that are customized
/// based on the member's data annotations attributes.
/// </summary>
/// <remarks>
/// This removes the <see cref="RangeAtt... | C# | Src/AutoFixture/DataAnnotations/NoDataAnnotationsCustomization.cs | Pvlerick/AutoFixture | mit | 1,314 | 34 | codeparrot/github-code |
4e16d79485fb98183b3288ad7f58b11ca0e50950b5378d8edf0f644cf6897601 | import React from 'react';
import test from 'ava';
import { shallow } from 'enzyme';
import SettingsWrapper from '../SettingsWrapper';
test('renders if isEnabled', (t) => {
const wrapper = shallow(<SettingsWrapper isEnabled />);
t.true(wrapper.matchesElement(<div />));
});
test('renders with settings toggle whe... | JavaScript | src/components/__tests__/SettingsWrapperTest.js | ttrentham/Griddle | mit | 1,547 | 46 | codeparrot/github-code |
2c8790fdec2c3f15e0ba69d284b37c42ace77febb9fc49f09bb3055f4ed2917f | # coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
This module provides classes to interface with the Crystallography Open
Database. If you use data from the COD, please cite the following works (as
stipulated by the COD developers)::
Merkys, A., Vaitk... | Python | pymatgen/ext/cod.py | gpetretto/pymatgen | mit | 5,027 | 140 | codeparrot/github-code |
643daca966fb762fa86f39ce9a1779355117578527bf2e295163647f9ad0d74e | // Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
// $Id:$
//
// Copyright (C) 1993-1996 by id Software, Inc.
//
// This source is available for distribution and/or modification
// only under the terms of the DOOM Source Code License as
// publi... | C | sh2emu/tk_qsrc/doomsrc/doomdef.h | cr88192/bgbtech_shxemu | mit | 6,593 | 339 | codeparrot/github-code |
76836c44c80bade9aae463daf92b90b1a1c7f22b50699e3c5785f0e8852eb3ab | /* globals: sinon */
var expect = require("chai").expect;
var Keen = require("../../../../src/core"),
keenHelper = require("../../helpers/test-config");
describe("Keen.Dataviz", function(){
beforeEach(function(){
this.project = new Keen({
projectId: keenHelper.projectId,
readKey: keenHelper.rea... | JavaScript | test/unit/modules/dataviz/dataviz-spec.js | vebinua/keen-js | mit | 18,031 | 494 | codeparrot/github-code |
00cc5bb9de10ecead54fc8bac609242b3188d77680b6673263ab78c3658884d2 | """foo URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vie... | Python | example/issues/449_django_lazy_path/foo/urls.py | rochacbruno/dynaconf | mit | 996 | 32 | codeparrot/github-code |
bb69df87c1af5816995696c4e00e5ce7a2a049b77c4feb778e2a9c1969154559 | // 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.
/*============================================================
**
** Header: COMSynchronizable.cpp
**
** Purpose: N... | C++ | src/vm/comsynchronizable.cpp | neurospeech/coreclr | mit | 65,001 | 2,244 | codeparrot/github-code |
93cd1d8b926530efbeabadf72ba1a3b36e1c42e2b5bb4e8a9e6f33df1f2a2e33 | <?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://framework.zend.com/license/new-bsd
* If you did not receive a copy of the ... | PHP | library/Zend/Search/Lucene/Storage/File/Filesystem.php | elpd/coop | mit | 6,514 | 232 | codeparrot/github-code |
3cb45216e7cb4c1ec6702f150777d1ea956f3ccde016e52fc57b2c3e60442107 | using System;
using System.Collections.Generic;
using System.Linq;
using Foundation;
using UIKit;
namespace TestFormsApp.iOS
{
// The UIApplicationDelegate for the application. This class is responsible for launching the
// User Interface of the application, as well as listening (and optionally responding) t... | C# | TestFormsApp/TestFormsApp.iOS/AppDelegate.cs | KSemenenko/LocalizationForXamarinForms | mit | 1,114 | 30 | codeparrot/github-code |
e8e822b863d56bdadf30e4daae1f33377ebb6b885be50624bbc1907eaed9bffb | /**
* @fileoverview transition parser/implementation - still WIP
*
* @author Tony Parisi
*/
goog.provide('glam.TransitionElement');
goog.require('glam.AnimationElement');
glam.TransitionElement.DEFAULT_DURATION = glam.AnimationElement.DEFAULT_DURATION;
glam.TransitionElement.DEFAULT_TIMING_FUNCTION = glam.Anima... | JavaScript | src/dom/transition.js | beni55/glam | mit | 1,258 | 48 | codeparrot/github-code |
cb57fe905c276dd08f66707a9838d432cbe24f4551ad22e5decaa44b56c779a3 | <?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Security\Core\Encoder;
use Symfony\Component\Security... | PHP | src/Symfony/Component/Security/Core/Encoder/MessageDigestPasswordEncoder.php | Taluu/symfony | mit | 2,530 | 83 | codeparrot/github-code |
8a8cf05c9ec410001ceacd954617d2516a91407ef06fd2c0f4ca010b8c754999 | #region License
// Copyright (c) 2007 James Newton-King
//
// 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, ... | C# | Src/Newtonsoft.Json/JsonSerializer.cs | exceptionless/Newtonsoft.Json | mit | 43,199 | 987 | codeparrot/github-code |
d3ced47cf507e585b457742c90b12c3da4f8ab682a96439d3f965971b2dd31c1 | var assert = require('assert');
var common = require('../../common');
var path = common.fixtures + '/data.csv';
var table = 'multi_load_data_test';
var newline = common.detectNewline(path);
common.getTestConnection({multipleStatements: true}, function (err, connection) {
assert.ifError(err);
common.useTestD... | JavaScript | test/integration/connection/test-multiple-statements-load-data-infile.js | mysqljs/mysql | mit | 1,869 | 52 | codeparrot/github-code |
e3b53392577ccbcd9eff4a62fcd1395ab0b86c14e9f953aa7f9a3b4fa75a00aa | /*! \file btGenericPoolAllocator.cpp
\author Francisco Leon Najera. email projectileman@yahoo.com
General purpose allocator class
*/
/*
Bullet Continuous Collision Detection and Physics Library
Copyright (c) 2003-2006 Erwin Coumans https://bulletphysics.org
This software is provided 'as-is', without any express or i... | C++ | Deps/bullet/src/BulletCollision/Gimpact/btGenericPoolAllocator.cpp | niello/deusexmachina | mit | 6,796 | 267 | codeparrot/github-code |
77355fe73ec86e539ff7852af9077564b93b59068a3a876f30e0a9bee0cdf221 | local have_ml,ml = pcall(require, 'ml')
local posix = require 'posix'
local linenoise = require 'linenoise'
local lsh = { tostring = tostring }
local append = table.insert
io.write "luaish (c) Steve Donovan 2012-2014\n"
local our_completions, our_history = {}
local our_shortcuts = {}
local home = os.getenv 'HOME'
... | Lua | luaish/luaish.lua | yuhangwang/luabuild | mit | 14,611 | 590 | codeparrot/github-code |
975c119ccd9ef503b965b7b27b707cf91c18dc4eac1db9388a461930b442ac21 | // --------------------------------------------------------------------------------------------
// <copyright file="FileSystemFileProvider.cs" company="Effort Team">
// Copyright (C) 2011-2014 Effort Team
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this sof... | C# | Main/Source/Effort/DataLoaders/Internal/FileSystemFileProvider.cs | arangas/effort | mit | 2,445 | 66 | codeparrot/github-code |
f782fa51454cccd2c486114f127b76e20479b71c6be933bc6f1ee8fba1d8a746 | /***
* Contains core SlickGrid classes.
* @module Core
* @namespace Slick
*/
(function ($) {
// register namespace
$.extend(true, window, {
"Slick": {
"Event": Event,
"EventData": EventData,
"EventHandler": EventHandler,
"Range": Range,
"NonDataRow": NonDataItem,
"Group"... | JavaScript | slick.core.js | chrisghost/X-SlickGrid | mit | 17,007 | 642 | codeparrot/github-code |
e7cedc8b649f20cb26a256b7d18eeace8fb2075a3a996f7069dd7a635d67e422 | /*
** $Id: lfunc.h,v 2.15.1.1 2017/04/19 17:39:34 roberto Exp $
** Auxiliary functions to manipulate prototypes and closures
** See Copyright Notice in lua.h
*/
#ifndef lfunc_h
#define lfunc_h
#include "lobject.h"
#define sizeCclosure(n) (cast(int, sizeof(CClosure)) + \
cast(int, sizeof(TV... | C | 3rd/lua/lfunc.h | ag6ag/skynet | mit | 1,681 | 63 | codeparrot/github-code |
969300d6810a2ddebb22e53baa6030cbcf29d7ea1c3c5557a3b454febae4de0e | # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd.
# MIT License. See license.txt
from __future__ import unicode_literals
"""
Create a new document with defaults set
"""
import webnotes
from webnotes.utils import nowdate, nowtime, cint, flt
import webnotes.defaults
def get_new_doc(doctype, parent_doc = None, par... | Python | webnotes/model/create_new.py | rohitw1991/latestadbwnf | mit | 1,707 | 62 | codeparrot/github-code |
8974f9bf13c4f417306cabf49c300d718328c57482a8934581ff8683b7ee8247 | /*******************************************************************************
* Copyright (c) 2015 - 2018
*
* 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... | Java | jsettlers.logic/src/main/java/jsettlers/main/replay/ReplayUtils.java | Peter-Maximilian/settlers-remake | mit | 10,500 | 257 | codeparrot/github-code |
9af7aad24c52f9d283815bc6f8051734b7a669fe26d73ea33b1895982ef37ed1 | package com.jvm_bloggers.frontend.public_area.common_layout;
import com.googlecode.wicket.jquery.ui.markup.html.link.BookmarkablePageLink;
import com.jvm_bloggers.frontend.public_area.AboutPage;
import com.jvm_bloggers.frontend.public_area.FireInOvhPage;
import com.jvm_bloggers.frontend.public_area.all_issues.AllIssue... | Java | src/main/java/com/jvm_bloggers/frontend/public_area/common_layout/HeaderFrontend.java | jvm-bloggers/jvm-bloggers | mit | 1,617 | 31 | codeparrot/github-code |
a04cd7fbb1cd9b2141701354f11deb3dae53214276691da868d84c41b0231ea8 | #ifndef RPCCONSOLE_H
#define RPCCONSOLE_H
#include <QDialog>
namespace Ui {
class RPCConsole;
}
class ClientModel;
/** Local Bitcoin RPC console. */
class RPCConsole: public QDialog
{
Q_OBJECT
public:
explicit RPCConsole(QWidget *parent = 0);
~RPCConsole();
void setClientModel(ClientModel *mode... | C | src/qt/rpcconsole.h | dyoungii/CDC | mit | 1,565 | 67 | codeparrot/github-code |
70f6c66f4f87133c7237366207126df508172a4da27d1188f9cfea3b610906e4 | //----------------------------------------------
// NGUI: Next-Gen UI kit
// Copyright © 2011-2013 Tasharen Entertainment
//----------------------------------------------
using UnityEngine;
using UnityEditor;
using System.Collections.Generic;
[CustomEditor(typeof(UIPanel))]
public class UIPanelInspector : ... | C# | UnsocialMan/Assets/NGUI/Scripts/Editor/UIPanelInspector.cs | fancyblock/ShanghaiGameJam-2013-UnsocialMan | mit | 6,298 | 222 | codeparrot/github-code |
9bf735790f17e103d92baf86ed569d2d3bfdc3caf8a23e21c7e8deac379b6186 | // Copyright (c) 2003 Daniel Wallin and Arvid Norberg
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify,... | C++ | luabind/detail/policy.hpp | galek/luabind-deboostified | mit | 5,170 | 156 | codeparrot/github-code |
278f946a94604ccce545a0ccae0e8086bccf52cbbd8944f6e58d4b3f2c6ad46e | namespace Controllers
{
using System;
using System.Globalization;
using System.Linq;
using System.Web.Mvc;
using Merchello.Core;
using Merchello.Core.Models;
using Merchello.Web.Models.ContentEditing;
using Models;
using Umbraco.Core.Logging;
using Umbraco.Web.Mvc;
[PluginC... | C# | src/Merchello.Web.UI/App_Code/Controllers/BasketController.cs | bjarnef/Merchello | mit | 6,493 | 164 | codeparrot/github-code |
a349662f56d499022fe9a234731289e5fa7c0cff8de83fd373877d6e21c8409a | <?php
class Jetpack_Debugger {
private static function is_jetpack_support_open() {
try {
$url = add_query_arg( 'ver', JETPACK__VERSION, 'https://jetpack.com/is-support-open/' );
$response = wp_remote_request( esc_url_raw( $url ) );
if ( is_wp_error( $response ) ) {
return false;
}
$body = wp_rem... | PHP | web/app/plugins/jetpack/class.jetpack-debugger.php | smpetrey/acredistilling.com | mit | 25,218 | 621 | codeparrot/github-code |
a3f8c91a01a8b0b2d0ad868be838159932fcd64d3bbfcc93d518e1bd0b54963c | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* Name: Auth Lang - English
*
* Author: Ben Edmunds
* ben.edmunds@gmail.com
* @benedmunds
*
* Author: Daniel Davis
* @ourmaninjapan
*
* Location: http://github.com/benedmunds/ion_auth/
*
* Created: 03.09.2013
*
* Descr... | PHP | application/language/estonian/auth_lang.php | RTougjas/snow-go | mit | 8,371 | 160 | codeparrot/github-code |
9df3a930675b0e999a839c75398fa786de824ae2e3736e9725cad5f35d857fb7 | <?php
declare(strict_types=1);
namespace Doctrine\ORM\Annotation;
/**
* @Annotation
* @Target("PROPERTY")
*/
final class OneToOne implements Annotation
{
/** @var string */
public $targetEntity;
/** @var string */
public $mappedBy;
/** @var string */
public $inversedBy;
/** @var arr... | PHP | lib/Doctrine/ORM/Annotation/OneToOne.php | lcobucci/doctrine2 | mit | 593 | 36 | codeparrot/github-code |
5f1b8664a4e39222fac74a796f01545e3b7ef74c599ae8e3b4475af34fa06a47 | /*
* Licensed to the University Corporation for Advanced Internet Development,
* Inc. (UCAID) under one or more contributor license agreements. See the
* NOTICE file distributed with this work for additional information regarding
* copyright ownership. The UCAID licenses this file to You under the Apache
* Lic... | Java | kombit-opensaml-2.5.1/src/org/opensaml/xacml/policy/impl/AttributeSelectorTypeUnmarshaller.java | Safewhere/kombit-web-java | mit | 2,638 | 59 | codeparrot/github-code |
4437aecf06281c143c467e7ee3ca57b052107a7791c2983d5766270d93889b2b | #include "ruby.h"
#include "rubyspec.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef HAVE_RB_DEFINE_HOOKED_VARIABLE
VALUE g_hooked_var = Qnil;
void var_2x_setter(VALUE val, ID id, VALUE *var) {
*var = INT2NUM(NUM2INT(val) * 2);
}
static VALUE sb_define_hooked_variable(VALUE self, VALUE var_name) {
rb_define_... | C | optional/capi/ext/globals_spec.c | kachick/rubyspec | mit | 4,293 | 197 | codeparrot/github-code |
acdd040536f2042d9879e2c911be78b2c52615f3c11cce9b3b79516dfcbbc154 | // Type definitions for Dropzone 5.0.0
// Project: http://www.dropzonejs.com/
// Definitions by: Natan Vivo <https://github.com/nvivo>, Andy Hawkins <https://github.com/a904guy/,http://a904guy.com/,http://www.bmbsqd.com>, Vasya Aksyonov <https://github.com/outring>, Simon Huber <https://github.com/renuo>, Sebastiaan de... | TypeScript | types/dropzone/index.d.ts | rolandzwaga/DefinitelyTyped | mit | 12,030 | 315 | codeparrot/github-code |
8c8e59870ef5a4c0b6e94e2f91b8b807abcca8ae057f0c73bec70c6433360432 | export scorePkg
const REQUIRE_EXISTS = 20.
const REQUIRE_VERSION = 20.
const LICENSE_EXISTS = 10.
const LICENSE = 0.
const LICENSE_FILE = 0.
const TEST_EXISTS = 20.
const TEST_RUNTESTS = 10.
const TEST_PASSES = 20.
const TEST_NOWARNING = 10.
const TEST_TRAVIS = 10.
const MAX_PKG_SCORE = REQUIRE_EXISTS + REQUIRE_VERSIO... | Julia | src/score.jl | aviks/PackageEvaluator.jl | mit | 3,671 | 113 | codeparrot/github-code |
451f83b6066137ee85505de7eb413789e983e1da309e6ae4c42fff967b6dbc66 | <div class="bs-docs-section">
<h1 id="dropdowns" class="page-header">Dropdowns <small>dropdown.js</small></h1>
<h2 id="dropdowns-examples">Examples</h2>
<p>Add dropdown menus to nearly anything with this simple plugin, including the navbar, tabs, and pills.</p>
<h3>Within a navbar</h3>
<div class="bs-exampl... | HTML | src/Dev/PCultBundle/Resources/public/bower_components/bootstrap/docs/_includes/js/dropdowns.html | risq/sf-workshop | mit | 11,068 | 201 | codeparrot/github-code |
220c580b10c04b61f2547ea2df5bdc23ebc30106770aaed19e02c094aef9795f | /* Copyright (c) 2008-2014 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "array.h"
#include "hash.h"
#include "mkdir-parents.h"
#include "file-lock.h"
#include "file-dotlock.h"
#include "nfs-workarounds.h"
#include "istream.h"
#include "ostream.h"
#include "dict-transaction-memory.h"
#inc... | C | src/lib-dict/dict-file.c | rplessl/dovecot-pop-uidl-proxy | mit | 15,521 | 639 | codeparrot/github-code |
ecd5e9093925a88b3d2488bd2350f1ced800c9a00f85bd7602064fb9758f6c9b | // This source code is dual-licensed under the Apache License, version
// 2.0, and the Mozilla Public License, version 1.1.
//
// The APL v2.0:
//
//---------------------------------------------------------------------------
// Copyright (C) 2007-2014 GoPivotal, Inc.
//
// Licensed under the Apache License, Version... | C# | lib/rabbitmq-dotnet-client-rabbitmq_v3_4_4/projects/client/RabbitMQ.Client/src/client/api/ShutdownEventArgs.cs | CymaticLabs/Unity3D.Amqp | mit | 5,923 | 150 | codeparrot/github-code |
7fb2032c8ceed1dfcbbaf81519400d03c6b09a2312572cac6997166e150cbca9 | # k-th Largest Element Problem
You're given an integer array `a`. Write an algorithm that finds the *k*-th largest element in the array.
For example, the 1-st largest element is the maximum value that occurs in the array. If the array has *n* elements, the *n*-th largest element is the minimum. The median is the *n/2... | Markdown | Kth Largest Element/README.markdown | jawwad/swift-algorithm-club | mit | 6,202 | 142 | codeparrot/github-code |
71f8f697ce7f95751defb60345f294b40ab1928fa0430f844765a3f3dc435249 | // ***********************************************************************
// Copyright (c) 2008-2015 Charlie Poole, Rob Prouse
//
// 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 r... | C# | src/NUnitFramework/framework/Attributes/TestCaseSourceAttribute.cs | OmicronPersei/nunit | mit | 14,041 | 310 | codeparrot/github-code |
f704153f7480048bf199c4422570eb2f064b9c043f87d4aa763ce71e8f1b2a6d | import Button from './Button';
/**
* The `LinkButton` component defines a `Button` which links to a route.
*
* ### Props
*
* All of the props accepted by `Button`, plus:
*
* - `active` Whether or not the page that this button links to is currently
* active.
* - `href` The URL to link to. If the current URL ... | JavaScript | js/src/common/components/LinkButton.js | datitisev/core | mit | 932 | 41 | codeparrot/github-code |
fc9085b7ebbcdeabda4ac10a18616740d9041b4950da16f3693e410df25bd6b6 |
#ifdef HAVE_CONFIG_H
#include "../ext_config.h"
#endif
#include <php.h>
#include "../php_ext.h"
#include "../ext.h"
#include <Zend/zend_operators.h>
#include <Zend/zend_exceptions.h>
#include <Zend/zend_interfaces.h>
#include "kernel/main.h"
#include "kernel/object.h"
ZEPHIR_INIT_CLASS(stub_12__closure)
{
ZEPHIR... | C | ext/stub/12__closure.zep.c | phalcon/zephir | mit | 542 | 34 | codeparrot/github-code |
db9a936dab692f1e8cbbe3a68d72cdcd85b70341b33d71d420ed38e07e90797c | /**
* Copyright (c) 2005-2006, Sun Microsystems, Inc
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* ... | Java | samples/TimingFramework/src/org/jdesktop/animation/timing/interpolation/KeyTimes.java | theyelllowdart/jmockit | mit | 3,949 | 108 | codeparrot/github-code |
002d59b10f6ad4ed993af5fd9b8edb8f8024c899404798387462a826ea21a0ce | package controllers
import play.api.libs.json._
import scala.annotation.nowarn
import lila.api.Context
import lila.app._
import lila.practice.JsonView._
import lila.practice.{ PracticeSection, PracticeStudy, UserStudy }
import lila.study.Study.WithChapter
import lila.study.{ Chapter, Study => StudyModel }
import lila... | Scala | app/controllers/Practice.scala | luanlv/lila | mit | 4,847 | 158 | codeparrot/github-code |
925e20050e082977ae4fdd49e37e99baa0bac9806c8932f59b8313cf5845a610 | package com.outsystems.android.model;
public enum DLOperationType {
dlLoginOperation("login"),
dlOpenUrlOperation("openurl"),
dlInvalidOperation("invalid");
public final String name;
DLOperationType(String name){
this.name = name;
}
public String toString(){
return this.getName();
}
public St... | Java | outsystems-app-android/Outsytems/platforms/android/src/com/outsystems/android/model/DLOperationType.java | jrmunson/Android-Dev | mit | 631 | 39 | codeparrot/github-code |
ac833878c900a97ce684b6bd845dd0ce3fc457ed971b9574539c0989c135618b | <!DOCTYPE html>
<html>
<head>
<title>The Olive Fairy Book | Andrew Lang | Lit2Go ETC</title>
<link rel="stylesheet" href="http://etc.usf.edu/lit2go/css/screenless.css" type="text/css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet" href="http://etc.usf.edu/lit2go/css/printless.css"... | HTML | lit2go.ok/144/the-olive-fairy-book/index.html | adrianosb/HtmlToText | mit | 11,878 | 234 | codeparrot/github-code |
ab34791b86a41714a45a455a4ab1356b29ebada700fcafb939c15829dcb3de3f | class NotesController < ProjectResourceController
# Authorize
before_filter :authorize_read_note!
before_filter :authorize_write_note!, only: [:create]
respond_to :js
def index
notes
if params[:target_type] == "merge_request"
@mixed_targets = true
@main_target_type = params[:target_type]... | Ruby | app/controllers/notes_controller.rb | riyad/gitlabhq | mit | 975 | 47 | codeparrot/github-code |
54b5430f19555fcbb77e0ee27bfcd83ac138cc302c5ff15d90ef14bc07375343 | <?php
use YOOtheme\Widgetkit\Application;
use YOOtheme\Widgetkit\Framework\Joomla\Option;
global $widgetkit;
if ($widgetkit) {
return $widgetkit;
}
$loader = require __DIR__ . '/vendor/autoload.php';
$config = require __DIR__ . '/config.php';
$app = new Application($config);
$app['autoloader'] = $loader;
$app... | PHP | joomla/administrator/components/com_widgetkit/widgetkit.php | yaelduckwen/libriastore | mit | 3,300 | 95 | codeparrot/github-code |
40eec9a51ae482c6fb95e7b685a51c163947066caf9b555e2717fe66f69d7426 | package org.diorite.material.blocks.wooden.wood.fencegate;
import java.util.Map;
import org.diorite.BlockFace;
import org.diorite.material.Material;
import org.diorite.material.WoodTypeMat;
import org.diorite.material.blocks.FenceGateMat;
import org.diorite.utils.collections.maps.CaseInsensitiveMap;
import gnu.trove... | Java | DioriteAPI/src/main/java/org/diorite/material/blocks/wooden/wood/fencegate/OakFenceGateMat.java | marszczybrew/Diorite | mit | 5,868 | 166 | codeparrot/github-code |
67266410c49f1a14201f44179a3a310227a3927ca69757ea8abffd22bd8287e2 | # -*- coding: utf-8 -*-
from __future__ import print_function
from acq4.util import Qt
import acq4.pyqtgraph as pg
from .CanvasItem import CanvasItem
from .itemtypes import registerItemType
class GridCanvasItem(CanvasItem):
_typeName = "Grid"
def __init__(self, **kwds):
kwds.pop('viewRect', None... | Python | acq4/util/Canvas/items/simpleitems.py | pbmanis/acq4 | mit | 1,421 | 56 | codeparrot/github-code |
b1ca82a516da48e02c342c6e8010a2de7b2044d72a38662439b00c9f24f1eb81 | <?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\EventDispatcher\DependencyInjection;
use Symfony\Comp... | PHP | src/Symfony/Component/EventDispatcher/DependencyInjection/RegisterListenersPass.php | localheinz/symfony | mit | 7,973 | 197 | codeparrot/github-code |
8b1fa3a309fd8a30298a79dc71eac6fc8d7fa5433d3365bdf7556db0fa5cb669 | /*
* TcpClient.cpp
*
* Created on: 2017年2月13日
* Author: xzl
*/
#include "TcpClient.h"
namespace ZL {
namespace Network {
TcpClient::TcpClient() {
}
TcpClient::~TcpClient() {
shutdown();
}
void TcpClient::shutdown() {
decltype(m_pSock) sockTmp;
{
lock_guard<spin_mutex> lck(m_mutex);
sockTmp = m_pS... | C++ | vecvr/src/ZLToolKit/src/Network/TcpClient.cpp | veyesys/opencvr | mit | 3,491 | 168 | codeparrot/github-code |
ac4930fca87b68e494d265bdbd96e739a3be6e5f66acefaf7a2f57872baa3b99 | /* vi: set sw=4 ts=4: */
/*
* Rexec program for system have fork() as vfork() with foreground option
*
* Copyright (C) Vladimir N. Oleynik <dzo@simtreas.ru>
* Copyright (C) 2003 Russ Dill <Russ.Dill@asu.edu>
*
* daemon() portion taken from uClibc:
*
* Copyright (c) 1991, 1993
* The Regents of the Universi... | C | fs/home/admin/busybox-1.26.0/libbb/vfork_daemon_rexec.c | deathslocus/jor1k-sysroot | mit | 7,984 | 293 | codeparrot/github-code |
18c5f827b7b579d994808c039d1b229b6856ef123e9e73f7c7bca542614e5a27 | package aima.core.learning.inductive;
import java.util.ArrayList;
import java.util.Hashtable;
import java.util.List;
import aima.core.learning.framework.DataSet;
import aima.core.learning.framework.Example;
import aima.core.util.Util;
/**
* @author Ravi Mohan
*
*/
public class DecisionTree {
private String attr... | Java | src/main/java/aima/core/learning/inductive/DecisionTree.java | Iroxsmyth/Brisca-AI-2017 | mit | 2,953 | 110 | codeparrot/github-code |
88bc1dc5c245b1a7045c05f5ef50ddece211dffcb4316a5d83b72779a7121fe9 | //-----------------------------------------------------------------------
// <copyright file="Program.cs" company="Hibernating Rhinos LTD">
// Copyright (c) Hibernating Rhinos LTD. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
using System;
using Syst... | C# | Servers for replication/Server B/Samples/Raven.Samples.Includes/Program.cs | myarichuk/SeminarStuff | mit | 1,618 | 64 | codeparrot/github-code |
6d18184612d5641ffe566c48b623db7c6aede1c0997ed973d1462aa1fcbb04fc | $.fn.observationFieldsForm = function(options) {
$(this).each(function() {
var that = this
$('.observation_field_chooser', this).chooser({
collectionUrl: '/observation_fields.json',
resourceUrl: '/observation_fields/{{id}}.json',
afterSelect: function(item) {
$('.observation_field_ch... | JavaScript | app/assets/javascripts/observations/observation_fields.js | lucas-ez/inaturalist | mit | 9,266 | 234 | codeparrot/github-code |
2d498c6f78e9c2cf30677159e3ffbb37696983df05cebb2bc33ce34127601826 | # Makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = _build
# User-friendly check for sphinx-build
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
$(error The '$(SPHINXBUILD)' command w... | Makefile | docs/Makefile | pombredanne/marisa-trie | mit | 7,429 | 193 | codeparrot/github-code |
63614c87944d24d3faecf08108ec054a63d282b1483f38be28010866814c1f94 | //-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//------------------------------------------------------... | JavaScript | test/es5/array_map.js | arunetm/ChakraCore_0114 | mit | 1,381 | 54 | codeparrot/github-code |
8e72a2e029560376dc8b2e5c859b17df6f6c120de2b57d18596ed52750872024 | /*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2015 Scientific Computing and Imaging Institute,
University of Utah.
License for the specific language governing rights and limitations under
Permission is hereby granted, free of charge, to any person o... | C | src/Dataflow/Network/GeometryGeneratingModule.h | ajanson/SCIRun | mit | 2,345 | 63 | codeparrot/github-code |
ffccdb4e682e9b50cd9d44021a1dc3a233104917b4a33c054654a164aa9cde60 | #!./env/bin/python
""" Windows Registry Network Query
Lists the network name and MAC addresses of the networks that
this computer has connected to. If the location command is given
print the coordinates of the network if they are in the wigile
datebase
Don't be a moron, please don't use this for ... | Python | forensic/windows_registry.py | JackStouffer/Violent-Python | mit | 2,693 | 102 | codeparrot/github-code |
00c4d547078b22352c7edc8b3019800057289d01fe5f8a31c02d615b566058b4 |
const gulp = require('gulp');
const util = require('gulp-util');
const zip = require('gulp-zip');
const release = require('gulp-github-release');
const folders = require('gulp-folders');
const nwBuilder = require('gulp-nw-builder');
const fs = require('fs');
const changelog = require('conventional-changelog');
const ... | JavaScript | gulp/binaries.js | seiyria/openchallenge | mit | 1,935 | 68 | codeparrot/github-code |
0d60f9603ddd919e96f0f70d66d178ba5e3db762bc6343b493778bef640c2b96 | package bolt
import (
"context"
"fmt"
"os"
"path/filepath"
"time"
platform "github.com/influxdata/influxdb/v2"
platform2 "github.com/influxdata/influxdb/v2/kit/platform"
"github.com/influxdata/influxdb/v2/rand"
"github.com/influxdata/influxdb/v2/snowflake"
bolt "go.etcd.io/bbolt"
"go.uber.org/zap"
)
const... | GO | bolt/bbolt.go | li-ang/influxdb | mit | 3,082 | 128 | codeparrot/github-code |
325a70c9a884e625d2db7e82d3a79ed3e6d4561f6a73d867dc9bc1ab0eee6f78 | import { FormValidationResult } from 'lc-form-validation';
import * as toastr from 'toastr';
import { actionTypes } from '../../../common/constants/actionTypes';
import { MemberEntity } from '../../../model';
import { memberAPI } from '../../../api/member';
import { memberFormValidation } from '../memberFormValidation'... | TypeScript | old_class_components_samples/14 AsyncCalls_Redux_Saga/src/components/member/actions/saveMember.ts | Lemoncode/react-typescript-samples | mit | 1,105 | 36 | codeparrot/github-code |
6d2f9c24f2e612704189086f4ba4d80f11a6288efe81f25cb133b8944239ad7b | (function () {
'use strict';
angular
.module('app.layout')
.controller('SidebarController', SidebarController);
SidebarController.$inject = ['routerHelper', '$scope', '$rootScope'];
/* @ngInject */
function SidebarController (routerHelper, $scope, $rootScope) {
var vm = thi... | JavaScript | app/templates/client/source/app/layout/sidebar.controller.js | hitesh97/generator-aio-angular | mit | 1,216 | 47 | codeparrot/github-code |
3335a6439eb90fd4abde0d96f4418aeeec59f8f1b651bd277ffaf5320017c1df | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tera.Game;
using Tera.Game.Messages;
namespace PacketViewer.Heuristic
{
class S_ADD_BLOCKED_USER : AbstractPacketHeuristic
{
public new void Process(ParsedMessage message)
... | C# | PacketViewer.Core/Heuristic/S_ADD_BLOCKED_USER.cs | neowutran/TeraDamageMeter | mit | 2,632 | 70 | codeparrot/github-code |
c4af332f403eee88158353c0db4cdc642f5992fc7ca01b7b7769dca3a1adc9be | <?php
/**
* @package hubzero-cms
* @copyright Copyright 2005-2019 HUBzero Foundation, LLC.
* @license http://opensource.org/licenses/MIT MIT
*/
namespace Modules\ArticlesNews;
use Hubzero\Module\Module;
use Components\Content\Models\Article;
use Component;
use Route;
use Event;
use Lang;
use Html;
use User... | PHP | core/modules/mod_articles_news/helper.php | anthonyfuentes/hubzero-cms | mit | 3,147 | 116 | codeparrot/github-code |
73bdda049dd7be7fb22205dee52d01c759a9181a571302550040085a4cbb739f | #include "NoteState.h"
#include "EffectParam.h"
#include "ITrackState.h"
#include "PlayerState.h"
#include "SDL.h"
#include <math.h>
NoteState::NoteState()
: frequency(0), slideTarget(0), volume(0)
{
SDL_memset(effectMemory, 0, sizeof(effectMemory));
}
void NoteState::setFrequencyFromNote(int note)
{
static const... | C++ | src/NoteState.cpp | kometbomb/prototracker | mit | 2,449 | 136 | codeparrot/github-code |
fd5d5d9c92bdd9d97c95b78a69fd14b3cde584b748e6e4f29b15858ba03fec32 | /**
* @author mrdoob / http://mrdoob.com/
* @author alteredq / http://alteredqualia.com/
* @author paulirish / http://paulirish.com/
*/
THREE.FirstPersonControls = function ( object, domElement ) {
if ( domElement === undefined ) {
console.warn( 'THREE.FirstPersonControls: The second parameter "domElement" is... | JavaScript | examples/js/controls/FirstPersonControls.js | SpinVR/three.js | mit | 7,190 | 353 | codeparrot/github-code |
2678817e7530f84e95cd190e01e4a3129d1f0899ac79a3445101bec576e21dc8 | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <time.h>
#include <math.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <signal.h>
#include <errno.h>
#include <arpa/inet.h>
#include "dask.h"
#include "conio.h"
#include "cpgplo... | C | power_data_to_sat_passes/Sat1/getsatfourchan.c | abrahamneben/orbcomm_beam_mapping | mit | 20,178 | 820 | codeparrot/github-code |
a25d63bc2f06666f9a47e62a0c1784a95a2585be780fa5ed15f7bc1be3998e76 | <?php
/**
* PHPExcel
*
* Copyright (c) 2006 - 2007 PHPExcel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later ve... | PHP | application/libraries/PHPExcel/branches/v1.4.0/Classes/PHPExcel/Cell.php | ALTELMA/OfficeEquipmentManager | mit | 11,929 | 488 | codeparrot/github-code |
fd160837e41e88ae2fd32ee865133cb2941cff96df3e08130ff5e0b12bd589f4 | <!DOCTYPE html>
<html>
<head>
<title>Flesch–Kincaid Grade Level 9 | Lit2Go ETC</title>
<link rel="stylesheet" href="http://etc.usf.edu/lit2go/css/screenless.css" type="text/css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet" href="http://etc.usf.edu/lit2go/css/printless.css" type=... | HTML | lit2go.ok/readability/flesch_kincaid_grade_level/9/index.html | adrianosb/HtmlToText | mit | 37,028 | 602 | codeparrot/github-code |
f56bf477e7265c5741eaddb9e2fa957f70c5d155b5e801572aacb26e996e2928 | #!/usr/bin/env python
import re
class Templates:
TOKENS = re.compile('([A-Za-z]+|[^ ])')
SIMPLE = {
'l': '_n.l.ptb()',
'r': '_n.r.ptb()',
'<': 'addr(_n)',
'>': 'addl(_n)',
}
def compile(self, template):
python = self.parse(self.TOKENS.findall(template))
return eval("lambda _n: %s" % p... | Python | packs_sys/logicmoo_nlu/ext/candc/src/scripts/ccg/template.py | TeamSPoon/logicmoo_workspace | mit | 1,061 | 45 | codeparrot/github-code |
8cbeac554c5e811a5f80bb6fda691e70e81a5e4f8f0454bf7b3c7b63dcc27851 | import modules from 'ui/modules';
import angular from 'angular';
function Storage(store) {
let self = this;
self.store = store;
self.get = function (key) {
try {
return JSON.parse(self.store.getItem(key));
} catch (e) {
return null;
}
};
self.set = function (key, value) {
try {
... | JavaScript | kibana/kibana/src/ui/public/storage/storage.js | phupn1510/ELK | mit | 844 | 42 | codeparrot/github-code |
2229937f9157dda74815d21ad29b986818c4b5642b1619e24bd81d9116228e1a | using Cauldron.XAML;
using System;
using System.Windows;
using System.Windows.Interop;
namespace Cauldron
{
/// <summary>
/// Provides extension methods
/// </summary>
public static class ExtensionsParameterPassing
{
/// <summary>
/// Adds a message hook to the window that handles ... | C# | Win32/Cauldron.Win32.WPF.ParameterPassing/ExtensionsParameterPassing.cs | reflection-emit/Cauldron | mit | 1,895 | 52 | codeparrot/github-code |
0def7c3f1bf8eb9c2b3267db02e58634bd413f6a130c0ff331fd44fbd18b561e | // Copyright (c) 2020 Uber Technologies, Inc.
//
// 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... | JavaScript | const.js | uber/thriftrw | mit | 1,818 | 49 | codeparrot/github-code |
650b8b57eb93da676792a4606a0acd4cdab3a802a8496f20ab4e4eada62e9e6e | #!/usr/bin/env python3
# Copyright (c) 2014-2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test BIP68 implementation."""
from test_framework.test_framework import BitcoinTestFramework
from test... | Python | test/functional/feature_bip68_sequence.py | dashpay/dash | mit | 17,835 | 395 | codeparrot/github-code |
c4f9b4246af6f4afe119c6959758e8a883fcf1d432a2b41341d2efd7c6cea5e8 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GResolver: GIO Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="index.html" title="GIO Reference Manua... | HTML | glib/glib-2.46.2/docs/reference/gio/html/GResolver.html | imx6uldev/depedency_tools | mit | 80,014 | 1,245 | codeparrot/github-code |
15c7db1f61eca7a5c6a2b51a65da28b0545c8132b7632345579f7bc450fd1176 | /*
This file is part of WME Lite.
http://dead-code.org/redir.php?target=wmelite
Copyright (c) 2011 Jan Nedoma
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, includin... | C++ | src/ScStack.cpp | segafan/wmelite_hcdaniel-repo | mit | 5,627 | 236 | codeparrot/github-code |
0d59e2605e1186898a34c244e899038265ee567b8fcf312f39b817d477c7e148 | package org.mwc.debrief.core.contenttype;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import org.eclipse.core.internal.content.TextContentDescriber;
import org.eclipse.core.runtime.Status;
import org.eclipse.core.runtime.content.IContentDesc... | Java | org.mwc.debrief.core/src/org/mwc/debrief/core/contenttype/AISContentDescriber.java | alastrina123/debrief | epl-1.0 | 1,163 | 56 | codeparrot/github-code |
5232a6fd20cb9fe835c49728ff11330515629a2ab55cbe8c3a8b8de8bed3c13b | /*******************************************************************************
* Copyright (c) 2000, 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, an... | Java | source/thirdparty/jsdt/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/ui/actions/FindReadReferencesInWorkingSetAction.java | boniatillo-com/PhaserEditor | epl-1.0 | 4,023 | 100 | codeparrot/github-code |
7ca2208dd609370ceb58fa677ef7e998becaa19438703a3917bc269bef9a5b76 | /*******************************************************************************
* Copyright (c) 2017 Red Hat Inc
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
... | Java | kura/org.eclipse.kura.broker.artemis.xml/src/main/java/org/eclipse/kura/broker/artemis/xml/ServiceComponent.java | gavinying/kura | epl-1.0 | 3,995 | 130 | codeparrot/github-code |
6bbe8aeb116749a0991ff6517467230da7618d081ba55dec688f6606e24c36f4 | /*
// This software is subject to the terms of the Eclipse Public License v1.0
// Agreement, available at the following URL:
// http://www.eclipse.org/legal/epl-v10.html.
// You must accept the terms of that agreement to use this software.
//
// Copyright (C) 2007-2007 Pentaho and others
// All Rights Reserved.
*/
pack... | Java | testsrc/main/mondrian/test/clearview/MetricFilterTest.java | rfellows/mondrian | epl-1.0 | 1,448 | 52 | codeparrot/github-code |
24e0321dcf0211a266515c0676221e6e71f23a77defbd846985a80c65303aa8e | /**
* Copyright (c) 2010-2018 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/... | Java | addons/binding/org.openhab.binding.tankerkoenig/src/main/java/org/openhab/binding/tankerkoenig/internal/config/TankerkoenigListResult.java | andiikaa/openhab2 | epl-1.0 | 1,429 | 57 | codeparrot/github-code |
7b573f08912a1089fb5a6224651a81a27fa470ff68936b36a6a7170d9dea6e6f | /*******************************************************************************
* Copyright (c) 2000, 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, an... | Java | source/thirdparty/jsdt/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/ui/actions/GenerateActionGroup.java | boniatillo-com/PhaserEditor | epl-1.0 | 21,469 | 536 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.