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 |
|---|---|---|---|---|---|---|---|---|
a27b291171c12ffdc533c0c96e8eca0e79b052e66f709b9924fa7487a4e673f3 | #include "RDom.h"
#include "Util.h"
#include "IROperator.h"
#include "IRPrinter.h"
namespace Halide {
using namespace Internal;
using std::string;
using std::vector;
RVar::operator Expr() const {
if (!min().defined() || !extent().defined()) {
user_error << "Use of undefined RDom dimension: " <<
... | C++ | src/RDom.cpp | gchauras/Halide | mit | 8,892 | 290 | codeparrot/github-code |
90f033f8802c4af528c4339d7fecd331ce53f0fc1417bff55683ef35cb631321 | define(['tantaman/web/css_manip/CssManip'],
function(CassManip) {
var el = CassManip.getStyleElem({
id: 'customBackgrounds',
create: true
});
/**
* This is essentially a view class that
* render the stylesheet of background classes whenever
* new background classes are created.
*
* @param {EditorModel... | JavaScript | public/editor/bundles/app/strut.editor/CustomBgStylesheet.js | shirshendu/kine_type | mit | 957 | 41 | codeparrot/github-code |
3e24be7b7cf8032576aa8df402b7b604cd2fbe43ad8a418e7ac185604ed93fe3 | import { sp } from "@pnp/sp";
import "@pnp/sp/webs";
import "@pnp/sp/user-custom-actions";
import { ISearchQuery } from "@pnp/sp/search";
import { Web } from "@pnp/sp/webs";
export default class ApplicationCustomizersService {
/**
* fetchAllApplictionCustomizers
*/
public fetchAllApplictionCustomiz... | TypeScript | samples/react-Edit-ApplicationCustomizer/src/webparts/applicationCustomizers/service/ApplicationCustomizersService.ts | AJIXuMuK/sp-dev-fx-webparts | mit | 1,722 | 61 | codeparrot/github-code |
030c69b9953d0c0e91affcd6ce415fe04a7276901520a47093da1c8a35c8859e | /*
* (C) Copyright 2012 SAMSUNG Electronics
* Jaehoon Chung <jh80.chung@samsung.com>
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <dm.h>
#include <malloc.h>
#include <sdhci.h>
#include <fdtdec.h>
#include <linux/libfdt.h>
#include <asm/gpio.h>
#include <asm/arch/mmc.h>
#include <asm/arch/... | C | BBB-firmware/u-boot-v2018.05-rc2/drivers/mmc/s5p_sdhci.c | guileschool/BEAGLEBONE-tutorials | mit | 6,778 | 298 | codeparrot/github-code |
f29c48eafca5f19ed6900d5ec11581c5e4593ba52ee584335f79442bdcd1074e | #include "glprogram.h"
#include <gl/gl3w.h>
#include <cstdio>
bool compileStatus(GLuint shader) {
int ret;
glGetShaderiv(shader, GL_COMPILE_STATUS, &ret);
return ret;
}
bool linkStatus(GLuint program) {
int ret;
glGetProgramiv(program, GL_LINK_STATUS, &ret);
return ret;
}
bool compileShader(GLuint handle, GLenu... | C++ | hellogl/glprogram.cpp | lmurmann/hellogl | mit | 1,692 | 61 | codeparrot/github-code |
e715fa3e71e05d7dac40a766acedb3cb73962fd2a5c4bd8a64165079f2866eb2 | #include <climits>
#include <cstdlib>
#include <cstring>
#include "orderline.h"
#include "../src/schema/conversion.h"
using namespace std;
void OrderlineStore::add(string elements[10]) {
add_instance(atoi(elements[0].c_str()),
atoi(elements[1].c_str()),
atoi(elements[2].c_str()),
atoi(elements[3].c_str(... | C++ | gen/orderline.cpp | fwalch/imlab | mit | 3,313 | 87 | codeparrot/github-code |
6e970f49857f5e7d346628a07af09f69fa70eaa033aaff03c7a729904c28fe3c | <html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>That's Life</title>
<style>
body { margin: 0;
background-color: #f0f0f0;
}
canvas { width: 100%; height: 100% }
#ex1Slider .slider-selection {
background: #009900;
}
#ex1Slider {
margin-le... | HTML | life.html | esscbee/thats-life | mit | 13,757 | 426 | codeparrot/github-code |
64ce094ad9e47f052b96069de96acd25ee2257f04cdb79b13ffc6b38ac7aa32b |
<?php
require "header.php";
require "menu.php";
session_start();
require "config.php";
require_once __DIR__ . '/src/Facebook/autoload.php';
$fb = new Facebook\Facebook([
'app_id' => APP_ID,
'app_secret' => APP_SECRET,
'default_graph_version' => APP_VERSION
]);
$helper = $fb->getRedirectLoginHelper();
$... | PHP | sdkphp/index.php | Alavifuentes/conectate | mit | 3,096 | 87 | codeparrot/github-code |
df1f4bd646e5da8737e24917a08532318bd8b08aa0503a31f6b20712f026e21c | <?php
namespace Theintz\PhpDaemon\Plugin;
use Theintz\PhpDaemon\Daemon;
use Theintz\PhpDaemon\Exception;
use Theintz\PhpDaemon\IPlugin;
use Theintz\PhpDaemon\Lib\Command;
/**
* Create a simple socket server.
* Supply an IP and Port for incoming connections. Add any number of Command objects to parse client input.
... | PHP | src/PhpDaemon/Plugin/Server.php | theintz/PHP-Daemon | mit | 8,663 | 281 | codeparrot/github-code |
1c13d368112442aa8b55a5c51cf31ce85eace40925745ecf2c47f80c8ce87143 | #include "bitcoinunits.h"
#include <QStringList>
BitcoinUnits::BitcoinUnits(QObject *parent):
QAbstractListModel(parent),
unitlist(availableUnits())
{
}
QList<BitcoinUnits::Unit> BitcoinUnits::availableUnits()
{
QList<BitcoinUnits::Unit> unitlist;
unitlist.append(BTC);
unitlist.append(mBT... | C++ | src/qt/bitcoinunits.cpp | render2k/litecoinclassic | mit | 4,374 | 182 | codeparrot/github-code |
dd617c016fd44fc024dddfe849e6f333f4b977b54ff82aaa03ef5b7123999d49 | #include <string>
#include <vector>
using std::string;
using std::vector;
// StrUtil class
class StrUtils
{
public:
/**Function used to trim empty character
* from begin and end of the string
* @param string& string to trim
* @return string& trimed tring, same object of parameter
*/
static string tri... | C | StrUtils.h | lishen2/Excel_formula_parser_cpp | mit | 858 | 35 | codeparrot/github-code |
4b529e8d60cdbb2480898d8454ed83299cbe247e2710b6389f3d2c7ed32ac308 | <!DOCTYPE html>
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title>module ActionController::Head - Rails Framework Documentation</title>
<link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
<script type="text/javascript">
var rdoc_rel_prefix = "../";
</sc... | HTML | doc/api/ActionController/Head.html | rorogarcete/FacuSisWeb | mit | 62,199 | 1,266 | codeparrot/github-code |
1bf5ceef7e8af64df5a429a4cc441626d3df34670464088f6f5577c59df2027c | /* **********************************************************************************************************
* The MIT License (MIT) *
* *
* Copyright (c) 2016 Hypermediasystems Ges. f. Software mbH *
* Web: http://www.hypermediasystems.de *
... | C# | hmssp/SP.gen/Implementationnotes.cs | helmuttheis/hmsspx | mit | 4,804 | 106 | codeparrot/github-code |
13d5a104577a48a7315a0bed615bd6e3aa4b1646c5fc12ed4c5e116e4497deaa | using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Web.UI;
using System.Web.UI.WebControls;
using Vevo;
using Vevo.Domain.DataInterfaces;
using Vevo.Shared.Utilities;
using Vevo.WebAppLib;
using Vevo.Base.Domain;
public partial class Components_SearchFilterNew : Vevo.Web... | C# | Components/SearchFilterNew.ascx.cs | holmes2136/ShopCart | mit | 18,341 | 497 | codeparrot/github-code |
487bf262826cc1ad561d2bf4197dbbf52a29127360fd03f89976a1a27eea4c12 | #include <stdio.h>
#include <stdlib.h>
static inline void swap(int *a, int *b)
{
int tmp = *a;
*a = *b;
*b = tmp;
}
static int firstMissingPositive(int* nums, int numsSize)
{
if (numsSize == 0) {
return 1;
}
int i = 0;
while (i < numsSize) {
/* nums[i] should be i+1 and nu... | C | 0041_first_missing_positive/missing_positive.c | begeekmyfriend/leetcode | mit | 989 | 47 | codeparrot/github-code |
cb333ffdec750f54592b0b76bc1adfe7ec086752d66bbb7c0bbf18224899f8ec | <?php
namespace Eeemarv\EeemarvBundle\Command;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;... | PHP | src/Eeemarv/EeemarvBundle/Command/MailCommand.php | eeemarv/eeemarv | mit | 3,016 | 129 | codeparrot/github-code |
687af72bfe9ad6f07ce122f5c5f48ad261232e3b3dd4eaf3c5ae6a99eac083fe | <?php
/**
* Copyright (c) 2015 Tobias Schindler
*
* 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, me... | PHP | src/Core/Db/Facade/UpdateFacade.php | AlcyZ/Alcys-ORM | mit | 7,554 | 250 | codeparrot/github-code |
9e3ae226e3993c2571d24ebe50aab37bcd50c9def6eaac17107eccb79d294822 | /*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | TypeScript | src/vs/workbench/services/files/test/electron-browser/watcher.test.ts | rishii7/vscode | mit | 8,460 | 226 | codeparrot/github-code |
52cf47fddc8c077924f1c93ac7111fbfd670e7982232f4563af8e083b1a63fa1 | /*
* XPropertyEvent.cs - Definitions for X event structures.
*
* Copyright (C) 2002, 2003 Southern Storm Software, Pty Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either versi... | C# | qca_designer/lib/pnetlib-0.8.0/Xsharp/Events/XPropertyEvent.cs | jjenki11/blaze-chem-rendering | mit | 1,970 | 61 | codeparrot/github-code |
2db7bc60804cf811a860b5b9efa6467f3c37f26ae74bce0b8236f903846589de | <!DOCTYPE html><html><head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="description">
<meta name="keywords" content="static content generator,static site generator,static site,HTML,web development,.NET,C#,Razor,Markdown,YAML">
<meta n... | HTML | docs/api/OpenTl.Schema/TPrivacyValueDisallowContacts/index.html | OpenTl/OpenTl.Schema | mit | 98,835 | 1,131 | codeparrot/github-code |
f7aa6ea801dae46fd1fbde50fd83e7c571c160af7c3546773ae152af106728e7 | import * as Models from './'
export const ItemRequestPriority = [
'low',
'standard',
'high',
'highest'
] as const
export type ItemRequestPriorityTuple = typeof ItemRequestPriority
export type ItemRequestPriority = ItemRequestPriorityTuple[number]
export const ItemRequestDestination = ['Svařovna'] as const
export ... | TypeScript | app/src/models/ItemRequest.ts | petrdsvoboda/prototype-orders | mit | 1,445 | 61 | codeparrot/github-code |
4b0999849f147ddb7748b02d64f8e132e8b5ae2340b63f4f70a9874b145dddf7 | ---
layout: default
title: Home
---
<div class="posts">
{% for post in paginator.posts %}
<div class="post">
<h1 class="post-title">
{{ post.title }}
</h1>
<span class="post-date">{{ post.date | date_to_string }}</span>
{{ post.content }}
</div>
{% endfor %}
</div>
<div class="paginati... | HTML | index.html | mikstelit/mikstelit.github.io | mit | 756 | 32 | codeparrot/github-code |
67cd4048f3b1021b0a3986979a1ff5330a9ac45f216cf3bd89aeb30a77106956 | package com.orbital.lead.controller.Activity;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.DatePickerDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v... | Java | Android/Lead/app/src/main/java/com/orbital/lead/controller/Activity/AddNewSpecificJournalActivity.java | orbitaljt/LEAD | mit | 20,434 | 578 | codeparrot/github-code |
bd23cde4a2646bbef6f805ca31feb81ffe99739dd7c62b25bf1f2bfc35e970a1 | const colors = require('colors/safe');
const shouldSilenceWarnings = (...messages) =>
[].some((msgRegex) => messages.some((msg) => msgRegex.test(msg)));
const shouldNotThrowWarnings = (...messages) =>
[].some((msgRegex) => messages.some((msg) => msgRegex.test(msg)));
const logOrThrow = (log, method, messages) =>... | JavaScript | throwing-console-patch.js | tdeekens/flopflip | mit | 1,445 | 49 | codeparrot/github-code |
81ef66b9649c516064dc90011a626239be8462e3c1dac69e0a0f8f26a28815a5 | /***********************************************************************************
Copyright (C) 2016 Mohammad D. Mottaghi
Under the terms of the MIT license, permission is granted to anyone to use, copy,
modify, publish, redistribute, and/or sell copies of this source code for any
commercial and non-commerci... | C++ | src/fmStats.cpp | mmottaghi/Jerdy-Inspector | mit | 3,488 | 90 | codeparrot/github-code |
60d4a301ad92e81a8e67ded491d0f1e897d3680c3d607a5648d8368fffc91ec6 | /*
* (C) Copyright 2015 Richard Greenlees
*
* 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,... | Java | src/com/jumi/scene/objects/JUMISkinDeformer.java | RGreenlees/JUMI-Java-Model-Importer | mit | 1,888 | 60 | codeparrot/github-code |
9824dd6300af284680cf02e92bf62a434461353e5d4e10a2387d2275bae95765 | package action
import (
"os"
"path/filepath"
"github.com/gopasspw/gopass/internal/tree"
"github.com/gopasspw/gopass/internal/config"
"github.com/gopasspw/gopass/internal/out"
"github.com/gopasspw/gopass/internal/store/leaf"
"github.com/gopasspw/gopass/pkg/ctxutil"
"github.com/gopasspw/gopass/pkg/fsutil"
"gi... | GO | internal/action/fsck.go | franciscocpg/gopass | mit | 1,676 | 62 | codeparrot/github-code |
6ea36b2e25022f468295da1320f965a9400e1abcbf7942f4acd366d7583c61f6 | 'use strict';
var path = require('path');
var Stream = require('readable-stream');
var BufferStreams = require('bufferstreams');
var ttf2woff2 = require('ttf2woff2');
var PluginError = require('plugin-error');
var replaceExtension = require('replace-ext');
var PLUGIN_NAME = 'gulp-ttf2woff2';
// File level transform ... | JavaScript | src/index.js | nfroidure/gulp-ttf2woff2 | mit | 2,569 | 103 | codeparrot/github-code |
c7c0e2a8cf2f9ea06d27461b9517e418417f2624defd8bf9a5690a81ec887d11 | <?php
/*
Safe sample
input : get the field userData from the variable $_GET via an object
sanitize : use of floatval
construction : interpretation with simple quote
*/
/*Copyright 2015 Bertrand STIVALET
Permission is hereby granted, without written agreement or royalty fee, to
use, copy, modify, and distribute t... | PHP | Injection/CWE_95/safe/CWE_95__object-classicGet__func_floatval__variable-interpretation_simple_quote.php | stivalet/PHP-Vulnerability-test-suite | mit | 1,394 | 65 | codeparrot/github-code |
1b1b459997bbedfd4b0eb6aab6fd49868315867966a043200ecf2535da8a8ce2 | /*
* The MIT License (MIT)
*
* Copyright (c) 2016 MrInformatic.
*
* 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... | Java | src/main/java/game/saver/remote/gamemaps/RemoteGameDoubleMap.java | MrInformatic/GameSaver | mit | 5,186 | 155 | codeparrot/github-code |
282bc3e4ab548a7ff19950fce5148666d618756f18a2d5bd44495027fcd453d3 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using TwitterAPI;
using System.Net;
using Core;
using System.Security.Cryptography;
using System.IO;
namespace TwitterAPI
{
[DataContract]
public class TwitterDirectMessage
{
/// <summary>
... | C# | TwitterAPI/Method/DirectMessages/DirectMessage.cs | atst1996/TwitterAPI | mit | 4,277 | 129 | codeparrot/github-code |
8d418ccea4647a55138ea6270fe1eae3b30e8ba6ddca65675580828cb97b9106 | document.addEventListener("DOMContentLoaded", function() {
"use_strict";
// Store game in global variable
const CASUDOKU = {};
CASUDOKU.game = (function() {
// Controls the state of the game
// Game UI
let uiStats = document.getElementById("gameStats"),
uiComplete = document.getElementById("gameCo... | JavaScript | js/game.js | davidhenry/CaSudoku | mit | 8,726 | 397 | codeparrot/github-code |
69d9118e6f26f80da312e257a2ef1262c2a53ae0bd33f196db2e5f6f68166501 | <?php
namespace App\Models;
use Fwartner\Katching\Cacheable;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Comment extends Model
{
use Cacheable, SoftDeletes;
protected $table = 'comments';
protected $fillable = [
'content',
'is_spam',
... | PHP | app/Models/Comment.php | LaravelHamburg/laravel-hamburg.com | mit | 729 | 42 | codeparrot/github-code |
db5763e248bb0483f007cce049a36852bd35d80f29172b422b3ec9b6814aaa57 | djsex.css = {
/*
* http://stackoverflow.com/questions/524696/how-to-create-a-style-tag-with-javascript
*/
create: function(stylesheet) {
var head = document.getElementsByTagName('head')[0],
style = document.createElement('style'),
rules = document.createTextNode(stylesh... | JavaScript | js/djsex/CSS.js | WatersideDevelopment/Fullscreen-Ajax-Image-Loader | mit | 1,396 | 44 | codeparrot/github-code |
e01d9ed806bdd64b7440cbafc327352624ed15bb1692260499e2381a49e633b1 | <?php
namespace Mapbender\ActivityIndicatorBundle\Element;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
/**
*
*/
class ActivityIndicatorAdminType extends AbstractType
{
/**
* @inheritdoc
*/
... | PHP | src/Mapbender/ActivityIndicatorBundle/Element/ActivityIndicatorAdminType.php | mapbender/mapbender-activityindicator | mit | 1,022 | 44 | codeparrot/github-code |
d3750a004e3fab23a6a4f4682294c45c96c9ae110d08191f46048f6c87ab9b32 | import cx from 'clsx'
import PropTypes from 'prop-types'
import React from 'react'
import { customPropTypes, getElementType, getUnhandledProps, useKeyOnly } from '../../lib'
/**
* A placeholder can contain an image.
*/
function PlaceholderImage(props) {
const { className, square, rectangular } = props
const cla... | JavaScript | src/elements/Placeholder/PlaceholderImage.js | Semantic-Org/Semantic-UI-React | mit | 1,162 | 39 | codeparrot/github-code |
21e9e0169ffc050820152b252b1d0ca2261fc157071cf7f12474a8b4c0b52e25 | <?php
namespace App\Http\Controllers\API\V2;
use App\Beacon;
use App\Http\Requests\BeaconRequest;
use Illuminate\Http\Request;
class BeaconController extends Controller
{
/**
* Return a list of items.
*
* @param Request $request
*
* @return json
*/
public function index(Request ... | PHP | app/Http/Controllers/API/V2/BeaconController.php | nosuchagency/beacon-bacon | mit | 1,627 | 87 | codeparrot/github-code |
191a64b22d68b5be1ac51c76fde8d79dc467bc365e0702ad27440229f1d1b81d | #!/bin/sh
usage() {
cat <<EOF
USAGE: \${DOTFILES}/shell/csh/launcher.sh <function> [arg ...]
FUNCTION:
exit <return_code>
EOF
}
# Print usage if not specify the function that need to run.
if [ $# -eq 0 ]; then
usage
exit 1
fi
# The function name is the first argument.
func_name=${1}
# Remove the first... | Shell | shell/csh/launcher.sh | Johnson9009/dotfiles | mit | 642 | 37 | codeparrot/github-code |
eb0cf77b9cab793512a53508a50ae005ba0d9266835b7427a382fca5b3dc9831 | package main
import (
"bufio"
"fmt"
"os"
"os/exec"
"strings"
"sync"
)
func checkError(err error, prefix string) {
if err != nil {
panic(fmt.Sprintf("%s %s", prefix, err.Error()))
}
}
func cleanFeedbackLine(s string) (out string) {
out = s
out = strings.TrimSpace(out)
out = strings.Replace(out, "\r", "",... | GO | main.go | golang-devops/yaml-script-runner | mit | 3,494 | 143 | codeparrot/github-code |
21c73bf7da1f4ed7178e6c722aff612a2eaaa7e7a3059d1b5af762a16342fb19 | --[[checkboxData = {
type = "checkbox",
name = "My Checkbox",
tooltip = "Checkbox's tooltip text.",
getFunc = function() return db.var end,
setFunc = function(value) db.var = value doStuff() end,
width = "full", --or "half" (optional)
disabled = function() return db.someBooleanSetting end, --or boolean (optional... | Lua | Libs/LibAddonMenu-2.0/controls/checkbox.lua | JordyMoos/JMGuildSaleHistoryTracker | mit | 5,568 | 172 | codeparrot/github-code |
cf03fe39a82f61d39d2b15f6ed53fa0168334304012eb80f6004c5347e9b1eaf | import base64
try:
from functools import wraps
except ImportError:
from django.utils.functional import wraps # Python 2.3, 2.4 fallback.
from django import http, template
from django.conf import settings
from django.contrib.auth.models import User
from django.contrib.auth import authenticate, login
from djang... | Python | common/django/contrib/admin/views/decorators.py | isaac-philip/loolu | mit | 3,535 | 78 | codeparrot/github-code |
9dea100147ef70b8c72e8f5c9fd69a43af4f574e9244f57dfc53dd8fa9a1ce76 | // BEGIN CUT HERE
// END CUT HERE
#include <sstream>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <cstring>
#include <algorithm>
#include <cmath>
#include <vector>
#include <map>
#include <string>
#include <set>
#include <algorithm>
using namespace std;
const int V = 64;
const int E = V * V * 2;... | C++ | SRM612/SpecialCells.cpp | CanoeFZH/SRM | mit | 5,627 | 131 | codeparrot/github-code |
25f4fbc4cb3a24bb90c8bf43d13486e2d69a2eff842564e5045918a03d6a0575 | // $Author: benine $
// $Date$
// $Log$
// Contains the mismatch class for afin
#ifndef MISMATCH_H
#define MISMATCH_H
//////////////////////////////////////////////\
// Mismatch Class: ////////////////////////////>
//////////////////////////////////////////////
//
// Mismatch object, contains all classes, methods, da... | C++ | afin/mismatch.hpp | mrmckain/Fast-Plast | mit | 1,405 | 70 | codeparrot/github-code |
b4d1e292d84ac6c5849970859ded48fc6297bc5043799ce2f54b6da1dbfd2502 | <?php
/*
* 注意:此文件由itpl_engine编译型模板引擎编译生成。
* 如果您的模板要进行修改,请修改 templates/default/shop/map.html
* 如果您的模型要进行修改,请修改 models/shop/map.php
*
* 修改完成之后需要您进入后台重新编译,才会重新生成。
* 如果您开启了debug模式运行,那么您可以省去上面这一步,但是debug模式每次都会判断程序是否更新,debug模式只适合开发调试。
* 如果您正式运行此程序时,请切换到service模式运行!
*
* 如您有问题请到官方论坛()提问,谢谢您的支持。
*/
?><?php... | PHP | trunk/shop/map.php | hisuley/gds | mit | 6,585 | 172 | codeparrot/github-code |
223f694997ff469ee8fcdf0e41608f9f925a6cdd3a6e8650645ea5677262e239 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>fairisle: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.cs... | HTML | clean/Linux-x86_64-4.07.1-2.0.6/released/8.9.1/fairisle/8.7.0.html | coq-bench/coq-bench.github.io | mit | 7,365 | 176 | codeparrot/github-code |
3c172947da42d89f3ec92da966fe24a4467dcc9e341feb98fc0c6888299ca4bb | import React from 'react';
const EditHero = props => {
if (props.selectedHero) {
return (
<div>
<div className="editfields">
<div>
<label>id: </label>
{props.addingHero
? <input
type="number"
name="id"
... | JavaScript | src/components/EditHero.js | Ryan-ZL-Lin/react-cosmosdb | mit | 1,289 | 51 | codeparrot/github-code |
7cc72e9408d370751ac12f3301d56fab2498f1d9f64a6253c1f85278b6e5c028 | #ifndef SE_SCANNNER_H
#define SE_SCANNNER_H
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include "read.h"
#include "fusion.h"
#include "match.h"
#include <cstdlib>
#include <condition_variable>
#include <mutex>
#include <thread>
#include "fusionmapper.h"
using namespace std;
struct ReadPack {
Read*... | C | src/sescanner.h | OpenGene/FusionScan | mit | 1,488 | 73 | codeparrot/github-code |
64e02096da483cf137515044d589d860a46826490a80aee94cf5c4290436583f | /**
* Module dependencies.
*/
var express = require('express')
var MemoryStore = express.session.MemoryStore
var mongoStore = require('connect-mongo')(express)
var path = require('path')
var fs = require('fs')
var _ = require('underscore')
var mongoose = require('mongoose')
var passport = require('passport')
var http... | JavaScript | app.js | rtorino/shiny-octo-ironman | mit | 3,595 | 123 | codeparrot/github-code |
ffd9c03802c4a6c1fcf7c1319e89059b17a4e351efe1b24d8297c1bd44a60b49 | 'use strict';
var redis = require('redis')
, xtend = require('xtend')
, hyperquest = require('hyperquest')
;
module.exports = FetchAndCache;
/**
* Creates a fetchncache instance.
*
* #### redis opts
*
* - **opts.redis.host** *{number=}* host at which redis is listening, defaults to `127.0.0.1`... | JavaScript | index.js | thlorenz/fetchncache | mit | 4,638 | 137 | codeparrot/github-code |
d025de4eea90dc624cc8875285cb3edff9b6cf967aa7383e88cfea7b61d4e643 | package org.blendee.jdbc;
/**
* プレースホルダを持つ SQL 文と、プレースホルダにセットする値を持つものを表すインターフェイスです。
* @author 千葉 哲嗣
*/
public interface ComposedSQL extends ChainPreparedStatementComplementer {
/**
* このインスタンスが持つ SQL 文を返します。
* @return SQL 文
*/
String sql();
/**
* {@link PreparedStatementComplementer} を入れ替えた新しい {@link Co... | Java | src/main/java/org/blendee/jdbc/ComposedSQL.java | blendee/blendee | mit | 1,333 | 58 | codeparrot/github-code |
6170847ae17ac4ec48cb84ab28d0a34c2150501d27c71e650528c77f40e25005 | package com.github.sixro.minihabits.core.infrastructure.domain;
import java.util.*;
import com.badlogic.gdx.Preferences;
import com.github.sixro.minihabits.core.domain.*;
public class PreferencesBasedRepository implements Repository {
private final Preferences prefs;
public PreferencesBasedRepository... | Java | core/src/main/java/com/github/sixro/minihabits/core/infrastructure/domain/PreferencesBasedRepository.java | sixro/minihabits | mit | 2,241 | 87 | codeparrot/github-code |
fc1207acf58cc328ca210f0ec0a3389a5be284f3f878a043c73dac933e88641d | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
let _ = require('lodash');
let async = require('async');
const pip_services3_commons_node_1 = require("pip-services3-commons-node");
const pip_services3_facade_node_1 = require("pip-services3-facade-node");
class RolesOperationsV1 extends pip_... | JavaScript | obj/src/operations/version1/RolesOperationsV1.js | pip-services-users/pip-facade-users-node | mit | 1,730 | 47 | codeparrot/github-code |
edd5db5f367854e0481a5b1dba7f692e1849ad07fba4615574b16e6daacbed6b | require_relative 'rules_factory_common'
FactoryBot.define do
factory :priority_bills, parent: :answers do
factory :S6_H1_missed_payment_low, traits: [:country, :S6_H1_missed_payment_low_answers]
factory :S6_H2_council_tax_severe, traits: [:country, :S6_H2_tax_severe_answers]
factory :S6_H2_domestic_rat... | Ruby | features/factories/money_navigator/priority_bills_rules.rb | moneyadviceservice/frontend | mit | 33,882 | 719 | codeparrot/github-code |
4e7b790e633f2084adb9cd6b242e2e7c5291e4824673310fa7c02011dea5e978 | var config = require('../lib/config')();
var Changeset = require('./Changeset');
var queries = require('./queries');
var helpers = require('../helpers');
require('../validators');
var validate = require('validate.js');
var errors = require('../errors');
var pgPromise = helpers.pgPromise;
var promisifyQuery = helpers.pr... | JavaScript | changesets/index.js | mapbox/osm-comments-api | mit | 3,841 | 124 | codeparrot/github-code |
2275a7c638e7228197fa37b07a287ce1d3962d2e0b4737dbb2d34bb8f686abf0 | //---------------------------------------------------------------------------
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
//---------------------------------------------------------------------------
using System;
using System.Windows.Automation.Peers;
using System.Windows.Media;
using System.W... | C# | Cache/Libs/net46/wpf/src/Framework/System/Windows/Controls/Primitives/StatusBar.cs | mind0n/hive | mit | 7,812 | 212 | codeparrot/github-code |
aec3aa03f98d982eea22eb84ce14d66505520093c4e23c9c13c31a85ab8af2b3 | // John Meyer
// CSE 271 F
// Dr. Angel Bravo
import java.util.Scanner;
import java.io.*;
/**
* Copies a file with line numbers prefixed to every line
*/
public class Lab2InputOutput {
public static void main(String[] args) throws Exception {
// Define variables
Scanner keyboardReader = new Scan... | Java | 2016-2021 Miami University/CSE 271 Introduction to Object-Oriented Programming/Lab02/src/main/java/Lab2InputOutput.java | 0x326/academic-code-portfolio | mit | 1,334 | 43 | codeparrot/github-code |
0a34fab8ca36a985fc2624c72f27177bee75eedc8838737437876ac1ec48e0b8 | /*
' Copyright (c) 2013 Christoc.com Software Solutions
' All rights reserved.
'
' THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
' TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
' THE AUTHORS... | C# | Providers/DataProviders/SqlDataProvider/SqlDataProvider.cs | ChrisHammond/DNN-SignalR | mit | 4,526 | 151 | codeparrot/github-code |
240ec2f24b286158d058f43d4a691b6d1f232103436e444c72dd77f2b6938b05 | // Copyright 2013 The Changkong Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package dmt
const VersionNo = "20131207"
/* 图片分类 */
type PictureCategory struct {
Created string `json:"created"`
Modified str... | GO | api/dmt/dmt_structs.go | yaofangou/open_taobao | mit | 3,276 | 99 | codeparrot/github-code |
3b2efcb0d15b91b6ac4a3727ea482b9a7c987751b5012e97eb9d463e384be9a9 | 'use strict';
const assert = require('assert');
const HttpResponse = require('./http-response');
describe('HttpResponse', () => {
const mockResponse = {
version: '1.0',
status: '200 OK'
};
it('should create an instance', () => {
const httpResponse = new HttpResponse(mockResponse);
assert.ok(htt... | JavaScript | sdk/http-response.test.js | orestes/katana-sdk-node | mit | 10,676 | 279 | codeparrot/github-code |
a46c9b8e742bc78898fe7636dcdfb3238e153af875c9b45de2bc96d9025740d4 | #include "stdafx.h"
#include "Renderer.h"
#include "RenderMethod_PhongPoint_CG.h"
RenderMethod_PhongPoint_CG::RenderMethod_PhongPoint_CG(class Renderer *r) {
ASSERT(r, "Null pointer: r");
renderer = r;
useCG = true;
}
bool RenderMethod_PhongPoint_CG::isSupported() const {
return areShadersAvailable();
... | C++ | src/RenderMethod_PhongPoint_CG.cpp | foxostro/CheeseTesseract | mit | 3,567 | 108 | codeparrot/github-code |
72fc05caef425adcb97c479cbe169c1f0b03ddd07504b26c7ea9be0a50c30a8b | function SendMessage(a_Player, a_Message)
a_Player:SendMessageInfo(a_Message)
end
function SendMessageSuccess(a_Player, a_Message)
a_Player:SendMessageSuccess(a_Message)
end
function SendMessageFailure(a_Player, a_Message)
a_Player:SendMessageFailure(a_Message)
end
--- Kicks a player by name, with the specified r... | Lua | world/Plugins/Core/functions.lua | 135yshr/Holocraft-server | mit | 5,438 | 185 | codeparrot/github-code |
e65ea990b9d3fb084bd222aeb49d2e880daa601b711f10e61dc9317c357e8d2c | # -*- coding: utf-8 -*-
# @Author: karthik
# @Date: 2016-12-10 21:40:07
# @Last Modified by: chandan
# @Last Modified time: 2016-12-11 12:55:27
from models.portfolio import Portfolio
from models.company import Company
from models.position import Position
import tenjin
from tenjin.helpers import *
import wikipedia... | Python | src/info/fetch_info.py | coders-creed/botathon | mit | 2,889 | 97 | codeparrot/github-code |
2fe68a08a7d86fcd15ba37d0ab8beb1c7b716696b8bd6d5bc9fd94c74f771df1 | using System;
using System.Collections.Generic;
using System.Html;
namespace wwtlib
{
public class PlotTile : Tile
{
bool topDown = true;
protected PositionTexture[] bounds;
protected bool backslash = false;
List<PositionTexture> vertexList = null;
List<Triangle>[] chi... | C# | HTML5SDK/wwtlib/PlotTile.cs | juoni/wwt-web-client | mit | 11,747 | 359 | codeparrot/github-code |
4355468b393c25ca2ca8c9a63adfedc185042c14085ff9326c102d2241e89248 | <?php
/**
* This file is part of the browscap-json-cache package.
*
* (c) Thomas Mueller <mimmi20@live.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types = 1);
namespace Browscap\Cache;
use BrowscapPHP\Cache... | PHP | src/JsonCache.php | mimmi20/browscap-json-cache | mit | 5,684 | 248 | codeparrot/github-code |
c427b53768deea23166860a0f94c08984d46d8e77fc25dbdc3f76bca49a83ee1 | (function () {
"use strict";
require('futures/forEachAsync');
var fs = require('fs'),
crypto = require('crypto'),
path = require('path'),
exec = require('child_process').exec,
mime = require('mime'),
FileStat = require('filestat'),
dbaccess = require('../dbaccess'),
utils = require('../utils'),
has... | JavaScript | server/lib/routes/upload.js | beatgammit/node-filesync | mit | 3,981 | 177 | codeparrot/github-code |
bb16f7bef813572fe681f7f2b5e606de7728122265b7e43f3498b9aa6cb2efc2 | #!/usr/bin/python
from typing import List, Optional
"""
16. 3Sum Closest
https://leetcode.com/problems/3sum-closest/
"""
def bsearch(nums, left, right, res, i, j, target):
while left <= right:
middle = (left + right) // 2
candidate = nums[i] + nums[j] + nums[middle]
if res is None or ab... | Python | medium/16.py | pisskidney/leetcode | mit | 1,070 | 46 | codeparrot/github-code |
3ee6222ab84225a485a58bc5b265d0d64c18dc4b244779c026b3e5b045cbebc9 | var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
// Database
var mongo = require('mongodb');
var monk = require('monk');
var db = monk('localhost:270... | JavaScript | app.js | imRishabhGupta/smart-kart | mit | 1,740 | 66 | codeparrot/github-code |
ba03ed83786bc02bd8dd9764c624ecad50a22240a1c0dc28606d5a383a7df817 | from multiprocessing import Pool
import os, time, random
def long_time_task(name):
print 'Run task %s (%s)...' % (name, os.getpid())
start = time.time()
time.sleep(random.random() * 3)
end = time.time()
print 'Task %s runs %0.2f seconds.' % (name, (end - start))
if __name__ == '__main__':
p... | Python | Process&Thread/PoolTest.py | Jayin/practice_on_py | mit | 814 | 32 | codeparrot/github-code |
dfbaabe53cfa5c2e594ae79681c1a814391b5d87ee15d0fc3fae54abf7e4d89e | package net.comfreeze.lib;
import android.app.AlarmManager;
import android.app.Application;
import android.app.NotificationManager;
import android.content.ComponentName;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.pm.PackageInfo;
import android.content.pm.PackageMan... | Java | CFZLib/src/main/java/net/comfreeze/lib/CFZApplication.java | comfreeze/android-tools | mit | 8,991 | 277 | codeparrot/github-code |
1754b9f8cf036085e71652ca6eb96500c0cfca2cfe66d65eef4c9e8c2f94c2f6 | /**
* @author yomboprime https://github.com/yomboprime
*
* GPUComputationRenderer, based on SimulationRenderer by zz85
*
* The GPUComputationRenderer uses the concept of variables. These variables are RGBA float textures that hold 4 floats
* for each compute element (texel)
*
* Each variable has a fragment shad... | JavaScript | js/GPUComputationRenderer.js | ChenJiaH/chenjiah.github.io | mit | 10,733 | 401 | codeparrot/github-code |
7aae061f9dff65a996f50d2339368b99542d1af0b0d8171da8f29cd5277c49b6 | package com.example.mesh;
import java.util.HashMap;
import java.util.Map;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
@Path("/")
@Cons... | Java | src/main/java/com/example/mesh/EndpointControlResource.java | Aldaviva/relay-mesh-example-java | mit | 4,452 | 109 | codeparrot/github-code |
98eace6b42ff330412e9f0141442571a3f2623a1c9171318e2beaf22b64e7857 | // cpu/test/unique-strings.cpp -*-C++-*-
// ----------------------------------------------------------------------------
// Copyright (C) 2015 Dietmar Kuehl http://www.dietmar-kuehl.de
//
// Permissi... | C++ | cpu/test/unique-strings.cpp | dietmarkuehl/cputube | mit | 10,438 | 276 | codeparrot/github-code |
c9573763925fcde911672f6a63f8f287d180a6c47e18745e2a4ab1f5a6ef306d | /*
* Encog(tm) Core v3.1 - Java Version
* http://www.heatonresearch.com/encog/
* http://code.google.com/p/encog-java/
* Copyright 2008-2012 Heaton Research, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obt... | Java | SentimentAnalysisV2/encog-core-3.1.0/src/main/java/org/encog/plugin/system/SystemTrainingPlugin.java | larhoy/SentimentProjectV2 | mit | 7,358 | 237 | codeparrot/github-code |
83cb69307f28a38f282f89723c4735502c0e535ffc987e767db7e16655230d0c | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import './index.scss'
import React, { Component } from 'react'
// import { Grid, Col, Row } from 'react-bootstrap';
export default class IndexPage extends Component {
... | JavaScript | pages/index.js | odoruinu/odoruinu.net-pug | mit | 908 | 38 | codeparrot/github-code |
b7dabd4a474bdaa2b0cf1c69f8df50c1d982a9880b648f4b58b392e1b6a65fe9 | package controllers;
import java.lang.reflect.InvocationTargetException;
import java.util.List;
import java.util.Date;
import models.Usuario;
import play.Play;
import play.mvc.*;
import play.data.validation.*;
import play.libs.*;
import play.utils.*;
public class Secure extends Controller {
@Before(unless={"log... | Java | app/controllers/Secure.java | marti1125/Project_Store | mit | 7,739 | 233 | codeparrot/github-code |
e04b554ecfd30b0728600c1f00e6b2b6d760f7b33643c674c3fdbf560954275f | # This file is part of Indico.
# Copyright (C) 2002 - 2021 CERN
#
# Indico is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see the
# LICENSE file for more details.
import os
import re
import subprocess
import sys
from datetime import date
import click
import yaml
from... | Python | bin/maintenance/update_header.py | ThiefMaster/indico | mit | 8,843 | 214 | codeparrot/github-code |
6220f671dc18739f0281d82d8cf4cc99bce8add670af9ecf0d4d6c34abeece9c | module Ahoy
module Stores
class ActiveRecordStore < BaseStore
def track_visit(options, &block)
visit =
visit_model.new do |v|
v.id = ahoy.visit_id
v.visitor_id = ahoy.visitor_id
v.user = user if v.respond_to?(:user=)
end
set_visit_pro... | Ruby | lib/ahoy/stores/active_record_store.rb | littlebitselectronics/ahoy | mit | 1,335 | 64 | codeparrot/github-code |
21c744062b54f5685167d0f2b592e8be139ef09836263f5467f3f00c3c9bcce6 | using UnityEngine;
using System.Collections;
public class Intro : MonoBehaviour {
public GameObject martin;
public GameObject mrsStrump;
public GameObject strumpFire;
public Sprite sadMartin, slinkton, police, candles, houses, strumps;
public Camera cam;
// Use this for initialization
void Start () {
strum... | C# | S Run Ronald Strump/Assets/scripts/Intro.cs | Bonfanti/Platformer | mit | 2,197 | 71 | codeparrot/github-code |
6ff09ea8088d047e14a5ed1813289cabe306ab842083a0609cff671b23b224fb | module Parsers
module Edi
class IncomingTransaction
attr_reader :errors
def self.from_etf(etf, i_cache)
incoming_transaction = new(etf)
subscriber_policy_loop = etf.subscriber_loop.policy_loops.first
find_policy = FindPolicy.new(incoming_transaction)
policy = find_po... | Ruby | app/models/parsers/edi/incoming_transaction.rb | dchbx/gluedb | mit | 7,194 | 214 | codeparrot/github-code |
54e18bcc04d10b63ebb7b6510b56b1f9d32a220e51f0e57711f729e1e53d527d | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
Navigator,
ScrollView,
ListView,
} from 'react-native'
import NavigationBar from 'react-native-navbar';
var REQUEST_URL = 'https://calm-garden-29993.herokuapp.com/index/groupsinfo/?';
class GroupDetails extends Component {
con... | JavaScript | App/GroupDetails.js | adnanhemani/RideApp | mit | 3,798 | 164 | codeparrot/github-code |
56da2f10690c1ed88208babcc1b49e8517885ebcdf1508e9e3b611e0868e1b2f |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>W28677_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/W28677_text/page10.html | datamade/elpc_bakken | mit | 4,181 | 85 | codeparrot/github-code |
fb0fa69992335d96717b6b1889d35b4f2a9c0850f97ba1deaff76f876d56c0a0 | package org.squirrel;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.Timer;
import org.squirrel.managers.PrisonerControllor;
import org.squirrel.managers.input... | Java | src/org/squirrel/Game.java | DemSquirrel/Prison-Survival | mit | 1,974 | 91 | codeparrot/github-code |
5a636dc790e4f01c66212ac47ed755bc972ffcf49a30d1ce89f0d30af615035d | (function () {
'use strict';
angular
.module('app')
.service('UploadUserLogoService', UploadUserLogoService);
function UploadUserLogoService($http, $log, TokenService, UserService, $rootScope) {
this.uploadImage = uploadImage;
////
/**
* Upload Image
... | JavaScript | app/utils/upload.user.logo/upload.user.logo.service.js | royalrangers-ck/rr-web-app | mit | 2,179 | 64 | codeparrot/github-code |
1b4f6173b04936a3db34a88300253c46d87d547befffbdf12ebfeaa9f17f7860 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>simple-io: 27 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="s... | HTML | clean/Linux-x86_64-4.05.0-2.0.1/released/8.9.0/simple-io/1.3.0.html | coq-bench/coq-bench.github.io | mit | 11,855 | 213 | codeparrot/github-code |
921cce69e2d755e1f6bb758868640d051fec480f0fdbd6f85beedcd2fefa3b42 | class Sprite(object):
def __init__(self, xPos, yPos):
self.x = xPos
self.y = yPos
self.th = 32
self.tw = 32
def checkCollision(self, otherSprite):
if (self.x < otherSprite.x + otherSprite.tw and otherSprite.x < self.x + self.tw
and self.y < otherSpri... | Python | sketches/Apple_Invaders/sprites.py | kantel/processingpy | mit | 2,805 | 95 | codeparrot/github-code |
097c275496391ee92e14cc2cbe96897aa1282f656414a66d1be3605608752805 | <?php
/**
* This file is part of the Carrot framework.
*
* Copyright (c) 2011 Ricky Christie <seven.rchristie@gmail.com>.
*
* Licensed under the MIT License.
*
*/
/**
* Docs storage.
*
* Represents a documents storage and provides ways to access
* the documents inside the storage. This class reads folder... | PHP | library/Carrot/Docs/Storage.php | rickchristie/carrot-old | mit | 13,874 | 462 | codeparrot/github-code |
230879fd8b5ac537345025be6626cec8c78b96058853cbaaef009b406d96bfe7 | angular.module('tips.tips').controller('TipsController', ['$scope', '$routeParams', '$location', 'Global', 'Tips', function ($scope, $routeParams, $location, Global, Tips) {
$scope.global = Global;
$scope.createTip = function () {
var tips = new Tips({
text: this.text,
likes: th... | JavaScript | public/js/controllers/tips.js | Arsey/tips-of-the-day | mit | 2,505 | 85 | codeparrot/github-code |
b9d44accd6879b13433ecc0d91719127cbbd0b79feec8cf7328ff2b40db336d7 | package com.xeiam.xchange.cryptotrade.dto;
import java.io.IOException;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.ObjectCodec;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.data... | Java | xchange-cryptotrade/src/main/java/com/xeiam/xchange/cryptotrade/dto/CryptoTradeOrderType.java | Achterhoeker/XChange | mit | 1,150 | 31 | codeparrot/github-code |
5fd0b71f4ee2e33b6f857fea6bc5dbc07b0a8802ba22340fbf660d5fd7d34343 | module Mailplug
class Plugin::Example < Mailplug::Middleware
# Message Envelope Methods
def return_path
end
def recipients
end
def message # returns Mail::Message
end
# Hash of state and inter-stack data memo[classname][key]=value
def memo
end
# SMTP State Changes
... | Ruby | lib/mailplug/plugin/example.rb | afair/mailplug | mit | 969 | 70 | codeparrot/github-code |
d83a392c4bc893b290ff95519bca1cd2393b51cc2a13a71f1f3402be088e67cc | import apiConfig from './MovieDBConfig';
import TmdbApi from 'moviedb-api';
var api = new TmdbApi({
consume: false,
apiKey: apiConfig.apiKey
});
const makeAndList = (list) => {
return list.map(item => item.value).join();
};
export const getGenres = (input='', callback) => {
api.request('/genre/movie/list', ... | JavaScript | app/utils/api.js | arddor/MovieAdvisor | mit | 2,618 | 95 | codeparrot/github-code |
6ba5f4d70f7d8bd47eea65c3032d124d4bc919e411446f0814575be094b10c58 | const excludedTables = ["blacklist", "musicCache", "timedEvents"];
const statPoster = require("../../modules/statPoster.js");
module.exports = async guild => {
let tables = await r.tableList().run();
for(let table of tables) {
let indexes = await r.table(table).indexList().run();
if(~indexes.indexOf("guildID")) r... | JavaScript | src/bot/listeners/on/guildDelete.js | minemidnight/oxyl | mit | 1,327 | 34 | codeparrot/github-code |
73e0fd5acaa603259c6c53d3dd6242d9e5f18ffd382b6240e0d2d8f2564aad5c | using System.Collections.Generic;
using System.IO;
using System.Reflection;
using IDI.Core.Common.Extensions;
namespace IDI.Core.Localization
{
public abstract class Package
{
public List<PackageItem> Items { get; private set; } = new List<PackageItem>();
public Package(string assemblyName, s... | C# | src/IDI.Core/Localization/Package.cs | idi-studio/com.idi.central.api | mit | 903 | 34 | codeparrot/github-code |
4c1c75c8f5532d71569ca30bbfd480303dee5f0afa0f675e38a1bcd7f435e43d | <?php
/**
* @author tshirtecommerce - www.tshirtecommerce.com
* @date: 2015-01-10
*
* @copyright Copyright (C) 2015 tshirtecommerce.com. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
*
*/
if ( ! defined('BASEPATH')) exit('No direct script access allowed'... | PHP | application/modules/m_product/views/admin/setting.php | Nnamso/tbox | mit | 11,129 | 245 | codeparrot/github-code |
a28466467b070341eda6a2b945d07b2650baa05c151f5cd143a1ee33379f2a96 |
local u = require "lib/util"
local Node = require "lib/espalier/node"
local Section = require "Orbit/section"
local own = require "Orbit/own"
local D = setmetatable({}, { __index = Node })
D.id = "doc"
D.__tostring = function (doc)
local phrase = ""
for _,v in ipairs(doc) do
... | Lua | src/Orbit/doc.lua | mnemnion/grym | mit | 3,039 | 184 | codeparrot/github-code |
4352b792c9ea7ad3271088850a89edc8b7b4528006ba271f065c7bf8a838d086 | package com.github.aureliano.evtbridge.output.file;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import java.util.Set;
import org.junit.Test;
import com.github.aureliano.evtbridge.annota... | Java | evt-bridge-output/file-output/src/test/java/com/github/aureliano/evtbridge/output/file/FileOutputConfigTest.java | aureliano/da-mihi-logs | mit | 2,450 | 82 | codeparrot/github-code |
649636a9d5af6a97644302ba3947762cdb9bc78bd0bbf63a301e2fc3b7036fc9 |
console.log("VS: loading content_script.js..." + new Date());
// Check if the communication between page and background.js has broken.
var last_message_time = new Date().getTime();
new Promise((resolve) => setTimeout(resolve, 1000000)).then(() => {
var now = new Date().getTime();
if (now - last_message_time >... | JavaScript | vivintsolar-monitor/content_script.js | redisliu/chrome-extensions | mit | 5,501 | 144 | codeparrot/github-code |
b81aa6f1f22bf978c19cc5492a72514b7852c12ca82d09d1f32e58448c4a76da | namespace gView.Plugins.DbTools.Relates
{
partial class TableRelationsDialog
{
/// <summary>
/// Erforderliche Designervariable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Verwendete Ressourcen bereinigen.
... | C# | gView.Plugins.DbTools/Plugins/DbTools/Relates/TableRelationsDialog.Designer.cs | jugstalt/gViewGisOS | mit | 5,675 | 121 | codeparrot/github-code |
569de74d16b916ee4aaac87db7b032ae9e0ba72adad23f0a7d879a6e58ad1cf4 | package com.carbon108.tilde;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import java.util.Collection;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
/**
* @author K Moroz
* @version 1.0
*/
public class P... | Java | src/test/java/com/carbon108/tilde/PrimaryModelFactoryTest.java | morozko108/Tilde | mit | 1,725 | 68 | codeparrot/github-code |
4a2e9c10746203cf1c13157c2707304a45e992a3881d774bfb09d7a008156d28 | namespace QuanLySinhVien_GUI
{
partial class frmtimkiemdiemsinhvientheomasv
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
//... | C# | QuanLySinhVien_MaNguonMo/QuanLySinhVien_GUI/frmtimkiemdiemsinhvientheomasv.Designer.cs | F4Team-DHCN1A/QLSV | mit | 6,830 | 154 | codeparrot/github-code |
8d9286ad97a21e928182890b2435af0f2d874f73d6a1a54161e98e35f2fb91c7 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>cantor: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" re... | HTML | clean/Linux-x86_64-4.10.0-2.0.6/released/8.11.2/cantor/8.9.0.html | coq-bench/coq-bench.github.io | mit | 7,477 | 182 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.