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
7c82b2ae436403c14c49404752ba965e353c45703c21730fd80a52173e79eb6e
package com.campusapp.cuet; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.media.RingtoneManager; import android.net.Uri; import android.support.v4.app.NotificationCompat; import android.util.Log; import com.googl...
Java
app/src/main/java/com/campusapp/cuet/MyFirebaseMessagingService.java
kazi-mifta/Campus-App
mit
2,335
65
codeparrot/github-code
7d1816ca7944ef2b2e11554579e9afe4bf7291cdb650895091f7342b5125e2e2
/* * Copyright 2006 Sony Computer Entertainment Inc. * * Licensed under the MIT Open Source License, for details please see license.txt or the website * http://www.opensource.org/licenses/mit-license.php * */ #include <dae.h> #include <dae/daeDom.h> #include <dom/domLinestrips.h> #include <dae/daeMetaCMPolicy.h> #inc...
C++
src/collada-dom/1.4/dom/domLinestrips.cpp
veter-team/daeview
mit
2,685
103
codeparrot/github-code
596a773e83dba6336081fd8167a9694585a72a7181d377d025595a46db983e6e
/* * Copyright(C) 2010-2012 S1N1.COM * * File Name : SimpleTemplateEngine * Author : Administrator * Create : 2012/10/26 23:49:52 * Description : * Mofify: * 2013-04-11 10:29 newmin [+]: 添加TemplateAttribute特性判断是否为返回数据, 返回数据的方法不再限制为私有 * 2013-04-23 22:45 newmin [+]: 支持私有,公共,受保护的成员调用 * 2013-04-23 22:46 ne...
C#
src/core/J6.DevFw.Template/old/SimpleTplEngine.cs
atnet/devfw
mit
7,997
257
codeparrot/github-code
ec494ade603c08be9546a624863f7633507c0042d45c179d25cb6589b313092d
import Component from '@ember/component'; import { computed } from '@ember/object'; import { inject as service } from '@ember/service'; import { isEmpty } from '@ember/utils'; import { all } from 'rsvp'; import { task, timeout } from 'ember-concurrency'; import { validator, buildValidations } from 'ember-cp-validations...
JavaScript
app/components/user-profile-bio.js
thecoolestguy/frontend
mit
8,974
341
codeparrot/github-code
b5d206dd2ebf81f4a6aabaee62b34ba881d10f70fc385fff2122f1b709305cae
import { AnimationBuilder, AnimationFactory, AnimationPlayer } from '@angular/animations'; import { AfterViewChecked, Directive, ElementRef, EventEmitter, HostBinding, Input, Output, Renderer2 } from '@angular/core'; import { collapseAnimation, expandAnimation } from './collapse-animations';...
TypeScript
src/collapse/collapse.directive.ts
valor-software/ng2-bootstrap
mit
4,998
188
codeparrot/github-code
c2937a02f275eb4e5d17b7101e1ce9200e463477d57ce68d42afc6abbb36b354
package org.koherent.variance; import javax.lang.model.element.TypeParameterElement; public enum Variance { INVARIANT, COVARIANT, CONTRAVARIANT, BIVARIANT; private boolean covariant; private boolean contravariant; static { COVARIANT.covariant = true; CONTRAVARIANT.contravariant = true; BIVARIANT.covaria...
Java
src/org/koherent/variance/Variance.java
koher/Variance4J
mit
1,626
70
codeparrot/github-code
5f366c1aac76d8093f7e9879551b35a528a37f5a06a2286be614e2afee247d5b
{% extends "sitewide/flat_ui_template.html" %} {% load custom_tags %} {% load static %} {% block title %}All Controllers{% endblock %} {% block header_scripts %} <link href="{% static "css/dashboard_revised.css" %}" rel="stylesheet"> {% endblock %} {% block content %} <h1>Devices</h1> {% if not all_devices %} No fe...
HTML
app/templates/device_lcd_list.html
thorrak/fermentrack
mit
4,941
102
codeparrot/github-code
c8f9ec6d6b51786c99dc87bf0eef5036670f87969526337415e5cf6e76f0321b
package net.yazeed44.cdpnebot; import java.util.ArrayList; import java.util.HashMap; import org.telegram.BotConfig; import org.telegram.SenderHelper; import org.telegram.api.ForceReplyKeyboard; import org.telegram.api.Message; import org.telegram.api.Update; import org.telegram.methods.SendMessage; import org.telegram...
Java
src/net/yazeed44/cdpnebot/CdpneIntroBot.java
yazeed44/CdpneIntroTelegramBot
mit
8,206
315
codeparrot/github-code
5d8bce3e033f07a7d8fe5336240fa71036f5060741b72d6305124508423c1d58
/* * Responsive Slideshow - jQuery plugin * * Copyright (c) 2010-2012 Roland Baldovino * * Project home: * https://github.com/junebaldovino/jquery.resss.plugin * * Version: 0.1 * */ (function($){ var _this,settings; var methods = { init : function( options ) { return this.each(function(){ setti...
JavaScript
js/jquery.resss.js
wtfroland/jquery.resss.plugin
mit
7,122
253
codeparrot/github-code
92459eb7b84b4ceb5ad52e910c55b242a2b63b9d9475057e248c50b192ac4ae5
/* global bp, noEvents, emptySet */ /* * This little app adds bthreads dynamically. */ bp.log.info("Program Loaded"); // Define the events. var kidADone = bp.Event("kidADone"); var kidBDone = bp.Event("kidBDone"); var parentDone = bp.Event("parentDone"); bp.registerBThread("parentBThread", function () { ...
JavaScript
src/test/resources/AddingBthreads.js
bThink-BGU/BPjs
mit
1,097
41
codeparrot/github-code
de627b18ea856d70b890c870183fc70a27b39af51d9b09b8cc920fa0dbdec3f9
require 'aptible/auth' module Aptible module Api class Operation < Resource belongs_to :resource belongs_to :account belongs_to :destination_account has_many :ssh_portal_connections has_many :ephemeral_sessions field :id field :type field :status field :can...
Ruby
lib/aptible/api/operation.rb
aptible/aptible-api-ruby
mit
4,084
132
codeparrot/github-code
38f46f3b298fe3d42760397fdedfa05073e57f4367f46c24dbbb01c5de8e4c8e
#!/usr/bin/env python3 # Copyright (c) 2014-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test mempool persistence. By default, bitcoind will dump mempool on shutdown and then reload it on sta...
Python
test/functional/mempool_persist.py
tjps/bitcoin
mit
6,912
145
codeparrot/github-code
64e7913d2c89b54e7fd24f12692368e7809439e96d49ed70cdcd56fb6931dec5
package com.martin.knowledgebase; import java.util.ArrayList; public class PlainStorage { private static PlainStorage instance; private boolean mNewInstance; private ArrayList<Entry> mEntries; // Restrict the constructor from being instantiated private PlainStorage() { } public static s...
Java
app/src/main/java/com/martin/knowledgebase/PlainStorage.java
martindisch/KnowledgeBase
mit
939
40
codeparrot/github-code
20373c32e9b11db4005f2861d3557b255ec59393e84c8ddc1306e4c3ee6b5548
// ***************************************************************************** // // (c) Crownwood Consulting Limited 2002 // All rights reserved. The software and associated documentation // supplied hereunder are the proprietary information of Crownwood Consulting // Limited, Haxey, North Lincolnshire, Engla...
C#
gView.GeoProcessing.UI/IDE/Controls/BorderForControl/BorderForControl.cs
jugstalt/gViewGisOS
mit
2,651
94
codeparrot/github-code
52f19aab00f8ed3dd77eb8ca680ce13d502b7c2e5155e47c068835c9bac57a90
<?php namespace Enm\Transformer\Events; use Symfony\Component\EventDispatcher\Event; /** * Class ClassBuilderEvent * * @package Enm\Transformer\Events * @author Philipp Marien <marien@eosnewmedia.de> */ class ClassBuilderEvent extends Event { /** * @var object|string */ protected $object; publ...
PHP
src/Transformer/Events/ClassBuilderEvent.php
eosnewmedia/Transformer
mit
575
46
codeparrot/github-code
13557d09e391beeebedc55b6773a9cc8223986e3196e45897e93746e8d37777b
using UnityEngine; using System.Collections; public class PrefabSceneManager : MonoBehaviour { public static PrefabSceneManager Instance = null; [SerializeField] private PrefabSceneList sceneList; private GameObject currentScene; void Awake() { if (!Instance) Instance = this; } public void...
C#
_Deprecated/Prefab Scene Manager/PrefabSceneManager.cs
LuviKunG/LuviTools
mit
746
31
codeparrot/github-code
d82d129c7e154ac2b2194453fee7e9eed70081de9a6e239d8918f9454a92a595
require_relative "hypersphere.rb" class Circle < HyperSphere def initialize(radius = 1, center = [0,0], pct_error = 1) super(radius, center, pct_error) end def area dim_check(2) Math::PI * (@radius ** 2) end def circumference dim_check(2) 2 * Math::PI * @radius end def inspect ...
Ruby
lib/zadt/AbstractDataTypes/Geometrics/circle.rb
MrMicrowaveOven/zadt
mit
1,065
51
codeparrot/github-code
a02eaddfcc6c547ab3a64584b896cf3dfcdadc168ead71cdb62247d4e3b712a2
"use strict" /** * Construct URL for Magento Admin. * * @param {string} path path to Magento page (absolute path started with '/', alias - w/o) */ var result = function getUrl(path) { /* shortcuts for globals */ var casper = global.casper; var mobi = global.mobi; var root = mobi.opts.navig.mage; ...
JavaScript
test/integration/src/sub/mage/admin/getUrl.js
praxigento/mobi_app_generic_mage2
mit
984
32
codeparrot/github-code
b7287cd9a7cc4e21cde2a2e62f27da818abb872502a7bd9be7ee3aaba59cc1c7
package run import ( "errors" "fmt" "os" "os/user" "path/filepath" "reflect" "strconv" "strings" "time" "github.com/influxdata/kapacitor/services/alerta" "github.com/influxdata/kapacitor/services/deadman" "github.com/influxdata/kapacitor/services/hipchat" "github.com/influxdata/kapacitor/services/httpd" ...
GO
cmd/kapacitord/run/config.go
alerta/kapacitor
mit
9,009
309
codeparrot/github-code
9c01fc58e7dbc232fc7ab6d9e01b6a8e8996ac5d8f9b59111f133996b7c46bd1
<!DOCTYPE html> <html lang="en-us"> <head prefix="og: http://ogp.me/ns#"> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1" /> <meta property="og:title" content=" Mike&#39;s ramblings" /> <meta name="theme-color" content="#f0f0f0" /> <meta pro...
HTML
page/11/index.html
asnaedae/asnaedae.github.io
mit
9,241
300
codeparrot/github-code
cef4f899cdac3fc314546a28df4847748356a6d596059f860899c039270f1c03
/** * @author mrdoob / http://mrdoob.com/ */ var Config = function () { var namespace = 'threejs-inspector'; var storage = { 'selectionBoxEnabled': false, 'rafEnabled' : false, 'rafFps' : 30, } if ( window.localStorage[ namespace ] === undefined ) { window.localStorage[ namespace ] = JSON.stringify( ...
JavaScript
src/panel/editor-ui/Config.js
jeromeetienne/threejs-inspector
mit
987
62
codeparrot/github-code
86217b44721c3842cb4aea2d19ca566c3fdb6f5b8187735daf36a56758b840c5
module Gifts::Grit class Config def initialize(repo) @repo = repo end def []=(key, value) @repo.git.config({}, key, value) @data = nil end def [](key) data[key] end def fetch(key, default = nil) data[key] || default || raise(IndexError.new("key not found")...
Ruby
lib/gifts/grit/config.rb
hiroponz/gifts
mit
739
45
codeparrot/github-code
1324a7e8d65c1be05f029b398269ddb642856af3a5b73deeaffe48a1924483a4
<!DOCTYPE html> <html class="no-js" lang="zh-Hans"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content="p5.js a JS client-side library for creating graphic and interac...
HTML
zh-Hans/examples/simulate-flocking.html
mayaman26/p5js-website
mit
8,698
202
codeparrot/github-code
2fb01a11ae2d5c4f69d2ab5747ff34e8d50c945c4b62beebe20bd048027badd1
<?php use Symfony\Component\HttpKernel\Kernel; use Symfony\Component\Config\Loader\LoaderInterface; class AppKernel extends Kernel { public function registerBundles() { $bundles = array( new Symfony\Bundle\FrameworkBundle\FrameworkBundle(), new Symfony\Bundle\SecurityBundle\Sec...
PHP
app/AppKernel.php
looq88/sfKwejk
mit
2,163
49
codeparrot/github-code
4a3b03b89289a3e5bc201a7c835e46a20454cd504a94948e178ea40f0b5d710c
package com.www.lightmeter; import android.util.Log; import java.util.HashMap; import java.util.Map; public class Variable { double[] keys; Map<Double, String> vals = new HashMap<>(); int currentIndex; public Variable(double[] keys, String[] strings) { currentIndex = 0; this.keys = k...
Java
app/src/main/java/com/www/lightmeter/Variable.java
thewinniewu/lightmeter
mit
2,111
76
codeparrot/github-code
b722560a59264794a0839a3325a6bd51ae4c51b7bd4657b650a119afadfb8c1f
using System; using System.Collections.Generic; using System.Security.Cryptography; using System.Text; using OAuth.AuthorizationServer.Core.Data.Extensions; namespace OAuth.AuthorizationServer.Core.Data.Model { /// <summary> /// Represents a resource recognized by the authorization server /// </summary...
C#
DNN Platform/OAuth.AuthorizationServer.Core/Data/Model/Resource.cs
ohine/Dnn.Platform
mit
3,306
104
codeparrot/github-code
90d724c72851bbca5d76d5e6cf469053ceb52ebe2269c7eb3035c69f30169b33
var _ = require("underscore"); var util = require("util"); exports.show = function (req, res) { var async = require('async'); if (!req.session.screen) { req.session.messages = { errors: ['screen not found'] }; res.redirect('/'); return; } var Handlebars = require('../hbs_helpers/hbs_helpers.js'); ...
JavaScript
controllers/screens.js
sahilsk/Dashboard-Extended
mit
4,134
144
codeparrot/github-code
d4708d92df5c16e851cd126f43d39194ff4680c8b00428c6a59fbac4bd399070
# frozen_string_literal: true module TijuanaClient class Client < Vertebrae::API def user @user ||= TijuanaClient::User.new(client: self) end def post_json_request(path, params) p = {} p['data'] = params.to_json post_request(path, p) end def default_options { ...
Ruby
lib/tijuana_client/client.rb
controlshift/tijuana_client
mit
2,005
69
codeparrot/github-code
87367e4659fc5bfac64f1576c629e9207a19c294026db484c4b67877ad2656c0
// ==++== // // // Copyright (c) 2006 Microsoft Corporation. All rights reserved. // // The use and distribution terms for this software are contained in the file // named license.txt, which can be found in the root of this distribution. // By using this software in any fashion, you are agreeing to ...
C#
DodoNet/JScript/engine/scriptstream.cs
blancosj/dodonet
mit
1,524
54
codeparrot/github-code
52db08f465f475cac51913c875b60f540c6dc8f71009c26996f485af10768e1b
//A container for data pertaining to the local card game state. Defines the decks stored locally as well as the local player data. class CardSystem { constructor() { this.deck = [random_deck()]; //Plan on having multiple decks available this.player = new Player(); this.player.deck = this.dec...
JavaScript
scripts/felfdip.js
DanZC/phaser-tcg
mit
29,710
1,036
codeparrot/github-code
a90ff0c0abc0e95c8f534d9370215df3cbfec143c49785394e3c9b5eb097650f
<?php Class Eventmodel extends CI_Model { public function __construct() { parent::__construct(); } //GET ALL Years function get_cur_year(){ $check_year="SELECT * FROM edu_academic_year WHERE NOW() >= from_month AND NOW() <= to_month"; $get_year=$this->db->query($check_year);...
PHP
application/models/Eventmodel.php
kamalhappysanz/eduappadmin
mit
4,712
142
codeparrot/github-code
89e0f65095f52b97389d756a10e33f7475ac1a5b00443316d96643636fb67f61
<?php namespace App\Http\Controllers\Admin; use App\Http\Controllers\Controller; use View; use Theme; use Auth; class AdminController extends Controller { /* |-------------------------------------------------------------------------- | Registration & Login Controller |--------------------------------------------...
PHP
app/Http/Controllers/Admin/AdminController.php
dineshbh/Neveshtar
mit
980
39
codeparrot/github-code
c43265a9828c2dcaca3c8a1d0e7f65d37fe972031679144b4c4f601082838e96
using System; namespace SpreadsheetLightWrapper.Core.misc { internal class SLConstants { internal const string ApplicationName = "SpreadsheetLight"; internal const string BlankSpreadsheetFileName = "Book1.xlsx"; internal const string DefaultFirstSheetName = "Sheet1"; internal ...
C#
SpreadsheetLightWrapper/Core/misc/SLConstants.cs
rdonalson/SpreadsheetLightWrapper
mit
97,211
1,533
codeparrot/github-code
7e333390a1e47c04bd761539dab2578d6bbf23d3befe6f99698ed26dc7a29831
package info.fingo.urlopia.api.v2.reports.attendance.resolver.handlers.user.params.resolver; import info.fingo.urlopia.api.v2.presence.PresenceConfirmationService; import info.fingo.urlopia.holidays.HolidayService; import info.fingo.urlopia.reports.ReportStatusFromRequestType; import info.fingo.urlopia.request.Request...
Java
src/main/java/info/fingo/urlopia/api/v2/reports/attendance/resolver/handlers/user/params/resolver/MonthlyAttendanceListReportDayHandler.java
fingo/urlopia
mit
3,832
90
codeparrot/github-code
676970f2cf4e3e4e3ce9d7f3831be73971d94c8cdea2047116987637f27f647c
// The MIT License (MIT) // // Copyright (c) Andrew Armstrong/FacticiusVir 2020 // // 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 r...
C#
src/SharpVk/ImageViewCreateInfo.gen.cs
FacticiusVir/SharpVk
mit
3,816
118
codeparrot/github-code
5228b2c601de9019eb756e975825495003d13be5307cb411f61b543094a41e7d
const path = require('path'); const wmd = require('wmd'); const {getFile} = require('./importHelpers'); const createContextForList = (folderContents) => { let promises = []; return new Promise((resolve, reject) => { for (let file in folderContents) { let promise = getFile(folderContents[file].path); ...
JavaScript
api/api/contextHelpers.js
mrmnmly/mrwrittr
mit
1,235
38
codeparrot/github-code
b1014a2852628638fe62ab719c3108102b302314347d426de6f76dc319e1202b
#pragma once #if defined(__WIN32__) && !defined(GLEW_STATIC) #define GLEW_STATIC #endif #include <GL/glew.h> #include <GLFW/glfw3.h> #ifdef __cplusplus extern "C" { #endif int setupGLFW(); int setupGLEW(); void setupCoreGL(); #define TRI_RECT_SIZE (108 * sizeof(float)) #define TRI_RECT_VERTS 36 GLchar* shaderErro...
C
src/myglutils.h
jeffro256/Ultra-Fighters
mit
715
32
codeparrot/github-code
f79837c2d6eb33846093cbaf0a6bd9a346bdfa6f98fec258faf4b6cf7119fc18
import argparse from collections import defaultdict, Counter, deque import random import json import time from tqdm import tqdm import wikipedia class MarkovModel(object): def __init__(self): self.states = defaultdict(lambda: Counter()) self.totals = Counter() def add_sample(self, state, foll...
Python
markov.py
bschug/neverending-story
mit
5,167
186
codeparrot/github-code
dbf73ec65a9f56fd249ce39f636c2fee785d065430a977727c5c54fce8307d0d
class AchievementEvt { constructor(subType, payload) { this.type = 'achievements'; this.subType = subType; this.payload = payload; } }; /** * generate PageVisitEvt * @param {string} * @returns {AchievementEvt} */ export class PageVisitEvt extends AchievementEvt { constructor(pag...
JavaScript
src/config/badges.js
kairos666/moodys
mit
5,494
110
codeparrot/github-code
975626991f20b0a7c52eb34a85da58c8c284ca044c0a8cd28d07d38ed9f945bc
function InputHandler(viewport) { var self = this; self.pressedKeys = {}; self.mouseX = 0; self.mouseY = 0; self.mouseDownX = 0; self.mouseDownY = 0; self.mouseMoved = false; self.mouseDown = false; self.mouseButton = 0; // 1 = left | 2 = middle | 3 = right self.viewport = viewp...
JavaScript
js/util/InputHandler.js
PhiladelphiaGameLab/Flip
mit
4,207
134
codeparrot/github-code
082f3d6d89fe4ef2f1e8b5d888f7e8c0d55344d3b266f669336f6280bdcb7725
<?php /* * This file is part of the TelescopeSchedules package. * * (c) Christopher Briggs <chris@jooldesign.co.uk> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace TelescopeSchedules\Telescopes; use TelescopeSchedules\...
PHP
lib/TelescopeSchedules/Telescopes/ChandraTelescope.php
jooldesign/Telescope-Schedules
mit
2,730
117
codeparrot/github-code
0bb3e28b546539e15f63c48d5ca47305d7f12d430250b9fa3b465dee09a2a731
const config = require('../../../knexfile').intweb const knex = require('knex')(config) const dateFormatter = require('../date-formatter') const insertClaimEvent = require('./insert-claim-event') const claimEventEnum = require('../../constants/claim-event-enum') module.exports = function (claimId, isTrusted, untrusted...
JavaScript
app/services/data/update-eligibility-trusted-status.js
ministryofjustice/apvs-internal-web
mit
1,411
35
codeparrot/github-code
8c922c9b28ee114cb4852ca336f37d911c133e8b92e48a61502d8ec6dd8f8525
/* tslint:disable */ import 'rxjs/add/operator/map'; import 'rxjs/add/operator/catch'; import 'rxjs/add/operator/startWith'; import 'rxjs/add/operator/switchMap'; import 'rxjs/add/operator/mergeMap'; import 'rxjs/add/operator/toArray'; import { Observable } from 'rxjs/Observable'; import { of } from 'rxjs/observable/of...
TypeScript
apps/webapp/src/app/store/effects/user.ts
brannon-darby/fireloop
mit
2,731
85
codeparrot/github-code
14a882c73d44ca426baeee4311e65bf226f45b6f45286f4d0688bcb66efaa73b
<?php /** * MP3 Player * * @author Sammie S. Taunton <diemuzi@gmail.com> * @copyright 2014 Sammie S. Taunton * @license https://github.com/diemuzi/mp3/blob/master/LICENSE License * @link https://github.com/diemuzi/mp3 MP3 Player */ namespace Mp3\Service; use Zend\Paginator\Adapter\ArrayAdapter; use Z...
PHP
src/Mp3/Service/Search.php
diemuzi/mp3
mit
13,512
418
codeparrot/github-code
a7d2409258fad19a1f10d54b2c83b923728e29f35afd67060e30421ca27c291f
import Ember from 'ember'; import ApplicationRouteMixin from 'ember-simple-auth/mixins/application-route-mixin'; import config from 'ilios/config/environment'; const { inject } = Ember; const { service } = inject; export default Ember.Route.extend(ApplicationRouteMixin, { flashMessages: service(), commonAjax: ser...
JavaScript
app/routes/application.js
gabycampagna/frontend
mit
1,478
53
codeparrot/github-code
8f2f910ddd105fb9e632a836e13ede7081c22904acb33d13fb91af2a9d37b018
var map = [ [0x1, 0x8], [0x2, 0x10], [0x4, 0x20], [0x40, 0x80] ] function Canvas(width, height) { if(width%2 != 0) { throw new Error('Width must be multiple of 2!'); } if(height%4 != 0) { throw new Error('Height must be multiple of 4!'); } this.width = width; this.height = height; this.co...
JavaScript
index.js
Student007/node-drawille
mit
1,557
71
codeparrot/github-code
eb91fec91f694c7aac126e219beb5b33cb62524105b04d5e6ae96883fbbfffa1
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>mtac: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" r...
HTML
clean/Linux-x86_64-4.09.1-2.0.6/released/8.10.2/mtac/1.3.0.html
coq-bench/coq-bench.github.io
mit
6,380
164
codeparrot/github-code
b73e43cb0d9d00688895c14f536e27a31c963f8b6fc1e1fef9855fba12643378
<!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.css" ...
HTML
clean/Linux-x86_64-4.05.0-2.0.6/released/8.8.0/compcert/2.4.0.html
coq-bench/coq-bench.github.io
mit
6,637
164
codeparrot/github-code
dc3af30416527e4d4e2014607b53a6dceb13d12bb6c1180c57c02dc0eacb2089
Router.map(function(){ this.route('home',{ path:'/', template: 'home', onBeforeAction: function(pause){ this.subscribe('getAlgosByReg',Session.get('mainQuery')).wait(); this.subscribe('getAlgosByName',Session.get('mainQuery')).wait(); this.subscribe('getAlgosByKeyWord',Session.get('mainQuery')).wait(); ...
JavaScript
client/router.js
theelee13/Algos
mit
4,130
142
codeparrot/github-code
66fd0b8b931fc86342d34008b6f25e9975b452d219fc1285c4d143ca891d1553
import { NgModule, ErrorHandler } from "@angular/core"; import { RouterModule } from "@angular/router"; import { FormsModule } from "@angular/forms"; import { BrowserModule } from '@angular/platform-browser'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { HttpModule } from '@an...
TypeScript
src/lazarus/ClientApp/app/app.module.ts
zouzou73/Lazarus
mit
9,125
182
codeparrot/github-code
aafca1073a5e852ac9e5c5d71c47036787292ee2bd2c3eda66c3b22d35e6c456
/** * Imports */ var path = require('path'); var fs = require('fs'); var _ = require('lodash'); /** * BaseDbContext class * @param {Object} options */ var BaseDbContext = module.exports = function(options) { options || (options = {}); this.entities = {}; this._loadModels(); this.initialize.a...
JavaScript
db/libs/BaseDbContext.js
anthonycluse/passagenda
mit
1,841
88
codeparrot/github-code
07dc085ea0e7af2375c037b71cdc458e55a4fcec16ee9f6208663d93af0e31af
<?php declare(strict_types=1); namespace Symplify\EasyCodingStandard\Console\Style; use Symfony\Component\Console\Application; use Symfony\Component\Console\Input\ArgvInput; use Symfony\Component\Console\Output\ConsoleOutput; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Termina...
PHP
packages/EasyCodingStandard/src/Console/Style/EasyCodingStandardStyleFactory.php
Symplify/Symplify
mit
1,299
48
codeparrot/github-code
771db343d34da4d1c86a5f1432bcf31781e47c706984c413470165ace81ad16e
using System; using System.Collections; using System.Collections.Generic; using System.Runtime.CompilerServices; namespace Priority_Queue { /// <summary> /// A copy of StablePriorityQueue which also has generic priority-type /// </summary> /// <typeparam name="TItem">The values in the queue. Must ext...
C#
Assets/Scripts/Utils/PriorityQueue/GenericPriorityQueue.cs
TigerHix/Cytoid
mit
22,333
603
codeparrot/github-code
16d19f5655387aeaa7238b925be4c83ec1092e8ec432cbdaa22111a94119a5ed
import argparse import smtplib import mimetypes import os.path as path from email import encoders from email.mime.base import MIMEBase from email.mime.multipart import MIMEMultipart def parseOptions(): parser = argparse.ArgumentParser(description='Send e-books to my Kindle Paperwhite.') parser.add_argument('file', t...
Python
Send2Kindle_command_line.py
comicxmz001/Send2Kindle
mit
2,130
68
codeparrot/github-code
b44a386490df5ee582ca4be2b2230dcb722bcd99b7498ad5bf3ef21686967de4
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace PI_VJ4 { public partial class RM_01 : Form { public RM_01() { ...
C#
PI_VJ4/RM_01.cs
PI-USER-2014/PI_VJ4
mit
1,599
55
codeparrot/github-code
5a10f5084d87c8c698bef2587b748f7d58b344f58c325990ae53b024a76b66ec
#ifndef __SEARCH_PHASE_H__ #define __SEARCH_PHASE_H__ #include "MoveGen4.h" #include "MoveList.h" #include "SelectionSort.h" #include "see.h" namespace Chess { /** * Enum type describing the current search phase */ enum class phase_t { /** * Searching moves that evade check */ check_evasions, /** ...
C
src/SearchPhase.h
jfern2011/chess
mit
13,511
664
codeparrot/github-code
80710f71953674fa3f286a943f5625aa68b6e0cfe96839382745979a26c22025
using NadekoBot.Core.Services.Database.Models; using System.Linq; using Microsoft.EntityFrameworkCore; using Discord; using System.Collections.Generic; using System; namespace NadekoBot.Core.Services.Database.Repositories.Impl { public class DiscordUserRepository : Repository<DiscordUser>, IDiscordUserRepository ...
C#
NadekoBot.Core/Services/Database/Repositories/Impl/DiscordUserRepository.cs
ShadowNoire/NadekoBot
mit
6,234
181
codeparrot/github-code
587a8ecbdc9c37dd0987d7a23f467657649de57a5cc73d3b79d314c321028cef
/* liblightmodbus - a lightweight, multiplatform Modbus library Copyright (C) 2017 Jacek Wieczorek <mrjjot@gmail.com> This file is part of liblightmodbus. Liblightmodbus is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software...
C
include/lightmodbus/addons/examine.h
Jacajack/modlib
mit
2,254
66
codeparrot/github-code
fab992a9ceda8feff415a5ec5c3fcdea75b76cdc3942ba8342d28c72b953c452
/* * Qt4 bitcoin GUI. * * W.J. van der Laan 2011-2012 * The Bitcoin Developers 2011-2012 * The Litecoin Developers 201-2013 */ #include "bitcoingui.h" #include "transactiontablemodel.h" #include "addressbookpage.h" #include "sendcoinsdialog.h" #include "signverifymessagedialog.h" #include "optionsdial...
C++
src/qt/bitcoingui.cpp
KickAssCoin/KIK
mit
35,893
963
codeparrot/github-code
e352b24eed963608adbbe11fceb0ee558221ad5084bbed41bcd668a3fcf80c4f
function tabCtrl(id) { var element = document.querySelectorAll('[data-selector="tabbar/tab"]'); for (var i = 0; i < element.length; i++) { if (element[i].dataset.id === id) { element[i].classList.add('tabbar__tab__active'); } else { element[i].classList.remove('tabbar__tab__active'); } } } function ta...
JavaScript
app/components/tabbar/itemCtrl.js
guddii/floidtv
mit
944
41
codeparrot/github-code
888e65f140d47879934feff00a2805aa9c7b5eab0eb1fb2eb6542c07d5932714
// Copyright (c) 2010 Ben Phegan // 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,...
C#
source/RenderConfig.Core/XmlFileModifier.cs
BenPhegan/renderconfig
mit
19,348
515
codeparrot/github-code
7dc88f9e02a1138b63b9f8a87782085f9ee4588efff9524474588d42f3d2ee99
<?php /** * Created by Graham Owens (gra@partfire.co.uk) * Company: PartFire Ltd (www.partfire.co.uk) * Console: Discovery * * User: gra * Date: 15/11/16 * Time: 22:54 * Project: PartFire Common * File: RepositoryFactory.php * **/ namespace PartFire\CommonBundle\Entity\Repository; use Doctrine\...
PHP
Entity/Repository/RepositoryFactory.php
PartFire/CommonBundle
mit
657
32
codeparrot/github-code
b3185830cd74beccf7b44d4779b1927bc1b4fabeb20e08a4c92f1455cb6b4ea9
package cloudatcost import ( "fmt" "net/http" "net/url" ) type CloudProService struct { client *Client } func (s *CloudProService) Resources() (*CloudProResourcesData, *http.Response, error) { u := fmt.Sprintf("/api/v1/cloudpro/resources.php?key=%s&login=%s", s.client.Option.Key, s.client.Option.Login) req, e...
GO
cloudatcost/cloudpro_servers.go
BlackTurtle123/go-cloudatcost
mit
1,767
74
codeparrot/github-code
19e9d1ac83332d3c19263df87931179c9a379e56ead28fee72a54ee84f9622c7
package cn.sharesdk.demo.ui; import android.util.Log; import android.view.View; import android.widget.TextView; import android.widget.Toast; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import androidx.recyclerview.widget.DefaultItemAnimator; import androidx.recyclerview.widget.Linear...
Java
SampleFresh/app/src/main/java/cn/sharesdk/demo/ui/AuthorizationFragment.java
MobClub/ShareSDK-for-Android
mit
5,166
158
codeparrot/github-code
60a01b29b13832732648ac1824f43d32d612d1a2f915a56830775419464fb9b7
import deep_architect.searchers.common as se import numpy as np # NOTE: this searcher does not do any budget adjustment and needs to be # combined with an evaluator that does. class SuccessiveNarrowing(se.Searcher): def __init__(self, search_space_fn, num_initial_samples, reduction_factor, reset...
Python
deep_architect/searchers/successive_narrowing.py
negrinho/deep_architect
mit
3,234
78
codeparrot/github-code
9802b693da659ea1c83728cc25e97613bdbe324b2b43026b91664e8322ff0e9b
/* * Copyright (C) 2010-2014 Gil Mendes * * 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 "AS IS" AND THE AUTHOR DIS...
C
source/lib/kernel/tls.c
gil0mendes/Infinity-OS
mit
6,420
212
codeparrot/github-code
8e8adc02320b9fc941aa20093188d1812851ca0d9f8108506126183bbd5bec8e
#!/usr/bin/perl use strict; use warnings; use Data::Dumper; use lib qw(..); use JSON qw( ); use GD; print "file: $ARGV[0]\n"; print "x: $ARGV[1]\n"; print "y: $ARGV[2]\n"; print "width: $ARGV[3]\n"; print "height: $ARGV[4]\n"; print "url: $ARGV[5]\n"; print "name: $ARGV[6]\n"; print "counter id: $ARGV[7]\n"; #open...
Perl
replace.pl
mdapp/mdapp.github.io
mit
2,642
154
codeparrot/github-code
380bc66f1e44d44c403fd601632dbd3eb4b69c04e7a53f6a686abf4a15a95971
<link rel="import" href="../polymer/polymer.html"> <polymer-element name="timedemo-smartgrid-app-globals"> <script> Polymer('timedemo-smartgrid-app-globals', { // load SmartGrid module _smartGridModule: null, _saver: null, _loader: null, _cloner:...
HTML
kmf/demo/tinygrid/components/timedemo-smartgrid-app-globals/timedemo-smartgrid-app-globals.html
dukeboard/dukeboard.github.io
mit
4,830
122
codeparrot/github-code
50bab978c1f456cc754157eaa873a560edb2904c496cd95e1ecb3ebe22907f23
package de.steven_tappert.adminbot.components.xmpp.ChatCommands; import org.jivesoftware.smack.SmackException; import org.jivesoftware.smack.XMPPConnection; import org.jivesoftware.smack.chat2.Chat; import org.jivesoftware.smack.packet.Message; import org.jivesoftware.smack.packet.Presence; public class status extend...
Java
src/de/steven_tappert/adminbot/components/xmpp/ChatCommands/status.java
sammy8806/adminbot
mit
1,310
36
codeparrot/github-code
30a677f661e92ba2a6453c4a5bd7df246c15f7c606fe2f32c0e55e43729d09d6
package org.squiddev.cctweaks.runtimes; import net.minecraftforge.common.config.Configuration; import org.squiddev.configgen.DefaultBoolean; import org.squiddev.configgen.DefaultInt; import org.squiddev.configgen.Range; import org.squiddev.luaj.luajc.CompileOptions; @org.squiddev.configgen.Config(languagePrefix = "gu...
Java
src/main/java/org/squiddev/cctweaks/runtimes/Config.java
SquidDev-CC/CCTweaks-Runtimes
mit
1,097
37
codeparrot/github-code
e278d5b1ede52f58915f53f1201dc68fa005e5356e5d9879084ca8295dc53ef3
<?php namespace common\components\passwordStore; use Exception; use Google_Client; use Google_Service_Directory; use Google_Service_Directory_Resource_Users; use Google_Service_Directory_User; use InvalidArgumentException; use yii\base\Component; use yii\helpers\Json; class Google extends Component implements Passwor...
PHP
application/common/components/passwordStore/Google.php
silinternational/idp-pw-api
mit
10,337
332
codeparrot/github-code
4bfe375d1be25e59f9c413f24e4785add00cf80c4cb5f831993a745f59ce01db
/******************************************************************************* * FILE: rwsync.h * TITLE: Header file for reader-writer synchronization * application with pthreads. * Date: October 25, 2012. * Author: Rohit Sinha * Emai...
C
rwsync.h
rohitsinha54/ReaderWriterSynchronization
mit
3,459
99
codeparrot/github-code
62e27c22fe8d719ec35d1ffbba6199d37d4eb5dc621ed0dc0db926a706dea796
/** * Copyright (C) 2010-14 diirt developers. See COPYRIGHT.TXT * All rights reserved. Use is subject to license terms. See LICENSE.TXT */ package org.diirt.datasource.integration; import org.diirt.datasource.PVReader; import org.diirt.datasource.PVReaderEvent; /** * * @author carcassi */ public class PVReaderV...
Java
pvmanager/datasource-integration/src/main/java/org/diirt/datasource/integration/PVReaderValueCondition.java
ControlSystemStudio/diirt
mit
807
31
codeparrot/github-code
f27a1d724ddb14b9fd686195c2e0020aadb0639892f316cf5a2bcfbfc7a74843
package com.voodoodyne.postguice; import com.google.common.base.Preconditions; import org.hibernate.QueryException; import org.hibernate.dialect.function.SQLFunction; import org.hibernate.engine.spi.Mapping; import org.hibernate.engine.spi.SessionFactoryImplementor; import org.hibernate.type.BooleanType; import org.hi...
Java
postguice/src/main/java/com/voodoodyne/postguice/SimpleFullTextSearchFunction.java
stickfigure/postguice
mit
1,289
42
codeparrot/github-code
f1bdfa16f6dc3cf03f69f6e6c0dc040dd10bc51ba3b39ab3805706ee34566345
--- layout: post title: "쉽게 배우는 Web App 5 : Web App에 Cognitive API를 연결해보자!" featimg: azure-logo.jpg categories: [Web Application] tag: [webapp] --- 1. 새로만들기를 클릭합니다. ![그림](/img/webapp/cognitive/login_success.png) 2. 다양한 Cognitive Service가 있습니다. 여기서 우리는 Translator Text API를 써보겠습니다. ![그림](/img/webapp/cognitive/kind.PNG) ...
Markdown
_posts/2017-04-13-create-cognitive.markdown
Azure-For-Beginner/Azure-For-Beginner.github.io
mit
2,738
65
codeparrot/github-code
cafbf89b56749d2874361e7e23d6a595fe1cf6c8f6edee2c865ba66e5f3525dd
import { template, traverse, types as t } from "@babel/core"; import { environmentVisitor } from "@babel/helper-replace-supers"; const findBareSupers = traverse.visitors.merge([ { Super(path) { const { node, parentPath } = path; if (parentPath.isCallExpression({ callee: node })) { this.push(p...
JavaScript
packages/babel-helper-create-class-features-plugin/src/misc.js
jridgewell/babel
mit
3,505
127
codeparrot/github-code
8c0aae97da1cd8ebd3cd69bbc80cebaf2caff0877132dcbf4f893b5d0127a944
module Vendorificator::Hooks module ChefCookbookDependencies class FakeMetadata attr_reader :dependencies def initialize ; @dependencies = [] ; end def from_file(filename) ; self.instance_eval(IO.read(filename), filename, 1) ; end def depends(*args) ; @dependencies << args ; end def ...
Ruby
lib/vendorificator/hooks/chef_cookbook.rb
3ofcoins/vendorificator
mit
2,024
73
codeparrot/github-code
3639d437ef8c1da1d341e5d84f604881078b83cba9970b9070999a06bdbaa456
#pragma once // ------------------------------------------------------------------------------------------------ #include "Base/Shared.hpp" #include "Base/Vector3.hpp" #include "Base/Quaternion.hpp" #include "Base/Color4.hpp" #include "Base/ScriptSrc.hpp" // ----------------------------------------------------------...
C++
module/Core.hpp
iSLC/VCMP-SqMod
mit
67,057
1,495
codeparrot/github-code
6b9237d16d25578193b39f67e81b0115b18166259ea8b98f53c747d5611c928e
const restify = require('restify'); const random = require('random-js')(); const Promise = require("bluebird"); // import * as restify from 'restify'; const assert = require('assert'); const clients = require('restify-clients'); const CBuffer = require('CBuffer'); const fs = require('fs-extra'); const defaultPeerUpPo...
TypeScript
src/server.ts
cofdev0/peer-up
mit
7,725
241
codeparrot/github-code
480047ea6226d4e6f0cbcd5f281000a6434bdf1108432d36a24aae96c2ff8f20
using System; using System.Collections.Generic; using System.Diagnostics.Contracts; using System.Linq; using System.Numerics; using System.Text; using System.Text.RegularExpressions; using Sphere10.Framework; namespace NPascalCoin.Encoding { public static class HexEncoding { public const string CharSet = "01234567...
C#
src/NPascalCoin/Encoding/HexEncoding.cs
Sphere10/NPascalCoin
mit
1,378
48
codeparrot/github-code
cf5e9b820134853b64229b89082fc752932e35e23f8979107fdacd22a836f780
# -*- coding: utf-8 -*- """Implement directed graph abstract data type.""" from __future__ import print_function from .stack import Stack from .queue import Queue class Graph(object): """Implement a directed graph.""" def __init__(self): """Initialize a graph with no nodes or edges.""" self...
Python
src/graph.py
welliam/data-structures
mit
5,049
167
codeparrot/github-code
19f10ab33651df4e4b9c257bf67e451f5589606945e8d5cfa12a3de3b7825670
/* * The MIT License * * * 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, dis...
Java
Project/src/test/java/com/github/lgooddatepicker/components/TestTimePicker.java
LGoodDatePicker/LGoodDatePicker
mit
14,160
309
codeparrot/github-code
7e9482fa6cb0c3997043882db1d12da3bec48be194c3c15ee1d1da55b1501342
package de.liebig.lighthouse.accounts; import java.util.Optional; import org.springframework.beans.factory.BeanFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.s...
Java
src/main/java/de/liebig/lighthouse/accounts/AccountController.java
liebig/lighthouse
mit
1,831
57
codeparrot/github-code
b1006df1d49924d18e14e7d9e83e36910624c42da9aefa5244ce3b6615dfe2a3
using System; using SharpJVM.SharpJVM.Runtime.DataArea.Heap; using SharpJVM.SharpJVM.Runtime.ConstantPool; using SharpJVM.SharpJVM.Runtime.ConstantPool.Info; using SharpJVM.SharpJVM.Class; using SharpJVM.SharpJVM.Runtime.Ref; namespace SharpJVM.SharpJVM.Runtime.HeapConstantsPool { public class HeapConstantPool { ...
C#
SharpJVM/SharpJVM/Runtime/HeapConstantsPool/HeapConstantPool.cs
1751634419/SharpJVM
mit
2,387
57
codeparrot/github-code
313eb5bc99dfc78f60ca9f1960e58076083c5969524668ae7bef072651a2b7ce
package com.rumblesan.reaktor import scalaz._, Scalaz._ import scalaz.concurrent.{ Actor, Strategy } import java.util.concurrent.atomic.AtomicReference class StateStream[InputEvent, StateType, OutputEvent]( stateModifier: (StateType, InputEvent) => (StateType, Option[OutputEvent]), initialState: StateType, ev...
Scala
src/main/scala/reaktor/StateStream.scala
rumblesan/reaktor
mit
1,173
47
codeparrot/github-code
1bd918d54b4b58b23d902a059561091311ef7aef9e93c6712226d85b3a18dcb9
import React from "react" import Presentation from "./Presentation" import Icon from 'material-ui/Icon' import IconButton from 'material-ui/IconButton' import Grid from 'material-ui/Grid' import Typography from 'material-ui/Typography' import { colors } from "../themes/coinium" require("../themes/coinium/index.css") c...
JavaScript
components/App.js
alexanderatallah/coinium
mit
3,736
136
codeparrot/github-code
ea06ac9579b7bf587d7c1650c3a188a2d57349011bcb302d71d6715ee3ec660d
package com.github.theholywaffle.teamspeak3.commands; /* * #%L * TeamSpeak 3 Java API * %% * Copyright (C) 2017 Bert De Geyter, Roger Baumgartner * %% * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal *...
Java
src/main/java/com/github/theholywaffle/teamspeak3/commands/ChannelCommands.java
TheHolyWaffle/TeamSpeak-3-Java-API
mit
3,767
98
codeparrot/github-code
20fbcb781819fa0df3377c128f389bd2f1ff8324106fbfe9b704812678a8284a
/** * 在球场 * zaiqiuchang.com */ const initialState = { users: {}, posts: {}, courts: {}, files: {}, userStats: {}, postStats: {}, courtStats: {}, fileStats: {} } export default (state = initialState, action) => { if (action.type === 'CACHE_OBJECTS') { let newState = Object.assign({}, state) ...
JavaScript
src/reducers/object.js
jaggerwang/zqc-admin-demo
mit
649
33
codeparrot/github-code
73bc3cecd6436f737fe50589525377d23afffd89678cc942f362d1f81b501c06
import numpy as np import matplotlib.pyplot as plt import pandas as pd WGS = ['G69145', 'G71602', 'G71608', 'G76270'] ### scatch import duplicate text files # fname = "/seq/picard_aggregation/G69145/NA12878/current/NA12878.duplicate_metrics" # gdup = pd.read_csv(fname, "\t", skiprows=range(10), comment="#", names=[...
Python
seq_duplication/dup_averages_wgs_nexome.py
lhogstrom/ThornsInRoses
mit
2,668
105
codeparrot/github-code
819b8baff6205a8fec1c272e32aba118d43e0b0076982eebce35c611213e63bb
<?php /** * Clean up the_excerpt() */ function roots_excerpt_more() { return ' &hellip; <a href="' . get_permalink() . '">' . __('Continued', 'roots') . '</a>'; } add_filter('excerpt_more', 'roots_excerpt_more'); // Disable the admin bar add_filter('show_admin_bar', '__return_false'); function wpb_list_child_p...
PHP
lib/extras.php
pooot/smask-2015
mit
2,769
108
codeparrot/github-code
f37395aa10bf8b79dc17fe77446ec1e0320ce285da7db1c1fa190358d97c0fcd
// ajax mode: abort // usage: $.ajax({ mode: "abort"[, port: "uniqueport"]}); // if mode:"abort" is used, the previous request on that port (port can be undefined) is aborted via XMLHttpRequest.abort() var pendingRequests = {}, ajax; // Use a prefilter if available (1.5+) if ($.ajaxPrefilter) { $.ajaxPrefilter...
JavaScript
assets/plugins/jquery-validation/src/ajax.js
GowthamITMARTX/adsports
mit
1,124
34
codeparrot/github-code
277552744e4852d249e9fa7be27fb21f8bb7db5ddf397f3a2dfb6e521c6aafb7
/* * Copyright 2009-2015 Hewlett-Packard Development Company, L.P. * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. */ package com.hp.autonomy.aci.content.fieldtext; import org.junit.Test; import java.util.Arrays; import java.util.Collections; impo...
Java
src/test/java/com/hp/autonomy/aci/content/fieldtext/NOTSTRINGTest.java
hpe-idol/java-content-parameter-api
mit
7,712
139
codeparrot/github-code
a02bb7a5a995097f06a2ef96ece5b20d1e6c19144a9737f957f59591bca3f9b4
(function(){ if ( !window.File || !window.FileReader || !window.FileList || !window.Blob) return alert('La API de Archivos no es compatible con tu navegador. Considera actualizarlo.'); var Fractal = { loaded: false, imagen: null, tipo: "mandelbrot", busy: false, mode: 0, lastTime: 0, prope...
JavaScript
entrega2/script.js
juampi92/VisualizacionCompI
mit
11,982
383
codeparrot/github-code
f417ff6ecd0c2e85cc25590f83c1e0e2f5f8ae64b7ba9935fb3cafe22fe060bb
var Model = require('./beer'); var Controller = { create: function(req, res) { var dados = req.body; var model = new Model(dados); model.save(function (err, data) { if (err){ console.log('Erro: ', err); res.json('Erro: ' + err); } else{ console.log('Cerveja ...
JavaScript
node/aula-express/modules/beer/controller.js
marcostomazini/workshop-mean-senai-2015
mit
3,573
141
codeparrot/github-code
76b483eccb672f90806b5179b438309eabc43b4645aedbae4853b726a0b766ba
'use strict'; /** * Confirm new player name */ module.exports = (srcPath) => { const EventUtil = require(srcPath + 'EventUtil'); return { event: state => (socket, args) => { const say = EventUtil.genSay(socket); const write = EventUtil.genWrite(socket); write(`<bold>${args.name} doesn't e...
JavaScript
bundles/ranvier-input-events/input-events/player-name-check.js
seanohue/ranviermud
mit
862
32
codeparrot/github-code
d42cbea6aef8dba6778f26e1d42128574f1522272a695b8356d2f75b01a35833
<?php namespace DataTable; use DataTable\DataSource\Dom; use Twig_Environment; use Twig_Extension_Debug; use Twig_Loader_Filesystem; /** * Render DataTable Class * * @package DataTable */ class Render { /** * @var Table */ protected $table; /** * @var Twig_Environment */ prote...
PHP
src/Render.php
atkrad/data-tables
mit
3,444
160
codeparrot/github-code
b40bca601ae8235026ecddb3910903523425e7256f774ebab17e893c560ba631
import React, {Component} from 'react'; import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import {initialPlay, nextTrack, togglePlaying} from 'redux/modules/player'; import {starTrack, unstarTrack} from 'redux/modules/starred'; import {isTrackStarred} from 'utils/track'; const classNames = ...
JavaScript
src/components/Player/Player.js
simonghales/mapping
mit
4,755
158
codeparrot/github-code
36c16063a959dad30f5c8e9237a09c2840fe69b61cc6f59252b9524ba898db6a
import tensorflow as tf import tensorflow.contrib.slim as slim class BaseReader(object): def read(self): raise NotImplementedError() class ImageReader(BaseReader): def __init__(self): self.width = None self.height = None def get_image_size(self): return self.width, self....
Python
readers.py
ml-101/templates
mit
1,577
46
codeparrot/github-code
71b5d09a4a44fd07552da050924c4c647a2e247fdd30eaecacaeb1d17dd162aa
import { Component, OnInit, ViewChild, ElementRef, Renderer } from '@angular/core'; import { Task } from './shared/task.model'; import { Param } from './shared/param.model'; import { Class, ClassTypes } from './shared/class.model'; import { ClassParams } from './shared/class-params.model'; import { Rule } from './share...
TypeScript
src/wwwroot/app/app.component.ts
Jeanosis/IntelligentSystemsLabs
mit
8,391
229
codeparrot/github-code
6fde141e7ab5c6ef334e65a92183403ed8c0de7a6fde3b7277cdc445af85e08d
/** * @fileoverview Rule to enforce grouped require statements for Node.JS * @author Raphael Pigulla * @deprecated in ESLint v7.0.0 */ "use strict"; //------------------------------------------------------------------------------ // Rule Definition //---------------------------------------------------------------...
JavaScript
lib/rules/no-mixed-requires.js
platinumazure/eslint
mit
7,383
238
codeparrot/github-code