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 |
|---|---|---|---|---|---|---|---|---|
3260bb429a3f80dc5422b2308f155a78685c098d11042893c689e22b6c789841 | package net.minecraft.entity.passive;
import com.google.common.base.Predicate;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityAgeable;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.IEntity... | Java | src/main/java/net/minecraft/entity/passive/EntityHorse.java | TorchPowered/Thallium | mit | 54,229 | 1,755 | codeparrot/github-code |
c1628a3127bff15839bebc61472536210f913c7b8762bf580e878f7ccfb2e8b9 | <?php
namespace App\Controller;
use App\Controller\AppController;
/**
* BoardsMembers Controller
*
* @property \App\Model\Table\BoardsMembersTable $BoardsMembers
*/
class BoardsMembersController extends AppController
{
/**
* Index method
*
* @return void
*/
public function index()
... | PHP | src/Controller/BoardsMembersController.php | joaorsb/lumisial | mit | 3,888 | 113 | codeparrot/github-code |
8cc6ffbe4a404103820d3b552a51a7700b69a87bd2719bbac8f819cad56bad9e | // @flow
import type { Action } from "../actions/types";
import type { UserState } from "../types";
const initialState: UserState = {
fetching: false,
fetched: false,
users: [],
error: null
};
export default function users(state: UserState = initialState, action: Action) {
switch (action.type) {
case "... | JavaScript | client/src/reducers/users.js | celinaberg/BitFit | mit | 756 | 38 | codeparrot/github-code |
b6d65b5a970106a5664cafdf450a2ca9f524882f9291eb5b62a1d4153e4030da | public class BeerCounter
{
private static int beerInStock;
private static int beersDrankCount;
static BeerCounter()
{
beerInStock = 0;
beersDrankCount = 0;
}
public static int BeerInStock
{
get { return beerInStock; }
}
public static int BeersDrankCount
... | C# | C-sharp-Web-Developer/C# OOP Basics/03. StaticMembers/04. BeerCounter/BeerCounter.cs | sevdalin/Software-University-SoftUni | mit | 612 | 32 | codeparrot/github-code |
2e23d4552b984c566e3ea9559bf0f604356ba36701fc326a43bf9fedbaffd415 | <?php
/* TwigBundle:Exception:exception_full.html.twig */
class __TwigTemplate_89290451bd40f3bffff5d45f5e190d274d3a6df08458cdf50865fa795afb7625 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = $this->env->loadTemplate("Twig... | PHP | app/cache/dev/twig/89/29/0451bd40f3bffff5d45f5e190d274d3a6df08458cdf50865fa795afb7625.php | ArtemKiev/trainer | mit | 2,475 | 76 | codeparrot/github-code |
9cc55b56fbd57cbe473b61085884b66ac23dba47aa2a7f00f234f0ed6334a881 | // Copyright (C) 2009-2013 Mischa Sandberg <mischasan@gmail.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License Version 2 as
// published by the Free Software Foundation. You may not use, modify or
// distribute this program under any ... | C | rsort_x.c | mischasan/util | mit | 3,795 | 126 | codeparrot/github-code |
7127b636ca59d9f72494c0f753b89ce99ff89a3c1d193bfb51e60019a9b52458 | <?php
namespace Databox\Widget;
use \Databox\KPI as KPI;
class Pie extends Base
{
/**
* Pie labels
* @var array
*/
protected $labels = [];
/**
* Pie values
* @var array
*/
protected $values = [];
/**
* Pie changes
* @var array
*/
protected $chang... | PHP | src/Databox/Widget/Pie.php | sraka1/Databox-PHP-SDK | mit | 1,217 | 52 | codeparrot/github-code |
6445b8d76f19e05c033d913c54e9bd6b7e9ffe50562ddd068d515996904ad503 | using System;
using FluentAssertions;
using NuGet.Versioning;
using Xunit;
namespace TIKSN.Versioning.Tests
{
public class VersionTests
{
[Fact]
public void Equals001()
{
var V = new Version(2, 4);
Assert.True(V.Equals(V));
}
[Fact]
publ... | C# | TIKSN.UnitTests.Shared/Versioning/VersionTests.cs | tiksn/TIKSN-Framework | mit | 27,478 | 846 | codeparrot/github-code |
8d27703a5cbb964f7900833f9b5a1de58acd1c61bf59a0160af4d57859ceeab1 | /*
* The MIT License (MIT)
*
* Copyright (c) 2015 Carlos Andres Jimenez <apps@carlosandresjimenez.co>
*
* 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 w... | Java | app/src/main/java/co/carlosandresjimenez/android/gotit/api/GotItSvcApi.java | crlsndrsjmnz/GotIt | mit | 3,932 | 116 | codeparrot/github-code |
838349628809e219e8a487342cf00873df117f55d221a1f5da8679543c6a9247 | <?php
namespace Spolischook\GoogleCalendarBundle\Model;
use JMS\Serializer\Annotation\Type;
use JMS\Serializer\Annotation\Expose;
use JMS\Serializer\Annotation\ExclusionPolicy;
/**
* Class Event
* @package Spolischook\GoogleCalendarBundle\Model
* @ExclusionPolicy("all")
*/
class Event
{
const FREE_EVENT = 'g... | PHP | src/Spolischook/GoogleCalendarBundle/Model/Event.php | spolischook/cherry | mit | 5,197 | 330 | codeparrot/github-code |
ee993d9f566da4fce82730b040e4b6ca7065bd41bda916dda2c911f0db43ce08 | /**
* Copyright 2000-2013 Geometria Contributors
* http://geocentral.net/geometria
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License
* http://www.gnu.org/licenses
*/
package net.geocentral.geometria.action;
import net.geocentral.geom... | Java | archive/3.2/src/net/geocentral/geometria/action/GPrismAction.java | stelian56/geometria | mit | 4,565 | 146 | codeparrot/github-code |
3b79f10e5e4138113ba6462861fd8c0c16a6aaf33f83698a760f4592d4d2b9c6 | using System;
using System.Reflection;
using Newtonsoft.Json;
using Stranne.BooliLib.Models;
namespace Stranne.BooliLib.Converters
{
internal class BoxCoordinatesJsonConverter : JsonConverter
{
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
{
... | C# | Stranne.BooliLib/Converters/BoxCoordinatesJsonConverter.cs | stranne/BooliLib | mit | 1,041 | 31 | codeparrot/github-code |
712da2ae23aeb08b9d37da840533b8d175cf42a3bf5f9919d2449e5a2edc589b | $identify("org/mathdox/formulaeditor/OrbeonForms.js");
$require("org/mathdox/formulaeditor/FormulaEditor.js");
var ORBEON;
$main(function(){
if (ORBEON && ORBEON.xforms && ORBEON.xforms.Document) {
/**
* Extend the save function of the formula editor to use the orbeon update
* mechanism, see also:
... | JavaScript | app/scripts/editor/org/mathdox/formulaeditor/OrbeonForms.js | UTMQ/utmq-core | mit | 3,608 | 107 | codeparrot/github-code |
bdc4949397d0019cf40181bb65f7e580bb020b9bf6bb783aeaac5b6d06530239 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
//for network
using System.Net;
using System.Net.Sockets;
namespace nex1_server
{
public class EchoServer
{
private static byte[] buf = new byte[1024];
private List<Socket> socke... | C# | Network/nex2s/nex1-server/Server.cs | honux77/prostar | mit | 2,501 | 73 | codeparrot/github-code |
b954844191f3a56a80bdfba80dd6da74aecd21709b664f9749048f91ed1beef7 | function isEmpty(value) {
return angular.isUndefined(value) || value === '' || value === null || value !== value;
}
angular.module('Aggie')
.directive('ngMin', function () {
return {
restrict: 'A',
require: 'ngModel',
link: function (scope, elem, attr, ctrl) {
scope.$watch(attr.ngMin, function... | JavaScript | public/angular/js/directives/ng-minmax.js | VIP-eDemocracy/aggie | mit | 1,450 | 55 | codeparrot/github-code |
38052f1c79d899bcf06f3f39a490790c451f04fe54f6859fcf4465badb5b201c | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="de">
<head>
<title>Uses of Interface org.eclipse.emf.cdo.spi.workspace.InternalCDOWorkspaceBase (CDO Model Repository Documentation)</title>
<meta name="date" content="">
<link rel="style... | HTML | WASP-turtlebot-DSL/.metadata/.plugins/org.eclipse.pde.core/Eclipse Application/org.eclipse.osgi/142/0/.cp/javadoc/org/eclipse/emf/cdo/spi/workspace/class-use/InternalCDOWorkspaceBase.html | kribe48/wasp-mbse | mit | 7,266 | 166 | codeparrot/github-code |
ca12c13f7ad68fef15edb4359f4a6cb1029be2da09c2d666656e991621d21b3b | <?php
/**
* Class login
* handles the user's login and logout process
*/
class Login
{
/**
* @var object The database connection
*/
private $db_connection = null;
/**
* @var array Collection of error messages
*/
public $errors = array();
/**
* @var array Collection of su... | PHP | Knackered-Web/classes/Login.php | AscSecTeam/knackered-ui | mit | 4,447 | 131 | codeparrot/github-code |
3f54c58aae763a66bcae4d159fea20e7addb2c6837373ce1b5ea6da134a959ab |
/**
* Module dependencies.
*/
var express = require('express');
var routes = require('./routes');
var user = require('./routes/user');
var http = require('http');
var path = require('path');
var app = express();
// all environments
app.set('port', process.env.PORT || 3000);
app.set('views', path.join(__dirname, '... | JavaScript | app.js | nicolasmccurdy/ochat | mit | 969 | 42 | codeparrot/github-code |
a59a74089aff4440f6af4d422741a90b70d1a84f5428341cd0947c462ecd0977 | require 'rails_admin/support/i18n'
module RailsAdmin
module ApplicationHelper
include RailsAdmin::Support::I18n
def capitalize_first_letter(wording)
return nil unless wording.present? && wording.is_a?(String)
wording = wording.dup
wording[0] = wording[0].mb_chars.capitalize.to_s
wor... | Ruby | app/helpers/rails_admin/application_helper.rb | aliada-mx/rails_admin | mit | 8,157 | 180 | codeparrot/github-code |
d98ffb8276ebc89bfe004e3a66ed7bd2099e3651039d8d56e170f403ee8e8625 | #include "read_factor.h"
using namespace std;
void read_factor(ifstream& fin, Freq& f, vector<double>& fa, vector<double>& fb)
{
string s;
while (getline(fin, s)) {
if (s.find("%") == string::npos) {
// input frequency range and count
if(s.find("begin") != string::npos) f.begin = i... | C++ | src/read_factor.cpp | kmiya/iir | mit | 1,790 | 56 | codeparrot/github-code |
a14eea37e27e351403a0eca0bb22bccff8e461e2a942260980d7c51824a2bf9a | import 'reflect-metadata';
import { NoReturnValueHandlerFoundError } from '../src/errors/NoReturnValueHandlerFoundError';
import { ReturnTypeHandler } from '../src/ReturnTypeHandler';
import { ReturnType } from '../src/routes/ReturnType';
describe('ReturnTypeHandler', () => {
describe('constructor', () => {
... | TypeScript | packages/giuseppe/test/ReturnTypeHandler.spec.ts | smartive/giuseppe | mit | 4,649 | 149 | codeparrot/github-code |
9ca94a81b4a59ef3754306c5b6336f9e0cd52f0039502b7866687e7d52c26143 | from Tkinter import *
from ScrolledText import ScrolledText
from unicodedata import lookup
import os
class Diacritical:
"""Mix-in class that adds keyboard bindings for accented characters, plus
other common functionality.
An inheriting class must define a select_all method that will respond
to Ctr... | Python | recipes/Python/286155_Entering_accented_characters_Tkinter/recipe-286155.py | ActiveState/code | mit | 3,210 | 92 | codeparrot/github-code |
b48b19f28a862cc2bc1267a6e280d35b1c78a5cd414f2705856238e80707f54f | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mini-compiler: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.m... | HTML | clean/Linux-x86_64-4.05.0-2.0.1/released/8.7.0/mini-compiler/8.9.0.html | coq-bench/coq-bench.github.io | mit | 7,153 | 177 | codeparrot/github-code |
e6c2087ed29ca8a5929e89fcb6f3842bb45fa656bd6d55a55b87a31b9c30fc8a | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>mathcomp-field: 13 m 54 s</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css"... | HTML | clean/Linux-x86_64-4.05.0-2.0.6/released/8.8.1/mathcomp-field/1.11.0.html | coq-bench/coq-bench.github.io | mit | 11,400 | 190 | codeparrot/github-code |
86c1e9c4bf23deabcccf6f1014801a4dec250c6782525151a5dba3115c7d9e60 | class LeaderboardReport
# How does this fortnight's performance compare to last fortnight's?
def initialize(percentile, prison_labeling_function)
@percentile = percentile
@prison_labeling_function = prison_labeling_function.bind(self)
end
def this_period
this_fortnight = Date.today.cweek / 2
@... | Ruby | lib/leaderboard_report.rb | matharden/prison-visits | mit | 1,805 | 69 | codeparrot/github-code |
9f2c190eea7b1c8ef326f0fb915960a308ba9b6e47167fd1624a2b0a884e292c |
/** A class describing a Snake */
public class Snake extends Animal{
private boolean poisonous;
/** Constructor */
public Snake(String latinName, boolean poisonous) {
super(latinName);
this.poisonous = poisonous;
setFriendlyName("no name");
}
public boolean isPoisonous(){
return poisonous;
}
@O... | Java | KD405A_Larsson_J_uppgift4B/src/Snake.java | jenniferlarsson/KD405A_Jennifer_L | mit | 599 | 31 | codeparrot/github-code |
e7c0f144a3fd10476e008c6dc06798f004a00c4ba5518035709f79eada7babbc | <!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta chars... | HTML | _index.html | KurdyMalloy/kurdymalloy.github.io | mit | 2,211 | 45 | codeparrot/github-code |
3dc4e156079fecaa15541b2b1213e9baefbd351636f83480ad47903dd596cca9 | <?php
namespace Omnipay\Bcash\Message;
use Omnipay\Common\Exception\InvalidRequestException;
class FetchTransactionRequest extends AbstractRequest
{
public function getTransacaoId()
{
return $this->getParameter('transacao_id');
}
public function setTransacaoId($value)
{
return $t... | PHP | src/Message/FetchTransactionRequest.php | yubime/omnipay-bcash | mit | 1,991 | 83 | codeparrot/github-code |
a2ff05b63b48b470d2f9a7be53419e758f988d2e74d0f7683f40c3e455803a95 | from django.db import models
from django.contrib.auth.models import User, Group
from django.utils.translation import ugettext_lazy as _
from django.core.validators import RegexValidator
from django.conf import settings
class Repository(models.Model):
"""
Git repository
"""
# basic info
name = mode... | Python | django/repository/models.py | gitmill/gitmill | mit | 2,579 | 86 | codeparrot/github-code |
25eef5858dcb0dfbc8e25cd97dc0c76f0e23873f262423723c12b139d87eccbd | <?php
namespace BackendBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
class ArticleType extends AbstractType
{
/**
* {@inheritdoc}
*/
public... | PHP | src/BackendBundle/Form/ArticleType.php | ViraxDev/centrale_referencement | mit | 2,178 | 84 | codeparrot/github-code |
8413e50cf4a4a7572ab96957fd686a1c889864e3da49e4fcec9145df740b96d4 | 'use strict';
var fs = require('fs');
var demand = require('must');
var sinon = require('sinon');
var WebHDFS = require('../lib/webhdfs');
var WebHDFSProxy = require('webhdfs-proxy');
var WebHDFSProxyMemoryStorage = require('webhdfs-proxy-memory');
describe('WebHDFS', function () {
var path = '/files/' + Math.rand... | JavaScript | test/webhdfs.js | PavelVanecek/webhdfs | mit | 6,845 | 268 | codeparrot/github-code |
dda3b236e9febfd4934fe2211e8ebbb68215822f347bc03f307eb911091c5c82 | //
// ExtensionType.h
// PythonTools
//
// Created by Christopher Stawarz on 10/7/19.
// Copyright © 2019 MWorks Project. All rights reserved.
//
#ifndef ExtensionType_h
#define ExtensionType_h
#include "ArgTuple.h"
BEGIN_NAMESPACE_MW_PYTHON
template<typename T>
struct ExtensionType;
BEGIN_NAMESPACE(method_... | C | tools/python/Helpers/ExtensionType.h | mworks/mworks | mit | 8,447 | 324 | codeparrot/github-code |
5ad26f4762216b3fabceeb097f5540fe1db596a1462c5e5d2dc353455b9c63a2 | class Gws::Board::TopicsController < ApplicationController
include Gws::BaseFilter
include Gws::CrudFilter
include Gws::Board::BaseFilter
include Gws::Memo::NotificationFilter
model Gws::Board::Topic
navi_view "gws/board/main/navi"
self.destroy_notification_actions = [:soft_delete]
self.destroy_all_n... | Ruby | app/controllers/gws/board/topics_controller.rb | tany/ss | mit | 3,657 | 145 | codeparrot/github-code |
6be358963d8dc4a3bbf15a60e91deeb5371672c1ef097e03d4c978e8214ef154 | #include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <git2.h>
#define gpCheck(error, action) \
if (error) { \
printf("git-prompt error: %d\n", error); \
action; \
}
#define PATH_LENGTH 4096
#define TOKEN_LENGTH 6... | C | source/git-prompt.c | kbenzie/git-prompt | mit | 14,832 | 445 | codeparrot/github-code |
1d03584785839b59388c0f228b96fa4b32946a11a57c653222256689d24690be | <?php
namespace Silo\Inventory;
use Doctrine\ORM\QueryBuilder;
use Silex\Application;
use Silex\Api\ControllerProviderInterface;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
/**
* Endpoints.
*/
class UserController i... | PHP | server/Inventory/UserController.php | frankandoak/silo | mit | 1,183 | 40 | codeparrot/github-code |
ea6ebd97e7af6d05d6e5bc137ba39edf847d7671ab49fec09f286be252cefd87 | package org.embulk.parser;
import org.embulk.config.Config;
import org.embulk.config.ConfigDefault;
import org.embulk.config.ConfigDiff;
import org.embulk.config.ConfigSource;
import org.embulk.config.Task;
import org.embulk.config.TaskSource;
import org.embulk.spi.ParserPlugin;
import org.embulk.spi.FileInput;
import... | Java | src/main/java/org/embulk/parser/NoneParserPlugin.java | sonots/embulk-parser-none | mit | 2,153 | 72 | codeparrot/github-code |
bfa588b731744463a055f232e6f7b42182da9a57361e722fc9106f14351019db | using System;
using System.Collections.Generic;
using ClassLibraryCS.Entities;
namespace ClassLibraryCS
{
public class PersonFactory
{
public Person MakeJohnDeaux()
{
return new Person
{
Birthday = new DateTime(1983, 6, 23),
FirstName = "... | C# | 1406-XmlAndJson/ClassLibraryCS/PersonFactory.cs | htdnug/meetings | mit | 3,206 | 90 | codeparrot/github-code |
1e7fbfe6ec5aa7cfbe7fd4069fa84b6d4befa4f9bcd184b0cc0fedf9f731077d | #ifndef _DEFFERED_H_
#define _DEFFERED_H_
#include "tiny_obj_loader.h"
#include "Application.h"
#include "FlyCam.h"
#include <vector>
#include <string>
struct OpenGLInfo
{
unsigned int m_VAO;
unsigned int m_VBO;
unsigned int m_IBO;
unsigned int m_IndexCount;
};
class Deffered : public Application
{
public:
vi... | C | OpenGL_Intro/src/Deffered.h | Pokerjoker/Computer_Graphics | mit | 1,052 | 61 | codeparrot/github-code |
b8cdc93822de15e28aca98d6ea926fa2cb285a94ec3ee97f7d3b7c2f4556fc29 | <!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.06.1-2.0.5/released/8.7.0/dpdgraph/0.6.1.html | coq-bench/coq-bench.github.io | mit | 6,810 | 172 | codeparrot/github-code |
3f401e252652f714b55d9f094919729f515b0e698e519742af23ab6c0fee8252 | import re
def read_lua():
PATTERN = r'\s*\[(?P<id>\d+)\] = {\s*unidentifiedDisplayName = ' \
r'"(?P<unidentifiedDisplayName>[^"]+)",\s*unidentifie' \
r'dResourceName = "(?P<unidentifiedResourceName>[^"]+' \
r')",\s*unidentifiedDescriptionName = {\s*"(?P<uniden' \
... | Python | dev/ragna.py | vakhet/rathena-utils | mit | 1,183 | 33 | codeparrot/github-code |
7beaa516cf089963f0beed810af86d22ba77c91d9c262962e68f05e4d2041d27 | module Smithy
class PageList < ActiveRecord::Base
include Smithy::ContentBlocks::Model
validates_presence_of :parent_id
belongs_to :parent, :class_name => "Page"
class << self
def content_block_description
"Page Lists are primarily used to provide a sub-navigation for parent pages or ... | Ruby | app/models/smithy/page_list.rb | sterrym/smithycms | mit | 1,490 | 60 | codeparrot/github-code |
2b1d26b38d5a2cdc1702093395991f4c46dc4cfa17e0a6ffa6d6c085a90262a4 | /**
* @file NWayBlender.cpp
* @brief N-Way shape blend deformer plugin for Maya
* @section LICENSE The MIT License
* @section requirements: Eigen 3: http://eigen.tuxfamily.org/
* @section Autodesk Maya: http://www.autodesk.com/products/autodesk-maya/overview
* @section (included) AffineLib: https://github... | C++ | nwayBlender/nwayBlender.cpp | shizuo-kaji/NWayBlenderMaya | mit | 17,135 | 467 | codeparrot/github-code |
d0293024e581739edf73b43c6ee3b8e8f904eea9a8ccc33b41a30094da7d1c26 | var extend = require('extend');
var plivo = require('plivo');
var crypto = require('crypto')
var phone = require('phone');
var TelcomPlivoClient = module.exports = function(opts){
if (!(this instanceof TelcomPlivoClient))
return new TelcomPlivoClient(options);
this.options = {};
extend(this.options,opts);
... | JavaScript | lib/providers/plivo.js | AdamMagaluk/telcom | mit | 2,286 | 106 | codeparrot/github-code |
6d0a47cad20db048a9d0dc585470c8f28221e2342d5e3bc29ba5ba8290f832fd | using NUnit.Framework;
using DnDGen.TreasureGen.Tables;
namespace DnDGen.TreasureGen.Tests.Integration.Tables.Items.Magical.WondrousItems
{
[TestFixture]
public class PlanesTests : PercentileTests
{
protected override string tableName
{
get { return TableNameConstants.Percentil... | C# | DnDGen.TreasureGen.Tests.Integration.Tables/Items/Magical/WondrousItems/PlanesTests.cs | DnDGen/TreasureGen | mit | 1,917 | 58 | codeparrot/github-code |
dbf46415d57b189e8374dfc0aa3250ec74b9aad543bed3b4fd61878cf7c8f4cc | using UnityEngine;
using System.Collections;
using UnityEngine.UI;
namespace RPG {
public class ForestBossFightIntro : MonoBehaviour {
private GameObject Player;
private Player_Manager PM;
public GameObject Boss;
private ForestBoss_Manager FBM;
public ChangeBackgroundMusic BossMusicT... | C# | Assets/Scripts/Scene/ForestBossFightIntro.cs | mhueter/legend-of-z | mit | 1,967 | 65 | codeparrot/github-code |
65d667d0efa5d617d8a75865033f99a364dab3ae3f3d344872a465d6b0041a15 | require 'net/http'
require 'net/https'
require 'json'
class ISPManager::Base
def initialize params
@params = params
end
protected
def request method, params = {}
result = ISPManager::Request.create method, params, @params
result = JSON.parse(result)
if result.is_a? Hash
result.recursive_symbolize_keys... | Ruby | lib/ispmanager/base.rb | alexkv/ispmanager | mit | 880 | 42 | codeparrot/github-code |
a282dead0877981af25722a9998ac377069f4aea937b07e6350207c14f949f79 | using UnityEngine;
using System.Collections;
using System;
using static User;
using static CRUD;
using static GameStates;
public class PopulateIndestructableDebris : Level
{
public override int levelNumber
{
get
{
return 0;
}
}
public override string levelName
... | C# | Assets/Unit Test/PopulateIndestructableDebris.cs | maerman/CSCI466Project | mit | 988 | 55 | codeparrot/github-code |
8a7cff051209e4234cc94601181bbec6a24e0a675bd2c79084255772bb505ee5 | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2013 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef GAPCOIN_SERIALIZE_H
#define GAPCOIN_SERIALIZE_H
#include "allocators.h"
... | C | src/serialize.h | gapcoin/gapcoin | mit | 46,808 | 1,364 | codeparrot/github-code |
95ce6cbe68664eba0877c1f84318f314438337ee044d0606c530611de7b0c8d0 | import GameEvent from './GameEvent';
import Creature from '../entities/creatures/Creature';
import Ability from '../abilities/Ability';
import Tile from '../tiles/Tile';
export default class AbilityEvent extends GameEvent {
/**
* @class AbilityEvent
* @description Fired whenever a creature attacks
... | JavaScript | src/client/js/app/events/AbilityEvent.js | acbabis/roguelike | mit | 1,309 | 48 | codeparrot/github-code |
d104f007e7e0f6b6290e5544cba8530c2d9ca33d3f025d9d43e11e3211fb07ae | //-------------------------------
// ADMINISTER CODES FUNCTIONALITY
//-------------------------------
MFILE.administerCodes = function () {
MFILE.administerCodes.handleDisplay();
MFILE.administerCodes.handleKeyboard();
}
MFILE.administerCodes.handleDisplay = function () {
$('#result').empty();
$('#cod... | JavaScript | priv/static/06code.js | smithfarm/mfile-erlang | mit | 7,539 | 244 | codeparrot/github-code |
ad057c3a218de91bd4989b127dc68e1f1125b68f67b047ad28145a502075aa20 | using System;
using System.Windows.Input;
namespace Asteroids.ViewModel
{
/// <summary>
/// Általános parancs típusa.
/// </summary>
public class DelegateCommand : ICommand
{
private readonly Action<Object> _execute; // a tevékenységet végrehajtó lambda-kifejezés
private readonly F... | C# | Asteroids/Asteroids.ViewModel/DelegateCommand.cs | balintsoos/EVA2-bead2 | mit | 2,087 | 65 | codeparrot/github-code |
172eb48311f52e3ebbae5af91bf95518aa5bec59ed23533192c664cc330066e2 | # encoding: utf-8
require "bprum_shop_api/version"
require 'bcrypt'
require 'json'
module BprumShopApi
class Api
def initialize(my_key,remote_key,remote_path,remote_host,remote_port=80,charset='utf-8')
@my_key = my_key
@remote_port = remote_port
@remote_key = remote_key
@remote_path = re... | Ruby | lib/bprum_shop_api.rb | nottewae/bprum_shop_api | mit | 2,939 | 97 | codeparrot/github-code |
72123cea487999ab89711dc3e4e1a2b5ac38f4aed99cb91707961a6a7333c197 | package spatial.codegen.pirgen
import scala.collection.mutable.Map
import scala.collection.mutable.Set
trait MMap extends UniMap {
override type M = Map[K,VV]
def clear = { map.clear }
def update(n:K, v:V):Unit
def getOrElseUpdate(k:K)(v: => VV):VV
def transform(f: (K, VV) ⇒ VV): M = map.transform(f)
def ... | Scala | spatial/core/src/spatial/codegen/pirgen/maps/MutableMaps.scala | stanford-ppl/spatial-lang | mit | 2,799 | 89 | codeparrot/github-code |
d843b867c9eed60fc59fe4334b78a86c9707d1bc62f46a325013fa02ea0bec48 | /**
* @fileOverview
* @name aqicn.js
* @author ctgnauh <huangtc@outlook.com>
* @license MIT
*/
var request = require('request');
var cheerio = require('cheerio');
var info = require('./info.json');
/**
* 从 aqicn.org 上获取空气信息
* @module aqicn
*/
module.exports = {
// 一些多余的信息
info: info,
/**
* fetchWeb... | JavaScript | src/aqicn.js | ctgnauh/aqicn | mit | 5,161 | 212 | codeparrot/github-code |
2c9e8c7763c5753b255eb179aad439b888672a2aacc6f63c109c91477b000cd5 | <?php
namespace Cacic\CommonBundle\Controller;
use Doctrine\Common\Util\Debug;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Cacic\CommonBundle\Entity\SoftwareEstacao;
use Cacic\CommonBundle\Form\Type\Software... | PHP | src/Cacic/CommonBundle/Controller/SoftwareEstacaoController.php | lightbase/cacic | mit | 4,704 | 137 | codeparrot/github-code |
73bcee07b0d69923284e1fb60815fd739d92525abe5deb1eb93f94cffd19e1a6 | 'use strict';
import {
IPCMessageReader, IPCMessageWriter,
createConnection, IConnection, TextDocumentSyncKind,
TextDocuments, Diagnostic, DiagnosticSeverity, TextDocumentPositionParams,
InitializeParams, InitializeResult,
CompletionItem, CompletionItemKind, Files, Definition, CodeActionParams, Command, DidChange... | TypeScript | server/src/server.ts | starkevin/VSCode-TypeScript-Importer | mit | 7,738 | 210 | codeparrot/github-code |
2a026d0a01b04dfc573abf7d4c6d0fac0b45dc8fb3c2091fcc6e56d4f67b2df7 | package hextostring.debug;
import java.util.List;
import hexcapture.HexSelectionsContentSnapshot;
import hextostring.format.DecorableList;
/**
* Wraps the content of hex selections into an object containing the necessary
* information for debugging
*
* @author Maxime PIA
*/
public class DebuggableHexSelectionsC... | Java | src/main/java/hextostring/debug/DebuggableHexSelectionsContent.java | MX-Futhark/hook-any-text | mit | 3,023 | 125 | codeparrot/github-code |
2d21b21e8366daa7e50fd86d35cda78fe75221592b12ad4bb2a248c331795a72 | from bson.objectid import ObjectId
import json
class Room():
def __init__(self, players_num, objectid, table, current_color='purple'):
if players_num:
self.players_num = players_num
else:
self.players_num = 0
for el in ['p', 'b', 'g', 'r']:
if ... | Python | models/room.py | Andrey-Tkachev/infection | mit | 6,065 | 177 | codeparrot/github-code |
636eef5808a4f5aab7769861b1fb962b9f56ef847e130ca63ea0b27ef919a2d6 | package com.rallydev.jarvis;
import clojure.lang.RT;
import clojure.lang.Symbol;
import clojure.lang.Var;
import groovy.lang.Closure;
import java.util.HashMap;
import java.util.Map;
public abstract class Bot {
public static void addPlugin(Object plugin, Map metadata) {
ADD_PLUGIN.invoke(plugin, metadata)... | Java | src/main/java/com/rallydev/jarvis/Bot.java | RallySoftware/jarvis-core | mit | 1,334 | 45 | codeparrot/github-code |
9ed8843de1a876b4dd59f0c12a6949ae979438015b7236c3e9df81fa0be5892f | // Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <boost/assign/list_of.hpp>
#include "base58.h"
#include "bitcoinrpc.h"
#inclu... | C++ | src/rpcrawtransaction.cpp | AbundanceSource/ABC2 | mit | 20,288 | 565 | codeparrot/github-code |
803f81c5ce46622ae47e5de43bf627ef844f9c5722c6e007af874c2628b5f183 | 'use strict';
var proxy = require('proxyquire');
var stubs = {
googlemaps: jasmine.createSpyObj('googlemaps', ['staticMap']),
request: jasmine.createSpy('request'),
'@noCallThru': true
};
describe('google-static-map', function() {
var uut;
describe('without auto-setting a key', function() {
... | JavaScript | test.spec.js | ds82/google-static-map | mit | 2,179 | 84 | codeparrot/github-code |
26086e2603cc58e09542196c15c5d1c113be7b0065c92afb6ec23bd2591cb2b6 | import edu.princeton.cs.algs4.QuickUnionUF;
public class PercolationQF {
private int[][] directions = new int[][] { { 1, 0 }, // BOTTOM
{ -1, 0 }, // TOP
{ 0, -1 }, // LEFT
{ 0, 1 } // RIGHT
};
private int size;
private int[] grid;
// Main union find data structure used to determine if t... | Java | Percolation/src/PercolationQF.java | SirGandal/Percolation | mit | 3,956 | 157 | codeparrot/github-code |
bc29323c4aa22f499784ad14f5312960442a8309415d531d1267078941f2bd65 | /*
* Copyright (c) 2013 Jadler contributors
* This program is made available under the terms of the MIT License.
*/
package net.jadler.matchers;
import java.util.List;
import net.jadler.Request;
import org.apache.commons.lang.Validate;
import org.hamcrest.Factory;
import org.hamcrest.Matcher;
/**
* A {@link Req... | Java | jadler-core/src/main/java/net/jadler/matchers/ParameterRequestMatcher.java | mohitbnsl/BANSAL | mit | 2,285 | 72 | codeparrot/github-code |
f0d4d2f016b86c999872a4ff012a92e9ab3dfd94c81df451b6f6ed08ea50a1c0 | import React, { Component } from "react";
import { AppHeader, AppFooter } from "../App";
import config from "../../../config";
import { fromJS } from "immutable";
import Spinner from "react-spinner";
import { PlaylistNavBar } from "../../components/PlaylistNavBar";
export class LoadingMoment extends Component {
cons... | JavaScript | src/containers/LoadingMoment/index.js | UTD-CRSS/app.exploreapollo.org | mit | 1,496 | 50 | codeparrot/github-code |
5b2bf431190d0b04e4ff48994fe5055118309b31dc2d9d1faa666c8f16210f5d | /* */
var htmlparser = require('htmlparser2');
var _ = require('lodash');
var quoteRegexp = require('regexp-quote');
module.exports = sanitizeHtml;
// Ignore the _recursing flag; it's there for recursive
// invocation as a guard against this exploit:
// https://github.com/fb55/htmlparser2/issues/105
function saniti... | JavaScript | jspm_packages/npm/sanitize-html@1.6.1/index.js | npelletm/np-jdanyow-skeleton-navigation | mit | 8,674 | 297 | codeparrot/github-code |
c5da1848bee635fcfbd5e4c7675eddf2f0d0bfe5df55813d825dd5da416c9e8c | using System;
using System.Linq;
using System.Threading.Tasks;
using System.Web;
using System.Web.Mvc;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.Owin;
using Microsoft.Owin.Security;
using cristventcode_static.Models;
namespace cristventcode_static.Controllers
{
[Authorize]
public class ... | C# | cristventcode-static/Controllers/ManageController.cs | cristventcode/cristventcode-static | mit | 14,140 | 389 | codeparrot/github-code |
417e11814466fe0d80cfc5dc2378c256708e3f4a5a0480121a140e6c53b9c239 | <?php
/*
* Copyright 2017 Jack Sleight <http://jacksleight.com/>
* This source file is subject to the MIT license that is bundled with this package in the file LICENCE.md.
*/
use Chalk\Chalk;
if (php_sapi_name() != 'cli') {
exit("Must be run from the command line\n");
}
$init = getcwd() . '/chalk-cli.php';
if (... | PHP | cli/chalk.php | jacksleight/chalk | mit | 1,355 | 52 | codeparrot/github-code |
4a34336e25c068f3300fde894707bda1d9d05cb3cfb6b487ca3bce9370382feb | import datetime
from sqlalchemy import create_engine, ForeignKey, Column, Integer, String, Text, Date, Table, Boolean
from sqlalchemy.orm import sessionmaker, relationship
from sqlalchemy.ext.declarative import declarative_base
from . import app
from flask_login import UserMixin
engine = create_engine(app.config["SQLA... | Python | fight_simulator/database.py | tydonk/fight_simulator | mit | 3,978 | 121 | codeparrot/github-code |
12145ace59128838f3945e227b897e95a3787cd0922ff90d703059d57c80fb66 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>pi-agm: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" re... | HTML | clean/Linux-x86_64-4.05.0-2.0.6/extra-dev/8.11.dev/pi-agm/1.2.3.html | coq-bench/coq-bench.github.io | mit | 7,672 | 177 | codeparrot/github-code |
ba431f1cadf8ef3d22b9dd1a97351dcb22cf0f3ee44c55021968216a9de5ca1d | <?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\Schema;
class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
\URL::forceScheme('http');
... | PHP | app/Providers/AppServiceProvider.php | RamiroAldana/ProyectoTresFronteras | mit | 506 | 31 | codeparrot/github-code |
510d4a1af2c6d1fc515580533d9323ccb8f3be796736b45ca79f15dbac7ad790 | #include "page.h"
using namespace AhoViewer::Booru;
#include "curler.h"
#include "image.h"
#include "settings.h"
#include "site.h"
#include "threadpool.h"
#include <glibmm/i18n.h>
#include <iostream>
#define RETRY_COUNT 5
void Page::CellRendererThumbnail::get_preferred_width_vfunc(Gtk::Widget& widget,
... | C++ | src/booru/page.cc | ahodesuka/ahoviewer | mit | 14,716 | 485 | codeparrot/github-code |
caa05930bd9d191e81721a130f451e4cc1600a6f762ce47ca265be5896cb2cd5 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""Pyramidal bidirectional LSTM encoder."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
class PyramidBLSTMEncoder(object):
"""Pyramidal bidirectional LSTM Encoder.
Args:
... | Python | models/encoders/core/pyramidal_blstm.py | hirofumi0810/tensorflow_end2end_speech_recognition | mit | 7,080 | 178 | codeparrot/github-code |
2655569f18abc949469e0417ca052a7005b4217d1dcd69d3ab27e0fbc644eab8 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Login Page - Photon Admin Panel Theme</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<link rel="shortcut icon" href="ht... | HTML | lib/assets/images/photon/plugins/elrte/css/css_compiled/css/css_compiled/js/plugins/prettify/js/plugins/jquery.tagsinput.min.js.html | user-tony/photon-rails | mit | 16,115 | 197 | codeparrot/github-code |
23457a2141258b3ddc1f75e7e928575c4104f259ac4c846ab0927d1d29b1df9d | #pragma once
#include <memory>
#include <utility>
#include <vector>
#include "Runtime/CSaveWorld.hpp"
#include "Runtime/CToken.hpp"
#include "Runtime/rstl.hpp"
#include "Runtime/MP1/CPauseScreenBase.hpp"
namespace metaforce {
class CPlayerState;
class CScannableObjectInfo;
class CStringTable;
} // namespace metaforc... | C++ | Runtime/MP1/CLogBookScreen.hpp | AxioDL/PathShagged | mit | 2,401 | 69 | codeparrot/github-code |
f51e38022d287047c20c37a9e33e4c758e62991cc75ab88c0fb40e8b2714e375 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TestRunner.Asserts
{
public class SuperIntTestLibrary
{
private int expectedValue;
private bool denyEverything;
internal SuperIntTestLibrary(int... | C# | TestRunner/TestRunner/Asserts/SuperIntTestLibrary.cs | mironiasty/Stuff | mit | 1,229 | 53 | codeparrot/github-code |
3421e2c616cfee52c0948fdccbc40d6be3af1f7b422e859b8a5c2a89a93a35d1 | import {
it,
inject,
injectAsync,
beforeEachProviders
} from '@angular/core/testing';
// to use Translate Service, we need Http, and to test Http we need to mock the backend
import {
BaseRequestOptions,
Http,
Response,
ResponseOptions
} from '@angular/http... | TypeScript | src/app/app.spec.ts | MacKentoch/ng2MaterialQuizz | mit | 1,183 | 41 | codeparrot/github-code |
59ff56db8f27b1ab4fa3f91fb3a61616bea93b3328d9766c0dbc64c7e2722017 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="Tim Crane">
<title>Johnson Trube</title>
<!-- Bootstrap core CSS -->
<... | HTML | buds.html | TimCrane1/TimCrane1.github.io | mit | 2,953 | 60 | codeparrot/github-code |
01c4beba6d8774677b80b736227190fa6efc4972c8c4e96012bdfe9a8229b035 | // This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
/* PrefixInfo.cs --
* Ars Magna project, http://arsmagna.ru
* -------------------------------------------------------
* Status: poor
*/
#region Using dir... | C# | Source/Classic/Apps/WriteOffER/Source/PrefixInfo.cs | amironov73/ManagedIrbis | mit | 1,461 | 71 | codeparrot/github-code |
d9ac157aee8bb363e52e591a1af1629b11fa94ca689057fd9287b664c7b44602 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.EntityFramework;
using Microsoft.AspNet.Identity.Owin;
using Microsoft.Owin.Security;
using Microsoft.Owin.Security.Cookies;
us... | C# | TsAngular2/Providers/ApplicationOAuthProvider.cs | wilk666/Angular2SandBox | mit | 3,435 | 98 | codeparrot/github-code |
e0d153557afb52b23db353bb561e718e3539c59ea28da3f2882409f4c3cdb9ac | #include "gui.h"
#include "graphics.h"
#include "heap.h"
#include "kstdio.h"
window_t g_window_list;
void gui_init()
{
LIST_INIT(g_window_list.list);
}
void gui_background_render()
{
//fillrect(0,0,screen_width,screen_height,rgb(255,255,255));
}
void gui_print()
{
}
void gui_update()
{
window_t* win;
LIST_FO... | C | zos/src/gui.c | zzh8829/OSPP | mit | 1,283 | 86 | codeparrot/github-code |
1c7a82a658bca5a2d3106e65c4e33176928c678f6df0a8884d8919d7009b9c75 | <?php namespace Rainlab\Translate\Console;
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputOption;
use RainLab\Translate\Classes\ThemeScanner;
use RainLab\Translate\Models\Message;
/**
* ScanCommand
*/
class ScanCommand extends Command
{
protected $name = 'translate:scan';
protecte... | PHP | console/ScanCommand.php | rainlab/translate-plugin | mit | 1,013 | 41 | codeparrot/github-code |
07750a196efeb52a4bd8117155a79522cf71dd141b9a125dfe8b073e285eda8f | package io.github.tcdl.msb;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.typesafe.config.ConfigFactory;
import io.github.tcdl.msb.adapters.ProducerAdapter;
import io.github.tcdl.msb.api.Callback;
import io.github.tcdl.msb.api.exception.ChannelException;... | Java | core/src/test/java/io/github/tcdl/msb/ProducerTest.java | tcdl/msb-java | mit | 4,788 | 121 | codeparrot/github-code |
eb47a9bd40743dce3e6c1722f36327c3be095024dff6605c77221d11379456c4 | <!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.07.1-2.0.6/released/8.13.2/mathcomp-analysis/0.1.0.html | coq-bench/coq-bench.github.io | mit | 7,484 | 184 | codeparrot/github-code |
b3e306b4936fa09226be10e4c9167c3b3bcdbfd3691f1a35d7fed1c85f780004 | var mysql = require('mysql');
function discountMember(router,connection){
var self=this;
self.handleRoutes(router,connection);
}
//KALO...UDH SEKALI DIDISKON>>>BERARTI GABOLEH LAGI LAGI DISKON YAA TODO:
discountMember.prototype.handleRoutes = function(router,connection){
router.post('/discountMember',functio... | JavaScript | model/cashier/discountMember.js | mczal/widji-server | mit | 4,751 | 94 | codeparrot/github-code |
3236c21c265571ea86bea825d5da2e2bbfce212f64a72fc76686c3a15ffd9714 | //------------------------------------------------------------------------------
// Piece Manipulation Device (c) 2010 Robert MacGregor
// Version: 3.0b
// Comment: This file has went through much organization and it still isn't
// very neat!
//
// ----------------------------- Description -----------------------... | C# | scripts/ancient/packs/Piece Manipulator_3-0b.cs | Ragora/T2-ScriptDump | mit | 37,696 | 1,415 | codeparrot/github-code |
95c88740f978ecb35695d47e68188a8d497c6801c675b803a702f3898bfbaba4 | import type { Prng } from '@dicebear/core';
import type { Options } from '../options';
import type { ComponentPickCollection } from '../static-types';
import { pickComponent } from './pickComponent';
type Props = {
prng: Prng;
options: Options;
};
export function getComponents({
prng,
options,
}: Props): Comp... | TypeScript | packages/@dicebear/adventurer-neutral/src/utils/getComponents.ts | DiceBear/avatars | mit | 993 | 45 | codeparrot/github-code |
dc3bf348fa8158e1a2579cc05560d84ffe860ecd45f179da4fd9f013ca0c8aab | // Copyright (c) Charlie Poole, Rob Prouse and Contributors. MIT License - see LICENSE.txt
#nullable enable
using System;
using System.Linq;
using System.Reflection;
using NUnit.Compatibility;
using NUnit.Framework.Interfaces;
namespace NUnit.Framework.Internal
{
/// <summary>
/// The TypeWrapper class wraps... | C# | src/NUnitFramework/framework/Internal/TypeWrapper.cs | nunit/nunit | mit | 8,699 | 271 | codeparrot/github-code |
5e22229bb2be94c14681864dbdea2f8c0f00381af321d29eaef00de5ed31fa30 | from jupyter_server.utils import url_path_join as ujoin
from .config import Lmod as LmodConfig
from .handler import default_handlers, PinsHandler
def _jupyter_server_extension_paths():
return [{"module": "jupyterlmod"}]
# Jupyter Extension points
def _jupyter_nbextension_paths():
return [
dict(
... | Python | jupyterlmod/__init__.py | cmd-ntrf/jupyter-lmod | mit | 1,051 | 39 | codeparrot/github-code |
63fd0afcc2f84909bb15aab7b985d1907a7fee31aef550f6bb0005c5534135cb | define(function () {
var exports = {};
/**
* Hashes string with a guarantee that if you need to hash a new string
* that contains already hashed string at it's start, you can pass only
* added part of that string along with the hash of already computed part
* and will get correctly hash as if you passe... | JavaScript | js/src/utils.js | grassator/live-html | mit | 2,563 | 98 | codeparrot/github-code |
661011702d1cd8623644af9ace35c865f5f7ba63c275fdaa3999a2c5d5ecf398 | package com.example.MacGo;
import com.parse.Parse;
import com.parse.ParseObject;
import java.text.Format;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;
/**
* Created by KD on 1/12/2015.
*/
public class Item {
String itemId;
Str... | Java | app/src/main/java/com/example/MacGo/Item.java | McMasterGo/MacGo_Android | mit | 1,892 | 75 | codeparrot/github-code |
9332021b64c698e013ee3c5bfaea42534e1856c66a7afbc83e067b22eb8ddb8d | using System;
using System.Linq.Expressions;
using Remotion.Linq.Clauses;
using Remotion.Linq.Clauses.ResultOperators;
using Remotion.Linq.Clauses.StreamedData;
namespace Marten.Linq.Operators
{
public class ToJsonArrayResultOperator
: SequenceTypePreservingResultOperatorBase
{
public ToJsonAr... | C# | src/Marten/Linq/Operators/ToJsonArrayResultOperator.cs | JasperFx/Marten | mit | 950 | 35 | codeparrot/github-code |
1786ebf4e4db5ca8f1ac8175195bbb194229b37e5ea30a2a9bbbd31a0837e505 |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>W27324_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/W27324_text/page18.html | datamade/elpc_bakken | mit | 4,699 | 89 | codeparrot/github-code |
3fe3deacabe1d75b9932d10c7ff321c7217ec2dfc7da05e8f2007e891fee7b7d | // A method override middleware for [rkgo/web](https://github.com/rkgo/web)
//
// app := web.New()
// app.Use(methodoverride.Middleware())
//
package methodoverride
import (
"strings"
"github.com/rkgo/web"
)
const (
overrideFormField = "_method"
overrideHeader = "X-HTTP-Method-Override"
)
// The method ove... | GO | methodoverride.go | rkgo/methodoverride | mit | 946 | 44 | codeparrot/github-code |
71461cf5ab589e79cd5712543142de84b51f9881fef7d9a96252a3081e8dab88 | var express = require('express');
var app = express();
var path = require('path');
var session = require('express-session');
var bodyParser = require('body-parser')
var fs = require('fs');
app.use(express.static(path.join(__dirname, 'public')));
app.use(bodyParser.urlencoded({extended: true}));
app.use(bodyParser.json... | JavaScript | courceLabsReady/task10/server.js | RomanLysak/angularJsLabsLuxoft | mit | 1,778 | 77 | codeparrot/github-code |
04af4d77896c45b80a9b683ad2aedb09ad327ac629a9f7a2d09ab2a465198ed9 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Phaser Source: src/input/Mouse.js</title>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/default.css">
<link type="text/... | HTML | v2-community/docs/src_input_Mouse.js.html | dreamsxin/phaser | mit | 63,160 | 2,119 | codeparrot/github-code |
df53861dcdc8383d1ebedbc691f2477c053bedf1b3ac04232807307265c434fc |
import numpy as np
import ctypes
import struct
import time
# relative imports in Python3 must be explicit
from .ioctl_numbers import _IOR, _IOW
from fcntl import ioctl
SPI_IOC_MAGIC = ord("k")
SPI_IOC_RD_MODE = _IOR(SPI_IOC_MAGIC, 1, "=B")
SPI_IOC_WR_MODE = _IOW(SPI_IOC_MAGIC, 1, "=B")
SPI_IOC_... | Python | Python PiCode/Lepton.py | varunsuresh2912/SafeRanger | mit | 7,177 | 176 | codeparrot/github-code |
e342051517690cef788f3ee5c113387b10af8128dabdd66b612e21490f3d163a | import numpy as np
import matplotlib.pyplot as plt
from astropy.io import fits
from scipy.interpolate import interp1d,splev,splrep
def extractSpectrum(filename):
"""
NAME:
extractSpectrum
PURPOSE:
To open an input fits file from SDSS and extract the relevant
components, ... | Python | Programs/interpolate.py | BU-PyCon/Meeting-3 | mit | 3,010 | 86 | codeparrot/github-code |
4aec1057223321d0bbd558a319f5d564d429dd1a465ec40f909b28e82b578e3b | var Screen = require('./basescreen');
var Game = require('../game');
var helpScreen = new Screen('Help');
// Define our winning screen
helpScreen.render = function (display) {
var text = 'jsrogue help';
var border = '-------------';
var y = 0;
display.drawText(Game.getScreenWidth() / 2 - text.length / 2, y++,... | JavaScript | client/assets/screens/helpscreen.js | shaddockh/js_roguelike_tutorial | mit | 1,665 | 40 | codeparrot/github-code |
b0a49ef4bb66d3145629c1eb496212248699a50f91f406dbc1aacebf46d09927 | import unittest
import random
from pygraph.classes.graph import graph
class SWIM(object):
def __init__(self, graph):
self.graph = graph
def edge_alive(self, nodeA, nodeB, alive):
'''
edge_alive(A, B, True|False)
'''
edge = (nodeA, nodeB)
if alive:
s... | Python | Concepts/SWIM.py | achoi007/CloudComputing | mit | 2,292 | 86 | codeparrot/github-code |
f986edae964ca0c4c56378751481baa9c6126838b0f034aaac8451018a2dbb0c | namespace ArgentPonyWarcraftClient;
public partial class WarcraftClient
{
/// <inheritdoc />
public async Task<RequestResult<CharacterEncountersSummary>> GetCharacterEncountersSummaryAsync(string realmSlug, string characterName, string @namespace)
{
return await GetCharacterEncountersSummaryAsync(... | C# | src/ArgentPonyWarcraftClient/Client/ProfileApi/CharacterEncountersApi.cs | danjagnow/ArgentPonyWarcraftClient | mit | 2,246 | 44 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.