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 |
|---|---|---|---|---|---|---|---|---|
06018605fa92dfeedd317c19a19df56b80b1d281b3602b7d79d31f1dd2ae598e | <?php
namespace PandaGroup\StoreLocator\Controller\Adminhtml\Index;
use Magento\Framework\Exception\LocalizedException;
class Save extends \Magento\Backend\App\Action
{
/** @var \Magento\Framework\App\Request\DataPersistorInterface */
protected $dataPersistor;
/** @var \PandaGroup\StoreLocator\Model\Reg... | PHP | Controller/Adminhtml/Index/Save.php | pandagrouppl/StoreLocator | mit | 6,561 | 157 | codeparrot/github-code |
938a6daa4ed59cf4e8d20f4c929767694bb55becb139de5baec63457a8a23e01 | import * as _ from 'lodash';
import * as AWS from 'aws-sdk';
import * as config from './config';
export interface Secrets {
REDDIT_CLIENT_ID: string;
REDDIT_CLIENT_TOKEN: string;
REDDIT_USERNAME: string;
REDDIT_PASSWORD: string;
STEAM_API_KEY: string;
}
export async function resolve(): Promise<Secrets> {
... | TypeScript | src/lib/secrets.ts | jmoseley/new-game-recommender | mit | 875 | 35 | codeparrot/github-code |
d3880f5abdeb1a36c53ee2e6166dcfcf62ac0182cc41af9ed7c70b004fbe6e58 | #!/bin/bash
cd "$(dirname "${BASH_SOURCE[0]}")" \
&& . "utils.sh"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
tohome() {
sourceFile="$(cd .. && pwd)/$1"
targetFile="$HOME/.$(printf "%s" "$1" | sed "s/.*\/\(.*\)/\1/g")"
if [ ! -e "$targetFile" ] || $skipQuestion... | Shell | src/os/create_symbolic_links.sh | EDiLD/dotfiles | mit | 3,605 | 135 | codeparrot/github-code |
61c5e9b6fed6c60d3bf7dca6dd6c51c4887f04d73ed827f8a1f26cfcc15d4820 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Login Page - Photon Admin Panel Theme</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<link rel="shortcut icon" href="http://photonui.orangehilldev.com/css/css_comp... | HTML | lib/assets/css/css_compiled/@{photonImagePath}plugins/elrte/css/css_compiled/js/css/css_compiled/js/plugins/prettify/prettify.js.html | user-tony/photon-rails | mit | 15,573 | 183 | codeparrot/github-code |
63fba921de88ac0d4b5d12d0355493fb43642483e4fa7c8cfa7f0c160847d548 | #include "Common.h"
#include "CacheAdapters/Redis.h"
#include "SSEConfig.h"
#include "SSEEvent.h"
#include <string>
#include <vector>
#include <iostream>
#include <boost/asio/io_service.hpp>
#include <boost/asio/ip/address.hpp>
using namespace std;
extern int stop;
Redis::Redis(const string key, const ChannelConfig&... | C++ | src/CacheAdapters/Redis.cpp | sgulseth/ssehub | mit | 5,225 | 205 | codeparrot/github-code |
c694bc65cc3fdeadb15feb2b9dbe73fd7610df8bd26b2df5337b6233c514661b | <?php
class kml_TimeSpan extends kml_TimePrimitive {
protected $tagName = 'TimeSpan';
var $begin;
var $end;
/* Constructor */
function kml_TimeSpan($begin = null, $end = null) {
parent::kml_TimePrimitive();
if ($begin !== null) $this->set_begin($begin);
if ($end !== null... | PHP | libs/php-kml/kml_TimeSpan.php | lifelink1987/old.life-link.org | mit | 845 | 40 | codeparrot/github-code |
d63e0b693dd10d262e2873af41ddbd0bf7f40173b6918e6e87a30dcf336f96f0 | $(function(){
$("#addCompanyForm").validate({
rules: {
name : {
required : true
},
email: {
required: true,
email: true
},
url : {
required : true,
url : true
}
},
messages: {
name : {
required : "Please enter your company name"
},
url : {
required : "P... | JavaScript | public/js/companies.js | CREA-KO/NPoint.Api | mit | 3,124 | 148 | codeparrot/github-code |
1644e2874226bc53dd0e6aab7674f271951b71c9dc5323913107fef84a28b8fc | package com.github.aureliano.evtbridge.converter;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.util.HashMap;
import java.util.Map;
import org.junit.Test;
import com.github.aureliano.evtbridge.core.config.EventCollecto... | Java | evt-bridge-converter/src/test/java/com/github/aureliano/evtbridge/converter/ConfigurationConverterTest.java | aureliano/da-mihi-logs | mit | 1,411 | 48 | codeparrot/github-code |
2cbe7da40839ea2af9714539be7c97fff0191211e4ed47bede34af587d4f3f10 | <HTML><HEAD>
<TITLE>Review for Can't Hardly Wait (1998)</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0127723">Can't Hardly Wait (1998)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?Jos... | HTML | data science/machine_learning_for_the_web/chapter_4/movie/12977.html | xianjunzhengbackup/code | mit | 3,894 | 66 | codeparrot/github-code |
525ea5f2e689e84489e279fad5a612bc8ef6305b7f100a4af7d39c4dd226c023 | <?php
namespace Kendo\Dataviz\UI;
class DiagramShapeConnectorDefaultsStroke extends \Kendo\SerializableObject {
//>> Properties
/**
* Defines the stroke color.
* @param string $value
* @return \Kendo\Dataviz\UI\DiagramShapeConnectorDefaultsStroke
*/
public function color($value) {
ret... | PHP | wrappers/php/lib/Kendo/Dataviz/UI/DiagramShapeConnectorDefaultsStroke.php | deviffy/laravel-kendo-ui | mit | 909 | 39 | codeparrot/github-code |
87d9997207e6227800d57b83c62cef4b935a4562abf8b80e0371588d07c99049 | # reads uniprot core file and generates core features
from features_helpers import score_differences
def build_uniprot_to_index_to_core(sable_db_obj):
uniprot_to_index_to_core = {}
for line in sable_db_obj:
tokens = line.split()
try:
# PARSING ID
prot = tokens[0]
... | Python | features/uniprot_core.py | wonjunetai/pulse | mit | 2,151 | 59 | codeparrot/github-code |
5ed68286f74b788ecfbd3758502b6ba8042bd5436a9b404f611fd3bbd15b8c95 | // Copyright (c) 2014-2015 The AsturCoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "asturcoinamountfield.h"
#include "asturcoinunits.h"
#include "guiconstants.h"
#include "qvaluecombobox.h"
#inclu... | C++ | src/qt/asturcoinamountfield.cpp | KaTXi/ASTC | mit | 4,947 | 187 | codeparrot/github-code |
a011b2dd0730cc41204213064e246b6ef86aaff1836cba8d54c9be0f862c15e2 | using System.Collections.Generic;
using System.Linq;
namespace ComputerAlgebra
{
public static class Combinatorics
{
/// <summary>
/// Enumerate the permutations of x.
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="n"></param>
/// <returns>... | C# | ComputerAlgebra/Utils/Combinatorics.cs | dsharlet/ComputerAlgebra | mit | 1,701 | 57 | codeparrot/github-code |
30c11333c1ec2dde0f55d94cb0298d567553c1acb7047e7d41bf8bb9bd2a4a27 | package main
import (
"bytes"
"os"
"os/exec"
)
func panicOn(err error) {
if err != nil {
panic(err)
}
}
func FileExists(name string) bool {
fi, err := os.Stat(name)
if err != nil {
return false
}
if fi.IsDir() {
return false
}
return true
}
func DirExists(name string) bool {
fi, err := os.Stat(nam... | GO | util.go | glycerine/geist | mit | 707 | 47 | codeparrot/github-code |
1691cec2ccd516dda1f14866e67db900660ed294fb7da105d4fb33d8054759d1 | /*
* Copyright (c) 2016 Oiri Project
*
* This software is distributed under an MIT-style license.
* See LICENSE file for more information.
*/
package com.github.kimikage.oiri.svg;
import org.w3c.dom.svg.SVGMatrix;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Tran... | Java | app/src/main/java/com/github/kimikage/oiri/svg/Transform.java | kimikage/oiri | mit | 2,233 | 66 | codeparrot/github-code |
1541f2590a44517e6ed4260d6ed0bdc4674314a50d58c64714a4b3d00799de74 | using Microsoft.VisualStudio.TestTools.UnitTesting;
using Moq;
using PholioVisualisation.DataAccess;
using PholioVisualisation.DataConstruction;
using PholioVisualisation.Export;
using PholioVisualisation.Export.FileBuilder.Containers;
using PholioVisualisation.Export.FileBuilder.SupportModels;
using PholioVisualisati... | C# | PholioVisualisationWS/ExportTest/FileBuilder/Writers/CsvBuilderIndicatorDataWriterTest.cs | PublicHealthEngland/fingertips-open | mit | 5,842 | 111 | codeparrot/github-code |
e8427424cf402c423592615784c6259775e88fb88a6ff9697cc4ef7b263461dd |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>W29820_text</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div style="margin-left: auto; margin-right: auto; width: 800px; overflow: hidden;">
... | HTML | ocr_extracted/W29820_text/page29.html | datamade/elpc_bakken | mit | 6,584 | 117 | codeparrot/github-code |
eade452c1f91ff681b23aa156460d3db8440bc7f09ee89368e2349fbc63024c3 | using System;
using System.Text;
using System.Web;
using System.Web.Http.Description;
namespace WebApiAuthSample.Areas.HelpPage
{
public static class ApiDescriptionExtensions
{
/// <summary>
/// Generates an URI-friendly ID for the <see cref="ApiDescription"/>. E.g. "Get-Values-id_name" instead... | C# | WebApiAuthSample/Areas/HelpPage/ApiDescriptionExtensions.cs | asezer/WebApiAuthSample | mit | 1,506 | 39 | codeparrot/github-code |
9fad97957b0a8a7f0fe893d0111e254196bf4399fc41551056df1cf8d9df95e6 | /*
* Copyright (c) Tomohiro Iizuka. All rights reserved.
* Licensed under the MIT license.
*/
#ifndef SYSTEM_HASHEDRAWARRAY_H_
#define SYSTEM_HASHEDRAWARRAY_H_
namespace alinous {
template <typename T, typename H, typename C>
class HashedRawArray {
public:
void* operator new(size_t size) throw() {
ret... | C | lib/src_lib/system/HashedRawArray.h | alinous-core/alinous-elastic-db | mit | 3,731 | 167 | codeparrot/github-code |
0341a5aee91929898ca105da0dfdf25ce23b87a331a7c9e54131626a60d3d89d | <!DOCTYPE html>
<html lang="ko-kr">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="generator" content="Hugo 0.15" />
<title>#Ludens</title>
<meta property=... | HTML | tags/1461/index.html | ludens/ludens.kr | mit | 10,336 | 229 | codeparrot/github-code |
ea3cbbeb91f8161c1a7ecb7d8c3049b1fbc603e34098bdbebd454fb29f5dd5fc | package main
import (
"context"
"fmt"
"log"
"net/http"
"strconv"
"strings"
"time"
"github.com/PuerkitoBio/goquery"
)
const (
userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36"
timeLayout = "02/01/2006"
storagePath = ".local/... | GO | notion-yt/fund.go | igungor/cmd | mit | 2,429 | 120 | codeparrot/github-code |
d7f1224c12188afe06f73b3a35578e4ed53e33303ecb630732e52f5329c76ee0 | <?php
namespace Rudolf\Modules\Modules\One\Admin;
use Rudolf\Component\Alerts\Alert;
use Rudolf\Component\Alerts\AlertsCollection;
use Rudolf\Component\Modules\ConfigEditor;
use Rudolf\Framework\Controller\AdminController;
class SwitchController extends AdminController
{
private $blacklist = [
'Dashboard... | PHP | src/module/Modules/One/Admin/SwitchController.php | rudolfcms/rudolf | mit | 1,899 | 69 | codeparrot/github-code |
f472868d972fe50384ace8e367fa7bf07cac6411f9705e3d1d840bc3c99df599 | #!/usr/bin/env python3
# Copyright (c) 2015-2018 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 block processing."""
import copy
import struct
import time
from test_framework.blocktools import ... | Python | test/functional/feature_block.py | Bushstar/UFO-Project | mit | 60,904 | 1,323 | codeparrot/github-code |
3943a03f4f139253df97d8e93a9342706134eb2f0a4735c3861c52c0fc15f066 | @extends("layout")
@section("content")
<script type="text/javascript" src="{{ URL("js/interactive.js") }}">
</script>
<section id="wrapper">
@if ($imagenes->isEmpty())
<section id="photos-empty">
<p class="center">
Todavía no hay imágenes
</p>
</section>
@else
<section id... | PHP | resources/views/user.blade.php | iamas92/piclike | mit | 5,025 | 134 | codeparrot/github-code |
766f75335bb2ff902dc45b2feb42e64333b6aab837d83da9f032a8c62f5c042b | 'use strict';
angular.module('mgcrea.ngStrap.dropdown', ['mgcrea.ngStrap.tooltip'])
.provider('$dropdown', function() {
var defaults = this.defaults = {
animation: 'am-fade',
prefixClass: 'dropdown',
prefixEvent: 'dropdown',
placement: 'bottom-left',
template: 'dropdown/dropdown.t... | JavaScript | app/bower_components/angular-strap/src/dropdown/dropdown.js | avizuber/karma-web | mit | 4,859 | 151 | codeparrot/github-code |
a52f876cb1364a9148060d85e91f3cd716c8f79185376156848dc4ddc60798c5 | // Copyright 2015 XLGAMES Inc.
//
// Distributed under the MIT License (See
// accompanying file "LICENSE" or the website
// http://www.opensource.org/licenses/mit-license.php)
#pragma once
#include "ConversionCore.h" // for ObjectGuid
#include "../RenderCore/Assets/TransformationCommands.h"
#include "../RenderCore/... | C | ColladaConversion/NascentCommandStream.h | xlgames-inc/XLE | mit | 8,991 | 232 | codeparrot/github-code |
8adb464a73b961c3584bf7d27cb4cf2ddae36fca445f745b19403e32c6b550da | #ifndef MYY_DATA_SECTION_H
#define MYY_DATA_SECTION_H 1
#include <stdint.h>
struct data_section_status {
unsigned int allocated;
void * address;
};
struct data_symbol {
uint32_t id;
uint32_t align;
uint32_t size;
uint8_t * name;
uint8_t * data;
};
struct data_section {
struct data_symbol * symbols;
uint32_t... | C | sections/data.h | Miouyouyou/early-assembler-prototype | mit | 2,255 | 92 | codeparrot/github-code |
c68ca4a913756e3e96b8d680e7ee35c1dd750a1c3cfd2e83ce4ca43e6b4e953e |
// This contains the module definition factory function, application state,
// events, and the router.
this.jda = {
// break up logical components of code into modules.
module: function()
{
// Internal module cache.
var modules = {};
// Create a new module reference scaffold or loa... | JavaScript | web/js/app/jda.js | corinnecurcie/Japan-Digital-Archive | mit | 15,904 | 485 | codeparrot/github-code |
4b963a627d5384a4933ec6ea7646f395bf41f50e1cf777411143864933aca0ca | #!/bin/sh
set -e
echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}"
install_framework()
{
if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then
local source="${BUILT_PRO... | Shell | Example/Pods/Target Support Files/Pods-PopupDialog_Example/Pods-PopupDialog_Example-frameworks.sh | monadis/PopupDialog | mit | 3,621 | 92 | codeparrot/github-code |
02c8f1dc6b26a953bb245ee7d3c9732e8748cc515c7dfc86657a01dfb1c54669 | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters.Binary;
using System.Threading;
using System.Runtime.Remoting.Lifetime;
using System.Windows.Forms;
using System.Drawing;
using System.Linq;
using... | C# | NavHardwareControl/Controller.cs | jstammers/EDMSuite | mit | 35,814 | 1,015 | codeparrot/github-code |
54d7b48fd85ce463e386d6fbb6d8412e9ddefdff083fc41fb533dda7b55d291b | //**********************************************
//Singleton Texture Manager class
//Written by Ben English
//benjamin.english@oit.edu
//
//For use with OpenGL and the FreeImage library
//**********************************************
#ifndef TextureManager_H
#define TextureManager_H
#include <windows.h>
... | C | earthView/TextureManager.h | kypp/earth-viewer | mit | 1,524 | 53 | codeparrot/github-code |
e9b34bd4cea9eb2f7e9c5578b2d57dd55a35a422049952b5f500d27264a3b78c | package at.ac.tuwien.big.xmlintelledit.xmltext.ecoretransform.impl;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
... | Java | xmlintelledit/xmltext/src/main/java/at/ac/tuwien/big/xmlintelledit/xmltext/ecoretransform/impl/TransformatorStructure.java | patrickneubauer/XMLIntellEdit | mit | 62,281 | 1,596 | codeparrot/github-code |
0cc1189c7a82b3d070acedf2e2ae3312778a0a49ebd7da675365c5f396b1247f |
#ifndef __UIDICTIONARY_H
#define __UIDICTIONARY_H
#include <System/Tools/Array.h>
#include <System/Tools/HashHelper.h>
namespace suic
{
template<typename TKey, typename TValue, typename Comparer>
class Dictionary1
{
public:
Dictionary1()
{
Initialize(0);
}
Dictionary1(int capacity)
... | C | include/suic/System/Tools/Dictionary.h | china20/MPFUI | mit | 6,080 | 258 | codeparrot/github-code |
b6e7f413577bc157092b1bd67fb495955aaa706d30cb5a9c46774c4da3571c25 | // 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/trafficgraphwidget.h>
#include <interfaces/node.h>
#include <qt/clientmodel.h>
#include <QColor>
#include <QPa... | C++ | src/qt/trafficgraphwidget.cpp | cculianu/bitcoin-abc | mit | 5,102 | 179 | codeparrot/github-code |
e7561c0a694a3035c8fb223709e1d36e1db01bd98512ff9d07ebc4f2d7eb7edd |
<!DOCTYPE html>
<html xmlns:msxsl="urn:schemas-microsoft-com:xslt">
<head>
<meta content="en-us" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-16" http-equiv="Content-Type" />
<title _locid="PortabilityAnalysis0">.NET Portability Report</title>
<style>
... | HTML | Reports/rx/rx-interfaces.2.2.5/System.Reactive.Interfaces-portable-net45%2Bwinrt45%2Bwp8%2Bwpa81.html | kuhlenh/port-to-core | mit | 9,667 | 240 | codeparrot/github-code |
01367274051761a8b4243788dc722f310cb3221f3d01cf1325d0a03d3000acc8 | using System;
using NUnit.Framework;
namespace MyApp.Repository.Testing
{
internal class InMemoryRepositoryTests
{
//================================================================================
[Test]
public void Standard()
{
var repo... | C# | MyApp.Repository/Testing/Tests.cs | antanta/MyApp | mit | 2,755 | 73 | codeparrot/github-code |
c776b6dc88372270f596170800999e00908739391b894f2f1892b22e037fa90c | import {dispatchFakeEvent} from '../../cdk/testing/private';
import {ChangeDetectionStrategy, Component, DebugElement, Type} from '@angular/core';
import {
ComponentFixture,
fakeAsync,
flush,
flushMicrotasks,
TestBed,
} from '@angular/core/testing';
import {ThemePalette} from '@angular/material-experimental/m... | TypeScript | src/material-experimental/mdc-checkbox/checkbox.spec.ts | josephperrott/material2 | mit | 43,213 | 1,177 | codeparrot/github-code |
863b6387e7d1c969b419278e622927357d76bd910a902cc8d4a9597846bbb424 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>io: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="s... | HTML | clean/Linux-x86_64-4.10.1-2.0.6/released/8.11.2/io/3.3.0.html | coq-bench/coq-bench.github.io | mit | 6,311 | 164 | codeparrot/github-code |
e28be4a4041c8394fdbd271ca072b6ed10b30c0e32e8e21831d831936e479b76 |
#ifndef TELEMETRY_H
#define TELEMETRY_H
#include <Arduino.h>
#include <HardwareSerial.h>
#include "common.h"
#include "queuelist.h"
static const unsigned WHEEL_EVENT_MIN_INTERVAL = 5;
class Telemetry
{
public:
Telemetry(HardwareSerial port, unsigned speed);
void serialPolling();
void wheelEvent(rot_one l... | C | sensor-hub/telemetry.h | mox17/teensy-car-sensors | mit | 3,304 | 98 | codeparrot/github-code |
4cecf296587d4adc556650c7aed96588fc614aa66d853fb2e7d65508e470353a | package com.nicolas.coding.common.photopick;
import android.content.Context;
import android.database.Cursor;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CheckBox;
import android.widget.CursorAdapter;
import android.widget.ImageView;
import com.nos... | Java | app/src/main/java/com/nicolas/coding/common/photopick/GridPhotoAdapter.java | liwangadd/Coding | mit | 3,262 | 97 | codeparrot/github-code |
783e4835b3aa6273c50550b8421fcba774d31bb0f472e2a13518219383543fb2 | package com.sien.aimanager;
import android.content.Intent;
import android.os.Handler;
import com.sien.aimanager.services.MonitorServices;
import com.sien.lib.baseapp.BaseApplication;
import com.sien.lib.databmob.config.DatappConfig;
import cn.bmob.v3.Bmob;
import cn.bmob.v3.BmobConfig;
/**
* @author sien
* @date ... | Java | app/src/main/java/com/sien/aimanager/MainApp.java | eity0323/aimanager | mit | 1,449 | 57 | codeparrot/github-code |
006e5a51762657fb088414b0803c350c09d3069a68bd2bbc7c65201f318c26f6 | #include <opencv2/opencv.hpp>
#include <iostream>
using namespace cv;
using namespace std;
int ratio = 3; //per canny's suggestion
int canny_thresh = 12; //starts at 12, this is what we will be changing though
int hough_thresh = 27;
int angle_tracker = 20;
int max_thresh = 255;//max for both thresh variable
doub... | C++ | src/vision/src/tuners/gate_tuner.cpp | robotics-at-maryland/qubo | mit | 6,479 | 257 | codeparrot/github-code |
da3fc6d30e475deead8e928326a67a4f33c3dc9c2e6a058746acefa116e0aa1b | const ircFramework = require('irc-framework')
const store = require('../store')
const attachEvents = require('./attachEvents')
const connect = connection => {
const state = store.getState()
let ircClient = state.ircClients[connection.id]
if (!ircClient) {
ircClient = new ircFramework.Client({
nick: ... | JavaScript | backend/src/irc/connect.js | daGrevis/msks | mit | 982 | 40 | codeparrot/github-code |
a6224939a3f826538528de2050f101a30241b4743f1c0d4987b09774a96ab0ae | const assert = require('assert')
const { unparse } = require('uuid-parse')
const supertest = require('supertest')
const createApp = require('../app')
const { createSetup, getAuthPassword } = require('./lib')
const { createPlayer, createKick } = require('./fixtures')
describe('Query player kick', () => {
let setup
... | JavaScript | server/test/playerKick.query.test.js | BanManagement/BanManager-WebUI | mit | 1,807 | 71 | codeparrot/github-code |
1a0f982590ce114de193b4a322bf36b5e3561f17ddf6c1c12c7c6bdbc572ce1a | <?php
namespace Application\Success\CoreBundle\Twig;
//use Symfony\Bundle\FrameworkBundle\Templating\EngineInterface;
class EventoExtension extends \Twig_Extension {
//private $container;
private $repository_evento;
private $templating;
public function __construct($repository_evento, $templating) {
//$... | PHP | src/Application/Success/CoreBundle/Twig/EventoExtension.php | chugas/symfony-without-vendors-2.1.9 | mit | 1,397 | 42 | codeparrot/github-code |
3208d35e0c56219827d5452cea776edae69aba19370956173026132d19b0bb59 | import os
import webapp2
from actions import cronActions
from views import views
import secrets
SECS_PER_WEEK = 60 * 60 * 24 * 7
# Enable ctypes -> Jinja2 tracebacks
PRODUCTION_MODE = not os.environ.get(
'SERVER_SOFTWARE', 'Development').startswith('Development')
ROOT_DIRECTORY = os.path.dirname(__file__)
if no... | Python | actionpotential.py | onejgordon/action-potential | mit | 1,267 | 43 | codeparrot/github-code |
9f845a268f848ff848cb9dc6844a648b46fa4cdff39e18f7542e199332cca01b | <?php
class SV_WarningImprovements_XenForo_ControllerPublic_Member extends XFCP_SV_WarningImprovements_XenForo_ControllerPublic_Member
{
public function actionMember()
{
SV_WarningImprovements_Globals::$warning_user_id = $this->_input->filterSingle('user_id', XenForo_Input::UINT);
$response = ... | PHP | upload/library/SV/WarningImprovements/XenForo/ControllerPublic/Member.php | Xon/XenForo-WarningImprovements | mit | 7,086 | 180 | codeparrot/github-code |
ba8a609a5859cf591e81b80228f58c3d591a9cc236d64a73a202f9383a881dca | # this is the interface for `python archiver`
import archiver
import appdirs
import os
import sys
import pickle
import json
from archiver.archiver import Archiver
from archiver.parser import parseArgs
args = parseArgs()
from edit import edit
# ==============================================
print args
# TODO: s... | Python | __main__.py | jdthorpe/archiver | mit | 13,106 | 458 | codeparrot/github-code |
bb27761daf5a17c8ffd6f1c7f216ac3afe2055c53ed1c945fe57aa410d274c2b | /*
* The MIT License
*
* Copyright (c) 2016 Marcelo "Ataxexe" Guimarães <ataxexe@devnull.tools>
*
* 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, includ... | Java | main/boteco/src/test/java/tools/devnull/boteco/predicates/TargetPredicateTest.java | devnull-tools/boteco | mit | 2,604 | 67 | codeparrot/github-code |
bef4cbf2e8c02387829a8de6baabd24cacc29072385555bd86295e2cbdc2ad0b | using System;
using System.Collections.Generic;
using System.Text;
using Icy.Util;
namespace Icy.Database.Query
{
public class JoinClauseOptions{
public object first;
public string operator1;
public object second;
public string boolean;
public bool where;
public bo... | C# | Icy/Database/Query/JoinClause.cs | mattiamanzati/Icy | mit | 8,198 | 275 | codeparrot/github-code |
d1403da2a516124c6801ef020c13fd815f04670f64df4ed46353fc9ec2ba6f37 | /********************************************************************
Software License Agreement:
The software supplied herewith by Microchip Technology Incorporated
(the "Company") for its PIC(R) Microcontroller is intended and
supplied to you, the Company's customer, for use solely and
exclusively on Microchip ... | C | v2014_07_22/apps/usb/host/hid_bridgeHost/firmware/src/system_config/exp16/pic24fj64gb002_pim/system.c | timwuu/PK3SP24 | mit | 6,072 | 121 | codeparrot/github-code |
3bc8e270b370a9fb452b7563070347ba6c9ed2178fe0e875c2edf981ea65e69a |
.styleSans721.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 721.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans12000<enum PANGO_WEIGHT_NORMAL ... | CSS | ocr_extracted/W24890_text/style.css | datamade/elpc_bakken | mit | 6,596 | 265 | codeparrot/github-code |
bf78f283066a8e7f22c118fe2b2dca10baa44693c9658bc13b7a0e4f39ab3903 | 'use strict';
var run = require('./helpers').runMochaJSON;
var assert = require('assert');
describe('.only()', function() {
describe('bdd', function() {
it('should run only tests that marked as `only`', function(done) {
run('options/only/bdd.fixture.js', ['--ui', 'bdd'], function(err, res) {
if (e... | JavaScript | test/integration/only.spec.js | boneskull/mocha | mit | 1,531 | 58 | codeparrot/github-code |
ff06fe50bb5b6bae9091fdc2e135f6603e3b0808f1039087eb13fa7d9adb37eb | package com.rrajath.orange;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
public class MainActivity extends ActionBarActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInst... | Java | app/src/main/java/com/rrajath/orange/MainActivity.java | rrajath/Orange | mit | 1,118 | 40 | codeparrot/github-code |
a49c160c805aa6b0305ce967161e632889baf4493d7e2d2b4cef01423816cf62 | <HTML><HEAD>
<TITLE>Review for Ed Wood (1994)</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0109707">Ed Wood (1994)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?Eric+Grossman">Eric Gro... | HTML | data science/machine_learning_for_the_web/chapter_4/movie/2932.html | xianjunzhengbackup/code | mit | 5,831 | 94 | codeparrot/github-code |
78972b917033c8b13731aadf6d6c04a2416b29523b8b994e4b331a6b6fff3c16 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>lemma-overloading: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.... | HTML | clean/Linux-x86_64-4.05.0-2.0.6/released/8.7.1+2/lemma-overloading/8.11.0.html | coq-bench/coq-bench.github.io | mit | 7,895 | 186 | codeparrot/github-code |
ac89f918c58d3f74af6a1c812d5671baf7a05e8994443d48200c5cc766d57b6d | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ltac2: 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.05.0-2.0.6/released/8.10.2/ltac2/0.1.html | coq-bench/coq-bench.github.io | mit | 6,587 | 164 | codeparrot/github-code |
3a64464a9a1b9784f5883e228a7ae36effd2086bd0e2a3ea79d93e175e96b5f4 | // ===========================================================================
//
// PUBLIC DOMAIN NOTICE
// Agricultural Research Service
// United States Department of Agriculture
//
// This software/database is a "United States Government Work" unde... | C++ | hopskip/src/semimarkov-0.1/partial_core_matrix.hpp | adolgert/hop-skip-bite | mit | 7,601 | 208 | codeparrot/github-code |
4d2e9cf8f4b3a6d55d78baf8c0bc495b15216328f20fa244b3a72ab971235164 | var fans=require('../../modules/blog/fans');
var User=require('../../modules/resume/user');
var async = require('asyncawait/async');
var await = require('asyncawait/await');
module.exports=(async(function(method,req,res){
var result;
if(method==='get'){
}
else if(method==='post'){
var userId=req.session.uid;
v... | JavaScript | src/main/server/controler/blog/fans.js | weijiafen/antBlog | mit | 1,760 | 104 | codeparrot/github-code |
37d1a088beea3e160a24637f6ee31f6a55a215397ecd07bccb331cced8dc9d71 | <?php
namespace Guardian\User\Caller;
use Assert\Assertion;
use Guardian\Caller\HasLoginToken;
use Guardian\User\Caller;
/**
* Simple user caller
*
* @author Márk Sági-Kazár <mark.sagikazar@gmail.com>
*/
class User implements Caller, HasLoginToken, \ArrayAccess
{
/**
* @var string|integer
*/
pr... | PHP | src/Caller/User.php | guardianphp/user | mit | 2,636 | 135 | codeparrot/github-code |
4fd7b681f77261d37d38e25b0d30795b3bae759276c79ec5ce16cccf7df8381b | """
.. module:: mlpy.auxiliary.datastructs
:platform: Unix, Windows
:synopsis: Provides data structure implementations.
.. moduleauthor:: Astrid Jackson <ajackson@eecs.ucf.edu>
"""
from __future__ import division, print_function, absolute_import
import heapq
import numpy as np
from abc import ABCMeta, abstract... | Python | mlpy/auxiliary/datastructs.py | evenmarbles/mlpy | mit | 10,818 | 516 | codeparrot/github-code |
aa12c25599d06ac13a76ac2752e61c6b2789098a5c0fd145187af1b85d9dc55e | <?php
/**
* Created by PhpStorm.
* User: gseidel
* Date: 16.10.18
* Time: 23:45
*/
namespace Enhavo\Bundle\FormBundle\Form\Type;
use Enhavo\Bundle\FormBundle\Form\Helper\EntityTreeChoiceBuilder;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\... | PHP | src/Enhavo/Bundle/FormBundle/Form/Type/EntityTreeType.php | npakai/enhavo | mit | 1,622 | 58 | codeparrot/github-code |
57fdb5f508be59a36dcce6222f8bd32ae357f8de107bae82c34eb57d0bc76e57 | /****************************************************************/
/* 1. IMPORTED STYLESHEETS */
/****************************************************************/
/* Import the basic setup styles */
@import url(imports/base.css);
/* Import the colour scheme */
@import url(imports/Radium_cs.css);
/**********... | CSS | PhpGedView/modules/punbb/style/Radium.css | fweber1/Annies-Ancestors | mit | 8,041 | 259 | codeparrot/github-code |
64a3303c1bf8b1ce0d2fa8c5e310a91f9e0e58789defd858418352ed799a4f32 | // @flow
import React, { Component } from 'react'
import { Helmet } from 'react-helmet'
import AlternativeMedia from './AlternativeMedia'
import ImageViewer from './ImageViewer'
import { Code, CodeBlock, Title } from '../components'
const propFn = k => {
const style = { display: 'inline-block', marginBottom: 4, ma... | JavaScript | docs/pages/CustomComponents/index.js | jossmac/react-images | mit | 4,414 | 145 | codeparrot/github-code |
d07853d6779e92e79fca9219aba4db7c35ef28dc60310bd381c8ab6778a50975 | using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.Linq;
namespace LibGit2Sharp.Core
{
/// <summary>
/// Ensure input parameters
/// </summary>
[DebuggerStepThrough]
internal static class Ensure
{
/// <summary>
///... | C# | LibGit2Sharp/Core/Ensure.cs | GeertvanHorrik/libgit2sharp | mit | 10,344 | 267 | codeparrot/github-code |
26c5f8cfc462a5e7b1510e55e5659b37e602fd515bf6d7420cb1d3c3efa71f6c | var gulp = require('gulp');
var browserify = require('browserify');
//transform jsx to js
var reactify = require('reactify');
//convert to stream
var source = require('vinyl-source-stream');
var nodemon = require('gulp-nodemon');
gulp.task('browserify', function() {
//source
browserify('./src/js/main.js')
... | JavaScript | gulpfile.js | felixcriv/react_scheduler_component | mit | 1,039 | 45 | codeparrot/github-code |
738b06417d4ffcbb7be9ff1d69ad243713bdf3a083c26234b43a56e4509b3d65 | <?php
namespace TodoListBundle\Repository;
use TodoListBundle\Entity\Todo;
use TodoListBundle\Google\Client;
use Google_Service_Tasks;
use Google_Service_Tasks_Task;
class GTaskApiTodoRepository implements ITodoRepository
{
/**
* @var Google_Service_Tasks
*/
private $taskService;
private $todoRepository;
p... | PHP | src/TodoListBundle/Repository/GTaskApiTodoRepository.php | Green92/gcTodoList | mit | 2,671 | 115 | codeparrot/github-code |
a1255c21e2806995cce4c42de1a0ca5f2e08043432d8add23074be5451cff7f1 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!-- Tell the browser to be responsive to screen width -->
<title>SI Administrasi Desa</ti... | PHP | application/views/template.php | swantara/si-administrasi-kependudukan | mit | 9,733 | 214 | codeparrot/github-code |
51a31b9d6b864a80daa4249f0b28432549e8fcaa1da106ae4d714f7a2e7b5b38 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>FSharpDeclarationListItem - F# Compiler Services</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="Microsoft Corporation, Dave Thomas... | HTML | docs/reference/microsoft-fsharp-compiler-sourcecodeservices-fsharpdeclarationlistitem.html | Jand42/FSharp.Compiler.Service | mit | 16,236 | 382 | codeparrot/github-code |
6ca2189965fc42af17e5e3799fc18d3b8730894baa442ef277aafc08dbd56c84 | ROLES = {
-- WORRIER: Close-combat specialist
worrier = {
name = "Worrier",
description = "A powerful fighter who might be\na bit too kind for their own good.",
level_cap = 20,
hp = 24,
hp_growth = 0.52,
mp = 11,
mp_growth = 0.... | Lua | tables/roles.lua | MkNiz/Love2Crawl | mit | 3,340 | 107 | codeparrot/github-code |
55db5651458b65582a332ce47997ac7460f2fa825217bf51ddbc2f8a2af79ff0 | <?php
namespace Anax\Questions;
/**
* A controller for question-related pages
*
*/
class QuestionsController implements \Anax\DI\IInjectionAware
{
use \Anax\DI\TInjectable;
public function initialize()
{
$this->questions = new \Anax\Questions\Question();
$this->questions->setDI($this->di);
... | PHP | app/src/Question/QuestionsController.php | sebastianjonasson/phpmvcprojekt | mit | 4,074 | 140 | codeparrot/github-code |
86a7514df24a262d8bb14460e076a3e2255a779723baa32a43a31d8a7a826a77 | // Copyright Johannes Falk
// example for directed percolation
// one can choose the probability in the main
// critical-value = 0.68
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <algorithm>
#include <cstdlib>
#include <vector>
#include "../xcbwin.h"
double get_rand() {
return static_cast<dou... | C++ | demo/directed_percolation.cpp | jofalk/Xcbwin | mit | 1,357 | 59 | codeparrot/github-code |
dd52a76ec13793101e0a33ef3a73c6516432089178d2c1f474c3ad20349cede2 | package ee.shy.cli;
import ee.shy.Builder;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
/**
* Class for building help text with preset format
*/
public class HelptextBuilder implements Builder<String> {
/**
* Data structure that contains command... | Java | app/src/main/java/ee/shy/cli/HelptextBuilder.java | sim642/shy | mit | 2,440 | 78 | codeparrot/github-code |
e7a79de9934c4398bc335b56ad9f12179dca312cb252f78139145ea29e185281 | package shadows;
import java.util.List;
import java.util.Map;
import org.lwjgl.opengl.GL11;
import org.lwjgl.util.vector.Matrix4f;
import org.lwjgl.util.vector.Vector2f;
import org.lwjgl.util.vector.Vector3f;
import entities.Camera;
import entities.Entity;
import entities.Light;
import entities.Player;
... | Java | src/shadows/ShadowMapMasterRenderer.java | jely2002/Walk-Simulator | mit | 7,992 | 210 | codeparrot/github-code |
289a0b5206e5318335f414b0abb6455552cf9ffa99a6c1b1c338864926178f00 | import debounce from 'debounce';
import $ from 'jquery';
const groupElementsByTop = (groups, element) => {
const top = $(element).offset().top;
groups[top] = groups[top] || [];
groups[top].push(element);
return groups;
};
const groupElementsByZero = (groups, element) => {
groups[0] = groups[0] || [];
grou... | JavaScript | src/jquery.equalHeight.js | dubbs/equal-height | mit | 1,714 | 67 | codeparrot/github-code |
834c29298109dd523f875321d870e0d724c82a9d8d042fb448e112d7b5ea3ca9 | /// <reference path="typings/tsd.d.ts" />
var plugins = {
beautylog: require("beautylog")("os"),
gulp: require("gulp"),
jade: require("gulp-jade"),
util: require("gulp-util"),
vinylFile: require("vinyl-file"),
jsonjade: require("./index.js"),
gulpInspect: require("gulp-inspect")
};
var ja... | TypeScript | ts/test.ts | pushrocks/gulp-jsonjade | mit | 1,117 | 38 | codeparrot/github-code |
a6c57872ea6a03eb38495aceccdf091d3405d125ebc99fcbe64071f48c93e889 | #include "mesh_adapt.h"
#include "mesh_adj.h"
#include "mesh_mod.h"
#include "cavity_op.h"
static void find_best_edge_split(mesh* m, split* s, ment e, ment v[2])
{
double mq;
double q;
unsigned ne;
unsigned i;
ment v_[2];
ne = simplex_ndown[e.t][EDGE];
mq = -1;
for (i = 0; i < ne; ++i) {
mesh_down(... | C | mesh_adapt.c | ibaned/tetknife | mit | 933 | 50 | codeparrot/github-code |
a3e2012eb97fde030341dec2bfcf69aaed71a30bc76a35b6e027f603a2a4d986 | // Structure to represent a proof
class ProofTree {
constructor({equation, rule, newScope=false }) {
this.equation = equation;
this.rule = rule;
this.newScope = newScope;
this.parent = null;
this.children = [];
this.isSound = !newScope;
}
isAssumption() {
return this.newScope;
}
... | JavaScript | src/js/classes/Proof/ProofTree.js | jackdeadman/Natural-Deduction-React | mit | 2,618 | 129 | codeparrot/github-code |
fe2e412086ef8b710647885ff383c3f647ee9ae0f8f1350c7acade54dfeb45f4 | package me.puras.common.controller;
import me.puras.common.domain.DomainModel;
import me.puras.common.error.BaseErrCode;
import me.puras.common.json.Response;
import me.puras.common.json.ResponseHelper;
import me.puras.common.service.CrudService;
import me.puras.common.util.ClientListSlice;
import me.puras.common.util... | Java | src/main/java/me/puras/common/controller/CrudController.java | puras/mo-common | mit | 2,669 | 85 | codeparrot/github-code |
6d931079b1d7ac4d00371b27888f52c60343ab3a02d9940f218d5a585be37a87 | <head>
<meta charset="utf-8">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
{% assign page_title = '' %}
{% if page.title == "Home" %}
{% capture page_title %}
... | HTML | _includes/head.html | Shiharoku/shiharoku.github.io | mit | 5,025 | 113 | codeparrot/github-code |
06ddaa363df0ef5d8585f3e79aa7ca794a7db74e630c63cd4dc522450617006c | using System;
using System.Diagnostics.CodeAnalysis;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using AgileSqlClub.MergeUi.DacServices;
using AgileSqlClub.MergeUi.Merge;
using AgileSqlClub.MergeUi.Metadata;
using AgileSqlClub.MergeUi.PackageP... | C# | src/AgileSqlClub.MergeUiPackage/UI/MyControl.xaml.cs | GoEddie/MergeUi | mit | 8,843 | 255 | codeparrot/github-code |
ae84cf9d9e61c7595efd66ee3b4710d62425358489e10caae7e3320557f7fade | <!DOCTYPE HTML>
<!--
Strata by HTML5 UP
html5up.net | @n33co
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<html>
<head>
<title>Leticia Wright · Kevin Li</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<... | HTML | tags/leticia-wright/index.html | lilingkai/lilingkai.github.io | mit | 6,007 | 194 | codeparrot/github-code |
0ea66550f95fc4b3cd84496d334819a59ef2abd4a4ab62acc5b5e2ebf4fcd79c | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
usi... | C# | ZAsteroids/World/HUD/HUDSheilds.cs | GearsAD/zasteroids | mit | 26,805 | 553 | codeparrot/github-code |
f2fc0419a3e23ca36ff7016176df38866945916d5c36f55324bd74b42590e23b | module Cubic
module Generator
# Config stores data needed throughout the generation process.
class Config
@settings = {}
class << self
def all
@settings
end
def [](key)
all[key] || defaults(key)
end
def root_path(path)
@set... | Ruby | lib/cubic/generators/config.rb | Scootin/cubic | mit | 1,388 | 68 | codeparrot/github-code |
4b3d153b0e6cf507c959ffdf5c50b118d9020664d795bbfcd9c0d4c49742f57c | import { HMR_PATH } from '../config/constants';
function webpackMiddleware(): object[] {
const middleware: object[] = [];
if (BalmJS.webpackCompiler) {
middleware.push(
require('webpack-dev-middleware')(
BalmJS.webpackCompiler,
Object.assign({}, BalmJS.config.server.devOptions, {
... | TypeScript | packages/balm-core/src/middlewares/webpack.ts | balmjs/balm | mit | 770 | 33 | codeparrot/github-code |
abbdf46fddc6a48607bd179fddf09968a187b4ba404477a32c04b9197eac598f | require 'RMagick'
class MemesController < ApplicationController
before_action :check_meme_destroy_permission, only: [:destroy]
before_action :check_meme_group_permissions, only: [:show]
# GET /memes
# GET /memes.json
def index
@memes = Meme.where(:group_id => nil).order("created_at DESC")
@group = n... | Ruby | app/controllers/memes_controller.rb | ignition25/memegen | mit | 5,069 | 158 | codeparrot/github-code |
b824121435acab2f8c8959ba057ef1e43719d0b18567657ff0bd1b55b80b86d9 | function mathGame(){
var game = new Phaser.Game(window.innerWidth, window.innerHeight, Phaser.auto, 'math', {
preload: onPreload,
create: onCreate,
// resize:onResize
});
WebFontConfig = {
active: function() { game.time.events.add(Phaser.Timer.SECOND, createText, this); },
google: {
fami... | JavaScript | app/assets/javascripts/math.js | JulianBoralli/klink | mit | 5,147 | 165 | codeparrot/github-code |
757ac2added504bd8e91a5e011de97730ac94e6cd2cb2e8bf2e8e70130107ebc | 'use strict';exports.__esModule = true;var _stringify = require('babel-runtime/core-js/json/stringify');var _stringify2 = _interopRequireDefault(_stringify);var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);var _possibleConstructorRetu... | JavaScript | App/user/controller/base.js | JackPu/albums | mit | 4,067 | 48 | codeparrot/github-code |
1370c9f7619e3515ff4aa50b13b16809e48ef22708dc616ce867f52bdbc1b20f | # Die Class 2: Arbitrary Symbols
# I worked on this challenge [by myself, with: ].
# I spent [#] hours on this challenge.
# Pseudocode
# Input: array of strings
# Output: random selection from the array
# Steps: initialize the die with a non-empty array
# define a method that finds the number of sides (strings in t... | Ruby | week-6/die-2/my_solution.rb | schwartztal/phase-0 | mit | 1,874 | 59 | codeparrot/github-code |
c3d104ae75a3186e3325bf58f9c3a3b749c6a0f38628874cd3c310bd0987c63a | package com.hyh.arithmetic.skills;
import android.annotation.SuppressLint;
import java.util.ArrayList;
import java.util.List;
/**
* 规划了一份需求的技能清单 req_skills,并打算从备选人员名单 people 中选出些人组成一个「必要团队」
* ( 编号为 i 的备选人员 people[i] 含有一份该备选人员掌握的技能列表)。
* 所谓「必要团队」,就是在这个团队中,对于所需求的技能列表 req_skills 中列出的每项技能,团队中至少有一名成员已经掌握。
* 我们可以用每个人的... | Java | ArithmeticDemo/src/main/java/com/hyh/arithmetic/skills/Solution4.java | EricHyh/FileDownloader | mit | 4,051 | 116 | codeparrot/github-code |
a395fb224f847a237fc974f0daae6999e339ba5886b72284d134ff3f3343111c | var mongoose = require('mongoose'),
_ = require('underscore'),
roomTokenizer = function(msg) {
var tokens = [];
tokens = tokens.concat(msg.content.split(' '));
tokens.push(msg.author);
return tokens;
};
exports.init = function(db) {
var EntitySchemaDefinition,
E... | JavaScript | service/lib/model/Message.js | vitoss/Corpo-Chat | mit | 1,286 | 55 | codeparrot/github-code |
330d8a6d195351a456d40ea36f47313f8836a7253592fe7f5921662629caa760 | import React, { PropTypes } from 'react'
import { Grid, Row, Col } from 'react-bootstrap'
import Sort from '../../components/Sort'
import ProjectFilterForm from '../../components/ProjectFilterForm'
import Search from '../../containers/Search'
import ProjectsDashboardStatContainer from '../../containers/ProjectsDashboar... | JavaScript | src/pages/ProjectsDashboard/index.js | envisioning/tdb-storybook | mit | 978 | 35 | codeparrot/github-code |
1ce37eea040bacbe0d67bd866b721bf050269eb7984bfbde93494530c4bd290b | <HTML><HEAD>
<TITLE>Review for Scream (1996)</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0117571">Scream (1996)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?Tim+Voon">Tim Voon</A></H... | HTML | data science/machine_learning_for_the_web/chapter_4/movie/8482.html | xianjunzhengbackup/code | mit | 5,818 | 119 | codeparrot/github-code |
8a8f14df3cbc3ea9bf5a690b10a4532b8ec56ebe5452e90207b0566115a78f95 | import _plotly_utils.basevalidators
class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(self, plotly_name="textfont", parent_name="scattersmith", **kwargs):
super(TextfontValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
... | Python | packages/python/plotly/plotly/validators/scattersmith/_textfont.py | plotly/plotly.py | mit | 1,869 | 47 | codeparrot/github-code |
3713dc4e63def875740224656c4b420cf12abc391c7539652734666d65e6a733 | export default function mapNodesToColumns({
children = [],
columns = 1,
dimensions = [],
} = {}) {
let nodes = []
let heights = []
if (columns === 1) {
return children
}
// use dimensions to calculate the best column for each child
if (dimensions.length && dimensions.length === children.length) ... | JavaScript | src/mapNodesToColumns.js | novascreen/react-columns | mit | 811 | 34 | codeparrot/github-code |
3cc10b3237f7218bca12809f76057d570b04a5611a4c6e69b427967bc0a7d5a6 | /**
* @fileoverview enforce or disallow capitalization of the first letter of a comment
* @author Kevin Partington
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
const... | JavaScript | lib/rules/capitalized-comments.js | Aladdin-ADD/eslint | mit | 10,861 | 312 | codeparrot/github-code |
b55d33273f3ef439a4316746a5985323300f149da81191d3de86cdd5c14a28d2 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>tree-diameter: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.m... | HTML | clean/Linux-x86_64-4.08.1-2.0.5/released/8.13.1/tree-diameter/8.6.0.html | coq-bench/coq-bench.github.io | mit | 7,168 | 166 | codeparrot/github-code |
599fa3dd505a5babba6536980699fbe1624e81bae2b7be762af9933026a066f4 | /**
* Copyright (C) 2012 - 2014 Xeiam LLC http://xeiam.com
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy,... | Java | xchange-justcoin/src/main/java/com/xeiam/xchange/justcoin/service/polling/JustcoinBasePollingService.java | habibmasuro/XChange | mit | 2,758 | 73 | codeparrot/github-code |
54ca2ec6c52c946341ce6c38cac5d7c077fc30e6ed24f1ba7371bbfd1dce1f07 | /*
* This file is part of React, licensed under the MIT License (MIT).
*
* Copyright (c) 2013 Flow Powered <https://flowpowered.com/>
* Original ReactPhysics3D C++ library by Daniel Chappuis <http://danielchappuis.ch>
* React is re-licensed with permission from ReactPhysics3D author.
*
* Permission is hereby gra... | Java | src/main/java/com/flowpowered/react/collision/narrowphase/EPA/EPAAlgorithm.java | flow/react | mit | 18,355 | 301 | codeparrot/github-code |
67a75b2d10fd7ffbd6666678818aaf32bd874b7abb09420fa70dae161568a864 | <?xml version="1.0" ?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Style-Type" content="text/css" />
<link rel="stylesheet" type="text/css" href="style.css" />
... | HTML | work/consider/algebra-0.72/doc-ja/samples-ja.html | rubyworks/stick | mit | 27,092 | 886 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.