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 |
|---|---|---|---|---|---|---|---|---|
3322d91008c5e359fa4461f5557b2029fd61a4e8de0bd454ec0ee747212d8ec5 | #include "scene.h"
#include "util/tinyobj/tiny_obj_loader.h"
#include <iostream>
#include <cassert>
#include <cmath>
bool scene::load(std::string filename) {
std::vector<tinyobj::shape_t> shapes;
std::string err = tinyobj::LoadObj(
shapes, (std::string("scenes/") + filename).c_str(), "scenes/");
if (!e... | C++ | libclsph/scene.cpp | libclsph/libclsph | mit | 1,902 | 67 | codeparrot/github-code |
783891b02ee1cc86d73cd97c8a9ff28c2013be8a5df8fd98256897cee6754152 |
<!DOCTYPE html>
<html xmlns:msxsl="urn:schemas-microsoft-com:xslt">
<head>
<meta content="en-us" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-16" http-equiv="Content-Type" />
<title _locid="PortabilityAnalysis0">.NET Portability Report</title>
<style>
... | HTML | Reports/de/devonline.1.3.7/Devonline.Extensions-net40.html | kuhlenh/port-to-core | mit | 38,957 | 903 | codeparrot/github-code |
7aaae8bb5c35d63353538ad110ba4063b48e4829797dfb7d33562776670a9765 |
#include "crystalline_structure.hpp"
CrystallineStructure::CrystallineStructure(std::string name,
const PowerSource &powerSource,
CrystallineStructureEffect *effect)
: mName{name}, mEffect{effect}, mPowerSource{powerSource}
{
}
... | C++ | src/crystalline_structure.cpp | mpatraw/dimlit | mit | 983 | 55 | codeparrot/github-code |
860eea0d1c602f67663ecc66d4ef396c00d560500cb22f2ffc4a469d6dc822dd | <?php
namespace mxdiModule;
use Doctrine\Common\Annotations\AnnotationRegistry;
use Zend\Console\Adapter\AdapterInterface;
use Zend\ModuleManager\Feature\ConsoleBannerProviderInterface;
use Zend\ModuleManager\Feature\ConsoleUsageProviderInterface;
class Module implements ConsoleBannerProviderInterface, ConsoleUsagePr... | PHP | src/Module.php | mikemix/mxdiModule | mit | 1,588 | 65 | codeparrot/github-code |
8284e0ea1c9e4e0771f71232b4d5d6c43fec8eea3a859ac60e43592bbf1d2a0e | //%2005////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
// IBM Corp.; EMC Cor... | C++ | src/WMIMapper/WMIProvider/WMIBaseProvider.cpp | ncultra/Pegasus-2.5 | mit | 14,911 | 535 | codeparrot/github-code |
2c124beb95b13d762bb9fc1c52fa3bc1e5a2b320b5c820a9f48765ab2a99e317 | import scalaxb.compiler.Config
import scalaxb.compiler.ConfigEntry._
class VisitorTest extends TestBase {
val schema = resource("anotherSimpleSchema.xsd")
val targetXml =
(<n:aElem xmlns:n="http://simple/main">
<n:bElem>
<n:cElem>Foo</n:cElem>
</n:bElem>
<n:bElem>
<n:cElem>Bar... | Scala | integration/src/test/scala/VisitorTest.scala | eed3si9n/scalaxb | mit | 1,511 | 66 | codeparrot/github-code |
ebefbd84a754aee2e7c4cd729e344e60937f25a9b6cba45447890392ac771982 | from collections import OrderedDict
from dateutil import parser
from itertools import groupby
from pytz import timezone
from pyquery import PyQuery
from scrapers.homepage.models import ApiEntry
import os
import logging
logging.basicConfig()
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
class Sto... | Python | scrapers/seamus/models.py | nprapps/graeae | mit | 2,968 | 112 | codeparrot/github-code |
627b94d6c562f8806a8189ce36ca71d724f472de7dc6224fdb5adc0fc6c1e4e1 | <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Struct template as_expr</title>
<link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="../../../index.html" ti... | HTML | libs/boost_1_50_0/doc/html/boost/proto/domain/as_expr.html | djsedulous/namecoind | mit | 9,499 | 137 | codeparrot/github-code |
efb89484a644f383d53926bf9fff17e71a97f1e859dfc44ee76191d0283e8e3a | /* Table of Contents
/* ------------------------------------------------------------
This is a development CSS file which is built to a minified
production stylesheet in assets/built/screen.css
1. Global Styles
2. Layout
3. Special Templates
4. Site Header
5. Site Navigation
6. Post Feed
7. Single Post
7.1. ... | CSS | content/themes/casper/assets/css/screen.css | alexlobanov/ghost-1 | mit | 35,144 | 1,844 | codeparrot/github-code |
c993982e7dce7cef90faa2925371cbbd32a674064ad38cde03d6e9c0e8aee1c0 | #!/usr/bin/python
import yaml
import re
import os
import subprocess
import ConfigParser
import time
import hashlib
import sys
'''This file will be looked up under OPKG_DIR/conf'''
OPKG_CONF_FILE='/etc/opkg/conf/opkg.env'
META_FILE_PREVIOUS='Previous.meta'
META_FILE_LATEST='Latest.meta'
EXTRA_PARAM_DELIM=','
EXTRA_PA... | Python | src/openpkg.py | kurianinc/opkg | mit | 30,669 | 793 | codeparrot/github-code |
2f3ca85ccb2a0b7cf660dc151b4d88d82cc8933dc310007d076773b138a9e771 | using System;
using System.Collections.Generic;
using System.Linq;
using Proyecto26;
using Cysharp.Threading.Tasks;
using DG.Tweening;
using UnityEditor;
using UnityEngine;
using UnityEngine.UI;
public class CharacterSelectionScreen : Screen
{
public TransitionElement infoCard;
public Text nameText;
public... | C# | Assets/Scripts/Navigation/Screens/CharacterSelection/CharacterSelectionScreen.cs | TigerHix/Cytoid | mit | 18,729 | 497 | codeparrot/github-code |
37009225c13734c79913d6058cd49359805310bda035829a7f17b3ab70b96394 | import * as api from './api'
import { fetchContacts, addContact } from '../actions/contacts'
import configureStore from '../configure-store'
import { contacts as db } from '../data/db.js'
// store helpers
function getPopulatedStore () {
const store = configureStore()
return store.dispatch(fetchContacts(api)).then... | JavaScript | src/server/routes-contacts.js | lmtm/react-training | mit | 1,174 | 40 | codeparrot/github-code |
e9b1eeafb59ca7446d9c0db3ce8c52437ed362f5e6de5ed1ab43526ecff4917c | <?php $this->load->view('admin/bcore/head'); ?>
<div class="container-fluid">
<?php foreach ($row1->result_array() as $value1) { ?>
<form action="<?php echo site_url("admin/edit_mitra/".$value1['id']) ?>" method="post" role="form" class="form-horizontal" id="block-validate">
<div class="col-xs-6 col-sm-6 col-md-6 ... | PHP | application/views/admin/mitra_detail.php | adeindriawan/bibv | mit | 17,084 | 333 | codeparrot/github-code |
8e28240b95ef5fb5c8e0f09303814ff24fb573e8e790da58cda0f18352062ce0 | module SolidUseCase
module Either
def run(inputs)
steps = self.class.instance_variable_get("@__steps").clone
current_result = Success(inputs)
return current_result unless steps
while steps.count > 0
next_step = steps.shift
current_result = current_result.and_then do
... | Ruby | lib/solid_use_case/either.rb | mindeavor/solid_use_case | mit | 1,866 | 85 | codeparrot/github-code |
6d6319a0cdea7f8583501613562a16cd9031e9583de82f98655393c37267dc6e | var fs = require('fs');
var detectIndent = require('detect-indent');
module.exports = function (gulp, config) {
config = config || {};
if (typeof gulp === 'undefined') {
throw new Error("Gulp Undefined");
}
if (config.hasOwnProperty('excluded') && !Array.isArray(config.excluded)) {
throw new E... | JavaScript | index.js | austinpray/gulp-npm-script-sync | mit | 1,081 | 34 | codeparrot/github-code |
a50ca818c63ac536ae46cc1bcea6189ce3c5c7b65d02b7c51d2053797081cf3a | var app = angular.module('TweetBot', []);
app.controller("TweetBotController", function($scope) {
var primus = new Primus('http://' + window.location.host, {
reconnect: {
maxDelay: Infinity,
minDelay: 500,
retries: 10
},
strategy: ['online', 'timeout', 'disconnect']
});
$scope.hash... | JavaScript | public/javascripts/app.js | NodeWare/tweet-bot | mit | 1,446 | 55 | codeparrot/github-code |
c93de67fb1061f1f9d7b0640908ff4f4fb264a8d46c4ad3b3f85a73c2e925ac1 | /*!
* wyre: the new way to do websockets
* Copyright(c) 2015 Jordan S Davidson <thatoneemail@gmail.com>
* MIT Licensed
*/
var uuid = require('uuid'),
wrapper = require('../util/callbackWrapper.js'),
shared = require('./shared.js');
function Connection(ws, codec, direction, key, requestMap, id, logger) {
... | JavaScript | lib/connections/connection.js | from-nibly/wyre | mit | 1,293 | 48 | codeparrot/github-code |
87ee725521d06384253c10ae1801b326c2a379eb7d069ec0f52f77fb9162cb18 | /**
* Created by Arnaud on 11/02/2016.
*/
function popup() {
window.alert("Test");
}
function remplissageAutomatiqueEnregistrement(){
//alert("auto");
document.getElementById("login").value = "abe";
document.getElementById("password").value = "toto";
document.getElementById("nom").value = "Bes";
... | JavaScript | Web/Archive/SmartForest/assets/js/MyJs.js | Bideau/SmartForrest | mit | 12,919 | 401 | codeparrot/github-code |
f8a6016ee5226390fa4d25ddcb86d717b728ca8610e6c9254716452f6219ebe1 | package main
import (
"net/http"
)
func domainClear(domain string) error {
if domain == "" {
return errorMissingField
}
statement := `
DELETE FROM votes
USING comments
WHERE comments.commentHex = votes.commentHex AND comments.domain = $1;
`
_, err := db.Exec(statement, domain)
if err != nil {
logger... | GO | api/domain_clear.go | adtac/commento | mit | 1,708 | 83 | codeparrot/github-code |
ecc9b9456d4663a99afbbb2a434d3d041796cbc7a5d0dcfe1cc9143b4c7d6daa | """
Helper functions for creating user-friendly representations
of serializer classes and serializer fields.
"""
from __future__ import unicode_literals
import re
from django.utils import six
from django.utils.encoding import force_str
from mongoengine.base import BaseDocument
from mongoengine.fields import BaseField... | Python | rest_framework_mongoengine/repr.py | BurkovBA/django-rest-framework-mongoengine | mit | 4,210 | 148 | codeparrot/github-code |
904fe337a8b64a47cfe149482fffd8d9063ec6d6efdae1e35015f033d620cf10 | <head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% if page.title %}{{ page.title | escape }} | {{ site.title }}{% else %}{{ site.title | escape }}{% endif %}</title>
<meta name="author" content="{{... | HTML | _includes/head.html | doctorants-actifs/doctorants-actifs.github.io | mit | 3,076 | 48 | codeparrot/github-code |
9c26c225fb4092468e93fe7002c8975f12c4d847ecfee269330e747023aa5cb0 | /*
* SonarLint for Visual Studio
* Copyright (C) 2016-2021 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version ... | C# | src/TypeScript/EslintBridgeClient/EslintBridgeHttpWrapper.cs | SonarSource-VisualStudio/sonarlint-visualstudio | mit | 2,803 | 75 | codeparrot/github-code |
92c6994c5f30bd77496ec6ac8484f5add4ca4a2bdba7555d4fe551b54e0c8fe8 |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>W30716_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/W30716_text/page3.html | datamade/elpc_bakken | mit | 4,637 | 81 | codeparrot/github-code |
548b476c8da50b621ba529685dc72665f1b64dcc898f0d7d3eb66fdfa7b5eeb4 | import React, { useCallback, useEffect, useMemo, useRef } from "react";
import scrollIntoView from "scroll-into-view-if-needed";
import styled, { css } from "styled-components";
import { Item, ItemType } from "../../lib/types";
const ItemLeft = styled.div`
width: 30px;
min-width: 30px;
display: flex;
align-ite... | TypeScript | src/popup/components/ResultListItem.tsx | questbeat/anchor | mit | 2,552 | 127 | codeparrot/github-code |
2f4e8169d638d189478ed89545e5b61264fd2339448634950cb68a2c135b1373 | <?php
session_start();
class User
{
private $IdUser,
$Login,
$Password,
$First_Name,
$Last_Name;
public function setIdUser($IdUser){$this->IdUser = $IdUser;}
public function setLogin($Login){$this->Login = $Login;}
public function setPassword(... | PHP | includes/user.php | justkozi/Yet-another-ToDo-App | mit | 10,262 | 320 | codeparrot/github-code |
5e30473076793ee49fcb764696f855feec14a56f18dd0c7577a0451e7b04a375 | package net.dirtyfilthy.bouncycastle.asn1.isismtt.ocsp;
import net.dirtyfilthy.bouncycastle.asn1.ASN1Encodable;
import net.dirtyfilthy.bouncycastle.asn1.ASN1EncodableVector;
import net.dirtyfilthy.bouncycastle.asn1.ASN1Sequence;
import net.dirtyfilthy.bouncycastle.asn1.DERObject;
import net.dirtyfilthy.bouncycastle.as... | Java | net/dirtyfilthy/bouncycastle/asn1/isismtt/ocsp/CertHash.java | dirtyfilthy/dirtyfilthy-bouncycastle | mit | 3,852 | 125 | codeparrot/github-code |
547fb3e6d72717f051aa2f9d162d422d7199a862e12012d9d9db6434975e0c6c | using AspNet.Identity.RavenDB.Entities;
using Bloggy.Client.Web.Infrastructure;
using Bloggy.Client.Web.Infrastructure.Logging;
using Bloggy.Client.Web.RequestModels;
using Bloggy.Domain.Entities;
using Microsoft.AspNet.Identity;
using Microsoft.Owin.Security;
using Raven.Client;
using System;
using System.Sec... | C# | src/Bloggy.Client.Web/Controllers/AccountController.cs | tugberkugurlu/Bloggy | mit | 5,783 | 164 | codeparrot/github-code |
7cb66dfa957f47b8c84570156357e21b5b3d0af9ae09f7ec2d57cb81d6782a4f | <!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Cómic Pensamiento Crítico</title>
<script src="//cdn.jsdelivr.net/phaser/2.2.2/phaser.min.js"></script>
<style type="text/css">
body {
margin: 0;
}
</style>
</head>
<body>
<script type="text/javascript"... | HTML | Mechanism/end0_4.html | mperalt3/ctg2 | mit | 1,525 | 79 | codeparrot/github-code |
30e1ea7ede55ef100057f76c78d0f4477af2f6123bc7a3ab396c7611819e5bfe | # -*- coding: utf-8 -*-
require 'libgss'
require 'net/http'
require 'uri'
module Libgss
class AsyncActionRequest < ActionRequest
attr_reader :ids
attr_accessor :action_id
attr_accessor :result_url
# コンストラクタ
def initialize(httpclient, action_url, result_url, req_headers)
super(httpclien... | Ruby | lib/libgss/async_action_request.rb | groovenauts/libgss_ruby | mit | 1,364 | 45 | codeparrot/github-code |
663622e2f5349bb7a90a8ffc12cf368f249b3a152daa1e07cbac2ff9a3070ade | //
// Created by Queen on 2017/2/16.
//
#ifndef INC_02_HEAPIFY_QUICKSORTTHREEWAYS_H
#define INC_02_HEAPIFY_QUICKSORTTHREEWAYS_H
#include <algorithm>
#include <ctime>
#include <iostream>
template <typename T>
void __quickSort(T arr[], int l, int r)
{
if (r-l <= 15) {
insertionSort(arr, l, r);
retu... | C | 04-Heap/02-Heapify/QuickSortThreeWays.h | OldSix/MyAlgorithmWithC- | mit | 1,079 | 57 | codeparrot/github-code |
2620869095dcddf814d653ba49df4e7fbed4604870bf4b9719f02515d65490d7 | #!/usr/bin/env python
import sys
import textwrap
try:
import virtualenv # @UnresolvedImport
except:
from .lib import virtualenv # @Reimport
from . import snippits
__version__ = "0.9.1"
def file_search_dirs():
dirs = []
for d in virtualenv.file_search_dirs():
if "vootstrap" not in d:
... | Python | vootstrap/__init__.py | tonyczeh/vootstrap | mit | 5,176 | 194 | codeparrot/github-code |
eef90cc232748fb1954320caa84af4a2c9995844191d0a2003df5513cab858a5 | import * as types from '../actions/actionTypes';
import initialState from './initialState';
const animalsReducer = (state = initialState.animals, action) => {
switch (action.type) {
case types.LOAD_ANIMALS_SUCCESS: {
let newAnimals = action.row === 1 ? [] : state.animals;
const { animals, total_page... | JavaScript | src/reducers/animalsReducer.js | pisgrupo9/ash_web | mit | 1,398 | 47 | codeparrot/github-code |
35668001007499b3545356bfe2169e3802e65f642d5133f37e182771f29d5834 | {% extends "explorer/base.html" %}
{% load i18n static %}
{% block sql_explorer_navlinks %}
{% if can_change %}
<li><a href="{% url 'query_create' %}">{% trans "New Query" %}</a></li>
<li><a href="{% url 'explorer_playground' %}">{% trans "Playground" %}</a></li>
<li><a href="{% url 'explorer_logs' %}"... | HTML | explorer/templates/explorer/query_list.html | epantry/django-sql-explorer | mit | 4,834 | 124 | codeparrot/github-code |
19d40f76329ac0a2cbb1e6d1fd9acb8667f69f693537146bf7489f10208bb32b | 'use strict';
var $ = require('jquery');
var App = require('../../app');
var Backbone = require('backbone');
var BiddingStatsView = require('./BiddingStatsView');
var GoToTopBehavior = require('../../common/behaviors/GoToTopBehavior');
var ModuleHoverBehavior = require('../../common/behaviors/ModuleHoverBehavior');
va... | JavaScript | app/scripts/modules/views/ModuleView.js | mauris/nusmods | mit | 7,965 | 250 | codeparrot/github-code |
4a0ac39db50abab6d636b1b529334e893527f7d79038c8f9d53f6789894ac704 | // Copyright (c) 2016 Antony Arciuolo. See License.txt regarding use.
// utilities for working with column-major, affine matrices
// see projection.h for projection-specific api
#pragma once
#include <oMath/hlsl.h>
namespace ouro {
// _____________________________________________________________________________
// ... | C | Ouroboros/Include/oMath/matrix.h | igHunterKiller/ouroboros | mit | 8,713 | 161 | codeparrot/github-code |
69e48be33ecb9f422acfabde68ebe9976b706174ac6cc63ce6f70f3fa7917a40 | //==================================
// PEDUMP - Matt Pietrek 1997-2001
// FILE: DBGDUMP.CPP
//==================================
#include <windows.h>
#include <stdio.h>
#include <time.h>
#include "common.h"
#include "COFFSymbolTable.h"
#include "SymbolTableSupport.h"
#include "extrnvar.h"
#include "dbgdum... | C++ | Reference/PortableExecutable/PE/DBGDUMP.cpp | Belxjander/Polymorph-VMM | mit | 3,010 | 85 | codeparrot/github-code |
4bf0cc648333a43bce43adf6d88850dfa23a06d71b08dd5ca3a493a26b7b5d1b | # Author: Anton Gorev aka Veei
# Date: 2015/09/24
# n: the number of temperatures to analyse
read n
# temps: the n temperatures expressed as integers ranging from -273 to 5526
read temps
# Write an action using echo
# To debug: echo "Debug messages..." >&2
result=-1
for i in $temps; do
# echo $i
ai=${i/#-/}
... | Shell | easy/temperatures/main.sh | kvirund/codingame | mit | 610 | 33 | codeparrot/github-code |
16f1dfd5f89c70bb7dd18e1aac6d084e28190aa4e506c5cdac8085c578a9ad73 | #pragma once
#include "chr/FileSystem.h"
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/io/gzip_stream.h>
#include <google/protobuf/io/zero_copy_stream_impl.h>
namespace chr
{
namespace io
{
class GzipBinaryInputStream
{
public:
GzipBinaryInputStream() = default;
G... | C | core/src/chr/io/GzipBinaryInputStream.h | arielm/chronotext-cross | mit | 1,132 | 49 | codeparrot/github-code |
bc4e2cb36dd6593e5c837b3cf759160960c23c10812fc61139d971600707bed5 | namespace REBasic
{
partial class REConstantSmall
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
... | C# | DotNet/REBasic/REConstantSmall.Designer.cs | stijnsanders/RE | mit | 3,457 | 86 | codeparrot/github-code |
241d1a298225538824d0ff8b71cb38d99e2643a7c6225c9ff04f70a19a092d06 | /* Ionicons v5.5.3 */
export declare const ionAccessibilityOutline: string;
export declare const ionAccessibilitySharp: string;
export declare const ionAccessibility: string;
export declare const ionAddCircleOutline: string;
export declare const ionAddCircleSharp: string;
export declare const ionAddCircle: string;
exp... | TypeScript | extras/ionicons-v5/index.d.ts | pdanpdan/quasar | mit | 61,758 | 1,334 | codeparrot/github-code |
2e792c625abbfcbe5e3626eaf31075cb7226a7281f102c7371535ae3690adb1c | title: Hello World
date: 2013-4-24
tags: hello, test
把博客搬到了Github
测试一下Markdown
## This is an H2
### This is an H3
#### This is an H4
##### This is an H5
###### This is an H6
> This is the first level of quoting.
>
> > This is nested blockquote.
>
> Back to the first level.
### Unordered List
- Red
- Green
- Blue
... | Markdown | example/drafts/分类/test.markdown | zqqf16/Peanut | mit | 1,278 | 61 | codeparrot/github-code |
70527a7fc0f4f1a827c6f37002ff72dd4aa1cb24d59d1ba302b21fef671a5dff | package com.clashcode.web.controllers
import play.api.mvc._
import com.clashcode.web.views
import play.api.libs.iteratee.{Iteratee, Concurrent}
import play.api.libs.concurrent.Execution.Implicits._
import play.api.{Play, Logger}
import play.api.libs.json.{Json, JsValue}
import actors.{ResetStats, Player}
import akka.a... | Scala | app/com/clashcode/web/controllers/Application.scala | clashcode/akka-workshop-backend | mit | 2,321 | 85 | codeparrot/github-code |
41a617bf14a87c9981eba0fc136d4a421824e49e478b29e1755046ae1d9e9084 | using System.Collections.Generic;
namespace Sonneville.Investing.Domain
{
public interface IAccountDetails
{
AccountType AccountType { get; }
string Name { get; }
string AccountNumber { get; }
decimal PendingActivity { get; }
decimal TotalGainDollar { get; }
... | C# | Sonneville.Investing/Domain/AccountDetails.cs | SonnevilleJ/Investing | mit | 848 | 38 | codeparrot/github-code |
81e328c022e0b909045350e81b009be8c36a662a2df19ad419744cba3f5f24ad | var gulp = require('gulp');
var concat = require('gulp-concat');
var jade = require('gulp-jade');
var htmlify = require('gulp-angular-htmlify');
var templateCache = require('gulp-angular-templatecache');
var path = require('path');
var less = require('gulp-less');
var jasmine = require('gulp-jasmine');
var minifyCSS = ... | JavaScript | frontend/gulpfile.js | paulstefanday/Momentum | mit | 2,671 | 90 | codeparrot/github-code |
35cfde84a3b20f9b5446f6f2ce45b9234998e79d2473b2df4fd43dd2a7d92c1d | using System.Collections.Generic;
using System.IO;
using System.Linq;
using Newtonsoft.Json;
using ProtoBuf;
using Oxide.Core.Plugins;
namespace Oxide.Core.Libraries
{
public class Lang : Library
{
public override bool IsGlobal => false;
private readonly LangData langData;
private r... | C# | Oxide.Core/Libraries/Lang.cs | bawNg/Oxide | mit | 7,733 | 200 | codeparrot/github-code |
18ab55b2cf2e4b51603793274faadfc43f6f2aca47ed161311a457d786430e35 | var TaskView = BaseView.extend({
className: "task",
events: {
"click": "clickedOn",
"blur .nameFieldEdit": "blurTextArea",
"keydown .nameFieldEdit": "onKeyDown",
"keyup .nameFieldEdit" : "onKeyUp",
"click .trashIcon": "deleteModel",
"click .plusIcon": "addTask",
"click input[type=checkbox]" : "clickCh... | JavaScript | app/assets/javascripts/views/taskView.js | dan335/tasskr | mit | 954 | 42 | codeparrot/github-code |
4cb25b75161488509c3abd912c4ecac79deb557104db730c796432eb7d868688 | /*
* Powered By [柳丰]
* Web Site: http://www.trend.com.cn
*/
package com.trend.hbny.dao;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.junit.Test;
import static junit.framework.Assert.*;
import java.util.*;
import javacommon.base.*;
import javacommon.util.*;
im... | Java | java_test/com/trend/hbny/dao/EMaxminPowerDaoTest.java | neolfdev/dlscxx | mit | 1,821 | 77 | codeparrot/github-code |
e135adaffc10d60599eb89e3af4a25f989db77b0d74c83dc25af01988af0e581 | # Makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = _build
# User-friendly check for sphinx-build
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
$(error The '$(SPHINXBUILD)' command w... | Makefile | docs/Makefile | AerisCloud/AerisCloud | mit | 7,499 | 194 | codeparrot/github-code |
5eb53cdb9b92806fc255bfac02275e03e9d17e4b49f7c7a3829ed32e0d2ddd42 | const electron = require('electron')
// Module to control application life.
const app = electron.app
// Module to create native browser window.
const BrowserWindow = electron.BrowserWindow
require('electron-reload')(__dirname);
// Keep a global reference of the window object, if you don't, the window will
// be close... | JavaScript | main.js | garethnic/restle | mit | 1,829 | 56 | codeparrot/github-code |
68c3dc90988948de1f984073a9e0ce7d46b3cb3943355480b64221384f76a720 | # -*- encoding: utf-8 -*-
from __future__ import print_function
import enum
import inspect
import importlib
import os
import re
import shutil
import types
class SupriyaDocumentationManager(object):
@staticmethod
def build_attribute_section(
cls,
attrs,
directive,
title,
... | Python | supriya/tools/documentationtools/SupriyaDocumentationManager.py | andrewyoung1991/supriya | mit | 25,757 | 715 | codeparrot/github-code |
a6e55aedd1b448c2c9942d94355fcc3a12228405869eecf71a97e33f2035ce61 | (function() {
window.uR = window.uR || {};
uR.TrueDate = window.Date; // because under-construction uses timeShift.js to override date
uR.timeIt = function(f,this_argument) {
this_argument && f.bind(this_argument);
return function() {
var start = new Date();
f.apply(this,arguments);
cons... | JavaScript | src/js/index.js | chriscauley/unrest | mit | 9,094 | 266 | codeparrot/github-code |
dbb59eeec02e23bbc6e5dc9c64c2971f34d1bbe4ba6569e73a232cf43422070e | package com.example.mytest.dto;
import org.json.JSONException;
import org.json.JSONObject;
import android.util.Log;
import com.example.mytest.model.GPSCoordinates;
public class LoginDTO {
private String email;
private String password;
public LoginDTO(String email, String password) {
this.email = email;
thi... | Java | MyTest/src/com/example/mytest/dto/LoginDTO.java | ankur22/disrupt2014-android | mit | 871 | 43 | codeparrot/github-code |
b49008cf04c95b934f9c04c75f5363ea9ec559c63a9207757dd4a67390859c47 | /*
** @version 1.0
** Used to calculate the time user is spending to view active tab
*/
blippex.define('blippex.libs.timespent', {
interval: 1000,
cache: {},
timer: null,
isActive: true,
init: function(){
blippex.libs.timespent.restoreSession();
blippex.libs.timespent.timer = window.setInterval(function(){
... | JavaScript | plugin/blippex.safariextension/common/js/libs/timespent.js | blippex/blippex_plugin_safari | mit | 2,795 | 80 | codeparrot/github-code |
b179b53d640244d891220cb55bfc2bf728e7288d14f929c404dc22a84925be42 | <?php
$url = parse_url(getenv("CLEARDB_DATABASE_URL"));
$host = $url["host"];
$username = $url["user"];
$password = $url["pass"];
$database = substr($url["path"], 1);
return [
/*
|--------------------------------------------------------------------------
| PDO Fetch Style
|---------------------------... | PHP | config/database.php | hasan26/laravel-admin | mit | 4,102 | 127 | codeparrot/github-code |
8791899f6de52275d584dd32e09c09902527a081e3ff22b5da5764d2c47f755d | using DragonSpark.Model.Sequences;
using Microsoft.AspNetCore.Components;
namespace DragonSpark.Presentation.Components.Routing;
/// <summary>
/// ATTRIBUTION: https://github.com/ShaunCurtis/CEC.Routing/tree/master/CEC.Routing/Routing
/// </summary>
class RouteTable
{
readonly uint _length;
public RouteTable(Arra... | C# | DragonSpark.Presentation/Components/Routing/RouteTable.cs | DragonSpark/Framework | mit | 737 | 36 | codeparrot/github-code |
5c86e9d68e795e3cbb371619df404c1f229556258d72f0ed98569accc54fcac5 | define([
"../var/support"
], function (support) {
(function () {
var fragment = document.createDocumentFragment(),
div = fragment.appendChild(document.createElement("div")),
input = document.createElement("input");
// Support: Safari<=5.1
// Check state lost if the name is set (#11217)
... | JavaScript | src/main/webapp/bower_components/jquery/src/manipulation/support.js | Azollas/org.azolla.p.roc | mit | 1,018 | 33 | codeparrot/github-code |
fce2e6f1c1857a6c46cbe29e58598eb6de5469be7fdc6402d200b076f2c01fbb | # *-* coding:utf-8 *-*
from functools import partial
# 可读性好
# range()
print range(0,9,2) #递增列表
for i in xrange(0,9,2): # 只用于for 循环中
print i
albums = ("Poe","Gaudi","Freud","Poe2")
years = (1976,1987,1990,2003)
for album in sorted(albums):
print album
for album in reversed(albums):
print a... | Python | code/python/myPython.py | qiudebo/13learn | mit | 1,191 | 89 | codeparrot/github-code |
35a9af79476cc2dbcdc9337fb421ef0a7feaf311aa4c882795a11d1ea7c4ace6 | <?php
require_once ("models/config.php");
if (! securePage ( $_SERVER ['PHP_SELF'] )) {
die ();
}
// Prevent the user visiting the logged in page if he/she is already logged in and is not an administrator
if (isUserLoggedIn ()) {
if (! $logged_in_user->checkRole ( array (
2
) )) {
header ( "Location: account.... | PHP | register.php | benohead/kanban_board | mit | 7,928 | 247 | codeparrot/github-code |
471d67de6c5b49602d5672534b5ab4ffd3efbc574bb483d6da505d2d3c2ad7c3 | require "openssl"
module Celluloid
module IO
# SSLSocket with Celluloid::IO support
class SSLSocket < Stream
extend Forwardable
def_delegators :@socket,
:read_nonblock,
:write_nonblock,
:close,
:closed?,
... | Ruby | celluloid-io/lib/celluloid/io/ssl_socket.rb | celluloid/framework | mit | 1,296 | 56 | codeparrot/github-code |
4307c8bbd61783d092b6cd1481e423aa4b28e3990f7404c2e2041856572abee7 | var http = require('http');
var express = require('express');
var SFTP = require("sftp-ws");
// initialize an express app
var app = express();
// specify host and port for the HTTP server and websocket endpoint for SFTP server
// (this sample lacks any kind of authentication, so let's use localhost)
var por... | JavaScript | examples/web-benchmark/index.js | lukaaash/sftp-ws | mit | 1,032 | 33 | codeparrot/github-code |
8457d311ee2a50f94295609a9c55f25e9ad5e6c5bea024c3e988ec7a684417c2 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Login Page - Photon Admin Panel Theme</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<link rel="shortcut icon" href="ht... | HTML | lib/assets/css/css_compiled/@{photonImagePath}plugins/elrte/js/bootstrap/js/plugins/images/photon/js/plugins/raphael.2.1.0.min.js.html | user-tony/photon-rails | mit | 16,556 | 197 | codeparrot/github-code |
cd418d450f64eff16046dcf77eab141c651bab93c7ac71eedcc13873b53e6f22 | <?php
namespace PizzaBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity
* @ORM\Table(name="promotion")
*/
class Promotion {
const SERVER_PATH_TO_IMAGE_FOLDER = '/server/path/to/images';
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="A... | PHP | src/PizzaBundle/Entity/Promotion.php | artro8/Symfony3---WebsitePizza | mit | 2,572 | 144 | codeparrot/github-code |
5986529384cb3a72788d71d9fa1bfec4127aa203c4d304ba11000a4509776d93 | class Ckeditor::AttachmentFile < Ckeditor::Asset
has_attached_file :data,
:url => "/ckeditor_assets/attachments/:id/:filename",
:path => ":rails_root/public/ckeditor_assets/attachments/:id/:filename"
validates_attachment_size :data, :less_than=>100.megabytes
def url(*... | Ruby | app/models/ckeditor/attachment_file.rb | augustf/wtgsite | mit | 1,189 | 41 | codeparrot/github-code |
a738b2235e47f9cfa1cf40dfa4c492a1de7064453d4fa2f9b61884d3bbd967e4 | <!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>reveal.js – The HTML Presentation Framework</title>
<meta name="description" content="A framework for easily creating beautiful presentations using HTML">
<meta name="author" content="Hakim El Hattab">
<meta name="apple-mobile-web-app-... | HTML | demo.html | ctrladel/stl2016 | mit | 15,939 | 415 | codeparrot/github-code |
7aaa9eeb43cb1d9891a19ee8782719f0ab9a318bdb2d17d32a49dfb9bb348053 | # encoding: utf-8
from __future__ import unicode_literals
from collections import deque
from .buffer import Buffer
from .compat import py2, str
from .line import Line
log = __import__('logging').getLogger(__name__)
def _pub(a):
return {i for i in a if i[0] != '_'}
class Lines(object):
"""An iterable set of n... | Python | marrow/dsl/core/lines.py | marrow/dsl | mit | 4,465 | 184 | codeparrot/github-code |
1a707dbf1fe84b29f4697bddc320dbe291b175b6b8f850cf6bb53fafc0d1d1e6 | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
namespace Microsoft.DocAsCode.MarkdownLite
{
using System;
using System.Linq;
public class MarkdownRenderer
{
public virtual StringBuffer Rend... | C# | src/Microsoft.DocAsCode.MarkdownLite/MarkdownRenderer.cs | pascalberger/docfx | mit | 15,839 | 440 | codeparrot/github-code |
3eeb6e48db0e83b46c4eee59998d2de13d0c796622ff475ce6733de7d31ece7d | package com.android.shelter.util;
import android.content.Context;
import android.os.AsyncTask;
import android.util.Log;
import com.android.shelter.FragmentCallback;
import com.android.shelter.helper.PropertyImage;
import com.android.shelter.property.PropertyLab;
import com.android.shelter.user.UserSessionManager;
im... | Java | Shelter/app/src/main/java/com/android/shelter/util/PostPropertyTask.java | CMPE277Shelter/shelterApp | mit | 4,819 | 120 | codeparrot/github-code |
a9ac5afa89d7cbd185fdcf83be7b713c8102c00c95ae2e5686225ef81918c442 | // A datastructure for storing n choose 2 pairs
// Copyright thayne Walker 11/27/2020
#ifndef PAIRMAP_H
#define PAIRMAP_H
template <typename T>
struct PairMap{
PairMap():n(0){}
PairMap(unsigned num):n(num),vals(n*(n-1)/2){
}
void resize(unsigned num){
n=num;
vals.resize(n*(n-1)/2);
}
T const& get(u... | C | utils/PairMap.h | thaynewalker/hog2 | mit | 1,211 | 48 | codeparrot/github-code |
ccec568d902a82f6afbe066ace150432429e15c6ea9ed7358476907c8e366735 | package org.erhmutlu.jbeat.service;
import org.erhmutlu.jbeat.api.ScheduledJob;
import org.erhmutlu.jbeat.api.exceptions.JBeatException;
import org.erhmutlu.jbeat.persistency.models.PeriodicTask;
import org.erhmutlu.jbeat.service.schedule.RabbitJob;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.s... | Java | jbeat-service/src/main/java/org/erhmutlu/jbeat/service/JBeatFacadeImpl.java | erhmutlu/jbeat | mit | 2,726 | 78 | codeparrot/github-code |
2ddbac714809ba63666d3c230da430218ab53f660eb2ba5908a0db2e557eee0f | package com.aktheknight.discordbot;
import com.aktheknight.discordbot.obj.CommandHelper;
import java.util.Scanner;
import java.util.concurrent.TimeUnit;
/**
* Created by Alex on 25/02/2016 at 21:49.
*/
public class Console implements Runnable {
public void run() {
Scanner in = new Scanner(System.in);
... | Java | src/main/java/com/aktheknight/discordbot/Console.java | AKTheKnight/DiscordBot | mit | 1,921 | 48 | codeparrot/github-code |
4b476866a4c1de341023f1a13d3b46c54751e5e8ae32f361eadc2d3981515fa6 | /*
* jQuery Web Sockets Plugin v0.0.1
* http://code.google.com/p/jquery-websocket/
*
* This document is licensed as free software under the terms of the
* MIT License: http://www.opensource.org/licenses/mit-license.php
*
* Copyright (c) 2010 by shootaroo (Shotaro Tsubouchi).
*/
(function($){
$.extend({
websoc... | JavaScript | static/js/jquery.websocket.js | primebit/DCS_Remote_Cockpit | mit | 1,272 | 46 | codeparrot/github-code |
cd8352e1ac6c0fd0dca099fff55ba892220f74015d5bf620b12e297f0683f0c7 | import { componentOptions, labelCount } from './autocomplete'
jest.mock('./index', () => ({
flatList: jest.fn(() => ({
'test.id': {
get: key => key,
},
})),
}))
describe('Autolinker', () => {
describe('componentOptions utility', () => {
it('should generate an array of dom options', () => {
... | JavaScript | src/js/components/autocomplete.spec.js | Draggable/formeo | mit | 1,007 | 34 | codeparrot/github-code |
1fd2fb940d762e62c6d3466ded576af0babd93d384a8c858eaf0f0c61a4247b4 | ;(function(player)
{
class DefaultSite extends AbstractSite
{
constructor(player)
{
super(player);
console.log("DefaultSite");
let customExtensions = [
"/videoplayback?"
];
let videoExtensions = [
"mp4... | JavaScript | src/js/background_scripts/sites/default.js | goldenratio/youtube-to-XBMC | mit | 1,896 | 75 | codeparrot/github-code |
f03a3148bd545ead9e383e6f6494e06416bd2ec4fcea554e515a96d54645246f | using System;
using System.Linq;
using System.Threading.Tasks;
using AsyncGenerator.Core.Configuration;
using AsyncGenerator.Core.Plugins;
using AsyncGenerator.Core.Transformation;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using static Microsoft.Code... | C# | Source/AsyncGenerator/Transformation/Internal/InModifierRemovalTransformer.cs | maca88/AsyncGenerator | mit | 3,554 | 103 | codeparrot/github-code |
262146c76e25e70acb3e5cbf824f57cadfa33022082378190cedda1be8ab75b7 | /*
* Copyright (c) 2000-2015 TeamDev Ltd. All rights reserved.
* TeamDev PROPRIETARY and CONFIDENTIAL.
* Use is subject to license terms.
*/
import com.teamdev.jxbrowser.chromium.Browser;
import com.teamdev.jxbrowser.chromium.swing.BrowserView;
import javax.swing.*;
import java.awt.*;
import java.awt.event.Action... | Java | src/lib/jxbrowser-5/samples/PrintToPDFSample.java | Roba1993/octo-chat | mit | 1,345 | 41 | codeparrot/github-code |
d797e51b0d0fc288f6b7e45c786e9e9617c347c0512f4dfa83ac7f9e91d98111 | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { PropTypes, Component } from 'react';
import styles from './App.scss';
import withContext from '../../decorators/withContext';
import withStyles from '../../decorators/withStyles';
import Header from '../Header';
import Footer from... | JavaScript | src/components/App/App.js | tomasreichmann/recap-books | mit | 755 | 32 | codeparrot/github-code |
d49505493f485921562acbcd688f5324a26270a77f778d19d0adfd76334cde4b | require 'erb'
require 'yaml'
Encoding.default_internal = 'UTF-8'
Encoding.default_external = 'UTF-8'
module Colore
#
# This is a simple mechanism to hold document configuration. A future version will replace
# this with SimpleConfig.
#
# It is accessed by calling C_.{config setting}, where the config settin... | Ruby | lib/config.rb | ifad/colore | mit | 2,719 | 89 | codeparrot/github-code |
e879b0db923bb50133a973fab9141641b81fe99a968ad28d438a1968b5d5a09d | import React from 'react';
import classnames from 'classnames';
import { faBell } from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
//
import AbstractIcon from './AbstractIcon';
/**
* Monitoring icon.
*
* FIXME: use badge
*
* @author Radek Tomiška
* @sinc... | JavaScript | Realization/frontend/czechidm-core/src/components/advanced/Icon/MonitoringIcon.js | bcvsolutions/CzechIdMng | mit | 1,156 | 51 | codeparrot/github-code |
3eb946f75b181d7221e3f3cc23ba100eb73ecfc147594147621f8124d07c9b57 | package server
import (
"bytes"
"crypto/sha512"
"crypto/x509"
"fmt"
"net/http"
"github.com/boltdb/bolt"
)
func (s *server) isTrusted(r *http.Request) bool {
if r.TLS == nil {
return false
}
for i := range r.TLS.PeerCertificates {
if s.checkTrustState(r.TLS.PeerCertificates[i]) {
return true
}
}
r... | GO | server/trust.go | jsimonetti/tlstun | mit | 1,652 | 84 | codeparrot/github-code |
7b5ebce965d9bd98831c829ecb0694f79853e6c13d02aac7feae29a858a49f90 | using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
public class ResultView : SingletonMonoBehavior<ResultView> {
public GameObject Player1_Object;
public GameObject Player2_Object;
public GameObject Player3_Object;
public GameOb... | C# | Assets/_Scripts/Result/ResultView.cs | catlard/fukushima17 | mit | 3,773 | 123 | codeparrot/github-code |
f9275fbf528fe3013a2ce63836adee84bbe78650b32ca315bf0228b4396c714e | #!/usr/bin/env node
'use strict';
var pagemeta = require('./index');
var pkg = require('./package.json');
var uri = process.argv[2];
function printHelp() {
console.log(pkg.description);
console.log('');
console.log('Usage:');
console.log(' $ pagemeta <uri>');
}
if (!uri || process.argv.indexOf('-h') !== -1 ... | JavaScript | cli.js | zrrrzzt/pagemeta | mit | 624 | 30 | codeparrot/github-code |
51b1771149e45691e14dd5f9c413cfb9d2cae1b34a121a27bcf852c1efa90588 | <?php
/**
Plugin Name: oik-nivo-slider
Depends: oik base plugin
Plugin URI: http://www.oik-plugins.com/oik-plugins/oik-nivo-slider/
Description: [nivo] shortcode for the Nivo slider using oik
Version: 1.14
Author: bobbingwide
Author URI: http://www.bobbingwide.com
License: GPL2
Copyright 2012-2014 Bobbi... | PHP | oik-nivo-slider.php | wp-plugins/oik-nivo-slider | mit | 2,410 | 78 | codeparrot/github-code |
0c59d5d1d38a5ba2148d343334e21454332baad0e635fa00fd93a6f24baf3ec4 | <?php
/**
* This file is part of the vardius/crud-bundle package
*
* (c) Rafał Lorenz <vardius@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Vardius\Bundle\CrudBundle\Response;
use Symfony\Bridge\Twig\TwigE... | PHP | Response/ResponseHandler.php | Vardius/crud-bundle | mit | 3,989 | 124 | codeparrot/github-code |
e09ddd5d6817d91528b858d24247e5f5dacab84bc948ef1dc895d20058fbf61f | angular.module('recipals').factory('AuthService', ['$q', '$timeout', '$http', '$cookies', function ($q, $timeout, $http, $cookies) {
// create user variable
var user = $cookies.get('loggedIn');
function isLoggedIn() {
return $cookies.get('loggedIn') == 'true';
}
function getUserStatus() {
... | JavaScript | client/services.js | rickrizzo/recipal | mit | 2,719 | 107 | codeparrot/github-code |
1c6f3f032970d6cd3cb3c91b27ac5d21c093d9cb00a23cf570b583ba278c27a7 | <?php
namespace AppBundle\Controller;
use AppBundle\Form\NestedGridType;
use AppBundle\Game\GridFactory;
use AppBundle\Game\Winner;
use Sensio\Bundle\FrameworkExtraBundle\Configuration as Config;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
class DefaultCont... | PHP | src/AppBundle/Controller/DefaultController.php | bfeaver/wb-ttt | mit | 1,297 | 44 | codeparrot/github-code |
053deb335e1dd3dbfb94150241ce643d0d918382b23d042cde305492f98b90e8 | package br.ufsc.myfood.persistence.dao;
import java.math.BigInteger;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import org.hibernate.Query;
import org.hibernate.SessionFactory;
import org.joda.time.DateTime;
import br.ufsc.myfood.api.Address;
import br.uf... | Java | myfood/src/main/java/br/ufsc/myfood/persistence/dao/MenuOrderDAO.java | ricpass/Restaurante | mit | 4,063 | 131 | codeparrot/github-code |
1c9d1cec8e42a869f1930a63e1ad1206607b49a0fa595e1ccfba69b8c499ad9d | using System;
using System.Runtime.InteropServices;
using Avalonia.Controls.Platform;
using Avalonia.Input;
using Avalonia.Input.Platform;
using Avalonia.MicroCom;
using Avalonia.Native.Interop;
using Avalonia.OpenGL;
using Avalonia.Platform;
using Avalonia.Rendering;
namespace Avalonia.Native
{
class AvaloniaNati... | C# | src/Avalonia.Native/AvaloniaNativePlatform.cs | AvaloniaUI/Avalonia | mit | 6,987 | 179 | codeparrot/github-code |
7caa68b2d97d25dfaf021df00a7906b87023d16b4f3bd8a5092a206af832771b | # -*- coding: utf-8 -*-
#
# Copyright (C) 2009-2015 Ben Kurtovic <ben.kurtovic@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation ... | Python | earwigbot/commands/access.py | earwig/earwigbot | mit | 6,303 | 142 | codeparrot/github-code |
0b5de34d82884421a5f487f2c1be9d8102424d000eb3b0605cdd42d76ff0828b | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Star Wars Day at Sea returning in early 2017</title>
<meta name="description" content="" />
<meta name="HandheldFriendly" content="True" />
<meta name="viewport" content="width... | HTML | 2016/03/10/Star-Wars-Day-at-Sea-returning-in-early-2017.html | mouseguests/mouseguests.github.io | mit | 10,316 | 192 | codeparrot/github-code |
9baeb7d7e44f238c3074497fb26951a1c1e14da9ff6b1e1b2e6ecb1c751a22ea | <!DOCTYPE html>
<html>
<head>
<title>Norfolk Flood Map</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<!-- Load Leaflet from their CDN -->
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.css" />
<scri... | HTML | index.html | Code4HR/norfolk-flood-maps | mit | 4,359 | 108 | codeparrot/github-code |
64868aac53a1840d8a299c20c8bd63d9dbd977899db7427bf43cb9207a504b25 | <?php
namespace Brasa\RecursoHumanoBundle\Controller\Base;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Brasa\RecursoHumanoBundle\Form\T... | PHP | src/Brasa/RecursoHumanoBundle/Controller/Base/HorarioController.php | wariox3/brasa | mit | 8,299 | 160 | codeparrot/github-code |
5fdd21bea7aa6ff16c2be2b5e44fa964f9092dfba75e16ab0972895bc52f077a | package com.sutromedia.android.lib.model;
public class ModelBase {
protected String ensureNotEmpty(String data, String message) throws DataException {
if (data == null || data.length()==0) {
throw new DataException(message);
}
return data;
}
protect... | Java | android-app-core/src/com/sutromedia/android/lib/model/ModelBase.java | sutromedia/android-travel-guide | mit | 1,050 | 38 | codeparrot/github-code |
894e8b59ccad08cf523098f68990392d226ad4148390dea9be5ccaeabd977f70 | <?php
/**
* Annotation module for Zend Framework 2.
*
* @link https://github.com/alex-oleshkevich/zf-annotations the canonical source repository.
* @copyright Copyright (c) 2014-2016 Alex Oleshkevich <alex.oleshkevich@gmail.com>
* @license http://en.wikipedia.org/wiki/MIT_License MIT
*/
namespace ZfAnnot... | PHP | src/ZfAnnotation/Annotation/Route.php | alex-oleshkevich/zf-annotations | mit | 5,963 | 338 | codeparrot/github-code |
e1fe8d15ddeb2cd46b519cd8e5f29d05481f6b39b991eed31a006a0c1a3a7463 | package com.theartball.theartball;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.v7.app.ActionBar;
imp... | Java | app/src/main/java/com/theartball/theartball/ArticlesActivity.java | planta/FS-vijesti | mit | 7,166 | 189 | codeparrot/github-code |
0979289908ffdc5296cbd1c2049636f4258b3767a93af8aa0f90b106857d6320 | Rickshaw.namespace('Rickshaw.Graph.Renderer.ScatterPlot');
Rickshaw.Graph.Renderer.ScatterPlot = Rickshaw.Class.create( Rickshaw.Graph.Renderer, {
name: 'scatterplot',
defaults: function($super) {
return Rickshaw.extend( $super(), {
unstack: true,
fill: true,
stroke: false,
padding:{ top: 0.01, righ... | JavaScript | src/js/Rickshaw.Graph.Renderer.ScatterPlot.js | shutterstock/rickshaw | mit | 1,404 | 58 | codeparrot/github-code |
e8acb2a1726f9bc2d9a80b193d0518dae2b3af05b5414aa5f85a1cd868837621 | <?php
declare(strict_types=1);
namespace Cortex\Foundation\DataTables;
use Cortex\Foundation\Models\Log;
use Cortex\Foundation\Transformers\LogTransformer;
/**
* @property string $resource
* @property string $tabs
* @property string $id
*/
class ImportLogsDataTable extends AbstractDataTable
{
/**
* {@i... | PHP | src/DataTables/ImportLogsDataTable.php | rinvex/cortex-foundation | mit | 3,465 | 100 | codeparrot/github-code |
7d2439fe5c545341df1c0240c51cede9aee453aa95059b591bbe97bd033e084c | <!doctype html>
<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if (IE 7)&!(IEMobile)]><html class="no-js lt-ie9 lt-ie8" lang="en"><![endif]-->
<!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"><!--<!... | HTML | _site/isis-museum/index.html | guygunaratne/guygunaratne.github.io | mit | 13,970 | 231 | codeparrot/github-code |
5613a1b16029a3d43c97946d240da786196ee78c1f16ba7e5598c2548e26b01e | 'use strict';
const Auth = require('../../../server/auth');
const Code = require('@hapi/code');
const Fixtures = require('../fixtures');
const Hapi = require('@hapi/hapi');
const Lab = require('@hapi/lab');
const Manifest = require('../../../manifest');
const Status = require('../../../server/models/status');
const St... | JavaScript | test/server/api/statuses.js | jedireza/frame | mit | 6,138 | 252 | codeparrot/github-code |
e4db58fb19f9cf6ad1e3487f6d17cf5a4687e6c4a5acbe789a05d9997895f578 | var flickr = require('..')(function auth() { /* noop */ });
var assert = require('assert');
describe('flickr.photos.geo.removeLocation', function () {
it('requires "photo_id"', function () {
assert.throws(function () {
flickr.photos.geo.removeLocation({});
}, function (err) {
return err.message === 'Missi... | JavaScript | test/flickr.photos.geo.removeLocation.js | flickr/flickr-sdk | mit | 859 | 31 | codeparrot/github-code |
12f2961224748d503b681d7d949fe16c6ecbf9b644c13e637df279beb252d38e | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>Crayola Color Force</title>
<meta name="description" content="Action will delineate and define you. That fab... | HTML | _site/colorforce/index.html | EricaJaclynStein/ericajaclynstein.github.io | mit | 16,314 | 407 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.