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 |
|---|---|---|---|---|---|---|---|---|
b7a29404d95b2ea994396db260773f06cd20a7a785e605271cf3ed5da6dab683 | namespace Kitchen
{
using System;
internal class Chef
{
public void Cook()
{
Bowl bowl = this.GetBowl();
Potato potato = this.GetPotato();
Vegetable peeledPotato = this.Peel(potato);
Vegetable cutPotato = this.Cut(peeledPotato);
b... | C# | 06. Control Flow, Conditional Statements and Loops/Homework/06. Control Flow, Conditional Statements and Loops/01. Task/Chef.cs | madmarks/High-Quality-Code | mit | 1,457 | 71 | codeparrot/github-code |
16b9e8b19772eca9d9c31027a325173a24990108e2cf2c18221b8e5b08754ad3 | /*
GeTunnel.exe RECV-PORT FWD-HOST FWD-PORT /S
/S ... â~·éB
GeTunnel.exe RECV-PORT FWD-HOST FWD-PORT [/C CONNECT-MAX] [/P PROXY-HOST PROXY-PORT] [/R]
[/E EMBED-MODE] [/BS BUFF-FULL] [/EF ERROR-PAGE-FILE]
[/XRH EXTRA-REQ-RES-H... | C | Labo/Socket/tunnel/GeTunnel.c | stackprobe/Factory | mit | 17,968 | 846 | codeparrot/github-code |
1a336959413b021c6e1456cb282b4c6ae13d4239e1a2651730aaca04a42c6ca8 | /*
* WCommands - Yet Another Command API! <https://github.com/JonathanxD/WCommands>
*
* The MIT License (MIT)
*
* Copyright (c) 2016 TheRealBuggy/JonathanxD (https://github.com/JonathanxD/ & https://github.com/TheRealBuggy/) <jonathan.scripter@programmer.net>
* Copyright (c) contributors
*... | Java | src/test/java/com/github/jonathanxd/wcommands/helperapi/TestHelper.java | JonathanxD/WCommands | mit | 4,464 | 114 | codeparrot/github-code |
94e08891590b5b38d6c60a0e2cb87edb6e93426741ab6f2c7d5961e16b067e79 | """settings.py - LOB Demo Center settings file
Defines databases and other resources for the operation of the
LOB Demo Center (LDC) application.
Note: The paramters in the settings module must adhere to the normal Python syntax
otherwise errors will be reported from the interpreter
$Date: 2008-08-22 19:52:28 +... | Python | Adabas/demo/LobDemoCenter/settings.py | flavio-casacurta/Nat2Py | mit | 4,386 | 99 | codeparrot/github-code |
2472cbb701f64948ef643e6e358318e8ae0a67b117e714c78db2e9a461f871a5 | /*
var map = new google.maps.Map(document.getElementById("map"), {
zoom: 7,
center: new google.maps.LatLng(36,138),
mapTypeId: google.maps.MapTypeId.ROADMAP
});
*/
/*
function getLatLng(place) {
alert(place);
var geocoder = new google.maps.Geocoder();
geocoder.geocode({
address: place,
region: ... | JavaScript | public/js/gmap_latlng.js | tokitam/pumpkincms | mit | 1,699 | 53 | codeparrot/github-code |
61314cb215bc359cd2f0f7d3d017375d13c62a571355dbf5c7a7f2f1cc694016 | // This file is part of Miscellaneous Container Templates.
//
// https://launchpad.net/libmct/
//
// Copyright (c) 2012, 2013 Paul Pogonyshev.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
/... | C++ | mct/hash-map-serialization.hpp | isanych/testset | mit | 4,004 | 112 | codeparrot/github-code |
f8e7fc046a6bb50a3385c62ae07ee20572dc99895a9b9d0ce13c1e87e16b9375 | exports = module.exports = function () {
// mock of profile service (should be sinon stub?)
var profileMock = function profile (err, user) {
return {
update: function (req, callback) {
callback(err, user);
}
};
};
// mock of article service (shoul... | JavaScript | test/handlers/api/index.js | eiriklv/hoardr | mit | 1,415 | 45 | codeparrot/github-code |
baeb2700a3333e1105793c088e00cfc058da247e6f3929df7edc62715a57260c | import Component from '@ember/component';
import {
UnsupportedMediaTypeError,
isRequestEntityTooLargeError,
isUnsupportedMediaTypeError,
isVersionMismatchError
} from 'ghost-admin/services/ajax';
import {computed} from '@ember/object';
import {htmlSafe} from '@ember/string';
import {isBlank} from '@embe... | JavaScript | app/components/gh-file-uploader.js | kevinansfield/Ghost-Admin | mit | 7,225 | 266 | codeparrot/github-code |
f58d000a1bab7030a111a8eded3740b7369d206b348221bd7bb87137f7032ca8 | function Remove-DbaAgentSchedule {
<#
.SYNOPSIS
Remove-DbaAgentJobSchedule removes a job schedule.
.DESCRIPTION
Remove-DbaAgentJobSchedule removes a job in the SQL Server Agent.
.PARAMETER SqlInstance
The target SQL Server instance or instances. You must have sysadmin access an... | PowerShell | functions/Remove-DbaAgentSchedule.ps1 | Splaxi/dbatools | mit | 8,144 | 192 | codeparrot/github-code |
4e8ac6b953a5965e225f284d4bb626c489004963bd6e29d6a14a2d280cb5f453 | import copy
import operator
import sys
import warnings
from functools import wraps
from django.utils import six
from django.utils.deprecation import RemovedInDjango19Warning
from django.utils.six.moves import copyreg
# You can't trivially replace this with `functools.partial` because this binds
# to clas... | Python | env/lib/python2.7/site-packages/django/utils/functional.py | diego-d5000/MisValesMd | mit | 16,501 | 446 | codeparrot/github-code |
eeba95529df2a27535482e17523c36573f1b82c214279dadcc9dd0b3a55deb1e | <!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>FindSettings | HAIVE SearchClient</title>
<meta name="description" content="Documentation for HAIVE SearchClient">
<meta name="viewport" content="width=device-width, initial-scale... | HTML | docs/classes/find_findsettings.findsettings.html | IntelliSearch/search-client | mit | 38,387 | 675 | codeparrot/github-code |
a53fa572b49c411b92b17b50a0fa59a3c252378b7b76aa0847ba6d4961294d85 | 'use strict'
/**
* adonis-commands
*
* (c) Harminder Virk <virk@adonisjs.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
const BaseGenerator = require('./Base')
const path = require('path')
class KeyGenerator extends BaseGen... | JavaScript | src/Generators/Key.js | adonisjs/adonis-commands | mit | 1,539 | 57 | codeparrot/github-code |
1eca747499f7fe4ba172b20a2feae287ffb1437764c7c3edfed50141f728fab4 | /*******************************************************************
*
* PARAMETER.C
*
* Methods for parameters
*
*
* VERSION: 17.04.2015
*
* by Hendrik Hangmann
* University of Paderborn
*
********************************************************************/
#include <stdlib.h>
#include <assert.h>
#include "parameter... | C | TMS_Host/TemperatureModel/parameter.c | hangmann/Temperature-Management-and-Prediction | mit | 7,364 | 218 | codeparrot/github-code |
34a1f043a7be966346b220b278688cefb829cd5d15339a62e3fa02f37e420053 | <?php
namespace Dialekt\Evaluator;
use Dialekt\AST\EmptyExpression;
use Dialekt\AST\ExpressionInterface;
use Dialekt\AST\LogicalAnd;
use Dialekt\AST\LogicalNot;
use Dialekt\AST\LogicalOr;
use Dialekt\AST\Pattern;
use Dialekt\AST\PatternLiteral;
use Dialekt\AST\PatternWildcard;
use Dialekt\AST\Tag;
use Dialekt\AST\Visi... | PHP | src/Evaluator/Evaluator.php | IcecaveStudios/dialekt | mit | 6,610 | 275 | codeparrot/github-code |
0f11c0cb3856a4055c951a66296ef6cf8d68181435a2e141d37cd2d7a7c81580 | # TODO: return a valuable error message when user registration fails
# TODO: extract user presenter
module Web::Controllers::Users
class Registration
include Web::Action
include Web::Controllers::Authentication::Skip
params do
required(:user).schema do
required(:email).filled(:str?, format... | Ruby | apps/web/controllers/users/registration.rb | nickgnd/hanami-jwt-example | mit | 928 | 41 | codeparrot/github-code |
f6d1c120ded1bc98c200ff0c3f7520571b74d8565ecd5cfed972153923f08dd1 | #include "profileLayout.h"
#include "game.h"
#include "utilities.h"
#include "globals.h"
struct ProfileEntryButtonData
{
bool *m_isTextInputActive;
char *m_input;
UIButton *m_this;
};
static UILayout* ProfileBackButtonEventHandler(SDL_Event *event, GameScreen **newScreen, void *userData)
{
UILayout *newLayout = n... | C++ | src/profileLayout.cpp | HenadziMatuts/snake1 | mit | 7,038 | 291 | codeparrot/github-code |
e73947e8bbf1e30be47ac3d064c8faf18d2d4ed2e1e586a71c3a7f431ec2c548 | package xyz.brassgoggledcoders.moarcarts.api;
import net.minecraftforge.fml.common.eventhandler.Cancelable;
import net.minecraftforge.fml.common.eventhandler.Event.HasResult;
import net.minecraft.entity.item.EntityMinecart;
import net.minecraftforge.event.entity.minecart.MinecartEvent;
/**
* @author SkySom
*/
@HasR... | Java | src/main/java/xyz/brassgoggledcoders/moarcarts/api/ComparatorTrackEvent.java | BrassGoggledCoders/MoarCarts | mit | 629 | 32 | codeparrot/github-code |
048c6fa6488629cd401d9979d056a2230affe36d46ac2f47de40a350cdb05d26 | function injectGitFileStatus()
{
const timeout = 5000;
const addedColor = "#32CD32";
const modifiedColor = "#FF8C00";
const ignoredOpacity = "0.4";
const explorer = document.getElementById("workbench.view.explorer");
if (explorer)
{
const foldersView = explorer.getElementsByClassNam... | JavaScript | dev.js | karabaja4/vscode-explorer-git-status | mit | 8,350 | 177 | codeparrot/github-code |
9a029b88bed851623bbe1119bd9215a0badf77ea3ca069bf490aeb8a006b34c6 | namespace ErlSharp.Language
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public class Atom
{
private static int hashcode = typeof(Atom).GetHashCode();
private string name;
public Atom(string name)
{
... | C# | Src/ErlSharp/Language/Atom.cs | ajlopez/ErlSharp | mit | 1,058 | 49 | codeparrot/github-code |
d9fa7ee0d4d823f02f2bc5fe65ae0bf7d45d7ef4d31579307445ba3bbdf7116b | #pragma once
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <string>
class Window {
public:
~Window();
bool isClosing() const;
void setIsShouldClose(bool isShouldClose);
void makeContextCurrent();
void swapBuffers();
// getters
int width() const { return width_; }
int height() ... | C | src/Window.h | wiranoid/breakout | mit | 655 | 33 | codeparrot/github-code |
41e95ff26e3e4d90cdbf91ec86c6d4fe7c0c6ea4c2849e8628ac2bddb0be48fe | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
from utils.init_weights import init_weights, normalized_columns_initializer
from core.mo... | Python | core/models/a3c_mlp_con.py | lukashermann/pytorch-rl | mit | 4,501 | 108 | codeparrot/github-code |
eb76150b85d56ecbe672563bcd53333670640b45e697dc16acfff24f85f70f83 | #__author__ = 'FuWei'
from __future__ import print_function, division
import sys
import pdb
from os import listdir
from os.path import isfile, join
# from table import *
class o(object):
def __init__(i, **filed):
i.__dict__.update(filed)
return i
class Row(object):
def __init__(i,data):
i.x = data[:-1]
... | Python | wei/data.py | ST-Data-Mining/crater | mit | 2,913 | 134 | codeparrot/github-code |
6d3710505ec80d4464aac8fe94d246e7b6f3c34313939f49f32c818bee627a34 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" con... | HTML | docs/html/df/d98/property_8hpp.html | RoseLeBlood/aSTL | mit | 44,180 | 946 | codeparrot/github-code |
162a5009ce30e25285b20acf34b28f8418df8fbe379f34aa525c8bbe0f35e1bd | <?php
namespace AppBundle\Service;
use AppBundle\Entity\Brewery;
use AppBundle\Entity\Language;
use AppBundle\Form\BreweryType;
use AppBundle\Util\DatatableUtil;
use Doctrine\ORM\EntityManager;
use Symfony\Component\Form\FormFactoryInterface;
use Symfony\Component\Translation\Translator;
class BreweryService extends... | PHP | src/AppBundle/Service/BreweryService.php | julienthomas/synek | mit | 3,996 | 141 | codeparrot/github-code |
e5c65e7629781625e0dcd009ee098809f84684dcff874da48f8cc5417d87e38a | package jp.co.ixui.controller.book;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import org.hibernate.validator.constraints.NotEmpty;
import jp.co.ixui.controller.book.validator.annotation.BookExists;
import lombok.Getter;
import lombok.Setter;
/**
* <p>書籍登録用フォーム</p>
*... | Java | src/main/java/jp/co/ixui/controller/book/BookAdminForm.java | ixui/lend-book | mit | 1,823 | 91 | codeparrot/github-code |
fbfccfc2c64926d962e4060255241e21fa3952c72b8e858abf3d6e3601720500 | <?php
/*
Safe sample
input : get the field userData from the variable $_GET via an object
sanitize : check if there is only numbers
construction : interpretation with simple quote
*/
/*Copyright 2015 Bertrand STIVALET
Permission is hereby granted, without written agreement or royalty fee, to
use, copy, modify, a... | PHP | Injection/CWE_95/safe/CWE_95__object-classicGet__func_preg_match-only_numbers__variable-interpretation_simple_quote.php | stivalet/PHP-Vulnerability-test-suite | mit | 1,484 | 71 | codeparrot/github-code |
1c7cc5b780247d495b90edfd7d81d54bc3b0ad6c29bd6acdeec6b0119db4fd84 | // ==========================================================================
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex UG (haftungsbeschraenkt)
// All rights reserved. Licensed under the MIT license.
// ===========================... | C# | extensions/Squidex.Extensions/Actions/ElasticSearch/ElasticSearchActionHandler.cs | pushrbx/squidex | mit | 4,459 | 126 | codeparrot/github-code |
ca1f949848da2ebe7f91b16c173c60c5f72faa15174a6cadf3a95adb7de44b81 | <?php
namespace Ds\Component\Acl\Voter;
use Ds\Component\Acl\Collection\PermissionCollection;
use Ds\Component\Acl\Model\Permission;
use Ds\Component\Acl\Service\AccessService;
use Ds\Component\Security\Model\User;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Component\Security... | PHP | src/Acl/Voter/GenericVoter.php | DigitalState/Core | mit | 2,909 | 105 | codeparrot/github-code |
2f0b8f1da465dafdf20d773b804554c4b6914f95b7a0f0592eed827b1c36e297 | #include "ChanceState.h"
#include "HeroStrategy.h"
#include "Node.h"
#include "PlayerState.h"
#include "StateFactory.h"
#include "BalancedStrategy.h"
Node::Node(Node* prev, std::shared_ptr<State> state) :
prevPtr(prev),
statePtr(state)
{
}
bool Node::IsLeaf() const
{
return children.size() == 0;
}
... | C++ | BNQCPP/BNQ/BNQ.Brain/Node.cpp | YouJinTou/BNQ | mit | 2,983 | 172 | codeparrot/github-code |
242b1989c57ebcd27101f59bffa1fe9c1693b0f5096a55a47bbf0e7a2b854120 | 'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'
module.exports = function (grunt) {
// Load grunt tasks automatically.
require('load-grunt-tasks')(grunt);
... | JavaScript | Gruntfile.js | edull24/edull24.github.io | mit | 16,010 | 491 | codeparrot/github-code |
389aaf70cc11873c4289e0bc24a78f1fc935a6daa93da3ad90586d5b945104a4 | require 'logger'
module Conjur
module Ldap
# Encapsulate logging. We always log to the stderr, and
# if a CONJUR_LDAP_SYNC_LOG_FILE env var is present, we log
# to the given file.
#
# Default log level is Logger::INFO, which can be changed using
# the CONJUR_LDAP_SYNC_LOG_LEVEL env var.
... | Ruby | lib/conjur/ldap/logging.rb | cransom/ldap-sync | mit | 1,506 | 63 | codeparrot/github-code |
af3a6828bb136246f5e5c2de0177c7e1e204cddaceabfa9d8177e3e41325965e | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="HandheldFriendly" content="True"/>
<meta name="MobileOptimized" content="320" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="description" ... | HTML | _layouts/post.html | dtmtec/dtmtec.github.io | mit | 3,210 | 86 | codeparrot/github-code |
e0c8abbeb14aab81086257c76d157219b56419fe4cf948f342ec3c442df71292 | #!/bin/bash
############################################################
# Configures the development server settings for this site #
############################################################
# Set a URL for the local dev environment for this site. This will have ".app" appended, so don't add a TLD.
SITE_URL="mysi... | Shell | setup-mac.sh | causelabs/laravel52-boilerplate | mit | 3,995 | 134 | codeparrot/github-code |
814f78892c95843977fb12543d4ea76c72ab435abcabee2fa067b1586689c655 | 'use strict';
require('mocha');
const assert = require('assert');
const colors = require('ansi-colors');
const Prompt = require('../lib/prompts/input');
const { kepresses } = require('./support')(assert);
let prompt;
describe('Input Prompt', function() {
describe('options.initial', () => {
it('should use value ... | JavaScript | test/prompt.input.js | enquirer/enquirer | mit | 18,775 | 695 | codeparrot/github-code |
bfa8570b6c63a6423524f95ece78e81e2330c3bddde68555e8ebbd1b5de96370 | <?php
namespace CK\BasicCmsBundle\Admin;
use Knp\Menu\ItemInterface as MenuItemInterface;
use Sonata\AdminBundle\Admin\AdminInterface;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Form\FormMapper;
use Sonata\DoctrinePHPCRAdminBundle\Admin\Admin;
c... | PHP | src/CK/BasicCmsBundle/Admin/PageAdmin.php | slde-rorschach/cmf-tutorial | mit | 2,044 | 87 | codeparrot/github-code |
3ce4fde41bcace3248830c45fc733bac87a13780af34e5596f87090108269e46 | package sde.android.yatv;
import java.util.HashMap;
import java.util.Map;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.util.TypedValue;
import android.view.Gravity;
import android.view.MotionEvent;
import android.view.View... | Java | YetAnotherTouchVisualizer/src/main/java/sde/android/yatv/TouchVisualizerMultiTouchGraphicView.java | sergedesmedt/YetAnotherAndroidDemo | mit | 6,114 | 226 | codeparrot/github-code |
b57d2bcedb559a604f46e4155e260f83c152964e4932cf128a9c7de3d4f2571d | /**
* Function that returns default values.
* Used because Object.assign does a shallow instead of a deep copy.
* Using [].push will add to the base array, so a require will alter
* the base array output.
*/
'use strict';
const path = require('path');
const srcPath = path.join(__dirname, '/../src');
const dfltPor... | JavaScript | cfg/defaults.js | ao-si-luo-ma-li/gallery-by-react | mit | 1,385 | 51 | codeparrot/github-code |
a30bcfb50941fd0adff5d62a0d8b7afe793ca1a678751dcc0d4d6450a6874795 | # This file is part of curious.
#
# curious is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# curious is distributed in the ho... | Python | curious/exc.py | SunDwarf/curious | mit | 4,130 | 158 | codeparrot/github-code |
7b4d26cbcbb9a7d913ea4ffb6d9216f061bc0f58ceccc8a174d5053a9588faf4 | <?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateAcademiesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('academies', f... | PHP | src/database/migrations.1/2017_06_11_021524_create_academies_table.php | dreamcodexyz/lar-goe | mit | 1,049 | 40 | codeparrot/github-code |
4563b65e1d9012920d9b0ba2a8f133798fc43fcaa0d45163173ba34d6d2b6147 |
'use strict';
function ExFormat (type,data) {
var self = this;
self.init(type,data);
}
var functionExFormat = {
cathaybk:cathayFormat,
fubonbk:fubonFormat,
megabk:normalFormat,
twbk:normalFormat,
chbbk:chbFormat,
esunbk:normalFormat,
hncbbk:hncbFormat,
feibbk:normalFormat,
... | JavaScript | lib/ExFormat.js | FelixLinBH/twExchange | mit | 7,976 | 308 | codeparrot/github-code |
0adaa22488d0051eb5d4ed9b14437f7b4b36f118872745eece766d718b5d0b18 | /*!
* inwx 1.0.0
* https://github.com/mattes/inwx-nodejs
*
* Copyright 2012 Matthias Kadenbach
* Released under the MIT license
*
*
* INWX XML-RPC API DOC:
* https://www.inwx.de/de/help#key=20
* https://www.inwx.de/de/download/file/api-current.zip (logged in inwx customers only)
*/
var xmlrpc = require('xml... | JavaScript | lib/inwx.js | mattes/inwx-nodejs | mit | 7,909 | 213 | codeparrot/github-code |
3e509b1e7d863f4d5b931ca59672f25eb6bfeee26e42bee40cde82638deea98c | // Copyright 2012-2015 Oliver Eilhard. All rights reserved.
// Use of this source code is governed by a MIT-license.
// See http://olivere.mit-license.org/license.txt for details.
package elastic
import (
"encoding/json"
"fmt"
"net/url"
"strings"
"gopkg.in/olivere/elastic.v2/uritemplates"
)
// U... | GO | Godeps/_workspace/src/github.com/google/cadvisor/Godeps/_workspace/src/gopkg.in/olivere/elastic.v2/update.go | spacexnice/ctlplane | mit | 9,513 | 343 | codeparrot/github-code |
1a25f83f2e4d8dd5135ca24ca6f1cfa83adfd79fecf3ed5ce88371b4e39b32d3 | #include <iostream>
#include <iterator>
#include <fstream>
#include <vector>
#include <list>
#include <cassert>
#include <memory>
#include <string>
#include "syntax.hpp"
#include "semantic_ir.hpp"
#include "debug.hpp"
#include "stack_vm.hpp"
#include "repl.hpp"
auto run_vm(std::string ir_code) -> void
{
std::cou... | C++ | src/main.cpp | masaponto/popo | mit | 1,499 | 72 | codeparrot/github-code |
b1f5f30b6d9f6ae51a403ecc81bb86f24f53826051fad7a02327b0090928e03f | package org.vitrivr.cineast.core.evaluation;
import java.io.BufferedWriter;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.StandardOpenOption;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Optional;
import java.util... | Java | src/org/vitrivr/cineast/core/evaluation/EvaluationRuntime.java | silvanheller/cineast | mit | 10,719 | 242 | codeparrot/github-code |
984313eb7acf6c0660aa4954463f9b003674c79d6ddc5c83793df1a79d44e0ba | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>06 变形</title>
</head>
<body>
<canvas id="canvasId"></canvas>
</body>
<style>
#canvasId {
padding: 15px;
box-sizing: border-box;
background: #999;
}
</style>
<script type="text/javascript">
const canvasDom = document.getEl... | HTML | web/articles/canvas/canvas 学习笔记/06-变形/demo/5.html | longze/my-cellar | mit | 835 | 38 | codeparrot/github-code |
1b66b9bd94bab45ca0f14d2172afa058c20fc9387ea2313d5c8b99efdabf2782 | <!DOCTYPE html>
<meta charset="utf-8">
<style>
body{
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 12px;
}
.svg-container{
width: 256px;
display: inline-block;
margin-right: 5px;
text-align: center;
}
svg{
margin-top: 5px;
border: 1px solid #ccc;
}
.background {
fill: #ee... | HTML | examples/index.html | micahstubbs/gridmap-layout-vietnam | mit | 4,391 | 201 | codeparrot/github-code |
5ee59c0e2156fe93ca61825412a7996d9710263d31fc4f512accfd61e4be911b | //========= Copyright © 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $Workfile: $
// $Date: $
//
//-----------------------------------------------------------------------------
// $Log: $
//
// $NoKeywords: $
//======================================================... | C | public/overlaytext.h | sswires/ham-and-jam | mit | 1,198 | 58 | codeparrot/github-code |
5ad66b0af06eaa3601fa2d2e8794bec977f21385329be820035c785ecd1df9cb | package com.github.projectscion.common.features.tools;
import com.github.projectscion.common.features.Feature;
import net.minecraft.enchantment.Enchantment;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fml.common.registry.GameRegistry;
public class FeatureTool extend... | Java | src/main/java/com/github/projectscion/common/features/tools/FeatureTool.java | bluemonster122/ProjectScion | mit | 1,359 | 34 | codeparrot/github-code |
83e0312e2e7a49db6444ecacc2e8d45631af88d9e17ed6e7a3cb33e2625af42e | import { NavigationExperimental, StatusBar } from 'react-native'
const { StateUtils } = NavigationExperimental
const Dimensions = require('Dimensions')
const windowSize = Dimensions.get('window')
const INITIAL_NAVIGATION_STATE = {
key: 'Root',
index: 0,
children: [{key: 'Login'}]
}
const RESTRICTED_NAVIGA... | TypeScript | src/native/reducer.tsx | rodrigopivi/PlayApp | mit | 4,467 | 112 | codeparrot/github-code |
5e1617564217e28924d0f3364b771775e3cf21cbd725f45b3da452ee95728396 | using System;
using System.ComponentModel;
using System.Net.Http;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
using System.Windows.Threading;
using CloudsdaleWin7.lib.CloudsdaleLib;
using CloudsdaleWin7.lib.Helpers;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
n... | C# | lib/Models/CloudsdaleResource.cs | cloudsdaleapp/cloudsdale-win7 | mit | 8,070 | 232 | codeparrot/github-code |
878cb94e8b8e990399ec12cebb2d880d6fdb05ca582e979f1bfe1ae29c286fae | #region Using Directives
using System.IO;
using System.Text;
using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
#endregion
namespace Pharmatechnik.Nav.Language.BuildTasks {
public class Nav: ToolTask {
public bool Force { get; set; }
public bool GenerateToClasses { get; set; }
... | C# | Nav.Language.BuildTasks/Generator/Nav.cs | IInspectable/Nav.Language.Extensions | mit | 2,287 | 67 | codeparrot/github-code |
befbbf8e1d442aa2dc6b5b79c70563bc31e97757076a66c519e289ca7c767cf3 | <?php
class Search extends Module
{
public function Setup()
{
echo "Setup in development.";
}
public function Configure()
{
echo "Module in development.";
}
}
$this->AddModule(new Search(), "search");
if($q = $this->Request['q'])
{
$q = preg_replace("/\s+/", " ", trim($q));
//s... | PHP | src/modules/Search/Search.php | ericmuyser/web2f | mit | 3,791 | 132 | codeparrot/github-code |
9bb11a4f33eca0f4947a76210f4f559f4a3226dbc85d9891efc2cef13e4eb4f5 | /*
* The MIT License (MIT)
*
* Copyright (c) 2018 rumatoest at github
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
*... | Java | src/main/java/com/github/jneat/mybatis/JsonElementTypeHandler.java | javaplugs/mybatis-gson | mit | 3,601 | 96 | codeparrot/github-code |
66d61ab23b21cbd6b757f85d34f1e42c2dcf78351b2d5efb700bb65340e8e921 | <!doctype html>
<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if (IE 7)&!(IEMobile)]><html class="no-js lt-ie9 lt-ie8" lang="en"><![endif]-->
<!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"><!--<!... | HTML | _site/sample-post/index.html | perinmclaughlin/perinmclaughlin.github.com | mit | 13,645 | 393 | codeparrot/github-code |
9a4f2d40ab81435e2ec2f519c47fdcfb0f9c22fadacaa673e6de8ec55e6fd95b | package jacobi.core.graph;
import java.util.stream.IntStream;
import java.util.stream.Stream;
import jacobi.api.graph.AdjList;
import jacobi.api.graph.Edge;
public class Grid2D implements AdjList {
public Grid2D(int width, int height) {
this.width = width;
this.height = height;
}
@Override
... | Java | src/test/java/jacobi/core/graph/Grid2D.java | ykechan/jacobi | mit | 822 | 39 | codeparrot/github-code |
5e256fcabafc24d93801d6b99fec36d6abd1e790f8a22aea21e9018d9f939119 | abstract class Component {
public abstract void operation();
public void add(Component c) {
throw new UnsupportedOperationException();
}
public void remove(Component c) {
throw new UnsupportedOperationException();
}
public Component getChild(int index) {
throw new UnsupportedOperationException();
}
}
cla... | Java | StructuredPattern/Composite/example/Component.java | happylindz/design-pattern-toturial | mit | 811 | 36 | codeparrot/github-code |
a0448465d0704174d79a9fd0a803a515537636717933ba98b9fc853b1e295485 | /*
* Copyright (c) 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
package com.sun.jchowto.helloworld;
import javacard.framework.APDU;
import javacard.framework.Applet;
import javacard.framework.ISO7816;
/**
* Simple HelloWorldApplet extended applet
*/
public c... | Java | src/Acme/HelloBundle/Resources/public/images/NetBeans 7.3/javacard/JCDK3.0.2_ConnectedEdition/samples/extended_applets/HelloWorld/src/com/sun/jchowto/helloworld/HelloWorldApplet.java | evolution411/symfonyfos | mit | 1,935 | 72 | codeparrot/github-code |
b74bfa58b03692d9671bd3e519a50e6d3bc35450104b345fe30eee1dea919e36 |
/*
* Signal2
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, subl... | TypeScript | src/core/event/Signal2.ts | mientjan/node-flump | mit | 1,766 | 71 | codeparrot/github-code |
f29d4f9c0fc305c657fd805561015b99bce60ea43550e149206a7b899a4819f7 | <?php
/* TwigBundle:Exception:logs.html.twig */
class __TwigTemplate_599012c579b47beb52f81019ef86304b29e41bdc29d650074a91b78f38894eb5 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
... | PHP | app/cache/dev/twig/59/90/12c579b47beb52f81019ef86304b29e41bdc29d650074a91b78f38894eb5.php | bruntha1991/PP | mit | 2,784 | 65 | codeparrot/github-code |
d6409803925b55a9785f6adbb5e300f3651fa77762350f71669caec73ecb86f5 | import fi.helsinki.cs.tmc.edutestutils.MockStdio;
import fi.helsinki.cs.tmc.edutestutils.Points;
import fi.helsinki.cs.tmc.edutestutils.ReflectionUtils;
import java.util.NoSuchElementException;
import org.junit.*;
import static org.junit.Assert.*;
public class PasswordTest {
@Rule
public MockStdio io = new Mo... | Java | NetBeansProjects/2013-OOProgrammingWithJava-PART1/week1-022.Password/test/PasswordTest.java | MisterJoz/Java-OOP-with-MOOC-Part-1 | mit | 6,244 | 162 | codeparrot/github-code |
7272b92e1b4164e69fdd39d4370b0279b334e5b578b3aeb599b468bb806ebdc0 | {-# LANGUAGE FlexibleContexts, FlexibleInstances, GADTs #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings, PatternSynonyms #-}
{-# LANGUAGE RankNTypes, ScopedTypeVariables, StandaloneDeriving #-}
{-# LANGUAGE TemplateHaskell, TypeFamilies, ConstraintKinds #-}
{-# OPTIONS_GHC... | Haskell | commands-core/sources/Commands/RHS/Types.hs | sboosali/commands | mit | 7,485 | 176 | codeparrot/github-code |
2dfc2727b2fa0bc9351a131033d8c7d458be3f38401deb2fcc4ae6e597edbadf | <?php
namespace Workflow\Event;
use Symfony\Component\EventDispatcher\Event;
use Workflow\Entity\ModelState;
use Workflow\Model\ModelInterface;
use Workflow\Flow\Step;
/**
* Step event.
*
* @author Cédric Girard <c.girard@lexik.fr>
*/
class StepEvent extends Event
{
/**
* @var Step
*/
private ... | PHP | src/Workflow/Event/StepEvent.php | netzmacht-archive/contao-workflow-engine | mit | 1,290 | 84 | codeparrot/github-code |
fcab38cd8844ed951ed03d66f3d86d3d280db2dda0e6c001b0d92b4ccd1e0172 | using System;
using uWebshop.Domain.ContentTypes;
using umbraco.cms.businesslogic.datatype;
using umbraco.interfaces;
using uWebshop.Umbraco.DataTypes.CountySelector;
namespace uWebshop.Umbraco.DataTypes.CouponCodeEditor
{
public class CouponCodeDataType : BaseDataType, IDataType
{
public static readonly Guid Def... | C# | Umbraco/uWebshop.Umbraco/DataTypes/CouponCodeEditor/CouponCodeDataType.cs | uWebshop/uWebshop-Releases | mit | 1,204 | 46 | codeparrot/github-code |
1181b0b5e2779f71254ec9ca346c43af6bead246a4a79bd4145dbeca193e6676 | """
@author Stephen Jackson <scj7t4@mst.edu>
Removes recordings from a too early period.
"""
import subprocess
import sys
import os
from datetime import datetime, timedelta
from settings import Settings
settings = Settings()
def do_directory(p):
"""
Recurses into directories looking for files.
p i... | Python | webstreamd/webstreamd/clean.py | KMNR/Webstream | mit | 1,688 | 66 | codeparrot/github-code |
50ff043210f569fb43f30877eed16c26cfd1214c2e227241ab7d9186c7574da2 | <?php
namespace Mkroese\RecipeBook;
class Application {
protected $name, $baseHref;
/**
* Application constructor.
* @param string $name
* @param null|string $version
* @param null|string $baseHref
*/
public function __construct($name = "Meindert-Jan's Recipe Book", $version = null, $baseHref =... | PHP | src/Application.php | webmaster777/recipe-book | mit | 1,879 | 81 | codeparrot/github-code |
735f6faa29150213790a66c0977ac16696a1c2e0f6c4bb26f545b6bf5cd12755 | package org.cr.crawler.node.executor;
import org.cr.crawler.common.model.Task;
import org.cr.crawler.common.utils.BlockingThreadPoolExecutor;
import org.cr.crawler.node.handle.CallbackHandler;
import org.cr.crawler.node.operation.Operation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.con... | Java | crawler-node/src/main/java/org/cr/crawler/node/executor/SimpleTaskExecutor.java | caorong/MediaCrawler | mit | 2,527 | 93 | codeparrot/github-code |
3d2888940fd94f9abfda0ccbbc74234e223354d4b192a12420ac6ff54e614d96 | /*_##########################################################################
_##
_## Copyright (C) 2012 Kaito Yamada
_##
_##########################################################################
*/
package com.github.kaitoy.sneo.giane.action;
import java.util.ArrayList;
import java.util.Collections;
impor... | Java | giane/src/main/java/com/github/kaitoy/sneo/giane/action/VlanAssociatedVlanMemberGridAction.java | kaitoy/sneo | mit | 6,465 | 237 | codeparrot/github-code |
a5ee74352b48facdd0ab2ccc9c1fd104e3b0fe09598d314307a5374b6e15c276 | const extra = req => (
{ params: { ...req.query, ...req.params } }
);
export function sendNotFound(req, res) {
sendFail(req, res, 404, 'Not Found');
}
export function sendFail(req, res, status, error) {
res.status(status).send({
...extra(req),
success: false,
error: error.message ? error.message : e... | JavaScript | backend/utils/sender.js | Ohems/watodo | mit | 649 | 36 | codeparrot/github-code |
6f644f2d645c9025d622c0832f9aecc0b5e723758ea11433fca8a2a46eb2d101 | /*
Node.js
- Allows you to build scalable network applications using JavaScript on the server-side.
- Runs on top of the V8 JavaScript Runtime (same that is running on the Chrome browser)
What can you build?
- Web socket Server
- File Upload client
- Ad Server
- Real-time data apps
Misconceptions
- Node.... | JavaScript | 01 - Introduction.js | MartinChavez/Node.js-Tutorial | mit | 1,646 | 55 | codeparrot/github-code |
9f46cc9d2da4d8bc9d15fda558a8e57eacb04871ebed0946e81d14534c24388c | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>lambek: Not compatible 👼</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.1/released/8.10.2/lambek/8.7.0.html | coq-bench/coq-bench.github.io | mit | 7,316 | 170 | codeparrot/github-code |
8a4b05534bb73d80764f74d4bf276fd75e2d124403fc37707a9660633f058ecf | <?php
namespace Acme\PermissionBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
class CongdanType extends AbstractType {
public function buildForm(FormBuilderInterface $builder, array $options) ... | PHP | src/Acme/PermissionBundle/Form/CongdanType.php | ketnh55/Permission | mit | 1,535 | 51 | codeparrot/github-code |
885e365a121266199be79cec654f3dfbdc02108d637f735a811e7fb7b38cec8b | <TS language="ka" version="2.1">
<context>
<name>AddressBookPage</name>
<message>
<source>Create a new address</source>
<translation>ახალი მისამართის შექმნა</translation>
</message>
<message>
<source>&New</source>
<translation>შექმ&ნა</translation>
</message>
... | TypeScript | src/qt/locale/bitcoin_ka.ts | ahmedbodi/temp_vert | mit | 50,147 | 1,364 | codeparrot/github-code |
62e135e0ac40475f8b99f207debea2160fcd6838141821073e81a27980dba2f3 | using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
usi... | C# | WebLab/Informes/HistoriaClinicaFiltro2.aspx.cs | saludnqn/laboratorio | mit | 23,253 | 485 | codeparrot/github-code |
a40a4d91d69b7f1d262cfecd7a018afa41a0c77321f3d97d7a2309ea98a20f7a | <?php
namespace MainBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use MainBundle\Entity\ProductRepository;
use MainBundle\Entity\Tank;
class InventoryType extends AbstractType {
protected $ta... | PHP | src/MainBundle/Form/InventoryType.php | dtrampus/Verasur | mit | 2,599 | 74 | codeparrot/github-code |
8b10441929312d06e960f56352cc2f843a93c9f5423dd5a4e076e7199147194d | //---------------------------------------------------------------------
// Authors: Oisin Grehan
//
// Description: Class for writing GZip files.
//
// Creation Date: Jan 4, 2007
//---------------------------------------------------------------------
using System.IO;
using ICSharpCode.SharpZipLib.BZip2;
namespace P... | C# | Src/Pscx/Commands/IO/Compression/ArchiveWriter/BZip2/BZip2Writer.cs | Pscx/Pscx | mit | 1,481 | 51 | codeparrot/github-code |
68f00cdd2d5e635731deff0c8cbb8e3c11a0f076941fc0a45c90406a18da724e | package testing;
import api.IEntity;
import api.ILevel;
import javafx.application.Application;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.scene.Scene;
import javafx.stage.Stage;
import model.entity.Level;
import view.editor.Editor;
import view.editor.EditorFactory;... | Java | src/testing/EditorTesting.java | roxanne-baker/game-authoring-environment | mit | 1,737 | 57 | codeparrot/github-code |
1d0c3a67715923f95157859cdf309f01ad306148b7c2ccdef7e9bb6877741a04 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="de">
<head>
<title>CDORevisionManager (CDO Model Repository Documentation)</title>
<meta name="date" content="">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.... | HTML | WASP-turtlebot-DSL/.metadata/.plugins/org.eclipse.pde.core/Eclipse Application/org.eclipse.osgi/142/0/.cp/javadoc/org/eclipse/emf/cdo/common/revision/CDORevisionManager.html | kribe48/wasp-mbse | mit | 44,214 | 532 | codeparrot/github-code |
f3968e644a9ced012673a7fe312a71fb113ad64ff655127038c069fb13bd5063 | /*
=======
Lex.cpp
=======
Smalltalk lexical analyser
*/
///////////////////////
#include "stdafx.h"
#include "Lexer.h"
#include "Str.h"
#include <icu.h>
#ifdef DOWNLOADABLE
#include "downloadableresource.h"
#else
#include "..\compiler_i.h"
#endif
static const char8_t COMMENTDELIM = '"';
static const char8_t STRIN... | C++ | Core/DolphinVM/Compiler/lexer.cpp | jgfoster/Dolphin | mit | 21,467 | 1,044 | codeparrot/github-code |
26ce7df72eb40683df642121ae287093d93cdc63c28bb39c3447e7e2a7dfb1b6 | package mutationoperators.methodlevel.lor;
import org.eclipse.jdt.core.dom.InfixExpression;
import mutationoperators.MutationOperator;
import mutationoperators.TwoASTMatcher;
public class LOR_Matcher extends TwoASTMatcher {
public LOR_Matcher(MutationOperator mutop) {
super(mutop);
}
@Override
... | Java | src/mutationoperators/methodlevel/lor/LOR_Matcher.java | lsubel/jmutops | mit | 1,225 | 38 | codeparrot/github-code |
4f80779952dadb732ec856e13f95484ea633c4975cea31b877ebe838a13bd498 | const axios = require(`axios`)
const _ = require(`lodash`)
const { createRemoteFileNode } = require(`gatsby-source-filesystem`)
const { URL } = require(`url`)
const { nodeFromData } = require(`./normalize`)
const asyncPool = require(`tiny-async-pool`)
exports.sourceNodes = async (
{ actions, store, cache, createNode... | JavaScript | packages/gatsby-source-drupal/src/gatsby-node.js | ChristopherBiscardi/gatsby | mit | 8,110 | 284 | codeparrot/github-code |
d2857ad2e37d75c4ac69b1e488c58d96267a41c3650edb0749fcb03e35a88d25 | /**
* @file 初始化Editor设置
* @author mengke01(kekee000@gmail.com)
*/
import setSelectedCommand from '../command/setSelectedCommand';
import commandList from '../menu/commandList';
import lang from 'common/lang';
function initSetting(options) {
// 设置菜单选中状态
setSelectedCommand(
commandList.editor, 'set... | JavaScript | src/editor/controller/initSetting.js | ecomfe/fonteditor | mit | 1,667 | 62 | codeparrot/github-code |
0de003bfbbd4ac76b403b680e08421c6ecd8a3c7ab013ab4488ae2cb0ee74150 | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICUL... | C++ | Samples/Desktop/D3D1211On12/src/D3D1211On12.cpp | pengliu916/DirectX-Graphics-Samples | mit | 18,615 | 516 | codeparrot/github-code |
8fc22bc69baae05cb702fc2b8b37b4bd80306f24500c64d0a83155ea1f3e66bf | namespace CommandLineRunner.Arguments
{
using System;
using System.Collections.Generic;
using System.Linq;
public class NamedArgument : IArgument
{
private readonly IReadFromConsole _consoleReader;
public NamedArgument(IReadFromConsole consoleReader)
{
_consoleReader = consol... | C# | src/CommandLineRunner/Arguments/NamedArgument.cs | acraven/command-line-runner | mit | 2,213 | 85 | codeparrot/github-code |
2d4e34f72b4d7b8f385c33a27c57e6d2851700bc8a882f39b1337e610a6fc21b | package z.cube.param.test;
import org.springframework.stereotype.Service;
import z.cube.param.config.Config;
import z.cube.param.config.SourceType;
@Service
public class ConfigService {
public String getBackgroundColor(
@Config(key = "colors.background", source = SourceType.PROPERTIES) String out) {
... | Java | src/test/java/z/cube/param/test/ConfigService.java | boqodo/ParamInterpolator | mit | 1,399 | 51 | codeparrot/github-code |
c444c089c1d43b2d59db40c9d2c5b34ebbcee2371e2d873f6ebeb746867bcbc4 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>沟通系列--知人知心的客户沟通艺术</title>
<meta name="author" content="mks">
<me... | HTML | project/demo/jiangshi/wangweiling/navhtml/ziliao5.html | PhotoArtLife/Personal-Blog | mit | 40,831 | 765 | codeparrot/github-code |
459ba4fc26842c8060742ae39612f9881b9caa208ac208b4700a05b87e58c61d | import * as React from "react";
declare module "react-css-themr" {
type TReactCSSThemrTheme = {
[key: string]: string | TReactCSSThemrTheme
}
type TMapThemrProps<P> = (ownProps: P, theme: TReactCSSThemrTheme) => P & { theme: TReactCSSThemrTheme }
export function themeable(...themes: Array<TReactCSSThemrTh... | TypeScript | index.d.ts | javivelasco/react-css-themr | mit | 1,320 | 41 | codeparrot/github-code |
86575f993ba6487b72d8dd05ec38e29848a5e67cd6649a6fe1ed8da6b11073ba | /*
Original code by Ben Croston modified for Ruby by Nick Lowery
(github.com/clockvapor)
Copyright (c) 2014-2016 Nick Lowery
Copyright (c) 2013-2014 Ben Croston
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... | C | ext/rpi_gpio/common.c | iohzrd/rpi_gpio | mit | 3,452 | 98 | codeparrot/github-code |
23ad7258998cc8ab913404ca3e2e7135008e40ef23c5851f63c4c33f4c92c1ea | const webpack = require('webpack')
const path = require('path')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
module.exports = function (env) {
return {
entry: {
main: './src/index.js',
},
output: {
filename: '[name].js', // name 与 entry 中的属性一一对应
path: path.resolve(__dirname... | JavaScript | webpack.config.js | dadiaoguai/webpack2.0-demo | mit | 1,665 | 70 | codeparrot/github-code |
96df90ee2e7e1f4026f85465c9098703f3fbf68933079be88322ffc22ba02da2 | using Microsoft.Owin;
using Microsoft.Owin.Security.Cookies;
using Owin;
using System;
using System.Web.Helpers;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.Owin;
using System.Security.Claims;
using System.Threading.Tasks;
using EPiServerSimpleSite.Models.Account;
[assembly: OwinStartup(typeof(EP... | C# | cms/Startup.cs | anjumrizwi/episerver | mit | 4,207 | 98 | codeparrot/github-code |
ad090b4d1000230905135415c8f4c9da968b307cb0433c45c633f84e3da14fe3 | //upvote.js
'use strict';
eventsApp.directive('dateKeys', function() {
return {
restrict: 'A',
link: function(scope, element, attrs, controller){
element.on('keydown', function(event){
if (isNumericKeyCode(event.keyCode) || isForwardSlashKeyCode(event.keyCode) || isNavigationKeyCode(event.keyCode)) {
... | JavaScript | app/js/directives/datekeys.js | jhirley/Plurasight-Angular-Fundamentals | mit | 889 | 42 | codeparrot/github-code |
b542723802863f455701e373c7050de2523a3580fe204f00802b6f44f65ecfc1 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Magicdawn;
namespace NVM.Commands
{
class Help : Command
{
public Help()
{
this.Usage = "nvm help [command]";
this.HelpMsg = I18n.Get.Help_HelpMessage;
}
public ... | C# | NVM/Commands/Help.cs | magicdawn/nvm-for-windows | mit | 2,011 | 63 | codeparrot/github-code |
0b48010fb97737db3957af485f80d750c7dd38d11eefc97b7e671e94ffec545c | #include "ScriptEditor.h"
//(*InternalHeaders(ScriptEditor)
#include <wx/intl.h>
#include <wx/string.h>
//*)
#include "wx/stc/stc.h"
#include "source/Classes.hpp"
#include "source/Editor.hpp"
//(*IdInit(ScriptEditor)
const long ScriptEditor::ID_CUSTOM1 = wxNewId();
const long ScriptEditor::ID_TEXTCTRL2 = wxNewId();
... | C++ | Editor/ScriptEditor.cpp | isonil/mmorpg | mit | 10,155 | 195 | codeparrot/github-code |
6f5c19663abff08fd057f0fd0ed533a9d68bf4a76ee94e9460fcd91952daebe2 | require 'torch'
require 'nn'
require 'optim'
require 'eladtools'
require 'recurrent'
require 'utils.textDataProvider'
-------------------------------------------------------
cmd = torch.CmdLine()
cmd:addTime()
cmd:text()
cmd:text('Training recurrent networks on word-level text dataset - Penn Treebank')
cmd:text()
cmd:... | Lua | hw3/wordRNN_edited.lua | nadavo/DeepLearningCourse | mit | 7,503 | 172 | codeparrot/github-code |
c3bf1e3a97474043495d289e34ad7665d4fb35b7119e4db78e99bf34c5dca9c5 | <!DOCTYPE html>
<html lang="en">
<head>
<title>three.js - WebGPU - Materials</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<link type="text/css" rel="stylesheet" href="main.css">
</head>
<body>
<div id="info">
<... | HTML | examples/webgpu_materials.html | 06wj/three.js | mit | 5,063 | 210 | codeparrot/github-code |
9423f3ce9dbe4eb6c4d731e0e8112017cd83bde602d200e95a1f0a970571b2bc | package com.InfinityRaider.AgriCraft.blocks;
import com.InfinityRaider.AgriCraft.entity.EntityLeashKnotAgricraft;
import com.InfinityRaider.AgriCraft.reference.Names;
import com.InfinityRaider.AgriCraft.renderers.blocks.RenderBlockBase;
import com.InfinityRaider.AgriCraft.renderers.blocks.RenderBlockFence;
import com.... | Java | src/main/java/com/InfinityRaider/AgriCraft/blocks/BlockFence.java | HenryLoenwind/AgriCraft | mit | 5,714 | 151 | codeparrot/github-code |
cf4edf088c6c647bdbb4ae7f85e7b07151d537014844996c4ce80f238b9baa70 | namespace WordPlay
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WordPlay.WordDSL.Model;
class WordManager
{
private WordList _worldList;
private Word _currentWord;
public WordDirection Direction
... | C# | WordPlay/WordManager.cs | wargamer/WordPlay | mit | 2,998 | 99 | codeparrot/github-code |
2ddc7330495e53c00bde1ccba2fe1c266b3ecc6d0e2c00c87f52f55e6f05014d | <?php
/*
* This file is part of the Bee package.
*
* (c) Ling Talfi <lingtalfi@bee-framework.org>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Komin\Application\ElementInstaller\MetaFile;
/**
* BaseMetaFileHub
* ... | PHP | bee/modules/Komin/Application/ElementInstallerOld2/MetaFile/BaseMetaFileHub.php | lingtalfi/bee | mit | 1,774 | 75 | codeparrot/github-code |
2d0d2dacab04cf5c7cb2a1632176c7fc3f86133deef341901091e2b359fa4f1c | using System;
using System.Globalization;
using System.Linq;
using System.Text.RegularExpressions;
using System.Web;
using System.IO;
namespace BlogEngine.Core.Web
{
/// <summary>
/// URL rewrite rules
/// </summary>
public class UrlRules
{
#region Constants and Fields
/// <summar... | C# | BlogEngine.NET-3.3.5.0/BlogEngine/BlogEngine.Core/Web/UrlRules.cs | mohanraod/mohansglobe | mit | 18,578 | 490 | codeparrot/github-code |
e995b875d95f5db1e1063ea9eae465705fb683544189a9118339898fa9e46b0b | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>corn: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" r... | HTML | clean/Linux-x86_64-4.10.2-2.0.6/released/8.14.0/corn/8.8.1.html | coq-bench/coq-bench.github.io | mit | 6,641 | 168 | codeparrot/github-code |
3c7e71cc61a4b0e616fdf9a52b9d05a045c79d600fd71e242a9739a4fd3d0951 | from socket import create_connection
from django.db import models
from django.utils import timezone
class Slave(models.Model):
def __str__(self):
return self.ip + str(self.port)
ip = models.GenericIPAddressField()
port = models.IntegerField()
busy = models.BooleanField(default=False)
def... | Python | webserver/contest/models.py | theSage21/judge-interface | mit | 1,082 | 44 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.