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
20f3465d20bec8f3e436b63818dba3652695814a95b763580f1184544a44dd83
//implementation of the Reservations table package transaction.tables; import java.util.ArrayList; import java.util.HashMap; import java.util.Map; import java.io.Serializable; public class Reservations implements Serializable{ /** * This table represents the combination of Customers and their reservations * The ta...
Java
project/transaction/tables/Reservations.java
jfuentes/DistributedResourceManager
mit
3,045
113
codeparrot/github-code
5197c8d1ee7e18d59edd4df70e51c24ca0883ca46111662c8c5a779c3ae42665
# Copyright 2017, Xavier Snelgrove import argparse import os import sys import numpy as np from scipy import ndimage import gram from gram import JoinMode if __name__ == "__main__": parser = argparse.ArgumentParser(description="Synthesize image from texture", formatter_class=argparse.ArgumentDefaultsHelpFormatter)...
Python
synthesize.py
wxs/subjective-functions
mit
7,775
161
codeparrot/github-code
65383deb1889e8f1e75716a308dbad73280674bdb07b38dd8b82490c63611e96
const Record = require("../Record").Record; const Property = require("../Property").Property; const TEST_DATA = { tables: { users: [ { id: 1, name: "John", gender: "male", age: 20 }, { id: 2, name: "Jane", gender: "female", age: 21 } ], empty: [ {} ] }, props: { users: { id : { table: "...
JavaScript
lib/drivers/test.js
dresende/gimlet
mit
4,371
204
codeparrot/github-code
9699c1c47646396081f4323be80c13a2cde8e80f81473d5c4d19ba6ab170deaf
#include "sl_parser.h" namespace shaderlab { std::unordered_map<Token::Type, std::pair<FnPrefix, FnInfix> > Parser::s_PropertiesExpr = { { Token::TOK_COMMENT, { nullptr, &Parser::Comment } }, { Token::TOK_IDENTIFIER, { nullptr, &Parser::Property } }, { Token::TOK_LEFT_BRACKET, { nullptr, &Par...
C++
src/NGFX/Private/ShaderLab/sl_parse_prop.cpp
TsinStudio/kaleido3d
mit
10,377
268
codeparrot/github-code
5ac78513ea73414cec55677a5e805d42fab518bb2688c1a69a0077e2e6aa3f0d
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>squiggle-eq: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min...
HTML
clean/Linux-x86_64-4.11.2-2.0.7/released/8.12.1/squiggle-eq/1.0.1.html
coq-bench/coq-bench.github.io
mit
6,622
167
codeparrot/github-code
2b2e64ac249b3ee2b1932fd14d2208a689883a65da68a305d0eb1274e8e586f7
package com.viduus.util.models.controller; import java.util.HashMap; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.w3c.dom.NodeList; import com.viduus.util.debug.OutputHandler; import com.viduus.util.models.loader.DaeParseException; /** * This class loads and holds all of the face data from ...
Java
src/com/viduus/util/models/controller/VertexWeights.java
egtoney/JDaeLoader
mit
3,172
108
codeparrot/github-code
d2e40fa365a59aa9a0d86d16ffbc4a7f1e066c827fec99cdd711af9a2b5574f8
import prime from './libs/prime.js'; var db; var filterWords = function(source) { var res = []; source.split(/[^а-яa-z0-9]+/ig).filter((e)=> e.length>4).map((e)=> e.toLowerCase()).forEach((e)=> { if(res.indexOf(e) == -1) { res.push(e); } }); return res; }; export default { init(app) { console.log(...
JavaScript
application/plugins/fuzzy-search/server/index.js
TuxUbuntu/fcs01
mit
2,015
108
codeparrot/github-code
9fc2a5276e582c69ac3b1e114837153743a2dbf7060cf59500597db2edd9dc97
## imports import os, time import numpy as np import matplotlib.pyplot as plt # package imports from . import utilities def occlusionAndCrowdingSensitivity( coco_analyze, oks, saveDir ): loc_dir = saveDir + '/benchmarks_sensitivity/occlusion_crowding' if not os.path.exists(loc_dir): os.makedirs(loc_d...
Python
analysisAPI/occlusionAndCrowdingSensitivity.py
matteorr/coco-analyze
mit
9,340
216
codeparrot/github-code
57f64f5af6f5cb97f66e537597c294664b56c8511f1d1fa72a0199844d171626
#ifndef __TICTACTOE_COMMON_H_INCLUDED__ #define __TICTACTOE_COMMON_H_INCLUDED__ #include "TicTacToeExportApi.h" /* Denotes the player, if any. */ enum class TICTACTOEGAME_API Player { /* Denoted the absense of a player. */ None, /* Denotes the 'X' player. */ X, /* Denotes the 'O' player. */ O }; /* Denot...
C
TicTacToe_AI/TicTacToeGame/TicTacToeCommon.h
Xilconic/tictactoe-ai
mit
593
46
codeparrot/github-code
e4d8893d28a0573fb595b85cf741093c25de628da40626e0938b403626944aa4
<?php class Action { private $name = null; private $args = array(); public function __construct($name=null, $args=array()){ // Init action name if given if(!is_null($name)) $this->init($name, $args); } public function init($name, $args=array()){ // Init action name and args from given $this->name = ...
PHP
classes/System/Action.php
julianburr/project-nutmouse
mit
1,632
60
codeparrot/github-code
260931cdf12f9fb33dccbab3f500a40888923ae4a384bd131e408deb3ef2b1aa
<!DOCTYPE html> <html> <head> <title> Media Search </title> <meta charset="utf-8"> <link rel="stylesheet" href="https://pixabay.com/static/css/base24.min.css"> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.3/jquery.min.js"></script> </head> <body> <div style="max-width:640px;position:relative;...
HTML
task-15-16-js/index_15.html
sheffcer/sheffcer.github.io
mit
4,099
155
codeparrot/github-code
7bcbc23698b2219f5f48c25aa3b4f1de9b5dbf2c3aaf5b4fb73d9866332abdf2
using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Windows; using System.Windows.Data; using System.Windows.Media; using MahApps.Metro; namespace Builder { public enum Theme { Random, Alpha, Version0_9, ...
C#
Builder/Infrastructure/Themes.cs
rschili/Builder
mit
5,235
156
codeparrot/github-code
491951f0821a3b1419b66bd8c0ddab4f03dfbae9ba628bec80bfeca01ca1f8a9
package cpup.mc.oldenMagic.content import net.minecraft.block.Block import cpup.mc.lib.content.{CPupTE, CPupBlockContainer} import cpup.mc.oldenMagic.{OldenMagicMod, TOldenMagicMod} import net.minecraft.world.World import net.minecraft.entity.EntityLivingBase import net.minecraft.item.ItemStack import cpup.mc.lib.util...
Scala
src/main/scala/cpup/mc/oldenMagic/content/WritingDesk.scala
CoderPuppy/oldenmagic-mc
mit
7,749
279
codeparrot/github-code
5bd3c9044d2ef9edd9b24a2262498cd54aea0ce31c629498f5402da1a40f3467
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MusicPimp.ViewModels { /// <summary> /// View model for the case where you want to display one of three things: /// a) a "loading..." message /// b) a feedback message /// ...
C#
MusicPimp-UWP/ViewModels/LoadingViewModel.cs
malliina/musicpimp-uwp
mit
2,254
81
codeparrot/github-code
6d173ea2c4dc1b3dd693667e948727daa165171397389c634391262a6a86db4a
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>coqffi: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css"...
HTML
clean/Linux-x86_64-4.08.1-2.0.5/released/8.7.1+1/coqffi/1.0.0~beta3.html
coq-bench/coq-bench.github.io
mit
7,283
180
codeparrot/github-code
8797bb818538cc2b3156146cbcca056e953043dd4d6256deb96c2cc281b28aa6
<!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.09.1-2.0.6/released/8.14.0/mini-compiler/8.6.0.html
coq-bench/coq-bench.github.io
mit
7,093
167
codeparrot/github-code
99a056e05414839e157b08a4a00306501946b6810e3f9d325903480ef5d99f41
package chatty.gui.components.settings; import java.util.ArrayList; import java.util.List; import javax.swing.table.AbstractTableModel; /** * A table model backed by a list. This supports one object per row. The * {@code getValueAt(int, int)} method has to be overriden to provide the data * the table should use fo...
Java
src/chatty/gui/components/settings/ListTableModel.java
pokemane/TwitchChatClient
mit
4,223
184
codeparrot/github-code
ab4d53def354ce94da46fdc30f709b89ebabb2176c42285ea7667c1d2d3bc268
import 'isomorphic-fetch'; import * as I from './interface'; import { User } from './User'; import { logger } from './utils'; import { SpeechMode } from './const'; export interface IRoomParams { apiEndpoint: string; userId: string; room: I.IRoom; user: User; } /** * Room class has API client, own data and th...
TypeScript
src/Room.ts
fairway-corp/swagchat-sdk
mit
11,776
399
codeparrot/github-code
b7201f6764e3b91429073f73872d316fc17a5a292545cfd3a5ef4a89c9f0554d
""" Support for Yamaha Receivers. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/media_player.yamaha/ """ import logging import voluptuous as vol from homeassistant.components.media_player import ( SUPPORT_TURN_OFF, SUPPORT_TURN_ON, SUPPORT_VOLUME_...
Python
homeassistant/components/media_player/yamaha.py
betrisey/home-assistant
mit
7,019
219
codeparrot/github-code
af4fba42ef08b11c0cc71ed87d5ed1c1c855575e066f58a301064ad5a308bb94
 // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. // Generated from DataFrameBinaryOperations.tt. Do not modify directly using System; using System.Collections.Gen...
C#
src/Microsoft.Data.Analysis/DataFrame.BinaryOperations.cs
ahsonkhan/corefxlab
mit
27,464
699
codeparrot/github-code
04b9d46fae7183f5275cb0d4b6b18638dc6b8664be6ac633a0f71a9bfbd462aa
/* LayoutPlanets.cpp (c)2000 Palestar Inc, Richard Lyle */ #include "Debug/Assert.h" #include "Interface/GameDocument.h" #include "Interface/WindowSeperator.h" #include "Interface/ButtonContact.h" #include "Interface/LayoutPlanets.h" //---------------------------------------------------------------------------- Co...
C++
Interface/LayoutPlanets.cpp
palestar/darkspace
mit
2,591
98
codeparrot/github-code
e7bcf69d92b38a70f82adb2ad3f4d6295acd252a21b98e95af118575da95bcba
package com.kyokomi.core.dto; import java.util.List; public class ActorPlayerDto { /** プレイヤーを一意に識別するID. */ private Integer playerId; /** キャライメージのID. */ private int imageResId; /** 顔画像のデフォルトID. */ private int faceImgId; /** キャラ名. */ private String name; /** 攻撃力. */ private int attackPoint; /** 防御力....
Java
src/com/kyokomi/core/dto/ActorPlayerDto.java
kyokomi/AndEngineSRPGQuest
mit
4,337
251
codeparrot/github-code
4c3890a0ad0a98150d96a93e3c59cf507e32b133fd520cac06701dc3a8609dc6
{php define(MUI, true);} {template 'common/header'} <style> ul,li {padding:0; margin:0; border:0;} body{background:#d2e6e9; padding-bottom:63px;} .btn-group-top-box{padding:10px 0; border-bottom:1px solid #a5d7de; font-family:Helvetica, Arial, sans-serif; text-align:center; width:100%;} .btn-group-top{overflow:hidd...
HTML
addons/we7_coupon/template/mobile/consume.html
Broomspun/shanque
mit
4,768
101
codeparrot/github-code
3e4685b6958381388ba156821f9acb6e9f48562f93cb4b835ae105ae135b40bc
namespace Gu.Wpf.Validation.Demo.Wpf { using System.Collections.Generic; using System.Linq; using System.Windows; using System.Windows.Controls; using Rules; public class ValidationTemplateSelector : DataTemplateSelector { public DataTemplate NoErrorTemplate { get; set; } ...
C#
Gu.Wpf.Validation.Demo/Wpf/ValidationTemplateSelector.cs
JohanLarsson/Gu.Wpf.Validation
mit
919
32
codeparrot/github-code
a727e555191d533cf81915a4d2db8c754bb2a74daf21338a119a7298d0a4ed59
# frozen_string_literal: true class ContentCloners::StaffPositionsCloner < ContentCloners::ContentClonerBase def clone(convention) @id_maps[:staff_positions] = clone_with_id_map( source_convention.staff_positions, convention.staff_positions ) do |staff_position, cloned_staff_position| ...
Ruby
app/services/content_cloners/staff_positions_cloner.rb
neinteractiveliterature/intercode
mit
1,123
33
codeparrot/github-code
75b13eb34b7fb49678872ee0fc5908948bd4cf412738b0e012d51c0bd8640298
import yaml, json import math import re import operator import tensorflow as tf import sys, os # We want to ignore those annoying "exceptions", # "Scipy not supported!", "hdf5 is not supported on this machine ...", .. sys.stdout = open(os.devnull, 'w') import tflearn sys.stdout = sys.__stdout__ os.environ['TF_CPP_MIN...
Python
simple_trainer/__init__.py
bobalazek/tensorflow-simple-trainer
mit
8,481
265
codeparrot/github-code
3649ff02edc5ddc5a0af04ce8f6a8e13c922a9b7ae2eaef41df912a4e5dbba7a
scriptDAO = { clear: function() { for (key in localStorage) { if (/^(js|css|libs)-/.test(key)) delete localStorage[key]; } }, rm: function(scriptType, scope) { if (this.defined(scriptType, scope)) delete localStorage[scriptType+"-"+scope]; }, save: function(val, scriptType, scope) { ...
JavaScript
src/js/scriptDAO.js
mahemoff/controlfreak
mit
1,903
61
codeparrot/github-code
d19485e0b3109cd1807dba3ff9e5c0bf4972eda81dd4cec646bfdb05781e2c8f
#include <iostream> #include <cstdlib> #include <string> #include <unordered_set> #include <vector> #include <algorithm> #include <climits> #include <stack> #include <sstream> #include <numeric> #include <unordered_map> using namespace std; class Solution { public: int m; int n; void setZeroes(vector<vector<i...
C++
73.cpp
machinecc/Leetcode
mit
1,911
109
codeparrot/github-code
8d8149182e4e5ce33ccfb055a4cd08bc75e798f561a39ba96cb0d937866ae057
<!doctype html> <html class="default no-js"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>WriteVResult | picturepark-sdk-v1-fetch API</title> <meta name="description" content="Documentation for picturepark-sdk-v1-fetch API"> <meta name="viewport" content="width=device-...
HTML
docs/picturepark-sdk-v1-fetch/api/interfaces/_fs_.writevresult.html
Picturepark/Picturepark.SDK.TypeScript
mit
12,745
298
codeparrot/github-code
d5e214c5cef6fb60d5cccd7471b61fe3041bfd783f8cae9582649d2d3dd92a82
import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { PageLink } from '../security/model/pagelink'; import { User } from '../security/model/user'; import { LoginService } from '../security/login/login.service'; import { GlobalService } from '../core/global.service'; impor...
TypeScript
src/app/home/home.component.ts
Sudhanshu-bluespace/EmailApp_FrontEnd
mit
2,925
98
codeparrot/github-code
84585b0c7b9f73eec3d7419ca0880a2d656ab15aaca772332b254d95b855a55f
/* -------------------------------------------------------------------------- * * File Application.cpp * Description Application Entrance. * * Created By Young-Hwan Mun * Contact xmsoft77@gmail.com * * ------------------------------------------------------------...
C++
04_Sample/TheAdventuresOfMira/Source/Application.cpp
mcodegeeks/OpenKODE-Framework
mit
8,182
234
codeparrot/github-code
342c5b46c4aae6082001fdf881b92a429e6251879494349ff8cdb0f977cec85e
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" /> <title>Vagrant-Chef</title> <link href="slideshow.css" rel="stylesheet" /> <link href="theme.css" rel="stylesheet" /> <script src="prefixfree.min.js"></script> </head> <...
HTML
index.html
kowal/vagrant-chef-presentation
mit
5,637
209
codeparrot/github-code
1ee8d1ad7569f4c56d2d164c5f261985eb20dcabbdcdfa8f45ae3e9160667f19
/* * * Confidential Information of Telekinesys Research Limited (t/a Havok). Not for disclosure or distribution without Havok's * prior written consent. This software contains code, techniques and know-how which is confidential and proprietary to Havok. * Product and Trade Secret source code contains trade secrets ...
C
ThirdParty/Havok/include/Animation/Animation/Animation/Util/hkaPartitionedAnimationUtility.h
wobbier/source3-engine
mit
7,359
130
codeparrot/github-code
ee947e4abfede22054f9c790fcaacb344ceb760c8c007f64e1ff55f7117951a5
<!-- author: W3layouts author URL: http://w3layouts.com License: Creative Commons Attribution 3.0 Unported License URL: http://creativecommons.org/licenses/by/3.0/ --> <!DOCTYPE html> <html> <head> <title>Truckage a Autos and Transportation Category Flat Bootstrap Responsive Website Template | Short Codes :: w3layouts<...
HTML
application/views/short-codes.html
princessiqlima/ProgwebHCPro
mit
32,331
775
codeparrot/github-code
919ea9ed92048be435fbad5ef7fed140a5334a0d2cf257fb7bbefec12e7e2d20
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace HTLib2.Bioinfo { using StreamWriter = System.IO.StreamWriter; public partial class Pymol { public static partial class Script { public static class Cgo { ...
C#
HCsbLib/HCsbLib/HTLib2.Bioinfo/External.Pymol/Pymol.Py.Cgo.cs
htna/HCsbLib
mit
6,621
155
codeparrot/github-code
9c124d8e45802ad7752705e1d930c05df943d0769db86eebcd1bf4875f028259
#ifndef _LPM_EDGES_H_ #define _LPM_EDGES_H_ #include "LpmConfig.h" #include "LpmTypeDefs.h" #include "LpmCoords.h" #include "LpmXyzVector.h" #include "LpmLogger.h" #include "LpmOutputMessage.h" #include "LpmField.h" #include <vector> #include <tuple> #include <memory> #include <map> namespace Lpm { class Edges { ...
C
src/LpmEdges.h
pbosler/lpmCxx
mit
3,705
86
codeparrot/github-code
c8a036885e6f104ecbf55f85a3ce555c3c47c7e4df767101999e51280a97a2de
<?php error_reporting(E_ALL^E_NOTICE); define('STRUCTURE', __DIR__ . '/../../data/structure.txt'); define('MAPS_SPELLS', __DIR__ . '/../../data/maps_spells.php'); define('MAPS_CHARS', __DIR__ . '/../../data/maps_chars.txt'); define('MAPS_SYMBOLS', __DIR__ . '/../../data/maps_symbols.txt'); class Encoder { private $...
PHP
ime/rime/script/helpers/Encoder.class.php
shenjia/zDvorak
mit
4,706
176
codeparrot/github-code
0ff2114eab839f8c39b97e33811d01ec87fefcfb7ca5d814cf281ba4cdec2bf4
/* * Copyright (C) 2009 University of Washington * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
Java
app/src/main/java/org/mamasdelrio/android/widgets/SelectOneSearchWidget.java
srsudar/MamasDelRioAndroid
mit
11,002
294
codeparrot/github-code
5b4e0c305637f8dd37b9fa60dd5c51e924b130afb2988526792a30bea3078213
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Code Coverage for C:\wamp\www\S2_3Jobeet\src\Acme/JobeetBundle/Entity/Affiliate.php</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link href="css/bootstrap.min.css" rel="stylesheet"> <link href="css/bootstr...
HTML
web/cov/JobeetBundle_Entity_Affiliate.php.html
ss2playground/S2_3Jobeet
mit
45,456
606
codeparrot/github-code
1e40e3a7f8d0dc046353ee3785ff7bb84ea4deefd44ff8507904aec3d5573dd6
// Copyright (c) 2011-2015 The Deuscoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "utilitydialog.h" #include "ui_helpmessagedialog.h" #include "deuscoingui.h" #include "clientmodel.h" #include "g...
C++
src/qt/utilitydialog.cpp
deuscoin-org/deuscoin-core
mit
7,313
192
codeparrot/github-code
4b22e5be89cd72066bf2a92ab0b41926ffb6545868c00b067af820982330c88d
<?php /* * This file is part of the phprst package. * * (c) Peter Kokot <peterkokot@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Rst\Command; use Symfony\Component\Console\Command\Command; use Symfony\Com...
PHP
src/Rst/Command/SelfUpdateCommand.php
peterkokot/phprst
mit
1,959
63
codeparrot/github-code
17f0c84d1a5d28ce2c89c3cb97cddfbc30b3d752dde6403d4d28b7213490dd45
using System.Collections.Generic; using System.Text; using System.Threading.Tasks; using HaloSharp.Model.Metadata; namespace HaloSharp.Query.Metadata { /// <summary> /// Construct a query to retrieve detailed Season Metadata. Use them to translate IDs from other APIs. /// </summary> public class G...
C#
Source/HaloSharp/Query/Metadata/GetSeasons.cs
EthanR/HaloSharp
mit
1,148
47
codeparrot/github-code
d5c6c15859d524f51f4d4331acfd30b97f344bea986b0dcd5709afb3ba088c0c
<?php class Collection { private $items = array(); public static function add($obj, $key = null) { if ($key == null) { $this->items[] = $obj; } else { if (isset($this->items[$key])) { throw new KeyHasUseException("A chave $key já está sendo util...
PHP
app/Helpers/Collection.php
NandoKstroNet/babita
mit
1,185
49
codeparrot/github-code
a337fffbc15e28a6b6ab292388766910bbf22a55cd826eb765736326258945e4
package data; public class Node<T> { private T data = null; private Node<T> next = null;//next item /** * Constructor sets data * * @param pData */ public Node(T pData) { data = pData; } /** * @return current data */ public T getData() { retu...
Java
src/main/java/data/Node.java
Datos1/LogicTEC
mit
800
54
codeparrot/github-code
ecc348a787924251f802e4f9117dbb34c9a71e06b19534e06bb5fdf496b6c7f5
/** * Module dependencies. */ var Twitter = require('../lib/twitter'); var OAuth = require('../lib/oauth'); /** * Define `Tweet`. */ var Tweet = {}; /** * Get Request token. * * @return {String} */ Tweet.getRequestToken = function *getRequestToken() { var request = yield OAuth.thunkedGetOAuthRequestToke...
JavaScript
server/tweet.js
lambtron/dodo
mit
892
54
codeparrot/github-code
10922fa9019896c4ec2a557eb32b998125f690a73a92b7a8573e0a1017b3e342
package at.arz.latte.rodeo.infrastructure; import java.util.ArrayList; import java.util.List; import javax.ejb.LocalBean; import javax.ejb.Stateless; import javax.enterprise.context.spi.CreationalContext; import javax.enterprise.inject.spi.AnnotatedType; import javax.enterprise.inject.spi.BeanManager; import javax.in...
Java
latte-rodeo/src/at/arz/latte/rodeo/infrastructure/RodeoModel.java
arz-latte/latte-rodeo
mit
1,907
71
codeparrot/github-code
7b73da8fd164b77e870fbc2e148a4d6c0f331cfd04443fd81b64348c4538936c
<?php namespace App\Console; use App\Application as App; use Doctrine\DBAL\DriverManager; use Symfony\Component\Console\Application as SymfonyApplication; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; class A...
PHP
src/App/Console/Application.php
Fyrewell/trabredes
mit
6,950
172
codeparrot/github-code
dd41e20525fc08811d4a87a43638cf4e73b5c27d175ca144b15d9a1401b062e7
package org.bouncycastle.jcajce.provider.test; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Modifier; import junit.framework.Assert; import junit.framework.TestCase; import org.bouncycastle.jcajce.provider.digest.GOST3411; import org.bouncycastle.j...
Java
test/src/org/bouncycastle/jcajce/provider/test/PrivateConstructorTest.java
sake/bouncycastle-java
mit
5,922
127
codeparrot/github-code
b9dfb61da70ce364d381eac6bef89cc97b895b94e36a1a7a587b94174b832972
import React from 'react'; import { cloneElement } from 'react'; import { findDOMNode } from 'react-dom'; import RcTabs, { TabPane } from 'rc-tabs'; import ScrollableInkTabBar from 'rc-tabs/lib/ScrollableInkTabBar'; import TabContent from 'rc-tabs/lib/TabContent'; import classNames from 'classnames'; import Icon from '...
TypeScript
components/tabs/index.tsx
hjin-me/ant-design
mit
4,710
173
codeparrot/github-code
6d3fa55d1f0b2b747d998961ca07d527e5c53ba9b1ee55c667acc1cd0311f6fa
# coding=utf-8 from django import http from django.conf import settings from django.contrib.auth import authenticate from django.utils.cache import patch_vary_headers from registry.exceptions import RegistryException __author__ = 'pivstone' class CustomHeaderMiddleware(object): """ 增加自定头 """ def pro...
Python
registry/middleware.py
pivstone/andromeda
mit
775
32
codeparrot/github-code
ec66175d2595bddef3423dafb1e4dfcd1c4af3fd301838b051cdc87652e47e3b
package ifce.ppd.game.gfx; /** * Trabalha 'SpriteSheet's possibilitando dividí-los em pedaços. * * Alteração: apenas a remoção de funcionalidades não utilizadas e adequação ao * jogo Combate. * * @author The Cherno * @author Frota * */ public class Sprite { public final int X_SIZE; public final int Y_SIZ...
Java
src/ifce/ppd/game/gfx/Sprite.java
frota/java-stratego
mit
4,683
117
codeparrot/github-code
0e7cdf4607dca622500fd005d8318873fc3e5ec9de1e31ed09c32e2ca6fc36a8
// Copyright (c) 2011-2013 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "sendcoinsentry.h" #include "ui_sendcoinsentry.h" #include "addressbookpage.h" #include "addresstablemodel.h" #incl...
C++
src/qt/sendcoinsentry.cpp
phifly/ptx
mit
7,599
263
codeparrot/github-code
a5f83fccb0b7f5810cbec3cbc99dcac6400a603c4352e946a2ebe9e3c38fe056
/* * Copyright (c) 2014 Microsoft Mobile * * 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, ...
C#
RealtimeBlendDemo/TexturePage.xaml.cs
Microsoft/real-time-blend-demo
mit
4,129
83
codeparrot/github-code
67ab079e84cc5b118b97857c7442e36c945a7abecb61c9c540c690b432d97cb3
package com.noelcurtis.greencard.bullitenscraper import java.time.LocalDate import java.time.format.DateTimeFormatter import com.typesafe.config.Config import com.typesafe.scalalogging.slf4j.LazyLogging import org.jsoup.nodes.Document import org.jsoup.select.Elements import play.api.libs.json.Json import scala.colle...
Scala
bulletinscraper/src/main/scala/com/noelcurtis/greencard/bullitenscraper/JsoupBulletinScraper.scala
noelcurtis/greencard-tracker-service
mit
4,673
99
codeparrot/github-code
8ed6b4f2094695a3908406c2aefe03b79f8f06a57ddf879c61e29ebc72295478
<?php /** * Most of the code above took inspiration from: * https://gist.github.com/ptz0n/1217080. * * @author William Durand <william.durand1@gmail.com> */ class JsonpCallbackValidator { private static $regexp = '/^[a-zA-Z_$][0-9a-zA-Z_$]*(?:\[(?:"(?:\\\.|[^"\\\])*"|\'(?:\\\.|[^\'\\\])*\'|\d+)\])*?$/'; ...
PHP
src/JsonpCallbackValidator.php
willdurand/JsonpCallbackValidator
mit
1,665
84
codeparrot/github-code
75784dd422b0cfef04f83f6a9725c6dba200a82302ba84c2cfb4fc21cc4f94bb
using ReMi.Contracts.Plugins.Data; using ReMi.Contracts.Plugins.Services; using ReMi.Plugin.Common.PluginsConfiguration; using System; using System.Collections.Generic; using IPluginConfiguration = ReMi.Contracts.Plugins.Services.IPluginConfiguration; namespace ReMi.Plugin.Email { public class PluginConfiguration ...
C#
Plugins/Email/ReMi.Plugin.Email/PluginConfiguration.cs
wongatech/remi
mit
1,314
45
codeparrot/github-code
6668e7f3242a820324adc02cf873c3b824d0c85d900df817455afb9b055a17e4
/** * Copyright 2014 Telerik AD * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
JavaScript
Bivi/src/Bivi.FrontOffice/Bivi.FrontOffice.Web/Libs/telerik.kendoui.2014.3.1119.core/src/src/kendo.numerictextbox.js
apo-j/Projects_Working
mit
21,491
679
codeparrot/github-code
80d0d3011b5223a7eb01d8ca9a2053cee5ed775ba9105b0dd1e0b5702d6692a1
namespace TestCompleteLogCompiler { partial class Form1 { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> ...
C#
TestCompleteLogCompiler/Form1.Designer.cs
gabrieljesus/TestCompleteLogCompiler
mit
9,722
229
codeparrot/github-code
00f3dee8e35c75f511522b7393c8ef697720fd8dd2dd10d7a0e8c5644f427848
<?php /** * CurlyFixture * */ class CurlyFixture extends CakeTestFixture { /** * Table name * * @var string */ public $table = 'curly'; /** * Fields * * @var array */ public $fields = array( 'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'key' => 'primary'), 'curly' => array('...
PHP
app/Test/Fixture/CurlyFixture.php
Payscape/Payscape-Gateway-CakePHP-Developers-Suite
mit
1,208
44
codeparrot/github-code
0d94f88c0063a3797a9c516d3d6e4361916e4fced9aeb3bc77b366d95a7921d8
var Game = function(canvasId) { var canvas = document.getElementById(canvasId); var screen = canvas.getContext('2d'); var gameSize = { x: canvas.width, y: canvas.height}; //this.bodies = [new Player(gameSize)]; this.player = new Player(gameSize); this.bodies = createInvaders(this).concat(this...
JavaScript
game.js
herestomwiththeweather/herestomwiththeweather.github.io
mit
87,824
2,807
codeparrot/github-code
0f9ec9922f0d871bbdabd288ec55677e04247f0173cea21d4824b2069588b3f2
import java.util.Stack; import java.util.ArrayDeque; import java.util.Scanner; import java.util.regex.Pattern; public class _12_InfixToPostfix { private static final String NUM_OR_VAR = "[a-z1-9]+"; private static final String OPERATORS = "[*+-/]"; private static final String SPLIT_DELIM = "\\s+"; p...
Java
java-advanced-january-2017/01.StacksAndQueues/src/_12_InfixToPostfix.java
RookieWookiee/SoftUni
mit
2,091
84
codeparrot/github-code
c9e539f4aac13037124e198c82054c4dea79c81ca137db77f18f4e71bc0fada7
/* * The MIT License (MIT) * * Copyright (c) 2013 Antonis Kalipetis <akalipetis@gmail.com>. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without lim...
Java
TrackingPrototype/action_mode_list_fragment/src/main/java/com/akalipetis/action_mode_list_fragment/ActionModeWrapper.java
mpern/master_thesis
mit
3,754
121
codeparrot/github-code
05f17c56bc4026fa32da244a1f52742d74f06d36b07b47642f9b5ba673ddb10f
#ifndef MATRIX44_H_INCLUDED #define MATRIX44_H_INCLUDED #ifndef M_PI #define M_PI (3.14159265f) #endif namespace venk { class Matrix44 : public Tuple<float, 16> { public: static const std::size_t tuple_size = 16; static const eScalarType element_type = BufferElementType<float>::element_type; /* construct, no ini...
C
include/matrix44.h
johnfredcee/meistravimas
mit
8,899
332
codeparrot/github-code
2534e59d0319d7e80b10f53f20cc680261efd76af33045b432946d47d1ae63a4
<!DOCTYPE html> <!--[if lt IE 7 ]> <html lang="en" class="no-js ie6" ng-app="app"> <![endif]--> <!--[if IE 7 ]> <html lang="en" class="no-js ie7" ng-app="app"> <![endif]--> <!--[if IE 8 ]> <html lang="en" class="no-js ie8" ng-app="app"> <![endif]--> <!--[if IE 9 ]> <html lang="en" class="no-js ie9" ng-app="app...
HTML
client/index.html
andreasonny83/carcassonne-scoreboard-client
mit
7,715
168
codeparrot/github-code
e80b44269a2653faa4c205f68fa52306625e33306882b1e4e2cae682b4c0ecbe
/** * @license * Copyright UIUX Engineering All Rights Reserved. */ import { isNumber } from './isNumber'; describe('isNumber', () => { it('should return true when passing correct numeric _string', () => { expect(isNumber(2)).toBe(true); }); it('should return true when passing correct double _string', (...
TypeScript
libs/fn/src/lib/_common/isNumber.spec.ts
UIUXEngineering/ix-material
mit
961
37
codeparrot/github-code
1622c338b49f623c6f8a7e9bd2e8550af9c39e9abd1c17a0d6523264b3c5bea5
__author__ = 'jhala' import Helpers import json import os ''' creates a location lookup, and an associated image lookup ''' ''' main ''' if __name__ == "__main__": fil = r"c:\capstone\featureInfo.csv" outLoc = r"c:\capstone\locationLookup.json" imageBaseDir="C:\\Users\\jhala\\angular-seed\\app\\images\\"...
Python
PythonScripts/LocationLookup.py
dbk138/ImageRegionRecognition-FrontEnd
mit
2,163
66
codeparrot/github-code
2657a47404bbd3569851b7521b175c67186655387f3bebea94eb3473f5003269
import React from 'react' import { render } from 'react-dom' import { Router, Route, Link } from 'react-router' import { Nav, Navbar, NavItem, NavDropdown, MenuItem } from 'react-bootstrap' import { LinkContainer } from 'react-router-bootstrap' const App = React.createClass({ componentDidMount: function(){ i...
JavaScript
html/modules/App.js
fjacob21/nhlplayoffs
mit
4,010
73
codeparrot/github-code
409c2e84156e46df2c0f507be633d50c35bc612263dd9585b25028dec525c4bc
#include <cstdio> #include <cstring> #include <cstdlib> using namespace std; const int MAX = 100000000; const int MIN = -100000000; unsigned long long now[1000000], pre[1000000]; unsigned long long ar[30][30]; unsigned long long temp[1000000], dp[1000000], ans[1000000]; unsigned long long now_size, pre_size, n; void d...
C++
uhk/acm1565.cpp
Hyyyyyyyyyy/acm
mit
1,493
75
codeparrot/github-code
3c61758955fc5a7fc04c5de68485065a6f1d746f2c0a98608c9418d191c19c77
function getUrlVars() { var vars = {}; var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) { vars[key] = value; }); return vars; } function Redirect_to_game(str) { var user = getUrlVars()["fname"]; window.location="game.php?q="+user+"&game="+str; } f...
JavaScript
mytictactoe/js/user.js
coyiotis/tictactoe
mit
6,993
284
codeparrot/github-code
6466914195f97bb95ada2a0a910f4461d0a6b6e0b83623d05a06485049257b9a
#include <cstdio> #include <cstring> #include <cstdlib> #include <ctime> #include <climits> #include <cmath> #include <cassert> #include <iostream> #include <string> #include <vector> #include <set> #include <map> #include <list> #include <queue> #include <stack> #include <deque> #include <algorithm> using namespace st...
C++
soj/3892.cpp
huangshenno1/algo
mit
1,397
68
codeparrot/github-code
fb99d287e29ad5a5b63bd51fcdc1ff2b2c072ae1789ff747638fc7c503139d25
#include <iostream> #include <vector> #include <string> #include <algorithm> using namespace std; /* * Approach: * * The key realization is that the x+1 term of the count-and-say sequence is derived * by applying the "count-and-say" logic to the previous term of the count-and-say sequence. * So, this seems like a...
C++
LeetCode/C++/General/Easy/CountAndSay/main.cpp
busebd12/InterviewPreparation
mit
1,735
84
codeparrot/github-code
211aa4ec0944ed51008d1a1b262ba929642b2454f742a555e6943036994fe8fd
package com.mypurecloud.sdk.v2.guest.connector.okhttp; import com.mypurecloud.sdk.v2.guest.connector.ApiClientConnector; import com.mypurecloud.sdk.v2.guest.connector.ApiClientConnectorProperties; import com.mypurecloud.sdk.v2.guest.connector.ApiClientConnectorProperty; import com.mypurecloud.sdk.v2.guest.connector.Ap...
Java
resources/sdk/purecloudjava-guest/extensions/connector/okhttp/OkHttpClientConnectorProvider.java
MyPureCloud/platform-client-sdk-common
mit
1,697
39
codeparrot/github-code
e60b24e66420b5d67423088e6ab3f58e7d819c2158b272ea135c78b18698885e
// import { Buffer } from 'buffer'; import { EventEmitter } from 'events'; import * as net from 'net'; import { BufferListReader } from '../buffer/bufferListReader'; import { IpcPacketBufferList } from '../packet/ipcPacketBufferList'; export class IpcPacketSocketDecoder { private _bufferListReader: Buff...
TypeScript
src/socket/ipcPacketSocketDecoder.ts
emmkimme/socket-serializer
mit
1,733
47
codeparrot/github-code
e5244d1cf0a67d2b051efa1fb2e8e785a3e54286399b660a97bd4b89606d1a61
<?php return [ 'title' => 'Find ud af mere', 'header_1' => 'Local Food Nodes', 'subheader_1' => 'Et sundere fødevaresystem', 'paragraph_1_1' => 'Vi laver Local Food Nodes for at sætte lokale producenter i forbindelse med lokale konsumenter, såvel som for at styrke de relationer som allerede findes. V...
PHP
resources/lang/da/public/pages/find-out-more.php
localfoodnodes/localfoodnodes
mit
3,803
41
codeparrot/github-code
215df70a022f4ab0b159ad2e1a6e95d7bd6628753a6fd60f250b6fcf8ad49a44
/* * Copyright ProcessOne 2006-2009. All Rights Reserved. * * The contents of this file are subject to the Erlang Public License, * Version 1.1, (the "License"); you may not use this file except in * compliance with the License. You should have received a copy of the * Erlang Public License along with this softwa...
C
contrib/xmpp/deps/exmpp-0.9.1-r863/c_src/exmpp_tls.h
RJ/playdar-core
mit
1,433
60
codeparrot/github-code
1839ccdb900eedf7177013ad42e8d48e1ca35c144a63dd4a67632bd694ba184e
'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'); const inflect = require('i')(); ...
JavaScript
src/Generators/JsonApiView.js
rtablada/adonis-generators
mit
2,174
92
codeparrot/github-code
7f407e529d4c99d1954ddfc48184a1c50564ca1e35e6fdc9d7a6b1d2e027080d
import { injectable } from 'tsyringe' import { monotonicNow } from './monotonic-now' export type TimeoutId = ReturnType<typeof setTimeout> /** An injected utility class for retrieving the current time. */ @injectable() export class Clock { /** * Retrieves the current time as a number of milliseconds since the ep...
TypeScript
server/lib/time/clock.ts
ShieldBattery/ShieldBattery
mit
1,031
39
codeparrot/github-code
c382416e43e6627a2f8d08e62a086e86c3a5226569d103b6ce90860c879eb0cf
# CUDA_VISIBLE_DEVICES=gpu-number python deepSimDEF_for_gene_expression.py arguments import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' # or any {'0', '1', '2'} import sys import logging import random import numpy as np import pprint import argparse import tensorflow.keras import tensorflow as tf tf.compat.v1.logging...
Python
deepSimDEF_for_gene_expression.py
ahmadpgh/deepSimDEF
mit
24,970
386
codeparrot/github-code
f4f59c563942dd3c03b79965e67a710173bcd9d89cfb7173ebeadba26f209532
#!/usr/bin/env python class BaseCodec(object): """ Base audio/video codec class. """ encoder_options = {} codec_name = None ffmpeg_codec_name = None def parse_options(self, opt): if 'codec' not in opt or opt['codec'] != self.codec_name: raise ValueError('invalid codec...
Python
converter/avcodecs.py
phtagn/sickbeard_mp4_automator
mit
29,019
1,005
codeparrot/github-code
d57c3566774ccc4b1ee3a8c293e21023ed5ce4b1826b089b109f1b588063fe6d
package problems.medium; import problems.utils.ListNode; /** * Created by sherxon on 1/2/17. */ // there are two solutions 1) with arraylist 2) without any extra space public class LinkedListRandomNode { ListNode head; //List<ListNode> a; ListNode x; /** * Returns a random node's value. ...
Java
src/problems/medium/LinkedListRandomNode.java
sherxon/AlgoDS
mit
1,111
50
codeparrot/github-code
680e97095862c813ec9d09bb7e763edab7ee4e0e249b9d0a25c320ee76b70f33
#ifndef EXP_H #define EXP_H #include "atom.h" #include <vector> #include <iostream> using std::vector; class Exp { public: virtual bool evaluate() = 0; virtual string getExpressionResult(vector<string> v) = 0; }; class MatchExp : public Exp { public: MatchExp(Term* left, Term* right): _left(left), _right(rig...
C
exp.h
jamie401/Project
mit
3,248
134
codeparrot/github-code
89cc17ecc68ab40217874e459e0e0427fcc11df15a5ffe949e8c61852bb6e457
// RUN: %clang_cc1 -ast-print %s > %t // RUN: FileCheck < %t %s -check-prefix=CHECK1 // RUN: FileCheck < %t %s -check-prefix=CHECK2 template <int X, typename Y, int Z = 5> struct foo { int constant; foo() {} Y getSum() { return Y(X + Z); } }; template <int A, typename B> B bar() { return B(A); } void baz() {...
C++
llvm-3.3/tools/clang/test/Misc/ast-dump-templates.cpp
dbrumley/recfi
mit
1,183
40
codeparrot/github-code
23480b51c5eef08052413eda9e4c71ffb98cfc8d656dd241339f74a66cd75cb6
'use strict'; const chai = require('chai'); const expect = chai.expect; const sinon = require('sinon'); const proxyquire = require('proxyquire'); require('sinon-as-promised'); chai.use(require('sinon-chai')); describe('#ldapAuthUser', () => { let ldap; let ldapClient; let ldapAuthUser; beforeEach(() => { ...
JavaScript
test/unit/ldapAuthUser.spec.js
osirisguitar/restify-ad-auth
mit
1,480
56
codeparrot/github-code
04901653028720b173c38c94dd164f9d5e2b23a6a3080191b4feaa16c570ad82
var b = navigator.appName, off = 0, txt = "", pX = 0, pY = 0, addScroll = false; if ((navigator.userAgent.indexOf('MSIE 5') > 0) || (navigator.userAgent.indexOf('MSIE 6')) > 0) { addScroll = true; } if (b === "Netscape") { document.captureEvents(Event.MOUSEMOVE); } document.onmousemove = ...
JavaScript
Homeworks/HighQualityCode/01.CodeFormatting/code.js
AdrianApostolov/TelerikAcademy
mit
2,931
127
codeparrot/github-code
d4864e7f0309de9ce2b6a400a43477a3c28278f9267ce4fe4f7340d01f04a732
<?php // src/BCL/CoreBundle/Controller/CoreController.php namespace BCL\CoreBundle\Controller; use BCL\CoreBundle\Entity\Contact; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\Form\Extension\Core\Type\EmailType; use Symfony\Component\Form\Extension\Core\Type\FormType; use Symfony\Co...
PHP
bde/src/BCL/CoreBundle/Controller/CoreController.php
Jean-GuillaumePonsard/projetWebBDE
mit
2,218
69
codeparrot/github-code
b99d06896ee44811b97b2891c60fc63bf56fa6be2459a90f3455a825b70ce353
# Makefile for Sphinx documentation # # You can set these variables from the command line. SPHINXOPTS = SPHINXBUILD = sphinx-build PAPER = BUILDDIR = _build # User-friendly check for sphinx-build ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1) $(error The '$(SPHINXBUILD)' command w...
Makefile
docs/Makefile
eyalev/timee
mit
6,758
178
codeparrot/github-code
a97e85c1ae3c2e2a365e04bc9ed8f5fe49ce9fc9232a051d3dcbdb6d8160554b
package controllers import ( "Kate/features" models "Kate/models" "fmt" "github.com/astaxie/beego" "github.com/astaxie/beego/orm" "github.com/astaxie/beego/validation" "os" "strconv" ) type RegController struct { beego.Controller } func (this *RegController) Get() { sess_username, _ := this.GetSession("us...
GO
controllers/registration.go
adromaryn/kate
mit
1,856
65
codeparrot/github-code
e9fa612229184a2f83571b9bfcf4949e31a1fdbde821aea96baec039e3b97967
from __future__ import division import random import matplotlib.pyplot as plt from pylab import figure, axes, pie, title, show from mpl_toolkits.mplot3d import Axes3D import csv import math import numpy as np import matplotlib.cm as cm class Neuron: def __init__(self, x, y, z): self.x = x self.y =...
Python
Project_3/bayesian_imitation_learning/task3.py
ElchinValiyev/GameAI
mit
2,142
62
codeparrot/github-code
b9c31c24638eb8bfcf50ac10965cfb966d65d112361d9cbee974511dc7656ed3
from src.Coordinate import Coordinate as C from src.Move import Move from src.Piece import Piece WHITE = True BLACK = False class King (Piece): stringRep = 'K' value = 100 def __init__(self, board, side, position, movesMade=0): super(King, self).__init__(board, side, position) self.mov...
Python
src/King.py
marcusbuffett/command-line-chess
mit
4,542
112
codeparrot/github-code
d75eedc293b518b5fbf61a42da0a15d87e581e01f05cd9d45549086be84ecc50
// // Copyright (c) 2008-2016 the Urho3D project. // // 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, mod...
C++
Source/Urho3D/UI/View3D.cpp
luveti/Urho3D
mit
4,899
179
codeparrot/github-code
4399a2624cccab86995aea241ce69c871d47ce61bfe9499a063c578bff06b63f
using System; using Cassandra.Mapping.Attributes; namespace Abc.Zebus.Persistence.CQL.Data { [Table("PersistentMessage", CaseSensitive = true)] public class PersistentMessage { [PartitionKey(0)] [Column("PeerId")] public string PeerId { get; set; } [PartitionKey(1)] ...
C#
src/Abc.Zebus.Persistence.CQL/Data/PersistentMessage.cs
Abc-Arbitrage/Zebus.Persistence
mit
785
31
codeparrot/github-code
6a930382713b87b1817fb36b170c8f9588d85d4ccd278ff7493233fa9e6b526a
/** @file vtkCuda2DInExLogicTransferFunctionInformationHandler.h * * @brief Header file defining an internal class for vtkCudaVolumeMapper which manages information regarding the volume and transfer function * * @author John Stuart Haberl Baxter (Dr. Peters' Lab (VASST) at Robarts Research Institute) * @note Fi...
C
Visualization/vtkCudaVisualization/vtkCuda2DInExLogicTransferFunctionInformationHandler.h
VASST/RobartsVTK
mit
6,175
139
codeparrot/github-code
f7948c813c9db44d5c3b78a29c91eb751c9f72b13c096fe816c5c43ea33538ca
package com.denkovski.mihail.les.quatres.utility; import java.util.LinkedList; import java.util.Queue; import java.util.Stack; import com.denkovski.mihail.les.quatres.renderer.PuzzleRenderer; public class PuzzleAlgorithms { private static int x[] = {0, 1, 0, -1}, y[] = {1, 0, -1, 0}; private Queue<Position> qA...
Java
core/src/com/denkovski/mihail/les/quatres/utility/PuzzleAlgorithms.java
ikspeto/ChipMatch
mit
2,529
109
codeparrot/github-code
eead7c2b1b0c279400c797f71baa63417a95993d122fe031cc172973a270cae7
// modules ================================================= var express = require('express'); var app = express(); var bodyParser = require('body-parser'); var methodOverride = require('method-override'); var flash = require('connect-flash'); var passport = require('passport'); require('./app/config/passport')(pas...
JavaScript
index.js
jnadal/socnet_Erasmus_iberian
mit
2,002
56
codeparrot/github-code
f2b87fcf6e6404934335b1d422afa2ec06bb3594a3c84e9ee7d8174b9da0cf99
<?php class M_report extends CI_Model{ private $table="report_kcp"; private $primary="id"; private $join="kcp"; private $key="kcp.id_kcp=report_kcp.id_kcp"; private $select="id,cabang.nama_cabang,kcp.nama_kcp,index_nilai"; function get(){ $this->db->select('kcp.id_kcp,nama_kcp,cabang.nama_cabang,report_kcp.ind...
PHP
application/modules/api/models/M_report.php
jamalapriadi/bjb
mit
10,630
380
codeparrot/github-code
1d7137f699ac01db5286cdc29cec78511c19db8472bf8d9f25e8296a784d102c
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>cats-in-zfc: 3 m 11 s 🏆</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" ...
HTML
clean/Linux-x86_64-4.02.3-2.0.6/released/8.5.0~camlp4/cats-in-zfc/8.5.0.html
coq-bench/coq-bench.github.io
mit
15,069
243
codeparrot/github-code
b50d567b133728f542e7a80f9f05ba5aa4b270a0c1b9d623616bf95c5cf7157e
<style> .nav-list{padding-right:15px;padding-left:15px;margin-bottom:0;} .nav-list-main{padding-left:0px;padding-right:0px;margin-bottom:0;} span.nav-toggle-icon{font-size:7px !important;top:-2px !important;color:#888 !important;} </style> <script type="text/javascript" src="http://maps.googleapis.com/maps/api/j...
PHP
application/views/main/home.php
vanhungpc/novaland
mit
7,282
244
codeparrot/github-code
ea6f351620310a0154ca7e01fb543cfa2acbc4c373805051a9634d5ecbd049d1
package controller import ( "github.com/duguying/judger/core" "github.com/duguying/judger/judge" "github.com/duguying/judger/models" "github.com/gogather/com" "io" "net/http" "runtime" ) // login controller type LoginController struct { core.ControllerInterface } func (this *LoginController) Tcp(data map[str...
GO
controller/judge.go
zyfdegh/judger
mit
4,496
183
codeparrot/github-code
7a7df3916c4f0a9fad704f8355ac1099c80843992aca070ad9efc688166313f1
import {describe, it} from "mocha" import {expect} from "chai" import setResponseTimeElapsed from "./index" describe("server/flow/setResponseTimeElapsed()", () => { const state = { response: {}, request: {}, environment: { flow: { responseTimeStart: process.hrtime() } } } it(...
JavaScript
server/flow/setResponse/setResponseTimeElapsed/test.js
libmythoas/mythoas.js
mit
909
36
codeparrot/github-code
10c83cd96aa772c35172b2c9424820418ccd3cbf74b3f68cd52df2676d991884
#if DEBUG using Locana.DataModel; using System; using System.Collections.Generic; using System.Threading.Tasks; #endif namespace Locana.Playback.Operator { #if DEBUG public class DummyContentsOperator : RemoteContentsOperator { public DummyContentsOperator() { TitleText = "Dummy st...
C#
Locana/Playback/Operator/DummyContentsOperator.cs
locana/locana
mit
2,181
84
codeparrot/github-code