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 |
|---|---|---|---|---|---|---|---|---|
02b6ce7b82e1e98e5bc0b0c7c53ea71b1a04dd78d0f5c2a5bd6399aa57539188 | var gulp = require('gulp');
var del = require('del');
var rename = require('gulp-rename');
var merge = require('merge2');
var sass = require('gulp-sass');
var webserver = require('gulp-webserver');
var runSequence = require('run-sequence');
var concat = require('gulp-concat');
var sourcemaps = require('gulp-sourcemaps'... | JavaScript | angular2-ts-systemjs/gulpfile.js | paullasarev/engo | mit | 2,884 | 116 | codeparrot/github-code |
9fd2b4e31ef56175c5c35187c1741605e0baf09c7a17dea3be66b71093553a8a | package com.plagui.modules.plagcheckrequests;
import com.plagui.modules.GenericResponse;
import java.util.List;
/**
* Created by Jagrut on 03-07-2017.
* Data transfer object for Plagiarism Check Requests
*/
public class PlagCheckRequestsDTO extends GenericResponse{
private PlagCheckRequests singleRequestObjec... | Java | src/main/java/com/plagui/modules/plagcheckrequests/PlagCheckRequestsDTO.java | jagrutkosti/plagUI | mit | 1,499 | 58 | codeparrot/github-code |
a6ae24ca4e2ee051b379107cab7317a4b98d248986238487e51b4375d3590659 | <?php
function public_url($url=''){
return base_url('public/'.$url);
}
function admin_theme($url=''){
return base_url('public/admin_temp'.$url);
}
function pre($list,$exit=true){
echo "<pre>";
print_r($list);
if($exit){
die();
}
}
function action_gioitinh($gioitinh) {
if ($gioitinh == 1)... | PHP | application/helpers/common_helper.php | superinka/sgctool | mit | 5,506 | 267 | codeparrot/github-code |
8631b7813e3a7f342c1ce115f72781a767df39a00e0feaffd9f0a35368366daa | <!DOCTYPE html>
<html lang="en" prefix="og: http://ogp.me/ns# fb: https://www.facebook.com/2008/fbml">
<head>
<title>Authors - DIANA HEP</title>
<!-- Using the latest rendering mode for IE -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="utf-8">
<meta name="viewport" content=... | HTML | authors.html | diana-hep/diana-hep.github.io | mit | 7,621 | 218 | codeparrot/github-code |
e2c44507291db252e755b1091cda1f271d698343717a2d66641c8db1ee4c7a67 | require File.expand_path(File.dirname(__FILE__) + '/edgecase')
class AboutExceptions < EdgeCase::Koan
class MySpecialError < RuntimeError
end
def test_exceptions_inherit_from_Exception
assert_equal __(RuntimeError), MySpecialError.ancestors[1]
assert_equal __(StandardError), MySpecialError.ancestors[2]... | Ruby | src/about_exceptions.rb | seankibler/ruby_koans | mit | 1,725 | 69 | codeparrot/github-code |
a485f30e58e037c684e3fec19b862a80e7c72bbcc5d3307760e445de09a7f042 | /************************************************************************************
* *
* Copyright (c) 2014 - 2018 Axel Menzel <info@rttr.org> *
* ... | C | src/rttr/detail/visitor/create_type_visitor_func_impl.h | rttrorg/rttr | mit | 3,924 | 78 | codeparrot/github-code |
beff32ab1fab738caac65ed58d38f432c05ba841c253133557be416c05437d5a | ///////////////////////////////////////////////////////////////////////////////
//
// File: ForcingProgrammatic.cpp
//
// For more information, please see: http://www.nektar.info
//
// The MIT License
//
// Copyright (c) 2006 Division of Applied Mathematics, Brown University (USA),
// Department of Aeronautics, Imperia... | C++ | library/SolverUtils/Forcing/ForcingProgrammatic.cpp | SCOREC/nektar | mit | 3,344 | 88 | codeparrot/github-code |
9de1fa893ef69e54945d6b9d3308214d6ef07fd9c079892e9ac63c0e578bb6cd | 'use strict';
/**
* Adds a on message handler to the socket.
*
* @param {object} standardSocket The standard socket.
* @param {object} wrappedSocket The wrapped socket.
* @param {object} requestCache The request cache to use.
* @param {object} options Websocket options.
* @param {function} handler The message h... | JavaScript | lib/websocket/on.message.js | miratronix/rapport | mit | 5,270 | 150 | codeparrot/github-code |
66d4afaf909c567532ca1b8a4ab9aec98b8eb4fc35f2eb7c510fb850cbb85135 | import * as React from 'react';
import { renderRoutes, RouteConfig } from 'react-router-config';
import { Link } from 'react-router-dom';
export interface AppProps {
route: RouteConfig;
data: any[];
}
export class App extends React.Component<any> {
render() {
const { route = {}, data = [] } = this... | TypeScript | src/components/app/index.tsx | startlines/react-ssr-starter | mit | 930 | 34 | codeparrot/github-code |
591523e76182de7db8b3a5128000934f220f8a6e7f2c594aee5a1eee5d778740 | using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Data.Entity.Core.Common;
using System.Data.Entity.Infrastructure;
using System.Data.Entity.SqlServer;
using System.Linq;
using DataBaseService;
using NUnit.Framework;
namespace Audit.EntityFramework.UnitTest
{
[TestFixture]
... | C# | test/Audit.EntityFramework.UnitTest/InheritanceTests.cs | thepirat000/Audit.NET | mit | 6,118 | 169 | codeparrot/github-code |
5765d462d73f0fd9de66d03dfcf2afce6bf9d3eeb56e1774b3f332092f50d9ba | #!/usr/bin/env python3
import xcdat
import os
# Prepare the dataset of keywords
keyset = xcdat.Keyset()
keyset.append('AirPods')
keyset.append('AirTag')
keyset.append('Mac')
keyset.append('MacBook')
keyset.append('MacBook_Air')
keyset.append('MacBook_Pro')
keyset.append('Mac_Mini')
keyset.append('Mac_Pro')
keyset.app... | Python | pybind/sample.py | kamp78/xcdat | mit | 1,957 | 76 | codeparrot/github-code |
d9b689c882b606ed1c84901707a88b5f436ca59dd91d034097710edf0c1227db | <?PHP
namespace Application;
/* Simplified Router : directing url request to propriorate class and method */
class Router
{
public $routes;
/* constructor */
function __construct()
{
}
/* add route */
public function addRoute($route=null, $controller=null, $method=null)
{
if($route !== null && $controlle... | PHP | library/Application/Router.php | roelvdheijden/BKE | mit | 1,627 | 64 | codeparrot/github-code |
48eb4890f6b4af94c12ffd5f9f42ae0e202c591bbcc1702cf220ca9d9c24272b | '''
Created on 27 Sep 2015
@author: matt
'''
from __future__ import absolute_import
from future.utils import iteritems
import logging
import math
from suds import WebFault
from .constants import (AUTOTASK_API_QUERY_RESULT_LIMIT,
AUTOTASK_API_TIMEZONE,
LOCAL_TIMEZONE,
... | Python | atws/helpers.py | MattParr/python-atws | mit | 9,052 | 339 | codeparrot/github-code |
7dac117750eb44ad95592c147f2c415e464d8c4fd840fe42161d1d3bc9407b8a | #!/usr/bin/env python
"""
Read BED file and extend each record to the specified minimum length. If chromosome
size information is provided trim extended intervals.
usage: %prog amount [ chrom_file ] < bed_file
"""
import sys
from bx.intervals.io import GenomicIntervalReader
length = int(sys.argv[1])
chrom_len = No... | Python | scripts/bed_extend_to.py | bxlab/bx-python | mit | 1,068 | 38 | codeparrot/github-code |
077fc8ede8260b5580e0976f3d5e5dd3038fafa5a7885db013388e4ab6764408 | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Diagnostics;
using System.Net.WebSockets;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading;
u... | C# | src/Sai/Microsoft.AspNetCore.SignalR.Client/Transports/WebSockets/WebSocketHandler.cs | sai4ninja/sai | mit | 10,129 | 289 | codeparrot/github-code |
7e371504d82110b17911531b5e57594c8a2c12ae37470504020729225a9e3302 | package org.openforis.collect.designer.composer;
import org.openforis.collect.designer.component.BasicTreeModel.AbstractNode;
import org.openforis.collect.designer.component.SchemaTreeModel.SchemaNodeData;
import org.openforis.collect.designer.viewmodel.SchemaVM;
import org.openforis.idm.metamodel.NodeDefinition;
impo... | Java | collect-server/src/main/java/org/openforis/collect/designer/composer/SurveySchemaEditComposer.java | openforis/collect | mit | 2,220 | 72 | codeparrot/github-code |
c5a2178052fcc812bc029c43e2ee85b3e26ce3f10e2d48af20b7056b3bce1bb7 | /*
* Copyright (c) 2008-2018 SLIBIO <https://github.com/SLIBIO>
*
* 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
* ... | C | include/slib/ui/notification.h | SLIBIO/SLib | mit | 6,877 | 263 | codeparrot/github-code |
c8155564231693616c75352262c39c4c63b879b5d756765a34c28498ad9192ed | /*
* This file is part of the MicroPython project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2016 Damien P. George
*
* 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 ... | C | ports/esp32/machine_uart.c | pfalcon/micropython | mit | 17,211 | 484 | codeparrot/github-code |
ce45eb02760f3cb3cde4efe0c1217239fd4dee78b31d35d9e46b0acaf2318fd7 | module Webbed
module Helpers
# Request helper for the Request-URI
module RequestURIHelper
# Aliases the {Webbed::Request#request_uri} method to `#request_url`.
def self.included(base)
base.class_eval do
alias_method :request_url, :request_uri
end
end
# ... | Ruby | lib/webbed/helpers/request_uri_helper.rb | kern/webbed | mit | 922 | 34 | codeparrot/github-code |
d6be5147bf887fcc90655b405b387383a4a952bf590cc75f8298a57491274252 | (function() {
'use strict';
angular.module('toptens')
.directive('ngMax', ngMax);
function ngMax() {
return {
restrict: 'A',
require: 'ngModel',
link: function(scope, elem, attr, ctrl) {
scope.$watch(attr.ngMax, function(){
if (ctrl.$isDirty)... | JavaScript | public/modules/toptens/directives/ng-max.directive.js | bakuzan/mylist | mit | 1,060 | 38 | codeparrot/github-code |
7466484ff34db2c7211155c23cd9470b14f824326a46de6b8bbe97ce379ea8d7 | /**
* Copyright 2000-2010 Geometria Contributors
* http://geocentral.net/geometria
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License
* http://www.gnu.org/licenses
*/
package net.geocentral.geometria.action;
import net.geocentral.geom... | Java | archive/3.0/src/net/geocentral/geometria/action/GLogPlayAction.java | stelian56/geometria | mit | 1,033 | 33 | codeparrot/github-code |
217d9a9f4443f42cf4576ba476602f5a8b4c322ae4027d9b062a290927942586 | //
// CCJSONConverter.cpp
// cocos2d-x-jc
//
// Created by LIN BOYU on 11/14/12.
//
//
#include "CCJSONConverter.h"
static CCJSONConverter _sharedConverter;
CCJSONConverter * CCJSONConverter::sharedConverter() {
static bool firstUse = true;
if (firstUse) {
firstUse = false;
}
return &_sharedConverter;
}
ch... | C++ | lib/json/CCJSONConverter.cpp | gamespice/gamespicex | mit | 4,041 | 152 | codeparrot/github-code |
2810cbcf9aa1f43962bd7e5697b23bac52cd69768167467e2ffd23e126fae7dc | /* -----------------------------------------------------------------------------
* Rule$ctext.java
* -----------------------------------------------------------------------------
*
* Producer : com.parse2.aparse.Parser 2.2
* Produced : Thu Jan 05 18:57:59 CET 2017
*
* -------------------------------------... | Java | src/org/murillo/abnf/Rule$ctext.java | medooze/sdp | mit | 3,904 | 162 | codeparrot/github-code |
0443c08f788cc1103dc3584edc1afe73b7073ee6bf90e172613cbcbf62ab258f | /*
* W.J. van der Laan 2011-2012
*/
#include "bitcoingui.h"
#include "clientmodel.h"
#include "walletmodel.h"
#include "optionsmodel.h"
#include "guiutil.h"
#include "guiconstants.h"
#include "init.h"
#include "ui_interface.h"
#include "qtipcserver.h"
#include <QApplication>
#include <QMessageBox>
#include <QTextCo... | C++ | src/qt/bitcoin.cpp | 911truthcoin/NTC | mit | 9,227 | 271 | codeparrot/github-code |
71d44dbdcd763ae4a47098aed4131f8241f8b6e00453e3ddcd9966c3b1da459d | #ifndef ORGANISMFACTORY_H
#define ORGANISMFACTORY_H
#include <memory>
#include <map>
#include <type_traits>
#include "Organism.h"
class OrganismFactory
{
OrganismFactory() = delete;
using Func_t = std::unique_ptr<Organism>(*)(World &, std::size_t);
public:
static std::unique_ptr<Organism> createOrganism(Organism... | C | Universe/OrganismFactory.h | Crisspl/Universe | mit | 860 | 37 | codeparrot/github-code |
44a14010c4b521f8d5db816de8d8524fc27bcb0d4629e27cf30b8e76080eddad | package logics
import (
"fmt"
"github.com/gin-gonic/gin"
"github.com/jinzhu/gorm"
"github.com/qb0C80aE/clay/extensions"
"github.com/qb0C80aE/clay/logging"
clayLogics "github.com/qb0C80aE/clay/logics"
"github.com/qb0C80aE/loam/utils/net"
"github.com/qb0C80aE/pottery/models"
"net/url"
"strings"
)
type layer3D... | GO | logics/layer3_diagram.go | qb0C80aE/pottery | mit | 4,333 | 150 | codeparrot/github-code |
afed310f6502f2972712c25efd9c37faabec35faf259ecdc62b4081d7acaeaf1 | <dom-module id="respond-cart">
<style>
.respond-cart-container svg{
width: 25px;
height: 25px;
margin: 0;
padding: 0;
line-height: 25px;
display: inline-block;
vertical-align: middle;
fill: currentColor;
}
.respond-cart-container{
position: fixed;
top: 0;
... | HTML | site/components/respond-cart.html | ebranddit/ecms | mit | 17,763 | 767 | codeparrot/github-code |
5f741360bb91a4d408ba721385af54ef3a667ad6e1060e04562e8332ae564e02 | #include <iostream>
#include <iomanip>
#include <array>
#include <bitset>
#include <functional>
class sudoku_cell{
public:
sudoku_cell():cells{}{}
void solve(){
gen_cands();
BEGIN: ;
if(reduce_nearby_pair()) goto BEGIN;
if(solve_3x3()) ... | C++ | sudoku_solver.cpp | equal-l2/sudoku-solver | mit | 8,984 | 287 | codeparrot/github-code |
9d464c2b995f73769ba59972dc536981b6815b6697703139008143164a60069b | <!DOCTYPE html>
<!-- HEADER -->
<meta charset="utf-8">
<title>HTTP Streaming パターン テスト</title>
<!-- CONTENTS -->
<div id="content">
<div id="description">
<h1>HTTP Streaming パターン テスト</h1>
<p>サーバー (push.php) からプッシュされるストリーミングデータ (JSON形式) を表示するサンプルアプリケーション</p>
</div>
<dl id="message" class="lis... | HTML | hover.html | junpeitsuji/http-streaming | mit | 2,263 | 112 | codeparrot/github-code |
35b38a5ae6425b60762e4274bb35c2f0558cd36a56747de76b566f0cca1c9ff6 | using CSLauncher.Properties;
namespace CSLauncher.Forms {
partial class LoginForm {
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
... | C# | CSLauncher/Forms/LoginForm.Designer.cs | umby24/CSLauncher | mit | 12,858 | 208 | codeparrot/github-code |
a54dd7745eb9c0e2d347e8813e9ebde3bf5f4bd37378ff1e75e25b5f2d966543 | /********************************************************
* Account *
*-------------------------------------------------------*
* -id: int *
* -balance: double *
* -annualInterestRate: double ... | Java | Exercise_11/Exercise_11_03/Account.java | jsquared21/Intro-to-Java-Programming | mit | 3,191 | 112 | codeparrot/github-code |
c5347974790d5ac6ac0b90565008769fad7ad57aca7724ce845922e6b0618684 | package com.smcpartners.shape.usecases.login;
import com.smcpartners.shape.crosscutting.security.exceptions.InactiveUserException;
import com.smcpartners.shape.frameworks.data.dao.shape.UserDAO;
import com.smcpartners.shape.gateway.rest.mappedexceptions.ErrorMessagesEnum;
import com.smcpartners.shape.shared.dto.common... | Java | src/main/java/com/smcpartners/shape/usecases/login/AuthLoginServiceAdapter.java | SMCPartners/shape-server | mit | 3,669 | 102 | codeparrot/github-code |
205e63383eb4bc8e699a8457b978033ec0a448d6c24fc14b0d1ae0528f9c15c1 | 'use strict';
var isA = require("Espresso/oop").isA;
var oop = require("Espresso/oop").oop;
var init = require("Espresso/oop").init;
var trim = require("Espresso/trim").trim;
var isA = require("Espresso/oop").isA;
var oop = require("Espresso/oop").oop;
module.exports = {
PRE_CONFIGURE: 'pre_configure',
PRE_STAR... | JavaScript | Component/ComponentEvents.js | quimsy/espresso | mit | 935 | 35 | codeparrot/github-code |
e4a96dbba98804f70ba4ba7de80981dcc7ed26d7d9cb8da04fb85f846e894f12 | /* MIT - License
Copyright (c) 2012 - this year, Nils Schmidt
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation the rights to use, copy, modify, me... | Java | src/org/nschmidt/ldparteditor/data/RingsAndCones.java | nilsschmidt1337/ldparteditor | mit | 36,755 | 674 | codeparrot/github-code |
a2ad505aa144e6e7f18a36c6a9a52498a98c26f3d5250c37bfea491ca1c4100b | 'use strict' /* @flow */
import React from 'react'
import ReactCSS from 'reactcss'
import Checkboard from './Checkboard'
export class Alpha extends ReactCSS.Component {
constructor() {
super()
this.handleChange = this.handleChange.bind(this)
this.handleMouseDown = this.handleMouseDown.bind(this)
... | JavaScript | src/components/common/Alpha.js | JedWatson/react-color | mit | 3,260 | 130 | codeparrot/github-code |
40a1c9f25861b953cc4d84686cb46ea756c944c3e7540f2b0d0d032bf8f754f8 | import re
import math as maths
from typing import Iterable, Dict
from base64 import b64encode
from flask import Response, render_template, make_response, current_app
from peewee import SelectQuery
from htmlmin.minify import html_minify
from .models import Entry
PAGE_GROUP_SIZE = 5
ENTRIES_PER_PAGE = 10
class Pagin... | Python | muhblog/utils.py | elcr/muhblog | mit | 3,071 | 104 | codeparrot/github-code |
bda314fb7c1c4bdfda250fcb9ad310c91aa4ffdaa7dddd59b5ac0101fe5e4dfe | using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace JabberBCIT.Models
{
public class ExternalLoginConfirmationViewModel
{
[Required]
[Display(Name = "Email")]
public string Email { get; set; }
}
public class ExternalLoginListViewModel
{... | C# | JabberBCIT/JabberBCIT/Models/AccountViewModels.cs | BCITer/Jabber | mit | 3,375 | 123 | codeparrot/github-code |
0fb2b6ec4115bfa45daf330b8e518367ab1bec9667a700b065f1d18099627af8 | //
// EaseMessageViewController.h
// ChatDemo-UI3.0
//
// Created by dhc on 15/6/26.
// Copyright (c) 2015年 easemob.com. All rights reserved.
//
#import <MobileCoreServices/MobileCoreServices.h>
#import <AVFoundation/AVFoundation.h>
#import <MediaPlayer/MediaPlayer.h>
#import "EaseRefreshTableViewController.h"
#i... | C | hxDemo/UIEaseMob/EaseUI/EMUIKit/ViewController/EaseMessageViewController.h | xuvw/hxDemo | mit | 6,611 | 243 | codeparrot/github-code |
db03611df7ce24d0e3745636b3e84297f0d6108684660689ce50cd6b95a05ecd | import { Injectable } from '@angular/core';
import { Movie } from './../moviesList/movie.model';
@Injectable()
export class CartService {
public moviesCart: Array<Movie> = [];
constructor() {
let storedCart = JSON.parse(localStorage.getItem('currentCart'));
this.moviesCart = storedCart || [];
}
updateLocal... | TypeScript | app/services/cart.service.ts | lisrec/projectNAI | mit | 933 | 47 | codeparrot/github-code |
0593f62118d47191c16db0a11f4298e6c5deb62c08f906ffe6ed15851dca4d93 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _4.LectorSalaries
{
class Program
{
static void Main(string[] args)
{
var lectures = int.Parse(Console.ReadLine());
var budget = double.Parse(Co... | C# | ExamProblems/4.LectorSalaries/Program.cs | gmanolov/Programming-Basics | mit | 1,810 | 63 | codeparrot/github-code |
ec0df89de89de1d19c548e70065f6416486acf5ac9fc6c1bf1abe445fb0d717a | #!/usr/bin/env ruby
require 'cfpropertylist'
module PholdersUtils
KRUNTIME_PREFIX = "com.apple.CoreSimulator.SimRuntime"
KRUNTIME_PREFIX_LENGTH = KRUNTIME_PREFIX.length
KCOM_APPLE_APPS_PREFIX = "com.apple."
KOLD_SIMULATORS_FOLDERS = ["User","Library"]
KNEW_SIMULATORS_APPLICATIONSTATE_PLIST = "/dat... | Ruby | pholdersUtils.rb | rodrigo-lima/pholders | mit | 4,123 | 106 | codeparrot/github-code |
c83e593cf90201fc254eaa292e9557b123596df56b74be00f6a522fe57d35277 | #ifndef _AVL_TREE_H
#define _AVL_TREE_H
/* A generic implementation of an AVL binary search tree
* Code taken from geeksforgeeks.org and modified
* into its generic version by Jacob Boone
*/
struct node{
void *key;
struct node *left;
struct node *right;
int height;
};
typedef struct node avl_... | C | src/avl_tree.h | rendlein/mpkg | mit | 876 | 34 | codeparrot/github-code |
dabfe75f4319e755d6a9ada2f8aa3bda3e310b154a9520111922ee894a4968f7 | 'use babel';
// https://github.com/danielbrodin/atom-project-manager/blob/master/lib/projects-list-view.js
import {TextEditor} from 'atom';
import {SelectListView, $} from 'atom-space-pen-views';
import Behat from './behat'
/**
* @class SelectListView
*/
export default class BehatToolsView ex... | JavaScript | lib/behat-tools-view.js | rafaelnery/behat-tools | mit | 2,199 | 116 | codeparrot/github-code |
e0a096b73f4fef27c3789a85f8170ffc4efa26883c023e4d7ac3546f88700be1 | package untouchedwagons.minecraft.plasmacraft.items;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.IIcon;
import untouchedwagons.minecraft.plasmacraft.PlasmaCraft;... | Java | src/main/java/untouchedwagons/minecraft/plasmacraft/items/ItemBattery.java | Malkierian/PlasmaCraft | mit | 2,164 | 60 | codeparrot/github-code |
00e4de647cb63179ff27933c6459820b547fcecaa403d90b9b52d9fd97f1e948 | #ifndef GLOBAL_H
#define GLOBAL_H
#include "rng.h"
#include "dispatcher.h"
class Setup;
class Viewport;
class Pixels;
class ScreenMessage;
class EventManager;
class Cursor;
class State;
class Logger;
struct GlobalData {
GlobalData ();
~GlobalData ();
Setup* setup;
Viewport* viewport;
Pixels* pixe... | C | include/global.h | DirtyHairy/sdl-pixels | mit | 501 | 34 | codeparrot/github-code |
edfb42f1c7d924b229a419710d25110ee1db211e81de4d2555ace53f48c1c230 | import React from 'react'
import { Icon } from 'antd'
import cls from 'classnames'
import AreaChart from './AreaChart'
import BarChart from './BarChart'
import LinearChart from './LinearChart'
import PunchChart from './PunchChart'
import './Chart.scss'
export default function ({
data, width = 1000, height = 160, typ... | JavaScript | src/components/Repo/Graph/Chart/Chart.js | 879479119/Github-Mobile | mit | 1,167 | 34 | codeparrot/github-code |
d424d7ccf7e63f76e578d27b5faaf9dee60053df621ff968ac470e5d26c03555 | /* jshint -W071, -W074 */
/* global jQuery:false */
/* Disabled options are:
* W071: This function has too many statements
* W074: This function's cyclomatic complexity is too high
*/
/*
* jQuery ezPlus 1.1.11
* Demo's and documentation:
* http://igorlino.github.io/elevatezoom-plus/
*
* licensed under MIT lic... | JavaScript | src/jquery.ez-plus.js | jmarceli/elevatezoom-plus | mit | 83,536 | 1,922 | codeparrot/github-code |
4f8834b7f418584a4374d8d7870c1d164e6da1494ab4d65b0aa72b9e7461fac2 | "use strict";
/*jslint bitwise: true */
/**
* @module opcua.address_space
*/
require("requirish")._(module);
var util = require("util");
var EventEmitter = require("events").EventEmitter;
var NodeId = require("lib/datamodel/nodeid").NodeId;
var makeNodeId = require("lib/datamodel/nodeid").makeNodeId;
var resolveNo... | JavaScript | lib/address_space/base_node.js | vpalacka/node-opcua | mit | 45,287 | 1,359 | codeparrot/github-code |
d736642529ddf780337489ae2b21dfc393ec03b4ee83f96b9b3a81140e145529 | class Solution():
def sortColors(nums):
"""
:type nums: List[int]
:rtype: void Do not return anything, modify nums in-place instead.
"""
store = [[],[],[]]
for i in nums:
store[i].append(i)
return store[0]+store[1]+store[2]
class Solution1():
... | Python | leet/source/twopointers/sort_colors.py | euccas/CodingPuzzles-Python | mit | 3,224 | 122 | codeparrot/github-code |
ac0fd5aed131450a3e33eb3533c3ad7eba2abfed18e09f8461097ef2d509da0e | package seedu.task.model.tag;
import java.util.Comparator;
import seedu.task.commons.exceptions.IllegalValueException;
/**
* Represents a Tag in the Task Manager.
* Guarantees: immutable; name is valid as declared in {@link #isValidTagName(String)}
*/
public class Tag implements Comparable<Tag> {
public stat... | Java | src/main/java/seedu/task/model/tag/Tag.java | CS2103JAN2017-T11-B3/main | mit | 1,918 | 71 | codeparrot/github-code |
4c95f5db8dfee750e2870dd750fc57e236d9ba5fdeca50dba7d83015b533adbc | <?php
namespace App;
use Illuminate\Database\Eloquent\Builder;
/**
* App\Source
*
* @mixin \Illuminate\Database\Eloquent\Model
* @property int $id
* @property string $name
* @property \Carbon\Carbon|null $created_at
* @property \Carbon\Carbon|null $updated_at
* @method static \Illuminate\Database\Eloquent\Bu... | PHP | app/Source.php | crowdskout/laravel-shared-multitenancy | mit | 2,124 | 69 | codeparrot/github-code |
0393bf5387c5d2601b9df5144e08d0166b6ef924bc1017b761c0b8bda9856815 | package de.tblsoft.search.pipeline;
import de.tblsoft.search.pipeline.filter.Filter;
import de.tblsoft.search.pipeline.filter.ParallelFilter;
import java.util.HashSet;
import java.util.Set;
/**
* Created by tbl on 11.11.17.
*/
public class PipelineBuilder {
private PipelineBuilder parent;
private Pipelin... | Java | src/main/java/de/tblsoft/search/pipeline/PipelineBuilder.java | tblsoft/search-api | mit | 3,318 | 113 | codeparrot/github-code |
4c96654cace14e96976f034546da2b48d683bd4558aee3fd2c985e217b14e29b | import * as UTILS from './globals';
WHS.Component.prototype.changeColor = function (world) {
const object = this,
color = new THREE.Color();
const animation = new WHS.Loop(() => {
object.material.color = color;
if (color.r <= 1)
color.r += 0.01;
if (color.g >= 0)
color.g -= 0.01;
... | JavaScript | src/examples/basic/extending/script.js | thejmazz/whitestorm.js | mit | 1,936 | 98 | codeparrot/github-code |
28e437e6bd55349d566265bdb328fb37f2c6eec381ba87ff59da1e4fe65e3f2f | <?php
namespace MusicBrainz\Filter\Property;
use AskLucy\Expression\Clause\Term;
use MusicBrainz\Value\ReleaseType;
trait SecondaryTypeTrait
{
use AbstractAdderTrait;
/**
* Returns the field name for the secondary release type.
*
* @return string
*/
public static function secondaryTyp... | PHP | src/Filter/Property/SecondaryTypeTrait.php | XenosEleatikos/MusicBrainz | mit | 731 | 32 | codeparrot/github-code |
ad323eda1f76db2e9d9769c92eb18bcca7322f30bd9bafb64018a86ce5583bc2 | package com.docusign.esign.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiMod... | Java | src/main/java/com/docusign/esign/model/EnvelopeIdsRequest.java | docusign/docusign-java-client | mit | 3,905 | 158 | codeparrot/github-code |
a3ddda9486743c451d3beb5ca99a6e47c5b495ba75c6013e49ba1fdfd21b898d | import { readFile } from 'fs';
import { join } from 'path';
import { defaults } from 'lodash';
import promisify from 'es6-promisify';
import nodemailer from 'nodemailer';
import sendGridTransport from 'nodemailer-sendgrid-transport';
import Handlebars from 'handlebars';
import config from '../config';
import Internatio... | JavaScript | src/shared/services/MailService.js | cglantschnig/hapi-es6-auth | mit | 2,848 | 105 | codeparrot/github-code |
09ece48fad81c6098b41943cd413a890b4ca3b620e8cee3d2f61cdea7a5e3f18 | namespace ID3Lite
{
/// <summary>
/// Parsed Datas from ID3 Tag
/// </summary>
public class v1Data
{
public string Title;
public string Artist;
public string Album;
public string Year;
public string Comment;
public string Track;
public string ... | C# | TagData.cs | Mystika/ID3Lite | mit | 1,461 | 54 | codeparrot/github-code |
33ad1b1663a3b67a7ca9908150caf8c12a86d55b649053d8c4373d078801d859 | 'use strict';
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var dbCommon = require('../common');
var Release... | JavaScript | src/server/db/models/release.js | timsommer/releasemanagement | mit | 1,213 | 31 | codeparrot/github-code |
2d9ca00cde3e4c7305eb0a54bd0b432b2aa3b537e33e4c7f16c8541d797d7510 | /**
* The MIT License
*
* Copyright (c) 2015, CloudBees, Inc.
*
* 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, ... | Java | src/main/java/org/jenkinsci/plugins/registry/notification/webhook/dockerhub/DockerHubPushNotification.java | holidaycheck/dockerhub-notification-plugin | mit | 4,105 | 113 | codeparrot/github-code |
a724b32c430114f388cbb4007780b8569ec1872a3f6c5f8d78e377c9dc1a9370 | using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Linq;
using System.Net.Sockets;
namespace FryProxy.Utils
{
static public class SocketUtils
{
public static Boolean IsSocketException(this Exception exception, params SocketError[] errorCodes) {
... | C# | FryProxy/src/Utils/SocketUtils.cs | eger-geger/FryProxy | mit | 1,428 | 50 | codeparrot/github-code |
bca1b5710bc21bf5579748e2530e7020bb4515c11c302458cf6ad15c5dfe6f78 | /*global it:true, beforeEach:true, describe:true*/
var expect = require('chai').expect;
var Cuara = require('../lib').Parser;
var CuaraModel = require('../lib').Model;
describe('Parser Spec', function(){
describe('#new', function(){
var template;
beforeEach(function() {
template = new Cuara({ model: Cu... | JavaScript | test/parser_spec.js | molekilla/cuara | mit | 1,265 | 41 | codeparrot/github-code |
097294dee55190ea7a760f0e7f7ed08ab0609d8e35fe4059ffc1ee5f0a036e60 | /**
* @author J. Santos <jamillo@gmail.com>
* @date July 15, 2016
*/
#include <http/actions/index.h>
#include <http/actions/camera.h>
#include <http/actions/config.h>
#include <http/actions/config/colour_definitions.h>
#include "application.h"
mote::Application::~Application()
{
this->stop();
}
mote::Config& mo... | C++ | src/application.cpp | jamillosantos/mote-vision | mit | 3,325 | 94 | codeparrot/github-code |
147e1674629a73b0befb4ad8fb828633a7954d32c54b194001a5dc1044ae3975 | import enum
import google.cloud.storage as gcloud_storage
import sqlalchemy
from . import config
class CompileStatus(enum.Enum):
"""The compilation status of a bot."""
UPLOADED = "Uploaded"
IN_PROGRESS = "InProgress"
SUCCESSFUL = "Successful"
FAILED = "Failed"
DISABLED = "Disabled"
class C... | Python | apiserver/apiserver/model.py | HaliteChallenge/Halite-II | mit | 10,268 | 283 | codeparrot/github-code |
f10db4c1f94fe7590a3e92cf01f6c70ca9b6e573450bf18227d7e75f34dcf52b |
using System;
using Rc.Components.Extensions;
namespace Rc.Components.IO
{
public class RcFile
{
public string FileName { get; set; }
public string FullName { get; set; }
public long Size { get; set; }
public DateTime CreatedDate { get; set; }
public string Url
... | C# | src/Rc/Components/IO/RcFile.cs | alienblog/Rc | mit | 797 | 39 | codeparrot/github-code |
499f142179f02cec903ac3acdf2f5fdaac389c7495f33265913887e2f4b35c0b | #include <algorithm>
#include <limits>
#include <set>
#include "proto/SocketConnection.h"
#include "proto/Message.h"
#include "util/EventLoop.h"
#include "util/Assert.h"
#include "Router.h"
namespace dh
{
namespace router
{
static const uint32_t reconnect_timeout_ms = 30000;
static const uint32_t send_period_ms = ... | C++ | deephome/router/Router.cpp | dmitry-root/home-automation | mit | 14,938 | 562 | codeparrot/github-code |
e5166cde8c0bcf7cf126b61f27b933be7778e1c4d5e5f7651bdb31c0c172b804 | package client
import (
"errors"
"github.com/manythumbed/gegenstand/packets"
"github.com/manythumbed/gegenstand/protocol"
"io"
"net"
)
type Message interface {
}
type MessageHandler interface {
Handle(message Message)
}
type Connection interface {
Connect() error
Disconnect() error
Unsubscribe(topics ...st... | GO | client/client.go | manythumbed/gegenstand | mit | 1,029 | 62 | codeparrot/github-code |
9ef3c4594ce017be0d9d5e476d74df2c9ad2238af0409bf5b6fa8303ccfcaf37 | """CMS Plugins for the ``cmsplugin_redirect`` app."""
from django.utils.translation import ugettext_lazy as _
from django.http import HttpResponseRedirect
from cms.plugins.link.forms import LinkForm
from cms.plugin_pool import plugin_pool
from cms.plugin_base import CMSPluginBase
from .models import ForceRedirectPlug... | Python | cmsplugin_redirect/cms_plugins.py | bitmazk/cmsplugin-redirect | mit | 1,251 | 37 | codeparrot/github-code |
0a90571b026802b175bc0c09cbfe0d891176d952417b2224bae776c50caf1257 | iD.ui.MapData = function(context) {
var key = 'F',
features = context.features().keys(),
fills = ['wireframe', 'partial', 'full'],
fillDefault = context.storage('area-fill') || 'partial',
fillSelected = fillDefault;
function map_data(selection) {
function showsFeature(d... | JavaScript | umap/static/js/id/ui/map_data.js | daumann/chronas-application | mit | 10,785 | 330 | codeparrot/github-code |
41f8cb37b3750533189af288d7edf98c565675fd8b84423229da6969137f4405 | 'use strict';
var fs = require('fs'),
path = require('path');
/**
* Gets JSON data.
*
* @param file {String} Location of JSON file.
*
* @return data {Object} Javascript object data.
*/
module.exports = function (file, copy) {
var fullpath = path.join(process.cwd(), file),
dir = path.dirname(fu... | JavaScript | src/getJSON.js | boycott/grunt-mustache-generate | mit | 1,750 | 76 | codeparrot/github-code |
3864f9c3c6a2826301f01ba71fcde63b5962a5d555ea54dcaab66a0ad3c31934 | import rb
import rhythmdb
import dbus
import gconf
from xchat_music_channel.conf import gconf_keys, ConfDialog
from dbus.mainloop.glib import DBusGMainLoop
DBusGMainLoop(set_as_default=True)
class XChatMusicChannelPlugin(rb.Plugin):
def activate(self, shell):
gc = gconf.client_get_default()
... | Python | xchat_music_channel/__init__.py | jlecker/rhythmbox-xchat-music-channel | mit | 2,960 | 86 | codeparrot/github-code |
96c6a516a47e26383820a0df88e41cc77de2a32c7dba71b4948844fb386824c9 | /**
* OWASP Benchmark Project v1.3alpha
*
* This file is part of the Open Web Application Security Project (OWASP)
* Benchmark Project. For details, please see
* <a href="https://www.owasp.org/index.php/Benchmark">https://www.owasp.org/index.php/Benchmark</a>.
*
* The OWASP Benchmark is free software: you can redistrib... | Java | src/main/java/xss/BenchmarkTest/BenchmarkTest00387.java | lxy528/Benchmark | mit | 1,967 | 61 | codeparrot/github-code |
66c7690ebbdcfafa80017dbccb76a9954ccd3ab36ee908d8d1b05ba0daba1e9e | #include "editaddressdialog.h"
#include "ui_editaddressdialog.h"
#include "addresstablemodel.h"
#include "guiutil.h"
#include <QDataWidgetMapper>
#include <QMessageBox>
EditAddressDialog::EditAddressDialog(Mode mode, QWidget *parent) :
QDialog(parent),
ui(new Ui::EditAddressDialog), mapper(0), mode(mode), mo... | C++ | src/qt/editaddressdialog.cpp | mybrocoin/mybrocoin | mit | 3,733 | 138 | codeparrot/github-code |
d127f91f22abd4c13d5c016d2acf6f71837d92e836c076b6311399286d513ea7 | #include <iostream>
#include <iomanip>
#include "SiftFeatures.h"
SiftFeatures::SiftFeatures(int imgWidth, int imgHeight, int trainingSetCount,
const std::vector<std::string> &imageFilePaths, int keypointCount, int dictionarySize) : FeatureDetector(
imgWidth, imgHeight, trainingSetCount, i... | C++ | SiftFeatures.cpp | stevespiss/computervision_assignment3 | mit | 2,317 | 75 | codeparrot/github-code |
daa539ef646958d45e5df3e85fcc9025e0daca8b03121b65841b36bf53b91911 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CommunicationLink
{
/// <summary>
/// Class to extract messages from a text feed (like serial port).
///
/// Feed all data from the feed to the MessageBuilder by using the Add... | C# | DeBel/Desktop/CommunicationLink/MessageBuilder.cs | DJJA/DeBel | mit | 4,937 | 158 | codeparrot/github-code |
c55f19815488df93e5c55f8eed90ea6fb2ca2b545d763a012b66c21d0fb3ffdb | using System;
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Security.Cryptography;
using System.Threading;
using System.Threading.Tasks;
using vm.Aspects.Security.Cryptography.Ciphers.Properties;
namespace vm.Aspects.Security.Cryptography.Ciphers
{
/// <summary>
/// The class <c>Hasher... | C# | Aspects/Security/Cryptography/Ciphers/src/Hasher.cs | vmelamed/vm | mit | 22,324 | 532 | codeparrot/github-code |
34e095b35ac353a21c8c0c21a638a39edd611793546585ae48e77c0da5c2dde1 | "use strict";
const EventEmitter3 = require("eventemitter3");
class TsBase extends EventEmitter3 {
constructor() {
super();
let _isDataRequired = false;
let _processing = 0;
let _callback = null;
let _upstreamCallback = null;
let _pipes = [];
let _writePi... | JavaScript | lib/base.js | rndomhack/node-aribts | mit | 7,890 | 315 | codeparrot/github-code |
8a08a999b83f97eb9bfb3b555447fa6e14f024ad625df1bb311bb5eb323dc3f8 | import React from 'react';
import { makeStyles, Theme, createStyles } from '@material-ui/core/styles';
import Grid from '@material-ui/core/Grid';
import List from '@material-ui/core/List';
import ListItem from '@material-ui/core/ListItem';
import ListItemIcon from '@material-ui/core/ListItemIcon';
import ListItemText f... | TypeScript | docs/src/pages/components/transfer-list/TransferList.tsx | kybarg/material-ui | mit | 4,414 | 156 | codeparrot/github-code |
08516730064b6a14582e377a6d831803d3de78b376d3f08b4be14f849335b082 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
if(!class_exists('MY_controller')){
require_once(APPPATH . '/core/MY_controller.php');
}
class Index extends MY_controller {
/**
* Index Page for this controller.
*
* Maps to the following URL
* http://example.com/in... | PHP | application/controllers/Index.php | greatgeekgrace/tdrop-ci | mit | 12,602 | 358 | codeparrot/github-code |
e83e18437cd1fff6aaa8b26a2bbd8c70a16ada0f18d5587bf12051bec1f732eb | var fs = require('fs');
var argv = require('optimist').argv;
if (argv._.length !== 2) {
usage();
}
var command = argv._[0];
var port = argv._[1];
if (!port.toString().match(/^\d+$/)) {
usage();
}
var daemon = require("daemonize2").setup({
main: "serve.js",
name: "standby-" + port,
pidfile: "/tmp/st... | JavaScript | app.js | punkave/standby | mit | 587 | 39 | codeparrot/github-code |
264bc143b983d07f6489266ced6ead5aed7f50f3848a9ab6a7e7ce393feafd3a | import {
forEach
} from 'min-dash';
var LOW_PRIORITY = 250;
/**
* The tool manager acts as middle-man between the available tool's and the Palette,
* it takes care of making sure that the correct active state is set.
*
* @param {Object} eventBus
* @param {Object} dragging
*/
export default function To... | JavaScript | lib/features/tool-manager/ToolManager.js | pedesen/diagram-js | mit | 2,268 | 94 | codeparrot/github-code |
699b81e634099f8bc4130b9f02b5cf7ff085d7f69dc1ce1c1416615bab61d90b | package play.templates;
import org.junit.Test;
import play.PlayBuilder;
import java.util.HashMap;
import java.util.Map;
import static org.fest.assertions.Assertions.assertThat;
public class GroovyTemplateTest {
@Test
public void verifyRenderingTwice() {
new PlayBuilder().build();
String g... | Java | framework/framework/test-src/play/templates/GroovyTemplateTest.java | lafayette/JBTT | mit | 1,579 | 55 | codeparrot/github-code |
66fe65430f1e940e3354e0d943fdbc3a827d91025a0852533ebb448141180af4 | #!/usr/bin/python
# Copyright 2013 Russell Heilling
# pylint: disable=C0103
'''Sort a toread list against publication dates from the calibre database.'''
import logging
import subprocess
import sys
import args
from streams import StreamClassifier
import calibredb
import logs
args.add_argument('--infile', '-i', help='... | Python | sort-readlist.py | xchewtoyx/comicmgt | mit | 1,359 | 53 | codeparrot/github-code |
1ae5958f02a3d261e03c96ab5882c967bd22e24badbf5f065a6b853122684b97 | from . import base
from grow.common import utils
from protorpc import messages
import logging
import os
import re
if utils.is_appengine():
sass = None # Unavailable on Google App Engine.
else:
import sass
SUFFIXES = frozenset(['sass', 'scss'])
SUFFIX_PATTERN = re.compile('[.](' + '|'.join(map(re.escape, SUFF... | Python | grow/preprocessors/sass_preprocessor.py | denmojo/pygrow | mit | 3,649 | 88 | codeparrot/github-code |
5d46660673a73ef9cbdd46df8d6a422ee244705c486154a44e64dfb212f98cc2 | // Copyright (c) 2011+, HL7, Inc & The MITRE Corporation
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice, this... | JavaScript | app/controllers/practitioner.js | zelda/mongodb-for-fhir-resource | mit | 5,510 | 163 | codeparrot/github-code |
6f906557c1e895ed7ea026db17147ba7d6dfd138df6c89dc18eb7c8a65d65c79 | 'use strict';
exports.defer = function() {
var resolve, reject;
var promise = new Promise(function() {
resolve = arguments[0];
reject = arguments[1];
});
return {
resolve: resolve,
reject: reject,
promise: promise
};
};
exports.timeout = function(promise, time) {
var done;
var delayP... | JavaScript | lib/utils.js | colinskow/pouch-mirror | mit | 703 | 35 | codeparrot/github-code |
2a1c41130c45797cffdb6e7f663dcb5b6a60aff6c0f27b8e92bbe525660a3ae4 | <?php
namespace MusicBrainz\Supplement\Field;
trait UserTagsTrait
{
/**
* True, if user tags should be included, otherwise false
*
* @var bool
*/
private $userTags = false;
/**
* Returns true, if user tags should be included, otherwise false.
*
* @return bool
*/
... | PHP | src/Supplement/Field/UserTagsTrait.php | XenosEleatikos/MusicBrainz | mit | 740 | 38 | codeparrot/github-code |
ab0f4dba8e4c8eac616351895a96162317aac42535bd12d58ee6b1c595b107ca | from __future__ import absolute_import
# Copyright (c) 2010-2016 openpyxl
from warnings import warn
from .numbers import BUILTIN_FORMATS, BUILTIN_FORMATS_REVERSE
from .proxy import StyleProxy
from .cell_style import StyleArray
class StyleDescriptor(object):
def __init__(self, collection, key):
self.col... | Python | python/openpyxl/styles/styleable.py | aragos/tichu-tournament | mit | 2,984 | 104 | codeparrot/github-code |
4487e380dd71763a54adf66331378e07eaafabe5feed195e1a50ebdb459bb3eb | package biz.orgin.minecraft.hothgenerator;
import java.io.IOException;
import java.util.Random;
import org.bukkit.Chunk;
import org.bukkit.World;
import org.bukkit.generator.BlockPopulator;
import biz.orgin.minecraft.hothgenerator.schematic.LoadedSchematic;
public class MustafarTemplePopulator extends BlockPopulato... | Java | src/biz/orgin/minecraft/hothgenerator/MustafarTemplePopulator.java | orgin/hothgenerator | mit | 3,565 | 110 | codeparrot/github-code |
63043a9bb48cccf010fd7799f1eb19f58f6a2036c97a3895128c429be66bf519 | using System;
using System.Threading;
using System.Threading.Tasks;
namespace DragonSpark.Application.Runtime.Operations;
public readonly struct Worker : IAsyncResult, IDisposable
{
readonly Task _previous;
public Worker(Task previous, Task status)
{
_previous = previous;
Status = status;
}
public Task... | C# | DragonSpark.Application/Runtime/Operations/Worker.cs | DragonSpark/Framework | mit | 1,296 | 61 | codeparrot/github-code |
d87df0512db1688bbaa95b505bfa97d95c0283d396f898abb29b886b16ce7993 | #!/usr/bin/env node
/**
* @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 {getFileSystem, setFileSystem, NodeJSFileSystem, AbsoluteFsPath} from '@angular/compiler-cl... | TypeScript | packages/localize/src/tools/src/extract/main.ts | wKoza/angular | mit | 8,196 | 228 | codeparrot/github-code |
12954ac9fbb3809d1cceaeaa33d22a6eb5fa6aec4297c6c6048d33fa8a773582 | package org.craft.launch;
public enum OperatingSystem
{
WINDOWS, LINUX, MACOSX, SOLARIS, UNKNOWN;
public static OperatingSystem getOS()
{
String os = System.getProperty("os.name").toLowerCase();
if(os.contains("win"))
{
return OperatingSystem.WINDOWS;
}
... | Java | src/main/java/org/craft/launch/OperatingSystem.java | OurCraft/OurCraftLauncher | mit | 768 | 35 | codeparrot/github-code |
067b1f93c99420b9233df94d945f42f8579a68a889b4c469c2f8625100603418 | // src/test/os/mod.rs
// Copyright (C) 2017 authors and contributors (see AUTHORS file)
//
// This file is released under the MIT License.
// ===========================================================================
// Imports
// ===========================================================================
// Stdli... | Rust | src/test/os/windows/protocol/v1/mod.rs | Siminau/sasd | mit | 27,123 | 743 | codeparrot/github-code |
0ec636d9fe8b9e47788336f523319c6ccec780ed69987e23dab34a2abc2ad9dd | <!DOCTYPE html>
<html lang="en">
<head>
<!-- Meta -->
<meta charset="utf-8" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<!-- Use the .htaccess and remove these lines to avoid edge case issues.
More info: h5bp.com/i/378 -->
<meta http-equiv="X-UA-Compatible" conte... | HTML | out/pages/html.html | bobholt/coding-standards | mit | 20,706 | 303 | codeparrot/github-code |
25af87f8e993ba4bf8ac1d295ac5b7251180d7ddbada413502530f022c0ddc6c | import { logging, tags } from '@angular-devkit/core';
import { camelize } from '@angular-devkit/core/src/utils/strings';
import {
ArgumentStrategy,
CommandConstructor,
CommandContext,
CommandScope,
Option,
} from '../models/command';
import { insideProject } from '../utilities/project';
import * as yargsPars... | TypeScript | packages/@angular/cli/models/command-runner.ts | maxime1992/angular-cli | mit | 8,048 | 295 | codeparrot/github-code |
e1f16ec0e6af9abe9d26bedee972aefbca1318c97da72d807a9293ae0bcca1b3 | #ifndef MESH_H_INCLUDED
#define MESH_H_INCLUDED
#include "math.h"
#include "../heightmap.h"
#define MESH_MAX_VERTEX_BUFFERS 8
#define MESH_MAX_INPUT_LAYOUTS 16
typedef enum vertex_attributes vertex_attributes;
enum vertex_attributes
{
vertex_attributes_positions,
vertex_attributes_normals,
vertex_attri... | C | src/rendering/mesh.h | agelito/racera | mit | 2,678 | 126 | codeparrot/github-code |
c5e39fc8f6071ac4f4446ed25228592824a071da4658cc4fdc1d1b093f5197c1 | <?
namespace Seyon\Nodejs\ChatBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
class StyleController extends Controller
{
/**
* @Template()
* @return array
*/
public function default... | PHP | Controller/StyleController.php | seyon/NodeJsChat | mit | 3,240 | 92 | codeparrot/github-code |
32e45dc72bca935a6db66074983ab50699c4615803e9f2da31c57a041d30b321 | import React, { Component, PropTypes } from 'react';
import { Link } from 'react-router';
import { connect } from 'react-redux';
import Helmet from 'react-helmet';
import { initialize } from 'redux-form';
import { RegisterForm } from 'components';
import * as authActions from 'redux/modules/auth';
import toastr from 't... | JavaScript | src/containers/Register/Register.js | Restry/vendornew | mit | 3,096 | 96 | codeparrot/github-code |
12e9aeab46a2d4881505220ee98a78edca691ed495a3719bc553f87659da33b6 | <!DOCTYPE html>
<html>
<head>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www... | HTML | _site/page2/index.html | LWatsonlm/Tech-Eats | mit | 12,764 | 434 | codeparrot/github-code |
ae90d85c111252ebbd791bfd7db231ed1e49e51021a7d06ff05de4a78fb18567 | <HTML><HEAD>
<TITLE>Review for Runaway Bride (1999)</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0163187">Runaway Bride (1999)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?Susan+Grang... | HTML | data science/machine_learning_for_the_web/chapter_4/movie/19690.html | xianjunzhengbackup/code | mit | 3,193 | 52 | codeparrot/github-code |
a4f45935fada5b413a82c4597b70faaf09cccd13b616c9f5f0f3a4a6dd9d1acc | <HTML><HEAD>
<TITLE>Review for Albino Alligator (1996)</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0115495">Albino Alligator (1996)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?James... | HTML | data science/machine_learning_for_the_web/chapter_4/movie/6785.html | xianjunzhengbackup/code | mit | 6,649 | 108 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.