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 |
|---|---|---|---|---|---|---|---|---|
6a817ec5c8d83a691b60979fb3d38ceb8fd1e1c71c541fcfdc58c6b9901652b7 | // Copyright (c) 2012 The Eurobit developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef CHECKQUEUE_H
#define CHECKQUEUE_H
#include <boost/thread/mutex.hpp>
#include <boost/thread/locks.hpp>
#include <boost/threa... | C | src/checkqueue.h | omnicoin/eurobit | mit | 6,431 | 193 | codeparrot/github-code |
dccf16dedccbccc2eadfd4df01b14e0c683d34d6ec0fe1b18dd7b4f9ec45cf68 | import 'css.escape'
import { createFootnote, FootnoteElements } from './footnote'
import { bindScrollHandler } from './scroll'
import { Adapter } from '../core'
import { addClass, removeClass, unmount } from './element'
export const CLASS_CONTENT = 'littlefoot__content'
export const CLASS_WRAPPER = 'littlefoot__wrappe... | TypeScript | src/dom/document.ts | goblindegook/littlefoot | mit | 7,139 | 248 | codeparrot/github-code |
8e914a7c14049d06145a77e5e2ce8e1a3199e60d3e7b862f24b422b797030423 | {% extends '__base__.html' %}
{% block title %}ๅๅปบ่ดฆๆท{% endblock %}
{% block beforehead %}
<script>
var
action = '{{ action }}';
function initVM(account) {
var vm = new Vue({
el: '#vm',
data: account,
methods: {
submit: function (event) {
this.$data.date = $... | HTML | www/templates/advanced_create_account.html | charliezon/stock | mit | 4,468 | 120 | codeparrot/github-code |
d1f296cfc78fb63865c2dca7b97003f5346abf28ca42380b06cd7dc203338c99 | # -*- coding: utf-8 -*-
import unittest
from hanspell import spell_checker
from hanspell.constants import CheckResult
from textwrap import dedent as trim
class SpellCheckerTests(unittest.TestCase):
def setUp(self):
pass
def test_basic_check(self):
result = spell_checker.check(u'์๋
ํ์ธ์. ์ ๋ ํ๊ตญ์ธ... | Python | tests.py | ssut/py-hanspell | mit | 1,925 | 50 | codeparrot/github-code |
89cbdf6990c35bc642e1974a5f525a147d71f08f1242e21a1eb38ba360621b6f | <?php declare(strict_types=1);
/*
* This file is part of Composer.
*
* (c) Nils Adermann <naderman@naderman.de>
* Jordi Boggiano <j.boggiano@seld.be>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Composer\Depende... | PHP | src/Composer/DependencyResolver/RuleSetGenerator.php | composer/composer | mit | 13,501 | 346 | codeparrot/github-code |
2fd9cecddb27e73739f2da77bd9fb1627808aa1f9e91b179a360f3b2f56f8f06 | /**
* @author alteredq / http://alteredqualia.com/
*/
THREE.DepthPassPlugin = function () {
this.enabled = false;
this.renderTarget = null;
var _gl,
_renderer,
_lights, _webglObjects, _webglObjectsImmediate,
_depthMaterial, _depthMaterialMorph, _depthMaterialSkin, _depthMaterialMorphSkin,
_frustum = new TH... | JavaScript | examples/js/renderers/plugins/DepthPassPlugin.js | BenediktS/three.js | mit | 5,549 | 231 | codeparrot/github-code |
e7f154d7639c9f95aa8503dc3408804c3844de62cd90673384bb7e192024f5b2 | #
# MIT License
#
# Copyright (c) 2016 Paul Taylor
#
# 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... | Ruby | lib/basic_process_controller.rb | ptaylor/ppool | mit | 2,168 | 82 | codeparrot/github-code |
d07af6694467e3c11d138695e2679de18b9508725de773f6d3407b4789869239 | 'use strict'
const { EventEmitter } = require('events')
const { Multiaddr } = require('multiaddr')
/**
* @typedef {import('libp2p-interfaces/src/transport/types').Listener} Listener
*/
/**
* @param {import('../')} libp2p
* @returns {Listener} a transport listener
*/
module.exports = (libp2p) => {
const listen... | JavaScript | src/circuit/listener.js | libp2p/js-libp2p | mit | 2,218 | 76 | codeparrot/github-code |
850aec48667690eae5288626679977d2caaf4ec79318638c0af583b2e7158c12 | (function() {
$(function() {
$('.tooltip-examples a, .tooltip-paragraph-examples a').tooltip({
animation: false
});
$('.top-sign-in').on("click", function(e) {
$('.login-box').fadeIn("fast");
return false;
});
$('.login-box-close').on("click", function(e) {
$(this).closest... | JavaScript | public/venera/js/main.js | lifeandscience/experimonth.lifeandscience.org | mit | 1,521 | 45 | codeparrot/github-code |
3748dc63205b300d97f4f18446dcc7dea2e62d458a8a1e0f970ff6c03cdbe7a5 | #------------------------------------------------------------------------------
# Copyright (c) 2013 The University of Manchester, UK.
#
# BSD Licenced. See LICENCE.rdoc for details.
#
# Taverna Player was developed in the BioVeL project, funded by the European
# Commission 7th Framework Programme (FP7), through grant ... | Ruby | app/controllers/taverna_player/runs_controller.rb | Samhane/taverna-player-portal | mit | 1,563 | 48 | codeparrot/github-code |
c6a65f00c1393ed0cf0ed0b043840653b366f9590d0b357b5b7a86151d609b52 | /*!
* @license MIT
* Copyright (c) 2017 Bernhard Grรผnewaldt - codeclou.io
* https://github.com/cloukit/legal
*/
import { Component, Input } from '@angular/core';
import * as _ from 'lodash';
@Component({
selector: 'app-component-info-header',
template: `
<div class="info-header">
<div class="info-header-... | TypeScript | src/app/components/component-info-header.component.ts | cloukit/cloukit.github.io | mit | 6,126 | 209 | codeparrot/github-code |
a330b3db355431438f0734c70da5865493274d433727a0bb865365e2a67d8b4d | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>elpi: Not compatible ๐ผ</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" r... | HTML | clean/Linux-x86_64-4.08.1-2.0.5/released/8.7.1+1/elpi/1.12.1.html | coq-bench/coq-bench.github.io | mit | 7,627 | 178 | codeparrot/github-code |
67b5d9e7f99961714f125fa56090c5d2ab567e10aefc77869a2bf125191df281 | ๏ปฟusing System;
using System.Collections.Generic;
using System.Linq;
using System.Security.AccessControl;
using System.Text;
using System.Threading.Tasks;
namespace DynamicSerializer.Test
{
public class IX
{
public int IP { get; set; }
}
[Serializable]
public class A
{
public A()
{
... | C# | DynamicSerializer.Test/TestClasses.cs | conwid/IL-boss | mit | 2,151 | 138 | codeparrot/github-code |
7b0deddd38c1295b4f740198baa45bd237fc081ff7979e7e7ab87ca2a48bdd73 | #ifndef _HC_EXCEPTION_HPP_
#define _HC_EXCEPTION_HPP_
//////////////
// Includes //
#include <exception>
#include <string>
//////////
// Code //
// To distinguish between different HCExceptions.
enum HCType {
// When the game cannot open the SDL window.
HC_WINDOW_EXCEPTION,
// When the game cannot load ... | C++ | src/hcexception.hpp | crockeo/hc | mit | 707 | 36 | codeparrot/github-code |
48bec84055c2f693ae5734940185a4c4fd1155d26742234d0b5cacce06cf7de2 | require "uri"
require "net/http"
module JingdongFu
module Rest
class << self
def get(url, hashed_vars)
res = request(url, 'GET', hashed_vars)
process_result(res, url)
end
def post(url, hashed_vars)
res = request(url, 'POST', hashed_vars)
process_res... | Ruby | lib/rest.rb | nioteam/jingdong_fu | mit | 2,853 | 96 | codeparrot/github-code |
8f354636a2b78fba50d08f6e597f58e6cc53c39b2d1ab0bf3d20ed18b3ffe905 | package source
import (
log "github.com/Sirupsen/logrus"
"github.com/howardplus/lirest/describe"
"github.com/howardplus/lirest/util"
"os"
"strconv"
"strings"
"time"
)
// Extractor returns a generic data based
// on the converter.
// An object that implements the Extractor interface needs
// to know where to ge... | GO | source/extract.go | howardplus/lirest | mit | 3,669 | 151 | codeparrot/github-code |
07e0e0b82a96d0b4116ae9fa391ee8ee3625042e4084c5cf23d30867a9e63419 | //this controller simply tells the dialogs service to open a mediaPicker window
//with a specified callback, this callback will receive an object with a selection on it
angular.module('umbraco')
.controller("Umbraco.PropertyEditors.ImageCropperController",
function ($rootScope, $routeParams, $scope, $log, media... | JavaScript | src/Umbraco.Web.UI.Client/src/views/propertyeditors/imagecropper/imagecropper.controller.js | zidad/Umbraco-CMS | mit | 4,659 | 129 | codeparrot/github-code |
69b5de395a67a1cf2c69b7e6465a06750a77408e6b6b31ac2667aa720c7ed459 | package data_struct.in_class.d10_02;
/**
* A class to test basic 'Object' methods
*
* @author Eddie Gurnee
* @version 10/02/13
* @see TestingSam
*
*/
public class Sam {
public int mikesplan = 8;
/**
* No argument constructor for the Sam class
*
*/
public Sam() {
}
/**
* Indicates if some other... | Java | complete/src/data_struct/in_class/d10_02/Sam.java | pegurnee/2013-03-211 | mit | 817 | 42 | codeparrot/github-code |
bf97dd030d86080be7d5ff2e2a076fadfe1f9e146885d23e5d56b527cc42d8c2 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>URI.js - URI-Template</title>
<meta name="description" content="URI.js is a Javascript library for working with URLs." />
<script src="jquery-3.6.0.min.js" t... | HTML | uri-template.html | medialize/URI.js | mit | 14,621 | 240 | codeparrot/github-code |
96cf5a85a055c0eea37ab2d09c8b55df9036b1a5f9f218ee7e311ad2fd31d0bc | --[[
DVScrollBar
Usage:
Place this control in your panel. You will ideally have another panel or
control which is bigger than the original panel. This is the Canvas.
scrollbar:SetUp( _barsize_, _canvassize_ ) should be called whenever
the size of your 'canvas' changes.
scrollbar:GetOffset() can be called ... | Lua | lua/vgui/dvscrollbar.lua | OctoEnigma/shiny-octo-system | mit | 5,940 | 287 | codeparrot/github-code |
38258fd320ba65c794aee2d8ba998da511a6a05d5f03ac72111274c304452828 |
<!DOCTYPE html>
<html ng-app="myapp">
<head>
<title>TODO supply a title</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="<?php echo base_url() ?>css/bootstrap.min.css">
<style>
</styl... | PHP | application/views/home.php | madhawa-se/scpost | mit | 3,962 | 105 | codeparrot/github-code |
84250f091024a667d8d27c399ba99dfdfc6b6f1ad756c8d4b99f70f049beee0c | <!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>KeyExportOptions | picturepark-sdk-v1-pickers API</title>
<meta name="description" content="Documentation for picturepark-sdk-v1-pickers API">
<meta name="viewport" content="width... | HTML | docs/picturepark-sdk-v1-pickers/api/interfaces/_crypto_.keyexportoptions.html | Picturepark/Picturepark.SDK.TypeScript | mit | 9,186 | 214 | codeparrot/github-code |
4afe128c5ebdaf0dec691abb79d08bdc029b5a3a22ddbd7a64d94e8099338d2b | #include "Common.h"
#include "Script.h"
#include <atlimage.h>
#include <hidsdi.h>
#include <SetupAPI.h>
#define HID_SFIP 'SFIP'
#define HID_X52P 'X52P'
#define HID_UNKN 'UNKN'
// CHECKME : Do we still need all this code since we now have a GetSerialNumber() in the DO API?
DeviceManager *DevMan = DeviceManager::G... | C++ | Lua Module/Device.cpp | chrilith/Passerelle | mit | 6,949 | 288 | codeparrot/github-code |
4b782832c24f3e870d4bec9649398bb434ccb5bba30ebdb379da399f6c1705f8 | game.TitleScreen = me.ScreenObject.extend({
init: function(){
this.font = null;
},
onResetEvent: function() {
me.audio.stop("theme");
game.data.newHiScore = false;
me.game.world.addChild(new BackgroundLayer('bg', 1));
me.input.bindKey(me.input.KEY.ENTER, "enter", true);
me.input.bind... | JavaScript | js/screens/title.js | jeshuamaxey/flappy-tom | mit | 2,176 | 65 | codeparrot/github-code |
7f37525b4f50df43ab6f9c0b04c22e80ae70385f14eb726d0a9adeb780062ee9 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>First Steps Into PHP</title>
</head>
<body>
<form>
X: <input type="text" name="num1" />
Y: <input type="text" name="num2" />
Z: <input type="text" name="num3" />
<input type="submit" />
</form>
<?php
if (!... | PHP | L8-PHP-Syntax- Basic-Web-Ex/04. Product of 3 Numbers.php | leonnybg/SoftUni-SoftwareTechnologies-july2017 | mit | 895 | 38 | codeparrot/github-code |
946221a73726f86fd4703732122bcd74285bd3446f239a5eb7a3d0f014938e7f | 'use strict';
var _ = require('underscore'),
Util = require('../../shared/util'),
Base = require('./base'),
Action = require('../../action'),
Types = require('./types');
var _parent = Base.prototype;
var RandomWalk = Util.extend(Base, {
properties: ['walkPropability'],
... | JavaScript | goldmine/server/brain/strategy/randomWalk.js | DirtyHairy/mayrogue-deathmatch | mit | 1,069 | 48 | codeparrot/github-code |
d4367f31fd24b1524f1c3b6056aa968771dd3b53c92e11f08663d7db97acc52e | <?php
/* SRVDVServerBundle:ChangePassword:changePassword.html.twig */
class __TwigTemplate_e5da0f0553fed635f2774271a2ef3982b389e99e651b1a8527dd0c0b6ca90bd7 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$t... | PHP | app/cache/dev/twig/1b/1bf602c2860b97f0808215b5052e0f5850091179d1670e489003312b329f5b04.php | youcefboukersi/serveurdevoeux | mit | 3,227 | 74 | codeparrot/github-code |
8b2c928a4c54d2c2ec80b63c237e99d00334304daaa38f6a7d0fd50ade0e5236 | //
// Created by root on 07.05.17.
//
#ifndef BASICMODEL_BASEMANAGER_H
#define BASICMODEL_BASEMANAGER_H
#include <mysql++.h>
#include <vector>
#include "dbConfig.h"
namespace model {
namespace manager {
template<class ModelName>
class baseManager {
public:
baseManager() {
... | C | models/baseManager.h | zwirec/TravelMate | mit | 1,656 | 69 | codeparrot/github-code |
980ada11c3d41977eacd4a8c409ac58c6e560edfa26b79c5c069abeab5e2818c | <?php
declare(strict_types=1);
/*
* This file is part of eelly package.
*
* (c) eelly.com
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Eelly\SDK\Order\Api;
use Eelly\SDK\Order\Service\OfflineInterface;
/**
* @aut... | PHP | src/SDK/Order/Api/Offline.php | junming4/eelly-sdk-php | mit | 641 | 36 | codeparrot/github-code |
4c4a34568e61d7211e0e20fa7a5afc15589130818ac01c5919d32d3b0d7f0f98 | #!/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-WTCalendarController_Example/Pods-WTCalendarController_Example-frameworks.sh | sbishopwta/WTCalendarController | mit | 3,624 | 92 | codeparrot/github-code |
fa45f599bb4a6688660236cf99bc1e36a7053939735da61c8a1fa54d5c6e5e1e | <?php
/*
* Gallery - a web based photo album viewer and editor
* Copyright (C) 2000-2004 Bharat Mediratta
*
* 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 version 2 of the License... | PHP | bilder/gallery/classes/postnuke0.7.1/User.php | TelemarkAlpint/telemark-2004 | mit | 2,614 | 83 | codeparrot/github-code |
b9dc88c682fb201297b5079358b23622025ba8fd7bb7922f976eb710a4707dc4 | /*
* Hibernate, Relational Persistence for Idiomatic Java
*
* Copyright (c) 2011, Red Hat Inc. or third-party contributors as
* indicated by the @author tags or express copyright attribution
* statements applied by the authors. All third-party contributions are
* distributed under license by Red Hat Inc.
*
* T... | Java | OpenBeaconPackage/libraries/hibernate-release-4.2.7.SP1/project/hibernate-core/src/test/java/org/hibernate/test/annotations/cascade/NonNullableCircularDependencyCascadeTest.java | HerrB92/obp | mit | 2,167 | 74 | codeparrot/github-code |
c60609fe0c54eb1fecea6d3d048275cf568d51a74b8f7e86a45929454714738f | /*******************************************************************************
* Filename: irc_comm.h
*
* These are functions and definitions that can be used for both the client
* and the server programs.
*
* Written by: James Ross
*****************************************************************************... | C | shared/include/irc_comm.h | sedihglow/scratch_IRC_server | mit | 4,551 | 129 | codeparrot/github-code |
10bcff511873de79f9617e4f417c4cccb86a3e04751ce15d331fe9ecdc89a48b |
import React, { PropTypes, Component } from 'react';
import { Breadcrumb, Table, Button, Col } from 'react-bootstrap';
import cx from 'classnames';
import _ from 'lodash';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './ProductList.css';
import Link from '../Link';
class ProductList ... | JavaScript | src/components/ProductList/ProductList.js | lisong/code-push-web | mit | 3,161 | 116 | codeparrot/github-code |
1d966aa4aabf375d2c17a9aa766e0b4e59002cbc068c0da26dc1edc19178dc32 | """
Given a string that contains only digits 0-9 and a target value, return all possibilities to add binary operators (not
unary) +, -, or * between the digits so they evaluate to the target value.
Examples:
"123", 6 -> ["1+2+3", "1*2*3"]
"232", 8 -> ["2*3+2", "2+3*2"]
"105", 5 -> ["1*0+5","10-5"]
"00", 0 -> ["0+0", "... | Python | 282 Expression Add Operators.py | algorhythms/LeetCode | mit | 1,769 | 52 | codeparrot/github-code |
8cede9a87243b1b024a6b762a1c509e0bd5f90cc0090dc445140369761a688ec | package softuni.io;
import org.springframework.stereotype.Component;
import java.io.*;
@Component
public class FileParser {
public String readFile(String path) throws IOException {
StringBuilder stringBuilder = new StringBuilder();
try (InputStream is = this.getClass().getResourceAsStream(path);... | Java | Java-DB-Fundamentals/DatabasesFrameworks-Hibernate&SpringData/EXAMS/exam/src/main/java/softuni/io/FileParser.java | yangra/SoftUni | mit | 1,123 | 39 | codeparrot/github-code |
4dae3f356d34072e49e7d1499f9773eeb4b828278d0fb727b898eda25c36f4fd | function closeObject(id) {
document.getElementById(id).style.display = 'none';
}
function openObject(id) {
document.getElementById(id).style.display = 'block';
}
function openClose(id){
if (document.getElementById(id).style.display == 'block'){
console.log('intenta cerrar');
closeOb... | JavaScript | src/RegistroEventos/CoreBundle/Resources/public/js/eventos.js | jogianotti/RegistroEventosIntendencia | mit | 5,274 | 153 | codeparrot/github-code |
a6055deb6eaaeeb98748c1e3dfa066ff13303d03d2169bfc96726d9207d9af4c | <!DOCTYPE html>
<html lang='en' dir='auto'><head>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<meta name='description' content='The last weekend my colleagues and I had a nice time moving an existing application from a bare-metal infrastructure to AWS. I would like to s... | HTML | inge.4pr.es/public/2014/10/15/2014-10-15-a-smooth-migration-to-the-cloud/index.html | inge4pres/blog | mit | 15,775 | 311 | codeparrot/github-code |
40829ff2f0f4da75604c6d20cbf50206a31d28afc3477b080d2d57059a3e63db | import {Component, OnInit, ElementRef,} from '@angular/core';
import {FileSelect} from './file.select';
import {NgIf} from '@angular/common';
import {NgForm} from '@angular/common';
import {CostImport, CostImportService} from '../../../services/cost-import-service';
import {FourcastService} from '../../../services/f... | TypeScript | src/app/components/costImports/simple.cost.import.setup.ts | chriscurnow/angular2-webpack-starter | mit | 3,556 | 147 | codeparrot/github-code |
2ab64ec304f966156ecf414990f93c6c08dc916349b73f723b31e5a9c923ae64 | <?php
/*
* This file is part of the MopaBootstrapBundle.
*
* (c) Philipp A. Mohrenweiser <phiamo@googlemail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Mopa\Bundle\BootstrapBundle\Menu\Factory;
use Knp\Menu\Fa... | PHP | Menu/Factory/MenuExtension.php | naitsirch/mopa-bootstrap-bundle | mit | 3,307 | 116 | codeparrot/github-code |
5779c527cacf9a6ddfbbb8ea0cd7ca5b80acca3e65658c5c5cb19db35be3015c | <?php
require_once "class_db.php";
class qly_pages extends db{
public function LayTieuDeKD($idPa){
$sql="SELECT TieuDeKD FROM mk_pages WHERE idPa = '$idPa'";
$kq = mysql_query($sql,$this->conn);
$row_trang = mysql_fetch_assoc($kq);
return $row_trang['TieuDeKD'];
}
public function LayTieuDe($idPa){... | PHP | san-phu-khoa/m/lib/class_pages.php | pkapollo/phongkhamapollo.com | mit | 4,795 | 152 | codeparrot/github-code |
de0682b86cc2bb591ba70dba46ea176fa3ac8ed0a6f1e59ccbad198c0a837fdc | /* Copyright (c) 2012 Jess VanDerwalker <washu@sonic.net>
* All rights reserved.
*
* data.h
*
* 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 ... | C | src/libcompositewm/data.h | TeamEuclid/euclid | mit | 2,223 | 80 | codeparrot/github-code |
17136bf5bb75c74becefda11d5a4c3a4eb29495c88190e20f3cd7c8f5e60391f | <!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="es"> <!--<![endif]-->
<head>
<meta char... | HTML | index.html | agustinl/wallery | mit | 7,356 | 200 | codeparrot/github-code |
1bf5c9e94b2d35dfdd27b8d9bdbee69199782dc89eeae57009190dc5832c7b84 | /**
*
* app.js
*
* This is the entry file for the application
*
*/
import FilmLocationSearchComponent from '../MovieSearchApp/Containers/FilmSearchContainer/FilmSearchComponent';
import AppComponent from '../CommonComponent/app.js';
import React from 'react';
import { Router, Route, IndexRoute, browserHistory } fr... | JavaScript | js/Routes/AppRouter.js | anil26/MovieSearchGoogleMaps | mit | 597 | 35 | codeparrot/github-code |
51d08b389188362ae88d38921513889fe09c089779a012b4d15e1d255f825789 | /* Accordion directive */
app.directive('vmfAccordionContainer', ['$compile', function($compile) {
return {
restrict: 'EA',
scope: {
type: '@',
headers: '=',
accData: '=',
selAcc: '=',
customClass:'='
},
link: function(scop... | JavaScript | dev/modules/Accordion/accordionDirectives.js | anandharshan/Web-components-DD | mit | 8,055 | 203 | codeparrot/github-code |
4cbc59845f01ba3d0ccc64b6b596e824b43517cb4452b9b45f7db50cb0341939 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package de.comci.bigbib;
import com.mongodb.BasicDBObject;
import com.mongodb.DBObject;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
import javax.xml.bind.annotation.XmlAccessType;
import ... | Java | src/main/java/de/comci/bigbib/PeristentBibTexEntry.java | maiers/bigbib | mit | 4,524 | 125 | codeparrot/github-code |
a705dd8d89b781c30cc3d08c9e07fff4c9ddf3c932f961ef4cf5172562b9a7c4 | module Admin::BaseHelper
include ActionView::Helpers::DateHelper
def subtabs_for(current_module)
output = []
AccessControl.project_module(current_user.profile.label, current_module).submenus.each_with_index do |m,i|
current = (m.url[:controller] == params[:controller] && m.url[:action] == params[:ac... | Ruby | app/helpers/admin/base_helper.rb | jasondew/cola.rb | mit | 8,319 | 235 | codeparrot/github-code |
3423a3c55f9d1c22b4183d032c3f0733e1065258b6f7dbaa83f5fdfc80ebd41d | <?php
namespace Editionista\WebsiteBundle\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configura... | PHP | src/Editionista/WebsiteBundle/Controller/TagController.php | fabstei/editionista | mit | 2,557 | 95 | codeparrot/github-code |
15eda75ca14afe44a6a93ec586bc3657d4353581de0292a5083c2e310512ad54 | ๏ปฟusing System;
using System.Reflection;
namespace Light.DataCore
{
abstract class DynamicFieldMapping : FieldMapping
{
public static DynamicFieldMapping CreateDynmaicFieldMapping (PropertyInfo property, DynamicCustomMapping mapping)
{
DynamicFieldMapping fieldMapping;
Type type = property.PropertyType;
... | C# | Light.DataCore/Mappings/DynamicFieldMapping.cs | aquilahkj/Light.DataCore | mit | 1,879 | 56 | codeparrot/github-code |
42e6e05835ef627aed68d71dbf3c9d38f451227229db9858a06e9f3119546e4c | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>infotheo: Not compatible ๐ผ</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.cs... | HTML | clean/Linux-x86_64-4.13.1-2.0.10/released/8.13.0/infotheo/0.3.2.html | coq-bench/coq-bench.github.io | mit | 10,075 | 204 | codeparrot/github-code |
3207c6f6b0eb77e0fc7207d13d7641877c9a9071edbdc9d811591d0433c4dcaf | <?php
if(!defined('BASEPATH'))
die;
class MY_Controller extends CI_Controller
{
public $session;
public $user;
function __construct(){
parent::__construct();
$this->output->set_header('X-Powered-By: ' . config_item('system_vendor'));
$this->output->set_header('X-D... | PHP | application/core/MY_Controller.php | iqbalfn/admin | mit | 5,404 | 167 | codeparrot/github-code |
fe1a8b7686a042a4175cd70d51a1a5c0b47dbe04b054cc4e149ada3d78a3917c | ๏ปฟusing UnityEngine;
using System.Collections;
public class GravitySwitch : MonoBehaviour
{
public float GravityStrength;
float momentum;
float click;
public bool GameState;
bool GravityState;
public GameObject Explosion;
public GameObject[] Jets;
public GameObject[] CharacterPieces;
public Vector3 hitpositi... | C# | Assets/Code/GravitySwitch.cs | parodyband/Polarity | mit | 1,925 | 91 | codeparrot/github-code |
9174958cc32ed7a12153cda8af19a1d0c66e8fec0423788b1c238159e773d192 | /*
* Copyright 2017 Max Schafer, Ammar Mahdi, Riley Dixon, Steven Weikai Lu, Jiaxiong Yang
*
* 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 t... | Java | app/src/main/java/com/example/lit/habit/Habit.java | CMPUT301F17T06/Lit | mit | 8,243 | 242 | codeparrot/github-code |
cbf4e8c261094546f450b0f5e70b1288701f620e0728eecf604dde20ea293560 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Privacy Policy</title>
<style>
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
padding: 1em;
}
</style>
</head>
<body>
<h2... | HTML | _site/privacy.html | angelsubirana/bobzon | mit | 6,080 | 79 | codeparrot/github-code |
02c199c4787b031ee21a5c2d47c28eb954eabcdbcb89a2f2ef2a091c0634f49e | package org.vitrivr.cineast.core.util.audio.pitch.tracking;
import java.util.LinkedList;
import java.util.List;
import org.apache.commons.math3.stat.descriptive.SummaryStatistics;
import org.vitrivr.cineast.core.util.audio.pitch.Pitch;
/**
* This is a helper class for pitch tracking. It represents a pitch contour, t... | Java | cineast-core/src/main/java/org/vitrivr/cineast/core/util/audio/pitch/tracking/PitchContour.java | vitrivr/cineast | mit | 5,638 | 218 | codeparrot/github-code |
24e03982416ac1931863e0bf3c498ede7b1b2cb3102e88724c07a8d3858c6b17 | # Jrails-ui
module ActionView
module Helpers
module JavaScriptHelper
def hash_to_jquery(hash)
'{'+hash.map { |k,v|
[k,
case v.class.name
when 'String'
"'#{v}'"
when 'Hash'
hash_to_jquery(v)
else
v.t... | Ruby | lib/jrails_ui.rb | jadencarver/jquery_ui | mit | 1,890 | 68 | codeparrot/github-code |
a2a6daacfb8b70af0f29f3787db964943c517fd7d8284b451c355d057b669b01 | /*
* Copyright (c) 2020 by Stefan Schubert under the MIT License (MIT).
* See project LICENSE file for the detailed terms and conditions.
*/
package de.bluewhale.sabi.webclient.rest.exceptions;
import de.bluewhale.sabi.exception.ExceptionCode;
import de.bluewhale.sabi.exception.MessageCode;
import de.bluewhale.sa... | Java | sabi-webclient/src/main/java/de/bluewhale/sabi/webclient/rest/exceptions/TankMessageCodes.java | StefanSchubert/sabi | mit | 1,112 | 43 | codeparrot/github-code |
ed912b4532c0a9a325aa0305328eabd5e3014dd62193bd3b1f10864c02733171 | <?php
namespace Shop\MainBundle\Data;
use Doctrine\Common\Persistence\ObjectRepository;
use Shop\MainBundle\Entity\Settings;
/**
* Class ShopSettingsResource
* @package Shop\MainBundle\Data
*/
class ShopSettingsResource {
/**
* @var ObjectRepository
*/
protected $settingsRepository;
/**
... | PHP | src/Shop/MainBundle/Data/ShopSettingsResource.php | ja1cap/shop | mit | 1,014 | 55 | codeparrot/github-code |
79ad90bbd254a04aa62a59cfa62476e99f7d523a1a3d12c2e19c636bb61a4caf | var builder = require("botbuilder");
var botbuilder_azure = require("botbuilder-azure");
const notUtils = require('./notifications-utils.js');
module.exports = [
function (session) {
session.beginDialog('notifications-common-symbol');
},
function (session, results) {
var pair = results.res... | JavaScript | messages/dialogs/notifications-add-interval.js | jantielens/CryptoBuddy | mit | 1,193 | 35 | codeparrot/github-code |
43b36a51b5ae0f9daee3b0944b4be43fbe330c084036045ac6f1fa0bf47411b2 | /*
Copyright c1997-2014 Trygve Isaacson. All rights reserved.
This file is part of the Code Vault version 4.1
http://www.bombaydigital.com/
License: MIT. See LICENSE.md in the Vault top level directory.
*/
#ifndef vinstant_h
#define vinstant_h
/** @file */
#include "vtypes.h"
#include "vstring.h"
class VCodePoint;... | C | source/containers/vinstant.h | trygve-isaacson/code-vault | mit | 74,529 | 1,401 | codeparrot/github-code |
78a03ac592fdfce317a2a41d2c3bf9b601423fbdc32202fae3cf65c6365803ed | package com.ruenzuo.weatherapp.adapters;
import android.app.Activity;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import com.ruenzuo.weatherapp.R;
import com.ruenzuo.wea... | Java | WeatherApp/src/main/java/com/ruenzuo/weatherapp/adapters/CitiesAdapter.java | Ruenzuo/android-facade-example | mit | 1,106 | 38 | codeparrot/github-code |
0505173ed0046181ba158d39012026bc61c52024fc1fad23057314b050c6767a | package tehnut.resourceful.crops.compat;
import mcp.mobius.waila.api.*;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.math... | Java | src/main/java/tehnut/resourceful/crops/compat/CompatibilityWaila.java | TehNut/ResourcefulCrops | mit | 2,650 | 72 | codeparrot/github-code |
4f6cd4196dc668418cb8aab76132ee3ff32ab12c2994bf716c73920193e696b8 | import _ from 'lodash';
/**
* Represents a channel with which commands can be invoked.
*
* Channels are one-per-origin (protocol/domain/port).
*/
class Channel {
constructor(config, $rootScope, $timeout, contentWindow) {
this.config = config;
this.$rootScope = $rootScope;
this.$timeout... | JavaScript | src/ng-sharepoint/Channel.js | beyond-sharepoint/sp-angular-webpack | mit | 4,352 | 142 | codeparrot/github-code |
0ad2160871a5bf33176dc0f113641451e299d298d340ef0b85c531d0ab42c04a | #ifndef VIEWER_H
#define VIEWER_H
#include "common.h"
#include "drawable.h"
#include "controller.h"
class Viewer
{
public:
bool glfw_is_up;
GLFWwindow* window;
GLuint VertexArrayID;
int width;
int height;
Controller controls;
std::vector<Drawable *> drawables;
Viewer();
void add( Drawabl... | C | src/viewer.h | lrdennison/mcpe-view | mit | 635 | 55 | codeparrot/github-code |
6a8cbc1a5a406407c5944c385f1cca6f0c1469bc54c178f112371ae0b260b9f5 | import { autoinject } from 'aurelia-framework';
import { Customers } from './customers';
import { Router } from 'aurelia-router';
@autoinject()
export class List {
heading = 'Customer management';
customerList = [];
customers: Customers;
router: Router;
constructor(customers: Customers, router: Router) {
... | TypeScript | client-ts/src/modules/customer/list.ts | doktordirk/aurelia-authentication-loopback-sample | mit | 657 | 32 | codeparrot/github-code |
6b98be383aaac80d55615cb780bfe766530fadb535b1dfe6be7013e3f8e71c6d | /**
* Created by huangxinghui on 2016/1/20.
*/
var $ = require('jquery')
var Widget = require('../../widget')
var plugin = require('../../plugin')
var TreeNode = require('./treenode')
var Tree = Widget.extend({
options: {
'labelField': null,
'labelFunction': null,
'childrenField': 'children',
'aut... | JavaScript | src/components/tree/index.js | huang-x-h/Bean.js | mit | 6,725 | 289 | codeparrot/github-code |
c995dfdc1c996a178150d442a52c1f37918deaa9c14bfe4aa9e14a332c41fa1d | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Advent of Code 2015 from http://adventofcode.com/2015/day/5
Author: James Walker
Copyrighted 2017 under the MIT license:
http://www.opensource.org/licenses/mit-license.php
Execution:
python advent_of_code_2015_day_05.py
--- Day 5: Doesn't He Have Intern-Elves For ... | Python | 2015/Day05/advent_of_code_2015_day_05.py | JDSWalker/AdventOfCode | mit | 6,750 | 170 | codeparrot/github-code |
a466b57b4aee02628ab20ab190cf27791ed847b9086f69829d6aa4ea4178fe11 | /**
* Test program.
*
* Copyright (c) 2015 Alex Jin (toalexjin@hotmail.com)
*/
#include "test/test.h"
#include <iostream>
namespace {
void help() {
std::cout << "Usage: testalgo -a" << std::endl;
std::cout << " testalgo <test-case-name>" << std::endl;
std::cout << std::endl;
std::cout << "Options:" <<... | C++ | test/main.cpp | toalexjin/algo | mit | 974 | 51 | codeparrot/github-code |
fb4fcf89237448d10d5bcb6108d1452903bb9c7bbaaade8fb583933f00e8daf0 | function solve(args) {
function biSearch(array, searchedNumber, start, end) {
for (var i = start; i <= end; i += 1) {
if (+array[i] === searchedNumber) {
return i;
}
}
return -1;
}
var data = args[0].split('\n'),
numberN = +data.shift()... | JavaScript | Homeworks/JS Fundamentals/07. Arrays/07. Binary search/binary-search.js | jorosoft/Telerik-Academy | mit | 1,110 | 37 | codeparrot/github-code |
4236e63f01ab00ff02cc5284bee3a9a1d9cb1f7cdb2a1cea05c9b9423cd19088 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | Java | java/ql/test/stubs/apache-commons-lang3-3.7/org/apache/commons/lang3/text/StrLookup.java | github/codeql | mit | 1,213 | 37 | codeparrot/github-code |
72375c8c4108127caf0ac0ba58a321dad7a803a474d76e9fbbe672b1bc5eea90 | const path = require('path');
require('dotenv').config();
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const { AureliaPlugin } = require('aurelia-webpack-plugin');
const { optimize: {... | JavaScript | tr-app/webpack.config.js | Make-IT-TR/TechRadar | mit | 7,154 | 172 | codeparrot/github-code |
6d06ae271cb4704a2cc297354f11ddbcd472a38e29c5195b442decc4dd608204 | <!-- Begin Footer -->
<footer id="footer" class="footer">
<div class="row">
<div class="pull-left col-md-6 col-xs-6">
<div class="g-plusone" data-size="medium" data-annotation="inline" data-width="300" data-href="{{ site.url }}"></div>
</div>
<div class="logo logo-footer logo-gray pull-right"></div>
</div>
... | HTML | _includes/footer.html | gdg-x/zeppelin | mit | 1,836 | 47 | codeparrot/github-code |
3d6b17bf1bfb6c07573e7940d90ffe8725e5ecbc80f5e8796fbdb31cd6fad099 | #!/bin/env/python
# coding: utf-8
import logging
import os
import time
import uuid
from logging import Formatter
from logging.handlers import RotatingFileHandler
from multiprocessing import Queue
from time import strftime
import dill
from .commands import *
from .processing import MultiprocessingLogger
class TaskP... | Python | FancyLogger/__init__.py | peepall/FancyLogger | mit | 27,844 | 472 | codeparrot/github-code |
9f619b25114fc9ad904f3cd4d998a23c89188011be1cfe535a36a95e9607499d | package com.rebuy.consul;
import com.ecwid.consul.v1.ConsulClient;
import com.ecwid.consul.v1.QueryParams;
import com.ecwid.consul.v1.Response;
import com.ecwid.consul.v1.agent.model.NewService;
import com.ecwid.consul.v1.catalog.model.CatalogService;
import com.rebuy.consul.exceptions.NoServiceFoundException;
import ... | Java | src/test/java/com/rebuy/consul/ConsulServiceTest.java | rebuy-de/consul-java-client | mit | 5,239 | 138 | codeparrot/github-code |
4247b02c5c8189e570952c4a96aa175cc72a705e139d215eba7da2c1ab2861e4 | ๏ปฟusing System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xam... | C# | XamarinFormsHello/XamarinFormsHello.WinPhone/MainPage.xaml.cs | xamarin-samples/XamarinFormsHello | mit | 1,555 | 51 | codeparrot/github-code |
467eaad007746ed09db1e0345599fdad1d6c691912766b9eab6c6c6be1384089 | <?php
namespace LeadCommerce\Shopware\SDK\Query;
use LeadCommerce\Shopware\SDK\Util\Constants;
/**
* Class CustomerQuery
*
* @author Alexander Mahrt <amahrt@leadcommerce.de>
* @copyright 2016 LeadCommerce <amahrt@leadcommerce.de>
*/
class CustomerQuery extends Base
{
/**
* @var array
*/
protec... | PHP | src/LeadCommerce/Shopware/SDK/Query/CustomerQuery.php | LeadCommerceDE/shopware-sdk | mit | 881 | 45 | codeparrot/github-code |
2f00515cefc5e98e27c5e4152e0f20def694f27cd70127c7bd4ddc5d79627fcc | --- @module vline
local BASE = (...):match("(.-)[^%.]+$")
local core = require( BASE .. "core" )
local style = require( BASE .. "style" )
local group = {}
-------------------------------------------------------------------------------
-- vertically allign all elements
-------------------------------------------------... | Lua | imgui/group.lua | cohadar/love-graphics-experiments | mit | 3,459 | 113 | codeparrot/github-code |
c943810ef068a7044a47ab6aa5614a246a211736fa689b3fd5c93aba37ba355c | /** @jsx m */
import m from 'mithril';
import { linkTo, hrefTo } from '@storybook/addon-links';
const Main = {
view: vnode => (
<article
style={{
padding: 15,
lineHeight: 1.4,
fontFamily: '"Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif',
backgroundColo... | JavaScript | lib/cli/generators/MITHRIL/template-csf/stories/Welcome.js | storybooks/react-storybook | mit | 4,185 | 180 | codeparrot/github-code |
6a9687372526d4a211793f1464eadd486bfce8724acc8dbc1920c752e62df15e | from simtk.openmm import app
import simtk.openmm as mm
from simtk import unit
def findForce(system, forcetype, add=True):
""" Finds a specific force in the system force list - added if not found."""
for force in system.getForces():
if isinstance(force, forcetype):
return force
if add==True:
system.... | Python | pyha/openmm.py | mlund/pyha | mit | 2,333 | 64 | codeparrot/github-code |
89cf2b2c05600b1b2f20b97592b3726c204d855534929a44ce6e2930e6f2df10 | package context
import (
"github.com/Everlane/evan/common"
"github.com/satori/go.uuid"
)
// Stores state relating to a deployment.
type Deployment struct {
uuid uuid.UUID
application common.Application
environment string
strategy common.Strategy
ref string
sha1 string
flags ma... | GO | context/deployment.go | Everlane/evan | mit | 5,804 | 237 | codeparrot/github-code |
4fabfa1ed3c6877062c0dad00ce285b351ec05fb251f44bfefa5b847d0b07ccc | <!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-... | HTML | index.html | Sponis/Blue-Project | mit | 12,397 | 245 | codeparrot/github-code |
89b4993d887343a597f45f8ae03cd2f0d41d2846582228a3f29b9796b719a14e | package analytics
import (
"fmt"
elastic "gopkg.in/olivere/elastic.v3"
)
//Elasticsearch stores configuration related to the AWS elastic cache isntance.
type Elasticsearch struct {
URL string
IndexName string
DocType string
client *elastic.Client
}
//Initialize initializes the analytics engine.
fun... | GO | analytics/elasticsearch.go | awkhan/go-utility | mit | 979 | 52 | codeparrot/github-code |
620dde67640d6183ef5292d4b8af0579df3e111c4d286b462a76d1304992c19a | <!doctype html>
<html>
<head>
<title>Code coverage report for wizard/test/wizardSpecs.js</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="content-language" content="en-gb">
<link rel='stylesheet' href='../../prettify.css'>
<style type='text/... | HTML | coverage/Chrome 25.0 (Mac)/wizard/test/wizardSpecs.js.html | odwayne/angular-kata | mit | 23,199 | 778 | codeparrot/github-code |
a328db0d7d8111e68ddebb919a1a10312104099e4d517c36b97f1e288dbade97 | module Tire
module Model
module Persistence
# Provides infrastructure for storing records in _Elasticsearch_.
#
module Storage
def self.included(base)
base.class_eval do
extend ClassMethods
include InstanceMethods
end
end
mo... | Ruby | lib/tire/model/persistence/storage.rb | HenleyChiu/tire | mit | 2,068 | 82 | codeparrot/github-code |
484e2bda962a9d83730dcc30cbb8733cebf4667dfdb337d6d39a868f709e81e5 | class ItemsController < ApplicationController
def create
item = Item.new(item_params)
item.user_id = @user.id
if item.save
render json: item, status: 201
else
render json: item.errors, status: 422
end
end
def destroy
item = find_item
item.destroy
head 204
end
def index
render json: @user... | Ruby | app/controllers/items_controller.rb | StuartPearlman/ClosetKeeperAPI | mit | 701 | 44 | codeparrot/github-code |
8d1de67ee4279bb43cc56549413ae34787a2fc7c6fc0200d2f032218d3e4ce12 | /****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the QtNetwork module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees holding valid comm... | C | Old/3rdParty/linux_headers/qt/QtNetwork/qhttpmultipart.h | Silveryard/Car_System | mit | 3,856 | 122 | codeparrot/github-code |
db2b071f7b74809db61102f9b2eba5e0c2ffd118f1cb070ee9393091f3397093 | module Linter
class Base
def self.can_lint?(filename)
self::FILE_REGEXP === filename
end
def initialize(hound_config:, build:, repository_owner_name:)
@hound_config = hound_config
@build = build
@repository_owner_name = repository_owner_name
end
def file_review(commit_fil... | Ruby | app/models/linter/base.rb | Koronen/hound | mit | 1,430 | 67 | codeparrot/github-code |
cf99851a5e5955c3c7a615913555c9afb3a35efbc0eab2a2b94c59b16dfd761e | ๏ปฟusing System;
using System.Linq;
using Cresce.Datasources.Sql;
using Cresce.Models;
using NUnit.Framework;
namespace Cresce.Business.Tests.Integration.Sql
{
[TestFixture]
internal class InvoiceRepositoryTests : SqlTests
{
private SqlInvoiceRepository _repository;
private Patient _patient;
... | C# | Cresce.Tests.Integration/Sql/InvoiceRepositoryTests.cs | AlienEngineer/Cresce | mit | 3,908 | 132 | codeparrot/github-code |
0d999b2a3547633805cfd0c39bf6e9235082714f175183c406e99693e02a4628 | import { DOCUMENT } from '@angular/common';
import { ApplicationRef, ComponentFactoryResolver, Inject, Injectable, Injector } from '@angular/core';
import { BaseService } from 'ngx-weui/core';
import { ToptipsComponent, ToptipsType } from './toptips.component';
@Injectable({ providedIn: 'root' })
export class ToptipsS... | TypeScript | components/toptips/toptips.service.ts | cipchk/ngx-weui | mit | 2,238 | 92 | codeparrot/github-code |
10e306f731f54782fa37e38783a6dc026812fb96a1243a529b09aa32cc79c600 | ๏ปฟusing System;
using System.Diagnostics;
using System.Text;
namespace BgeniiusUniversity.Logging
{
public class Logger : ILogger
{
public void Information(string message)
{
Trace.TraceInformation(message);
}
public void Information(string fmt, params object[] vars)... | C# | ContosoUniversity/Logging/Logger.cs | bgeniius/bgUniversity | mit | 2,617 | 81 | codeparrot/github-code |
544860b2c3fbb9bb2bf7c0f219af1bc5c2a5665b0528d4c3bb50891963abf83d | import axios from 'axios';
import { updateRadius } from './radius-reducer';
import { AddBType } from './b-type-reducer';
// import { create as createUser } from './users';
// import history from '../history';
/* ------------------ ACTIONS --------------------- */
const ADD_B_TYPE = 'ADD_B_TYPE';
const ADD_LNG_... | JavaScript | app/reducers/report.js | Bullseyed/Bullseye | mit | 1,361 | 57 | codeparrot/github-code |
0de741957fd35e443b62ab344cce804e0b85e977a5a4bfdec65d9852f1d7856c | <h4>Lists</h4>
<h5>Simple List</h5>
<mdl-list>
<mdl-list-item>
<mdl-list-item-primary-content>
Bryan Cranston
</mdl-list-item-primary-content>
</mdl-list-item>
<mdl-list-item>
<mdl-list-item-primary-content>
Aaron Paul
</mdl-list-item-primary-content>
</mdl-list-item>
<mdl-list-i... | HTML | src/demo-app/app/list/list.component.html | c1rno/angelhack_frontend_prototype | mit | 14,091 | 493 | codeparrot/github-code |
0c1ae483aa3347462d466f0ec34d5e014204c3f3b5aa1b396bd1eae3b2a6c5b2 | ๏ปฟusing System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class UIButton : MonoBehaviour {
[SerializeField] private GameObject targetObject;
[SerializeField] private string targetMessage;
public Color highlightColor = Color.cyan;
public void OnMouseOver() {
Sprit... | C# | Ch05/Assets/UIButton.cs | ivanarellano/unity-in-action-book | mit | 902 | 37 | codeparrot/github-code |
87444d4db4e20133c8fb85b5f51fa58334a12b63a3590a08d47dbebfefdb2581 | <footer class="main-footer">
<div class="pull-right hidden-xs">
</div>
<strong>Orange TV.</strong> All rights reserved.
</footer>
<!-- Control Sidebar -->
<!-- /.control-sidebar -->
<!-- Add the sidebar's background. This div must be placed
immediately after the control sidebar -->
... | PHP | application/views/footer.php | ariefstd/cdone_server_new | mit | 5,358 | 164 | codeparrot/github-code |
9690769c43dbff6dea87dd0da0cbad972cded01694ce4d4024ec13616c8bf380 | // Copyright (c) 2011-2015 The Cryptonote developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "JsonOutputStreamSerializer.h"
#include <cassert>
#include <stdexcept>
#include "Common/StringTools.h"
using Comm... | C++ | src/Serialization/JsonOutputStreamSerializer.cpp | tobeyrowe/StarKingdomCoin | mit | 3,698 | 132 | codeparrot/github-code |
38268fc05048cb661dbd1cc04b24f97c97bfc516d2fd23617b02530917cfcf34 | /*
* author: Lisa
* Info: Base64 / UTF8
* ็ผ็ & ่งฃ็
*/
function base64Encode(input) {
var keyStr = "ABCDEFGHIJKLMNOP" + "QRSTUVWXYZabcdef" + "ghijklmnopqrstuv" + "wxyz0123456789+/" + "=";
var output = "";
var chr1, chr2, chr3 = "";
var enc1, enc2, enc3, enc4 = "";
var i = 0;
do {
chr1 = input[i++];
chr2 =... | JavaScript | lib/Tool/base64.js | jrcjing/cbg-log | mit | 2,324 | 98 | codeparrot/github-code |
aa2e3c2f0028b21a56c244bc8ed35354fd8141a69a39d6a6d7d145839f02fcce | LinkLuaModifier("modifier_cleric_berserk", "heroes/cleric/cleric_modifiers.lua", LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier("modifier_cleric_berserk_target", "heroes/cleric/cleric_modifiers.lua", LUA_MODIFIER_MOTION_NONE)
LinkLuaModifier("modifier_cleric_berserk_no_order", "heroes/cleric/cleric_modifiers.lua", LUA_MODIF... | Lua | game/dota_addons/dota2_ai_fun/scripts/vscripts/heroes/cleric/cleric.lua | tontyoutoure/DOTA2-AI-Fun | mit | 7,858 | 176 | codeparrot/github-code |
28f23b6abcd1883266b44243b79eb225ef405b445b1d4164dc42043241a6647d | package net.talayhan.android.vibeproject.Controller;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.net.Uri;
import android.os.Bundle;
import android.provid... | Java | app/src/main/java/net/talayhan/android/vibeproject/Controller/MainActivity.java | stalayhan/vibeapp | mit | 9,208 | 227 | codeparrot/github-code |
2e8f9e4aa8e194ace80ae414e56441951d631f0bd9fbe965b2fe5e9e6728912a | <?php
namespace Oro\Bundle\ApiBundle\Processor\Shared\Rest;
use Oro\Bundle\ApiBundle\Metadata\RouteLinkMetadata;
use Oro\Bundle\ApiBundle\Processor\Context;
use Oro\Bundle\ApiBundle\Provider\ResourcesProvider;
use Oro\Bundle\ApiBundle\Request\AbstractDocumentBuilder as ApiDoc;
use Oro\Bundle\ApiBundle\Request\ApiActi... | PHP | src/Oro/Bundle/ApiBundle/Processor/Shared/Rest/AddHateoasLinks.php | orocrm/platform | mit | 2,893 | 90 | codeparrot/github-code |
cec1d18bb4325c44669e1c3afcee446da2bfef39b8dd3ca2348e1412bff14f7a | const
path = require('path'),
fs = require('fs'),
glob = require('glob'),
pug = require('pug'),
stylus = require('stylus'),
nib = require('nib'),
autoprefixer = require('autoprefixer-stylus'),
{rollup} = require('rollup'),
rollupPluginPug = require('rollup-plugin-pug'),
rollupPluginResolve = require... | JavaScript | lib/AppBuilder.js | stefan-lehmann/atomatic | mit | 4,618 | 169 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.