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 |
|---|---|---|---|---|---|---|---|---|
32b889156bf93e8b1818cbee277862b5f37c5fd17aa65f0d63a254b8dcecc1d6 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>hammer-tactics: 22 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" r... | HTML | clean/Linux-x86_64-4.06.1-2.0.5/released/8.11.2/hammer-tactics/1.2+8.11.html | coq-bench/coq-bench.github.io | mit | 9,566 | 195 | codeparrot/github-code |
e3da548d5de1513aace853b516f46bb83da1e03d8bab190e1c6cc1f3314ab6cc | // Copyright (c) 2009 DotNetAnywhere
//
// 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, pu... | C# | System.Drawing/System.Drawing/LibIGraph.cs | wizzard0/dotNetAnywhere-wb | mit | 6,611 | 187 | codeparrot/github-code |
7271c657e4c88ba174e702fdc9a060290580ab9598b148b16845cf6172a0e45d | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-multinomials: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../boo... | HTML | clean/Linux-x86_64-4.10.2-2.0.6/released/8.15.0/mathcomp-multinomials/1.3.html | coq-bench/coq-bench.github.io | mit | 7,347 | 175 | codeparrot/github-code |
4035c398104303720dd9139b01953bfbd915de4fb0b53e7004695ca62ab2914e | import Ember from 'ember';
import { purecloudEnvironmentTld } from '../utils/purecloud-environment';
import platformClient from 'platformClient';
export default Ember.Route.extend({
purecloud: Ember.inject.service(),
accountManager: Ember.inject.service(),
analyticsService: Ember.inject.service(),
init() {
this... | JavaScript | app/routes/api-explorer.js | MyPureCloud/developer-tools | mit | 2,697 | 84 | codeparrot/github-code |
193745e1eaf6f242afc8e61277ec589a6852db5af5d5eaafd1133db4d1addfc6 | # ******************************************************************************
# NOTICE: IF YOU CHANGE THIS FILE PLEASE CHANGE ITS COUNTERPART IN SB_VISION
# ******************************************************************************
# Try to put all game specific code in here
WALL = set(range(0, 28)) # 0 - 27... | Python | robot/game_specific.py | sourcebots/robot-api | mit | 2,127 | 59 | codeparrot/github-code |
0351e9db6d7bd6e456e2b7dee4496b66cf05d8402c500cbba1535f8e09d74350 | <?php
namespace Draw\Swagger;
use Draw\Swagger\Schema\BaseParameter;
use Draw\Swagger\Schema\SpecificationExtensionSupportInterface;
use JMS\Serializer\EventDispatcher\Events;
use JMS\Serializer\EventDispatcher\EventSubscriberInterface;
use JMS\Serializer\EventDispatcher\ObjectEvent;
use JMS\Serializer\EventDispatche... | PHP | JMSSerializerListener.php | supersmile2009/swagger | mit | 2,649 | 97 | codeparrot/github-code |
1d794939435934baf2bdfcbe5c752fafb64aed06b69a22307ec87012ebfd8de5 | /*
* trackManager.cpp
* ofxFensterExample
*
* Created by ich beobachte dich on 07.07.12.
* Copyright 2012 __MyCompanyName__. All rights reserved.
*
*/
#include "trackManager.h"
#include "ofEvents.h"
trackManager::trackManager(){
//generateMeditation();
readXML();
speed=1;
bTimerReached=true;
}
void t... | C++ | files/arduinoBrain1/src/trackManager.cpp | cpietsch/brainstatesharing2 | mit | 5,018 | 169 | codeparrot/github-code |
888696528c7883e36c7bb35e8c267d35c76b01929909bec5c41c5a2f36f34e31 | /********************************************************* {COPYRIGHT-TOP} ***
* Copyright 2016 IBM Corporation
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the MIT License
* which accompanies this distribution, and is available at
* http://opensource.org/... | Java | JMSPerfHarness/src/com/ibm/uk/hursley/perfharness/jms/r11/ReconnectTimer.java | ot4i/perf-harness | mit | 8,238 | 223 | codeparrot/github-code |
eda103639fe26afdd3218c04ed17931cf417adfba6d6897bd16714bd09622fbc | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>coqeal: 8 m 56 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="... | HTML | clean/Linux-x86_64-4.08.1-2.0.5/released/8.10.2/coqeal/1.0.5.html | coq-bench/coq-bench.github.io | mit | 23,513 | 310 | codeparrot/github-code |
b0b13f3da698a16f79121a0e0eae1db7de8be76b80af0648dd38731faa2855dc | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ptsf: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" r... | HTML | clean/Linux-x86_64-4.05.0-2.0.1/released/8.5.0~camlp4/ptsf/8.10.0.html | coq-bench/coq-bench.github.io | mit | 7,334 | 176 | codeparrot/github-code |
31a7fb23237e29e0eac61fe033c5c3f833d1c2f2d86a3aa3b733cf4aa1da0def | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2011-2012 Litecoin Developers
// Copyright (c) 2014 Girlcoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license... | C | src/net.h | bgcoin/GirlCoin | mit | 18,161 | 693 | codeparrot/github-code |
ffeb111ae7f88d85374e630956c76e49ec1a75ed0f141342ce13b284991a667a | package com.lybitos;
import android.app.Application;
import com.facebook.react.ReactApplication;
import com.airbnb.android.react.maps.MapsPackage;
import com.lugg.ReactNativeConfig.ReactNativeConfigPackage;
import com.facebook.react.ReactInstanceManager;
import com.facebook.react.ReactNativeHost;
import com.facebook.... | Java | android/app/src/main/java/com/lybitos/MainApplication.java | totorototo/strava | mit | 1,276 | 51 | codeparrot/github-code |
3848819f42f3b79d55ec5355997512f03be782843bc2406c7c5e839f84af1536 | <!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>The DevOps 2.1 Toolkit: Monitoring Swarm Services</title>
<meta name="author" content="Viktor Farcic">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translu... | HTML | devops21/monitoring.html | vfarcic/vfarcic.github.io | mit | 23,465 | 618 | codeparrot/github-code |
2881a3caea75f1bef438f3bf0fcc6978fa5c9112fa1256128074778ffc594eb8 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>relation-algebra: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstra... | HTML | clean/Linux-x86_64-4.09.1-2.0.6/released/8.11.0/relation-algebra/1.7.1.html | coq-bench/coq-bench.github.io | mit | 7,086 | 179 | codeparrot/github-code |
168771f8e499372829381a88bd47b3f6f53f4357df0fd1774ccc7e4dd00b8c98 | //
// logmem.h
//
// In-memory cache of log at storage server.
//
/*
Original code: Copyright (c) 2014 Microsoft Corporation
Modified code: Copyright (c) 2015-2016 VMware, Inc
All rights reserved.
Written by Marcos K. Aguilera
MIT License
Permission is hereby granted, free of charge, to any person
ob... | C | include/logmem.h | mkaguilera/yesquel | mit | 14,356 | 358 | codeparrot/github-code |
cc185163a327ee38ba0b1a30d20b60a03a65a186c7797737fa87589b9ef65a6d | package com.desmond.demo.base.view;
import android.content.Context;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.desmond.demo.R;
/**
* Created by WIN10 on 2016/2/1.
*/
public class EmptyView extends AbstractView {
public EmptyView(Context context, ... | Java | demo/src/main/java/com/desmond/demo/base/view/EmptyView.java | wzh404/drug | mit | 1,045 | 34 | codeparrot/github-code |
3d636c143e559da4fdf75f5f45cd83ca6d7cc41b7d232ce7c370b5c2e26a093d | /*
* Copyright (c) 2013, Andres Rodriguez. All rights reserved.
*/
var assert = require('assert-plus');
var Client = require('../lib/client');
var config = require('./config.json');
var lol;
var summonerId = 5908;
exports.setUp = function (callback) {
lol = new Client(config);
callback();
};
exports.testGameBy... | JavaScript | test/test-game.js | cachafla/node-lol | mit | 655 | 35 | codeparrot/github-code |
f9b2aa6308f5ae567b415bf1ee5f1aa303c9bb4a8fdf78aa0e1dbaf4cc6c61ab | import React from 'react'
import {
ButtonFontSetting,
ButtonFontStyleSetting,
ButtonColorThemeSetting,
ButtonLangSetting,
} from './ButtonSetting'
import { Popup } from 'shared'
SettingOption.propTypes = {
setting: React.PropTypes.object.isRequ... | JavaScript | src/modules/app/components/SettingOption.js | nattatorn-dev/currency-exchange | mit | 2,577 | 108 | codeparrot/github-code |
774fa26d75e6e4614ee7400979274d1328919bc0933ada1a3f73f464657a61bc | import React, { Component } from 'react';
import ImagesLoaded from '../../src/index';
const Image = ({ src, style }) => {
return <img style={style} src={src} />;
};
export default class FullPackage extends Component {
state = {
images: [
{
src: 'http://via.placeholder.com/200x200'
},
... | JavaScript | stories/variants/FullPackage.js | oyvindhermansen/react-images-loaded | mit | 1,755 | 75 | codeparrot/github-code |
901d6d22111e4edb1d762d7c2c57235c26d8a899bf78a97e2db4a009a490e526 | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "pow.h"
#include "chain.h"
#include "chainparams.h"
#include "primitives... | C++ | src/pow.cpp | inkvisit/sarmacoins | mit | 10,169 | 268 | codeparrot/github-code |
9b1d38f91800c8159d7ea08ebfd45406a40f26d64506cb1bfbd348347463a7e7 | //
// Copyright (c) 2008-2019 the Urho3D project.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, m... | C++ | Source/Urho3D/Graphics/Direct3D11/D3D11VertexDeclaration.cpp | PredatorMF/Urho3D | mit | 4,478 | 119 | codeparrot/github-code |
7c7faf08444431fa3ccd3134d157d1bf3aae098854e56437d95ad182210a0939 |
<!DOCTYPE html><html lang='en' class=''>
<head><script src='//production-assets.codepen.io/assets/editor/live/console_runner-079c09a0e3b9ff743e39ee2d5637b9216b3545af0de366d4b9aad9dc87e26bfd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/events_runner-73716630c22bbc8cff4bd0f07b135f00a0bdc5d... | HTML | portfolio/copylee/UIKit/materialcards_flexbox.html | matikbird/matikbird.github.io | mit | 55,852 | 2,663 | codeparrot/github-code |
11aaaba705a46b358bc93eff3d29bd762af0417df87eb8e7fd53948e0c96630d | /*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2016 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides control sap.ui.layout.form.FormLayout.
sap.ui.define(['jquery.sap.global', 'sap/ui/core/Control', './Form', 'sap/ui/layou... | JavaScript | public/lib/openui5/resources/sap/ui/layout/form/FormLayout-dbg.js | yomboprime/YomboServer | mit | 27,021 | 892 | codeparrot/github-code |
54776600ffe88c15883b4a83c9fb46efde7fa6d0bd2642e8b43f8ae27fb47560 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>sudoku: 1 m 28 s</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="sty... | HTML | clean/Linux-x86_64-4.05.0-2.0.6/released/8.8.0/sudoku/8.8.0.html | coq-bench/coq-bench.github.io | mit | 9,832 | 189 | codeparrot/github-code |
9c6234db45a25d8601016c282043a58718489e6bdb6b5a7b2336e4645b811d58 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>infotheo: 21 m 36 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" re... | HTML | clean/Linux-x86_64-4.10.2-2.0.6/released/8.11.2/infotheo/0.0.7.html | coq-bench/coq-bench.github.io | mit | 41,520 | 448 | codeparrot/github-code |
cf85ad421dc5bda2422a92149764f76b2283c7440810216639d77fc47e3a63d3 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>maths: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel... | HTML | clean/Linux-x86_64-4.10.0-2.0.6/released/8.12.0/maths/8.10.0.html | coq-bench/coq-bench.github.io | mit | 6,719 | 170 | codeparrot/github-code |
ec2e52d7eead4735e88ecd9db0e6db8211678f6bce14d10a3ec61b7dd52f7b1c | module Pushr
module Daemon
class Logger
def initialize(options)
@options = options
if @options[:foreground]
STDOUT.sync = true
@logger = ::Logger.new(STDOUT)
else
log_dir = File.join(Dir.pwd, 'log')
FileUtils.mkdir_p(log_dir)
log = F... | Ruby | lib/pushr/daemon/logger.rb | 9to5/pushr-core | mit | 1,421 | 58 | codeparrot/github-code |
48c95ffafc35c62338ec8545a44d87094ced5cf9d4a8ef0487183cf2e467125b | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>free-groups: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min... | HTML | clean/Linux-x86_64-4.03.0-2.0.5/released/8.7.0/free-groups/8.8.0.html | coq-bench/coq-bench.github.io | mit | 7,029 | 167 | codeparrot/github-code |
467560483485f703ea54c7d5da57a1c859a95c379eb267d8837e60100611b104 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>compcert: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.cs... | HTML | clean/Linux-x86_64-4.02.3-2.0.6/released/8.7.2/compcert/3.8.html | coq-bench/coq-bench.github.io | mit | 8,395 | 193 | codeparrot/github-code |
d4c1c9fb4982f612a9b146e1b0b00617edc73a12edb49a609814f5dfcb8e96c4 | function Trees(from_x, to_x, from_y, to_y, min_height) {
this.positions_1 = [];
this.positions_2 = [];
this.positions_3 = [];
this.initBuffers = function() {
for(var i = 0; i < 10; i++) {
var yLimits = field.getYPositionFromX(points,from_x + (to_x-from_x)/20.0 + i * (to_x-from_x)/10.0);
... | JavaScript | js/Trees.js | nicomoccagatta/SistemasGraficos | mit | 7,457 | 155 | codeparrot/github-code |
98324224082a2181c955ead5751c5831359b829c4448046cc3b98700a0b11e6a | <?php
/**
* @package WordPress
* @subpackage discoverorg
*/
/*
--------------------------------------------
Theme Support Settings
--------------------------------------------
*/
// Featured Image Settings
if ( function_exists( 'add_theme_support' ) ) { add_theme_support( 'post-thumbnails' ); }
... | PHP | functions.php | nateude/skeleton | mit | 9,919 | 352 | codeparrot/github-code |
f2f3280d1dcd04b529416115bc9ca48f3c09895c386e17443d925eea4442c40a | package com.nsqre.insquare.Utilities.Photo.helpers;
import android.annotation.TargetApi;
import android.content.ContentUris;
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import android.os.Build;
import android.os.Environment;
import android.provider.DocumentsContract;
import ... | Java | inSquareAndroid/app/src/main/java/com/nsqre/insquare/Utilities/Photo/helpers/DocumentHelper.java | regini/inSquare | mit | 5,636 | 161 | codeparrot/github-code |
cf82a1eb24cc1533cc8482bcf3378614dcb386170ed479c46f91db3fb4229ce4 | <?php
/* @WebProfiler/Collector/twig.html.twig */
class __TwigTemplate_f78a2c84537bd7fe7732b3a38d7a63550fe506c999619cee69e7f7ac162ac055 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
// line 1
$this->parent = $this->loadTemplate(... | PHP | app/cache/dev/twig/f/7/f78a2c84537bd7fe7732b3a38d7a63550fe506c999619cee69e7f7ac162ac055.php | DinosaureMuffin/formation | mit | 11,952 | 230 | codeparrot/github-code |
021de81e9e2bc5294905866a957a2dae0fa01123b8a1039a18eba11e1a6f47d8 | // Copyright (c) 2011-2013 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef GUIUTIL_H
#define GUIUTIL_H
#include <QEvent>
#include <QHeaderView>
#include <QMessageBox>
#include <QObject>
#inclu... | C | src/qt/guiutil.h | LIMX-SUPPORT/LimecoinX | mit | 7,693 | 207 | codeparrot/github-code |
e7a9d21375e3df40a7163cc1cb1d962d5117ff89ec6ad83be281a5e236e2492b | // Kyle Riedemann
// CS 2433
// Homework 7 Problem 1
#include <iostream>
#include <string>
using namespace std;
// constants for types
const string& TypeDeepDish = "Deep Dish";
const string& TypeHandTossed = "Hand Tossed";
const string& TypePan = "Pan";
// constants for size
const string& SizeSmall = "Small";
const ... | C++ | hw7_problem1.cpp | kylealanr/CS2433 | mit | 2,496 | 120 | codeparrot/github-code |
a17d585faf20e05c08924880a955487d34bf957bd1000568ec79fe114d77af8e | import test from 'ava'
import React from 'react'
import { shallow, mount } from 'enzyme'
import toJson from 'enzyme-to-json'
import TreeManager from '../tree-manager'
import Tree from './index'
test.skip('renders tree nodes when search mode is on', t => {
const tree = [
{
label: 'item1',
value: 'valu... | JavaScript | src/tree/index.test.js | dowjones/react-dropdown-tree-select | mit | 3,315 | 128 | codeparrot/github-code |
53380df9b189bb0835be71eae1c0cca10c94bbf0f9a8988d4c058e5e0b4192fc | using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Globalization;
using System.Text;
using NArrange.Core;
namespace MetX.Scripts
{
public class NArrangeTestLogger : ILogger
{
#region Fields
/// <summary>
/// Logged events collection.
... | C# | MetX/MetX.Standard/Scripts/NArrangeTestLogger.cs | willrawls/xlg | mit | 5,315 | 201 | codeparrot/github-code |
9257c59a5ef207882a4a1c98826a3e4d6121a72c8ce953c0c2dbd10f8ecbe34f | package com.pyramidacceptors.ptalk.api.event;
import com.pyramidacceptors.ptalk.api.MessageType;
import org.junit.Test;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.*;
/**
* Created by cory on 4/8/2016.
*/
public class SerialDataEventTest {
@Test
public void testGetMessageTyp... | Java | src/test/java/com/pyramidacceptors/ptalk/api/event/SerialDataEventTest.java | PyramidTechnologies/jPyramid-RS-232 | mit | 1,107 | 35 | codeparrot/github-code |
d1591af92357557740239bfa9ad24a9fcff3db91a3aa80c20834901ccab4a2ff | /**
* 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 type {AnyNativeEvent} from 'legacy-events/PluginModuleType';
import type {Fiber} from 'react-reconciler/src/Rea... | JavaScript | packages/react-native-renderer/src/ReactFabricEventEmitter.js | chicoxyzzy/react | mit | 2,924 | 101 | codeparrot/github-code |
1b7a0bf2b4e9b1d92a75b1c5d9521e36e8c517c4fc90750a986b73ea1fcf1767 | import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { AuthGuard } from '../authentication/services/auth-guard.service';
import { pages } from './pages';
const appRoutes: Routes = [
{ path: '', pathMatch: 'full', redirectTo: 'home' },
{ path: 'login', compone... | TypeScript | public/app/routing/app-routing.module.ts | NoFearForBeers/BeerMe | mit | 1,775 | 39 | codeparrot/github-code |
84e382c0be81bdf4976dcefaaace76620896391c617b36300bbd6c872c3c0709 | package Noosphere;
use strict;
# get classification info in string *and* hasharray form
#
sub classinfo {
my $tbl = shift;
my $id = shift;
# first get the classification..
#
my @class = getclass($tbl,$id);
if (not defined $class[0]) {
return '';
}
my @output;
foreach my $c (@class) {
push @output, "... | Perl | lib/Noosphere/Classification.pm | holtzermann17/Noosphere | mit | 8,427 | 407 | codeparrot/github-code |
1cc66c696b657869a0d058a466b04ecae24de486a91b95719698a2ee4e74efc5 | /*!
* Native JavaScript for Bootstrap Collapse v4.0.5 (https://thednp.github.io/bootstrap.native/)
* Copyright 2015-2021 © dnp_theme
* Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE)
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'un... | JavaScript | ajax/libs/bootstrap.native/4.0.5/components/collapse-native.js | cdnjs/cdnjs | mit | 11,735 | 392 | codeparrot/github-code |
281aaf982f44ee2a492c24ac02a45af0b26496684daa3ead8e0393b7a82373b8 | package sgl
package android
package analytics
import sgl.analytics._
import com.google.firebase.analytics.{FirebaseAnalytics => UFirebaseAnalytics, _}
import _root_.android.app.Activity
import _root_.android.os.Bundle
import _root_.android.provider.Settings
/** An AnalyticsProvider using Firebase Analytics for Andr... | Scala | android/firebase/src/main/scala/sgl/android/analytics/AndroidFirebaseAnalyticsProvider.scala | regb/scala-game-library | mit | 7,609 | 165 | codeparrot/github-code |
43871d64e1da6425f4757dc81da5a863057ea987e341423b6b2f6fb847205c49 | namespace StudentsAndWorkers
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using StudentsAndWorkers.Models;
public class StartUp
{
public static void Main()
{
// students
va... | C# | C#OOP/04.OOPPrinciples_Part1/Problem02_StudentsAndWorkers/StartUp.cs | DanielaPopova/TelerikAcademy_Homeworks | mit | 2,560 | 78 | codeparrot/github-code |
8093722c8659336ab85265df880823feaf70900398d16ab75cc191fb2da28651 | 'use strict';
const _ = require('lodash');
module.exports = function($ql){
/**
* @name $left
* @memberOf String
* @isfunction
* @mysql true
*
* @summary Specifies the `LEFT()` function.
*
* @param {Property} identifier Specifies original column, table, ... name.
* @param {String} alias Specifie... | JavaScript | lib/ansi/operators/functions.js | planetarydev/json-sql-builder | mit | 6,508 | 289 | codeparrot/github-code |
2e8d8c6a64d97907fa1aaa7dfac6b6d7068a51f20fcad9c8f9f217172f2f148f | /*
* Copyright © 1997 C. Scott Ananian
* Copyright © 1998-2000 Bruce Kalk
* Copyright © 2001 Stefan Gmeiner
* Copyright © 2002 Linuxcare Inc. David Kennedy
* Copyright © 2003 Fred Hucht <fred@thp.Uni-Duisburg.de>
*
* Permission to use, copy, modify, distribute, and sell this software
* and its documentation for... | C | src/ps2comm.c | kelnos/xf86-input-synaptics | mit | 18,267 | 672 | codeparrot/github-code |
db5ee680f05446d417541de2bfb6caaf8122d8ff01099406e4841b09b8759d2e | function HistogramPlot(plotModel, histogramSpec, experiment) {
this.renderPlot = function () {
var height = plotModel.height;
var width = plotModel.width;
var xRightPadding = 65;
var yBottomPadding = 10;
var yTopPadding = 30;
var yHeight = height - yTopPadding;
... | JavaScript | app/components/view/histogramPlot.js | jjiacyrus/d3WithAngular | mit | 2,136 | 62 | codeparrot/github-code |
47b80ddbefd84f9c79737d1fc208af31db642bc118f06966795924a3278dc546 | 'use strict';
const validator = require('email-validator');
const validators = {
v: {
required: true,
// termPattern: /^v$/,
description: 'Protocol version',
validate(term, value) {
if (value !== 'DMARC1') {
throw new Error(`Invalid DMARC version: '${value}'`);
}
}
},
fo: {
// termPattern: /^... | JavaScript | index.js | softvu/dmarc-parse | mit | 6,627 | 217 | codeparrot/github-code |
c321dc03a68f7ab2cc8b63c0d84768e3bed31eeb499da732dda0112687938129 | <?php
/**
* The MIT License
*
* Copyright (c) 2007-2013, Samurai Framework Project, All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, includin... | PHP | src/Samurai/Component/Migration/Phinx/Config.php | samurai-fw/samurai | mit | 4,213 | 126 | codeparrot/github-code |
de67ca172a827a5b1070b69fa3022ec92028ff7246e2c9bafa840f20ba78b550 | <?php
namespace BoxUK\Routing\Input;
class StandardRequest implements Request {
/**
* Returns the request method as specified by METHOD_* consts
*
* @return string
*/
public function getMethod() {
return $_SERVER[ 'REQUEST_METHOD' ];
}
/**
* Sets a ... | PHP | lib/BoxUK/Routing/Input/StandardRequest.php | boxuk/boxuk-routing | mit | 866 | 47 | codeparrot/github-code |
faef35f90ad6d90c4a788401eebb04aea7aff144e1c6dcd8b03695c0a7d02dbe | /*jshint esversion:6 */
const request = require('request-promise-native');
var mysql = require('promise-mysql');
var sql_config = require('../../sql_config');
var db = mysql.createPool(sql_config.db);
function estimate(config) {
/*{
route: 160,
is_reverse: true,
from: 8,
to: 7,
... | JavaScript | Testing/gMap_estimation/GMap_estimation.js | AlexLeoTW/myBus_Server | mit | 2,309 | 60 | codeparrot/github-code |
4ee898a1ef275a8ec12e5edab8f65835faac4cab0c2742e8de3943f991793392 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head><title></title></head>
<body>
<h2>Normalisation / Illumina - lumi pipeline</h2>
<h3>Description</h3>
<p>Normalizes Illumina arrays to remove systematic bias using the lumi method.</p>
<h3>Parameters</h3>
<ul>
<li>Organism (empty... | HTML | manual/norm-illumina-lumi.html | chipster/chipster-tools | mit | 2,392 | 56 | codeparrot/github-code |
e1204eb45ba7cdbd329ff6cf8797a7fe2688cb0334fe63a69569e421b2674a55 | using System;
using System.Collections.Generic;
using System.IO;
namespace Boxologic.CSharp
{
public class BoxItem
{
public int Boxx { get; set; }
public int Boxy { get; set; }
public int Boxz { get; set; }
public int N { get; set; }
}
public class St_instance
{
... | C# | Sources/Test/Boxologic.CSharp/BoxItem.cs | treeDiM/StackBuilder | mit | 5,873 | 208 | codeparrot/github-code |
d2cc7694ff1e66f09c69094dda8a07f1eaaf8b0965ec984fdd5cd71cad5896f0 | package dataStructures
import scala.annotation.tailrec
import scala.collection.mutable.ListBuffer
sealed trait List[+A]
case object Nil extends List[Nothing]
case class Cons[+A](head: A, tail: List[A]) extends List[A]
object List {
def foldRight[A, B](l: List[A], z: B)(f: (A, B) => B): B = l match {
case Ni... | Scala | src/dataStructures/List.scala | ashokgelal/FPScala | mit | 4,744 | 181 | codeparrot/github-code |
904ab87ae5b5840354949cd6478d03c435ff730b776b245b7ef860543f554291 | #include "../dialogs.h"
#include <assert.h>
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
int Dialog_open(char* path)
{
// TODO: Implement
(void)path;
assert(0);
return 0;
}
/////////////////////////////////////////////////////... | C++ | src/prodbg/ui/bgfx/linux/dialogs.cpp | RobertoMalatesta/ProDBG | mit | 957 | 46 | codeparrot/github-code |
10f6f57c3614b1eaf07d381da51d69b5e5ec2c7f7190f4128c055d198eaed172 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
require_once APPPATH . 'controllers/api/Restdata.php';
require_once APPPATH . '/libraries/REST_Controller.php';
use Firebase\JWT\JWT;
use Restserver\Libraries\REST_Controller;
class CampaignLocation extends Restdata {
function __construct($confi... | PHP | application/controllers/CampaignLocation.php | fiqrinh/indomie-app | mit | 1,158 | 42 | codeparrot/github-code |
ca1f0e2f4113a72772cf284704a9612b0ab5608d3c63a4cabeea48528ee892c2 |
package ru.lanbilling.webservice.wsdl;
import javax.annotation.Generated;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <... | Java | src/main/java/ru/lanbilling/webservice/wsdl/InsupdRadiusAttr.java | kanonirov/lanb-client | mit | 2,763 | 92 | codeparrot/github-code |
f7f2c349c7967e853003e894495b55a684b8d16580e4ab4fc2a5f0b1bd02ceef | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class ColorBar(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "scattergeo.marker"
_path_str = "scattergeo.marker.colorbar"
_valid_props = {
"bgco... | Python | packages/python/plotly/plotly/graph_objs/scattergeo/marker/_colorbar.py | plotly/plotly.py | mit | 78,668 | 2,171 | codeparrot/github-code |
003b971c20e8c646a704547c41289d834ce958666419ab2f01e066586487d3c0 | class PinkShirt
##
# Nokogiri::Sax builds output as a long stream.
# Output collects all the writes as an array, and then joins them when required
# you can also lock it for writing.
#
# = Usage
#
# stream = Output.new
# stream << 'goods... '
# stream.inspect #=> ['goods... ']
# stream.lock... | Ruby | lib/pink_shirt/output.rb | graemeworthy/pink_shirt | mit | 1,172 | 67 | codeparrot/github-code |
6112faca3e0fbbbb76cf641f4207b2d4a85dec064b89bd226c00af26784a2932 | /*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwar... | Java | src/main/java/org/spongepowered/common/event/SpongeCommonEventFactory.java | SpongePowered/SpongeCommon | mit | 99,325 | 1,822 | codeparrot/github-code |
f610e7bde5ec263027c4daa7dbe22dc6623ec933e79055d3a6828dd36265e36d | //-----------------------------------------------------------------------
// <copyright file="SettingsPane.cs" company="In The Hand Ltd">
// Copyright © 2013-16 In The Hand Ltd. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
using System;
using Syste... | C# | Source/InTheHand/UI/ApplicationSettings/SettingsPane.cs | inthehand/charming | mit | 8,950 | 236 | codeparrot/github-code |
18616dadcf8129221d0b73a36a12bc94a602cb4d619aaca02692d97eb5612752 | <?php
include("includes/vars.php");
include("includes/functions.php");
include("international.php");
// The HTML parser doesn't like the icecast page very much
// Their HTML is obviously crap :)
// So we need to disable error reporting for this page otherwise people using php development settings
// on their apache se... | PHP | static/rompr/iceScraper.php | luiscarlosgph/nas | mit | 4,567 | 115 | codeparrot/github-code |
afe59b01d5bf89b2dd2ad93aebf9c490b56adc7187601d38199791de425ed8b6 | using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CsharpLibrary.ExtensionMethods
{
public static class IntExtensions
{
public static bool IsOdd(this int integer)
{
return integer % 2 == 1;
}
public static bool IsEven(this int integer... | C# | Solution_CsharpLibrary/CsharpLibrary/ExtensionMethods/IntExtensions.cs | developersheffield/csharp-library | mit | 2,358 | 82 | codeparrot/github-code |
84067c0700e18a0e295ba8ad346cf5db63274b13e056b4bdefc259711993f70e | var app = angular.module('myApp', []);
// We define a factory the socket service is instantiated only once, and
// thus act as a singleton for the scope of the application
app.factory('socket', function ($rootScope) {
var socket = io.connect('http://localhost:5000/');
return {
on: function (eventName, callback... | JavaScript | app.js | reshadn/talkie-app | mit | 1,206 | 46 | codeparrot/github-code |
dabc5eb819359fec89722293bf61e86489f1648c39ea101778ab5a54daec0c0a | module RailsAdmin
###
# Features to admin and process the notebooks.
module NotebooksHelper
include RailsAdmin::RestApi::Notebooks
def notebooks_jupyter_url(notebook=nil)
login = Account.current || User.current
key, token = login ? [login.key, login.token] : ['-', '-']
ns, model_name = ... | Ruby | app/helpers/rails_admin/notebooks_helper.rb | macarci/cenit | mit | 1,086 | 38 | codeparrot/github-code |
13c62233c52a79c538ca217b287c43b3fbdecaf76fc95b898124d6c5b7f29c34 | package week8
object Generators {
trait Generator[+T] {
self =>
def generate: T
def flatMap[S](f: T => Generator[S]): Generator[S] = new Generator[S] {
def generate = f(self.generate).generate
}
def map[S](f: T => S): Generator[S] = new Generator[S] {
def generate = f(self.generat... | Scala | src/mooc/progfunsamples/generators/Generators.scala | mitochon/hexercise | mit | 2,490 | 91 | codeparrot/github-code |
125bdee8e076917855b06de890b38c599956649e94f5eebe88af6e0a88a44645 | class TrieNode
{
public:
bool is_word;
vector<TrieNode*> children;
TrieNode(bool is_word = false)
{
this->is_word = is_word;
children.resize(26);
}
~TrieNode()
{
for (auto child : children)
delete child;
}
};
class Trie
{
private:
TrieN... | C++ | Cpp/208_implement_Trie/solution.cpp | zszyellow/leetcode | mit | 1,593 | 73 | codeparrot/github-code |
e545fa99d9d6e27bb9af51fcff5505ca84810f9abd9af51dabc3ca6477414f46 | // RHHardwareSPI2.h
// Author: Mike McCauley (mikem@airspayce.com)
// Copyright (C) 2011 Mike McCauley
// Contributed by Joanna Rutkowska
// $Id: RHHardwareSPI2.cpp,v 1.16 2016/07/07 00:02:53 mikem Exp mikem $
// This is a copy of the standard SPI node, that is hopefully setup to work on those processors
// who have SP... | C++ | Musical_Instruments_2017_2018/Musical_Glove/OLD CODE/gloves/Gloves_R/teensy/avr/libraries/RadioHead/RHHardwareSP12.cpp | Pocketart/typhoonclawvex | mit | 4,418 | 167 | codeparrot/github-code |
572be90dd6b248bc490761febb2c5a6925889428bd03aba2952f993580108197 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>coquelicot: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.... | HTML | clean/Linux-x86_64-4.02.3-2.0.6/released/8.8.0/coquelicot/2.0.1.html | coq-bench/coq-bench.github.io | mit | 7,198 | 167 | codeparrot/github-code |
d4cf852f73cc615dc35a2112195b24c47e51c330dd1a46aaddec38811c33a487 | package main
import (
"encoding/hex"
"fmt"
"math/big"
"strings"
"github.com/cznic/mathutil"
)
func factor(A, N *big.Int) (*big.Int, *big.Int) {
t2 := big.NewInt(0)
t2.Exp(A, big.NewInt(2), nil)
t2.Sub(t2, N)
if t2.Cmp(big.NewInt(0)) <= 0 {
return big.NewInt(0), big.NewInt(0)
}
x := mathutil.SqrtBig(t2)... | GO | crypto/week6.go | MariaRigaki/golang-stuff | mit | 2,511 | 93 | codeparrot/github-code |
ff90cb614e9735cedb6caf14e05a9a17b76352ca6187dfb0ce7480d5170640d2 | {% block top_of_page %}{% endblock %}
<!DOCTYPE html>
<!--[if lt IE 9]><html class="lte-ie8" lang="{{ html_lang|default('en') }}"><![endif]-->
<!--[if gt IE 8]><!--><html lang="{{ html_lang|default('en') }}"><!--<![endif]-->
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>... | HTML | govuk_modules/govuk_template_jinja/views/layouts/govuk_template.html | tyfairclough/das-aml-beta-ui | mit | 6,315 | 133 | codeparrot/github-code |
df41e2395f32af8681771e2631f0dab58f20b2651f2b2e7716a121f22f311bd7 | <?php
// src/AppBundle/Entity/Answer.php
namespace AppBundle\Entity;
use Symfony\Component\Validator\Constraints as Assert;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="answer")
*/
class Answer {
/**
* @ORM\Column(type="integer", name="id")
* @ORM\Id
* @ORM\GeneratedVa... | PHP | src/AppBundle/Entity/Answer.php | monorilaci/symfonyfelveteli | mit | 2,048 | 85 | codeparrot/github-code |
2c2205b5308bcc1707d5d13e383cb1706921bde0ed57baa296d02cc8c850cb3b | local AddonName, Addon = ...
local Dominos = LibStub('AceAddon-3.0'):GetAddon('Dominos')
local ConfigVersion = 1
local Config = {}
function Config:Init()
local db = Dominos.db:RegisterNamespace('ProgressBars', self:GetDefaults())
if db.global.version ~= ConfigVersion then
db.global.version = ConfigVersion
end
... | Lua | config.lua | tullamods/Dominos_Progress | mit | 1,042 | 54 | codeparrot/github-code |
707cefedfb840a05520bd29ae7abb589fcb2457231405ea01ce0817382eb0079 |
def to_s
buf = []
buf << self.titles.first.to_s unless self.titles.blank?
buf << self.years.all.collect{|year| year.to_s}.join(', ') unless self.years.blank?
buf << self.identifications.all.collect{|ident| ident.to_s}.join(', ') unless self.identifications.blank?
buf << self.genres.all.collect{|g... | Ruby | examples/umm-core/methods/app/models/media_object.rb | royw/spec2merb | mit | 3,058 | 63 | codeparrot/github-code |
d8831227e086652258e620b3b7763c68eaae7295a4d13c735fdd78ba23cbe601 | using System;
using System.Linq;
using SafeBeaches.Models;
namespace SafeBeaches.Data
{
public interface IBeachesRepository
{
IQueryable<Beach> GetBeaches();
IQueryable<Reading> GetReadingsForBeach( int beachId );
bool Save();
bool AddReading( Reading reading );
}
pub... | C# | SafeBeaches/Data/IBeachesRepository.cs | rprouse/SafeBeaches | mit | 1,542 | 67 | codeparrot/github-code |
d13a0c7c96ba12a224605e9880b47325546f43701dd30905f91d61cca871a2e1 | import * as dotenv from 'dotenv';
dotenv.config();
import { SlackBot } from './src/slackbot';
// import { CloseIssueCommand } from './src/commands/issues/close.command';
import { GetIssueInfoCommand } from './src/commands/issues/get-info.command';
import { GrantPermissionsCommand } from './src/commands/admin/grant-per... | TypeScript | index.ts | delasteve/cling | mit | 2,351 | 44 | codeparrot/github-code |
37bb7b25abf30ba56970846b0cfd09ba811299756deb56c9ffb31ddd0f6c148b | using UnityEngine;
using System.Collections;
using MiddleVR_Unity3D;
namespace Modelisation
{
/// <summary>
/// Base class of any object.
/// </summary>
public abstract class SceneObject : MonoBehaviour
{
/// <summary>
/// Name that the element will tell to the GameManager. Used for scenarii.
/// </su... | C# | Kerpape/Assets/Scripts/Interractions/SceneObject.cs | nhurman/avalon | mit | 1,191 | 49 | codeparrot/github-code |
ae6a35d87786f038b650171f8e77238a109f0912c9ac1513d98e4c905808fbb4 | using BGC.Core;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BGC.Data.Relational
{
[Table(nameof(ComposerArticle) + "_" + nameof(MediaTy... | C# | BGC.Data/Relational/ArticleMediaRelationalDto.cs | blattodephobia/BG_Composers | mit | 849 | 32 | codeparrot/github-code |
50028f6781b30578c8f5396bbf27aafd0fcc2e9afcdf195fd848263b3f513fc5 | package net.glider.src.network.packets;
import io.netty.buffer.ByteBuf;
import net.glider.src.gui.ContainerModificator;
import net.glider.src.gui.ContainerRemover;
import net.glider.src.gui.GuiModificator;
import net.glider.src.gui.GuiRemover;
import net.minecraft.client.Minecraft;
import cpw.mods.fml.common.network.s... | Java | src/main/java/net/glider/src/network/packets/CloseScreenPacket.java | kremnev8/AdvancedSpaceStaion-mod | mit | 1,239 | 48 | codeparrot/github-code |
c3e2a64247159d5ad036f063c4d9515f12d3296404a0ed22e62366a270f4ef3c | using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
using Microsoft.AspNet.Identity.Owin;
using Microsoft.Owin.Security;
using Microsoft.Owin.Security.Co... | C# | SimBit/solution/dotnet/SimBitConsulting/SimBitConsulting/Providers/ApplicationOAuthProvider.cs | tazmanrising/IntiotgAngular | mit | 3,544 | 98 | codeparrot/github-code |
93b0ebce5f665999d1f9a4f4a6e383cc61c71a7350286166b7be43b73d5432f5 | [CmdletBinding(DefaultParameterSetName='default')]
param
(
[Parameter(Mandatory=$true,Position=0,ParameterSetName='Explicit')]
[uri]
$Uri,
[Parameter(Mandatory=$true,Position=1,ParameterSetName='Explicit')]
[version]
$Version
)
Set-StrictMode -Version Latest
[Net.ServicePointManag... | PowerShell | build.ps1 | jcasale/vim-msi | mit | 4,294 | 175 | codeparrot/github-code |
3aabdef0a552816a0eca12bda5a18e8a5352acbe6f9907bef0ef5b339785cc8b | #!/usr/bin/env python
# A filename is expected as the first command-line argument.
import sys
import json
import os
from ComedyParser import ComedyParser
def askInput(parser):
# ask for the user input
userinput = raw_input('Command: ')
# Quit command
if userinput == "quit":
# stop the pa... | Python | ComedyParser/playComedy.py | minoskt/ComedyParser | mit | 2,429 | 121 | codeparrot/github-code |
6f4fa4fc096157d6071b0aef2c99d31d9122a1f93b12be5c2b4643bdd0b50d61 | class GroupsController < ApplicationController
layout "application"
before_filter :authenticate_user!, except: [:index, :show, :about]
before_filter :set_group, except: [:index, :new, :create]
load_and_authorize_resource
respond_to :html, :json
# GET - Group Index
def index
@groups = Group.scoped.w... | Ruby | app/controllers/groups_controller.rb | TxSSC/SayWhat | mit | 2,672 | 99 | codeparrot/github-code |
d4a7ed4aadd560299928ac90c60702d313a806084b77eedd33f56e7003ed07f4 | var DataSource = require('../libs/datasource');
var moment = require('moment');
moment.locale('zh-TW');
module.exports = function(robot) {
var types;
var source = new DataSource();
function first(res, match) {
var date = moment(match[1], 'YYYY/MM/DD');
if (date.isValid()) {
var username = res.enve... | JavaScript | scripts/dayoff.js | vacationhq/hubot-dayoff | mit | 1,954 | 73 | codeparrot/github-code |
c624bbbb57d000d98c71f40373100092046dd679769be22052bbf2643b4b4db2 | /* mtest6.c - memory-mapped database tester/toy */
/*
* Copyright 2011-2020 Howard Chu, Symas Corp.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted only as authorized by the OpenLDAP
* Public License.
*
* A copy of this license is avail... | C | dependencies/lmdb/libraries/liblmdb/mtest6.c | Venemo/node-lmdb | mit | 3,953 | 142 | codeparrot/github-code |
575c900d23b46aa171787562d2fec9272f58bac08adf17abcc81fb5e5219a1d5 | <?php
# Access the operation to do with a section
if (isset($_POST['action'])) {
# Get the functions file
require_once "Functions/Data_Functions.php";
$functions = new Functions();
# Store the action in a variable
$action = $_POST['action'];
# Perform the action
switch ($action) {
... | PHP | web_services/Sections.php | Oliver21/BibliotecaFranciscana | mit | 3,110 | 133 | codeparrot/github-code |
5d892732502a87fde83cbd25b6af9ac537c6859e43974270e4b88e694d861877 | var express = require('express');
var app = express();
var Ractive = require('ractive');
var fs = require('fs');
var rr = require('ractive-render');
app.engine('html', rr.renderFile);
app.use(express.static(__dirname + '/'));
process.on('uncaughtException', function (err) {
console.error("[Inside 'uncaughtException... | JavaScript | server.js | ErikAndreas/pjax-ractivejs | mit | 1,513 | 62 | codeparrot/github-code |
1c2f8e8115272043986cbae722a04d7749ab8f1a8e3d6f421c9405095d6a9b55 | define(function (require, exports, module) {
'use strict';
function getSpanVal(td, name) {
return parseInt(td.getAttribute(name) || 1, 10);
}
/*global tinymce:true */
return function(editor) {
/**
* Fixed caret movement around tables on WebKit.
*/
function moveWebKitSelection() {
function eventH... | JavaScript | app/templates/fed/src/app/common/editor/plugins/table/quirks.js | zb188/generator-java-webapp | mit | 10,971 | 352 | codeparrot/github-code |
b15ce10ae3d46b1113eac94f420a79e604d82e9489158285bf38a06e1def694d | /*
toiletfs: the one-at-a-time filesystem.
Copyright (C) 2012 Scott J. Goldman <scottjg@github.com>
This program can be distributed under the terms of the MIT License.
See the file COPYING.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <sys/reso... | C | test/potty-training.c | scottjg/toiletfs | mit | 2,127 | 127 | codeparrot/github-code |
a615c68206703710a730c18d7968884aa7bce8189a558d04844218cca6412e14 | // Inspired by
// http://fluxible.io/tutorials/routing.html
// https://github.com/yahoo/flux-examples/tree/master/react-router
require('babel/register');
var express = require('express');
var expressState = require('express-state');
var debug = require('debug')('Server');
var React = require('react');
var Router = req... | JavaScript | server.js | claus/fluid | mit | 1,718 | 57 | codeparrot/github-code |
f9d497eb890166d59767855d0cce9e58221f89859ba8595a4399c10e578ec05c | <?php
namespace Kunstmaan\AdminNodeBundle\Event;
use Knp\Menu\FactoryInterface;
use Symfony\Component\EventDispatcher\Event;
use Kunstmaan\AdminNodeBundle\Entity\NodeVersion;
use Knp\Menu\ItemInterface;
/**
* ConfigureActionMenuEvent
*/
class ConfigureActionMenuEvent extends Event
{
/**
* @var \Knp\Menu\... | PHP | Event/ConfigureActionMenuEvent.php | KunstmaanLegacy/KunstmaanAdminNodeBundle | mit | 1,470 | 70 | codeparrot/github-code |
1d360e51a653bf2b540f61e5079dc6b8ca8c297f3efb8c12928b83ad4bddfc8e | <?php
/* TwigBundle:Exception:error.html.twig */
class __TwigTemplate_1ff570834b1ead6ffa77e05c4f31cc05 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
);
}
protected ... | PHP | app/cache/prod/twig/1f/f5/70834b1ead6ffa77e05c4f31cc05.php | Nico8287/escuela | mit | 1,728 | 62 | codeparrot/github-code |
6a3b5d2a1320ff8220481e7055c905d363c827d167aa8f9eb5b77326184e6b9b | //define all the functions to refactor (either native or marked up)
var funcDefs = {
jquery: {
default: {
convert: function (node) {
node[0] = 'call';
},
chainable: true
},
//convert attr function to use setAttribute
attr: {
... | JavaScript | funcs.js | darrenmce/node-dejquery | mit | 2,165 | 79 | codeparrot/github-code |
8e4c90d8563c2aaa1c2f17dbb312f365608125adb1303f1fdb987905f466d792 | import React from 'react';
import ScoreList from './ScoreList';
export default class ScoreCategory extends React.Component {
constructor(props) {
super(props);
}
render() {
const listNodes = this.props.category.lists.map((list, listIndex) => {
return (
<ScoreLis... | JavaScript | src/ScoreCategory.js | rndstr/wilks | mit | 1,200 | 38 | codeparrot/github-code |
ae7e0adc5a0eea48620bfdd9c1d432ec11952b2568274bdd893fac91dbe1a8b3 | /*-------------------------------------------------------------------------
*
* Copyright (c) 2009-2011, PostgreSQL Global Development Group
*
*
*-------------------------------------------------------------------------
*/
/**
* Bulk data copy for PostgreSQL
*/
package org.postgresql.copy;
import java.io.IOExceptio... | Java | postgres-odbc-server/src/main/java/org/postgresql/copy/CopyManager.java | devsunny/app-galleries | mit | 8,217 | 210 | codeparrot/github-code |
d037b548129fd2cb1ebe87ff512218dbccc7a7a18d5601158ea4cfed95fc4865 | // @flow
import { connect } from 'react-redux';
import ReplaceFilterComponent from '../Components/ReplaceFilterComponent';
import { filterUpdateSearchString, filterToggleCaseInsensitive, filterUpdateDescription, filterToggleGlobal, filterToggleMultiline, filterUpdateReplaceString, filterToggleEnabled } from '../Store/... | JavaScript | src/Containers/ReplaceFilterContainer.js | drbonzo/regexp_flow_react | mit | 2,282 | 50 | codeparrot/github-code |
05206052c035d079965350f3a4b70811d8b6dc5e032397413f055765cddf5df0 | package de.danoeh.antennapod.core.gpoddernet.model;
import android.support.v4.util.ArrayMap;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.Map;
/**
* Object returned by {@link de.danoeh.antennapod.core.gpoddernet.GpodnetService} in uploadChanges method.
*/
... | Java | core/src/main/java/de/danoeh/antennapod/core/gpoddernet/model/GpodnetUploadChangesResponse.java | mfietz/AntennaPod | mit | 1,930 | 58 | codeparrot/github-code |
b42c34ac37419338efa3dd31d8b4016646750453f69d3689d5a14f0c9e5e8f58 | /* LICENSE
MIT License
Copyright (c) [2017] [August E. Woerner]
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++ | str8.cpp | Ahhgust/STRaitRazor | mit | 47,208 | 1,548 | codeparrot/github-code |
73e6ba6cdfe01627105dd021cbf2d5497c47153d3cd5454c8f179be2307c64fe | import * as Jungle from "../../../jungle";
import * as D from "../../../construction/domain"
const j = Jungle.j
/**
* Test categories
- domain extension
- provided domain expectation
- basis designation in subdomain
- definition of domains.
*/
describe('Domains', function(){
describe('functio... | TypeScript | ts_src/test/specs/construct/domainSpec.ts | Space-Ed/junglejs | mit | 11,015 | 384 | codeparrot/github-code |
cf2619f0f1eefcd53dba6b0f773d821d22d144f30004db4e12eb4996600e4d84 | import { useCookie, useFeedback } from "."
import { INTERACTION_COOKIE_NAME } from "../constants"
import pkgJSON from "../package.json"
const useTrackEvent = () => {
const { setCookie, getCookie } = useCookie()
const { shouldAskForFeedback, checkForFeedback } = useFeedback()
const track = async ({ eventType, org... | JavaScript | packages/gatsby-plugin-gatsby-cloud/src/utils/trackEvent.js | gatsbyjs/gatsby | mit | 1,350 | 49 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.