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
015dd5f2a6207481dc3614f5cae77fa4abd7d37a9f9441c0bf8b910a300e5014
import * as React from 'react'; import Link from 'next/link' import Head from '../component/Head'; import css from 'next/css' import Menu2 from '../component/Menu2'; const styles = { header: css({ display: 'flex', marginBottom: 20, marginTop: 150 }) } export default class App extends React.Component ...
JavaScript
pages/slide7.js
pltod2/braggers
mit
787
36
codeparrot/github-code
1c34b01c7b19cb134451f68f76a63a68e40b12977e3731d3207465631cfaa762
<?php if (SOFT_SESSION !== true) exit(); function bbc($text, $funcs=0) { if ($funcs == 0) { global $bbct; } else { global $bbcpost; $bbct = &$bbcpost; } $start = 0; if ($funcs == 0) { $text = nl2br(trim($text)); $text = str_replace('&#92;[', '&#91;', $text); $text = str_replace('&#92;]', '&#93;', $te...
PHP
src/common/bbcode.php
pjurik2/treeboard
mit
9,938
374
codeparrot/github-code
036956a1b38cc35eb0569df593cee8709ed379208bd32b0d97e95335ab7f5ddd
import { Box, EnvelopeIcon, FacebookIcon, Flex, Tooltip, TwitterIcon, } from "@artsy/palette" import { FC } from "react" import { getENV } from "v2/Utils/getENV" interface ArticleShareProps { description: string | null pathname: string | null } export const ArticleShare: FC<ArticleShareProps> = ({ d...
TypeScript
src/v2/Components/ArticleShare.tsx
artsy/force
mit
1,646
70
codeparrot/github-code
77e90e05f8fe9f94da6d4c4a09eec6fea5f8d45f212f1bae5c6c5d594f0acf93
/* @license Angular Treeview version 0.1.6 ? 2013 AHN JAE-HA http://github.com/eu81273/angular.treeview License: MIT [TREE attribute] angular-treeview: the treeview directive tree-id : each tree's unique id. tree-model : the tree model on $scope. node-id : each node's id node-label : each node's label node-...
JavaScript
FlaskApp/static/scripts/angular-treeview.js
benno16/extraFiles
mit
3,107
102
codeparrot/github-code
cc949c2843fb6dc02425be6cc1b269d444cf79c4b3ee90c6f61ff5d894913e5e
/* * Copyright (C) 2009-2011 Marcelina Kościelnicka <mwk@0x04.net> * All Rights Reserved. * * 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 limita...
C
envydis/core-dis.c
envytools/envytools
mit
24,047
881
codeparrot/github-code
f49c02b234a002ef2b266943d384659750d443bb4b6fad0b095e05170d2b071c
namespace RoomMeasurer.Client.Web.ResponseModels { using System; using Newtonsoft.Json; [JsonObject] public class UserResponseModel { [JsonProperty("_id")] public string Id { get; set; } [JsonProperty("userName")] public string UserName { get; set; } [Json...
C#
Projects/RoomMeasurer/RoomMeasurer.Client/Web/ResponseModels/UserResponseModel.cs
todorm85/TelerikAcademy
mit
730
32
codeparrot/github-code
65938fb0975533f83a59871c2315605be3d41fee47b9eaf3a8cfbfb82d75fe04
#!/usr/bin/env python3 # Copyright (c) 2021 The Fujicoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test compact blocks HB selection logic.""" from test_framework.test_framework import FujicoinTestFramework...
Python
test/functional/p2p_compactblocks_hb.py
fujicoin/fujicoin
mit
3,797
98
codeparrot/github-code
5acea6a6bc8bc8fe32910be1ae227ac826444273180d7a516f2a1497b4bfd0ce
#!/usr/bin/python3 try: import qr_tools as qrTools # Module for this project except: import gen_3dwallet.qr_tools as qrTools try: import TextGenerator as textGen # Module for this project except: import gen_3dwallet.TextGenerator as textGen import bitcoin # sudo pip3 install bitcoin import argpar...
Python
gen_3dwallet/base.py
btcspry/3d-wallet-generator
mit
24,069
381
codeparrot/github-code
1ab80f0b5ea50539c8251c715a7417c28adb622fe65e89ba4870f5d6eb23b878
/* * Copyright 2006 Stephen Duncan Jr * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
Java
java/cards/Card.java
jrduncans/highcard
mit
1,808
68
codeparrot/github-code
bdf22e08f30c2d6d25baca9cdc9265e1ecead78210af965ac779c99f5b2fc66f
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>W29755_text</title> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <div style="margin-left: auto; margin-right: auto; width: 800px; overflow: hidden;"> ...
HTML
ocr_extracted/W29755_text/page30.html
datamade/elpc_bakken
mit
3,212
61
codeparrot/github-code
0c8e8e4d92c52e88e365d0500870e44c0460f6f6beea2f2867f3082f69097f38
package net.cinhtau.xml; import org.junit.Test; import org.w3c.dom.Document; import org.w3c.dom.Element; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; public class DocumentUtilsTest { @Test public void testGetStringFromD...
Java
xml/src/test/java/net/cinhtau/xml/DocumentUtilsTest.java
cinhtau/kaffee-pelion
mit
2,202
73
codeparrot/github-code
024c4c34931c54655f04443cbd00a013a6b329fafd35691b6c9da28f91b41ee3
class Api::V1::AuthorsController < ApplicationController before_action :set_author, only: [:show, :update, :destroy] # GET /authors def index @authors = Author.all render json: @authors end # GET /authors/1 def show render json: @author end # POST /authors def create @author = Auth...
Ruby
server/app/controllers/api/v1/authors_controller.rb
aleksft/myshelfapp
mit
1,079
52
codeparrot/github-code
45d7a9cbc0ee44d479f0bc98b5a86836e93ea94e6f6ac5909093f4a355bd62c1
<?php namespace Bolt; use Bolt\AccessControl\Permissions; use Bolt\Storage\Entity; use Bolt\Translation\Translator as Trans; use Doctrine\DBAL\Exception\TableNotFoundException; use Silex; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Security\Csrf\CsrfToken; /** * Class to handle things dealin...
PHP
src/Users.php
slummer87/rkarkut.pl
mit
16,092
557
codeparrot/github-code
1c60784ae9887494037c69c362353c90a4a4a71d554c901780cad30f98291f67
describe("Luaflow tests", function() local lib = require "luaflow_lib" local concat = table.concat local function test_file_path(s) return "tests/" .. s end local function verify_flow(lua_src, flow_txt) local ctx = lib.create_ctx() local t = lib.parse(ctx, lua_src) ...
Lua
test.lua
calio/luaflow
mit
1,653
68
codeparrot/github-code
5219e9c50589f6d7043da4665062a3d30be641ccf02e7fc4b798ee8a5abec9a4
<!DOCTYPE html> <html xmlns:msxsl="urn:schemas-microsoft-com:xslt"> <head> <meta content="en-us" http-equiv="Content-Language" /> <meta content="text/html; charset=utf-16" http-equiv="Content-Type" /> <title _locid="PortabilityAnalysis0">.NET Portability Report</title> <style> ...
HTML
Reports/go/google.apis.cloudlatencytest.v2.1.9.0.50/Google.Apis.Cloudlatencytest.v2-portable-net40%2Bsl50%2Bwin%2Bwpa81%2Bwp80.html
kuhlenh/port-to-core
mit
9,677
240
codeparrot/github-code
11171905b2827f5420236397333f852372237549c8f16c5a79c9702ce9190bd3
/* =============================================================================================== Unify Project Homepage: unify-project.org License: MIT + Apache (V2) Copyright: 2010, Sebastian Fastner, Mainz, Germany, http://unify-training.com ===============================================================...
JavaScript
unify/framework/source/class/unify/ui/layout/special/TabViewLayout.js
unify/unify
mit
2,117
75
codeparrot/github-code
21510bec3138347e115bb65c189748e34d57ef777fc80534d1e8856ef3815064
package think.rpgitems.power.impl; import cat.nyaa.nyaacore.Pair; import com.google.common.cache.CacheBuilder; import com.google.common.cache.CacheLoader; import com.google.common.cache.LoadingCache; import org.bukkit.Location; import org.bukkit.OfflinePlayer; import org.bukkit.configuration.ConfigurationSection; impo...
Java
src/main/java/think/rpgitems/power/impl/PowerSelector.java
NyaaCat/RPGitems-reloaded
mit
10,943
316
codeparrot/github-code
2599770fc92739b7bdf3766157e50746ccd841efb3f11c7cb731625a53fe095d
# coding: utf-8 # The goal of this assignment is to train a Word2Vec skip-gram model over [Text8](http://mattmahoney.net/dc/textdata) data. # These are all the modules we'll be using later. Make sure you can import them # before proceeding further. import collections import math import numpy as np import os import ra...
Python
tensorflow_examples/word2vec.py
ds-hwang/deeplearning_udacity
mit
14,317
304
codeparrot/github-code
fd5ade7a2e22537845dbe4e9956c275963d0541a943e0bee753a70eae9462410
var path = require("path"); var ugli = require("uglify-js"); var chalk = require('chalk'); var suber = require('./super'); var sixto5 = require('6to5'); var syntax = require('./syntax'); /** * Here it comes. * @param {Grunt} grunt */ module.exports = function(grunt) { "use strict"; var SPACER = "\n\n\n"; var H...
JavaScript
tasks/guibundles.js
wiredearp/grunt-spiritual-build
mit
6,641
265
codeparrot/github-code
1269267d0c8919c3b837b1214f8d816c46bd21f40c0436803d9b741986cfe2f3
var React = require('react'); var AlbumViewer = require('../../components/album-viewer/album-viewer'); var Header = require('../../components/header/header'); var Footer = require('../../components/footer/footer'); var albums = require('../../config/albums'); var RightSidebar = require('../../components/right-sidebar')...
JavaScript
app/controllers/albums/albums.js
avocadojesus/litronix
mit
1,527
55
codeparrot/github-code
5c9e6e69354c45a1abb368ce6dd6b22877265f3fb81f279a6311b08753f40803
/// <reference path='../typescript-definitions/mocha.d.ts' /> /// <reference path='../typescript-definitions/node.d.ts' /> /* jshint mocha:true */ 'use strict'; var rdr = require('../index'); var assert = require('assert'); var _a = [rdr.deepReaddir, rdr.deepReaddirSync], deepReaddir = _a[0], deepReaddirSync = _a[1]; d...
JavaScript
test/index.js
eduardbadillo-igrid/deep-readdir-extended
mit
4,088
114
codeparrot/github-code
58fe6b7ae4df9b9e8beb783bccc34a8703590ddb60028cf63668da0de3c9deec
#ifndef C_APP_HPP_ #define C_APP_HPP_ #include <memory> #include <array> #include "SDL.h" #include "cAnimation.hpp" #include "cEntity.hpp" #include "cEvent.hpp" class CApp: public CEvent { public: CApp(); int OnExecute(); bool OnInit(); void OnEvent(SDL_Event* event); void OnLoop(); void O...
C++
src/cApp.hpp
wolfman2000/tim-jones-sdl
mit
1,016
52
codeparrot/github-code
813878e885b7bfee6d9681317bf18ab1a297cbcef3c524b3c696354d489efc75
export const name = 'Provider'; /** * Generate provider uid name from provider name and user ID * @param {String} providerName Provider name * @param {String} uid User ID * @return {String} Provider UID */ export function genNameUID(providerName, uid) { return providerName + '_' + uid; }...
JavaScript
src/models/provider.js
seeden/maglev
mit
1,093
39
codeparrot/github-code
86b263bcca5aea5912ff9eccd255cdbf73277144037d10d056af8cdad2bcd52c
<?php /** * Part of ww4 project. * * @copyright Copyright (C) 2020 __ORGANIZATION__. * @license __LICENSE__ */ declare(strict_types=1); namespace Windwalker\DI\Attributes; use Windwalker\DI\Container; /** * The Decorator class. */ @@\Attribute(\Attribute::TARGET_CLASS) class Decorator implements ObjectD...
PHP
packages/di/src/Attributes/Decorator.php
ventoviro/ww4
mit
1,063
52
codeparrot/github-code
04247973b89165eb874e0455ee68ac507bc7daf89c31be06f70c245a87f7f074
# encoding: utf-8 require "amq/client/openable" require "amq/client/async/callbacks" module AMQ module Client module Async module RegisterEntityMixin # @example Registering Channel implementation # Adapter.register_entity(:channel, Channel) # # ... so then I can do: # c...
Ruby
lib/amq/client/async/entity.rb
ruby-amqp/amq-client
mit
1,682
67
codeparrot/github-code
3e0e7412e939f4d9e771e5a0a351aef6bd367d0de36ea95f45705f77a87459ca
'use strict'; //csbindはclientとserverで //[{},{}...] //の形式の抽象テーブル型を共有するためのライブラリ //underscore.jsとunderscore-contrib.jsに依存する。 // var _ = require('underscore-contrib'); var def = require('deferred'); var csbs = {}; //deepClone //Date型のみ対応 (function() { function _deepClone(obj) { var _dc; if (!_.isArray(obj)) { ...
JavaScript
index.js
mememorisun/csbind-server
mit
17,114
649
codeparrot/github-code
18feef89d7bfdee51cb7f8ed751d23d31fb2106d48f046521cbcd9c6280a7921
<?php namespace System\Controllers; use Mail; use Flash; use BackendMenu; use Backend\Classes\Controller; use System\Models\MailTemplate; use System\Classes\SettingsManager; use Exception; /** * Mail templates controller * * @package october\system * @author Alexey Bobkov, Samuel Georges */ class MailTemplates e...
PHP
modules/system/controllers/MailTemplates.php
c57fr/c57
mit
2,064
86
codeparrot/github-code
f0dcd56abe94a84184f35fcbc044076c328033797f1a0fabe10678e6596ab269
// load the things we need var mongoose = require('mongoose'); var bcrypt = require('bcrypt-nodejs'); // define the schema for our user model var userSchema = mongoose.Schema({ local : { email : String, pass : String, country : String, date ...
JavaScript
app/models/account.js
lucianoportela/hiverbook
mit
1,133
43
codeparrot/github-code
9299d1e86fe09a148cc1f59c34a4a503b9aa0d31370269dcc011939053a0e333
var ModAPI = require('modapi') var _ = require('lodash') var fs = require('fs') var path = require('path') var readLocalFile = function(name) { return fs.readFileSync(path.join(__dirname, name)) } var qml = ModAPI.QMLFileV2("Controls/SelfSwitchBox.qml") var node = qml.root node.type = "LabeledEditableComboBox" nod...
JavaScript
index.js
mvUCCU/mod-more-self-switches
mit
2,157
75
codeparrot/github-code
9d169bebe4aa54a2600fb1d482e7ec98eca8948fd386bc4863d7efe7411cb034
package edu.pingpong.physycs; /* * This class provides the functionality of a controller of the game. * You can control the ball with it. */ import javax.swing.JPanel; import java.awt.Graphics; import java.awt.Color; import java.awt.Point; public class PPSlapper extends JPanel { private boolean ...
Java
PingPong/Client/edu/pingpong/physycs/PPSlapper.java
pavkam/school
mit
1,270
63
codeparrot/github-code
b6147db2633e3cf9e2a53f517d87d738038f48bd4172d1a9866415a55897ab3b
#pragma once #include <vector> namespace quote{ template <class Derived, class Traits> class object_manager{ bool created = false; typename Traits::creation_params cp; protected: std::vector<typename Traits::object*> objects; public: ~object_manager(); bool create_resource(const typen...
C++
include/quote/object_manager.hpp
quartorz/quote
mit
976
39
codeparrot/github-code
dafe527583929a48a5c2bc27591b46a2593cbd45a30fbea1fbc96783bf913179
<?php /*********************************************************************************** Class Discription : Class Memeber Functions : Describe Function of Each Memeber function: **************************************************************************...
PHP
app_code/dir/class.Event_Hotels.php
tholum/crm42
mit
58,338
1,541
codeparrot/github-code
7a5ebc22c81b1ecf5b0410dc131bb021ea13adb83f69bd9498a043d1c4ac597d
using Pandaros.Settlers.NBT; using Pipliz.JSON; using Pipliz.Mods.BaseGame.Construction; namespace Pandaros.Settlers.Jobs.Construction { [ModLoader.ModManager] public class SchematicBuilderLoader : IConstructionLoader { public static readonly string NAME = GameLoader.NAMESPACE + ".SchematicBuilder...
C#
Pandaros.Settlers/Pandaros.Settlers/Jobs/Construction/SchematicBuilderLoader.cs
JBurlison/Pandaros.Settlers
mit
1,380
41
codeparrot/github-code
205efe258c621b26ad6f53be74b807e12405cbdd1f3224d335a68a2fc8aefa8c
#ifndef GWD_MODELTREEITEM_H #define GWD_MODELTREEITEM_H #include <QString> #include <QList> class ModelTreeItem { public: explicit ModelTreeItem(const QString &name, const QString &gazeboName, ModelTreeItem *parentItem); ~ModelTreeItem(); void appendChild(ModelTreeItem *item); ModelTreeItem *child(i...
C
ModelTreeItem.h
barulicm/GazeboWorldDesigner
mit
673
37
codeparrot/github-code
ec86ad3547290c03757d305ab5d320684eec71c08adde3ba5eed6a1c7c8ab5cd
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util' Import-Module -Name $script:SPDscUtilModulePath function Get-TargetResource { [CmdletBinding()] [OutputType([System.Collections.Hashtable])] param ( [Parameter(Mandatory = $true)] [...
PowerShell
SharePointDsc/DSCResources/MSFT_SPProjectServerServiceApp/MSFT_SPProjectServerServiceApp.psm1
PowerShell/xSharePoint
mit
8,030
269
codeparrot/github-code
a78ee77ee595fa992b1f0e4761e6aa3a15340e4253d525b03d23e9f0b26fd058
<?php /** * @file tools/genTestLocale.php * * Copyright (c) 2003-2013 John Willinsky * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * * @class genTestLocale * @ingroup tools * * @brief CLI tool to generate a test locale file by munging the message strings of a real locale file. ...
PHP
tools/genTestLocale.php
sly01/ojs
mit
4,516
190
codeparrot/github-code
a995e09a472b364b4580176ca24fb13a2c82fabafca8676e6fe72131af965b9a
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Employer_profile extends CI_Controller { public function __construct() { parent::__construct(); $this->load->model('employer_profile_model'); $this->load->model('user_profile_model'); $this->load->model('home_model'); ...
PHP
application/controllers/Employer_profile.php
rajanpkr/jobportal
mit
21,731
458
codeparrot/github-code
d85fd7dfd4722dfec0cd6e8445432131487aa7179288c2086e0090af549a3c8a
<?php /** * WordPress Coding Standard. * * @package WPCS\WordPressCodingStandards * @link https://github.com/WordPress/WordPress-Coding-Standards * @license https://opensource.org/licenses/MIT MIT */ namespace WordPressCS\WordPress\Sniffs\DateTime; use WordPressCS\WordPress\AbstractFunctionParameterSniff; us...
PHP
WordPress/Sniffs/DateTime/CurrentTimeTimestampSniff.php
WordPress-Coding-Standards/WordPress-Coding-Standards
mit
5,429
176
codeparrot/github-code
af0cbe59b3ae56e07b7be96d5387dd5dea5b7b4ed8eb76abac767f8747feff78
import itertools from operator import itemgetter from pdfminer.pdftypes import PDFObjRef from pdfminer.psparser import PSLiteral from pdfminer.utils import PDFDocEncoding DEFAULT_X_TOLERANCE = 3 DEFAULT_Y_TOLERANCE = 3 DEFAULT_X_DENSITY = 7.25 DEFAULT_Y_DENSITY = 13 def cluster_list(xs, tolerance=0): if toleran...
Python
pdfplumber/utils.py
jsvine/pdfplumber
mit
20,403
683
codeparrot/github-code
3ece64190875063c5249f1813745a0735dccae752e5181ea8497f87dbed0b4fa
/** * This file is released under the MIT license (https://opensource.org/licenses/MIT) * as defined in the file 'LICENSE', which is part of this source code package. */ package samples.utils; public class Command { private String url; private String location; private int throttleMs = 0; private i...
Java
src/main/java/samples/utils/Command.java
chris-geek/file-downloader
mit
1,126
57
codeparrot/github-code
bb52e6e5b8b2368c2b039bee664fee3db9be1c959845bff54bbd936120f8e868
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Getting Started</title> <meta name="description" content="A framework for easily creating beautiful presentations using HTML"> <meta name="author" content="Hakim El Hattab"> <meta name="apple-mobile-web-app-capable" content="yes" /> <...
HTML
index.html
otternq/dignit-presentation
mit
9,475
247
codeparrot/github-code
4bd0256f292615c6fb127ea914a2e81b91c46b97d12ed0e59af5fb2e21f353b9
package org.presentation.test; import org.junit.After; import org.junit.Before; import org.mongodb.morphia.Datastore; import org.mongodb.morphia.Morphia; import com.mongodb.DB; import com.mongodb.MongoClient; import com.mongodb.MongoClientURI; public abstract class AbstractTest { public static final String TEST_D...
Java
mongo-java/src/main/java/org/presentation/test/AbstractTest.java
glegoux/java-mongo
mit
1,402
72
codeparrot/github-code
ccf31ded72fe39550d7b29e4c5e104cf83ebf82617f80a82eb410cf30fc45c3f
/* * Yabar - A modern and lightweight status bar for X window managers. * * Copyright (c) 2016, George Badawi * See LICENSE for more information. * */ #include "yabar.h" enum { NET_WM_WINDOW_TYPE, NET_WM_WINDOW_TYPE_DOCK, NET_WM_DESKTOP, NET_WM_STRUT_PARTIAL, NET_WM_STRUT, NET_WM_STATE, NET_WM_STATE_STIC...
C
src/ya_draw.c
yabar-dev/yabar
mit
22,573
748
codeparrot/github-code
c17daeb9b61092d8e284c46be5f10425a780a81c947b576ca21898f639bac2fa
'use strict'; var fs = require('fs'), os = require('os'), path = require('path'), chalk = require('chalk'); module.exports = function (grunt) { var coverage = process.env.GRUNT_MOVE_COVERAGE, tmp = os.tmpdir(), succeedingTasks = [ 'move:empty', 'move:missing', 'move:rename', ...
JavaScript
Gruntfile.js
prantlf/grunt-move
mit
6,147
234
codeparrot/github-code
1556058af6cb413642d57a8805e46abf1137630471c765bd98e70762426ee1a3
<?php /* SonataAdminBundle:CRUD:edit.html.twig */ class __TwigTemplate_9a2ea516ffac884929546308a3eeba6cbfd50d0e9037aaa1b5bbac77cc37c8d0 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = $this->env->loadTemplate("SonataAdminB...
PHP
app/cache/dev/twig/9a/2e/a516ffac884929546308a3eeba6cbfd50d0e9037aaa1b5bbac77cc37c8d0.php
kooliameni/ProjetCommerce
mit
945
41
codeparrot/github-code
094e80bb70c3ea1e993b38b5ee912bf360f6393383f8958a1bbfffec54f3e680
/* * SonarLint for Visual Studio * Copyright (C) 2016-2021 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version ...
C#
src/Integration/Service/VersionHelper.cs
SonarSource-VisualStudio/sonarlint-visualstudio
mit
3,571
94
codeparrot/github-code
d9acef92755edd79c1a05d9e2be9ddbceeb05c2adb0d14832742e5304d76341d
import * as ko from "knockout"; import {QuestionImplementorBase} from "./koquestionbase"; import {Question} from "../question"; import {SurveyElement} from "../base"; export class QuestionImplementor extends QuestionImplementorBase { private isUpdating: boolean = false; private koDummy: any; koValue: any;...
TypeScript
src/knockout/koquestion.ts
iFacts/surveyjs
mit
3,597
80
codeparrot/github-code
b14a4c5f9e814dde9625fb0f6b87ced2409bcd502483f252f2459c695cda65f1
package com.auth0.android.request.internal; import com.auth0.android.Auth0Exception; import com.auth0.android.authentication.AuthenticationException; import org.hamcrest.CoreMatchers; import org.junit.Before; import org.junit.Test; import org.mockito.Mockito; import java.util.HashMap; import java.util.Map; import s...
Java
auth0/src/test/java/com/auth0/android/request/internal/AuthenticationErrorBuilderTest.java
thirteen23/Auth0.Android
mit
2,615
73
codeparrot/github-code
721852842ad883419da72959a0b8e1bed1bee70eeece161cffef991072841989
import { Component, Input, OnInit } from '@angular/core'; import { AbstractControl } from '@angular/forms'; import { JsonSchemaFormService } from '../json-schema-ui.service'; import { buildTitleMap } from '../shared'; @Component({ selector: 'radios-widget', template: ` <label *ngIf="options?.title" [att...
TypeScript
src/lib/src/widget-library/radios.component.ts
NoboKani/angular2-json-schema-ui
mit
3,918
105
codeparrot/github-code
40d6ff9b670c38d5402970e155dc1bca7cf7ad5d2fb4e49718e35edaa97359d5
import * as ts from 'typescript'; import * as Lint from 'tslint/lib/lint'; export class Rule extends Lint.Rules.AbstractRule { public static RULE_NAME = 'no-irregular-whitespace'; public static FAILURE_STRING = 'irregular whitespace not allowed'; public apply(sourceFile: ts.SourceFile): Lint.RuleFailure[] { ...
TypeScript
src/rules/noIrregularWhitespaceRule.ts
nfriend/tslint-eslint-rules
mit
2,332
67
codeparrot/github-code
42e93597db941916cc0d9bfe7f9d3d83f5ac3cca4b61b84fc98b7d859c1a8ebb
package exec import ( "encoding/json" "fmt" "log" "github.com/jmoiron/sqlx" "github.com/jvikstedt/watchful" "github.com/jvikstedt/watchful/pkg/model" uuid "github.com/satori/go.uuid" ) type work struct { id string job *model.Job isTestRun bool } type Service struct { log *log.Logger ...
GO
pkg/exec/exec.go
jvikstedt/watchful
mit
4,446
204
codeparrot/github-code
8de9a71ff1fa1b8cf558bccff8090a44c840674e5756875329ae20a7709cccbc
package cn.com.mink.activity.objects; import cn.com.mink.activity.ASObject; import java.util.Map; /** * @author malongbo */ public class KlassObject extends ASObject { protected KlassObject(Map<String, Object> maps) { super(maps); } public static KlassObjectBuilder makeKlass() { retur...
Java
activity/src/main/java/cn/com/mink/activity/objects/KlassObject.java
lenbo-ma/actvitystream
mit
700
31
codeparrot/github-code
8ad6c22ed36e8d4294558f214e7ce9783ba46f6fd48280fbdabecc0ed2412e24
$(document).ready(function() { /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * BEGIN DECLARATIONS OF VARS * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ // utility functions var dskOpenArticle = function(e,u) { $(document).off('click', '.fron...
JavaScript
cs-files/js/main 16.13.56.js
xdemocle/seventyone-Drupal6-Theme
mit
11,449
402
codeparrot/github-code
7c83d694ccc21a75a5d2cc1c300a0b1fde151a0b42fba749c59f5f600b457742
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class ScreenFadeIn : MonoBehaviour { public Image screen; public SpriteRenderer spriteRenderer; // Use this for initialization void Start() { if (screen != null) { screen.g...
C#
Assets/Scripts/ScreenFadeIn.cs
TeamTorchBear/Guzzlesaurus
mit
1,566
41
codeparrot/github-code
81dfefd050f8496ba62ce09f2abdc6d761d58f194d78d483f62ff4e2707303f3
package se.chalmers.watchmetest.database; import junit.framework.Assert; import se.chalmers.watchme.database.HasTagTable; import se.chalmers.watchme.database.MoviesTable; import se.chalmers.watchme.database.TagsTable; import se.chalmers.watchme.database.WatchMeContentProvider; import android.content.ContentResolver; i...
Java
WatchMeTest/src/se/chalmers/watchmetest/database/WatchMeContentProviderTest.java
johanbrook/watchme
mit
12,109
370
codeparrot/github-code
9023df589ec13f5fefcddb9844436ed953a2ad60c2414aeaa6c50b73f64cbc39
module Main where import Codec.Picture import Codec.Picture.Types import Data.Maybe (fromJust) import Data.Word (Word8) import Data.List as L (transpose,foldl') import Text.Printf (printf) import Control.Arrow ((&&&)) import Options.Applicative import qualified Data.ByteString as B import System.IO (stdin) data Opti...
Haskell
src/Main.hs
Drezil/img2ascii
mit
5,308
134
codeparrot/github-code
5698708c0fc2b6354b05bc31c680a70c820477507c0584fc7113c45727365609
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using Xamarin.Forms; using XamlCSS.Dom; namespace XamlCSS.XamarinForms.Dom { public class TreeNodeProvider : TreeNodeProviderBase<BindableObject, Style, BindableProperty> { public TreeNodeProvider(ID...
C#
XamlCSS.XamarinForms/Dom/TreeNodeProvider.cs
warappa/XamlCSS
mit
3,641
117
codeparrot/github-code
403f81cdd73cf96179cb15f7d9e7ef4099a959a43c368b6db69d224897dc0b4a
package com.github.messenger4j.send.message.template; import static java.util.Optional.empty; import com.github.messenger4j.internal.Lists; import com.github.messenger4j.send.message.template.button.Button; import com.github.messenger4j.send.message.template.common.Element; import java.util.List; import java.util.Opt...
Java
src/main/java/com/github/messenger4j/send/message/template/ListTemplate.java
messenger4j/messenger4j
mit
1,745
66
codeparrot/github-code
851783455ad59d85213cec79f6b3cb04eadcae506e04435815332a7df4c7a6cf
package seedu.tasklist.testutil; import java.util.ArrayList; import java.util.List; import com.google.common.eventbus.Subscribe; import seedu.tasklist.commons.core.EventsCenter; import seedu.tasklist.commons.events.BaseEvent; /** * A class that collects events raised by other classes. */ public class EventsCollec...
Java
src/test/java/seedu/tasklist/testutil/EventsCollector.java
CS2103JAN2017-W14-B1/main
mit
920
43
codeparrot/github-code
d71143baef599a562a330bc5a818912920af4ab1bacb0b14fd2fd8c03b1ce06f
var assert = require('assert') var crypto = require('crypto') var fs = require('fs') var _ = require('lodash') var mockery = require('mockery') var sinon = require('sinon') var tmp = require('tmp') var _o = require('@carbon-io/carbon-core').bond._o(module) var o = require('@carbon-io/carbon-core').atom.o(module).mai...
JavaScript
test/docgen/ghfmdTests.js
carbon-io/carbond
mit
2,247
74
codeparrot/github-code
cdf7a61c375a776d7803a5d4d106775c77f6a84cc965c38c9e42395e27808b45
import os,sys,django sys.path.append(os.path.dirname(os.path.abspath('.'))) os.environ["DJANGO_SETTINGS_MODULE"] = 'skill_huddle.settings' django.setup() from sh_app.models import SH_User,League,Suggestion,Huddle from django.contrib.auth.models import User from django_countries import countries from localflavor.us.us...
Python
dummy_data/populatedb.py
skill-huddle/skill-huddle
mit
10,113
282
codeparrot/github-code
b529d2348673efde9d00371fb79bd8286f597dd9d5f7063d193042377aacad08
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Login Page - Photon Admin Panel Theme</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0"> <link rel="shortcut icon" href="http://photonui.orangehilldev.com/css/css_comp...
HTML
lib/assets/css/css_compiled/@{photonImagePath}plugins/elrte/js/plugins/prettify/js/js/plugins/js/plugins/jquery.rating.pack.js.html
user-tony/photon-rails
mit
15,003
183
codeparrot/github-code
c9c6a34b218837f03f2fd9a4a58dba832e710b176fac8e5baa43dc7438d78cec
import { Component, ViewEncapsulation, OnInit } from '@angular/core'; import { FormGroup, AbstractControl, FormBuilder, Validators } from '@angular/forms'; import { Http, Headers } from '@angular/http'; import { JwtHelper } from 'angular2-jwt'; import { Router, ActivatedRoute, Params } from '@angular/router'; import 'r...
TypeScript
src/app/auth/setPassword/setPassword.component.ts
irmusyafa/portalharga
mit
2,440
72
codeparrot/github-code
57da28478dbb684c166c2ef65cc4e9012c4470ae96778883b92ed97d9adbda1d
<?php namespace backend\modules\rpjmd\controllers; use Yii; use common\models\TaPeriode; use backend\modules\rpjmd\models\TaPeriodeSearch; use yii\web\Controller; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; /** * PeriodeController implements the CRUD actions for TaPeriode model. */ class Periode...
PHP
backend/modules/rpjmd/controllers/PeriodeController.php
hoaaah/smdspr
mit
4,297
138
codeparrot/github-code
1113291accf75b595961cbafe83dc0cf989850420ab263e2483f908a9c6903df
using System; using System.Globalization; using System.Linq; using System.Security.Claims; using System.Threading.Tasks; using System.Web; using System.Web.Mvc; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.Owin; using Microsoft.Owin.Security; using Server.Extensions; using Server.Models;...
C#
Controllers/AccountController.cs
VSShare/VSShare-Server
mit
18,547
519
codeparrot/github-code
3aff9be6c0759a4e502e50a640ac85a6792e1fb2128c7979dc365f9f6c9dacae
<?php namespace App\Stats; use Illuminate\Support\Collection; use App\Collections\GameCollection; use App\Stats\GameStats; class PlayerStats { private $wins = 0; private $losses = 0; private $nemesis; private $opponents = []; private $characters = []; public function __construct ($playerId, ...
PHP
app/Stats/PlayerStats.php
tomzmtl/Saltistic
mit
4,103
153
codeparrot/github-code
b00f89412628ae2ded0a1148b0cec0d8d96382d691f23693ac143ce3f2bec317
/* http://www.cgsoso.com/forum-211-1.html CG搜搜 Unity3d 每日Unity3d插件免费更新 更有VIP资源! CGSOSO 主打游戏开发,影视设计等CG资源素材。 插件如若商用,请务必官网购买! daily assets update for try. U should buy the asset from home store if u use it in your project! */ #if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR) using System; using ...
C#
NGUI_Test/NGUI_Sample/Assets/Best HTTP (Pro)/BestHTTP/SecureProtocol/asn1/x509/BasicConstraints.cs
SeongBongJang/amuzlabBonRepo
mit
3,481
151
codeparrot/github-code
452d1b188ad07219c859ed6b9744ec4ae8f417da222d84f9e3d6f3b19f389e56
var patient={} var patientid=getCookie('patientId'); $(function(){ var username = getCookie('username'); var header = $('#header'); header.append('Patient - '+username); var pid=getCookie('patientId'); var km=getCookie('Kilometers'); if(pid=='' || pid=='null' || pid==null) {...
JavaScript
QF3 Apps/palis3/patient/js/patient.js
uoForms/quickforms3
mit
3,876
148
codeparrot/github-code
483cdc1b3fd650fadf7e91dfc55a10ad728783e4732d885b56af706d8bd4ada0
////////////////////////////////////////////////////////////////////////// // Code Named: VG-Ripper // Function : Extracts Images posted on PG forums and attempts to fetch // them to disk. // // This software is licensed under the MIT license. See license.txt for // details. // // Copyright (c) The Watc...
C#
Ripper.Services/ImageHosts/AmazingDickSSl.cs
half-evil/ripper
mit
5,003
153
codeparrot/github-code
eab3b3bb8f4a6240ed62b246af1d230d1559756115dc4c23261047f2769ebfc0
package net.sf.jabref.gui.groups; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Dimension; import java.awt.Font; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; import java.awt.event.ActionEvent; import java.awt.event.InputEvent; import java.awt.event.K...
Java
src/main/java/net/sf/jabref/gui/groups/GroupSelector.java
mredaelli/jabref
mit
55,551
1,289
codeparrot/github-code
f3501878ef78c0be2b657c744476bba748faa40b403e4da83f0c9e9076e99ed8
package edu.kaist.mrlab.templator.srdf.modules; import java.util.ArrayList; import java.util.Iterator; import java.util.ListIterator; import org.json.simple.JSONArray; import org.json.simple.JSONObject; import org.json.simple.parser.JSONParser; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import...
Java
src/edu/kaist/mrlab/templator/srdf/modules/DPWDChanger.java
sanghanam/sentgm
mit
15,336
531
codeparrot/github-code
f4e98e02729edfdaa3d8fcc48f277ba7e1bed50066a1baf58d91f1e769436bdc
<?php /** * Esta clase responde a un pattern visitor * Visita al manager de carrera para asignar una carrera a un establecimiento * Lo mismo para Especializacion * */ namespace Fd\EstablecimientoBundle\Model; use Fd\EstablecimientoBundle\Entity\Respuesta; use Fd\EstablecimientoBundle\Model\DatosAChoiceVisitado...
PHP
src/Fd/EstablecimientoBundle/Model/DatosAChoiceVisitador.php
mprizmic/fd_c
mit
3,334
93
codeparrot/github-code
7d0d99a6f9c037cd2eb8d86efa784ad5d34575796bedb64e493ac1602fb4f1a2
/* * Copyright (C) 2012, Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of condi...
C
Source/core/accessibility/AXNodeObject.h
lordmos/blink
mit
8,493
221
codeparrot/github-code
ae5cd8927ece796efcf03b2c3b694bd537e9880330eec91c505a494c990623f3
/* * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz> * Copyright (C) 2006 Apple Computer Inc. * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> * Copyright (C) Research In Motion Limited 2010. All rights reserved. * * This library is free software; you can redistribute it and/or * modi...
C
Source/core/rendering/svg/SVGRootInlineBox.h
lordmos/blink
mit
2,373
70
codeparrot/github-code
eedc52a0b0a43ca8e87a8f1ff19a8e6159194bd6270073b2cc7aef390086e562
--- layout: post title: Maria DB tagline: " at the first glance" permalink: /maria-db/init-configuration.html categories: [MariaDB, Debian9, literate programming] tags: [post-installation, configuration] --- <div id="table-of-contents"> <h2>Table of Contents</h2> <div id="text-table-of-contents"> <ul> <li><a href="#or...
HTML
_posts/2017-07-02-met-maria-db.html
0--key/0--key.github.io
mit
7,405
247
codeparrot/github-code
08267b1bf7d1a4a1af7f058519e45c9d264e42b39e2f365e5e991ace5164a2ad
<html> <head> <title> Qwest takes aim at CWA </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"> <table width="74...
PHP
web/2005-2/553/553_11_Qwest.php
ISO-tech/sw-d8
mit
4,784
56
codeparrot/github-code
c08cd934da53cde900ee201a38519fdc2304b04555c8d3984b1263d4b3153c54
export class CssLocator { public classBlacklist = [/^ng\-/]; public attributes = [ { name: 'id', format: (v: string) => /^\d/.test(v) ? '[id="' + v + '"]' : '#' + v, interrupt: true }, 'name', { name: 'class', prefix: '.', format: (v: string, element: Element) =>...
TypeScript
src/app/common/locators/css.ts
cuubas/e2e-test-builder
mit
3,413
108
codeparrot/github-code
fb9f8e6e7f32cf3a418283d7f803a87e7393b8af3044108fedebe17c4ccd2824
import PortMixin from 'ember-debug/mixins/port-mixin'; const Ember = window.Ember; const { String: { classify, dasherize }, computed, observer, run: { later }, Object: EmberObject } = Ember; const { oneWay, readOnly } = computed; const { hasOwnProperty } = Object.prototype; export default EmberObject.extend(PortMixi...
JavaScript
ember_debug/route-debug.js
cibernox/ember-inspector
mit
7,381
248
codeparrot/github-code
77a991737a124e3406c2cbeb28a8fbb2e38fd0da510b2990d0c6910e457310a3
#include <iostream> #include <string> #include "common.hh" #include "testfinder.hh" #include "testexecutor.hh" void usage() { std::cout << "tester " << TESTER_VERSION << std::endl; } int main(int argc, char **argv) { using namespace tester; TestFinder finder; finder.setTestExtension(".phpt"); if (argc != 1) {...
C++
src/main.cc
felipensp/tester
mit
570
38
codeparrot/github-code
b319d25fa0ee6a1df2eeb5816c9398c23b80acec5053bf78b1a8622cd8e34a1c
// // LTTextInputLimitManager.h // LTCommonKit // // Created by Marike Jave on 14-1-22. // Copyright (c) 2014年 Marike Jave. All rights reserved. // #import <UIKit/UIKit.h> typedef NS_ENUM(NSInteger, LTTextLimitType) { LTTextLimitTypeNone=0, // 无限制 LTTextLimitTypeByte, // 字节数限制 LTTextLimitTypeLength,...
C
MyForm/UIKit/Private/LTTextInputLimitManager.h
songguolin/MyForm
mit
1,847
56
codeparrot/github-code
1bee4d8eaffd6bc46a881284b62d966e5670dc4a74f63d82e6bf2a9ca7222287
/* IHLPOS Copyright (c) 2017 Peter M. These code snippets are taken from the osdev.org wiki: http://wiki.osdev.org/Inline_Assembly/Examples the `outb' and `inb' function are under the CC0 license: https://wiki.osdev.org/OSDev_Wiki:Copyrights */ #ifndef ASMIO_H #define ASMIO_H #include <stdint.h> static inline void...
C
include/asmio.h
ihatekoreans1910/IHLPOS
mit
577
34
codeparrot/github-code
acd354dfd80789d950356907ece9894fc1d0a461e26852032a6284b0a9982b53
// // AppDataStore.cpp // Chilli Source // Created by Stuart McGaw on 24/05/2011. // // The MIT License (MIT) // // Copyright (c) 2011 Tag Games Limited // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to d...
C++
Source/ChilliSource/Core/File/AppDataStore.cpp
fjpavm/ChilliSource
mit
14,430
351
codeparrot/github-code
3251b6c73185e3cc3f3c955d523596aaae9cb5d2d8d68f31bdf59a38a2dc083a
#!/usr/bin/python """ NumberGuesser Guesses your number! Author: Greg Stewart Copyright 2014 Greg Stewart Start: 7/15/14 Tries to guess your number, interacts with you via the Raspberry pi's 16x2 CharLCDPlate It uses a relatively simple algorithm to guess numbers: Step 1: Find a number that is larger tha...
Python
numberGuesser.py
GregJohnStewart/NumberGuesser
mit
7,208
302
codeparrot/github-code
91b287ba41bdb7a8c56efdb4d6aa44195a7ecd5e1c8d20e6b0184dc27c7fd9c7
// Module for interfacing with serial #include "module.h" #include "lauxlib.h" #include "platform.h" #include "c_types.h" #include "c_string.h" #include "rom.h" static lua_State *gL = NULL; static int uart_receive_rf = LUA_NOREF; bool run_input = true; bool uart_on_data_cb(const char *buf, size_t len){ if(!buf || ...
C
app/modules/uart.c
apwiede/nodemcu-firmware
mit
5,245
206
codeparrot/github-code
47eef6c2ccc1e7d334aebb21a8bce24ef75f68f4df21f304367e9efa393c5b9a
<?php namespace app\page\controller; use app\admin\controller\AdminController; /** * 页面管理 */ class AdminCategoryController extends AdminController { /** * 当前模块参数 */ protected function _infoModule(){ $menu = target('duxcms/AdminCategory','controller'); return $menu->infoModule; } ...
PHP
code/app/page/controller/AdminCategoryController.php
398897505/jinghuimeng
mit
3,124
108
codeparrot/github-code
023caa2ade1c69bcd54b9a9dc4790effc5d28d9399a18e568e913c750bb3b4b9
package com.gbr.nyan.support; import java.io.IOException; import java.net.URI; import java.net.URISyntaxException; import java.net.URL; import java.nio.file.Files; import java.nio.file.Paths; import static java.nio.charset.StandardCharsets.UTF_8; public class ContentOf { public static byte[] resourceAsBytes(Stri...
Java
src/test/java/com/gbr/nyan/support/ContentOf.java
anothergbr/a-cat-named-nyan
mit
1,003
33
codeparrot/github-code
defead14ea938532e830efebad266a1990ba4a62ddadc66c523dac12e97ff9bc
using System; using Rothko.UI.Interfaces.Services; using Rothko.UI.Interfaces.Components; using Rothko.UI.Events; using System.Collections.Generic; namespace Rothko.UI.Services { public class AnimationService : IAnimationService { public void Update (IAnimatable gameObject, double totalMillisecondsEllapsed) { ...
C#
Rothko.UI/Services/AnimationService.cs
t-recx/Rothko
mit
1,126
45
codeparrot/github-code
e9b00e9af3f18ddc091e2d40ca477b6748f89ef9c3bbf8b978718e530c2ce9cd
#include <stdio.h> #include <malloc.h> #include <errno.h> #include "wav.h" wav_t* openWAV(char *path){ audio_format_t audioFormat; wav_t* wav; //Prepare wav struct wav=(wav_t*)malloc(sizeof(wav_t)); if(NULL==wav){ perror("Out of memory"); return NULL; } wav->...
C
badapple/wav.c
frank-deng/retro-works
mit
1,855
68
codeparrot/github-code
f307efdf26bf4ccc9d71efd232e110cca70e2a0fac76972d1585082e3434a4db
<TS language="hu" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>A cím vagy címke szerkeszteséhez kattintson a jobb gombbal</translation> </message> <message> <source>Create a new address</source>...
TypeScript
src/qt/locale/bitcoin_hu.ts
hexxcointakeover/hexxcoin
mit
53,544
1,609
codeparrot/github-code
02f600261182f597848b858fed705f8060c102561909f6331bae3baf65c51e2d
// Accord Statistics Library // The Accord.NET Framework // http://accord-framework.net // // Copyright © César Souza, 2009-2014 // cesarsouza at gmail.com // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published ...
C#
HMMBasedGestureRecognition/Externals/Accord.NET/Accord.Statistics/Models/Regression/Linear/PolynomialRegression.cs
Libaier/HMMBasedGestureRecognition
mit
9,894
277
codeparrot/github-code
865adb01f23e6368055fd4b7206d0989d9c73801149de6b11712a7597e483650
#include "response.h" #include <buffer/buffer_sequence.h> #include "detail/algorithm.h" HTTPError http_parseTransferEncoding(HTTPResponse* response); HTTPError http_parseStandardBody(HTTPResponse* response, const void** unconsumed, const void** bodyData, size_t* bodyDataSize, const void* data, size_t dataSize); H...
C
http/response.c
jonathanherbst/micro-sensorcloud
mit
8,784
262
codeparrot/github-code
3ac7941cd8637c8fda6ba56c961bcf441a96614be2e3af0350157bb0535cbedf
#******************************************** # By Ahmed Elbannan # September 22nd 2013 # Battleship CPSC231 (Limited Edition! ;] ) #******************************************** # global variables direction = 'horizontal'; x = ord('A'); y = 0; # Title Screen! Now a function! def print_titlescreen(): print(); ...
Python
Battleship/Ahmed/Battleship41.py
FaceTheDream/CPSC231
mit
3,838
116
codeparrot/github-code
3529352e045a31743c17d8cda6ecf88afa52d6c6de8fdee298d55e12448aa362
<?php /* Plugin Name: Ultimate Category Excluder Plugin URI: http://www.planetmike.com/plugins/ultimate-category-excluder/ Description: Easily exclude categories from your front page, feeds, archives, and search results. Author: Michael Clark Version: 0.96 Author URI: http://www.planetmike.com Text Domain: UCE */ add_...
PHP
wp-content/plugins/ultimate-category-excluder/ultimate-category-excluder.php
betoarpi/elearning-cdsk-o
mit
6,011
149
codeparrot/github-code
7698a3ed9e6c63fef50df0a160576fdbfab59a9b0e9b42c0e8ed090e7d6e99a0
<?php /* forms/fields/section/section.html.twig */ class __TwigTemplate_b7c9a9b04ac2499bb021b1109c6035ed13b9df605468f6b3eac76098b725cba8 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = array...
PHP
cache/twig/5f/5fb5e2afbd5f55862546b30f0945e8ec2d015d9ee00680e67a1fa61e8df7f858.php
nikkiam/Senate-Archive
mit
7,510
153
codeparrot/github-code
1a1bc1a5c2dc9500493d8f653df51a7a7d108a96d9122f7e1fd9e83018b4fe3b
// // SparkLibraryPrivate.h // SparkKit // // Created by Grayfox on 01/12/07. // Copyright 2007 Shadow Lab. All rights reserved. // #import <SparkKit/SparkLibrary.h> enum { kSparkListSet = 0, kSparkActionSet = 1, kSparkTriggerSet = 2, kSparkApplicationSet = 3, /* MUST be last */ kSparkSetCount = 4, };...
C
SparkKit/Sources/Library/SparkLibraryPrivate.h
Jean-Daniel/Spark
mit
934
48
codeparrot/github-code
51e00f30b1c7f282d0e2f0d9537070d7f0a185e093acdf09374031c9b847681c
org_hudsonci.UiUtil = name_edwards_dean_Base.extend({ getStatusSkinType: function(type) { var statusSkinType; if (type == org_hudsonci_buildMonitorConst.TYPE_EXECUTOR()) { statusSkinType = 'executor'; } else { statusSkinType = 'build'; } return statusSkinType; }, getVisualStatus: function(status, suc...
JavaScript
src/main/js/firefox/uiutil.js
jenkinsci/firefox-extension-buildmonitor
mit
823
34
codeparrot/github-code
325974244888fb7782a43b99e1b171a87df00f6390a39cc9dde3cf8530c9b6ae
package com.shade.levels; import org.newdawn.slick.SlickException; /** * Convenient iterator for fetching the next level. * * @author Alexander Schearer <aschearer@gmail.com> */ public class LevelManager { public static final int NUM_LEVELS = 11; /* List of levels to create using reflection. */ ...
Java
src/com/shade/levels/LevelManager.java
J2/shade
mit
1,238
55
codeparrot/github-code
328a853d36f6fae300a54e35bd1c858ba9bcf1b8ce57a993f6eaa019f6e93599
import argparse import github3 import toml import json import re from . import utils import logging from threading import Thread, Lock import time import traceback import sqlite3 import requests from contextlib import contextmanager from itertools import chain from queue import Queue import os import subprocess from .g...
Python
homu/main.py
barosl/homu
mit
37,593
1,020
codeparrot/github-code
1296c272def2ec83f81211bb17ce6ec39ee0ed75f4cc16506a09139b4150a2cb
modifier_apocalypse_apocalypse = class({}) function modifier_apocalypse_apocalypse:OnCreated(t) if IsServer() then self:StartIntervalThink(0.03) end local ability = self:GetAbility() self.magic_resistance_per_second_pct = ability:GetSpecialValueFor("magic_resistance_per_second_pct") self.damage_per_second_pct =...
Lua
game/scripts/vscripts/heroes/hero_apocalypse/modifier_apocalypse_apocalypse.lua
ark120202/aabs
mit
2,277
67
codeparrot/github-code
1866b39f73544b7675ecc4368be7f63a274e56f3cc5b987c7a1507667e351a3e
package com.example.lib.guava; import static com.google.common.base.Preconditions.checkNotNull; import java.util.ArrayList; import java.util.Date; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; import junit.framework.T...
Java
java-libs/src/main/java/com/example/lib/guava/CollectionsExample.java
yuweijun/learning-programming
mit
7,246
252
codeparrot/github-code