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
9735b22eb886058fe3acc1530c222d4db8a5add7187b33fcb468896c6063b899
from datetime import date from openpyxl import load_workbook if __name__ == '__main__': wb = load_workbook('FixedCouponBond.xlsx') ws = wb.active # Take the input parameters today = ws['C2'].value.date() # OIS Data ois_startdate = today ois_maturities = [] ois_mktquotes = [] for c...
Python
fixedcouponbond_project.py
gabberthomson/fm_finpy
mit
1,921
65
codeparrot/github-code
4849ab259bf3057b457609f57b78bc672ca3c0a543eb75b00b8eda8418e85d19
#include <libpov.h> int main(void) { negotiate_type2(); do { unsigned char *read_00000; unsigned int read_00000_len; unsigned int read_00000_ptr = 0; //**** length read read_00000_len = 4; read_00000 = (unsigned char*)malloc(read_00000_len); int read_00000_res = length_re...
C
original-challenges/SIGSEGV/pov_1/pov.c
f0rki/cb-multios
mit
24,893
383
codeparrot/github-code
0d88dedfa20e030f8444b25c2ebf3ec34751ed2320f102c3d6fd60e31076567f
const userDao = require('../dao/user'), tokenDao = require('../dao/token'), appDao = require('../dao/app'), tokenRedisDao = require('../dao/redis/token'), userRedisDao = require('../dao/redis/user'), passport = require('../service/passport'), STATUS = require('../common/const').STATUS, ERROR...
JavaScript
controller/user.js
mane115/ucenter
mit
3,028
87
codeparrot/github-code
3368d210f381cadaf357d25ae8d9e429b32c6b5874ad180e8f4d1632f1d35cfd
#ifndef SCOPEGRAPH_AGENT_BASE_H__ #define SCOPEGRAPH_AGENT_BASE_H__ #include <cohear/Sender.h> #include <cohear/Receiver.h> namespace sg { namespace detail { class AgentBase { public: AgentBase() { _sender.registerSlot(_agendAdded); } void connect(AgentBase& other) { getSender().connect(other.getReceiver...
C
detail/AgentBase.h
funkey/scopegraph
mit
970
52
codeparrot/github-code
246bf148f22b4d3cb5de518bbf35afcbd2c63d73ce02c3d5959faae741fdebec
/** * modal api */ export default { methods: { /** * 点击 Full 的导航按钮 */ clickFullNav() { if (this.commit) { this.no() } else { this.hide() } }, /** * 显示pop * * @param {Number} - 当前页码 * @return {Object} */ show() { this.mo...
JavaScript
package/component/module/Modal/Modal.api.js
zen0822/vue2do
mit
3,423
208
codeparrot/github-code
366a8c19cb0427d287aa11f7fddd89c1b6f966fb5281f925185c9af39eca81a4
/* * Copyright AllSeen Alliance. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED ...
Java
alljoyn/alljoyn_java/samples/android/basic/client/src/org/alljoyn/bus/samples/basicclient/Client.java
Vovkasquid/compassApp
mit
15,912
386
codeparrot/github-code
f14f0169ac71abc339df3f395e319431f3ac45ed1df30cf9931ef2126f04cac8
#!/usr/bin/python # -*- coding: utf-8 -*- ########## boafi Pentest script ########## - Perform various pentests automatically and save reports for further study ########## - Features/TODOs: Ipv6,DHCP,DNS,NTP,exploits,mitm.. ########## - Router bruteforce for easy guessable passwords ########## - Scan networks hosts and...
Python
BoafiPenTest.py
fnzv/Boafi
mit
12,449
324
codeparrot/github-code
19cdeaa0b605eff3c57b9feb581f6eee8176d47a32add6e4cc3db5a1deff791d
(function() { 'use strict'; /** * @ngdoc function * @name app.service:badgesService * @description * # badgesService * Service of the app */ angular .module('badges') .factory('BadgesService', Badges); // Inject your dependencies as .$inject = ['$http', 'someSevide']; // function Name ($http,...
JavaScript
client/app/modules/badges/badgesService.js
ltouroumov/amt-g4mify
mit
1,377
65
codeparrot/github-code
240fa8936288bf527aa7e7b9fc2f0a9b00b97c35d9302f243842377c439f32c6
import React from 'react'; import renderer from 'react-test-renderer'; import { data, renderers, expectors } from '../../test-utils'; import ImmutableVirtualizedList from '../ImmutableVirtualizedList'; describe('ImmutableVirtualizedList', () => { it('renders with empty data', () => { expectors.expectVirtualize...
JavaScript
src/ImmutableVirtualizedList/__tests__/ImmutableVirtualizedList.test.js
cooperka/react-native-immutable-list-view
mit
3,559
125
codeparrot/github-code
79571ec6a856a315bebe0c7f5bf69068e9759d8886344fec4d05063f60e9e951
/*Owner & Copyrights: Vance King Saxbe. A.*//*Copyright (c) <2014> Author Vance King Saxbe. A, and contributors Power Dominion Enterprise, Precieux Consulting and other contributors. Modelled, Architected and designed by Vance King Saxbe. A. with the geeks from GoldSax Consulting and GoldSax Technologies email @vsaxbe@...
PHP
App/WANT WANT CHINA.php
VanceKingSaxbeA/HangSeng-Engine
mit
9,289
260
codeparrot/github-code
c98af38a8281d65138ede41a8be801d0d2d62a14f568ff9fb099f16387444324
describe("Quiz API Tests", function() { var api; var mock; beforeAll(function(done) { api = Playbasis.quizApi; mock = window.mock; window.acquireBuiltPlaybasis(); done(); }); describe("List Active Quizzes test", function() { beforeAll(function(done) { done(); }); it("should return success", fu...
JavaScript
test/api.quiz.test.js
playbasis/native-sdk-js
mit
4,574
195
codeparrot/github-code
88db06e98755f9035a383ecf41945d1f2fe6f1abb4b4f81f88a35a0156016edf
package com.elmakers.mine.bukkit.heroes; import org.bukkit.Bukkit; import org.bukkit.ChatColor; import org.bukkit.command.CommandExecutor; import org.bukkit.plugin.Plugin; import org.bukkit.plugin.java.JavaPlugin; import com.elmakers.mine.bukkit.heroes.utilities.CompatibilityUtils; import com.herocraftonline.heroes.H...
Java
src/main/java/com/elmakers/mine/bukkit/heroes/HotbarPlugin.java
elBukkit/HeroesHotbar
mit
2,501
76
codeparrot/github-code
df3cbb05ef497994d0ae46cc07cca8bac862a5fff5bf302530dc7cde2f81b7a5
// Copyright (c) Lex Li. All rights reserved. // // Licensed under the MIT license. See LICENSE file in the project root for full license information. /* * Created by SharpDevelop. * User: lextm * Time: 11:06 AM * * To change this template use Tools | Options | Coding | Edit Standard Headers. */ namespace Je...
C#
JexusManager/Features/Main/SitesFeature.cs
68681395/JexusManager
mit
17,506
529
codeparrot/github-code
9d1b30276fcee717e732baa00aee4e039cb9bf101899a28f8a8348aeb6ee18cb
/* * PlayDirector.h * * Created on: 12.5.2015 * Author: mikko */ #ifndef PLAYDIRECTOR_H_ #define PLAYDIRECTOR_H_ #include "Stage.h" #include "Robot.h" #include "Script.h" #include "MVision.h" #include "ArduinoConnection.h" #include <thread> class PlayDirector { Script* script; Stage* stage; MVision*...
C
Proxy/PlayDirector.h
ScifestJoensuu/theater-robot
mit
1,015
50
codeparrot/github-code
917121275dafc75616979b88f5a680c7221a67d20b1c43daed83168d1df7e9a1
using System; using System.Threading.Tasks; using Microsoft.Extensions.Logging; using Orleans.Runtime.Configuration; using Orleans.Runtime.Scheduler; namespace Orleans.Runtime.Counters { internal class SiloPerformanceMetrics : ISiloPerformanceMetrics, IDisposable { internal OrleansTaskScheduler Schedul...
C#
src/Orleans.Runtime/Counters/SiloPerformanceMetrics.cs
waynemunro/orleans
mit
6,142
194
codeparrot/github-code
2f77be299e3477eab3f8ad58207a3b0699c98a8ba06ccea4a940ebb1e48c6cc5
// // RDThomas.h // Thomas // // Created by lihui on 2017/1/5. // Copyright © 2017年 org.richard. All rights reserved. // #import <Foundation/Foundation.h> #import "RDMacros.h" //! Project version number for RDSysUrlSchemeSession. FOUNDATION_EXPORT double RDSysUrlSchemeSessionVersionNumber; //! Project version s...
C
Thomas/RDThomas.h
RichardLeeH/Thomas
mit
2,399
80
codeparrot/github-code
e2d4807e8374a0ba6d0b35062ec44ddd67ae69bb66f31f81b1b29d251a417487
<!--| | Copyright © 2016 by Esolz Technologies | Author : debojit.talukdar@esolzmail.com | | http://www.esolz.net/ | | All rights reserved. This page is used for edit my account info. |--> <?php //echo '<pre>'; print_r($all_details) ;?> <style> ul#ui-id-1 { height: 300px !important; overflow-y: auto !import...
PHP
application/views/admin/data_form/edit_form.php
ArijitK2015/love_-architect
mit
15,643
355
codeparrot/github-code
d39561447aed88ced5b4de6d98244b6c3866ea2ba76cfa70db098547c2cc85ec
/*! 一叶孤舟 | qq:28701884 | 欢迎指教 */ var bill = bill || {}; //初始化 bill.init = function (){ if (com.store){ clearInterval(bill.timer); bill.setBillList(com.arr2Clone(com.initMap)); //写入棋谱列表 play.isPlay=false; com.show(); }else { bill.timer = setInterval("bill.init()",300); } } //把所有棋谱写入棋谱列表 bill.setBillL...
JavaScript
games/web_chess/js/bill.js
xuchanggui/website
mit
1,993
99
codeparrot/github-code
edb496fa07e06a9ff50eb070a77529216dffc08053f98e6eca2d2feca386562d
package PopDynamics; import java.util.Arrays; import static General.Ops.*; /** * Calculates the power method * Created by Justin Joe */ public class PowerMethod { private double eigenValApprox; private double[][] eigenVecApprox; private double iterationNum; public PowerMethod(double eigenValApprox...
Java
src/PopDynamics/PowerMethod.java
brain-murphy/calcproject
mit
2,174
65
codeparrot/github-code
b7e3825c3ad44a6d6fe0dcf397df21077ae2cbedd8d733bf30fbb406eb88a723
package com.dianping.loader; import java.util.List; import android.content.Intent; import android.content.pm.ResolveInfo; import android.os.Bundle; import android.util.Log; import android.view.Gravity; import android.view.ViewGroup; import android.widget.FrameLayout; import android.widget.TextView; import com.dianpi...
Java
Host/src/com/dianping/loader/ForwardActivity.java
djun100/AndroidDynamicLoader
mit
2,961
107
codeparrot/github-code
a6f7b38a87ee04e863846d0cc888945125328ecbbe72a1d52bbb4fc38452d00a
"use strict"; var now = Date.now; var CircleQueue = require("../../misc/CircleQueue.js"); function TransCommandQueue(mainQueue, object) { CircleQueue.call(this); this.object = object; this.mainQueue = mainQueue; } TransCommandQueue.prototype = { __name__ : "TransCommandQueue", "__proto__" : CircleQueue.prototy...
JavaScript
lib/data/mysql/TransCommandQueue.js
majianxiong/beejs
mit
955
51
codeparrot/github-code
65ffef11f6e3f1c1d0d49642c3b3c5db309e706193986746a795c5f0340b7f52
package mod.mindcraft.advancedmaterials.tileentity; import java.util.ArrayList; import java.util.HashMap; import java.util.Map.Entry; import mod.mindcraft.advancedmaterials.integration.component.ItemNuclearReactorComponent; import mod.mindcraft.advancedmaterials.integration.component.ItemNuclearReactorFluidComponent;...
Java
src/main/java/mod/mindcraft/advancedmaterials/tileentity/TileEntityNuclearReactor.java
EdwinMindcraft/AdvancedMaterials
mit
18,124
525
codeparrot/github-code
c76a49dfec236d30344894b061aecd1fba7fb90f7904999d3a86e878ccaee2ae
using System.Collections.Generic; namespace LiteNetLib { internal sealed class SequencedChannel { private ushort _localSequence; private ushort _remoteSequence; private readonly Queue<NetPacket> _outgoingPackets; private readonly NetPeer _peer; public SequencedChannel(N...
C#
Assets/Simulation/Network/LiteNetLib/SequencedChannel.cs
theIedU/Lockstep
mit
1,378
53
codeparrot/github-code
375d05fc5dd8f9f4c6f4cd8002e0bfec1d2fd5276c67fb5f91d87ccdeec48ceb
############################################################################### # # FileUtil.pm # # Helper class for files # ############################################################################### package plsearch::FileUtil; use strict; use warnings; # use XML::Simple; use Data::Dumper; use File::Basename; u...
Perl
perl/plsearch/lib/plsearch/FileUtil.pm
clarkcb/xsearch
mit
1,363
76
codeparrot/github-code
50e55ea1120fdf1c9e0b7ceb9b90ed32d2f9b8b1204db44d4e6e9da5e7f62198
package cs.ox.ac.uk.sors; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; import org.deri.iris.api.basics.ITuple; public class TopKAlgorithms { protected static Set<ITuple> getSkiline(Prefe...
Java
GSorsOx/src/cs/ox/ac/uk/sors/TopKAlgorithms.java
personalised-semantic-search/GSorsOx
mit
4,675
168
codeparrot/github-code
df3de1f10f86203a02a2219000a14bb596c75f4ce2d20ce8322e4242e0d42364
# # Authors: Christopher M Wood (<woodc@us.ibm.com>) # John F Hutchinson (<jfhutchi@us.ibm.com) # © Copyright IBM Corporation 2015. # # LICENSE: MIT (http://opensource.org/licenses/MIT) # class Vnic attr_accessor :virtual_slot_num, :is_ieee, :vlan_id, :additional_vlan_ids, :is_trunk, :is_re...
Ruby
lib/rbvppc/vnic.rb
pseries/rbvppc
mit
1,334
35
codeparrot/github-code
beae4f615e5bbd091c3e750972d556c13eaaeec99fcd89859a1c50e8eda47724
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of'); var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf); var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck'); var _classCallCheck3...
JavaScript
src/components/common/icons/status/Label.js
abzfarah/Pearson.NAPLAN.GnomeH
mit
2,134
70
codeparrot/github-code
e89a359cbd6f3e39e6a24f9f83bf7d38f7340916ad472f014f975df78b619714
import {Component, OnInit, ViewChild} from '@angular/core'; import {Api} from "@catflow/Api"; import {PublishSubject} from "@frontend/util/PublishSubject"; @Component({ selector: 'app-test-playground', templateUrl: './test-playground.component.html', styles: [] }) export class TestPlaygroundComponent implements ...
TypeScript
frontend-angular/src/app/test-playground/test-playground.component.ts
JeyRunner/openHabAI
mit
799
34
codeparrot/github-code
4d7874dd01323ed9b94656e9d5af8c9eaeae6b78ce9a20c281218593c483db96
<?php namespace Concrete\Core\Legacy\Controller; use Controller; use Environment; use BlockType; use \Concrete\Core\View\DialogView; class ToolController extends Controller { public function getTheme() { return false; } public function display($tool) { $env = Environment::get(); $query = false; if (substr(...
PHP
concrete/src/Legacy/Controller/ToolController.php
christiandmiles/cloud9-concrete5
mit
1,422
55
codeparrot/github-code
0f9de67419ad012d7921957160ebf874b2dc1b88892a49c26fd9c6e7e47dbc81
package main import ( "bufio" "fmt" "io" "sort" "strings" "github.com/mauricioklein/text-search-engine/ranking" "github.com/mauricioklein/text-search-engine/report" ) // QuitSentence defines the sentence, read from the // input stream, to quit the console const QuitSentence = ":quit" // Console defines an in...
GO
console.go
mauricioklein/text-search-engine
mit
2,852
133
codeparrot/github-code
a185fd489972cbe4d2e6527a487af3851d58127fdaade99e898cf476179d1643
package synapse import ( "fmt" ) // Handler is the interface used // to register server response callbacks. type Handler interface { // ServeCall handles a synapse request and // writes a response. It should be safe to // call ServeCall from multiple goroutines. // Both the request and response interfaces // b...
GO
handler.go
tinylib/synapse
mit
1,943
77
codeparrot/github-code
bfcb3010dd5e17250380714718034f9eb23d85c1be477e2419aebdaf3c2c5f40
// // This source file is part of appleseed. // Visit http://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2010-2013 Francois Beaune, Jupiter Jazz Limited // Copyright (c) 2014-2017 Francois Beaune, The appleseedhq Organization // ...
C
src/appleseed/renderer/modeling/scene/containers.h
aytekaman/appleseed
mit
8,512
265
codeparrot/github-code
167644b7d4110c958d462f176cc452e9a8ee8d96bcd256c8d5766664e5c0d367
<?php if (!$IWEB_SHOP_IN) { die('Hacking attempt'); } class time_class { public $format; public $time_difference = 0; function __construct($timezone = 8) { $this->time_difference = $timezone * 3600; } //参数定制的时间 function custom($format = 'Y-m-d H:i:s') { ...
PHP
trunk/foundation/ctime.class.php
hisuley/gds
mit
742
41
codeparrot/github-code
61017e184b6c4d1aa143538b7c2640e3c274e4bcb4b129128cc7033d1226a5c3
class Auth::Workflow::Stage include Auth::Concerns::WorkflowConcern FIELDS_LOCKED_AFTER_ORDER_ADDED = ["applicable"] embeds_many :sops, :class_name => Auth.configuration.sop_class embedded_in :assembly, :class_name => Auth.configuration.assembly_class field :name, type: String field :description, type: Strin...
Ruby
app/models/auth/workflow/stage.rb
wordjelly/Auth
mit
1,523
73
codeparrot/github-code
20ad4f4608054b4e91d3acd6ec090f13d1fa3f40dd73f013c5d23d99057167fe
# Rails helper module for navigation module Fabl module Assets module NavHelper # Breadcrumbs def breadcrumbs breadcrumbs = [] if breadcrumbs.empty? breadcrumbs << link_to(views["breadcrumbs"]["title"], views["breadcrumbs"]["url"]) breadcrumbs << link_to('CLIO', bo...
Ruby
app/helpers/fabl/assets/nav_helper.rb
cul/fabl-assets
mit
1,708
60
codeparrot/github-code
cf0495c120b8536136a7e4b4228961902f8ed90890f75c5c07ae9e47db094254
<?php namespace Ens\JobeetBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Symfony\Component\Security\Core\SecurityContext; class DefaultController extends Controller { public function indexAction($name) { return $this->render('EnsJobeetBundle:Default:index.htm...
PHP
src/Ens/JobeetBundle/Controller/DefaultController.php
carbamide/Jobeet
mit
1,052
34
codeparrot/github-code
3f8fcc0fbfe40336e3ca08bccea88e8744b9bbeb1ee27d9b3ffae0d5b3b8a39e
namespace EventPipelines; public class EventHandlersBuilder { private readonly List<IEventHandler> eventHandlers = new(); private EventHandlersBuilder() { } public static EventHandlersBuilder Setup() => new(); public EventHandlersBuilder Handle<T>(T eventHandler) where T : class, I...
C#
Sample/EventPipelines/EventPipelines/Builder.cs
oskardudycz/EventSourcing.NetCore
mit
2,310
69
codeparrot/github-code
af4d38af6619b878e8d710b585390cb89f00325c8fe151373bb747991b2057dd
namespace QDocNetGui.UI { using System.Windows.Forms; using QDocNetLib; using QDocNetLib.Persistence; public class MainFormController { public MainFormController() { this.Form = new MainFormView(); this.Form.Closed += (o, evt) => Applic...
C#
QDocNetGui/UI/MainFormController.cs
Baltasarq/QDocNet
mit
3,723
129
codeparrot/github-code
40c7dcfcb59e506d2f52bfaf8fc21962eb17e50e9b5ad5a8333c2efa4b6d17ae
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using static Evbpc.Framework.Utilities.Extensions.StringExtensions; namespace Evbpc.Framework.Utilities.Serialization.DelimitedSerialization { /// <summary>...
C#
Evbpc.Framework/Utilities/Serialization/DelimitedSerialization/DelimitedSerializer.cs
EBrown8534/Framework
mit
17,893
499
codeparrot/github-code
2503ae02a85e0f40357a69a16a44653cad7a4e1c78d96a7ee990757b6bf292c8
function DashboardController($scope, $state, $stateParams, dashboardFactory) { var dc = this; dc.playerStats = {}; dc.itemForAuction = {}; dc.auctionStarted = false; // Called on page load to retrieve player data dashboardFactory.getData(dashboardFactory.getName()).then(function(response) { ...
JavaScript
public/src/components/dashboard/dashboard-controller.js
juliuscalahi/crossover
mit
1,912
63
codeparrot/github-code
e5a73e3b89b9d36fadcda03eb51180c788c33a07186193ffc6ba6181e87df87f
from collections import defaultdict import re import sys from stop_words import STOP_WORD_SET from collections import Counter PUNCTUATION_RE = re.compile("[%s]" % re.escape( """!"&()*+,-\.\/:;<=>?\[\\\]^`\{|\}~]+""")) DISCARD_RE = re.compile("^('{|`|git@|@|https?:)") def remove_stop_words(word_seq, stop_words): ...
Python
worker/word_count.py
sprin/heroku-tut
mit
1,663
54
codeparrot/github-code
81cb0a5986a510f27c9db728d5d6eda0878e18c5d730ded89ffe60cdfccc7cc5
//+build cgo package utub import ( "strings" "gopkg.in/olebedev/go-duktape.v2" ) type duktapeJSEngine struct{} func (js duktapeJSEngine) Name() string { return "Duktape" } func (js duktapeJSEngine) Available() bool { return true } func (js duktapeJSEngine) Exec(code string) (string, error) { ctx := duktape....
GO
js_cgo.go
nlordell/utub
mit
623
38
codeparrot/github-code
84c76f7722f5475561e4723eb9c49317091fec49fc369fc844989ecbcd738375
using System; using NetRuntimeSystem = System; using System.ComponentModel; using NetOffice.Attributes; namespace NetOffice.MSHTMLApi { /// <summary> /// DispatchInterface IHTMLElementCollection4 /// SupportByVersion MSHTML, 4 /// </summary> [SupportByVersion("MSHTML", 4)] [EntityType(EntityType.IsDispatchInte...
C#
Source/MSHTML/DispatchInterfaces/IHTMLElementCollection4.cs
NetOfficeFw/NetOffice
mit
4,522
141
codeparrot/github-code
cd5596eb105d1717205eafd65065dcc63dd1fb34232860f7335da29094c51051
using System; using System.Collections; using System.Collections.Generic; using System.Globalization; using System.Runtime.InteropServices; using System.Runtime.Serialization; using System.Numerics; using System.Linq; using GlmSharp.Swizzle; // ReSharper disable InconsistentNaming namespace GlmSharp { /// <summar...
C#
GlmSharp/GlmSharp/Mat4x2/cmat4x2.glm.cs
Philip-Trettner/GlmSharp
mit
1,035
38
codeparrot/github-code
b54de6de19928dc79a0dace6183b675280010e6d3e76511c7e99ff60c5cc322e
#include "globalgamefilemanager.h" #include "../shared/server-editor/server_gamefile.h" #include "../common/null.h" #include <dc/debug> #include "../shared/server-editor/serveratlas.h" #include "../shared/evidyon_avatar.h" #include "../shared/server-editor/magicdescription.h" #include "../shared/server-editor/serverspe...
C++
Evidyon/apps/server/globalgamefilemanager.cpp
karlgluck/evidyon-2.10
mit
22,054
548
codeparrot/github-code
53219bcf9056cf295a1144cbcbc1b26a70554d034be8fbd455c361ce5760c6ec
export default class Paths { /* url, path, relative path... anything */ static normalizePath(path, base, root=lively4url) { base = base.replace(/[^/]*$/,"") // if it is not a dir var normalized = path if (path.match(/^[A-Za-z]+:/)) { // do nothing } else if (path.match(/^\//)) { nor...
JavaScript
src/client/paths.js
LivelyKernel/lively4-core
mit
1,198
51
codeparrot/github-code
254c4c8a726c0242e95003fc94504538a5f9296a38916b32335fc42091b186e4
// This code is part of the Fungus library (https://github.com/snozbot/fungus) // It is released for free under the MIT open source license (https://github.com/snozbot/fungus/blob/master/LICENSE) using UnityEngine; namespace Fungus { /// <summary> /// Quits the application. Does not work in Editor or Webplaye...
C#
Assets/Fungus/Scripts/Commands/Quit.cs
snozbot/fungus
mit
1,014
34
codeparrot/github-code
0ec3abdd5f4aa318094bc2dee5fe698d40b3add751d7634fd084abd7ecf331ce
/** * Copyright (c) 2014 brian@bevey.org * * 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, pu...
JavaScript
apps/conditional/airFilterWhenSmoggy.js
imbrianj/switchBoard
mit
4,094
109
codeparrot/github-code
753f6f118396b99e758a59f91efab95b2b98c4c495a2349cb1df27db80affc2d
import {stats} from './stats.js'; import {core} from './core.js'; import {tasks} from './tasks.js'; const scenesRenderInfo = {}; // Used for throttling FPS for each Scene const tickEvent = { sceneId: null, time: null, startTime: null, prevTime: null, deltaTime: null }; const taskBudget = 10; // M...
JavaScript
src/loop.js
xeolabs/xeoengine
mit
3,405
108
codeparrot/github-code
73a9549079e0bd509a268cb7a2cc2aa2498fc6f71ddae6ba43022ded7e470795
// *********************************************************************************** // Created by zbw911 // 创建于:2014年02月13日 11:41 // // 修改于:2014年02月13日 17:00 // 文件名:Dev.KeywordExtract/Dev.KeywordExtract.Test/UnitTestDefaultParser.cs // // 如果有更好的建议或意见请邮件至 zbw911#gmail.com // ***********************...
C#
Src/Dev.KeywordExtract.Test/UnitTestDefaultParser.cs
zbw911/KeywordExtract
mit
2,281
57
codeparrot/github-code
4958b6528742f9738ae1627264e624911eb1771c14c4dfade9e05760cd0d018d
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import unicode_literals import os import socket import traceback from lineup.datastructures import Queue class Node(object): def __init__(self, *args, **kw): self.initialize(*args, **kw) def initialize(self, *args, **kw): pass ...
Python
lineup/framework.py
pombredanne/lineup
mit
1,964
80
codeparrot/github-code
be5851cd3755b1a56d755fcb3f8bac6ece2f91844f352c65b3ccfcc260f788fe
var page = require('page'), csp = require('js-csp'); class Router { constructor(routes){ this.routes = routes; this.chan = csp.chan(); this.nextTransition = null; this.nextEl = null; // Setup channel listening for(var r in routes) this.listenToRoute(r);...
JavaScript
client/router/Router.js
gcao/weiqi-app
mit
771
42
codeparrot/github-code
e5487edab299e16c77c0aa8099d4aa5e3719ceb73bc9ca1aeece542a8d238cf4
$(function() { function cellValue(val) { return { sortValue: val, displayValue: val.toString() }; } var yAxis = [{ id: 'store', name: 'Store' }, { id: 'clerk', name: 'Clerk' }]; var keyfigures = [{ id: 'nocustomers', name: 'Customers' }, { id: 'turnover', name: 'Turnover' }]; // normally ...
JavaScript
examples/simple-expand/example.js
arj03/datagrid
mit
4,693
76
codeparrot/github-code
fbe82102ce7caef8f6c6aedaf8d6ff1211d776c26fe08321ba0b789f2e051e25
package helvidios.cp.ch1.medium; import java.util.Scanner; public class _10919_Prerequisites { public static void main(String... args){ String data = "3 2\r\n" + "0123 9876 2222\r\n" + "2 1 8888 2222\r\n" + "3 2 9876 2222 7654 \r\n" + "3 2\r\n" + "0123 9876 2222\r\n" + "2 2 8888 2222\...
Java
cp-book/ch1/medium/_10919_Prerequisites.java
andrey-yemelyanov/competitive-programming
mit
1,819
66
codeparrot/github-code
ecfe4ad5281ce3d0bfaadc42d67efe0b76450c84e455ca730f2fd2d29e2e1523
/* * frame.h * * Created on: Feb 18, 2017 * Author: Brian Schnepp * License: See 'LICENSE' in root of this repository. */ #ifndef FRAME_H_ #define FRAME_H_ #include "PfInstance.h" #include "component.h" #include <string> #include <X11/Xlib.h> #include <xcb/xcb.h> /** * Base class for a frame on Pat...
C
PathToolKit/frame.h
bSchnepp/PathToolKit
mit
1,649
80
codeparrot/github-code
0f1b9dc54aa613fb6e8f2a7cbea5e566e08dc841bc9af08c3d0d364694d7da10
var socketio = require('socket.io'), dotProp = require('dot-prop'); /** * Constructs a Socket. * Socket manager powered by Socket.IO. * * @constructor */ function Socket(){ this.port = null; this.io = null; this.scope = {}; } Socket.prototype.start = function () { var self = this; var settings...
JavaScript
controllers/Socket.js
mateuscalza/master-of-puppets
mit
724
33
codeparrot/github-code
a976af93b40557953a8577fb315535cffe02c1285a26aae5fe40b8426ac01f82
#include <stdio.h> #include <unistd.h> #include <string.h> #include <sys/socket.h> #include <bluetooth/bluetooth.h> #include <bluetooth/l2cap.h> int main(int argc, char **argv) { struct sockaddr_l2 loc_addr = { 0 }, rem_addr = { 0 }; char buf[1024] = { 0 }; int s, client, bytes_read; unsign...
C
bluetooth/docs/btessentials/l2cap-server.c
bearlin/study_bluetooth_socket
mit
1,240
47
codeparrot/github-code
3ceb0160c4b1bf78927ea3b565ad848069e8d8f2dd8e58ff811a272ecea09d87
package uk.gov.dvsa.motr.web.system.binder.factory; import uk.gov.dvsa.motr.web.config.Config; import uk.gov.dvsa.motr.web.encryption.AwsKmsDecryptor; import uk.gov.dvsa.motr.web.encryption.Decryptor; import javax.inject.Inject; import static com.amazonaws.regions.Region.getRegion; import static com.amazonaws.region...
Java
webapp/src/main/java/uk/gov/dvsa/motr/web/system/binder/factory/AwsKmsDecryptorFactory.java
dvsa/motr-webapp
mit
879
36
codeparrot/github-code
f2b60f382586991caf9edee1d30c7869ec0a01c8a5805c38106dd4615e9ab770
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link id="favicon" href="favicon.ico" rel="icon" type="image/x-icon"> <title>GuessWhat</title> <!-- Google Fo...
HTML
index.html
NeenuAVarghese/guesswhat
mit
15,919
310
codeparrot/github-code
179771d7761aac8964f0ed6562db0f9589fc6cab39db9d345a76923d1f64e5d2
import datetime import os import shutil import time from files_by_date.utils.logging_wrapper import get_logger, log_message from files_by_date.validators.argument_validator import ArgumentValidator logger = get_logger(name='files_service') class FilesService: def __init__(self): raise NotImplementedErro...
Python
files_by_date/service/files_service.py
DEV3L/python-files-by-date
mit
4,825
115
codeparrot/github-code
09f892b6d723a661f0cc7ebc19035dcd509b8c2a88fc60e7d435e03cafc3fa63
// Copyright (c) 2012 DotNetAnywhere // // 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...
C
src/DNA/native/src/System.String.c
ncave/dotnet-js
mit
17,722
600
codeparrot/github-code
ba6e4623ca4e06e314914fb24538571b8ca51c7baa631ac33083fbefaa536742
import TestUtils from 'react-dom/test-utils'; import React from 'react'; import ReactDOM from 'react-dom'; import Textarea from '../'; const { findRenderedDOMComponentWithClass, renderIntoDocument, Simulate } = TestUtils; function fake() { return () => { return 'fake function'; } } describe('The inp...
JavaScript
src/components/input/textarea/__tests__/index.js
KleeGroup/focus-components
mit
3,437
78
codeparrot/github-code
3df4aaea1f3c8b025746f7ae8aeb5503f5c371d7277c5fe254261d5a849562ff
package gr.cryptocurrencies.bitcoinpos; import android.Manifest; import android.content.BroadcastReceiver; import android.content.ContentValues; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.content.IntentFilter; import android.content.SharedPrefe...
Java
app/src/main/java/gr/cryptocurrencies/bitcoinpos/HistoryFragment.java
karask/bitcoinpos
mit
34,785
795
codeparrot/github-code
fc9cf01efb5dc9051c84bc17dabb4297ec44685ccefbee3b7fcba0eaa4fbe3fb
using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.ComponentModel.DataAnnotations; using System.Globalization; using System.Reflection; using System.Runtime.Serialization; using System.Web.Http; using System.Web.Http.Description; using System.Xml...
C#
Allfiles/20487C/Mod11/DemoFiles/ClientAppUsingB2C/ClientAppUsingB2C.Server/Areas/HelpPage/ModelDescriptions/ModelDescriptionGenerator.cs
MicrosoftLearning/20487-DevelopingWindowsAzureAndWebServices
mit
19,097
451
codeparrot/github-code
9c17758135f5cf38d97cdbcb8ad6dcb05eda8ccfa825cceb798b00fa4ccd8c53
#!/usr/bin/env python3 # encoding: utf8 # license: ISC (MIT/BSD compatible) https://choosealicense.com/licenses/isc/ # This library is principally created for python 3. However python 2 support may be doable and is welcomed. """Use python in a more object oriented, saner and shorter way. # WARNING First: A word of w...
Python
fluent.py
dwt/BayesianNetworks
mit
46,242
1,124
codeparrot/github-code
365fd970debbf635d520d354e830b1eed707ed9dd85b711257b087df1f3f5810
/* Package core implements the IpfsNode object and related methods. Packages underneath core/ provide a (relatively) stable, low-level API to carry out most IPFS-related tasks. For more details on the other interfaces and how core/... fits into the bigger IPFS picture, see: $ godoc github.com/ipfs/go-ipfs */ packa...
GO
core/core.go
JustinDrake/go-ipfs
mit
21,829
789
codeparrot/github-code
fa11ee2d9bded75f9ea47a065f5d5e5c27d9d0bb3e929bf5ac4f279b551b36c3
from collections import OrderedDict as odict from values import decode_kv_pairs, encode_kv_pairs from loops import decode_loops, encode_loops def split_frames(lines): ''' splits a list of lines into lines that are not part of a frame, and a list of lines, where each list is part of the same frame. fr...
Python
frames.py
craigyk/pystar
mit
1,984
82
codeparrot/github-code
94fc9abd46449df9a8922880325c70786df4451e2a5bc8dde7fea8ceea1348b8
/* Fibonacci number generation The program takes an input N from the command line It uses a non-recursive technique to generate the value of N Checks for conditions mentioned in the coding challenge. */ #include <stdio.h> #include <stdlib.h> #include <math.h> // Checks if a number is prime int isPrime(long long n){ ...
C
fibonacci.c
sai-y/swift-coding-challenge
mit
1,162
65
codeparrot/github-code
24cee5a302b31d36527fa37ab9593798a2d3e40a2ee7046cd0dad757e03fdc34
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>compcert: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.cs...
HTML
clean/Linux-x86_64-4.05.0-2.0.1/released/8.14.0/compcert/3.7.html
coq-bench/coq-bench.github.io
mit
7,715
185
codeparrot/github-code
018e180d23d01da23a7e6ae020a5d23afcb7c257ce0734782b87036d0bf3088d
var arrayOfInts = [1, 10, -5, 1, -100]; function maxProduct(arr) { var smallest = 0; var almostSmallest = 0; var largest = 0; var second = 0; var third = 0; for(var i = 0; i < arr.length; i++ ) { if(arr[i] > largest){ third = second second = largest largest ...
JavaScript
3.js
15chrjef/Interview-Cake
mit
901
36
codeparrot/github-code
cf6f7a90d7fa383d5ea9a2f2e8146aaecae8b40e4b22712af793304c0f541738
import { Component } from "@angular/core"; import { emailPattern } from "../../core/utils/utils"; import { FormHandlerService } from "../../services/form-handler.service"; @Component({ selector: "bsc-reset-password", styleUrls: [ "reset-password.component.scss" ], templateUrl: "reset-password.component.html" }) ...
TypeScript
src/app/components/reset-password/reset-password.component.ts
battleship2/battleship2.0-client
mit
814
31
codeparrot/github-code
294ce04062028d4c6d67b389c00ffab91842b6d3e1c147ffefd66ff1d06af59f
'use strict'; function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } (function () { function pushComponent(array, component) { if (!array) { array = []; } a...
JavaScript
js/build.js
WillsonSmith/PageBuilderPrototype
mit
2,147
70
codeparrot/github-code
4afb3e40ccc84b6f7d0857a2916b9db18f255d83cdad92eb91cd8f45668d0760
//----------------------------------------------------------------------- // <copyright file="PageDetails.cs" company="Microsoft Corporation"> // Copyright (c) Microsoft Corporation 2011. All rights reserved. // </copyright> //----------------------------------------------------------------------- using System; ...
C#
src/WWTMVC5/Models/PageDetails.cs
WorldWideTelescope/wwt-website
mit
1,409
46
codeparrot/github-code
40b07d695b038de2cea92f525ebc6efd48f0033e96faa66b2e1d2518547a38d6
$('.counter').countTo({ formatter: function (value, options) { return value.toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, '$1,').slice(0,-3); } }); function updateCount(to) { $('.counter').countTo({ from: parseInt($('.counter').html().replace(/,/g, '')), to: to, formatter: funct...
JavaScript
js/app.js
aaranmcguire/aaranmcguire.github.io
mit
1,513
44
codeparrot/github-code
e61d5aa48150a2ac24cf47de92891b7dfa85be2061465d5aea46fe08ea080ead
<?php /** * CIMembership * * @package Libraries * @author 1stcoder Team * @copyright Copyright (c) 2015 - 2016 1stcoder. (http://www.1stcoder.com) * @license http://opensource.org/licenses/MIT MIT License */ if ( ! defined('BASEPATH')) exit('No direct script access allowed'); require_once APPP...
PHP
application/libraries/Paypal.php
SiliconSouthTech/farmeazy
mit
3,352
105
codeparrot/github-code
7beb4699b7d218fc36d11dd224b7c1dffca02ff43e27ff14c9621b501e2427e7
/* * Copyright (C) 2015 Actor LLC. <https://actor.im> */ package im.actor.core.js; import com.google.gwt.core.client.JsArray; import com.google.gwt.dom.client.Element; import com.google.gwt.http.client.URL; import com.google.gwt.i18n.client.LocaleInfo; import com.google.gwt.i18n.client.TimeZone; import com.google.g...
Java
actor-sdk/sdk-core/core/core-js/src/main/java/im/actor/core/js/JsFacade.java
ljshj/actor-platform
mit
57,870
1,786
codeparrot/github-code
ded11ead480f4485603422b8f05cca0ddaaea7a6d9960b3455cdf1ef31685b16
import * as request from 'request-promise'; const FRUKKOLA_URL = 'http://fruccola.hu/'; const FRUKKOLA_MENU_URL = 'http://fruccola.hu/admin/api/daily_menu'; const ARANY_ID = 1; interface IMenu { id: number; place_id: number; soup_hu: string; soup_en: string; dish_hu: string; dish_en: string; due_date: s...
TypeScript
src/restaurants/frukkola.ts
CodingSans/codingsans-food-slack-bot-lambda-serverless
mit
1,315
59
codeparrot/github-code
6cf52bcfeca1da11582af10f1082cf614a1dcf1e241b848bce218bdeb3210066
package wurmcraft.wurmatron.common.network.server; import cpw.mods.fml.relauncher.Side; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.network.PacketBuffer; import wurmcraft.wurmatron.common.config.Settings; import wurmcraft.wurmatron.common.network.Custo...
Java
src/main/java/wurmcraft/wurmatron/common/network/server/SendConfigSettings.java
Wurmcraft/WurmTweaks
mit
8,194
160
codeparrot/github-code
461b3e281397903acf378b8ea09dc13579b184780c3327cef1dd41cfabf1d6a4
//------------------------------------------------------------- // File: main.cpp // // Desc: ¸ð¼Çºí·¯ //------------------------------------------------------------- #define STRICT #include <windows.h> #include <commctrl.h> #include <commdlg.h> #include <basetsd.h> #include <math.h> #include <stdio.h> #include <d3dx9....
C++
7_sample/7_9_1_Blur/main.cpp
jjuiddong/Dx9-Shader
mit
18,077
617
codeparrot/github-code
96c01123e1455b264aabfc5c9cb5392a621441e82f46d290c940e8b5ffe16913
var through = require('through2'); var should = require('should'); var dat = require('dat'); var File = require('vinyl'); var bops = require('bops'); var vdat = require('..'); describe('dest stream', function () { var destPath = 'test/data/test-dest'; beforeEach(function (done) { var db = dat(destPath, fun...
JavaScript
test/dest.js
doowb/vinyl-dat
mit
1,375
61
codeparrot/github-code
782662200b1742b6f094f6b79f44db32161d7dc434f5ee84c76394213be5fc16
define([], function() { Path.map("#!/products").to(function(){ }).enter(function() { require([ 'tpl!template/products.html', 'tpl!template/username.html', 'tpl!template/product-tpl.html', 'bootstrap', 'bootstrapHover', 'utils' ], function(tpl, userTpl, productTpl) { pageStart(tpl, userTpl); function ...
JavaScript
js/app/routes/products.js
jakekh/Fat-Cloud
mit
2,161
89
codeparrot/github-code
f9cacc7cf719dfd703ae8eedc3b187555dcf99e36d0e99949a6d3a47d0143c53
""" Python test discovery, setup and run of test functions. """ import re import fnmatch import functools import py import inspect import sys import pytest from _pytest.mark import MarkDecorator, MarkerError from py._code.code import TerminalRepr try: import enum except ImportError: # pragma: no cover # Only ...
Python
_pytest/python.py
codewarrior0/pytest
mit
84,482
2,182
codeparrot/github-code
2c9ab4da3c6c275cd2ecc5bafaae463e77d99b26993e0b3113561215f0392325
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>coinduction: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min...
HTML
clean/Linux-x86_64-4.07.1-2.0.6/released/8.9.1/coinduction/1.2.html
coq-bench/coq-bench.github.io
mit
7,097
176
codeparrot/github-code
75651a668f8357a2ad6117f09417082841a0ea1ba3d55ed3607685416d85e872
import java.awt.*; import java.io.Serializable; import javax.swing.JFrame; public class run implements Serializable{ static String title = "Rebellion"; static Beginning begin = new Beginning(title); static Map map = new Map(title); static Data data = new Data(title); static Base base = new Base(title); static B...
Java
src/run.java
TardisX1/Rebellion
mit
1,151
43
codeparrot/github-code
9ab7cc72b2325728fa37007d7c0cf569fd6193cfe5b5057f3b76d39107a73d95
<?php /* |-------------------------------------------------------------------------- | Oculus XMS |-------------------------------------------------------------------------- | | This file is part of the Oculus XMS Framework package. | | (c) Vince Kronlein <vince@ocx.io> | | For the full copyright and license inf...
PHP
app/front/controller/shop/header.php
oculusxms/ocx
mit
7,644
173
codeparrot/github-code
8efc05a734c7e319288b5dcd35ca3c5bc3d582d818bce596f8f9854a0d7a1e3c
/** * aria support for slide * @author yiminghe@gmail.com */ KISSY.add("switchable-ext/slide/aria", function (S, DOM, Event, Switchable) { // var KEY_PAGEUP = 33; // var KEY_PAGEDOWN = 34; // var KEY_END = 35; // var KEY_HOME = 36; var KEY_LEFT = 37; var KEY_UP = 38; var KEY_RIGHT = 39;...
JavaScript
src/switchable/demo/extra-plugins/slide/aria.js
007slm/kissy
mit
2,837
115
codeparrot/github-code
3e71c0afcb8d3ce904334cd061f88ab91e2ef81449da6224698de6b2070d0e77
/* * Copyright (c) 2021 Felix Solcher * Licensed under the terms of the MIT license. */ package org.fnet.mcrconapi.cli; import java.io.Console; import java.io.IOException; import java.util.HashMap; import java.util.Map; import java.util.Scanner; import org.fnet.mcrconapi.AuthenticationException; import org.fnet.mc...
Java
src/main/java/org/fnet/mcrconapi/cli/CommandLineMain.java
fnetworks/mcrconapi
mit
5,397
173
codeparrot/github-code
e21273b7b8e12c2859e94191b44f6853f269e1cbc27a9634a90eb3c33cd233f4
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.Owin; namespace _05.DataBindingHomework.Account { public partial class VerifyPhoneNumber : System.Web.UI.Page ...
C#
Software Technologies/WebForms/05.DataBindingHomework/05.DataBindingHomework/Account/VerifyPhoneNumber.aspx.cs
dushka-dragoeva/TelerikSeson2016
mit
1,778
50
codeparrot/github-code
898e77b3dbd3c486e3998060731d0cb81dd04928cf717bc47b0ed8af16bbaf53
package com.gmail.trentech.pjp; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import org.slf4j.Logger; import org.spongepowered.api.Sponge; import org.spongepowered.api.command.CommandMapping; import org.spongepowered.api.config.ConfigDir; import org.spongepowered.api.da...
Java
src/main/java/com/gmail/trentech/pjp/Main.java
trentech/ProjectPortals
mit
10,662
267
codeparrot/github-code
aefc08ead7bbace6b71c4f40186d75c95f8b0d278e60cad0a4452c3e74abaed2
<?php require_once('includes/config.php'); ?> <!DOCTYPE html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js"> ...
PHP
about.php
MarcTowler/blog
mit
5,347
104
codeparrot/github-code
82ac38343614de1e387b40a9dee96fa13d381af35a62aef0e199ec97914973dc
import Immutable from 'immutable'; export const currentUser = Immutable.fromJS({ value: { _id: 'user/0', _rev: '55781764180', _key: '0', entityId: 'entities/0', }, }); export const entitiesWithoutAttribute = Immutable.fromJS({ value: { 'entities/0': { _id: 'entities/0', _rev: '55...
JavaScript
src/helpers/test/storesStubs.js
retaxJS/retax-seed
mit
1,837
92
codeparrot/github-code
3781fb4dd61253770de387cdf0121349d09e60c28aeb2baa9a33c10ca50dba98
namespace iControl { using System.Xml.Serialization; using System.Web.Services; using System.ComponentModel; using System.Web.Services.Protocols; using System; using System.Diagnostics; /// <remarks/> [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepTh...
C#
iControl/Interfaces/Networking/NetworkingVLAN.cs
F5Networks/f5-icontrol-library-dotnet
mit
58,995
1,378
codeparrot/github-code
60b60c8fb3b6cc3bf92eb0b3e238b1e51a98e7bfe40234f5d0746aff157d010f
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width" /> <link rel="shortcut icon" type="image/x-icon" href="../../../../...
HTML
google-play-services_lib/docs/reference/com/google/android/gms/maps/model/BitmapDescriptor.html
CMPUT301W15T05/TrackerExpress
mit
41,834
1,210
codeparrot/github-code
0c95247fc89447fbc5df0193858d5493436734f790dc1c08ec76e67c63fc10fc
// Given a collection of intervals, merge all overlapping intervals. // For example, // Given [1,3],[2,6],[8,10],[15,18], // return [1,6],[8,10],[15,18]. /** * Definition for an interval. * function Interval(start, end) { * this.start = start; * this.end = end; * } */ /** * @param {Interval[]} inter...
JavaScript
Algorithms/JS/arrays/matrices/mergeIntervals.js
Vrturo/Algo-Gem
mit
1,642
75
codeparrot/github-code
8ccf94be059aafbd70837b490ca53bf88eaf21d7e85f466a03bd875e2543c5ac
<?php class Rp3sus extends Admin_Controller { function __construct() { parent::__construct(); } public function index() { $data['page'] = $this->config->item('ci_my_admin_template_dir_admin') . "rp3sus/perkara_penyidikan_khusus_list"; $this->load->view($this->_container, $data); ...
PHP
application/modules/admin/controllers/Rp3sus.php
akbarsatria/test-pidsus-ci
mit
1,077
35
codeparrot/github-code
335731ee5f9ee7d3c634bc9b4e9594eea18b9ed5ba0119d112888eaf3f048550
<?php if(!defined('BASEPATH')) exit('No direct script access allowed'); /* * The MIT License (MIT) * Copyright (c) 2014 <T.H.M Kothalawala> * 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...
PHP
application/controllers/reports.php
pathumf89/AAFrecovery
mit
4,813
157
codeparrot/github-code
f3e5b8b1ae6a10c18b9bdcaa913bd64077539eb2faa65b384b5b449a55c9fb8b
use datastore::DataStore; use errors::*; use fillable::*; use futures; use futures::{Sink, Stream}; use futures::future; use futures::future::Future; use manifest::{BlockRequest, ManifestWithFile}; use metainfo::{InfoHash, MetaInfo}; use peer_protocol; use peer_protocol::{BitTorrentPeerCodec, Message, PeerID}; use slog...
Rust
src/downloader.rs
mlsteele/bittles
mit
24,810
696
codeparrot/github-code
add2f0b7f85ebadec7515d77dccd86dccf907004d800194085a7a14ee9068e2d
using System; using System.Collections.Generic; using System.ComponentModel; using System.Diagnostics; using System.Linq; namespace KLibrary.Labs.ObservableModel { [DebuggerDisplay("{Value}")] public abstract class SettablePropertyCore<T> : Junction<T> { public abstract T Value { get; set; } ...
C#
ObservableModelLab/ObservableModel/ObservableModel/ObservablePropertyBase.cs
sakapon/KLibrary-Labs
mit
2,656
97
codeparrot/github-code
8dbb6cd5a66e9b7af87459a132404b2961f4aa1b3b4ca89aed232d70a788d691
(function () { 'use strict'; angular .module('tables') .config(routeConfig); routeConfig.$inject = ['$stateProvider']; function routeConfig($stateProvider) { $stateProvider .state('tables', { abstract: true, url: '/tables', template: '<ui-view/>' }) .stat...
JavaScript
modules/tables/client/config/tables.client.routes.js
megatronv7/pos
mit
1,997
79
codeparrot/github-code
4677a5a25e30b5392d54f93c98dfb5c567c8150edf107a5fb2b1b31cbf0fd056
<?php /** * TOP API: taobao.kfc.keyword.search request * * @author auto create * @since 1.0, 2013-12-10 16:57:25 */ class KfcKeywordSearchRequest { /** * 应用点,分为一级应用点、二级应用点。其中一级应用点通常是指某一个系统或产品,比如淘宝的商品应用(taobao_auction);二级应用点,是指一级应用点下的具体的分类,比如商品标题(title)、商品描述(content)。不同的二级应用可以设置不同关键词。 这里的apply参数是由一级应用点与二级应用点合...
PHP
web/doc/Resources/open/taobao/taobao-sdk-PHP-online_standard-20131210/top/request/KfcKeywordSearchRequest.php
allengaller/mazi-cms
mit
1,426
86
codeparrot/github-code