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 |
|---|---|---|---|---|---|---|---|---|
9e5305954461c0752ed9a8b30d1012e556761ece9ef5512bd3261e6e84feecbe | module Fastlane
module Actions
# Execute a shell command
# This method will output the string and execute it
# Just an alias for sh_no_action
# When running this in tests, it will return the actual command instead of executing it
# @param log [Boolean] should fastlane print out the executed comman... | Ruby | fastlane/lib/fastlane/helper/sh_helper.rb | fulldecent/fastlane | mit | 2,810 | 68 | codeparrot/github-code |
971cd93bf0a1fee935ae5a3906cd0bee79e4b7e4de079a24d5b078cbbdc5ad30 | package Mar2021Leetcode;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
public class _0301RemoveInvalidParentheses {
public static void main(String[] args) {
System.out.println(removeInvalidParentheses("()())()"));
System.out.println(removeInvalidParentheses("(a)())()"));
System.... | Java | src/Mar2021Leetcode/_0301RemoveInvalidParentheses.java | darshanhs90/Java-InterviewPrep | mit | 1,454 | 53 | codeparrot/github-code |
9c2881835e1b99ef94f2d465a281240fde5983fab11d22377642a2577d45ac7e | /*
* 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>
#if QT_VERSION < ... | C++ | src/qt/bitcoin.cpp | nuggetbram/grex | mit | 9,349 | 275 | codeparrot/github-code |
a1569f91cd2b1e48af1eb6d61665e6e4dcf912922c88d57a4222571f239e7d4d | import logging
import urllib
import re
from restorm.conf import settings
from restorm.rest import restify
from restorm.exceptions import RestServerException
from restorm.utils import reverse
VALID_GET_STATUS_RESPONSES = (
200, # OK
304, # NOT MODIFIED
)
class ResourceManagerDescriptor(object):
"""
... | Python | restorm/resource.py | joeribekker/restorm | mit | 14,316 | 385 | codeparrot/github-code |
a5e596f473f1cfc39b5ea2f59befee32cec9f50f4ae5ca0a8c68256f1e3dc6ce | function graphScroll() {
var windowHeight,
dispatch = d3.dispatch("scroll", "active"),
sections = d3.select('null'),
i = NaN,
sectionPos = [],
n,
graph = d3.select('null'),
isFixed = null,
isBelow = null,
container = d3.select('body'),
containerStart = 0,
... | JavaScript | graph-scroll.js | wcjohnson11/graph-scroll | mit | 3,236 | 145 | codeparrot/github-code |
0457dcc25fba57c504f3b240585bd5405dd5e12784098cb3165fed61c9db80f3 | <?php
namespace Cobase\AppBundle\Twig\Extensions;
class CobaseAppExtension extends \Twig_Extension
{
public function getFilters()
{
return array(
'show_maxlen' => new \Twig_Filter_Method($this, 'showMaxLen'),
'show_newflag' => new \Twig_Filter_Method($this, 'showNewFlag'),
... | PHP | src/Cobase/AppBundle/Twig/Extensions/CobaseAppExtension.php | Cobase/cobase | mit | 1,477 | 60 | codeparrot/github-code |
c77bb325fdb2d955da2052220fc4c8220a8c1821910ec1bdb1e546430b37f83f | // Libraries
import React from 'react'
import {shallow} from 'enzyme'
// Components
import ScraperList from 'src/scrapers/components/ScraperList'
// Constants
import {scraperTargets} from 'mocks/dummyData'
const setup = (override?) => {
const props = {
scrapers: scraperTargets,
emptyState: <></>,
onDel... | TypeScript | ui/src/scrapers/components/Scrapers.test.tsx | nooproblem/influxdb | mit | 653 | 33 | codeparrot/github-code |
7da903baebdf3909d71e73d9b5b875712963de46471ac23c8634fd778fe760f6 | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import io
import ijson
import shutil
import logging
import zipfile
import tempfile
import requests
from .. import base
from .record import Record
... | Python | collectors/fdadl/collector.py | opentrials/collectors | mit | 2,443 | 92 | codeparrot/github-code |
0c765f034cc891a7e0d8445e77ec0ffa2754cb8d22c5f4c8c4f2a1444cccb05b | module Deliver
class AppMetadata
#####################################################
# @!group Screenshot related
#####################################################
# Removes all currently enabled screenshots for the given language.
# @param (String) language The language, which has to be in... | Ruby | lib/deliver/app_metadata_screenshots.rb | lacostej/deliver | mit | 7,045 | 165 | codeparrot/github-code |
76a66d956a028efa10fe5cd0cf81e97f7a2a3d2d0b1061339b9f0ec36951a72b | 'use strict'
require('../typedefs')
// not using const to enable rewiring during test
let fetch = require('node-fetch')
const logger = require('../logger')
/**
* Convert a Bitbucket PR to a PR representation
* @param {BitbucketServerPullRequest} bbPr - the API response from a Bitbucket API looking for a PR
* @re... | JavaScript | lib/vcs/bitbucket-server.js | ciena-blueplanet/pr-bumper | mit | 3,071 | 106 | codeparrot/github-code |
5e0cb5f5090ad35884ec6afaaacd74b39c3515a1fa7e0edc43dfa3119d9c386e | import React from "react"
import classnames from "classnames"
import PropTypes from "prop-types"
import { Droppable } from "react-drag-and-drop"
import { Choose, When, Otherwise } from "jsx-control-statements"
import Button from "../button/button"
import Wrestler from "../wrestler/wrestler"
const NOOP = () => {}
cons... | JavaScript | src/components/match/team.js | azz0r/universe-sim-manager | mit | 2,220 | 67 | codeparrot/github-code |
f8166300811a1eb001bf631d8f36b56df89f89033ab9db43a24219d155a5b2aa | /* *********************************************************************************************
* This file is part of the Oracle Service Cloud Accelerator Reference Integration set published
* by Oracle Service Cloud under the Universal Permissive License (UPL), Version 1.0
* included in the original distribu... | C# | casemgmt/siebel/cx/projects/Accelerator.Siebel.ReportTablesAddIn/AssetListVirtualTable.cs | oracle/Accelerators | mit | 3,996 | 88 | codeparrot/github-code |
4f3b6caadaac2e5eaaf047030806a76779a9783da949c0ef8a32ce14b49570b4 | /*!
* CanJS - 2.1.3
* http://canjs.us/
* Copyright (c) 2014 Bitovi
* Mon, 25 Aug 2014 21:51:29 GMT
* Licensed MIT
* Includes: CanJS default build
* Download from: http://canjs.us/
*/
/* jshint maxdepth:7*/
steal("can/view", function(can){
function makeMap(str){
var obj = {}, items = str.split(",");
for... | JavaScript | public/js/lib/canjs/steal/canjs/view/parser/parser.js | winnlab/Optimeal | mit | 6,900 | 276 | codeparrot/github-code |
22793a3e05b2bd0e7124df287142289a2050f6d84efd1d85ececccad5fc657a0 | #
import os
import math
from array import array
import optparse
import ROOT
from ROOT import *
import scipy
import Plotting_Header
from Plotting_Header import *
def cutcount(varname):
VAR = [varname, 50, 0, 100 ]
YT = "events / "+str((VAR[3]-VAR[2])/VAR[1])+" GeV"
#YT = "events"
XT = varname+" (GeV)"
H = "Type 1 ... | Python | DDTmethod/CutCounter.py | anovak10/plots | mit | 2,167 | 76 | codeparrot/github-code |
6db53e6dbd4f30daad492fa877736eb4528e142719015874fdf02d3bc9be78b9 | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va... | JavaScript | lib/line/time/Axis.js | jyotirmaybanerjee/tango-chart | mit | 2,984 | 71 | codeparrot/github-code |
ec1988f2c27488894f51a1c900df859440a99303d4c213f169baca6d9ed847d2 | // Copyright (c) 2016, 2019 Jon Taylor
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef SAFIRE_COMPRESSION_H
#define SAFIRE_COMPRESSION_H
#include <fstream>
#include <iostream>
#include <string>
#include <sstream>
#inclu... | C | src/compression.h | jon34560/Magnite | mit | 931 | 46 | codeparrot/github-code |
99b90a598105907235034390d4252178336d711cdb89beb4034fb7826468e518 | /**
* Version 2.4.0 Copyright (C) 2013
* Tested in IE 11, FF 28.0 and Chrome 33.0.1750.154
* No official support for other browsers, but will TRY to accommodate challenges in other browsers.
* Example:
* Print Button: <div id="print_button">Print</div>
* Print Area : <div class="PrintArea" id="MyId... | JavaScript | static/plugs/jquery/jquery.PrintArea.js | chree188/Think.Admin | mit | 8,933 | 201 | codeparrot/github-code |
8d756ed30cb55421743c84a78002a8ccc6af8c54f0e0957b681601918215465b | #include "testlib.h"
#include <sstream>
using namespace std;
int main(int argc, char * argv[])
{
setName("compare ordered sequences of signed int%d numbers", (int)(8 * sizeof(long long)));
registerTestlibCmd(argc, argv);
int n = 0;
string firstElems;
while (!ans.seekEof() && !ouf.seekEof())
... | C++ | judger/uoj_judger/builtin/checker/ncmp.cpp | UniversalOJ/UOJ-System | mit | 1,474 | 58 | codeparrot/github-code |
859b63e200e05aa98a6fbb757759e50ff2d780b5bb1a8532ffe4e1f179a086e1 | <?php
namespace AppBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
class ContactTypeType extends AbstractType
{
/**
* {@inheritdoc}
*/
public function buildForm(FormBuilderInterface $builde... | PHP | src/AppBundle/Form/ContactTypeType.php | WeDevBrasil/guia-comercial | mit | 740 | 39 | codeparrot/github-code |
96335958354062e4a1d57e654e7920359c8236c8addafc8b98adc11ed57d65db | const fs = require("fs");
const path = require("path");
const test = require("tape");
const write = require("write-json-file");
const load = require("load-json-file");
const truncate = require("@turf/truncate").default;
const { getCoords } = require("@turf/invariant");
const { featureCollection, lineString, point } = r... | JavaScript | packages/turf-rhumb-destination/test.js | dpmcmlxxvi/turf | mit | 2,729 | 86 | codeparrot/github-code |
fc75a8e42e1031159d7506badbe7242b8a80d08f1c90ef5540357d15bbd1f91b | using System;
using FFImageLoading.Work;
using ObjCRuntime;
using AppKit;
namespace FFImageLoading.Targets
{
public class NSViewTarget<TView> : Target<NSImage, TView> where TView : NSView, INativeObject
{
protected readonly WeakReference<TView> _controlWeakReference;
protected NSViewTarget(TV... | C# | source/FFImageLoading.Mac/Targets/NSViewTarget.cs | AndreiMisiukevich/FFImageLoading | mit | 983 | 41 | codeparrot/github-code |
5df8e778e079c07817a75c1df49c6747a779c300c6ae7249a97fe64e41bcb71d | //**********************************************************************
//
// ShaderFramework.h
//
// Super simple C-style framework for Shader Demo
// (NEVER ever write framework like this when you are making real games.)
//
// Author: Pope Kim
//
//*******************************************************************... | C | 12_EdgeDetection/ShaderFramework.h | seanhaneberg/ShaderPrimer | mit | 1,154 | 49 | codeparrot/github-code |
068349a29df93324787b99f88ddd6130c26aa2f333652850a2adb7e5f8d8e47f | #include <iostream>
#include <seqan/sequence.h>
#include <seqan/file.h>
using namespace seqan;
#include <iostream>
#include <seqan/sequence.h>
#include <seqan/file.h>
using namespace seqan;
// Function to print simple alignment between two sequences with the same length
template <typename TText1, typename TText2>... | C++ | raw/workshop13/workshop2013-data-20130926/sources/y4oycw36249shrvs/32/sandbox/my_ass2/apps/ass2/ass2.cpp | bkahlert/seqan-research | mit | 4,965 | 109 | codeparrot/github-code |
f334d1662bb1f0f83b3b77409d37fc86ab47415eac57585a31a416d007ee450d | import Ember from 'ember';
import RegisterTableComponentMixin from 'ember-table/mixins/register-table-component';
import LazyItemView from 'ember-table/views/lazy-item';
export default LazyItemView.extend(
RegisterTableComponentMixin, {
templateName: 'table-row',
classNames: 'ember-table-table-row',
classNameBin... | JavaScript | addon/views/table-row.js | Addepar/ember-table-addon | mit | 1,435 | 48 | codeparrot/github-code |
821e58578e2e604f4c794590e2f0cc13aa4b25c3faffc82a22beea4ebbc80aac | /* Copyright 2011 Elliotte Rusty Harold
This library is free software; you can redistribute it and/or modify
it under the terms of version 2.1 of the GNU Lesser General Public
License as published by the Free Software Foundation.
This library is distributed in the hope that it will be useful,
bu... | Java | data/xom/xom-1.2.1/nu/xom/canonical/URIJoiner.java | mmohan01/ReFactory | mit | 9,155 | 279 | codeparrot/github-code |
0cd6c1949fef5573cef8836a24a9a958976f8750274d0c3f8d36fcc7713b3427 | /**
* tee.c - minimalistic example of compositional I/O with buffering.
*
* This program reads from stdin, and writes its input to both stdout and stderr.
* The specifications allow buffering of any size.
* To illustrate this, the implementation buffers 2 bytes
* (i.e. reads 2 bytes, then writes 2, then reads 2, ... | C | examples/io/tee/tee_buffered_while.c | willempx/verifast | mit | 1,586 | 69 | codeparrot/github-code |
844bc6249c61bcd9e24ff96b84b896489bfc9ffcac84ef5f14f9c7fee20f7b06 | <?php
/**
* PHP SDK for QQ登录 OpenAPI
*
* @version 1.5
* @author connect@qq.com
* @copyright © 2011, Tencent Corporation. All rights reserved.
*/
require_once("../comm/utils.php");
/**
* @brief 获取access_token。请求需经过URL编码,编码时请遵循 RFC 1738
*
* @param $appid
* @param $appkey
* @param $request_tok... | PHP | includes/third/qq_api/oauth/get_access_token.php | guotao2000/ecmall | mit | 5,939 | 176 | codeparrot/github-code |
ba373ebfa4cb9378327316323c7dbc5a041e120a8804e0fc7f87dba7a5282134 | package controllers3;
import play.mvc.Controller;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
public class Hello1111111111111111111111 extends Controller {
public static void hello() {
// System.out.println("tere");
render("Application/hello.html", debug());
}
... | Java | app/controllers3/Hello1111111111111111111111.java | asolntsev/big-app.play | mit | 4,753 | 160 | codeparrot/github-code |
5167ca636e702405e24cb669be75d9bc31173d0f23eabbb110204d81723e42ab | /*jshint expr: true*/
'use strict';
var should = require('should')
, config = require('../lib/config');
describe('config#parseArgv', function() {
var exited = false
, oldProcessExit = process.exit
, oldConsoleError = console.error;
// test process.exit()
before(function() {
process.exit = functio... | JavaScript | test/test.config.js | zentner-kyle/livereloadx | mit | 5,511 | 182 | codeparrot/github-code |
4d4116861ba8932e4258efb70737ce4aed1b9c9a8d04624ef3c6e8c11db0450e |
public class Investimento implements Tributavel {
private double valorAplicado;
private double rendimentoMensal;
private int meses;
private static double taxaIR = 0.27;
public Investimento(double valorAplicado, double rendimentoMensal, int meses) {
this.valorAplicado = valorAplicado... | Java | engsoft1globalcode/aj2lab13_02/src/Investimento.java | andersonsilvade/workspacejava | mit | 1,380 | 63 | codeparrot/github-code |
52ed348814e23077dcc1ae2388276c9cafd9aa059bca3dd1f8aa8f20f2edf745 | //-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//---------------------------------------------------------... | JavaScript | www/framework/primitives/UIElement.js | Microsoft/ace | mit | 4,719 | 129 | codeparrot/github-code |
ce087316a297c388c661116c3b8a8b907eb93c4f632e04048ece20c75d1a73e2 | using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
namespace AutoMapper
{
public class ReflectionUtils
{
private static readonly HashSet<string> types = new HashSet<string> { "System.String", "System.Int32", "System.Decimal",
"System.Double", "... | C# | C# DB/C# DB Advanced/Automapper_/Automapper/ReflectionUtils.cs | Ivelin153/SoftUni | mit | 1,803 | 47 | codeparrot/github-code |
a6c5e26d4126a8eed6e197d510318907daa1d56f4840c1340ac894edd13bad25 | from misc_utils import get_config, get_logger, tokenize
from discourse_relation import DiscourseRelation
from collections import Counter, defaultdict
import json
import abc
import numpy as np
from os.path import join
import os
logger = get_logger(__name__)
class Resource(metaclass=abc.ABCMeta):
def __init__(self,... | Python | architectures/svm_baseline/resources.py | jimmycallin/master-thesis | mit | 5,218 | 123 | codeparrot/github-code |
d2573cf4a810dfb7d26470f41f11d0687d72cedaea08bb0a9f1c5f6f3b6d5acc | import React, { PropTypes } from 'react'
import { connect } from 'react-redux'
import RandomGif from './RandomGif'
const gifStyle = { float: 'left', marginRight: '20px' }
const needGetGifAction = 'pairOfPairGif/NEED-GET-GIF'
const PairOfPairGif = ({ randomGifActionPrefix, dispatch }) => (
<div>
<RandomGif
... | JavaScript | redux-fly-mrefrem/src/PairOfPairGif.js | slorber/scalable-frontend-with-elm-or-redux | mit | 1,365 | 48 | codeparrot/github-code |
527e8bf2fa808ddfbaced1b0f9ab391797f32518f81895419dfbd120e75b0e71 | isAdminById=function(userId){
var user = Meteor.users.findOne(userId);
return !!(user && isAdmin(user));
};
isAdmin=function(user){
user = (typeof user === 'undefined') ? Meteor.user() : user;
return !!user && !!user.isAdmin;
};
isInvited=function(user){
if(!user || typeof user === 'undefined')
return fal... | JavaScript | lib/users.js | p4bloch/bkx | mit | 4,388 | 136 | codeparrot/github-code |
ec96f7da897c659c1408e086487b12336c3893af6d97e12d4b9edf138db8f53e | /**
* Logback: the reliable, generic, fast and flexible logging framework.
* Copyright (C) 1999-2015, QOS.ch. All rights reserved.
*
* This program and the accompanying materials are dual-licensed under
* either the terms of the Eclipse Public License v1.0 as published by
* the Eclipse Foundation
*
* ... | Java | org.jpat.scuba.external.slf4j/logback-1.2.3/logback-examples/src/main/java/chapters/appenders/sub/sample/Bar.java | JPAT-ROSEMARY/SCUBA | mit | 1,027 | 35 | codeparrot/github-code |
0207e37981ebc2debed12d44fb3655439dfe77e39d1cfd804a31699d002d9114 | import * as core from '../../core';
import generateBlurVertSource from './generateBlurVertSource';
import generateBlurFragSource from './generateBlurFragSource';
import getMaxBlurKernelSize from './getMaxBlurKernelSize';
/**
* The BlurXFilter applies a horizontal Gaussian blur to an object.
*
* @class
* @extends P... | JavaScript | src/filters/blur/BlurXFilter.js | drkibitz/pixi.js | mit | 3,869 | 144 | codeparrot/github-code |
246e9286c788819f71a8993313a421e8a503cb474345c84da63f804cd8a09bb1 | <?php
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\SecurityBundle\Sec... | PHP | app/AppKernel.php | jbouhier/2SN | mit | 2,198 | 51 | codeparrot/github-code |
a89e22903e5e0398698a6baed96c51d6550d7e349a71c199da03745d9894dc21 | (function() {
var checkVersion = Dagaz.Model.checkVersion;
Dagaz.Model.checkVersion = function(design, name, value) {
if (name != "go-view") {
checkVersion(design, name, value);
}
}
Dagaz.View.showPiece = function(view, ctx, frame, pos, piece, model, x, y) {
var val = null;
if (model) {
... | JavaScript | src/debug/games/go-family/go-view.js | GlukKazan/Dagaz | mit | 826 | 32 | codeparrot/github-code |
6c85afe2d3f79488aed2f4d1ae4f1aae9e2170f950f67937a2961b4cbd566b12 | <?php
namespace SocialiteProviders\WeixinWeb;
use GuzzleHttp\RequestOptions;
use Illuminate\Support\Arr;
use SocialiteProviders\Manager\OAuth2\AbstractProvider;
use SocialiteProviders\Manager\OAuth2\User;
class Provider extends AbstractProvider
{
/**
* Unique Provider Identifier.
*/
public const ID... | PHP | src/WeixinWeb/Provider.php | SocialiteProviders/Providers | mit | 3,593 | 145 | codeparrot/github-code |
14146734e145d0c04e7f994adf3c59b88e2351e724ee3885f6ba5c282f61c3a4 | using System;
using System.Collections.Generic;
using System.Text;
using NAudio.Wave;
using NAudio.Utils;
namespace MarkHeath.AudioUtils
{
public class MixdownInfo
{
string fileName;
string letter;
MixDiffStream stream;
int offsetMilliseconds;
int delayMilliseconds;
... | C# | speechKit/NAudio-master/MixDiff/MixdownInfo.cs | skor98/DtWPF | mit | 1,682 | 74 | codeparrot/github-code |
98612e22021cf93fb8c8e7a843e4bad912fa6a2032b46da19937d7e53b15d10e | /*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2020 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the ... | C++ | src/Modules/Legacy/Fields/GeneratePointSamplesFromField.cc | jessdtate/SCIRun | mit | 9,729 | 302 | codeparrot/github-code |
d212e99016bf6003375f76167ff3992ccda7381f72a4ad5a4471c2b34d6e4a5d | #include "SurfaceTension_He2014.h"
#include <iostream>
using namespace SPH;
SurfaceTension_He2014::SurfaceTension_He2014(FluidModel *model) :
SurfaceTensionBase(model)
{
m_color.resize(model->numParticles(), 0.0);
m_gradC2.resize(model->numParticles(), 0.0);
}
SurfaceTension_He2014::~SurfaceTension_He2014(void)
{... | C++ | SPlisHSPlasH/SurfaceTension/SurfaceTension_He2014.cpp | ttnghia/SPlisHSPlasH | mit | 4,095 | 132 | codeparrot/github-code |
492cbdd6bdb152db88e9c23a4019669fd70cafdbbcd431fa866da9597d31a37a | require 'lithium/file-artifact/base'
# TODO: FileSet and its dependencies problem. For instance: "lib/*.jar" means FileSet wiil
# requires sequence of jar artifacts, but if the JAR artifact has to be created before
# no correct way to do it.
class FileMask < FileArtifact
def list_items()
... | Ruby | src/lib/zebra/bin/lib/lithium/file-artifact/set.rb | NexusLogica/WhiteRabbit3D | mit | 1,509 | 57 | codeparrot/github-code |
32215d9050bc077e64edead37f88f8570f7b4ea6ae9bc915379fd2377d1a386f | <!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width" />
<link rel="shortcut icon" type="image/x-icon" href="../../../favicon.ico" />
<title>Mov... | HTML | reference/android/graphics/Movie.html | AzureZhao/android-developer-cn | mit | 76,150 | 2,020 | codeparrot/github-code |
989e77d950cf0e33af27c3f3de67dc5d53accd76426c55c445c7b83f0822e300 | using LionFire.Applications.Hosting;
using LionFire.CommandLine.Dispatching;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace LionFire.Applications.Hosting
{
public static class CommandLineAppHostExtensions
{
public static IAppHost AddCommandLi... | C# | src/LionFire.Applications.CommandLine/CommandLineAppHostExtensions.cs | jaredthirsk/Core | mit | 1,579 | 58 | codeparrot/github-code |
be613b08940e37a49a5fe3eedb28070394d5474dc60f8ffb7034939a1f25848c | using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.IO;
using ZKWebStandard.Extensions;
using ZKWebStandard.Utils;
using ZKWeb.Localize;
using ZKWeb.Cache;
using ZKWeb.Plugins.Common.Base.src.UIComponents.Forms.Interfaces;
using ZKWeb.Plugins.Common.Base.src.UIComponents.Forms;... | C# | src/ZKWeb.Plugins/Common.CustomTranslate/src/Controllers/Bases/CustomTranslationControllerBase.cs | zkweb-framework/ZKWeb.Plugins | mit | 9,004 | 239 | codeparrot/github-code |
e220b9075b5405d07633394d459a57e0f265cdc6fc574780cd53647254c3125c | /* global document */
type Callback = () => void;
const callbacks: Callback[] = [];
let isPressed = false;
document.addEventListener('keydown', (e) => {
if (e.shiftKey && !isPressed) {
isPressed = e.shiftKey;
callCallbacks();
}
return true;
});
document.addEventListener('keyup', (e) => {
if (!e.shif... | TypeScript | src/js/modules/detect-shift.ts | brandly/tetris-react | mit | 725 | 42 | codeparrot/github-code |
1e68ed46a8321c7726d7632a252db94214ed4609fc77163e9e23087bd7769253 | """
.. currentmodule:: pylayers.antprop.diff
.. autosummary::
:members:
"""
from __future__ import print_function
import doctest
import os
import glob
import numpy as np
import scipy.special as sps
import matplotlib.pyplot as plt
import pdb
def diff(fGHz,phi0,phi,si,sd,N,mat0,matN,beta=np.pi/2):
""" Luebbers... | Python | pylayers/antprop/diff.py | dialounke/pylayers | mit | 13,499 | 559 | codeparrot/github-code |
97d0ccacfc3cf60c7076eda8c5d0dc7256ff995f3afc169af4dde61d63858f31 | <!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>internals | jQuery Geo</title>
<meta name="description" content="jQuery Geo internals">
<meta name="author" content="Ryan Westphal">
<meta name="viewport" c... | HTML | docs/internals/index.html | gijs/geo | mit | 6,069 | 86 | codeparrot/github-code |
fdea99551db9f5d8454bcd4bf441495e404edb813a0bcde5a68265ed82e8e32e | package com.robodoot.roboapp;
import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
import android.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.robodoot.dr.facetracktest.R;
/**
* A simple {@link Fragment} subclass.
... | Java | RoboApp/app/src/main/java/com/robodoot/roboapp/HomeFragment.java | kd345312/RoboApp | mit | 3,642 | 110 | codeparrot/github-code |
faaa32bd4cadd40ecba529318094ed4c69b4444e48bd052bd2832817c8b2f462 | // Copyright 2014 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package auth
import (
"strings"
"time"
"github.com/go-macaron/session"
gouuid "github.com/satori/go.uuid"
log "gopkg.in/clog.v1"
"gopkg.in/macaron.v1"... | GO | modules/auth/auth.go | liliexuan/gogs | mit | 3,540 | 148 | codeparrot/github-code |
fba56876c9eb791438e1f92dde83ae80ddc5da7e216be6630175fda11f98dc00 | /*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | TypeScript | src/vs/workbench/parts/debug/node/debugAdapter.ts | 0xmohit/vscode | mit | 16,843 | 531 | codeparrot/github-code |
e63b3897588a9a31ecd1412c89f6aaa972bb65cd47813110979bab9fbf6a6314 | /**
* HipChat plugin for the uptime project - https://github.com/fzaninotto/uptime
*
* Thanks to:
* - DMathieu for the Campfire plugin - https://gist.github.com/dmathieu/5592418
* - xphyr for Pushover plugin - https://gist.github.com/xphyr/5994345
*
* This index.js files goes to a directory `plugins/hipchat` i... | JavaScript | plugins/hipchat/index.js | MichaelStephan/uptime | mit | 2,284 | 84 | codeparrot/github-code |
04df235aa7c82bffc12ff8124f7e8264f038206d5a96ad3b47061ad53e4cc0b1 | /*
* Tencent is pleased to support the open source community by making
* WCDB available.
*
* Copyright (C) 2017 THL A29 Limited, a Tencent company.
* All rights reserved.
*
* Licensed under the BSD 3-Clause License (the "License"); you may not use
* this file except in compliance with the License. You may obtai... | C++ | wcdbTest/Pods/WCDB/objc/WCDB/abstract/handle.cpp | zhenyiyi/LearnDiary | mit | 11,512 | 384 | codeparrot/github-code |
1d2405994e576ea54914c1b0ee45226fd69e88a17eb188709c4015ad4ce00f71 | using System;
using System.Collections.Generic;
using System.Text;
using FlatRedBall.Gui;
using FlatRedBall.Graphics;
using FlatRedBall;
using FlatRedBall.Math;
#if FRB_MDX
using Microsoft.DirectX.Direct3D;
#endif
namespace EditorObjects.Gui
{
public class TextPropertyGrid : PropertyGrid<Text>
{
#re... | C# | FRBDK/FRBDK Supporting Projects/EditorObjects/Gui/TextPropertyGrid.cs | GorillaOne/FlatRedBall | mit | 6,222 | 226 | codeparrot/github-code |
54f47a839b1ed14fc42bbfadc06034365f2ef0545c3ab5877fe521052bdd2092 | package de.molaynoxx.amperfi.id3;
import com.mpatric.mp3agic.InvalidDataException;
import com.mpatric.mp3agic.Mp3File;
import com.mpatric.mp3agic.UnsupportedTagException;
import java.io.File;
import java.io.IOException;
public class ID3Helper {
public enum ID3Tag {
ALBUMARTIST, ALBUM, ARTIST, BPM, COMP... | Java | src/main/java/de/molaynoxx/amperfi/id3/ID3Helper.java | MolaynoxX/amperfi | mit | 2,873 | 67 | codeparrot/github-code |
dba871ae629ea813b362bfbf4243bf26e96e02d14f1b88100c5476917dd18078 | #!/bin/bash
FN="curatedBladderData_1.24.0.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.11/data/experiment/src/contrib/curatedBladderData_1.24.0.tar.gz"
"https://bioarchive.galaxyproject.org/curatedBladderData_1.24.0.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-curatedbladderdata/bioconduc... | Shell | recipes/bioconductor-curatedbladderdata/post-link.sh | roryk/recipes | mit | 1,342 | 47 | codeparrot/github-code |
6dbec257c7168cda67e8e5458c2cc84fd7dd35d97b07923a1b04751967642f7f | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysi... | C# | src/Features/CSharp/Portable/Completion/KeywordRecommenders/DynamicKeywordRecommender.cs | genlu/roslyn | mit | 3,587 | 78 | codeparrot/github-code |
b6950a8f929f1736adaf35b5d04b9d37987c75db623eccdd93b6a150c9fdba20 | /*
* The MIT License
*
* Copyright (c) 2013-2016 reark project contributors
*
* https://github.com/reark/reark/graphs/contributors
*
* 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 w... | Java | appshared/src/test/java/io/reark/rxgithubapp/shared/utils/SubscriptionUtilsTest.java | ulx/reark | mit | 2,995 | 79 | codeparrot/github-code |
fe8e8cb84ebb99ddc77685c4f1e186248a1db51d5b87e66da5c9fefe62d6d965 | (function() {
'use strict';
angular
.module('siteApp')
.factory('ProfileService', ProfileService);
ProfileService.$inject = ['$http'];
function ProfileService($http) {
var dataPromise;
var service = {
getProfileInfo : getProfileInfo
};
re... | JavaScript | site/src/main/webapp/app/services/profiles/profile.service.js | egrohs/Politicos | mit | 1,104 | 37 | codeparrot/github-code |
1877adf49b30cedd594ffce356a2cd8e69fc4ab8ecee73de5cfdf2fb1951e4c1 | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_AMOUNT_H
#define BITCOIN_AMOUNT_H
#include "serialize.h"
#inclu... | C | src/amount.h | janko33bd/bitcoin | mit | 2,720 | 66 | codeparrot/github-code |
178d83e6fa507d3ef0f2a183049772a56ab0d938f6f59e1568e7f03016116ee8 | /*
* File: player.js
*
* Defines player viewpoint for rendering and does collision detection.
*
* Author: Karl Kangur <karl.kangur@gmail.com>
* Licence: WTFPL 2.0 (http://en.wikipedia.org/wiki/WTFPL)
*/
function Player(world)
{
this.world = world;
// player position is limited by Number.MAX_... | JavaScript | js/player.js | AdamByrne/MyCraft | mit | 8,098 | 344 | codeparrot/github-code |
e8204cb38ec7f3e37b52672c7d28bc09be9414797c446ebe7722cec88a48b306 | define(function(require) {
'use strict';
var ColumnManagerComponent;
var _ = require('underscore');
var Backgrid = require('backgrid');
var tools = require('oroui/js/tools');
var BaseComponent = require('oroui/js/app/components/base/component');
var ColumnFilterModel = require('orodatagrid/... | JavaScript | src/Oro/Bundle/DataGridBundle/Resources/public/js/app/components/column-manager-component.js | Djamy/platform | mit | 6,975 | 226 | codeparrot/github-code |
3676ace5d2b7051a6ea1c253a6e7768ba336f21a0bc541801a5accac0ab4839e | // GLWindow.cpp : implementation file
//
#include "stdafx.h"
#include "GLView.h"
#include "GLWindow.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
BYTE* gltResourceBMPBits(UINT nResource, int *nWidth, int *nHeight)
{
HINSTANCE hInstance; // Instance Handle
HAN... | C++ | SB-WinSrc/examples/src/chapt19/GLView/GLWindow.cpp | wjingzhe/Jingz_CPP_lab | mit | 9,361 | 369 | codeparrot/github-code |
35033b41e4e134ae9b449be527b804159dd9e4552f0f61e50c55b1219a07a1a0 | module Firebolt
class Config < Hash
CACHE_FILENAME = "firebolt.cache.json".freeze
##
# Constructor!
#
def initialize(options = {})
merge!(options)
self[:cache_file_path] ||= '/tmp'
self[:namespace] ||= ::SecureRandom.hex
end
##
# Class methods
#
# Creates ... | Ruby | lib/firebolt/config.rb | moneydesktop/firebolt | mit | 1,982 | 86 | codeparrot/github-code |
63d5e3f8e1b45d842ee7086dd9fd157bad7f38ba698444a53b8c48ccc4668ebc | using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
namespace ExcelLibrary.BinaryFileFormat
{
public partial class OBJ : Record
{
public List<SubRecord> SubRecords = new List<SubRecord>();
public override void Decode()
{
MemoryStream stream = new ... | C# | ExcelLibrary/Office/Excel/BinaryFileFormat/Extended/OBJ.cs | RH-Code/GAPP | mit | 1,021 | 39 | codeparrot/github-code |
42d6524764727df714e5612ff8279803ba41bd73bb4b46f71fd3ef88c0bae3d0 | module Scheman
module Parsers
class Mysql < Base
def self.parser
@parser ||= ParsletParser.new
end
def self.transform
@transform ||= ParsletTransform.new
end
# @param schema [String]
# @return [Scheman::Schema]
def self.parse(schema)
Schema.new(
... | Ruby | lib/scheman/parsers/mysql.rb | r7kamura/scheman | mit | 18,882 | 704 | codeparrot/github-code |
fafb3ef1a68f375a06e9587d8e46f551c8fa72f023c1c838e6006873f0bf6d6e | //There are a few things you'll need to add if you want to use this file. You need to change the makechatroom command so
//that it resets the hangman status upon making a chatroom; otherwise trying to run hangman in the new room will crash
//the server. Specifically, you'll need to add "hangman.reset(id)" somewhere in... | JavaScript | hangman.js | abrulochp/Dropp-Pokemon-Showdown | mit | 14,805 | 241 | codeparrot/github-code |
c7cb6cc5d7f0a5446517522a09419601193e481a96b403c291e26b94d2352554 | //
// async_client.cpp
// ~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2018 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <iostream>
#include <istre... | C++ | deps/asio/asio/src/examples/cpp03/http/client/async_client.cpp | onedata/helpers | mit | 5,611 | 205 | codeparrot/github-code |
d8c477afd096ad94de01ddcf917bb9b36e2ee10de27b8ec9061ce18ebb1ff8e4 | /*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2016 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person ... | C | plugins/render/ogreRender/3rdParty/ogre/OgreMain/include/OgreMatrix3.h | MTASZTAKI/ApertusVR | mit | 10,900 | 295 | codeparrot/github-code |
59e6e94f9ed840d0fec22575595ebf17b7eeed2e4ad96d3c4fd2f38864202e25 | var structr = require("structr"),
EventEmitter = require("events").EventEmitter,
vine = require("vine"),
_ = require("underscore"),
crema = require("crema");
var Mapper = structr({
/**
*/
"__construct": function(config) {
this._registrar = config.registrar;
this.connection = config.connection;
this._waiti... | JavaScript | lib/index.js | crcn/maprest.js | mit | 6,179 | 320 | codeparrot/github-code |
625a2157c71089b318c25839ef0995af4884092987667a57ea556dd222a4e350 | from rpython.rlib import jit
from ..expression_node import ExpressionNode
from .....vmobjects.block_ast import AstBlock
from .....vmobjects.double import Double
from .....vmobjects.integer import Integer
from .....vmobjects.method_ast import AstMethod
class AbstractToDoNode(ExpressionNode):
_immutable_fields_ ... | Python | src/som/interpreter/ast/nodes/specialized/to_do_node.py | smarr/RTruffleSOM | mit | 3,664 | 108 | codeparrot/github-code |
35ae3b669e079d332452fcd20f7b95e5cf4c199f25d2d4f45312ee7423ea4bf7 |
/*
<option selected value=0>Zero Selected ETO Data</option>
<option value=1>Subtract .05 inch from ETO Data</option>
<option value=2>Add .05 inch from ETO Data</option>
<option value=3>Select All Elements</option>
<option value=4>Unselect All Elememts</option>
*/
$(document).ready(
function(... | JavaScript | flask_web/static/js/eto_setup.js | glenn-edgar/local_scda | mit | 6,442 | 245 | codeparrot/github-code |
76f14657a3694d1bbbbc4ca989906652ce124cde03c8495e3c5e16626e41a392 | SIZE = 10
FRIEND_SIZE = 3
class User
include Neo4j::NodeMixin
property :first_name
property :last_name
end
class Contact
include Neo4j::NodeMixin
property :name
property :city
has_one(:user).from(User, :contact)
has_n(:users).to(User)
index :name
index :city
def to_s
"Contact id: #{neo_... | Ruby | example/shared_index/contact.rb | mneedham/neo4j-1 | mit | 737 | 47 | codeparrot/github-code |
ba8f33037db3d4f416b2c6c1a4ec7eddf423383d257171cadef461e46e7b6070 | /**
* The MIT License
*
* Copyright (c) 2019, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*
* 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, includi... | Java | easy-random-core/src/test/java/org/jeasy/random/parameters/IgnoreRandomizationErrorsParameterTests.java | benas/jPopulator | mit | 2,622 | 67 | codeparrot/github-code |
7608df6353c6d8082a4f5426dfb4b08b1eb84cf950436208a40b25c7c340c38c | # This code demonstrates the use of SolveDSGE for solving rational expectations models
# to second-order accuracy. The demonstration models are the first and second examples
# from Schmitt-Grohe and Uribe (2004)
#-------------------------------------------------------------------------------------------#
# Bring the... | Julia | test/old/second_order_example.jl | RJDennis/SolveDSGE | mit | 7,951 | 349 | codeparrot/github-code |
378116eec8c18ec87d509162f64e795c960b974b38b4902a6187ece1356bd8eb | #include <EnginePCH.hpp>
#include <ECS/DeferredTaskSystem.hpp>
#include <ECS/Entity.hpp>
#include <ECS/DeferredTaskImplementation.hpp>
using namespace Poly;
//------------------------------------------------------------------------------
Entity* DeferredTaskSystem::SpawnEntityImmediate(Scene* w)
{
return w->SpawnEnt... | C++ | PolyEngine/Engine/Src/ECS/DeferredTaskSystem.cpp | PiotrMoscicki/PolyEngine | mit | 1,569 | 51 | codeparrot/github-code |
f486871495eaa8993f15e04fab446d6a8babceb6ea2664505c28c4645c8e05a5 | <!--
Shows a single calendar week.
-->
<link rel="import" href="../quetzal-element/quetzal-element.html">
<link rel="import" href="../quetzal-calendar-day/quetzal-calendar-day.html">
<polymer-element name="quetzal-calendar-week" extends="quetzal-element" attributes="culture date dayElementTag">
<template>
<style>... | HTML | quetzal-calendar-week.html | JanMiksovsky/quetzal-calendar-week | mit | 4,551 | 143 | codeparrot/github-code |
953401d690a8a284c7bf505d4c9426540ef370fed661e1050ea97f7671069a52 | <!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width" />
<link rel="shortcut icon" type="image/x-icon" href="../../../favicon.ico" />
<title>Drm... | HTML | reference/android/drm/DrmUtils.ExtendedMetadataParser.html | terrytowne/android-developer-cn | mit | 60,099 | 1,585 | codeparrot/github-code |
8e0c0e1863c9cd340bb17e45c5a1b2072e00a24b39711ad5744ce32c14515c09 | /**
* @class Platform
* @classdesc **App平台级别**的初始化类
*
*
* ## 说明
*
* 这个类用于从设备中获取平台信息, 比如设备种类/运行平台/设备方向/文字方向等, 以此使得代码适配所有机型. 此外, 还支持平台方法的注册, 使业务与平台解耦.
*
*/
/**
* 结构体定义
*
* @typedef {Object} PlatformConfig
* {
* isEngine?: boolean;
* initialize?: Function;
* isMatch?: Function;
* superset?: ... | JavaScript | src/platform/platform.js | xiangsongtao/VueMobile | mit | 20,517 | 867 | codeparrot/github-code |
d5b42006f321d043853c88b38df94407ac561b6f3f3c0c388fa580fed2aed481 | /*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2016 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any person ... | C++ | plugins/render/ogreRender/3rdParty/ogre/OgreMain/src/OgreNode.cpp | MTASZTAKI/ApertusVR | mit | 35,560 | 1,056 | codeparrot/github-code |
fd41d140373776c2de5a4d55e4d09c45add0c8d5a1e01285e105c927b9278ff1 | /**
* Copyright 2015 Telerik AD
*
* 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 to ... | JavaScript | assets/scripts/vendors/kendo_ui/messages/kendo.messages.ro-RO.js | assunluis80/Web-Starter-Template | mit | 10,717 | 393 | codeparrot/github-code |
6d259ea2d7de2daab2fbf7b5dda8ad5ff7d030a74e2914c083d9eb66122764f8 | var $ = require('jquery'),
geojson2svg = require('geojson2svg'),
parseSVG = require('parse-svg');
// get wountires geojson data
$.getJSON('./data/countries.geo.json',drawGeoJSON);
function drawGeoJSON(geojson) {
// get the width and height of svgg element.
// as the width of the map container is 100%, we hav... | JavaScript | js/main.js | maps-on-blackboard/blog1-basic-map | mit | 1,184 | 41 | codeparrot/github-code |
f35227a68d897dad770522a281362401c7ef2bdca9ea3ab9427418bb708924a4 | import Ember from "ember";
export default Ember.Controller.extend({
needs: ['project', 'project/sketch', 'project/sketch/graph', 'project/sketch/graph/hypernode'],
projectController: Ember.computed.alias('controllers.project'),
sketchController: Ember.computed.alias('controllers.project/sketch'),
nodeC... | JavaScript | client/app/controllers/link-wizards/cj.js | mitraman/rapido | mit | 19,513 | 493 | codeparrot/github-code |
638c5709c40ebd1c87b211d566cf4e19d62b2cd5737e71420aca0c5bfe1b6a8f | title: Best Python Videos
category: page
slug: best-python-videos
sortorder: 0109
toc: False
sidebartitle: Best Python Videos
meta: Watch the best videos to learn Python programming from developer experts in the community.
If you prefer to learn Python programming by watching videos then this is the
resource for you.... | Markdown | content/pages/01-introduction/09-best-python-videos.markdown | mattmakai/fullstackpython.com | mit | 10,164 | 185 | codeparrot/github-code |
4e73aa9ae057d3fdeb2a60d851820059a68dd77fe1f8b7154d8ead2735d1228c | package May2021Leetcode;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.Queue;
public class _0993CousinsInBinaryTree {
static public class TreeNode {
int val;
TreeNode left;
TreeNode right;
TreeNode() {
}
TreeNode(int val) {
this.val = val;
}
TreeNode(int val, TreeNode ... | Java | src/May2021Leetcode/_0993CousinsInBinaryTree.java | darshanhs90/Java-InterviewPrep | mit | 1,919 | 90 | codeparrot/github-code |
20080dd265b57c77ad801aaf6a3112c6eb7bab6052328daf33efe9ededd09b6a | <?php
/**
* Form to set the title and sub title
*
* @author Dean Blackborough
* @copyright G3D Development Limited
* @license https://github.com/Dlayer/dlayer/blob/master/LICENSE
*/
class Dlayer_DesignerTool_FormBuilder_Title_Form extends Dlayer_Form_Tool_Form
{
/**
* Set the properties for the form
... | PHP | library/Dlayer/DesignerTool/FormBuilder/Title/Form.php | deanblackborough/dlayer | mit | 2,649 | 86 | codeparrot/github-code |
90c3dce0877f0dec666ec460dc37f4da58f40664128cef4ee0fdd2407cc91ba4 | from toast.scene_graph import Component
class Animation(Component):
def __init__(self, key=None, frames=None):
super(Animation, self).__init__()
self.__animation_list = {}
self.key = ''
self.__current_image = None
self.__index = 0
self.__time = 0
... | Python | toast/animation.py | JoshuaSkelly/Toast | mit | 2,328 | 83 | codeparrot/github-code |
eb74a266dc616847fc919ac771738bd86e3853e22d76f1184d3b3e1e15761d0a | """General utility functions for pyamg"""
__docformat__ = "restructuredtext en"
from warnings import warn
import numpy as np
import scipy as sp
from scipy.sparse import isspmatrix, isspmatrix_csr, isspmatrix_csc, \
isspmatrix_bsr, csr_matrix, csc_matrix, bsr_matrix, coo_matrix, eye
from scipy.sparse.sputils impo... | Python | pyamg/util/utils.py | huahbo/pyamg | mit | 65,500 | 2,032 | codeparrot/github-code |
7fb7b9e7e39c37d38c4bce93eb2e30d96193a1f4e4c44058003e1d6ab708b5bb | 'use strict';
var Socket = require('net').Socket
, log = require('debug')('discover')
, debug = require('debug')('discover:debug')
, ip = require('ip')
var PORT = 2000
var HELLO_APP = 'HELLOAPP'
var HELLO_KETTLE = 'HELLOKETTLE\n'
var kettle = null;
var checkForKettle = function(ip, portDetails, callback)... | JavaScript | lib/discover.js | lloydwatkin/ikettle.js | mit | 3,852 | 139 | codeparrot/github-code |
01ab893d7469fd60b1a543ec8bab8cb643ddcda6ad5630ebaa72e98baaaa4714 | <!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-... | HTML | recouvrement-mono/01_connexion_popin_multi_compte.html | khalid-s/psa-recovery | mit | 11,331 | 247 | codeparrot/github-code |
9093ae7ddd46fc99467ff0d1813c594d5ccd2e9a7aa0df97cfca66590fee5fe9 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<ti... | HTML | html/modules-packages-1/README.html | 1oglop1/1oglop1.github.io | mit | 52,306 | 763 | codeparrot/github-code |
b40fa8341c59c553de0b64fa882174fa912ef241b177492cdcb98126e23bfbc7 | //
// Created by Christopher Miller on 1/12/17.
//
#ifndef APPLICATIONRESOURCES_FILE_H
#define APPLICATIONRESOURCES_FILE_H
#include "JniHelpers.h"
class File : public JavaClass {
public:
/**
* This facsimile of the Java method java.lang.Class.getCanonicalName() is used to maintain
* the Jni Helper's rel... | C | library/src/main/cpp/File.h | the-mac/AndroidJniHelpers | mit | 2,062 | 67 | codeparrot/github-code |
4dce2a31c696f33a03f6e9741702fb8a60970e1a3360b4024775d6d73898d390 | import os
import time
import sublime
from .console_write import console_write
from .package_disabler import PackageDisabler
from .settings import pc_settings_filename, load_list_setting, save_list_setting
class PackageRenamer(PackageDisabler):
"""
Class to handle renaming packages via the renamed_packages s... | Python | Data/Packages/Package Control/package_control/package_renamer.py | koery/win-sublime | mit | 5,516 | 133 | codeparrot/github-code |
44a1ae82bbb4fc799c578ca17e1fd0b4f111637d135b5d4a7e9e0263f60320f9 | using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Tynamix.ObjectFiller;
// ReSharper disable RedundantCast
namespace ObjectFiller.Test
{
[TestClass]
public class SequenceGeneratorTest
{
[TestMethod]
public void SequenceGeneratorSByte__Should_work()
{
var generator = new SequenceGener... | C# | ObjectFiller.Test/SequenceGeneratorTest.cs | HerrLoesch/ObjectFiller.NET | mit | 14,008 | 333 | codeparrot/github-code |
5757a570cbb46c934d71a14a4248c3533ee2c2de0acc75329bd5bbc6de15a15f | {% extends "base.html" %}
{% import "macros.html" as macros %}
{% block head %}
<style>
.axis--x path {
display: none;
}
.line {
fill: none;
stroke: black;
stroke-width: 1.5px;
}
</style>
{% endbloc... | HTML | templates/pages/ratingsdev.html | gugi9000/foosball | mit | 3,407 | 118 | codeparrot/github-code |
2de376fe0fc23b19cca3cd5065402cc75f54bc4afc2b6b351cc363639e7e623e | /******************************************************************************
*
* Module Name: adwalk - Application-level disassembler parse tree walk routines
*
*****************************************************************************/
/***********************************************************************... | C | kernel/acpica/source/common/adwalk.c | aclements/sv6 | mit | 32,278 | 1,095 | codeparrot/github-code |
e1aab6af7522587bb3263f1e38f29ab486081e7c241dceb4ade224a78f3ddf61 | /*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | JavaScript | src/vs/css.build.js | microsoft/vscode | mit | 17,905 | 360 | codeparrot/github-code |
8670b99d79127842fbf132fdeec8df51792db272246674bb8ec480dd0ee6d03e | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../../print.css" type=... | HTML | Dots-TweenMax/com/greensock/docs/com/greensock/plugins/PhysicsPropsPlugin.html | gumgl/flash | mit | 9,399 | 151 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.