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
a6fb9a98fdcb0f28d15991db21ccf36475a55bde39c447a73c96d7b366f5d90d
@font-face { font-family: 'icomoon'; src: url('../fonts/icomoon.eot'); src: url('../fonts/icomoon.eot?#iefix') format('embedded-opentype'), url('../fonts/icomoon.woff') format('woff'), url('../fonts/icomoon.ttf') format('truetype'), url('../fonts/icomoon.svg#icomoon') format('svg'); font-weight: normal...
CSS
web/bundles/ucovoiturage/css/component.css
legacy-hunter/ucovoiturage
mit
11,872
507
codeparrot/github-code
6ae55f2d878d0790d275ea4bccd4679db13e4826a6c8e06b0c335a5c4dae2417
package com.benbria.actor; import org.junit.Test; import static org.junit.Assert.assertTrue; public class ActorTest { int numberOfMessagesToAccept = 10; @Test public void testCreateAndStart() { Actor<String> myActor = Actor.createAndStart(new Actor.Behavior<String>() { int counter = 0...
Java
src/test/java/com/benbria/actor/ActorTest.java
edescourtis/actor
mit
1,007
37
codeparrot/github-code
9f5b1334fb02b9c29a43f5b4356738169ad18c0b87331900ef8bb46b28203351
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("...
JavaScript
frontend/js/components/footer-info.js
raapperez/vrf
mit
2,989
63
codeparrot/github-code
a11f6faf862af171d78b243ff541255332c7d9a46f86193c0cd9f1a155a181a3
<?php namespace App\Listeners; use Spatie\MediaLibrary\Events\MediaHasBeenAdded; class MediaLogger { /** * Handle the event. * * Saves url of asset to the model * * @param Spatie MediaLibrary Events MediaHasBeenAdded $event * @return void */ public function handle(MediaHa...
PHP
src/Listeners/MediaLogger.php
Krato/Infinety-CRUD
mit
838
33
codeparrot/github-code
a0989e8234a3d05b6f2aac30034c13412ee34f7671961d5d3c3665cfb3344c34
<?php namespace Loevgaard\DandomainAltapayBundle\Entity; use Symfony\Component\DependencyInjection\ContainerAwareInterface; use Symfony\Component\DependencyInjection\ContainerAwareTrait; class TerminalRepository extends EntityRepository implements ContainerAwareInterface { use ContainerAwareTrait; /** ...
PHP
Entity/TerminalRepository.php
loevgaard/dandomain-altapay-bundle
mit
1,413
61
codeparrot/github-code
57b97927e349e4aee293d04eb1a1f993303b2b20f1ca634ebefd32deb87f545a
function handle_msg(w::InputWidget, msg) if msg.content["data"]["method"] == "backbone" recv(w, msg.content["data"]["sync_data"]["value"]) end end function handle_msg{T}(w::Button{T}, msg) try if msg.content["data"]["method"] == "custom" && msg.content["data"]["content"]["event...
Julia
src/IJulia/handle_msg.jl
stevengj/Interact.jl
mit
875
32
codeparrot/github-code
a1d44c134e9027bd5d737650d95021222bea00b7326ca14eb4cd483c7a4b47df
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Unity Web Player | Navigation</title> <script type='text/javascript' src...
HTML
hw03/Builds.html
yoonsejong/UnityDemoProjects
mit
3,908
138
codeparrot/github-code
66bec409063f91ace554cd5d572d4183ae3416ef18fe0adebeb8e2e1796126be
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Productrecord_model extends CI_Model { public function __construct() { $this->load->database(); } public function get_latestp(){ $sql="SELECT * FROM `scm-fyp`.product_record, `scm-fyp`.users where ...
PHP
application/models/Productrecord_model.php
hochipun/FYP-SCM
mit
1,366
46
codeparrot/github-code
4fd6ed70ab9f1dc2f3587a31f0fdf0872969a4b115f08d549126dbc9feccdf7f
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {error} from '../utils/console'; import {getCommitMessageConfig} from './config'; /** Options for commit mess...
TypeScript
dev-infra/commit-message/validate.ts
filipesilva/angular
mit
5,307
167
codeparrot/github-code
2cd1cbae2b690ad4c6378545209b6c4d4009d1c8234aa5690be2056d8837a1a8
<?php namespace There4\Slim\Test; use \Slim; class WebTestClient { /** @var \Slim\Slim */ public $app; /** @var \Slim\Http\Request */ public $request; /** @var \Slim\Http\Response */ public $response; public function __construct(Slim\Slim $slim) { $this->app = $slim; ...
PHP
src/There4/Slim/Test/WebTestClient.php
PinZhang/slim-test-helpers
mit
2,983
102
codeparrot/github-code
35716845da653a788e7dd95f6c292f803336c161bcf8bb0c9f1516f8e9202ba2
package kernels; import java.util.*; import tdg.TDNode; import util.*; public class NodeSetCollectorMUBFreq extends NodeSetCollector{ ArrayList<Duet<BitSet, int[]>> bitSetTable; public NodeSetCollectorMUBFreq() { super(); bitSetTable = new ArrayList<Duet<BitSet, int[]>>(); } @SuppressWarnings("unchecke...
Java
TreeGrammars/src/kernels/NodeSetCollectorMUBFreq.java
kercos/TreeGrammars
mit
6,166
219
codeparrot/github-code
b4b610a20206f96c1c828381553a435b80dfc2012cb3b64f44509da8eb88065f
<!DOCTYPE html> <html lang="en"> <head> <title id="Description"><?php echo $title ?></title> <link rel="shortcut icon" href="<?php echo base_url(); ?>assets/images/logo.ico" type="image/x-icon" /> <link type="text/css" rel="Stylesheet" href="<?php echo base_url(); ?>assets/jqwidgets/jqwidgets/styles/jq...
PHP
application/views/admin/suand_view.php
ngovanbon16/dulichboss
mit
30,543
627
codeparrot/github-code
29911e8a2f21b4ec0150a4fa0ac6d6988d8fbafbbe5609c061f1ab6988ba9925
///////////////////////////////////////////////// // Filename: stone.js // Author: jerry_0824 // Email: 63935127#qq.com // Phone: +86-155-8287-7999 // Date: 2016-05-27 // Time: 15:48 // Version: v1.0.2 ///////////////////////////////////////////////// function checkRepassword() { var str_password ...
JavaScript
web/script/js/stone.js
jerry-0824/017_stone
mit
3,799
127
codeparrot/github-code
8a441eb03ff351eb9e825faca782051b09cc65951514ebcfd187aacc251e6400
#!/usr/bin/env node 'use strict'; const Bot = require('./bot/Bot'); const ModuleGuildWars2 = require('./src/modules/guildwars2'); const ModuleSchedule = require('./src/modules/schedule'); const ModuleUtilities = require('./src/modules/utilities'); const ModuleFun = require('./src/modules/fun'); const bot = new Bot();...
JavaScript
server.js
Archomeda/kormir-discord-bot
mit
869
38
codeparrot/github-code
7dbc669ffdc9f03417edd21b2362452497ee38c9f681d4d12c6f9f6a3e5064b3
/* * Angular 2 decorators and services */ import { Component, ViewEncapsulation } from '@angular/core'; import { AppState } from './app.service'; import {AuthService} from "./services/auth"; /* * App Component * Top Level Component */ @Component({ selector: 'app', encapsulation: ViewEncapsulation.None, style...
TypeScript
src/app/app.component.ts
peel3r/cpms
mit
1,214
57
codeparrot/github-code
3829962a190594cd7302183fef8a48414cf95f837ddd6993be7ee76cb5bb729a
require 'faraday' require File.expand_path('../version', __FILE__) module NYCGeoClient # Defines constants and methods related to configuration module Configuration # An array of valid keys in the options hash when configuring a {NYCGeoClient::API} VALID_OPTIONS_KEYS = [ :adapter, :app_id, ...
Ruby
lib/nyc_geo_client/configuration.rb
MichaelWiss/NYCGeoClient
mit
2,441
84
codeparrot/github-code
64dc3db8b6c875e39f25c6f0fec38726ca10c706f0276cdb57157b9497bf0c08
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /** * App controller class * */ class MY_Controller extends CI_Controller { public $navs; public $friends = array(); public $img; public function __construct() { parent::__construct(); $this->load->model('UserM...
PHP
application/core/MY_Controller.php
dj-diaz/esched.me
mit
1,166
48
codeparrot/github-code
3f96af7d8ad658ee40b66d8712203d9505ea4fc25695d83ba2bee336c3ca13ad
/* * Skeleton V2.0.4 * Copyright 2014, Dave Gamache * www.getskeleton.com * Free to use under the MIT license. * http://www.opensource.org/licenses/mit-license.php * 12/29/2014 */ /* Table of contents –––––––––––––––––––––––––––––––––––––––––––––––––– - Grid - Base Styles - Typography - Links - Buttons - Forms - List...
CSS
resources/public/css/skeleton.css
Scthe/Text-justification
mit
10,287
427
codeparrot/github-code
c4ce8f0dde35d5be7c6227984c93d3eaf3ac08b15bd0b81165ed748b864e92d3
<h2 md-dialog-title>Reputation History</h2> <md-dialog-content> <center-spinner *ngIf="loading"></center-spinner> <div [hidden]="loading" style="margin-top: -10px;"> <md-table [dataSource]="userReputationsDataSource" class="noTablePadding"> <ng-container cdkColumnDef="lobbyName"> ...
HTML
Client/Client/src/app/shared/reputation-details-dialog/reputation-details-dialog.component.html
ThorConzales/AoE2HDLobbyCompanion
mit
2,530
42
codeparrot/github-code
d4b24dc238b4b72b58ec29cb9f033c3252278deb578d8c13b289c65832aa11f1
/* eslint-disable no-console */ const express = require('express') require('dotenv').config() const config = require('./config.js') // Define Routes const index = require('./routes/index') const app = express() const PORT = process.env.PORT || 3000 // Middleware app.use(express.static(config.Dir.dist)) // Use rout...
JavaScript
server.js
BrentonCozby/CareForce-Lumber-Calculator
mit
884
40
codeparrot/github-code
6dff7d14f863f3bca13e79aff0d7ee787c292741420da80f8be14ed1b4cb39e2
// Copyright (c) 2011-2018 TurboCoin // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_QT_TRANSACTIONVIEW_H #define BITCOIN_QT_TRANSACTIONVIEW_H #include <qt/guiutil.h> #include <uint256.h> #include <QWidget> #i...
C
src/qt/transactionview.h
Phonemetra/TurboCoin
mit
3,048
127
codeparrot/github-code
28fbe7829bb830ec28cf3cec60d4b42940ead65a22083e419a4ae4535dd103e8
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>paco: 1 m 30 s</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="style...
HTML
clean/Linux-x86_64-4.10.0-2.0.6/released/8.12.0/paco/4.0.0.html
coq-bench/coq-bench.github.io
mit
20,567
295
codeparrot/github-code
cb902b45b5c9fa5eb99e96ec54de1045b669eb781290b2e3c2fe04fb2dd948d2
<!-- BEGIN HEADER --> <div class="page-header navbar navbar-fixed-top"> <!-- BEGIN HEADER INNER --> <div class="page-header-inner "> <!-- BEGIN LOGO --> <div class="page-logo"> <a href="index.html"> ...
PHP
application/views/layouts/codeto/template_header.php
sonha/fbtool
mit
27,488
366
codeparrot/github-code
53b7d8cf9504f68fe1074e7bcac271b8d98d3406d4e920078f4506c10764f64f
package rendezvous.federator.api.endpoint.impl; import java.io.IOException; import java.util.Set; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import org.apache.log4j.Logger; import rendezvous.federator.api.endpoint.Endpoint; import rendezvous.federator.api.response.QueryResponse; ...
Java
src/main/java/rendezvous/federator/api/endpoint/impl/QueryEndpoint.java
lhzsantana/federator
mit
1,076
39
codeparrot/github-code
ddf229bb3b246ce287f98bcf45ba9b72f9baeb89b9e36fcc024a627c8f2da8c6
// This program retrieves the sizes of a set of images. // Usage: // get_image_size [FLAGS] ROOTFOLDER/ LISTFILE OUTFILE // // where ROOTFOLDER is the root folder that holds all the images and // annotations, and LISTFILE should be a list of files as well as their labels // or label files. // For classification task,...
C++
9.caffe-ssd/tools/get_image_size.cpp
2php/CodeToolKit
mit
3,424
114
codeparrot/github-code
f1f36f022ada0fba87a660b89dc778caec767fe95b81f4f1c6813e196b476c85
module Cells import Base.* export Cell, Simplex, UFCSimplex, val2val, spatialDimension, getVertexCoords export TensorProductCell, getCellTopology, * abstract Cell abstract Simplex{T<:Val} <: Cell immutable UFCSimplex{T<:Val} <: Simplex{T} end immutable TensorProductCell{C1<:Cell, C2<:Cell} <: Cell end *{C1<:Cel...
Julia
src/Cells.jl
rckirby/JFiniteElements.jl
mit
4,399
165
codeparrot/github-code
03d1eaacc665f456da18bc4e2cb7d98819dc71fb87d5537750a80ab33ffda396
package com.xeiam.xchange.bl3p.dto.marketdata; import com.fasterxml.jackson.annotation.JsonProperty; import com.xeiam.xchange.bl3p.dto.Bl3pValue; import java.math.BigDecimal; /** * Created with IntelliJ IDEA. * User: Yaroslav * Date: 17/08/15 * Time: 13:25 */ public class Bl3pTrade { private Long tradeId;// ...
Java
xchange-bl3p/src/main/java/com/xeiam/xchange/bl3p/dto/marketdata/Bl3pTrade.java
yarKH/XChange
mit
1,157
54
codeparrot/github-code
2077ea6437b1d9170a3c83570dc78f7e424cced88c9fc75dbeea5c34d7c98dd0
#include <hxcpp.h> #ifndef INCLUDED_flixel_util_IFlxDestroyable #include <flixel/util/IFlxDestroyable.h> #endif #ifndef INCLUDED_flixel_util_IFlxSignal #include <flixel/util/IFlxSignal.h> #endif #ifndef INCLUDED_flixel_util__FlxSignal_FlxBaseSignal #include <flixel/util/_FlxSignal/FlxBaseSignal.h> #endif #ifndef INCLU...
C++
haxe/export/linux64/cpp/obj/src/flixel/util/_FlxSignal/FlxSignal3.cpp
syonfox/PixelPlanetSandbox
mit
6,462
213
codeparrot/github-code
5f5a636182876b413de691d3bb9629a4df5589771c49906fd2e18912ee7fac14
//START_INCLUDES #include "q_incs.h" //STOP_INCLUDES #include "SC_to_TM.h" //START_FUNC_DECL int SC_to_TM( char * const inv, uint32_t offset, uint64_t n_in, const char *format, struct tm *outv ) //STOP_FUNC_DECL { int status = 0; if ( inv == NULL ) { go_BYE(-1); } if ( outv ==...
C
OPERATORS/LOAD_CSV/src/SC_to_TM.c
NerdWalletOSS/Q
mit
1,020
37
codeparrot/github-code
a7e5ea26e4e7613c68542af4059778e2b86681f4233ec9e42c3587513bad1e12
// This is an open source non-commercial project. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com /* RecordFieldUtility.cs -- * Ars Magna project, http://arsmagna.ru * ------------------------------------------------------- * Status: poor */ #region U...
C#
Source/Classic/Libs/ManagedIrbis/Source/RecordFieldUtility.cs
amironov73/ManagedIrbis
mit
78,774
2,781
codeparrot/github-code
d0fc30527b5d4249a0a6a9c3450aedf62a13b5bfaf4cbf4dc3ffe6f814616a66
// ƒwƒbƒ_ƒtƒ@ƒCƒ‹‚̃Cƒ“ƒNƒ‹[ƒh #include "CFrameWnd_.h" // CFrameWnd_ƒNƒ‰ƒX #include "CDialog_.h" // CDialog_ƒNƒ‰ƒX #include "resource.h" // ƒŠƒ\[ƒXID // CFrameWnd_‚̃ƒbƒZ[ƒWƒ}ƒbƒv BEGIN_MESSAGE_MAP(CFrameWnd_, CFrameWnd) ON_UPDATE_COMMAND_UI(ID_ITEM_1_1, OnUpdateItem1_1) // ƒƒjƒ…[€–ڂȂǂÌUIXVƒ}ƒNƒ.(Item1_1...
C++
mfc/CDialog/DoModal/src/DoModal/DoModal/CFrameWnd_.cpp
bg1bgst333/Sample
mit
2,912
92
codeparrot/github-code
0f2f4b1896a9b13226579d2586bbbe138dabcf479c7fb51103918f1bab186dde
#include "sendcoinsentry.h" #include "ui_sendcoinsentry.h" #include "guiutil.h" #include "VertiCoinunits.h" #include "addressbookpage.h" #include "walletmodel.h" #include "optionsmodel.h" #include "addresstablemodel.h" #include <QApplication> #include <QClipboard> SendCoinsEntry::SendCoinsEntry(QWidget *parent) : ...
C++
src/qt/sendcoinsentry.cpp
verticoin/verticoin
mit
4,218
173
codeparrot/github-code
6f677f296b5950ee37b60de22d32013730df91f7b461eb85b3cdd40ebc7b2696
#ifndef CJ_PARSE_SET_HH_ #define CJ_PARSE_SET_HH_ #include "cj/common.hh" #include "cj/parser/tokens.hh" #include "cj/parser/parser.hh" namespace cj { template<typename T, template<typename...> class SetType = flat_set> auto parse_set(tokens &tks) -> SetType<T> { auto terms = SetType<T>{}; parser_result<T> p; ...
C++
include/cj/parser/parse_set.hh
PhDP/Shedu
mit
751
33
codeparrot/github-code
983a80067c016558b80440a5020548fa0251bb200d498037d4e9ebd1517cd490
using System; using System.Linq; using System.Collections.Generic; using UnityEngine; namespace UnityEditor.VFX.Block { [VFXInfo(category = "Velocity")] class VelocityDirection : VelocityBase { public override string name { get { return string.Format(base.name, "Direction"); } } protected o...
C#
com.unity.visualeffectgraph/Editor/Models/Blocks/Implementations/Velocity/VelocityDirection.cs
Unity-Technologies/ScriptableRenderLoop
mit
1,375
44
codeparrot/github-code
f312b7b068d0adc26efc8bacdfc7d6ef15d13991cf40f2b959c98c493208d966
from __future__ import unicode_literals class SmeltingRecipe: def __init__(self, data): self.input = data["input"] def __str__(self): return "Smelt {0}".format(self.input) class BrewingRecipe: def __init__(self, data): self.base = data["base"] self.modifier = data["modif...
Python
mcinfo/recipes.py
randomdude999/mcinfo
mit
5,016
160
codeparrot/github-code
00307e00fa6eb69d652890675dfae057ebc1e0c0c54edd8e20374e08d01c835e
package com.alphamedia.rutilahu; import android.app.Activity; import android.app.ProgressDialog; import android.content.Context; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.os.AsyncTask; import android.os.Bundle; import android.os.Environment; import android.os.Handler; impor...
Java
app/src/main/java/com/alphamedia/rutilahu/Download.java
AlphaMediaConsultant/rutilahu
mit
6,153
168
codeparrot/github-code
136c56de3feb166e0b9e910987317e2f7f725a0e418372f4c44c4d0bdcdaaea5
const mongoose = require("mongoose"); const config = require("../../config"); const { EmployeeModel, OrganisationModel, RoleModel, TableModel, RoomModel, PositionModel } = require("./mongoModels"); mongoose.Promise = Promise; mongoose.connect(config.mainMongo.url, config.mainMongo.options); mongoose.conn...
JavaScript
dbQueries/mongodb/mongoRequests.js
blowsys/reservo
mit
2,629
95
codeparrot/github-code
e91363c8634472296378baff16ad0c9cd991e7b2c124d9d0f0a885becd7056f8
#!/bin/sh set -e echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" install_framework() { if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then local source="${BUILT_PRO...
Shell
Pods/Target Support Files/Pods-BeautifulPhotos(Swift2.0)/Pods-BeautifulPhotos(Swift2.0)-frameworks.sh
ldjhust/BeautifulPhotos-Swift2.0
mit
4,367
102
codeparrot/github-code
a1c3fa0632a2409ae48b3e09e4680ff0d78f177751e243717a941c580ee3f9ed
import torch import torch.nn as nn import torch.optim as optim from torch.autograd import Variable import torch.autograd as autograd import torchvision.datasets as dset import torchvision.transforms as transforms from torch.utils.data import DataLoader from torchvision.utils import save_image import numpy as np clas...
Python
trainer.py
pianomania/infoGAN-pytorch
mit
4,627
157
codeparrot/github-code
e59cb2651e885c66291ad5ac2352843bfdb1054c442ca5612660ef9c810e77cd
package de.gurkenlabs.utiliti.swing.dialogs; import de.gurkenlabs.litiengine.resources.Resources; import de.gurkenlabs.utiliti.swing.ControlBehavior; import de.gurkenlabs.utiliti.swing.Icons; import java.awt.Color; import java.text.ParseException; import java.util.logging.Level; import java.util.logging.Logger; import...
Java
utiliti/src/main/java/de/gurkenlabs/utiliti/swing/dialogs/GridEditPanel.java
gurkenlabs/litiengine
mit
6,449
155
codeparrot/github-code
eb6e13f9d25c52f9a843ff285eb49c8afa203a8df6b2cdd06b2cb664f39a827b
const fs = require('fs'); const join = require('path').join; const rimraf = require('rimraf'); const assert = require('assert'); const root = join(__dirname, 'integrations'); function runIntegrations(basePath, version) { this.timeout(5000); const output = join(basePath, '_out'); rimraf.sync(output); ...
JavaScript
test/lib/integrations.js
zoobestik/csso-webpack-plugin
mit
3,565
94
codeparrot/github-code
c772085ed4738586e27a3354c5ad99064831da6d5a34c7ca4b72e84c94ba4596
'use strict'; var stores = require('./stores'); var simplememolap = (function () { function getDimensionOffset(name, dimensions) { for (var k = 0; k < dimensions.length; k++) if (dimensions[k].name == name) return k; return -1; } ...
JavaScript
lib/simplememolap.js
ajlopez/SimpleMemolap
mit
11,673
405
codeparrot/github-code
7c94bcb280aa89bb3a03527936515e3709d4b5140a96094df2e7abd6918bf65b
package lib import ( "archive/zip" "bitbucket.org/pkg/inflect" "bufio" "bytes" "encoding/base64" "encoding/xml" "errors" "fmt" "io/ioutil" "os" "os/exec" "path/filepath" "reflect" "strconv" "strings" "time" . "github.com/ForceCLI/force/error" ) type BigObject struct { DeploymentStatus string Label...
GO
lib/metadata.go
cwarden/force
mit
42,197
1,462
codeparrot/github-code
217b71c8e88c7ea814a460545a61b593f968f9013577fba0891ef6c47d2fa3b9
quail.lib.wcag2.Criterion = (function () { // Provide default values for the assert objects function aggregateParts (parts, defaultResult) { var getResultPriority = quail.lib.wcag2.EarlAssertion.getResultPriority; var outcome = {result: defaultResult}; $.each(parts, function (i, part) { if (getR...
JavaScript
src/core/wcag2/criterion.js
legendvijay/quail
mit
2,321
81
codeparrot/github-code
87af91550190334afa47466f228a76d617544199b18c713550338c16b7beb39d
using Microsoft.PSharp; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ExtraEvents { class Client1 : Machine { #region events public class Config : Event { public MachineId Target; pu...
C#
Samples/Experimental/LivenessBenchmarks/BuggyBenchmarks/ExtraEvents/Client1.cs
p-org/PSharpLab
mit
1,257
56
codeparrot/github-code
7ec6e5a8993265c8de4bc359d4eebbacda4df8c5c032403fa12addec494e17ab
using AgileZenApi.Models; using RestSharp; namespace AgileZenApi.Resources { public abstract class AgileZenResource { protected readonly RestClient _client; public Project Project { get; set; } protected AgileZenResource(RestClient client) { _client = client; ...
C#
src/AgileZenApi/Resources/AgileZenResource.cs
Praeses/AgileZenApi
mit
1,401
51
codeparrot/github-code
4a47c22e23b55f277bf9dd270bfce0225c9d35d3852705f4b002cbcbd75d430d
#suite GraphParams #include <check.h> #include <stdlib.h> #include <VX/vx.h> #define dimof(a) (sizeof(a)/sizeof(*a)) vx_graph vxCornersGraphFactory(vx_context context) { vx_status status = VX_SUCCESS; vx_uint32 i; vx_float32 strength_thresh = 10000.0f; vx_float32 r = 1.5f; vx_float32 sensitivit...
TypeScript
old/test/graph_params.ts
hakanardo/pyvx
mit
3,733
96
codeparrot/github-code
1ea8fe89b660016a1440eca25d74febb7941f5c31c42d4d76918f60bc7d0a10b
package net.patrykczarnik.ffmpeg; import static org.assertj.core.api.Assertions.*; import org.junit.Test; public class FFFilterChainTest { @Test public void testEmpty() { FFFilterChain chain = FFFilterChain.noLabels(); assertThat(chain.getStartLabels()).isEmpty(); assertThat(chain.getEndLabels()).isEmpty();...
Java
src/java/src/test/java/net/patrykczarnik/ffmpeg/FFFilterChainTest.java
patczar/video-scripts
mit
2,718
77
codeparrot/github-code
c147026f4aca5b9dd829946c58542268c88e531deb5b9f6da621680e423d0195
//traspuesta.c #include <stdio.h> #include <stdlib.h> #include <omp.h> /* Time in seconds from some point in the past */ double dwalltime(); int main(int argc,char*argv[]){ double *A; double temp; int i,j, N,tid; int check=1; double timetick; //Controla los argumentos...
C
cuarto-año/sistemas-paralelos/practicas/practica-3/traspuesta_static.c
ulises-jeremias/Facultad-de-Informatica
mit
2,636
101
codeparrot/github-code
8757db954c7491206e356568fe5a09ca9609fb69e2fceb48aa96e60e21aacdec
/* * ClangUtil.h * * Created on: May 13, 2014 * Author: ahueck */ #ifndef CLANGUTIL_H_ #define CLANGUTIL_H_ #include <core/logging/Logger.h> #include <clang/AST/AST.h> #include <clang/Lex/Lexer.h> #include <clang/AST/RecursiveASTVisitor.h> #include <clang/Frontend/TextDiagnostic.h> #include <string> #inc...
C
include/core/utility/ClangUtil.h
ahueck/opovlint
mit
8,476
258
codeparrot/github-code
870d7d171447a7de658b5b8ec327e4cc02140bfdacecd9c270758696abf7575e
/*========================================================================= Program: Visualization Toolkit Module: vtkADIOSWriter.h Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This sof...
C
IMU/VTK-6.2.0/IO/ADIOS/vtkADIOSWriter.h
timkrentz/SunTracker
mit
8,948
222
codeparrot/github-code
452608f6a67f6b3d2fc70a5b10802acc8d75eab7499ff7fa41c90be1b6edd4c3
// Copyright (c) 2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef NAMOCOIN_BLOOM_H #define NAMOCOIN_BLOOM_H #include <vector> #include "uint256.h" #include "serialize.h" class COutPoint; ...
C
src/bloom.h
namocoin/NamoCoin
mit
3,434
92
codeparrot/github-code
06986a0aaf81f752dc67441f2dc4e8409340a70789dd937445fc9d0b3810d1b0
package com.mikescamell.sharedelementtransitions.glide_fragment_to_fragment; import android.os.Build; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.transition.TransitionInflater; import android.view.LayoutInflater; import android.view.View...
Java
app/src/main/java/com/mikescamell/sharedelementtransitions/glide_fragment_to_fragment/GlideFragmentB.java
mikescamell/shared-element-transitions
mit
2,578
70
codeparrot/github-code
2f6908088d7fc6a8cf2b2b071d624615ff62508ff0cdc733d18bc08e0e32b3e4
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>2013-06</title> <meta name="generator" content="Zim 0.62...
HTML
zim/笔记存档/2013-06.html
pimgeek/pimgeek.github.io
mit
5,163
104
codeparrot/github-code
63ab871ce4f2b3e8bb8d56d59c5b096bf6328c8eb592fc2e18a79a2f051b626c
"""AMQPStorm Exception.""" AMQP_ERROR_MAPPING = { 311: ('CONTENT-TOO-LARGE', 'The client attempted to transfer content larger than the ' 'server could accept at the present time. The client may ' 'retry at a later time.'), 312: ('NO-ROUTE', 'Undocumented AMQP Soft Error'), 31...
Python
amqpstorm/exception.py
eandersson/amqpstorm
mit
4,732
126
codeparrot/github-code
9d08980f636e7af58b00aa1b5ab2bdde071ae0ff05961c607179d61ba5092339
// Copyright 2020 Las Venturas Playground. All rights reserved. // Use of this source code is governed by the MIT license, a copy of which can // be found in the LICENSE file. #ifndef PLAYGROUND_BINDINGS_MODULES_EXECUTE_H_ #define PLAYGROUND_BINDINGS_MODULES_EXECUTE_H_ #include <string> #include <vector> #include <b...
C
src/playground/bindings/modules/execute.h
LVPlayground/playgroundjs-plugin
mit
1,127
31
codeparrot/github-code
c1451bd2ec78a107057afc14298a3f2bb5dc1e220a45fe2cf16e7d0be61ba4c6
<?php /** * @author John <john@ionomy.com> * @license http://opensource.org/licenses/MIT The MIT License (MIT) */ namespace controllers; use lib\IONDb; /** * Class Chart * @package controllers */ class Chart extends Controller { public function index() { } private function getLimit($def...
PHP
controllers/Chart.php
rdewilde-ion/block-explorer
mit
6,338
222
codeparrot/github-code
eff794962bed8d05df29536a7bfd9082d4e9e7f4339cb7e911292e35166f34c1
'use strict'; module TourabuEx.popup { var setting = <HTMLFormElement>document.querySelector('#setting'); interface Setting { setting: {}; } function loadSetting() { storage.get('setting').done(function (s) { var k, el; for (k in (<Object>s)) { ...
TypeScript
app/ts/popup.ts
ayachigin/tourabu-extension
mit
1,667
64
codeparrot/github-code
3e7fcff78e5a5ab74348d5b4d7a14c9e4630b8a585bea4c021a446dd7bf340ba
#include <bits/stdc++.h> using namespace std; #undef LOCAL string to_string(string s) { return '"' + s + '"'; } string to_string(bool x) { return (x ? "T" : "F"); } string to_string(const char* s) { return to_string((string)s); } template <typename A, typename B> string to_string(pair<A, B> p) { return "(" + to_string...
C++
codeforces/1279e.cpp
sogapalag/problems
mit
3,168
121
codeparrot/github-code
4e8ed3672e6ecee706a9e2d01e3f8acfb29818df4128678990c9e4862eb3ecb3
import sys import os import time import resetMbed import serialMonitor # Program the mbed, restart it, launch a serial monitor to record streaming logs def runMbedProgramWithLogging(argv): for arg in argv: if 'startup=1' in arg: time.sleep(10) # If a bin file was given as argument, program ...
Python
fish/pi/runMbedProgramWithLogging.py
tarquasso/softroboticfish6
mit
1,134
38
codeparrot/github-code
0f368f6a3b86b7f5fcca88cceb9e6f8af7b9f78e1cafcba551d7f1f34778d650
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <!-- /fasttmp/mkdist-qt-4.3.5-1211793125/qtopia-core-opensource-src-4.3.5/tools/qdbus/src/qdbusabstractinterface.cpp --> <...
HTML
webserver/html/qdbusabstractinterface-members.html
misizeji/StudyNote_201308
mit
8,701
85
codeparrot/github-code
dc9f0db573ca297e00137758faf963cba424b4c67ad31b1e7db229422a275742
App.sensor = (function() { var config = { container: "status_indicator", channel: "sensor", user: "usgard" }; function init(configuration) { config = Object.assign({}, config, configuration); App.channel.init({identifiers: identifier(), functions: subscriptionFunctions()}); } function identifier() {...
JavaScript
apps/web/assets/javascripts/sensor.js
GabrielMalakias/usgard
mit
1,159
48
codeparrot/github-code
72b075e924cacd8067d0a45a6bdab1878f7441b6982d14e64cd5db17ffdcd13a
var http = require("http"), url = require("url"), util = require("util"), AWS = require("aws-sdk"), dns = require("dns"), Q = require("q"), Marathon = require("./lib/marathon.js"), utils = require("./lib/utils.js"), debug = require("debug")("dns"); debug.marathon = require("debug")("dns...
JavaScript
dns.js
Misakai/dns
mit
7,764
337
codeparrot/github-code
47572ec5d7735ace6a6d6e2e527bdabeb1e83c8ac8e60f783d4261957865e6a9
var express = require('express'); var path = require('path'); var fs = require('fs'); var preloader = require('../src/componentDataPreloader.js'); var app = express(); var clientPath = path.join(__dirname, '../client'); app.get('/', function(request, response) { loadFile(request.path, function(err, html) { if (...
JavaScript
server/app.js
ComponentKitchen/server-data-expansion
mit
1,002
42
codeparrot/github-code
a8a5cea4c02b86c9c400990223237470f3e85732c84847e4ebb1be1644c67437
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <script type="text/javascript"> // 函数名方式 function helloWorld(str){ // return str //undefined return str } alert(helloWorld('helloworld')); // 命名函数 var helloworld2 = function(){ ...
HTML
js_object/test.html
fqc/JavaScript_research
mit
587
31
codeparrot/github-code
25d4563f276e900a1bf9ebf86a8afedf2306b480183a2bf5156ab7e3cb315a4b
//The MIT License (MIT) // //Copyright (c) 2015 Fabian Fischer // //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,...
C#
IProxy/networking/svrPackets/ArenaNextWavePacket.cs
ossimc82/RotMG-Proxy-Alpha-
mit
1,779
49
codeparrot/github-code
0864ce56c04bb1cd6c7491f92c7a63f14fc41d0e5dab0a87756e61097fe4becd
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the MIT license. See License.txt in the project root for license information. using System.Collections.Immutable; using System.Runtime.CompilerServices; using Analyzer.Utilities.Extensions; using Analyzer.Utilities.PooledObjects; #if DEBUG using Syst...
C#
src/Utilities/FlowAnalysis/FlowAnalysis/Framework/DataFlow/LValueFlowCapturesProvider.cs
dotnet/roslyn-analyzers
mit
3,163
80
codeparrot/github-code
358002c4729150fb761b91119e70a25fb16d252368851df0bb3d00735ee2b03c
package eu.yals.test.app; import eu.yals.constants.App; import eu.yals.test.TestUtils; import kong.unirest.BodyPart; import kong.unirest.HttpRequest; import kong.unirest.HttpResponse; import lombok.extern.slf4j.Slf4j; import java.lang.reflect.Field; /** * Tests, where we run application same ways in {@link eu.yals....
Java
src/test/java/eu/yals/test/app/UnirestTest.java
yadevee/yals
mit
3,703
94
codeparrot/github-code
b89a92671948488a7f3a3a63da72f5a1587b258883668d9c6622fff79d0ffabd
package springapp.service.impl; import java.sql.Timestamp; import java.text.ParseException; import org.springframework.stereotype.Component; import springapp.service.UtilsInterface; @Component public class Utils implements UtilsInterface{ public Timestamp getTimestamp(String timestampStr) throws ParseException{ ...
Java
src/springapp/service/impl/Utils.java
Eddie-Graham/springapp
mit
1,292
65
codeparrot/github-code
97b0888c756df2c6185d64548a5c9bdcb87630196ad06f191d947a261a8f35cb
/* * grunt-ringci * https://github.com/dostokhan/grunt-ringci * * Copyright (c) 2016 Moniruzzaman Monir * Licensed under the MIT license. */ 'use strict'; const vm = require('vm'); const util = require('util'); module.exports = exportTask; function exportTask(grunt) { // Please see the Grunt documentation fo...
JavaScript
tasks/ringci.js
dostokhan/grunt-ringci
mit
46,661
1,102
codeparrot/github-code
1d7876a0423e047b841f1c1facabf5d603ecd8088ade816a3dd8a7941e6ccd87
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
TypeScript
src/vs/workbench/common/editor.ts
ups216/vscode
mit
17,883
664
codeparrot/github-code
3e35aa5a6f3fd6c08077309d7d933ebbe39525cf1a0da05999b40d3b8f3e85fb
//+build ignore // Copyright 2015, Klaus Post, see LICENSE for details. // // Simple stream encoder example // // The encoder encodes a single file into a number of shards // To reverse the process see "stream-decoder.go" // // To build an executable use: // // go build stream-encoder.go // // Simple Encoder/Decoder S...
GO
examples/stream-encoder.go
fwessels/reedsolomon
mit
3,472
143
codeparrot/github-code
7d42dd0436620eda73601038c5f7673960e6b2a09c7ee2b6e0ab02755a5e90d6
<html> <head> <title> Past struggles with lessons for today </title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <?php include "../../legacy-includes/Script.htmlf" ?> </head> <body bgcolor="#FFFFCC" text="000000" link="990000" vlink="660000" alink="003366" leftmargin="0" topmargin="0"> <...
PHP
web/2002-1/401/401_09_ThreeStrikes.php
ISO-tech/sw-d8
mit
4,376
54
codeparrot/github-code
9e2e88fbe3edcf9317d2a1e01e047021efc2c8c7bf170b89c90688fb4b9c91f3
twssApp.controller('navController', ['$scope', '$location','$window', '$http','Socket', function($scope, $location, $window, $http,Socket){ $scope.isActive = function(destination){ // console.log(destination); // console.log($location.path()); return $location.path().indexOf(destination) > -1; }; $scope.f...
JavaScript
client/js/controllers/navController.js
yairbr/TWSS
mit
2,022
59
codeparrot/github-code
acecea80a2bb23b8b318354c3c94a2a1265746fdef6a92085bcb1b3d24f58b45
#!/usr/bin/env python #The MIT License (MIT) #Copyright (c) 2016 Massimiliano Patacchiola # #THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF #MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE ...
Python
deepgaze/motion_detection.py
mpatacchiola/deepgaze
mit
7,320
163
codeparrot/github-code
4a0be8cc57b9655206ba66e213a3d22e58ca980594035c156d05fb13d15a473b
#pragma once #include "environment_model/grid.h" #include "math/graph.h" //#include "math/graph_node.h" #include "math/polygon.h" #include <set> #include <functional> namespace asn { class grid_segment: public graph_node { public: typedef std::shared_ptr<grid_segment> ptr; typedef std::set<grid_cell::ptr>:...
C
include/environment_model/grid_segment.h
asadat/active_aerial_survey
mit
4,417
126
codeparrot/github-code
2f686758385a5894702e9eabfd51f284afb9b532a7368b422cff358d7cabbc49
<?php namespace Acme\BinderBundle\EventListener; use Acme\BinderBundle\AcmeBinderBundle; use CG\Core\ClassUtils; use Acme\BinderBundle\Controller; class BinderExtension extends \Twig_Extension { protected $loader; protected $controller; public function __construct(\Twig_LoaderInterface $loader) { ...
PHP
src/Acme/BinderBundle/EventListener/BinderExtension.php
Sehenge/symfony
mit
5,932
170
codeparrot/github-code
144c009484b8b3f5421c8e7c5e11ee266c424f00a84a9e06e5dab94eeb3736f1
(function() { var scene, camera, renderer, sprite, prevFrame = 0, keyboard = new Keyboard(); function createSprite(width, height, color) { //var image = new THREE.ImageUtils.loadTexture(image); var material = new THREE.MeshBasicMaterial({color: color}); var geometry = new THREE.BoxGeome...
JavaScript
game.js
Oralordos/WebGL-Playground
mit
3,323
102
codeparrot/github-code
a1e3a66659789cb91f59f53ce5da57eafb0eb3fbb9308ebf4bd78382e618ff34
import * as tk from '../../ui/toolkit.js' import * as workbench from '../workbench' import * as cad_utils from '../cad-utils' import Vector from '../../math/vector' import {Matrix3, ORIGIN} from '../../math/l3space' import {OpWizard, IMAGINE_MATERIAL, BASE_MATERIAL} from './wizard-commons' export function ExtrudeWizar...
JavaScript
public/webcad/app/3d/wizards/extrude.js
Autodrop3d/autodrop3dServer
mit
3,651
106
codeparrot/github-code
af5ffa5da2fff488abc6a295e0836325b623fcd994291a344d2eca5ad68e4fb1
#ifndef PATHFINDER_PTR_QUEUE_H #define PATHFINDER_PTR_QUEUE_H #include <functional> #include <mutex> #include <array> #include <condition_variable> #include "common.h" namespace flowparser { // A blocking queue for passing pointers between threads. This is a multi // consumer, multi producer queue. template<typenam...
C
ptr_queue.h
ngvozdiev/flowparser
mit
3,546
151
codeparrot/github-code
dd5d974d9d6a4d3d9774f87fa19b88182d921606806324294e3cff4b3e318088
<!-- CTA BUTTONS HTML SAMPLE http://www.industrydive.com/blog/how-to-make-html-email-buttons-that-rock https://www.campaignmonitor.com/blog/post/4076/how-to-add-a-fixed-position-cta-to-your-email-newsletters http://buttons.cm Purpose: Examples of buttons for call to action in email campaigns Rationale: Most em...
HTML
app/html-samples/cta-buttons.html
centralcollegenottingham/HTML-Email-Boilerplate-Redux
mit
4,687
194
codeparrot/github-code
1b84a873b1628d2e11c8d05e25afd105fd81dd522d042b0f422f8f2e1cf621e6
/* * The MIT License * * Copyright 2017 starcatter. * * 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, modi...
Java
ja2MapTool/src/main/java/thebob/ja2maptool/ui/tabs/mapping/setup/MappingSetupTabViewModel.java
starcatter/ja2tools
mit
6,130
155
codeparrot/github-code
3d76f8a29262c3e5c4d98247dc11eee36daf4a6de9f1c3f8d5689771264f5607
using System.Data.Entity; using System.Linq; using System.Net; using System.Web.Mvc; using LucyManager.MVC.Models; using System.Threading.Tasks; namespace LucyManager.MVC.Controllers { public class ReservasController : Controller { private LucyManagerDbContext db = new LucyManagerDbContext(); ...
C#
Projeto Lucy Manager/LucyManager.MVC/Controllers/ReservasController.cs
MarcusVeloso/LucyManager-MVC
mit
4,339
148
codeparrot/github-code
17d99409977725f4ce1b7374b99e30739235c416fa58b1209857e82f81f67e32
/** <module> Collection handling. */ :- module(_, [ new_collection/3, collection_database/2, collection_name/2, collection_namespace/2, collection_connection/2 ]). :- include(include/common). %% new_collection(+Database, +CollectionName, -Collection) is det. % % Tr...
Perl
src/mongo_collection.pl
dakerfp/prolongo
mit
2,124
66
codeparrot/github-code
a5e1c5c8611e08da2bebf90e5635a58a45d21f8f0981e5b86415e17722f58a2b
import tkinter import sys import getopt import time import threading import os import random import enum import racemap import racecar import racecolor def callback(event): """ Reacts to a user click on the window """ # switch on the status global status # if still initializing, ignore the click and don't do a...
Python
racetrack.py
kinnla/racetrack
mit
8,945
347
codeparrot/github-code
9839530ce1dbeabd8bbcdbdaecdf224bff5454bbe5776c455d4f33bae433af4e
from __future__ import print_function import sys import contextlib from collections import OrderedDict, deque import numpy import six import theano from theano import tensor from theano import printing from theano.gof.graph import Constant from theano.tensor.shared_randomstreams import RandomStateSharedVariable from t...
Python
libs/blocks/blocks/utils/__init__.py
rizar/attention-lvcsr
mit
18,117
581
codeparrot/github-code
8d7d386aa683caef99dec563eb87a2b8c53c82d8633b22bb93549c102438b1ec
/* * Class NativeUtils is published under the The MIT License: * * Copyright (c) 2012 Adam Heinrich <adam@adamh.cz> * * 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 restrictio...
Java
src/main/java/cz/adamh/utils/NativeUtils.java
adamheinrich/native-utils
mit
5,830
143
codeparrot/github-code
9fbdd47e8e4e8bc3de02dfa822ef1bdfe3436308e07e8b518e95a6e3aa64e63e
import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { ActionBarModule, ActionModule, AutoCompleteEditorModule, BackdropModule, BoolEditorModule, CaptionModule, CellEditorModule, CellTooltipModule, ChangeDetectorModule, ...
TypeScript
packages/qgrid-ngx-theme-basic/src/lib/theme.module.ts
qgrid/ng2
mit
2,309
113
codeparrot/github-code
50d9103bad748a183089a8e44e3ea561fd6115f4ad7180415d005f4a57492960
// // Copyright (c) Microsoft. All rights reserved. // // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Collections.ObjectModel; using System.ComponentModel; using System.Timers; using System.Windows; using System.Windows.Controls; using ...
C#
Getting Started/Concepts/samps/propertychangenotification_samp.xaml.cs
Microsoft/WPF-Samples
mit
9,649
254
codeparrot/github-code
2eaa2ff92b7e9761ddd3f07799c1a64bce75b1ce81b3fb0bd6b8b462844ea227
#include "Gfx.h" //////////////////////////////////////////////////////////////////// // // Shader.cpp // Shader::Handle Shader::CreateEmpty ( const char* name ) { Shader::Handle shader( new Shader(name) ); return shader; } Shader::Handle Shader::CreateFromData ( const char* name, const char* pData, uint nsi...
C++
src/systems/gfx/Shader.cpp
Etskh/Jotun
mit
1,868
107
codeparrot/github-code
7bcbdf948fe3f13e93137a90f6e4400d8f4c8c3ce3b3a5506471ceb22751650c
'use strict'; /** * Institutions resource that connects with Firebase **/ angular.module('resources.donations',[]) .factory('donations',['$firebase', 'FBURL', function( $firebase, FBURL) { var ref = new Firebase(FBURL + '/donations'); var donations = $firebase(ref).$asArray(); // it took me time to fi...
JavaScript
app/common/resources/donations.js
henry-hz/tzedakapp-refactor
mit
835
35
codeparrot/github-code
5ee98dca38d3567d35c0464bb2d6bfd359ad7a9e9c32e50587c43422d9bfa0c7
#include "Rectangle.hpp" #include "Default2D.vert.hpp" #include "SingleColor2D.frag.hpp" #include <Core/Resources.hpp> namespace Geometry { Rectangle::Rectangle() { // Vertices. vertexNr = 4; vertexData = new Vertex[vertexNr]; vertexData[0] = { glm::vec2(-1.f, 1...
C++
src/Core/Geometry/Rectangle.cpp
Chainsawkitten/UltimateGolf19XX
mit
2,867
97
codeparrot/github-code
40b3725158d204d79f3b23f781e3dc15f6812f397fb8fdb36959a9c9fa7eab67
//g++-5 --std=c++11 -Wall -g -o ds_tree_del_node_bst ds_tree_del_node_bst.cc /** * @file Delete Node in a BST * @brief Given root of BST and value, delete it from BST */ // https://leetcode.com/problems/delete-node-in-a-bst/ #include <iostream> /* std::cout */ #include <algorithm> ...
C++
leetcode/ds_tree_del_node_bst.cc
prashrock/CPP
mit
2,528
85
codeparrot/github-code
c150653f802cdea0337a6f83e1de9b056f644af335a44b771a2c308ca779d69e
#!/usr/bin/env python import h5py import numpy import argparse import cPickle from fuel.datasets.hdf5 import H5PYDataset def pack(f, name, dataset_pathes): datasets = [cPickle.load(open(path)) for path in dataset_pathes] data = sum(datasets, []) dtype = h5py.special_dtype(vlen=numpy.dtype('int32')) t...
Python
bin/pack_to_hdf5.py
rizar/actor-critic-public
mit
2,224
58
codeparrot/github-code
4a16f9b46ca2ba2b0f5a5410a0cc9b5c7e3d6f92d5c54c3c847f69d601e32eef
<###################################################################### Menu-driven PowerCLI script to delete, add, and update DNS and NTP on VMware ESXi hosts. **Save as set-ntp.ps1 **Switch to directory ps1 is saved in and run ** MAKE SURE LOCAL SYSTEM TIME IS CORRECT!!!! v1.0 27 February 2014: Initial draft v...
PowerShell
set-ntp.ps1
joshuatownsend/set-vmware-ntp-dns
mit
8,176
197
codeparrot/github-code
33695c996ddd8f6657efeec5bb39e0dd377cf124b4f48b7996221d0e65e728b9
package skin.support.widget; import android.content.Context; import android.content.res.ColorStateList; import android.content.res.TypedArray; import android.graphics.Color; import androidx.cardview.widget.CardView; import android.util.AttributeSet; import skin.support.cardview.R; import skin.support.content.res.Skin...
Java
androidx/skin-support-cardview/src/main/java/skin/support/widget/SkinCompatCardView.java
ximsfei/Android-skin-support
mit
2,809
71
codeparrot/github-code
c7457f94f7d799a141f113baa8223cceb16fe1236c11ee8af8d707e466388101
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { UserCardComponent } from './user-card.component'; import { SharedModule } from '../shared.module'; import { ImagePipe } from '../image/image.pipe'; describe('UserCardCompon...
TypeScript
src/app/shared/user-card/user-card.component.spec.ts
thisissoon/angular-start
mit
903
32
codeparrot/github-code
537c8c3e1a954d6991bbfe5238effcb8f40e7739b0b1a917770127791f52dceb
from multiupload.fields import MultiUploadMetaField, MultiUploadMetaInput from django import forms from dal import autocomplete from . import models # Django 2 fix (https://github.com/Chive/django-multiupload/issues/31) class PatchedMultiUploadMetaInput(MultiUploadMetaInput): def render(self, name, value, attrs=...
Python
Seeder/harvests/forms.py
WebArchivCZ/Seeder
mit
3,363
118
codeparrot/github-code
9f456acabe5704d9d4a29ad715390b27ebb37678eed026ff246ab04e260ba1ca
{% load staticfiles %} <!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"> <meta name="description" content=""> <meta name="author" content=""> <title>Extreme ...
HTML
xmccamp/controller/templates/controller/pages/signup.html
oskgeek/xmccamp
mit
5,304
105
codeparrot/github-code
d66cef022e1e6365bd7ba8296b452fbf79d71dedb49b8ab61d584b1eb3342ef4
using System; using System.Collections.Generic; using System.Linq; using Microsoft.Xna.Framework; using Terraria; using TAPI; namespace Avalon.Items.Weapons.Ranged.Cannons { /// <summary> /// The Vertebrae Cannon. /// </summary> public sealed class VertebraeCannon : ModItem { /// <summary> ...
C#
Avalon/Items/Weapons/Ranged/Cannons/Vertebrae Cannon.cs
Avalon-Team/Terraria-Avalon
mit
1,313
48
codeparrot/github-code