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 |
|---|---|---|---|---|---|---|---|---|
d0d9a9aca6129c34aaf3000b64c3abae3127feada52a886164e7c5cb0ff36c53 | var userData = [
{'fName':'Justin', 'lName' : 'Gil', 'age': 70, 'gender': 'M', 'phone': '949-111-1111', 'profilePic': '../pix/justin.jpeg', 'city' : 'San Diego', 'add' : '55 Serenity'
, 'Bio': 'I like soccer and long walks on the beach.', 'userIndex' : 1, 'username': 'justin', 'password': 'lol', 'state' : 'CA',... | JavaScript | js/login.js | scottchen625/CareLove | mit | 2,368 | 43 | codeparrot/github-code |
27f89b5efed1d824218d231b636c71a08182efe2d9cfc5a141e8bdb46ed04700 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
namespace Monocle
{
public class Tween : Component
{
public enum TweenMode { Persist, Oneshot, Looping, YoyoOneshot, YoyoLooping };
public Action<Tween> OnUpdate;
... | C# | Monocle/MonocleEngine/Components/Logic/Tween.cs | saint11/GameBoyJam | mit | 5,682 | 174 | codeparrot/github-code |
af9f0896a5daab3d011ce2f74af3b9354cb8e3776b71723327dba694b34be99a | /*! \file rk_int.c
* \brief Function definitions for numerical integration routines.
*/
#include<math.h>
#include<stdio.h>
#include<stdlib.h>
#include<gsl/gsl_sf_gamma.h>
#include"rk_int.h"
#include"routines.h"
/********************************************************
*
* Numerical Integration Subroutines.
*
***... | C | rk_int.c | brantr/sedov_taylor | mit | 11,586 | 473 | codeparrot/github-code |
63b2fd1746e86ddefe83c08fb256e1f298202aa6ca492935a90a9cfb088a3fc3 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>dpdgraph: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.cs... | HTML | clean/Linux-x86_64-4.08.1-2.0.5/released/8.10.0/dpdgraph/0.6.4.html | coq-bench/coq-bench.github.io | mit | 6,704 | 170 | codeparrot/github-code |
c3199556a837fe819ee0aab6d819fe3090e7fcec7b9ce0f5d1b0d9552173a610 | <?php
namespace Kubus\BackendBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
class LessonType extends AbstractType
{
/**
* @param FormBuilderInterface $builder
* @param array $opti... | PHP | src/Kubus/BackendBundle/Form/LessonType.php | RonaldKlaus/kubus2 | mit | 1,296 | 53 | codeparrot/github-code |
148ca0d5e106bd790ef59fd23731108f4f2e4bacc33dbb0fb0b8317869069aed | # -*- coding: utf-8 -*-
from django.core.mail import EmailMultiAlternatives
from django.template import Context, Template
from django.template.loader import get_template
from helpers import ClientRouter, MailAssetsHelper, strip_accents
class UserMail:
"""
This class is responsible for firing emails for User... | Python | atados_core/emails.py | atados/api | mit | 7,055 | 198 | codeparrot/github-code |
ac25177787c87bb10f9c52d7f4d4476b204b755b9d59940445399beb020a248d | /**
* @aside guide tabs
* @aside video tabs-toolbars
* @aside example tabs
* @aside example tabs-bottom
*
* Tab Panels are a great way to allow the user to switch between several pages that are all full screen. Each
* Component in the Tab Panel gets its own Tab, which shows the Component when tapped on. Tabs can... | JavaScript | touch/src/tab/Panel.js | arkhitech/redmine_sencha_app | mit | 9,937 | 332 | codeparrot/github-code |
91c921ffa20566cae79f852bd562876c666ae18c6e98e8f6264cc6b1709ea0c8 | package bhgomes.jaql.logging;
import java.util.logging.StreamHandler;
/**
* Singleton object for System.out as a StreamHandler
*
* @author Brandon Gomes (bhgomes)
*/
public final class STDOUT extends StreamHandler {
/**
* Singleton instance
*/
private static final STDOUT instance = new STDOUT()... | Java | src/main/java/bhgomes/jaql/logging/STDOUT.java | bhgomes/jaql | mit | 608 | 31 | codeparrot/github-code |
6bccb16d1ff1257437d272949fe73e2c31c5dfac04b5d69f7ab286f870318f8a | package com.venky.core.security;
import com.venky.core.util.ObjectUtil;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.CommandLineParser;
import org.apache.commons.cli.DefaultParser;
import org.apache.commons.cli.HelpFormatter;
import org.apache.commons.cli.Option;
import org.apache.commons.c... | Java | src/main/java/com/venky/core/security/SignatureComputer.java | venkatramanm/common | mit | 2,127 | 57 | codeparrot/github-code |
facb65dda612a824207e930b2bf841d71bc9d6391e2faad23e3b5d001528b8b6 | local conf = require "conf"
local github_issues_comments = require "includes.github_issues_comments"
local exports = {}
local function html_post(metadata, content)
local github_comments_html = ""
if metadata.issueid ~= nil then
github_comments_html = github_issues_comments.html_github_issues_comments(metadata... | Lua | includes/post.lua | hmybmny/luammd.org | mit | 2,142 | 63 | codeparrot/github-code |
bdb8f408a4269bcc4be3e332d308f7ec8cfbd33aa09785c8453208f7cb43c27f | //
// DDAreaPickerView.h
// AreaPicker
//
// Created by SuperDanny on 15/11/10.
// Copyright © 2015年 SuperDanny. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "DDLocation.h"
typedef enum {
DDAreaPickerWithStateAndCity,
DDAreaPickerWithStateAndCityAndDistrict
} DDAreaPickerStyle;
@class DDAreaPi... | C | DDAreaPicker/DDAreaPickerView.h | SuperDannyBoy/DDKit | mit | 1,166 | 45 | codeparrot/github-code |
ca133b216bda267866e9db1855c693c0f5df0585ff6aef0b35d820e6e59bbd57 | window.PerfHelpers = window.PerfHelpers || {};
;(function(PerfHelpers) {
var timers = {};
PerfHelpers = window.performance || {};
PerfHelpers.now = PerfHelpers.now || function () {};
if ((!console) || (!console.time)) {
console.time = function() {};
console.timeEnd = function() {};
}
var consoleTi... | JavaScript | scripts/time-perf-helper.js | WebPolymerLabs/PolyBills | mit | 1,825 | 56 | codeparrot/github-code |
07de190328ee0df3b8fda4ecbbe3317aa46560257f91551fd68e5a80719d9924 | # frozen_string_literal: true
class Awarding < ApplicationRecord
belongs_to :award
belongs_to :recipient
belongs_to :group
validates :award, presence: true
validates :recipient, presence: true
# group should be present if there is no default group
validates :group, presence: true, if: proc { |a| a.award... | Ruby | app/models/awarding.rb | aelkiss/cynnabar-rails | mit | 1,241 | 42 | codeparrot/github-code |
17694297ea17ce8eeccf6d40445076236ae07057a125dd66b30ad1235948a4b8 | <?php
/*
* This file is part of Hifone.
*
* (c) Hifone.com <hifone@hifone.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Hifone\Http\Controllers\Auth;
use AltThree\Validator\ValidationException;
use Hifone\Comman... | PHP | app/Http/Controllers/Auth/AuthController.php | abbychau/Hifone | mit | 8,742 | 272 | codeparrot/github-code |
7e5e29c5f941900b9b777c089680e1278d775f389c42ad30be867321f23d3b93 | using Hanafuda.OpenApi.Entities;
using Hanafuda.OpenApi.Enums;
using Hanafuda.OpenApi.Expressions;
using System;
using System.Collections.Generic;
using System.Linq;
namespace Hanafuda.OpenApi.Extensions
{
/// <summary>
/// Extensions for Enumerable
/// </summary>
public static class EnumerableExtensi... | C# | Hanafuda.OpenApi/Extensions/EnumerableExtension.cs | Vtek/Hanafuda.OpenApi | mit | 5,029 | 147 | codeparrot/github-code |
07835e6b07b1613eb9e46035deb35a7eee2a088fe7bebc5a2bfb0824e89789b3 | package com.github.bogdanlivadariu.jenkins.reporting.testng;
import hudson.FilePath;
import hudson.model.Action;
import hudson.model.DirectoryBrowserSupport;
import java.io.File;
import java.io.IOException;
import javax.servlet.ServletException;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.... | Java | bootstraped-multi-test-results-report/src/main/java/com/github/bogdanlivadariu/jenkins/reporting/testng/TestNGTestReportBaseAction.java | bagage/bootstraped-multi-test-results-report | mit | 1,161 | 41 | codeparrot/github-code |
368cb81d3b6206f413e908308ce7bdbdba2416c4766e23fb753d27b0a5f36f2b | package com.bitdecay.game.ui;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.scenes.scene2d.Group;
import com.badlogic.gdx.scenes.scene2d.actions.Actions;
import com.badlogic.gdx.scenes.scene2d.actions.MoveToAction;
import com.bitdecay.game.util.Quest;
import org.apache.logg... | Java | src/main/java/com/bitdecay/game/ui/Tray.java | bitDecayGames/LudumDare38 | mit | 2,669 | 86 | codeparrot/github-code |
dc1f40cbab98ea02a96270c0ae5c54044494b46414b33621531633eba5bb1261 | package app;
import java.util.ResourceBundle;
import control.MainController;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;
/**
* Main class for Logoquiz app.
*/
public class LogoquizMainApp extends Applic... | Java | src/main/java/app/LogoquizMainApp.java | lcmatrix/logoquiz | mit | 1,350 | 61 | codeparrot/github-code |
def6170a23845ef2993d6585fa7f1b344e61b992b0db0e4651679436bcfde542 | <?php
/* @WebProfiler/Icon/close.svg */
class __TwigTemplate_6bdd9e9862db24b9d9ca3b9811419338c5925f8e0c5dd2898e11b045839a13fd extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
)... | PHP | app/cache/dev/twig/87/871a3ea9034aec0720ad691ccb20d167d406b23c012ff297190fd9c58f83774a.php | mickael-matelli/ws | mit | 2,883 | 61 | codeparrot/github-code |
db751423581246976780e0fb3595fb0fea5d7584a5aeb04a17f23551b2fd07e4 |
/**
* A 32-bit unsigned bitfield that describes an entity's classification(s)
* @typedef {number} EntityClass
*/
/**
* Enumerate entity classes
*/
const ENTITY = {
NULL: 0x00,
// Base celestial classes
ASTEROID: 0x01, // floating rock in space, orbits star
COMET: 0x02, // an asteroid ... | JavaScript | core/entities/Entity.js | Doohl/Sourcebound | mit | 4,061 | 139 | codeparrot/github-code |
b2c41d4de28b35a14989d3ed6ad67259f6ca71ffe6dd6b3d5fca3e21424a1d5b | # -*- coding: utf-8 -*-
"""
flask.ext.babelex
~~~~~~~~~~~~~~~~~
Implements i18n/l10n support for Flask applications based on Babel.
:copyright: (c) 2013 by Serge S. Koval, Armin Ronacher and contributors.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import
impor... | Python | env/lib/python3.4/site-packages/flask_babelex/__init__.py | initNirvana/Easyphotos | mit | 22,503 | 635 | codeparrot/github-code |
4e9e89f7d09aa3428563696823d4044e846109e0b12407a9334ed8d8464a48a7 | var _; //globals
/* This section uses a functional extension known as Underscore.js - http://documentcloud.github.com/underscore/
"Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support
that you would expect in Prototype.js (or Ruby), but without extend... | JavaScript | koans/AboutHigherOrderFunctions.js | victorleungtw/javascript-koans | mit | 3,035 | 96 | codeparrot/github-code |
d2977e63e586acc0e5c84909f13e8c350175f49781b7c14d6d211e7de7e2a014 | <?php $error_id = uniqid('error', true); ?>
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="robots" content="noindex">
<title><?= esc($title) ?></title>
<style type="text/css">
<?= preg_replace('#[\r\n\t ]+#', ' ', file_get_contents(__DIR__ . DIRECTORY_SEPARATOR . 'debug.css')) ?>
</style>
<s... | PHP | app/Views/errors/html/error_exception.php | ytetsuro/CodeIgniter4 | mit | 10,634 | 398 | codeparrot/github-code |
aac7c072b608dae7bd5f8dd054bab09d8b9f99ca067db305b0053dab5a73c333 | try:
from tornado.websocket import WebSocketHandler
import tornado.ioloop
tornadoAvailable = True
except ImportError:
class WebSocketHandler(object): pass
tornadoAvailable = False
from json import loads as fromJS, dumps as toJS
from threading import Thread
from Log import console
import Settings
from utils impor... | Python | WebSocket.py | mrozekma/Sprint | mit | 3,192 | 118 | codeparrot/github-code |
4fc50003f513ded8aba188c1e25bd4633b5d18f49f353368d4265e9c07b87060 | <?php
namespace Illuminate\Database\Query;
use Closure;
use BadMethodCallException;
use Illuminate\Support\Arr;
use Illuminate\Support\Str;
use InvalidArgumentException;
use Illuminate\Pagination\Paginator;
use Illuminate\Support\Traits\Macroable;
use Illuminate\Contracts\Support\Arrayable;
use Illuminate\Database\Co... | PHP | src/Illuminate/Database/Query/Builder.php | DougSisk/framework | mit | 54,802 | 2,055 | codeparrot/github-code |
ea41f98fa51c0ca24b363ce5f74c738c52940e5996412c33ba14ee8c330b6413 | <?php
namespace AdminBundle\Form;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
class CommentType extends AbstractType
{
/**
* {@inheritdoc}
*/
public... | PHP | src/AdminBundle/Form/CommentType.php | jpitard/my_first_symfony | mit | 1,269 | 52 | codeparrot/github-code |
5a51ff3b706bbfce9f481e2b76064cfc8028f6bf19a964e7d4957b2b7469d0c9 | #include "Common.h"
#include "Core.h"
#include "Event.h"
#include "Message.h"
#include "ProfilerServer.h"
#include "EventDescriptionBoard.h"
namespace Brofiler
{
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
struct MessageHe... | C++ | BrofilerCore/Message.cpp | galek/brofiler | mit | 4,559 | 151 | codeparrot/github-code |
56a3c94ee407e4917c108d72fada1cb0c87fc8383e65691323e17c8591e37a41 | :: Execute a Ruby command with the current version
@ setlocal EnableDelayedExpansion
@ call "%~dp0common_vars.cmd"
@ set PARAMS=%*
:: If we are executing a Ruby script, search for the version inside the directory
:: of this script instead of searching in the current directory
@ if "%~1" == "ruby" (
set PA... | Batchfile | libexec/rbenv_exec.cmd | genezys/rbenv-cmd | mit | 2,426 | 89 | codeparrot/github-code |
cd371364c6114321aa5a94f42a2ae62c3e8f1934f6000a0477a9259cdbdd0995 | {% extends template_base %}
{% block title %}Reader's hall{% endblock %}
{% block content %}
<div class="row">
<div class="col-sm-7 col-md-6 col-md-offset-1">
<h3>Books by authors</h3>
<div class="list-group">
{% for author, books in books_by_authors.items %}
<div class="list-group... | HTML | reader/templates/reader/hall.html | signaldetect/messity | mit | 1,079 | 37 | codeparrot/github-code |
337d757f6b18104a0e24fefc27cc89525ccfc84b098c7c236e5526f6b99cf60a | # __init__.py: Yet Another Bayes Net library
# Contact: Jacob Schreiber ( jmschreiber91@gmail.com )
"""
For detailed documentation and examples, see the README.
"""
# Make our dependencies explicit so compiled Cython code won't segfault trying
# to load them.
import networkx, matplotlib.pyplot, scipy
import numpy as... | Python | yabn/__init__.py | jmschrei/yabn | mit | 1,279 | 47 | codeparrot/github-code |
db5d1b4d515966f4352e96b449f03b0863fabaca87c6a56a6337090c37c54754 | package ooo.purity.unwatermark.gui;
import ooo.purity.unwatermark.Mode;
import ooo.purity.unwatermark.ModeFactory;
import ooo.purity.unwatermark.mode.MFSA;
import javax.swing.*;
import java.awt.*;
import java.awt.datatransfer.DataFlavor;
import java.awt.datatransfer.Transferable;
import java.awt.datatransfer.Unsuppo... | Java | src/main/java/ooo/purity/unwatermark/gui/ViewFrame.java | purityooo/unwatermark | mit | 7,117 | 279 | codeparrot/github-code |
a952bf8fc490cc9211389e0bd18c2d728eafd78042ddd689552b0b7a193f5347 | /* FTUI Plugin
* Copyright (c) 2016 Mario Stephan <mstephan@shared-files.de>
* Under MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
/* global ftui:true, Modul_widget:true */
"use strict";
var Modul_medialist = function () {
$('head').append('<link rel="stylesheet" href="' + ftui.config.d... | JavaScript | www/tablet/js/widget_medialist.js | viegener/fhem-tablet-ui | mit | 4,805 | 128 | codeparrot/github-code |
f36df6dcd57a900a3dc3986047c1bfcdd37a254190b47f95d309199a5c41aeb0 | /**
* Copyright (c) 2012-2014 André Bargull
* Alle Rechte vorbehalten / All Rights Reserved. Use is subject to license terms.
*
* <https://github.com/anba/es6draft>
*/
package com.github.anba.es6draft.ast;
/**
* <h1>12 ECMAScript Language: Expressions</h1><br>
* <h2>12.1 Primary Expressions</h2><br>
* <h3>12.... | Java | src/main/java/com/github/anba/es6draft/ast/ComprehensionFor.java | rwaldron/es6draft | mit | 1,223 | 48 | codeparrot/github-code |
cf108409e4e758322fbcea8f808212048423dced68fc8b065053f177fdbc6ec4 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using kinectApp.Utilities;
namespace kinectApp.Entities
{
public interface IScene
{
List<IEntity> Entities { get; }
string Name { get; }
void HandleKeys(InputHelper aIn... | C# | kinectApp/kinectApp/kinectApp/Entities/Scene.cs | Sheepzez/yorkhill-kinect | mit | 1,014 | 41 | codeparrot/github-code |
bd26f8b770ee9088860ef363d21dd157327edfe7a3bc4a864ebe13bf48b3ddcf | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
make_loaddata.py
Convert ken_all.csv to loaddata
"""
import argparse
import csv
def merge_separated_line(args):
"""
yields line
yields a line.
if two (or more) lines has same postalcode,
merge them.
"""
def is_dup(line, buff):
""... | Python | bin/make_loaddata.py | morinatsu/ZipCode | mit | 2,647 | 94 | codeparrot/github-code |
91a2426cbc0ba8767781f55d1ca3085fe74e8ac5e25d73b9255e3bde27158b7c | package main.java.srm149;
import java.util.HashSet;
import java.util.Set;
/*
* SRM 149 DIV I Level 2
* http://community.topcoder.com/stat?c=problem_statement&pm=1331
*/
public class MessageMess {
private Set<String> _dictionarySet = new HashSet<String>();
public String restore(String[] dictionary, String messa... | Java | src/main/java/srm149/MessageMess.java | revati1701/topcoder | mit | 1,972 | 65 | codeparrot/github-code |
51d89f052095427b036a5fda2f3b4cdc82d5c272fa48747264a6f88fcfb7d8b6 | package seedu.taskboss.logic.commands;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
/**
* Finds and lists all tasks in TaskBoss whose name contains any of the argument keywords.
* Keyword matching is case sensitive.
*/
public class FindCommand extends Command {
private static fina... | Java | src/main/java/seedu/taskboss/logic/commands/FindCommand.java | CS2103JAN2017-W14-B2/main | mit | 2,391 | 64 | codeparrot/github-code |
d68b1b99c86d93f54e2cd01f98c43b2b07152358c3f5f0cd9d32c041a17d4447 | const FeedParser = require("feedparser");
const request = require("request");
const Promise = require("bluebird");
const flatten = require("lodash").flatten;
const nodemailer = require("nodemailer");
const cfg = require("dotenv").config();
const readUrls = require("./urls.json");
const EMAIL_OPTIONS = {
host:... | JavaScript | index.js | zelein/craigbot | mit | 1,892 | 74 | codeparrot/github-code |
ab06a063d5be5e2bd423fed7c4266dd133109d4e1529c7517680531dc0f15d3b | /*
* -╥⌐⌐⌐⌐ -⌐⌐⌐⌐-
* ≡╢░░░░⌐\░░░φ ╓╝░░░░⌐░░░░╪╕
* ╣╬░░` `░░░╢┘ φ▒╣╬╝╜ ░░╢╣Q
* ║╣╬░⌐ ` ╤▒▒▒Å` ║╢╬╣
* ╚╣╬░⌐ ╔▒▒▒▒`«╕ ╢╢╣▒
* ╫╬░░╖ .░ ╙╨╨ ╣╣╬░φ ╓φ░╢╢Å
* ╙╢░░░░⌐"░░░╜ ╙Å░░░░⌐░░░░╝`
* ``˚¬ ⌐ ˚˚⌐´
*
* ... | Scala | src/main/scala/com/flipkart/connekt/boot/Boot.scala | Flipkart/connekt | mit | 1,931 | 71 | codeparrot/github-code |
f3c9398bea2c06be917b9de9cbe1339a577c48c2aae54c9b0744effd991392ba | const {Scene, Sprite} = spritejs;
const container = document.getElementById('stage');
const scene = new Scene({
container,
width: 1200,
height: 600,
// contextType: '2d',
});
const layer = scene.layer();
(async function () {
const sprite = new Sprite({
anchor: 0.5,
bgcolor: 'red',
pos: [500, 300]... | JavaScript | demos/doc/transition_basic/index.js | spritejs/spritejs | mit | 628 | 33 | codeparrot/github-code |
dc9796e70948e7d70810b7a79c43d96039f92a37da0ac7128db75376229cb0e0 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using AutoRest.Core;
using AutoRest.Core.ClientModel;
using AutoRest.Core.Utilities;
using Auto... | C# | src/generator/AutoRest.Ruby/RubyCodeGenerator.cs | fhoring/autorest | mit | 8,976 | 235 | codeparrot/github-code |
7ddff594d0627e7d8886d3919f402df060f832634c6a203c3e903cf7f5c7e332 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AcademyRPG
{
class Ninja:Character,IGatherer,IFighter
{
private int attackPointsCount;
public Ninja(string name, Point position,int owner)
: base(name, position, owner)
{
... | C# | OOP/TestPreparationOOp/academyTest/AcademyRPG-Skeleton/Ninja.cs | LazarDL/TelerikHomeworks | mit | 1,549 | 64 | codeparrot/github-code |
a5aa28bfe094f1dc92cf3fec4d711493d2500747b6ba44d5dd05c3d333fa2949 | using ICSharpCode.SharpZipLib.Zip.Compression.Streams;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using U3d = UnityEngine;
namespace M2Image
{
/// <summary>
/// WZL(与WZX配套)文件读取工具类
/// </summary>
internal sealed class WZL : IDisposable
{
/// <summary... | C# | Assets/Scripts/M2Image/WZL.cs | jootm2/m2client-u3d | mit | 4,909 | 153 | codeparrot/github-code |
4143e2ed7582a7f240b563682fbaae13af0b55ce8a546ec7b22d0efe5eaaa60e | // Copyright 2021-2022, University of Colorado Boulder
/**
* Provides a minimum and preferred width. The minimum width is set by the component, so that layout containers could
* know how "small" the component can be made. The preferred width is set by the layout container, and the component
* should adjust its size... | TypeScript | js/layout/WidthSizable.ts | phetsims/scenery | mit | 2,836 | 84 | codeparrot/github-code |
1d79be83be732a5e1c555fd012fdbeb0f1cd5ede4c5dce8c128327855a099a81 | /**
*
*/
package com.zimbra.qa.selenium.framework.util;
import java.net.*;
import java.util.regex.*;
import org.apache.log4j.*;
import com.zimbra.common.soap.Element;
/**
* Represents an 'external' account
*
* @author Matt Rhoades
*
*/
public class ZimbraExternalAccount extends ZimbraAccount {
private sta... | Java | ZimbraSelenium/src/java/com/zimbra/qa/selenium/framework/util/ZimbraExternalAccount.java | nico01f/z-pec | mit | 4,848 | 177 | codeparrot/github-code |
952714d39ac68da715066bdc57cd7ce389ffdfaeb27c5302a26196823543292e | package com.github.ysl3000.quantum.impl;
import com.github.ysl3000.quantum.QuantumConnectors;
import com.github.ysl3000.quantum.impl.circuits.CircuitManager;
import com.github.ysl3000.quantum.impl.utils.MessageLogger;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.configuration.file.YamlConf... | Java | QuantumPlugin/src/main/java/com/github/ysl3000/quantum/impl/ConfigConverter.java | ysl3000/Quantum-Connectors | mit | 3,964 | 98 | codeparrot/github-code |
3efee7c70b83161c63a7f107d1a6f199369adcf37a0eeca65cd950148cc7426c | /*
* sysctl.h: General linux system control interface
*
* Begun 24 March 1995, Stephen Tweedie
*
****************************************************************
****************************************************************
**
** WARNING:
** The values in this file are exported to user space via
** the ... | C | Model/linux/sysctl.h | MontyCarter/chauffeur | mit | 6,666 | 215 | codeparrot/github-code |
a1df1dd22e8da6b74f561687822511c8f394599fc9e8c96fa8e0a301b867aba7 | <?php
namespace Cviebrock\EloquentTaggable\Events;
use Illuminate\Broadcasting\Channel;
use Illuminate\Queue\SerializesModels;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Broadcasting\PresenceChannel;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Broadcasting\InteractsWithSockets;
use I... | PHP | src/Events/ModelUntagged.php | cviebrock/eloquent-taggable | mit | 1,094 | 57 | codeparrot/github-code |
68d36c01b005f3be506203b778fcd6198133b41067db5c3122cd056ba3d85324 | using System;
using System.Linq;
namespace Task_5
{
class Program
{
static void Main(string[] args)
{
Console.OutputEncoding = System.Text.Encoding.UTF8;
int count= 0;
Console.WriteLine("Ohjelma kertoo kuinka monta vokaalia lauseessa on!");
Conso... | C# | string-handling/Tasks/Vowel/Program.cs | SannaNaTu/programming-basics | mit | 964 | 35 | codeparrot/github-code |
879380626cd32910dd53f47f251c38c6562cc5545243405e6ae062eaf2459638 | //{
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef double lf;
typedef pair<ll,ll> ii;
#define REP(i,n) for(ll i=0;i<n;i++)
#define FILL(i,n) memset(i,n,sizeof i)
#define X first
#define Y second
#define SZ(_a) (int)_a.size()
#define ALL(_a) _a.begin(),_a.end()
#define pb push_back
#ifdef bri... | C++ | code archive/CF/118A.cpp | brianbbsu/program | mit | 1,757 | 63 | codeparrot/github-code |
e4bfaefc0a68adf12af71fc95dffe491be827b8b32ea37e834398319a3f1ecaa | <?php
/*
Unsafe sample
input : get the field userData from the variable $_GET via an object, which store it in a array
sanitize : none
construction : concatenation with simple quote
*/
/*Copyright 2015 Bertrand STIVALET
Permission is hereby granted, without written agreement or royalty fee, to
use, copy, modify,... | PHP | Injection/CWE_91/unsafe/CWE_91__object-Array__no_sanitizing__username_text-concatenation_simple_quote.php | stivalet/PHP-Vulnerability-test-suite | mit | 1,659 | 74 | codeparrot/github-code |
929bc85ad55edc22a77280a166cc0206a8f66c33475d99795203cdca1d8a2352 |
class Item < ActiveRecord::Base
# The SecureRandom library is used to generate uid:s
require 'securerandom'
# Generate uid on creation
before_save :generate_uid, on: :new
def generate_uid
self.uid = SecureRandom.uuid
end
validates :uid,
presence: true,
format: { with: /\h{8}-\h{4}-\h{4... | Ruby | app/models/items/item.rb | ollpu/inventory | mit | 1,689 | 75 | codeparrot/github-code |
88eb787e2adfd42facf69f20aab14882f42ea7dc1a05392186ecfe2421f16f4d | <?php
namespace App\AdminBundle\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Security\Core\SecurityContext;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Temp... | PHP | src/App/AdminBundle/Controller/SecuredController.php | symforce/symforce-standard | mit | 5,511 | 131 | codeparrot/github-code |
f119fe3d5f9ee137788146b108ac9933265986911d97cc953a4bb49734973aea | package hr.fer.bio.project.booleanarray;
import hr.fer.bio.project.rankable.Rankable;
import hr.fer.bio.project.wavelet.TreeNode;
import java.util.Arrays;
/**
* Simple class for boolean[] encapsulation
*
* @author bpervan
* @since 1.0
*/
public class BooleanArray implements Rankable {
public boolean[] data... | Java | Java1/src/hr/fer/bio/project/booleanarray/BooleanArray.java | bpervan/wavelet-rrr | mit | 4,405 | 155 | codeparrot/github-code |
e2cd88069142a3b9a0de3dbadf022ea919ed85ccb13a9fc3ce8a634a7ae0527b | class Solution {
public:
string multiply(string num1, string num2) {
string a, b;
a = num1;
b = num2;
string A, B;
// cout << a;
// cout << b;
int fa = 1;
int fb = 1;
int f = 1;
int lena = 0;
int lenb = 0;
if (a[0] == '-') {
A = a.substr(1, a.siz... | C++ | leetcode/43.cpp | haohaibo/tutorial | mit | 1,994 | 104 | codeparrot/github-code |
9b6b9c19250f0cb7b7430375743512727ee874edca3d8387236620988df5d6f2 | using System;
using System.Collections.Concurrent;
using System.Collections.ObjectModel;
using System.Threading;
using PropertyChanged;
using WpfTestApp.Tasks;
namespace WpfTestApp.Model
{
public interface IUIModel
{
bool Busy { get; }
void CancelOperations();
Cancellation... | C# | WpfTestApp/Model/UIModel.cs | heiny/wpf-test-app | mit | 2,912 | 92 | codeparrot/github-code |
a82378f0a6ef76e0f9d2613fc53da83f09d5c04434f5dcf560562031cdbbb105 | (function() {
'use strict';
angular
.module('tiny-leaflet-directive')
.factory('tldMapService', tldMapService);
tldMapService.$inject = ['tldHelpers'];
function tldMapService(tldHelpers) {
var maps = {};
return {
setMap: setMap,
getMap: getMap,... | JavaScript | src/tldMap.service.js | CleverMaps/tiny-leaflet-directive | mit | 824 | 35 | codeparrot/github-code |
9128d4a8f7e8abc9cc7f785ed7aeb1466f5f2827f2415639de2d2b6514379112 | <?php
App::uses('Invoices.InvoicesAppModel', 'Model');
/**
* InvoiceLine model
*
*/
class InvoiceSetting extends InvoicesAppModel {
/**
* Validation rules - initialized in constructor
*
* @var array
*/
public $validate = array();
/**
* Constructor
*
* @param mixed $id Set this ID for this model on startup, c... | PHP | Model/InvoiceSetting.php | occitech/invoices | mit | 1,399 | 57 | codeparrot/github-code |
7d13b0162ff8401a10853ada9800f1699e89214db0c29de452c497a3fe561f62 | /*eslint-disable react/prop-types*/
import React, { Component } from 'react'
import ReactDOM from 'react-dom'
import { createStore } from 'redux'
import { Provider, connect, ReactReduxContext } from '../../src/index.js'
import * as rtl from '@testing-library/react'
import '@testing-library/jest-dom/extend-expect'
con... | JavaScript | test/components/Provider.spec.js | rackt/react-redux | mit | 9,819 | 358 | codeparrot/github-code |
ce30c5e9cc0cd4fe65c676ed4e93ac3de9b532661cbb6865fa87dab0abe485d2 | using System;
using System.Collections.Generic;
using System.Linq;
using hw.DebugFormatter;
using hw.Scanner;
using hw.UnitTest;
using Reni;
namespace ReniUI.Test
{
[UnitTest]
[AutoCompleteFunctionInCompound]
public sealed class AutoComplete : DependenceProvider
{
const string text = @"systemda... | C# | src/ReniUIWithForms/Test/AutoComplete.cs | hahoyer/reni.cs | mit | 1,992 | 77 | codeparrot/github-code |
903e373bdd05d122ad733f2116223ae95740fc20904eecbfcc8a86394075a2d2 | <?php
/**
* Part of Windwalker project Test files.
*
* @copyright Copyright (C) 2019 LYRASOFT Taiwan, Inc.
* @license LGPL-2.0-or-later
*/
declare(strict_types=1);
namespace Windwalker\Filesystem\Test;
use Windwalker\Filesystem\File;
use Windwalker\Filesystem\Path;
/**
* Test class of Path
*
* @since 2... | PHP | packages/filesystem/test/PathTest.php | ventoviro/ww4 | mit | 7,414 | 276 | codeparrot/github-code |
1a559ad982e93d68e1482a6230e6ffa914664f74d85ece5389029c78e51d7cbb | package org.newdawn.slick.util.pathfinding.navmesh;
import java.util.ArrayList;
/**
* A nav-mesh is a set of shapes that describe the navigation of a map. These
* shapes are linked together allow path finding but without the high
* resolution that tile maps require. This leads to fast path finding and
* ... | Java | slick/trunk/Slick/src/org/newdawn/slick/util/pathfinding/navmesh/NavMesh.java | dxiao/PPBunnies | mit | 4,275 | 177 | codeparrot/github-code |
bc12627e66116e7ef81826d24ccc8b1bcfa3912c92edef001ba83ab7ec8e1be0 | use strict;
use Data::Dumper;
use Carp;
#
# This is a SAS Component
#
=head1 NAME
roles_to_complexes
=head1 SYNOPSIS
roles_to_complexes [arguments] < input > output
=head1 DESCRIPTION
roles_to_complexes allows a user to connect Roles to Complexes,
from there, the connection exists to Reactions (although in the
... | Perl | scripts/roles_to_complexes.pl | kbase/kb_seed | mit | 2,489 | 105 | codeparrot/github-code |
519aa10f158c125cb9b7d8f6510ae56e99acedbe5adf5285861dcf275793602d | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import styles from '../../build/styles';
export default class Subtitle extends Component {
static propTypes = {
children: PropTypes.any,
className: PropTypes.string,
size: PropTypes.oneOf([
'is1',
'is2',
'is3'... | JavaScript | src/elements/subtitle.js | bokuweb/re-bulma | mit | 713 | 39 | codeparrot/github-code |
418e485af51dc12b5be2ca2f4a8c6f0ff98e0a383ffc166e61912d00713352b1 | \documentclass[11pt,english]{article}
\usepackage[a4paper,bindingoffset=0mm,left=20mm,right=18mm,top=17mm,bottom=12mm]{geometry}
\usepackage{blindtext}
\usepackage[T1]{fontenc}
\usepackage[colorlinks=true,
linkcolor=red,
urlcolor=blue,
citecolor=gray]{hyperref}
\usepackage{hyperref,... | TeX | result/publications.tex | keeeto/CV | mit | 21,466 | 479 | codeparrot/github-code |
be39e799ca4deacbb69ff0c246a89388e4088761564507632001c91b1268a261 | define(function(require, exports, module) {
var Notify = require('common/bootstrap-notify');
exports.run = function() {
var $form = $("#user-roles-form"),
isTeacher = $form.find('input[value=ROLE_TEACHER]').prop('checked'),
currentUser = $form.data('currentuser'),
edit... | JavaScript | src/Topxia/AdminBundle/Resources/public/js/controller/user/roles-modal.js | smeagonline-developers/OnlineEducationPlatform---SMEAGonline | mit | 2,048 | 61 | codeparrot/github-code |
518f4dc9c5569a9e7cc853b132307545d94c1b1991222b5c8d5b0370e92aceca | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using Newtonsoft.Json;
namespace Microsoft.AspNetCore.SignalR.Hubs
{
/// ... | C# | webpac/src/Microsoft.AspNetCore.SignalR.Server/Hubs/HubResponse.cs | proemmer/webpac | mit | 2,396 | 66 | codeparrot/github-code |
73482c586795fceadde48b4b617feeb59d2d89268eeaf3f273ac5df2731d7fe8 | import * as Cookies from 'js-cookie'
import AppSettings from '../appSettings'
import { IFetchResult } from '../interfaces'
import History from './history'
export class HttpUtils {
parseJSON<T> (response: Response): Promise<IFetchResult<T>> {
return new Promise((resolve, reject) => {
if (respon... | TypeScript | src/ArragroCMS.Management/ReactAppLibrary/utils/httpUtils.ts | Arragro/ArragroCMS | mit | 5,657 | 146 | codeparrot/github-code |
20f24952c55d10fde628ecc7823079417eed11afbd6fd3bcf690e3ff9f43b4bb | using Abp.Configuration.Startup;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Abp
{
public class AbpRedisCacheConfig
{
private string connectionStringKey = "Abp.Redis.Cache";
public string ConnectionStringKey
... | C# | src/Abp.RedisCache/AbpRedisCacheConfig.cs | AntTech/aspnetboilerplate | mit | 877 | 34 | codeparrot/github-code |
e4f785719334aba14ee45e8fb3bc6a339b17b870ca2d4f55bac1c74584960105 | using System;
namespace System.Windows.Automation
{
///
public static class AutomationProperties
{
#region AutomationId
/// <summary>
/// AutomationId Property
/// </summary>
public static readonly DependencyProperty AutomationIdProperty =
Depende... | C# | Cache/Libs/net46/wpf/src/Core/CSharp/System/Windows/Automation/AutomationProperties.cs | mind0n/hive | mit | 16,641 | 481 | codeparrot/github-code |
16a63812de4843db6928b764cae8a4fde9a03e81214abfdb990b183cd2f46bd3 | package org.sm.jdsa.graph.algorithm.coloring;
import java.util.stream.IntStream;
import org.sm.jdsa.graph.GraphAdjacencyListImpl;
import org.sm.jdsa.list.LinkedList;
import org.sm.jdsa.list.Iterator;
/**
*
* Counts number of colors upper bound for graph (vertex)
* coloring problem using greedy algorithm.
*
*... | Java | src/main/java/org/sm/jdsa/graph/algorithm/coloring/ColoringAdjacentListStrategyImpl.java | mstane/algorithms-in-java | mit | 2,912 | 121 | codeparrot/github-code |
5f634a665b57ad6be9cfc50a2b1868d6aee33acbc08c19f6ebfbb19a05fb690b | # -*- coding: utf-8 -*-
' 检查扩展名是否合法 '
__author__ = 'Ellery'
from app import app
import datetime, random
from PIL import Image
import os
def allowed_file(filename):
return '.' in filename and \
filename.rsplit('.', 1)[1] in app.config.get('ALLOWED_EXTENSIONS')
def unique_name():
now_time = dateti... | Python | app/main/upload_file.py | allotory/basilinna | mit | 1,415 | 47 | codeparrot/github-code |
a00583907d9a9813442eb3fce7fe4098259c245798f98772a9fd10bbb930d912 | module.exports = function (grunt) {
"use strict";
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
// grunt-contrib-clean
clean: {
instrument: "<%= instrument.options.basePath %>"
},
// grunt-contrib-jshint
jshint: {
files: [... | JavaScript | gruntfile.js | kl3ryk/pouclaige-web-crawler | mit | 2,846 | 97 | codeparrot/github-code |
2d9e7afae46e4a1788ea2e8009a6da2e258883fba6fff7a3e82381ea89bd6fb0 | const EventEmitter = require('events');
/**
* Ends the session. Uses session protocol command.
*
* @example
* this.demoTest = function (browser) {
* browser.end();
* };
*
* @method end
* @syntax .end([callback])
* @param {function} [callback] Optional callback function to be called when the command finishe... | JavaScript | lib/api/client-commands/end.js | beatfactor/nightwatch | mit | 977 | 47 | codeparrot/github-code |
6855ecfa40badbee0e0fa92257532c5e71580071ee18922c0fab951e3ddeb01d | /*
*
*/
#include <stdint.h>
#include "unix/constant.h"
#include "encode.h"
#include "invoke.h"
#include "poll.h"
#define ONCE_PER_SECOND 100
enum {
ENABLED = (1 << 0), /* else disabled */
STARTED = (1 << 1), /* else stopped */
};
static uint8_t flag = 0;
void poll_init ()
{
flag = 0;
... | C | obsoleted/avr-2560/poll.c | cppcoder123/led-server | mit | 879 | 68 | codeparrot/github-code |
502a576294bd55781075a429c774e9c35f00ef6767267c6bf262b3802e04f411 | import Botkit from 'botkit';
import os from 'os';
import Wit from 'botkit-middleware-witai';
import moment from 'moment-timezone';
import models from '../../app/models';
import storageCreator from '../lib/storage';
import setupReceiveMiddleware from '../middleware/receiveMiddleware';
import notWitController from './n... | JavaScript | src/bot/controllers/index.js | kevinsuh/toki | mit | 5,878 | 273 | codeparrot/github-code |
898a629e3bdae36efffa9b4d73bfc9f7656a89237a08eb7ed9827ef42c316b27 | package com.voxelgameslib.voxelgameslib.api.feature.features;
import com.google.gson.annotations.Expose;
import java.util.Arrays;
import javax.annotation.Nonnull;
import com.voxelgameslib.voxelgameslib.api.event.GameEvent;
import com.voxelgameslib.voxelgameslib.api.feature.AbstractFeature;
import com.voxelgameslib.v... | Java | VoxelGamesLib/src/main/java/com/voxelgameslib/voxelgameslib/api/feature/features/NoBlockBreakFeature.java | VoxelGamesLib/VoxelGamesLibv2 | mit | 2,127 | 60 | codeparrot/github-code |
ae408d8e90a4a4e193d767cbc566a0809e84afddbe05b043d08976175cac5914 | <?php
class Gestor_Tiendas_Model extends CI_Model
{
private $fileName;
private $xmlProductos;
public function __construct() {
parent::__construct();
}
/**
* Carga los datos de la tienda seleccionada
* @param type $nombreTienda
*/
public f... | PHP | Otros/Agregador_Tiendas/application/models/server/gestor_tiendas_model.php | isacm94/Practica2_Servidor | mit | 2,129 | 73 | codeparrot/github-code |
5cbb8a26ffc998b7ba9500859f65313938a47466036e208ec35837ae88cfd8a8 | /*
************************************************************************
Copyright (c) 2013 UBINITY SAS
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE... | JavaScript | app/libs/btchip/btchip-js-api/chromeApp/ChromeapiPlugupCardTerminalFactory.js | LedgerHQ/ledger-wallet-chrome | mit | 1,664 | 48 | codeparrot/github-code |
eca941e09b25f8d4891f7cbc4aab9e5cefe939e7ff94318686c4eb2eebcf827e | #ifndef TECH_UI_WINDOWSYSTEM_H
#define TECH_UI_WINDOWSYSTEM_H
#include <tech/pimpl.h>
#include <tech/string.h>
#include <tech/types.h>
#include <tech/ui/rect.h>
#include <tech/ui/timer.h>
#include <tech/ui/widget.h>
namespace Tech {
class WindowSystemPrivate;
class WindowSystem final : public Interface<WindowSys... | C | src/ui/windowsystem.h | phantom-code/tech | mit | 1,678 | 67 | codeparrot/github-code |
4634d8cb409e6091f43fb0d820154378b108f2787a7e81e4c48b7e8f8edbb851 | namespace System.Text.RegularExpressions
{
using System;
using System.Globalization;
internal sealed class RegexFC
{
internal bool _caseInsensitive;
internal RegexCharClass _cc;
internal bool _nullable;
internal RegexFC(bool nullable)
{
... | C# | System/System.Text.RegularExpressions/RegexFC.cs | wizzard0/dotNetAnywhere-wb | mit | 2,212 | 81 | codeparrot/github-code |
7bab1f5b51882cd22609c3d377843b871527833573005693800c5331117bd374 | using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using System.Windows.Forms;
namespace NetOffice.DeveloperToolbox.ToolboxControls.OfficeCompatibility
{
/// <summary>
... | C# | DeveloperToolbox/ToolboxControls/OfficeCompatibility/ReportControl.cs | NetOfficeFw/NetOfficeToolbox | mit | 25,564 | 620 | codeparrot/github-code |
4818e60aba18399cb293607964fa8bb45aa5f3488d298d79df9b58f5b6e46d6e | require.register("scripts/product", function(exports, require, module) {
var req = require('scripts/req');
AddStyleTagToItemVM = function(user, styletag_repo) {
// this is very similar to AddItemToCollectionVM - yet different.
var self = this;
self.styletags = styletag_repo.create_filte... | JavaScript | frontend/app/scripts/apps/product.js | julienaubert/clothstream | mit | 2,625 | 72 | codeparrot/github-code |
092d328f4384405571c25220fb3be48fcc2f3baaeb16080e5719362605a26edf | module SifttterRedux
# DropboxUploader Class
# Wrapper class for the Dropbox Uploader project
class DropboxUploader
# Stores the local filepath.
# @return [String]
attr_accessor :local_target
# Stores the remote filepath.
# @return [String]
attr_accessor :remote_target
# Stores the m... | Ruby | lib/sifttter-redux/dropbox-uploader.rb | bachya/Sifttter-Redux | mit | 1,884 | 64 | codeparrot/github-code |
a45afc0bb5bab395ab1284114639d03b2cd81033c71c095b165f1845b577e57c | <?php
/**
* Class for performing HTTP requests
*
* PHP versions 4 and 5
*
* LICENSE:
*
* Copyright (c) 2002-2007, Richard Heyes
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* a... | PHP | PHP/s3uploader/HTTP/Request.php | sharkhack/AmazonS3 | mit | 49,419 | 1,485 | codeparrot/github-code |
722cc07e05101f6eb21ae31c4ad70daf1990b9b54d97dc8c3958874aadf56215 | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = undefined;
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor... | JavaScript | lib/email-input.js | njnest/rc-inputs | mit | 2,843 | 65 | codeparrot/github-code |
013d80275b664634881e9d4526c852bd574a233bfeb81ffd7f64bdf4514a500b | import React, { Component } from 'react';
import List from 'react-toolbox/lib/list/List';
import ListSubHeader from 'react-toolbox/lib/list/ListSubHeader';
import ListCheckbox from 'react-toolbox/lib/list/ListCheckbox';
import ListItem from 'react-toolbox/lib/list/ListItem';
import Dropdown from 'react-toolbox/lib/drop... | JavaScript | src/modules/background/containers/Settings.js | emadalam/mesmerized | mit | 2,449 | 65 | codeparrot/github-code |
580a6b19e756809f5d222210a24881bbfdfa9deb24b23f93dadedd26a6e351be | require "simple_selector/version"
require "simple_selector/specificity"
require "simple_selector/segment"
class SimpleSelector
def initialize(string=nil)
@segments = []
@specificity = Specificity.new
concat(string) unless string.nil?
end
attr_reader :specificity
def concat(string)
string.sc... | Ruby | lib/simple_selector.rb | jacekmikrut/simple_selector | mit | 1,247 | 67 | codeparrot/github-code |
3973ad3f9061a893848af02da80c9bbbcdc0d94bb186d7aa410af58494fc0db8 | <?php
namespace thgs\Olographos;
class Olographos
{
/*
| Olographos class
|-=-=-=-=-=-=-=-=-=-
|
| I wrote this a while ago, now went through it all wrapping it in a class.
| Has some introspective comments :)
|
|
| Limitations: max number is 999,999.99
|
| Version: 0.1b - ... | PHP | src/Olographos/Olographos.php | thgs/olographos | mit | 5,757 | 198 | codeparrot/github-code |
74d9c4d83ef03f1e6237954355de4ee52f99c6e741c90240786a04e2b777a829 | package jp.co.rakuten.checkout.lite.model;
import static org.junit.Assert.assertEquals;
import org.junit.Before;
import org.junit.Test;
import jp.co.rakuten.checkout.lite.RpayLite;
import jp.co.rakuten.checkout.lite.RpayLiteTest;
import jp.co.rakuten.checkout.lite.exception.UnexpectedValueException;
import jp.co.rak... | Java | src/test/java/jp/co/rakuten/checkout/lite/model/EventTest.java | rpayonline/rpayonline-lite-java | mit | 3,237 | 67 | codeparrot/github-code |
f95d46260c15b348e94ee0b631128e0d170b09869a71062bc0dc6e4be3b60daf | using System;
using System.Windows.Forms;
using BizHawk.Emulation.Common;
using BizHawk.Client.Common;
using BizHawk.Common.NumberExtensions;
namespace BizHawk.Client.EmuHawk
{
public partial class StateHistorySettingsForm : Form
{
public IStatable Statable { get; set; }
private readonly TasStateManagerSettin... | C# | Real-Time Corruptor/BizHawk_RTC/BizHawk.Client.EmuHawk/tools/TAStudio/GreenzoneSettings.cs | ircluzar/RTC3 | mit | 3,502 | 96 | codeparrot/github-code |
589efacc3a9b15aabdbfeef2c85fd3019936d08fcf99468d7278a21a32471d30 | using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
public class OVRSceneLoader : MonoBehaviour
{
public const string externalStoragePath = "/sdcard/Android/data";
public const string sceneLoadDataName... | C# | Oculus Demo/Assets/Oculus/VR/Scripts/OVRSceneLoader.cs | davidezordan/MixedRealitySamples | mit | 7,255 | 266 | codeparrot/github-code |
2a9d695984ef2ca3bec1e598094e88b62b8f1dbe500859b266fb08855c431f75 | <!DOCTYPE html><html><head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="description">
<meta name="keywords" content="static content generator,static site generator,static site,HTML,web development,.NET,C#,Razor,Markdown,YAML">
<meta n... | HTML | docs/api/StrideToolkit.Mathematics/MathUtilEx/A9859409.html | dfkeenan/XenkoToolkit | mit | 17,205 | 394 | codeparrot/github-code |
4c42e00450ad60abe5b00c9b1aeb4caaf2a4bdd7c89eb0efe0c450d25c02319f | namespace BankAccountApp.MSTests.Integration {
using System;
using Bank;
using Microsoft.VisualStudio.TestTools.UnitTesting;
[TestClass]
public sealed class IntegrationTest {
private readonly AccountRepository _accountRepository = new AccountRepository();
[TestMethod]
[Exp... | C# | src/BankAccountApp.MSTests.Integration/IntegrationTest.cs | Sebazzz/NetUnitTestComparison | mit | 1,797 | 59 | codeparrot/github-code |
3ae4792cf1f7ec156b4a7d453327de1f1e7053e81e154f794ffa10505b3ed441 | using System;
using System.Diagnostics;
using System.IO;
namespace Cogito.Diagnostics
{
/// <summary>
/// Implements a <see cref="TraceListener"/> that writes to a file, rolling over for each day.
/// </summary>
public class RollingFileTraceListener :
TraceListener
{
readonly st... | C# | Cogito.Core/Diagnostics/RollingFileTraceListener.cs | wasabii/Cogito | mit | 4,402 | 158 | codeparrot/github-code |
c9d3f5aa9a08772dffce1f1d5c356b430027c9ce5b2601aadaa2ff1421a91035 | require 'rails/generators'
require 'rails/generators/migration'
require 'migration_assist/helper/file_name'
module RailsAssist::Migration
include Rails::Generators::Migration
include FileNameHelper
def reverse_migration_name name
name.gsub(/^add_/, 'remove_').gsub(/^create_/, 'drop_')
end
def rever... | Ruby | lib/migration_assist/implementation.rb | kristianmandrup/migration_assist | mit | 1,087 | 39 | codeparrot/github-code |
a9d4978d34a0bb4361d895b93ce657cfe6744003c031c53c77f31891529ee6c7 | package a2ndrade.explore.data.model;
import android.graphics.Color;
import android.os.Parcel;
import android.os.Parcelable;
public class Repo implements Parcelable {
public static final int DEFAULT_COLOR = Color.DKGRAY;
public final String name;
public final String description;
private boolean isStar... | Java | app/src/main/java/a2ndrade/explore/data/model/Repo.java | amilcar-andrade/explore | mit | 1,618 | 70 | codeparrot/github-code |
798fe5edfb3727c871bc50f66c0325316af8c8c51e2be5cd8eecbc986e624c8d | //
// DialogueBoxSystem.cpp
// Chilli Source
// Created by Ian Copland on 04/03/2014.
//
// The MIT License (MIT)
//
// Copyright (c) 2014 Tag Games Limited
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), ... | C++ | Source/CSBackend/Platform/Android/Main/JNI/Core/DialogueBox/DialogueBoxSystem.cpp | fjpavm/ChilliSource | mit | 4,611 | 99 | codeparrot/github-code |
dda12d9cb9e324b50e3fd0adc59b321c5b5776591e1cd9e28011da5c5660a5cc | /****************************************************************************
Copyright (c) 2013-2015 scutgame.com
http://www.scutgame.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 ... | C# | Sample/Koudai/Server/src/ZyGames.Tianjiexing.Model/DataModel/UserDial.cs | wenhulove333/ScutServer | mit | 7,921 | 277 | codeparrot/github-code |
cb66e05e9159333206820317d9d25196d6d562ebc41c8c0451189f889f557835 | <?php
unset($where);
if ($_GET['l'] == 'anfragen'){
$where['typ'] = 1;
}
elseif ($_GET['l'] == 'angebote'){
$where['typ'] = 0;
}
elseif ((($_GET['l'] == 'meinkonto') && !isset($_GET['a'])) || (($_GET['l'] == 'meinkonto') && ($_GET['a'] == 'angebote'))){
$where['typ'] = 0;
$where['userid'] = $_SESSION['... | PHP | content/nachhilfe-back.php | jeff84/studenthelper | mit | 2,308 | 60 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.