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 |
|---|---|---|---|---|---|---|---|---|
a8e00261370c30331368ae9f47305024d1f4082c1b51c94d5f40d69f4986b49c | using System;
using System.Windows;
namespace XamlCSS.WPF.TestApp
{
/// <summary>
/// Interaktionslogik für "App.xaml"
/// </summary>
public partial class App : Application
{
public string cssStyle1 = @"
@import ""Resources/baseStyle.scss"";
Button
{
Foreground: Red;
}
.... | C# | XamlCSS.WPF.TestApp/App.xaml.cs | warappa/XamlCSS | mit | 1,512 | 108 | codeparrot/github-code |
7894ee3d0a899bdc4aa1e53c3443974eeeac0a62af76d8496431d26f801762da | package co.edu.uniandes.csw.turism.resources;
import co.edu.uniandes.csw.turism.api.IQuestionLogic;
import co.edu.uniandes.csw.turism.entities.QuestionEntity;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.MockitoAnno... | Java | turism-api/src/test/java/co/edu/uniandes/csw/turism/resources/QuestionResourceTest.java | Uniandes-MISO4203/turism-201620-2 | mit | 2,121 | 65 | codeparrot/github-code |
fac27a60432e7989c066c7d1f268816bc107fc1c4f91145dd03bbe627d08c14b | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osuTK;
using osuTK.Graphics;
using osu.Framework.Allocation;
using osu.Framework.Extensions.IEnumerableExtensions;
using osu.Framework.Graphics;
using osu.Framewor... | C# | osu.Game/Screens/Edit/Components/PlaybackControl.cs | DrabWeb/osu | mit | 5,986 | 175 | codeparrot/github-code |
42002538dc6a4f85f50fca1c15c6edbe97edaff5503e9b37bab342ebf9cf3e71 | module Enabler
module Storage
class Redis
attr_reader(:redis)
def initialize(redis)
@redis = redis
end
def add!(feature, model)
redis.sadd key(feature, model), model.id
end
def remove!(feature, model)
redis.srem key(feature, model), model.id
en... | Ruby | lib/enabler/storage/redis.rb | awsmsrc/enabler | mit | 1,011 | 49 | codeparrot/github-code |
984f51365a7632097b945dcc9910d4b2a96634686606473ba185a7697284e859 |
#ifndef SkSize_DEFINED
#define SkSize_DEFINED
template <typename T> struct SkTSize {
T fWidth;
T fHeight;
void set(T w, T h) {
fWidth = w;
fHeight = h;
}
/** Returns true iff fWidth == 0 && fHeight == 0
*/
bool isZero() const {
return 0 == fWidth && 0 == fHeight... | C | libs/cocos2dx/platform/third_party/android/skia/core/SkSize.h | DmitriyKirakosyan/testNinjaX | mit | 1,984 | 91 | codeparrot/github-code |
f7c6dbb7bbef90edbaeab60f449b3eb4c497558852e3642014bf16d1f4bdb92d | import yaml
from os import makedirs
from os.path import join,dirname,realpath,isdir
script_dir = dirname(realpath(__file__))
default_yml_filepath = join(script_dir,'defaults.yml')
defaults = {
"output_dir": 'output',
"header_img_dir": 'imgs/headers/',
"scaled_img_dir": 'imgs/scaled/',
"original_img_d... | Python | dsblog/environment.py | naggie/dsblog | mit | 1,659 | 67 | codeparrot/github-code |
ae50c144fc1d0d970c51ee1afbf1f25b9f076920a56aa87dc8185671525c28dc | /**
* @author 도플광어
-버전 0.13
Box2d 추가
*
* 버전 0.12
* matrix 추가
* box2d 추가
*
*/
this.gbox3d = {
core : {}
};
///
//수학 함수관련 선언
///
gbox3d.core.PI = 3.14159265359;
gbox3d.core.RECIPROCAL_PI = 1 / 3.14159265359;
gbox3d.core.HALF_PI = 3.14159265359 / 2;
gbox3d.core.PI64 = 3.141592653589793;
gbox3d.core.DEGTORAD... | JavaScript | libs/pig2d/js/core.js | gbox3d/pig2d | mit | 18,889 | 833 | codeparrot/github-code |
ac74cd614ad64e59ff0498b237dfa3ccab20a0a966ab5f07829f949965ab9093 | <template name="assignmentTimeSlotCalendar">
{{#if popOverIsOpen}}
{{#if equals getActiveTimeSlotId _id}}
<div class="popOver">
<div class="popOver-header">
{{#if taskName}}
<span>Task : {{taskName}} - {{displayHoursMinute start}} to {{... | HTML | app/client/templates/assignment/AssignmentCalendarComponent.html | assomaker/manifmaker | mit | 3,700 | 77 | codeparrot/github-code |
97ce2c6f859aba4c45b5b94ab05f0bd4a6bd535f06f4e64bfb5ec4c56505c406 | /* Copyright (c) 2010-2013 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "array.h"
#include "str.h"
#include "env-util.h"
#include "execv-const.h"
#include "write-full.h"
#include "restrict-access.h"
#include "master-interface.h"
#include "master-service.h"
#include <stdlib.h>
#include <... | C | src/util/script.c | bdraco/dovecot | mit | 5,764 | 240 | codeparrot/github-code |
c1dbeec6dc5d32d67552501f68fa2551adfd0ea43d8a6dca6267bfb6b9fb92c9 |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>W29037_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/W29037_text/page14.html | datamade/elpc_bakken | mit | 11,343 | 209 | codeparrot/github-code |
8e4cea578da3711e23569a56a295255167fb4e0c62c8c20151adf51744084591 | package ro.ase.cts.observer;
import java.util.ArrayList;
import java.util.Random;
public class StatieMeteo {
//stare observabil
String locatie;
//lista observatori
ArrayList<ClientMeteo> clienti =
new ArrayList<>();
//interfata publica pt gestiunea observatorilor
public void adaugaClient(ClientMeteo cli... | Java | 1069_Seminar7_3/src/ro/ase/cts/observer/StatieMeteo.java | catalinboja/cts-2016 | mit | 1,078 | 55 | codeparrot/github-code |
070c7a475a0984516cc3d2dec15cceb7f8be6144985ff849d6640465acdc4120 | <!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">
<meta name="description" content="Sci blog jekyll theme">
<meta name="author" content="AIR RAYA Group">
<link href='... | HTML | linux/2018/09/26/bash.html | xiazemin/MyBlog | mit | 16,837 | 415 | codeparrot/github-code |
7937cbbeebc8c5f7bb24ac02440127958a321e1d56c3c089e184097689b0c199 | // SPDX-License-Identifier: MIT
use orbclient::{Color, EventOption, GraphicsPath, Mode, Renderer, Window};
fn main() {
let (width, height) = orbclient::get_display_size().unwrap();
let mut window = Window::new(
(width as i32) / 4,
(height as i32) / 4,
width / 2,
height / 2,
... | Rust | examples/simple.rs | redox-os/orbclient | mit | 5,216 | 146 | codeparrot/github-code |
e71db9552e6ec3beb375fcc46157aef089dc8fbb8060e1fdc109b0d9a7890351 |
#ifndef CommandTree_h
#define CommandTree_h
#include "unordered_map"
#include "functional"
class CommandNode{ public:
CommandNode* parrent=0;
std::string info;
std::function<void(void)> func;
std::unordered_map<std::string,CommandNode*> leafs;
CommandNode() = default;
CommandNode( CommandN... | C | cpp/common/utils/commandTree.h | ProkopHapala/SimpleSimulationEngine | mit | 1,379 | 56 | codeparrot/github-code |
3728eeeafecfcaa3383b31431b9a916dde4c03db24eb1ba7857ca164e14b2026 | <?php if (!defined("BASEPATH")) exit("Direct script access not allowed");
class Qdb {
var $return_data = "";
function __construct() {
$this->EE =& get_instance();
}
function quotes() {
$this->EE->load->model("quote", "quotes");
$options = array(
"quote_id" => $this->EE->TMPL->fetch_param("quote_id"... | PHP | mod.qdb.php | raws/ee-qdb | mit | 2,851 | 88 | codeparrot/github-code |
dd3ac21fd9344fa3b19af893cdc27c1dd6975f53c0dee44a99c2e722745dda87 | /*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v0.10.1-rc2-master-7bbfd1f
*/
goog.provide('ng.material.components.radioButton');
goog.require('ng.material.core');
/**
* @ngdoc module
* @name material.components.radioButton
* @description radioButton module!
*/
angular.modu... | JavaScript | modules/closure/radioButton/radioButton.js | CirceThanis/bower-material | mit | 9,695 | 312 | codeparrot/github-code |
ecd3a37186aa8549e32525835f8862535d7b93615fb792ae606f9ea21bfb757c | <?php
/**
* Created by PhpStorm.
* User: sjoder
* Date: 27.05.15
* Time: 21:33
*/
namespace PM\ScanBundle\Model;
use PM\ScanBundle\Entity\File;
/**
* Class FileModel
*
* @package PM\ScanBundle\Model
*/
class FileModel
{
const TRANSCODE_NONE = 0;
const TRANSCODE_WORKING = 1;
const TRANSCODE_IGNOR... | PHP | src/PM/ScanBundle/Model/FileModel.php | pmdevelopment/movie-agent | mit | 1,671 | 90 | codeparrot/github-code |
a4daf173110f862817953907df314116f1f601b430fbbdb098c0718e4e692a93 | var webpack = require('webpack');
var path = require('path');
var mainPath = path.resolve(__dirname,'..','..','src','index.jsx');
var srcPath = path.resolve(__dirname,'..','..', 'src');
var config = require("./webpack.config.js");
var packageJson = require('../../package.json')
/** ============
NOTE: change the follow... | JavaScript | generators/app/templates/tools/webpack/webpack.config.dist.js | desduggan/generator-simple-react-webpack | mit | 955 | 40 | codeparrot/github-code |
73142356084b625bb7c62a71329b8e821d6b05c26e71116901ae13d73df2c207 | package lol4j.protocol.dto.lolstaticdata;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.util.HashMap;
import java.util.Map;
/**
* Created by Aaron Corley on 3/18/14.
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class RuneListDto {
private BasicDataDto basic;
private Map... | Java | src/main/java/lol4j/protocol/dto/lolstaticdata/RuneListDto.java | aaryn101/lol4j | mit | 925 | 46 | codeparrot/github-code |
f940a09cbe417e317f891badb47abc63501fa2aca91294ba27715c779b7cd571 | #!/bin/bash
shopt -s nullglob
# this script will mask any existing global commands
# that collide with function names; in order to
# avoid this, just rename next functions:
# [r, rd, ra, rad]
# if you change other functions' names, you'll
# have to change all the lines where they're invoked
# Check if "src.cpp" exist... | Shell | competitive_script.sh | sashans13/competitive-coding | mit | 4,521 | 201 | codeparrot/github-code |
0ed64e85ad8b88e5cfd65d4af8158eceea446d7b912ba0cde4d37dd022ef7417 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ipc: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="... | HTML | clean/Linux-x86_64-4.05.0-2.0.6/released/8.11.1/ipc/8.8.0.html | coq-bench/coq-bench.github.io | mit | 7,661 | 174 | codeparrot/github-code |
5e24a80f8a39a408078738cdd9516a0e025674eb41bae4507a0981cc00e03d77 | <div class="services-left" id="jump-to">
<div class="services-left-box {{active.services_active}}">
{% if active.services_active != '' %}
<h1>{{__('common.list-services-domains.services.title')}}</h1>
<ul>
<li><a href="{{__enhance.mount('/services#software-outsourcing-service')}}... | HTML | packages/frontend/server/views/sidebar-services.html | ntq-lab/ntq-website-v1 | mit | 4,940 | 56 | codeparrot/github-code |
c2285534bcf757928bd23d68b375386155edecacba10da08663ef846643385d9 | //
// Copyright (c) 2011 - 2015 ASPECTRON Inc.
// All Rights Reserved.
//
// This file is part of JSX (https://github.com/aspectron/jsx) project.
//
// Distributed under the MIT software license, see the accompanying
// file LICENSE
//
var registry = (function()
{
var log = require("log");
var _re... | JavaScript | rte/libraries/registry.js | aspectron/jsx | mit | 3,213 | 113 | codeparrot/github-code |
0b8cbdfef85ac2c6c51f7fc880d2625e00a0ac7afc15f38f58636ba1c708b81b | package provider
import (
"context"
"errors"
"strings"
"github.com/netlify/gotrue/conf"
"golang.org/x/oauth2"
)
// Github
const (
defaultGitHubAuthBase = "github.com"
defaultGitHubApiBase = "api.github.com"
)
type githubProvider struct {
*oauth2.Config
APIHost string
}
type githubUser struct {
Email ... | GO | api/provider/github.go | netlify/gotrue | mit | 2,204 | 97 | codeparrot/github-code |
eaf48e5d9a36e2c30af279c581a2cfdfb4da73fee6ad8ac0d8574758065d8749 | using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.IO.Pipes;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Debugger
{
public static class Log
{
... | C# | System/[Tools]/Debugger/Log.cs | jbatonnet/kernel | mit | 1,697 | 59 | codeparrot/github-code |
a2cfa8e7043b5363167d6b95203856dda64e4f32d86c216fe87cda51e3f8b4e5 | <?php
namespace Unitgen\source;
use Unitgen\source\exception\SourceException;
/**
* Class SourceFileParser
*
* @package Unitgen\source
*/
class SourceFileParser
{
/**
* @var string Path to source file
*/
private $filePath;
/**
* @var string Full name of parsed class
*/
privat... | PHP | src/source/SourceFileParser.php | AlexyAV/unitgen | mit | 3,371 | 162 | codeparrot/github-code |
6bd98a9596b582642b6a0f8838720eda2ba6a1627ce44e66c6d81e5290adeaf1 | import config from '../../config/common';
import Context from '../../src/server/context';
import range from 'range';
/**
* Create an instance of Context with the given list of blacklisted IPs.
*
* @param {Array=} blacklistIPs Array of IPs to blacklist in the context.
* @returns {Object} Initialized context object.... | JavaScript | test/util/context-factory.js | LINKIWI/apache-auth | mit | 780 | 34 | codeparrot/github-code |
f3487e683c7ae801f1f9b3a56e643867ae71124e58d41b0488f469adbd31f5e2 | <?php
namespace Ekyna\Bundle\ProductBundle\Command;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\EntityRepository;
use Doctrine\ORM\Query;
use Ekyna\Bundle\ProductBundle\Entity\Product;
use Ekyna\Bundle\ProductBundle\Model\ProductInterface;
use Ekyna\Bundle\ProductBundle\Model\ProductTypes;
use Symfony\C... | PHP | Command/WeightFromSupplierCommand.php | ekyna/ProductBundle | mit | 4,870 | 161 | codeparrot/github-code |
7867ec68cdb0134984c11f8bdf4c9767b8a2dc005735a3bbb1e92087ce702486 | package ua.ds.experiments.n05;
import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.Fork;
import org.openjdk.jmh.annotations.Setup;
import ua.ds.QueueBenchmark;
import ua.ds.array.boxed.BitMaskResizableNotShrinkArrayQueueBoxed;
import ua.ds.array.primitive.BitMaskResizableNotShrinkArrayQue... | Java | java-impl/queues/sequential-benchmarks/src/main/java/ua/ds/experiments/n05/PrimitiveVsBoxed.java | Alex-Diez/data-structure-experiments | mit | 3,308 | 99 | codeparrot/github-code |
455ce91b06b5cdd894dd78830693d6e0987487cd52f91412fac42e6fe735d97a | #include <sstream>
#include <time.h>
#include <sys/time.h>
#include <iomanip>
#include <boost/filesystem/path.hpp>
#include <SpatialDomains/MeshGraph2D.h>
#include <MultiRegions/DisContField2D.h>
#ifdef NEKTAR_USING_CHUD
#include <CHUD/CHUD.h>
//#define SHARK
#endif
using namespace Nektar;
std::string PortablePat... | C++ | library/Timings/TimingHDGHelmSolve2D.cpp | SCOREC/nektar | mit | 13,774 | 400 | codeparrot/github-code |
37c64281b0b99e5d68fa5e67c84303150fe8e89fd59900255cfd603ae7aa76d4 | ---
title: Pull List for September 19, 2018
date: 2018-09-17 20:38:00 -05:00
tags:
- comics
- pull list
custom_type: post
---
Another Wednesday is around the corner, and that means it'll be New Comic Book Day! Here's what I read last week, and what I'll be picking up this week.
## What I read last week
- **The Amazi... | Markdown | _posts/2018-09-17-pull-list-for-september-19-2018.markdown | smithtimmytim/brightlycolored.org | mit | 3,097 | 34 | codeparrot/github-code |
833973a541f57561fd425922f34179dd4093d16dec4e37b3eeb345d0eb9255c6 | using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Reflection;
using System.Windows.Markup;... | C# | TwaijaComposite.Modules..Controls.Silverlight/SilverlightMarkupExtensions.cs | chidionuekwusi/Twaija | mit | 6,475 | 169 | codeparrot/github-code |
26fdb56c14ff30a59be4f4cf1e457def7a93daa27198fd6de50dc8a34f409eb8 | import { Component, EventEmitter, Output, trigger, state, transition, style, animate, OnInit } from '@angular/core';
import { Observable } from 'rxjs/Observable';
@Component({
selector: 'ng2-header',
styleUrls: ['./ng2-header.scss'],
templateUrl: './ng2-header.html',
animations: [
trigger('isTopOfPage', ... | TypeScript | src/app/components/panels/common/ng2-header/ng2-header.component.ts | johndi9/ng2-web | mit | 1,499 | 67 | codeparrot/github-code |
52b83632b728c30d3d6458f806e2d179b158d806f929ef10edf60d440e415842 | using UnityEngine;
using System.Collections;
public class CoreBehaviour : MonoBehaviour {
public static bool upgradeOn = false;
public static bool buildOn = false;
static int towerhealth;
static bool gameOn;
public static int waveNumber;
// Use this for initialization
void Start () {
tow... | C# | Assets/Scripts/CoreBehaviour.cs | aaronr4043/Pirate-In-Barrels | mit | 949 | 51 | codeparrot/github-code |
c2c51c81d115eb209512baf423c58bfea6fd34a76482e95dd12c32b0cf32654b |
<!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/ve/velox.core.0.9.15.406/Velox.Core-portable-net45%2Bnetcore45%2Bwpa81%2Bwp8%2BMonoAndroid1%2BMonoTouch1.html | kuhlenh/port-to-core | mit | 15,460 | 373 | codeparrot/github-code |
6502fbc3a633ea4cb1214245a612fae85fb02681359ce9cb872ff35ac3b093b5 |
#ifndef BOOST_MPL_VECTOR_AUX_ITEM_HPP_INCLUDED
#define BOOST_MPL_VECTOR_AUX_ITEM_HPP_INCLUDED
// Copyright Aleksey Gurtovoy 2000-2004
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// See http://www.bo... | C++ | vegastrike/boost/1_35/boost/mpl/vector/aux_/item.hpp | Ezeer/VegaStrike_win32FR | mit | 2,521 | 104 | codeparrot/github-code |
a1acd45197ec84b94534b9012b0efea38554a7c53d5c23083107f22e8aac11ec | package org.books.data.mapper;
import org.apache.commons.beanutils.BeanUtils;
import org.apache.commons.beanutils.Converter;
import org.books.data.dto.AddressDTO;
import org.books.data.entity.Address;
import java.lang.reflect.InvocationTargetException;
public class AddressMapper {
class DtoToEntityConverter<Add... | Java | bookstore-jpa/src/main/java/org/books/data/mapper/AddressMapper.java | Krigu/bookstore | mit | 1,165 | 47 | codeparrot/github-code |
e910823d142fd36b7a774b2fdbe154bf6ba754ccdc38dc6c295bce50ab32cd45 | #==============================================================================
#
# ¥ Yami Engine Symphony - Add-on: Visual Effect Tags
# -- Last Updated: 2012.10.20
# -- Level: Nothing
# -- Requires: n/a
#
#==============================================================================
$imported = {} if $imported.n... | Ruby | battle-symphony/add-on/Visual-Effect.rb | suppayami/rmvxa-collection | mit | 20,651 | 560 | codeparrot/github-code |
55f6c6eaec5a08ca0ba9245135e1c3936404e87a6440437c14d9b1446c1ab4dc | #include <bits/stdc++.h>
using namespace std;
template <typename T=int>
struct Fenwick {
int n;
vector<T> v;
Fenwick(int size = 100005) : n(size), v(n+1, 0) {}
inline void add(int p, T val) {
for (; p <= n; p += (p&-p)) { v[p] += val; }
}
inline T query(int p) {
T tmp = 0;... | C++ | codeforces/1093e_offline.cpp | sogapalag/problems | mit | 3,065 | 123 | codeparrot/github-code |
209cafd097d93e7c04a170bc6779280853712e570e1acb35607db633b1fbb298 | // C3DPhysxDialog.cpp : implementation file
//
#include "stdafx.h"
#include "C3DPhysxView.h"
#include "afxdialogex.h"
using namespace graphic;
using namespace physx;
C3DPhysxView *g_3DPhysxView = NULL;
// C3DPhysxDialog dialog
C3DPhysxView::C3DPhysxView(CWnd* pParent /*=NULL*/)
: C3DView(pParent)
{
g_3DPhysxVi... | C++ | UIComponent/C3DPhysxView.cpp | jjuiddong/Common | mit | 7,320 | 317 | codeparrot/github-code |
8361b5de36be52b3279d505fd97858517cfaa550db8863838de03b5a7e60e578 | #include "EllipseFromCorners.h"
void EllipseFromCorners::EllipseFromCornersUpdate(MainWindow& wnd, Graphics& gfx, Menu& menu)
{
if (wnd.mouse.LeftIsPressed())
{
if (EllipseWorkspace(menu)) // do not initialize if out side of work space
{
Ex1 = wnd.mouse.GetPosX();
Ey1 = wnd.mouse.GetPosY();
... | C++ | Engine/EllipseFromCorners.cpp | oBornToCreateo/Chilly-Framework | mit | 2,551 | 106 | codeparrot/github-code |
5fa99378502e4d34a424bbc6f236465fd85ac4ed2052bcf5e2114d197fe45ae4 | # -*- coding: utf-8 -*-
# Copyright (c) 2006-2010 Tampere University of Technology
#
# 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 r... | Python | adapterlib/testrunner.py | tema-mbt/tema-adapterlib | mit | 15,926 | 502 | codeparrot/github-code |
4fcb06372a50150cdc6e9a5555b88c866594d932d04abe893aa91ceed38f0d55 | <?php
/*
* This file is part of the Rakorium\Okapi Web Application Framework
* (c) 2016 GitHub/rakorium
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Rakorium\Okapi\Ref;
/**
* TODO: Break the big functions into smalle... | PHP | src/Ref/Uri.php | rakorium/okapi | mit | 9,314 | 400 | codeparrot/github-code |
364f3a2bfd10876fa800ccd841e36d4a76e2018df4c01613849bcc25ba81d822 | package com.ocdsoft.bacta.swg.server.game.group;
import com.ocdsoft.bacta.swg.shared.localization.StringId;
/**
* Created by crush on 5/28/2016.
* <p>
* Just a class to give some type safety and maintainability to group {@link com.ocdsoft.bacta.swg.shared.localization.StringId}
* references.
*/
public final clas... | Java | game-server/src/main/java/com/ocdsoft/bacta/swg/server/game/group/GroupStringId.java | bacta/swg | mit | 3,455 | 46 | codeparrot/github-code |
52ffa98d1b9d41c96ec6d368c89b345daae25161cc81cc451ce766362365a811 | package dotsboxes.events;
import dotsboxes.game.TurnDesc;
public class GameTurnEvent extends Event
{
boolean m_edge; // True if player mark edge.
TurnDesc m_turnDesc;
boolean m_switchTurn;
public GameTurnEvent(EventType someThing, boolean edge, TurnDesc turnDesc, boolean switchTurn)
{
super(someThing);
m... | Java | src/dotsboxes/events/GameTurnEvent.java | asavonic/DotsBoxes | mit | 974 | 62 | codeparrot/github-code |
6f9ce7307e74e5912e42ceba402416951de3f24976ab2fe8e6bbac2fa6edfd4b | /*
* Copyright 2015 Hewlett-Packard Development Company, L.P.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
*/
package com.hp.autonomy.frontend.find.core.beanconfiguration;
import com.hp.autonomy.frontend.find.core.web.FindController;
import org.... | Java | find-core/src/main/java/com/hp/autonomy/frontend/find/core/beanconfiguration/SecurityConfiguration.java | ExperisIT-rav/Bifhi-release | mit | 2,213 | 54 | codeparrot/github-code |
de47d0012ca1dbb29d9972c64634ed6ffb0ab285c01c614e155347315ce0173e | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge"><![endif]-->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="Asciidoctor 1.5.4">
<title>gitglossary(7)</title>
<link rel="stylesheet" hre... | HTML | mingw64/share/doc/git-doc/gitglossary.html | TheRobertSnow/Verkefni_7 | mit | 66,409 | 1,228 | codeparrot/github-code |
14034396b95260571c95c321f049edbf91e6f8282bb6230e34358034b9ac1faa | <?php
class Statistics_model extends CI_Model {
/*
+počet filmou
+počet hercou
+počet žánrou
+počet tagov
+počet štatov
-počet požičiek(aktualnych / všetkych)
-počet uživatelov
+najlepšie filmy
+najnovšie pridane filmy
+najdlhšie filmy
-najnovšie natočené filmy
+najlepší herci
+najlepšie žánre
+najlepšie tagy
+najle... | PHP | Sem6/DBS/application/models/Statistics_model.php | G43riko/FIIT | mit | 4,150 | 145 | codeparrot/github-code |
1fb0ddb09824a339faaab654bdf97e697528081947dc8130aceb81d403bb5fc5 | using System;
namespace Messages
{
public class SearchRequested : Event
{
public string ClientResponseStream { get; private set; }
public OuroSearchType SearchType { get; private set; }
public DateTime DesiredDeliveryDate { get; private set; }
public string DeliveryPostCode { ... | C# | backend/src/Messages/SearchRequested.cs | EventStore/Sklaida | mit | 2,124 | 44 | codeparrot/github-code |
6ccec5fe362b804a25a334d94d3846ba56276a3fe9f1758f47d60f4a9fd48456 | <?php
namespace EM\GameBundle\Service\AI;
use EM\GameBundle\Entity\Battlefield;
use EM\GameBundle\Entity\Cell;
use EM\GameBundle\Exception\CellException;
use EM\GameBundle\Model\CellModel;
use EM\GameBundle\Service\CoordinateSystem\PathProcessor;
/**
* @see AIStrategyProcessorTest
*
* @since 8.0
*/
class AIStr... | PHP | src/GameBundle/Service/AI/AIStrategyProcessor.php | eugene-matvejev/battleship-game-api | mit | 2,626 | 91 | codeparrot/github-code |
2a2f989fbb2707f2feb9662033ca1a4f186f188b629cbf6e02517c2649c7c416 | package main
import (
"bytes"
"fmt"
"html"
"strings"
"text/template"
b64 "encoding/base64"
"github.com/bsm/openrtb"
)
const (
//Auction Macros
AUCTION_ID = "${AUCTION_ID}"
AUCTION_IMP_ID = "${AUCTION_IMP_ID}"
AUCTION_SEAT_ID = "${AUCTION_SEAT_ID}"
AUCTION_AD_ID = "${AUCTION_AD_ID}"
AUCTION_... | GO | generator.go | ceocoder/requester | mit | 2,108 | 93 | codeparrot/github-code |
2a011b8e3364cb8d5ba4270888ccbe71caa9cd03ccaf739bd8b3e18627645820 | <?php
namespace Illuminate\View\Compilers;
use Illuminate\Container\Container;
use Illuminate\Contracts\Support\Htmlable;
use Illuminate\Contracts\View\Factory as ViewFactory;
use Illuminate\Contracts\View\View;
use Illuminate\Support\Arr;
use Illuminate\Support\Str;
use Illuminate\Support\Traits\ReflectsClosures;
us... | PHP | src/Illuminate/View/Compilers/BladeCompiler.php | laravel/framework | mit | 21,619 | 829 | codeparrot/github-code |
d1298d09eee7447d324946ae9b93915678775a2a0d6468250b06bf5509a411df | module EcsCompose
# Information required to create an ECS task definition, and commands to
# act upon it.
class TaskDefinition
attr_reader :type, :name, :yaml
# Create a new TaskDefinition. The type should be either `:task` or
# `:service`, the name should be both the name of the ECS task
# def... | Ruby | lib/ecs_compose/task_definition.rb | faradayio/ecs_compose | mit | 5,439 | 156 | codeparrot/github-code |
04eed81e56fa5d0650bb7b6f20f2348cb8cff46361468c2068d267a49fb46f2f | package fsb.semantics.naivepso;
import java.util.Arrays;
import java.util.HashSet;
import java.util.WeakHashMap;
import fsb.semantics.AbsSharedResVal;
import fsb.tvl.ArithValue;
import fsb.tvl.DetArithValue;
import fsb.utils.Options;
public class SharedResVal implements Cloneable, AbsSharedResVal
{
public enum vali... | Java | fender-sb-bdd/src/fsb/semantics/naivepso/SharedResVal.java | hetmeter/awmm | mit | 3,984 | 192 | codeparrot/github-code |
988f4cd42e0031debf713b6eabb323e7be2c568abe72c8c45ba70d74aa18cc80 | class ApplicationController < ActionController::Base
protect_from_forgery
before_filter :check_url, :set_lastfm, :set_facebook, :authenticate, :check_facebook_referral
helper :all
helper_method :current_user_session, :current_user
unless Rails.application.config.consider_all_requests_local
rescue... | Ruby | app/controllers/application_controller.rb | morion4000/molamp | mit | 4,084 | 120 | codeparrot/github-code |
22dc84d3d4ca92bd7eb849f68447a4e8e30cd7c1050fff2267cfdfe512ef3839 | import { Injectable } from '@angular/core';
import { Action } from '@ngrx/store';
import {Offer} from '../model/backend-typings';
@Injectable()
export class OfferActions {
static LOAD_OFFERS = '[Offer] Load Offers';
loadOffers(): Action {
return {
type: OfferActions.LOAD_OFFERS
};
}
static LOAD... | TypeScript | frontend/src/app/actions/offer.actions.ts | joachimprinzbach/ng2-camp | mit | 1,776 | 80 | codeparrot/github-code |
80350f1c7c15f475bddb6f9bf16c5aac6267d648aa7de8891b0a3723d6b8da9e | <?php
namespace App\Aggregate\Entity;
use App\TimeRange\TimeRangeAwareInterface;
use App\TimeRange\TimeRangeAwareTrait;
use WeavingTheWeb\Bundle\ApiBundle\Entity\Status;
use WeavingTheWeb\Bundle\ApiBundle\Entity\StatusInterface;
class SearchMatchingStatus implements TimeRangeAwareInterface
{
use TimeRangeAwareTr... | PHP | src/App/Aggregate/Entity/SearchMatchingStatus.php | WeavingTheWeb/devobs | mit | 1,072 | 57 | codeparrot/github-code |
c557ffd16e6e8cd4375bb248495ec7c30b12fc28ecd3db039f41b9802723f065 | (function(){
'use strict';
angular
.module('app')
.constant('LSVER', 1);
angular
.module('app')
.constant('LSKEYS', {
fontSize: 'fontSize',
fontBold: 'fontBold',
themeDarK: 'themeDarK',
auth: 'auth',
data: 'data'
});
angular
.module('app')
.service('... | JavaScript | www/js/model/ls-service.js | dedabyte/nt-lyrics | mit | 1,913 | 85 | codeparrot/github-code |
6690191315e9cd6a650ab108e7aaf881b66b0565176d9b3efb6e506cd39a8713 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-analysis: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstr... | HTML | clean/Linux-x86_64-4.10.2-2.0.6/released/8.12.0/mathcomp-analysis/0.3.1.html | coq-bench/coq-bench.github.io | mit | 7,459 | 185 | codeparrot/github-code |
74171f3cc4c34ab30639cac96a1801e4def49a49347519e07124c9be1c97e922 |
package com.buglabs.dweetlib;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.Reader;
import java.io.UnsupportedEncodingException;
import java.lang.reflect.Array;
import java.net.HttpURLConnectio... | Java | Android/DweetLib/java/com/buglabs/dweetlib/DweetLib.java | buglabs/dweet-apps | mit | 7,551 | 290 | codeparrot/github-code |
5e31242be0d8d5023fede8f8a97f90f984d1b94c2c7a8831d70f13a6d3ae95bb | <?php
namespace Onend\PayPal\Payment\Client;
use Guzzle\Http\Message\Response;
use Onend\PayPal\Common\Client\AbstractAuthenticatedClient;
use Onend\PayPal\Common\Enum\Endpoint;
use Onend\PayPal\Common\Enum\RequestFormat;
use Onend\PayPal\Payment\Model\Payment;
use Onend\PayPal\Payment\Model\PaymentList;
class Paym... | PHP | src/Onend/PayPal/Payment/Client/PaymentClient.php | Onend/paypal-sdk-php | mit | 2,647 | 103 | codeparrot/github-code |
c22496237cbb097b6c29bcfc435183945e65221f152d31c85f6c4eb706e3617b | package influxdb
import (
"context"
"strconv"
"strings"
"unicode"
)
// DBRPMappingServiceV2 provides CRUD to DBRPMappingV2s.
type DBRPMappingServiceV2 interface {
// FindBy returns the dbrp mapping for the specified ID.
// Requires orgID because every resource will be org-scoped.
FindByID(ctx context.Context, ... | GO | dbrp_mapping.go | nooproblem/influxdb | mit | 7,748 | 286 | codeparrot/github-code |
ff74ecd26840c1bb963f97ccfb2f0e97e9106d3d4a15b351661e6edf3a9cd862 | using System;
using AsyncRPGSharedLib.Common;
namespace AsyncRPGSharedLib.Protocol
{
//NOTE: If you add an event make sure to update the following:
// * De/SerializeParametersByType() in GameEventQueries.cs
// * Add a game event structure below
[Serializable]
public enum eGameEventType
{
... | C# | src/server/AsyncRPGSharedLib/Protocol/GameEvents.cs | brendanwalker/AsyncRPG | mit | 8,070 | 306 | codeparrot/github-code |
fcd35883697866bb72fb7113ff9816b0c054bd030c8315b6b6548ecc105f5df5 | /**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {CompilerConfig, ResourceLoader} from '@angular/compiler';
import {Compiler, Component, ComponentFactoryResolv... | TypeScript | packages/platform-browser/test/testing_public_spec.ts | brandonroberts/angular | mit | 40,711 | 1,095 | codeparrot/github-code |
655f0de5117d9c7ef624280b67981f88a0dcd2787e0e0c195a997b440771a820 | using System;
namespace FastFileReader
{
partial class BlockReader32
{
protected class Buffer32 : Buffer
{
public new class InternalSearchData : ISearchData
{
public bool[] checkB0;
public bool[] checkB1;
public bool[] checkB2;
public... | C# | FastFileReader/BlockReader32.Buffer32.cs | friedlP/FTail | mit | 10,166 | 292 | codeparrot/github-code |
30eedf2f2cf143e5142678752949c17d3826f51e26765eaa0b3eaa1c895cd9b3 | <?php
/** Zend_Form */
require_once 'Zend/Form.php';
/**
* Zend_Form_SubForm
*
* @category Zend
* @package Zend_Form
* @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id: SubForm.... | PHP | Form/SubForm.php | dav-m85/shaw-core | mit | 1,106 | 45 | codeparrot/github-code |
d1197f2c83f6e875ea8d211ac12cb17b2778ddad321439787694db79686fa0ae | // Copyright 2015 Las Venturas Playground. All rights reserved.
// Use of this source code is governed by the MIT license, a copy of which can
// be found in the LICENSE file.
#ifndef PLAYGROUND_BINDINGS_MODULES_MYSQL_CONNECTION_MESSAGES_H_
#define PLAYGROUND_BINDINGS_MODULES_MYSQL_CONNECTION_MESSAGES_H_
#include <me... | C | src/playground/bindings/modules/mysql/connection_messages.h | LVPlayground/playgroundjs-plugin | mit | 1,411 | 61 | codeparrot/github-code |
3918e8c038b39b6053b4455840969b3fad73b954ad3aa5a0358d03cef9dd9f80 | (function($) {
'use strict';
Crafty.scene('editor', function editorScene () {
showEditorForm();
var _width = Crafty.viewport.width;
var _height = Crafty.viewport.height;
var bricksCreated = 0;
var lvl = {
name: "Dynamic Level",
bricks: []
... | JavaScript | app/scripts/scene/editor.js | jonashartmann/arkanoid | mit | 4,987 | 157 | codeparrot/github-code |
edf2a640db4d805c706c55e0393b553328aa5e1e9ed1ed0f2b755d5ca3a8ef87 | HOST = '127.0.0.1'
PORT = 8080
from Tkinter import *
import tkColorChooser
import socket
import thread
import spots
################################################################################
def main():
global hold, fill, draw, look
hold = []
fill = '#000000'
connect()
root = Tk()
root... | Python | recipes/Python/511434_Paint_10/recipe-511434.py | ActiveState/code | mit | 3,174 | 116 | codeparrot/github-code |
4b2d95213dc188b776c00ffa755b34e8a0599adec1387a98d5ed37d0750d57ff | /**
* This file is part of the Harmony package.
*
* (c) Mickael Gaillard <mickael.gaillard@tactfactory.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
package com.tactfactory.harmony.test.project;
import static org.junit.Asse... | Java | src/com/tactfactory/harmony/test/project/ProjectInitTest.java | TACTfactory/harmony-core | mit | 5,483 | 174 | codeparrot/github-code |
fedcdeb6333071e14c1606a418094fa54d0d47714184409473e7569137c78254 | /*Owner & Copyrights: Vance King Saxbe. A.*/""" Copyright (c) <2014> Author Vance King Saxbe. A, and contributors Power Dominion Enterprise, Precieux Consulting and other contributors. Modelled, Architected and designed by Vance King Saxbe. A. with the geeks from GoldSax Consulting and GoldSax Technologies email @vsaxb... | Python | engine.py | VanceKingSaxbeA/MarketsEngine | mit | 3,899 | 72 | codeparrot/github-code |
9719db1424341fc703b4b12b6b27350e79b30859e5c0e2c47cccd70b65736b59 | 'use strict';
var https = require('https');
var q = require('q');
function logError(error) {
console.log("[Lightify] Error!");
if (error.statusMessage) {
console.log("[Lightify] HTTP Error: " + error.statusCode + " - " + error.statusMessage);
console.log("[Lightify] HTTP Headers: ");
... | JavaScript | org.OpenT2T.Onboarding.LightifyHub/node/hub.js | openT2T/onboarding | mit | 6,731 | 213 | codeparrot/github-code |
a510b21a417f7bbd3148d72d405809e9ee9a9d394a255d4c7b30a4eb623f628e | <!DOCTYPE html>
<!--[if lt IE 7]>
<html lang="en" ng-app="todoAngular" class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>
<html lang="en" ng-app="todoAngular" class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>
<html lang="en" ng-app="todoAngular" class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!... | HTML | app/index.html | sumitkumar25/todoAngular | mit | 2,543 | 56 | codeparrot/github-code |
5b35653f502eab8c9cafe7125677ebe75514bdcf5989e32a688a732464b65de9 | package command
import (
"fmt"
"log"
"github.com/atsaki/golang-cloudstack-library"
"github.com/atsaki/lockgate"
"github.com/atsaki/lockgate/cli"
)
var (
TemplateList = cli.Command{
Name: "list",
Help: "List templates",
Args: []cli.Argument{
cli.Argument{
Name: "ids",
Help: "VM ids",
Type: ... | GO | command/template.go | atsaki/lockgate | mit | 1,941 | 99 | codeparrot/github-code |
e10785f8bd5312abf38d1511cd86f155cb53aa4bb9b9880fcbcc5f1ffe099c49 | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2016 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "base58.h"
#include "consensus/validation.h"
#include "validation.h" //... | C++ | src/wallet/walletdb.cpp | zcoinofficial/zcoin | mit | 56,602 | 1,715 | codeparrot/github-code |
6ee012b00780f49f97e05f8abf5be5445c930276a0011034193c86518f12aaee | /* Copyright 2015 Dietrich Epp.
This file is part of Dash and the Jetpack Space Pirates. The Dash
and the Jetpack Space Pirates source code is distributed under the
terms of the MIT license. See LICENSE.txt for details. */
'use strict';
var glm = require('gl-matrix');
var vec2 = glm.vec2;
var color = requ... | JavaScript | src/entity.js | depp/jetpack | mit | 1,206 | 57 | codeparrot/github-code |
0ff8181eb753684b423f6e6016f4a5b53decd9b836b441259d2ec1edeb83f702 | package mota.dev.happytesting.repositories.implementations;
import android.util.Log;
import java.util.List;
import io.reactivex.Observable;
import io.reactivex.Observer;
import io.realm.Realm;
import io.realm.RealmResults;
import mota.dev.happytesting.MyApplication;
import mota.dev.happytesting.models.App;
import mo... | Java | app/src/main/java/mota/dev/happytesting/Repositories/implementations/AppLocalImplementation.java | VunterSlaush/happy_testing | mit | 6,687 | 207 | codeparrot/github-code |
0612af23399aefe471e80c1dd13214e2fa69dae700c996269329c623f09f07f4 | using System;
using System.IO;
using System.Linq;
using System.Xml.Linq;
namespace BookFast.Facility.Data
{
internal static class ConfigurationHelper
{
public static string GetConnectionString(string targetEnv)
{
var configPath = $"../BookFast/ApplicationParameters/{targetEnv}.xml";... | C# | BookFast.Facility.Data/ConfigurationHelper.cs | dzimchuk/book-fast-service-fabric | mit | 1,250 | 33 | codeparrot/github-code |
a1feeca992e888d1a4cd9d773b243d7442cf43496bd1a4e264402f49c97d5eda | /* *************************
* "CLASS": Player
* *************************/
function Player(x, y){
/* ### ATTRIBUTES ### */
Entity.call(this, x, y);
this.vx = 0;
this.vy = 0;
this.currentMaxHealth = 2;
this.health = 2;
this.sprite = new Sprite('res/spritesheet.png', [0, 0], [32,32] , 12, [0,1,2,3,4,5,6,7]);... | JavaScript | game/js/1.0.0_Player.js | CaioIcy/Gladiator | mit | 2,609 | 110 | codeparrot/github-code |
68ca94c15c9d44a658f554efb680aba2a9da3c043d874cd1bab52aa3874a2647 | /**
* Common utilities
* @module glMatrix
*/
// Configuration Constants
export var EPSILON = 0.000001;
export var ARRAY_TYPE = typeof Float32Array !== 'undefined' ? Float32Array : Array;
export var RANDOM = Math.random;
/**
* Sets the type of array used when creating new vectors and matrices
*
* @param {Typ... | JavaScript | 2020-devsummit/ArcGIS-API-for-JavaScript-Under-The-Hood/src/libs/gl-matrix/esm/common.js | ycabon/presentations | mit | 1,347 | 50 | codeparrot/github-code |
b7409b0d3d82f5e31c8acb5e202dde09364e5482d0a4ca1a13fd38c38a155ca9 | /* jshint node: true */
'use strict';
var util = require('util');
var _ = require('underscore');
var defaults = require('../defaults');
var options = require('../options');
var descriptor = defaults.defaultDescriptor({
'productName': {
name: 'Product Name',
required: true
},
'productDesc': {
na... | JavaScript | lib/commands/createproduct.js | apigee-internal/apigeetool-node | mit | 3,326 | 152 | codeparrot/github-code |
cec4b2c962c3ee15b3d2acc8af734d98114771e9b4139d99de56457b34d807fd | /*
* The MIT License (MIT)
*
* Copyright (c) 2014 Adam Alyyan
*
* 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, co... | Java | src/main/java/dto/staticdata/BasicData.java | a64adam/ulti | mit | 3,437 | 145 | codeparrot/github-code |
7b500e09a52fa71fb81576e0e284c3506edb69595b856d58582ab9471dc6c4b6 | import struct
import uuid
from enum import IntEnum
from typing import List, Optional, Set
from .sid import SID
class ACEFlag(IntEnum):
""" ACE type-specific control flags. """
OBJECT_INHERIT = 0x01
CONTAINER_INHERIT = 0x02
NO_PROPAGATE_INHERIT = 0x04
INHERIT_ONLY = 0x08
INHERITED = 0x10
... | Python | src/bonsai/active_directory/acl.py | Noirello/PyLDAP | mit | 13,344 | 414 | codeparrot/github-code |
7b8243d2a85475af315c8748dffb287ca3283b8a2583b92fa5defc93d730f6e4 | from django import forms
from djwed.wedding.models import *
from djwed.wedding.admin_actions import *
from django.contrib import admin
class RequireOneFormSet(forms.models.BaseInlineFormSet):
"""Require at least one form in the formset to be completed."""
def clean(self):
"""Check that at least one fo... | Python | wedding/admin.py | garyp/djwed | mit | 10,509 | 309 | codeparrot/github-code |
11a6dd755f0ae0d6ecb5c76146d2bbc9f932d6c587c9fd0aa9a44da34d2e124a | /*******************************************************************************
* Copyright (c)
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse... | Java | no.sintef.autorealspl.converter.parent/no.sintef.bvr.model/src/bvr/impl/CompoundNodeImpl.java | SINTEF-9012/autorealspl | mit | 4,934 | 195 | codeparrot/github-code |
f9f3469a363c52c8c6f54ebc09cb5ae31c93964e00ae829dbf6fe5c4efdb4c55 | const zlib = require('zlib');
const log = require('winston');
const Mutex = require('../mutex');
const database = require('../models/mysql');
const ENV = process.env.NODE_ENV || 'development';
const config = ENV !== 'test' ? require('../config') : require('../config.sample');
// Constants
const CHARACTERS = '0123456... | JavaScript | api/node-echoprint-server/controllers/fingerprinter.js | andela-kakpobome/hazaam | mit | 15,052 | 451 | codeparrot/github-code |
ea640240b02eb2ea44b4defe9833723a9acf98c8692d7d89599e03863172bf64 | import calendar
import collections
try:
from collections.abc import Iterable
except:
from collections import Iterable
from time import strptime
from six import string_types
from lxml import etree
from itertools import chain
def remove_namespace(tree):
"""
Strip namespace from parsed XML
"""
fo... | Python | pubmed_parser/utils.py | titipata/pubmed_parser | mit | 4,118 | 152 | codeparrot/github-code |
6ef52ba954b8014f54218cbadc2ed151dcc50c797330b0dd1a958757b7792cbd | <!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<!-- begin SEO -->
<title>Post: Twitter Embed - Witty AI</title>
<meta name="description" content="🎨 Finally got around to adding all my @procreateapp creations with time lapse videos https://t.co/1nNbkefC3L pic.twitter.co... | HTML | _site/media/post-twitter-embeds/index.html | WittyAgnomen/WittyAgnomen.github.io | mit | 16,722 | 543 | codeparrot/github-code |
57981d00bd033c865e9fb8ff4c424e0989b16ec9a704bc09605e11a2e0a95268 | <?php
/**
* ownCloud - media plugin
*
* @author Robin Appelman
* @copyright 2010 Robin Appelman icewind1991@gmail.com
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
* License as published by the Free Software Foundation; either
*... | PHP | owncloud_apps_media_lib_collection.php | Teino1978-Corp/Teino1978-Corp-owncloud_.htaccess- | mit | 11,635 | 381 | codeparrot/github-code |
b2566586dbcee440a1fc4a1238a94b1036f4f7cb18d2a3e6b0a91306a66bb8ea | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ptsatr: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css"... | HTML | clean/Linux-x86_64-4.09.1-2.0.6/released/8.7.1/ptsatr/8.5.0.html | coq-bench/coq-bench.github.io | mit | 7,091 | 173 | codeparrot/github-code |
7ffcc80d92910fe33882d2390d4cd9e560d7646180042278dc3ad5682decdbed | <?php
/*
* Copyright (c) Terramar Labs
*
* For the full copyright and license information, please view the LICENSE file
* that was distributed with this source code.
*/
namespace Terramar\Packages\Plugin\Satis;
use Composer\Config;
use Composer\IO\ConsoleIO;
use Composer\Repository\ComposerRepository;
use Nice\... | PHP | src/Plugin/Satis/InventoryController.php | terramar-labs/packages | mit | 3,119 | 105 | codeparrot/github-code |
8b5ac550ddb66450603018106deee03e00f10002100dcf4102b0fd3f882b109f | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>Release 8.1.15</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REV="MADE"
HREF="mailto:pgsql-docs@postgresql.org"><LINK
REL="HOME"
TITLE="PostgreSQL 9.... | HTML | postgresql/html/release-8-1-15.html | jenmwang/portfolio_site_2013 | mit | 6,283 | 362 | codeparrot/github-code |
f1064c996586fd770b33667ff7483d871d2a5b0681902574f5b630ef9953fa9e | using System;
using System.Collections.Generic;
using System.Text;
namespace OctoAwesome.Database.Threading
{
public readonly struct DatabaseLock : IDisposable, IEquatable<DatabaseLock>
{
public static DatabaseLock Empty = default;
public bool IsEmpty => this == default;
private read... | C# | OctoAwesome/OctoAwesome.Database/Threading/DatabaseLock.cs | OctoAwesome/octoawesome | mit | 1,689 | 52 | codeparrot/github-code |
51cbdec3e0db95e33afbdc1fa4025905e73ac72da4b63b23333bdc5158b5880c | #!/usr/bin/env python2
import time
import random
class Battle:
def __init__(self, user1, user2):
self.user1 = user1
self.user2 = user2
self.turn = user1
self.notTurn = user2
self.accepted = False
self.finished = False
self.auto = False
self.turnCount... | Python | commands/classes/Battle.py | AlexMog/IRCPokemonBot | mit | 1,766 | 48 | codeparrot/github-code |
8bc2474cee6c74b1897e8d79b6d1a4de2c167fe17b68686ae516a7d55535f2c4 | 'use strict';
var React = require('react');
var classNames = require('classnames');
var fecha = require('fecha');
var ClassNameMixin = require('./mixins/ClassNameMixin');
var dateUtils = require('./utils/dateUtils');
var Icon = require('./Icon');
var DatePicker = React.createClass({
mixins: [ClassNameMixin],
pro... | JavaScript | src/DatePicker.js | sunnylqm/amazeui-react | mit | 18,696 | 744 | codeparrot/github-code |
5d5049623a3f6e1447fef4f4cf47754eb8df95683fe5682acac4df2c61f0b570 | <?php
include("assets/core/config/part_set_timezone.php");
include("connectDatabase.inc");
include("part_session.php");
include("part_content_provider_check.php");
include("requestVariableSanitizer.inc");
include("class_category_user_group_validator.php");
include("class_config_reader.php");
//Output new list via AJA... | PHP | ajaxDocumentTypeEditor.php | omeganetresearch/SoNetCMS | mit | 1,697 | 47 | codeparrot/github-code |
0b1dc8d40aa464270de9144ef6be964a9cbf8b1d73891755c7ef65193d23e6d6 | <!DOCTYPE html>
<html>
<head>
<title>Ryan Scheuer</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="./css/style.css">
<link rel="stylesheet" type="text/css" href="./css/bulma.min.css">
<link href="https://fonts.go... | HTML | index.html | rscheuer/rscheuer.github.io | mit | 6,980 | 271 | codeparrot/github-code |
c58da2e2e12f3a557594980731bed469f31764ba933dc6b5eb6552455613f4c9 | from django.db import models
from django.core.urlresolvers import reverse
from django.conf import settings
import misaka
from groups.models import Group
# Create your models here.
# POSTS MODELS.PY
from django.contrib.auth import get_user_model
User = get_user_model()
class Post(models.Model):
user = models.Fo... | Python | simplesocial/posts/models.py | srijannnd/Login-and-Register-App-in-Django | mit | 984 | 34 | codeparrot/github-code |
0d5b21b931da4099323b706c9f58e14b9f3c67fdd6449fed022267585ac1be1e | /* ========================================================================
* DOM-based Routing
* Based on http://goo.gl/EUTi53 by Paul Irish
*
* Only fires on body classes that match. If a body class contains a dash,
* replace the dash with an underscore when adding it to the object below.
*
* .noConflict()
* ... | JavaScript | assets/js/src/main.js | GFargo/gruntd | mit | 2,425 | 77 | codeparrot/github-code |
f7abc9cef2a69118f176e3d123d39694fb3696d36850733f274482f4e06646a8 | /* eslint-disable jsx-a11y/no-autofocus */
import * as electron from 'electron';
import * as React from 'react';
import * as Icon from 'react-fontawesome';
import * as PlaylistsActions from '../../actions/PlaylistsActions';
import PlaylistsNavLink from '../PlaylistsNavLink/PlaylistsNavLink';
import { PlaylistModel } ... | TypeScript | src/ui/components/PlaylistsNav/PlaylistsNav.tsx | KeitIG/museeks | mit | 4,239 | 168 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.