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 |
|---|---|---|---|---|---|---|---|---|
fdd38fdaac3f1c781a2bb1999b3e13d86681136c26d3b8bc52c81f9270add532 | // -----------------------------------------------------------
//
// This file was generated, please do not modify.
//
// -----------------------------------------------------------
namespace EmptyKeys.UserInterface.Generated {
using System;
using System.CodeDom.Compiler;
using System.Collections.Objec... | C# | BasicUI_Xenko/BasicUI_Xenko/BasicUI_Xenko.UserInterface/GeneratedUI/Dictionary.xaml.cs | EmptyKeys/UI_Examples | mit | 7,744 | 138 | codeparrot/github-code |
d55ddf973b52d3989c7ac2241ae76e6aaee5970bf5caf3d4c2047350d5a7045b | /*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (fuzz test support)
| | |__ | | | | | | version 2.1.0
|_____|_____|_____|_|___| https://github.com/nlohmann/json
This file implements a parser test suitable for fuzz testing. Given a byte
array data, it performs the following steps:
- ... | C++ | test/src/fuzzer-parse_json.cpp | stanmihai4/json | mit | 1,608 | 66 | codeparrot/github-code |
159a149048d20b36aa87e4dd59db3f55a2f56f8a7e52c88ce2a527ef614f696d | package bp.details;
import javax.swing.JLabel;
import javax.swing.JSpinner;
import javax.swing.SpinnerModel;
import javax.swing.SpinnerNumberModel;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
import bp.model.data.Gateway;
import bp.model.util.BPKeyWords;
import bp.model.u... | Java | BusinessProcessModelingTool/src/bp/details/GatewayDetails.java | farkas-arpad/KROKI-mockup-tool | mit | 2,214 | 81 | codeparrot/github-code |
381a3be04de1568653239dfbb9cd7e56190d5c1fa68264f1b909b309d0629ed7 | // Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Shapes;
using osu.Framework.Graphics.... | C# | osu.Game.Rulesets.Osu/Mods/OsuModBlinds.cs | naoey/osu | mit | 7,833 | 195 | codeparrot/github-code |
68f9f1558ed736cd321a46b06ebfa45c588b894772a37e5fb970320c7acdfcf6 | #!/hpf/largeprojects/ccmbio/naumenko/tools/bcbio/anaconda/bin/python
"""
Looks for a specific sample
"""
import re
import sys
import os
import os.path
sample = sys.argv[1]
family,sample_only = sample.split("_")
match = re.match('\d*',family)
if match:
prefix=str(int(match.group(0))/100)
report_path = pref... | Python | cre.locate_sample.py | naumenko-sa/cre | mit | 895 | 45 | codeparrot/github-code |
72241047af48dcbd10a94a3f16c499665500bbcd0d0af5d522d396129de941d3 |
#include <stdio.h>
#include <stdlib.h> /* exit, free */
#include <string.h> /* for manipulating filename */
#include "defines.h" /* type definitions and macros for flags and MAX limits */
#include "structs.h" /* structures used (needs defines.h) */
Category* cats[ MAX_TOT_CATS... | C | support/categoryPartitionTool-TSL/main.c | pastoref/VendingMachine | mit | 6,585 | 221 | codeparrot/github-code |
18d93dbddaa6e5eabd8eab921aba5465e062e23d6bdfd75049b46aec4b58cc71 | import { Component, OnInit, Input } from '@angular/core';
import { LoadingController, NavController } from 'ionic-angular';
import { Geolocation } from 'ionic-native';
import { Observable } from 'rxjs/Observable';
import { OriginLocationComponent } from '../origin-location/origin-location';
// import { AvailableProvide... | TypeScript | src/components/google-map/google-map.ts | RNATA/services-ionic | mit | 2,461 | 101 | codeparrot/github-code |
edf91911939ee0f129191f98401880bb67ca2681bfa453819a416d8f91245776 | <?php
/*
Copyright 2015 Lcf.vs
-
Released under the MIT license
-
https://github.com/Lcfvs/DOMArch
*/
namespace DOMArch\Url;
use DOMArch\Config;
use DOMArch\Constants;
use DOMArch\Crypto;
use DOMArch\Url;
class Encrypted extends Url
{
public static function parse($str)
{
$url = parent::parse($str);... | PHP | lib/Url/Encrypted/Encrypted.php | dom-arch/dom-arch | mit | 715 | 35 | codeparrot/github-code |
17ca04aa38ac495002e614d46dce3ed538edfef05f4c43d2c0c3446acc7dfb9a | <?php
namespace Rebase\BigvBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Rebase\BigvBundle\Entity\Game;
/**
* Rebase\BigvBundle\Entity\Slot
*
* @ORM\Table()
* @ORM\Entity
*/
class Slot
{
/**
* @var integer $id
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
... | PHP | src/Rebase/BigvBundle/Entity/Slot.php | daemonl/fxm | mit | 3,896 | 217 | codeparrot/github-code |
e2e846207c31ba69e2991eb5abbdc73bdebe98c92d297a3f9ab386eed68e263f | package com.cmput402w2016.t1.webapi.handler;
import com.cmput402w2016.t1.data.Segment;
import com.cmput402w2016.t1.webapi.Helper;
import com.cmput402w2016.t1.webapi.WebApi;
import com.sun.net.httpserver.HttpExchange;
import com.sun.net.httpserver.HttpHandler;
import java.util.Map;
/**
* Handler for the /segment web... | Java | MapCore/src/main/java/com/cmput402w2016/t1/webapi/handler/SegmentHandler.java | cmput402w2016/CMPUT402W16T1 | mit | 2,216 | 53 | codeparrot/github-code |
8ce8d21b0e0a7e806d8a9378aa398693028097095a9d08d304aa870f6195937b | package com.swfarm.biz.chain.bo;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Random;
import com.swfarm.pub.framework.FormNumberCache;
public class JobExecutionState implements Serializable {
private Long id;
private String jobName;
private String jobInstanceName;
... | Java | pms/src/main/java/com/swfarm/biz/chain/bo/JobExecutionState.java | zhangqiang110/my4j | mit | 2,105 | 89 | codeparrot/github-code |
f41a392d93b1ad6c1b998e3f478debd34596cc609a332e807dfe9cb13c0ed6e1 | import React from 'react';
import HomeLayout from '../layouts/HomeLayout';
import BookEditor from '../components/BookEditor';
import { get } from '../utils/request';
class BookEdit extends React.Component {
constructor(props) {
super(props);
this.state = {
book: null
};
}
... | JavaScript | src/pages/BookEdit.js | prodigalyijun/demo-by-antd | mit | 823 | 34 | codeparrot/github-code |
2502eaf0338a2bc75d0933c59154d7f856fb527af6b2d4dd03cd684b74292a5a | package jasm
const header = `
function jasm(stdlib, foreign, heap) {
"use asm";
var pc = 0; // pseudo program counter
var sp = 0; // stack pointer
var ret = 0; // return address, for jal
var r0 = 0, r1 = 0, r2 = 0, r3 = 0; // general purpose 32-bit registers
var f0 = 0.0, f1 = 0.0, ... | GO | jasm/header.go | h8liu/xlang | mit | 2,400 | 103 | codeparrot/github-code |
c8a7803f25a23e13ff45b94e8a506a79d331d1e2f2094fab11194d702a3b85ab | package controllers
import com.thetestpeople.trt.json.JsonSerializers._
import com.thetestpeople.trt.model.Configuration
import com.thetestpeople.trt.service.Service
import com.thetestpeople.trt.utils.HasLogger
import play.api.libs.json.Json
import play.api.mvc.Action
import play.api.mvc.Controller
import play.api.Rou... | Scala | app/controllers/WebApiController.scala | thetestpeople/trt | mit | 1,378 | 42 | codeparrot/github-code |
c45826ebf45db6e4cfb2b1e303c700ac63f196eee9913732cd4ac751b16b4a43 | // Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Gamblr developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "overviewpage.h"
#include "ui_overviewpage.h"
#include "bitcoinunit... | C++ | src/qt/overviewpage.cpp | knolza/gamblr | mit | 19,463 | 515 | codeparrot/github-code |
ced3bd2546d9878974bed43efeabb96f5e3290af3dff2bf5a6f2a384ee1994b8 | #!/usr/bin/python
#coding: utf-8
from __future__ import unicode_literals
import os
import unittest
import xlrd
import msp.schedule_parser as schedule_parser
__author__ = "Andrey Konovalov"
__copyright__ = "Copyright (C) 2014 Andrey Konovalov"
__license__ = "MIT"
__version__ = "0.1"
this_dir, this_filename = os.pat... | Python | msp/test/schedule_tests.py | xairy/mipt-schedule-parser | mit | 8,974 | 216 | codeparrot/github-code |
0131bcb93a8c84a2afb0151b36504563a16a66df240f188019c85ab7692cbbf2 | var Peer = require('../lib/Peer');
var Connection = require('../lib/Connection');
var dns = require('dns');
// get a peer from dns seed
dns.resolve('dnsseed.bluematt.me', function(err, seeds) {
// use the first peer
var peer = new Peer(seeds[0], 8608);
//Custom peer:
//var peer = new Peer('180.15... | JavaScript | examples/ConnectionTor.js | Bushstar/bitcore | mit | 1,072 | 35 | codeparrot/github-code |
916aa65801747d29514346f76d7140032eaa77c7903d1f73c37f4f020357a001 |
import gzip
import glob
import numpy as np
import pandas as pd
from scipy.stats import pearsonr
from scipy.stats import spearmanr
def get_num_lines_gz(filename):
num_lines = 0
with gzip.open(filename, "r") as fp:
for line in fp:
num_lines += 1
return num_lines
def main():
... | Python | scripts/data_qc/summarize_chipseq_qc.py | vervacity/ggr-project | mit | 4,085 | 129 | codeparrot/github-code |
2484d599b37e42b7f2dc608553fc7204913f86eddb4fc5890d65dc7e37d064c0 |
const WSP = require('../dist/ws')
import axios from 'axios'
import * as WS from 'ws'
const turnOn = async (port: number = 8095) => {
await axios.get('http://127.0.0.1:8085/on/' + port)
return true
}
const shutDown = async (port: number = 8095) => {
await axios.get('http://127.0.0.1:8085/off/' + port)
return ... | TypeScript | test/utils.ts | houd1ni/WebsocketPromisify | mit | 668 | 31 | codeparrot/github-code |
b0981b8749b1d70cf52b277738f7a5307b29b57fa35f21b55c9107bdf1876557 |
student_phoneNumber_name = {1: 'a', 3: 'c', 2: 'b'}
def Handler() :
while (1) :
choice = eval(input("Enter :\t 1 - to search student name \n \t 2 - to insert new student record \n \t 0 - to quit\n"))
print(choice)
if (choice == 1) :
if (student_phoneNumber_name) :
phone_number = input("Enter student's p... | Python | DAY_1_ASSIGNMENTS/1_name_phone_number.py | ajitghz582/PythonLearning | mit | 1,070 | 42 | codeparrot/github-code |
171d28c70cfe49aa9d5bb9d91135bd0ccfa0be96499a5d1e0ea0065298ec205d | import {Utils} from "../service/Utils";
Template.registerHelper(
"displayHours", function (date) {
return new moment(date).format("H[h]");
}
);
Template.registerHelper(
"displayHoursMinute", function (date) {
return new moment(date).format("H[h]mm");
}
);
Template.registerHelper(
"displayHoursMinuteS... | JavaScript | app/client/helpers-events/global-helpers.js | assomaker/manifmaker | mit | 3,295 | 161 | codeparrot/github-code |
ee9de88f68131071f89fe0deb1c1bd4a7c6139c7747523c59f3bba7558748d5d | // +build windows
package sers
// taken from https://github.com/tarm/goserial
// and slightly modified
// (C) 2011, 2012 Tarmigan Casebolt, Benjamin Siegert, Michael Meier
// All rights reserved.
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
import (
"fmt"... | GO | src/termzero/sers/sers_windows.go | capnm/termzero | mit | 8,070 | 337 | codeparrot/github-code |
65581746125f291a929dbf9c4bdb84b1fbceba04e0422840f22051faa8f8633a | /* Aranea
* Copyright (c) 2011-2012, Quoc-Viet Nguyen
* See LICENSE file for copyright and license details.
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <aranea/aranea.h>
#define CGI_E... | C | src/cgi.c | nqv/aranea | mit | 5,878 | 189 | codeparrot/github-code |
a19321009fb6f4c72537a3004009311b8ccb6f786e9e01d1f4f86dd069007288 | <?php
namespace Soy\Phinx;
use League\CLImate\CLImate;
use Soy\Task\CliTask;
class CreateTask extends CliTask
{
use ConfigTrait;
/**
* @var string
*/
protected $name;
/**
* @param CLImate $climate
* @param Config $config
*/
public function __construct(CLImate $climate, ... | PHP | src/Soy/Phinx/CreateTask.php | soy-php/phinx-task | mit | 1,041 | 59 | codeparrot/github-code |
0f9f48f1ece9204ef346239dcbf9c532316a94e5a91ef043639b55cc00a8cd60 | "use strict";
/*
* Copyright (c) 2013-2019 Bert Freudenberg
*
* 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... | JavaScript | vm.plugins.scratch.browser.js | bertfreudenberg/SqueakJS | mit | 2,534 | 55 | codeparrot/github-code |
b0d571bf89be5db94cbaf0730fd27b708bcd254ddea9c56b5de596e702892647 | <?php
/* TwigBundle:Exception:traces.html.twig */
class __TwigTemplate_172db66ae695714ab527ff22427d903f9649fdf96e97dbc795a82cac4ba36f2f extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(... | PHP | app/cache/dev/twig/17/2d/b66ae695714ab527ff22427d903f9649fdf96e97dbc795a82cac4ba36f2f.php | Alexandrovic/WebSmartravel | mit | 6,030 | 121 | codeparrot/github-code |
bacb1d1d3081d6d0b462409399c70f455b1774df2d6582227782e21277c33a21 | const React = require('react');
const { ViewPropTypes } = ReactNative = require('react-native');
const {
View,
Animated,
StyleSheet,
ScrollView,
Text,
Platform,
Dimensions,
I18nManager
} = ReactNative;
const Button = require('./Button');
//import { PropTypes } from 'react'
const WINDOW_WIDTH = Dimensi... | JavaScript | ScrollableTabBar.js | jackuhan/react-native-viewpager-indicator | mit | 8,307 | 254 | codeparrot/github-code |
f47b82656c8dfdc357861e68f9e20ffb76d5b9f7aa85c27c7317c9b7fa6cdb32 | /*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the... | Java | assets/webodf/programs/cordova/platforms/android/src/org/webodf/WebODF.java | brandon-bailey/osdms | mit | 1,303 | 38 | codeparrot/github-code |
d5004d41b3722ea8923e5b3838de3c2e7dcf4a3afcd2e0809a3864573961f3d6 | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using System.Threading.Tasks;
using Windows.ApplicationModel;
using Windows.ApplicationModel.Activation;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows... | C# | native/murlok-uwp/App.xaml.cs | murlokswarm/windows | mit | 4,541 | 123 | codeparrot/github-code |
73e29f3a8851a9b8a9a25a5f0e64b17067799933a20cbff55938eae0cdc264d2 | class ExercisesController < ApplicationController
load_and_authorize_resource
before_action :set_exercise, only: [:show, :edit, :update, :destroy]
respond_to :html
def index
@exercises = Exercise.all
respond_with(@exercises)
end
def show
respond_with(@exercise)
end
def new
@exercise... | Ruby | app/controllers/exercises_controller.rb | project-awesome/pa-skills-oauth-cancan | mit | 837 | 50 | codeparrot/github-code |
f91d4e0269e5dfa14710e68841a0ccdab866600bfd8ecd65c595c178ab49905c |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>W21828_extracted</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div style="margin-left: auto; margin-right: auto; width: 800px; overflow: hidden;">
... | HTML | ocr_extracted/W21828_text/page43.html | datamade/elpc_bakken | mit | 2,297 | 49 | codeparrot/github-code |
68ce64ac2e074dc6501959e9ac7b1e00f6b552fc302452cda3423f35d3249121 | <?php
namespace Oro\Bundle\FlexibleEntityBundle\AttributeType;
use Oro\Bundle\FlexibleEntityBundle\AttributeType\AbstractAttributeType;
use Oro\Bundle\FlexibleEntityBundle\Model\FlexibleValueInterface;
/**
* Datetime attribute type
*/
class DateTimeType extends AbstractAttributeType
{
/**
* {@inheritdoc}
... | PHP | src/Oro/Bundle/FlexibleEntityBundle/AttributeType/DateTimeType.php | umpirsky/platform | mit | 716 | 33 | codeparrot/github-code |
4708686aa8a26f1bf673dd7a16b32a4185dee722720ac754b5b2c579b5a2651d | // 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.Collections.Generic;
using System.Linq;
namespace T2rkus.Spark.Core.Cli
{
public class CommandOption
{
publi... | C# | T2rkus.Spark/T2rkus.Spark.Core.Cli/T2rkus.Spark.Core.Cli/Parser/CommandOption.cs | T2RKUS/Spark | mit | 3,607 | 108 | codeparrot/github-code |
0cc5f417cf16cbc38889cca634afc02100aded89af24a86088192bfdd1b7f339 | /*
* This file is part of jGui API, licensed under the MIT License (MIT).
*
* Copyright (c) 2016 johni0702 <https://github.com/johni0702>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softw... | Java | src/main/java/de/johni0702/minecraft/gui/element/AbstractGuiElement.java | ReplayMod/jGui | mit | 6,656 | 220 | codeparrot/github-code |
3d05aed2ee1fa9d82b715a7470c2c2cdbaff3660b1fa9a4f516d28ed82f72783 | var expect = require('chai').expect,
sinon = require('sinon'),
EventEmitter = require('../src/EventEmitter');
describe('EventEmitter tests', function() {
var emitter,
foo,
bar;
beforeEach(function() {
emitter = new EventEmitter();
foo = sinon.spy();
bar = sinon... | JavaScript | test/EventEmitter.test.js | jimgswang/EventEmitter | mit | 8,204 | 279 | codeparrot/github-code |
9a5331d26bb1d415c7c32dc9eccc565f38150a6bad5bf53dba2f948f46b14b16 | Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# In the development environment your application's code is reloaded on
# every request. This slows down response time but is perfect for development
# since you don't have to restart the web serv... | Ruby | config/environments/development.rb | mdibaiee/pack | mit | 1,718 | 46 | codeparrot/github-code |
0987aa5a311b8b148b007ac8b3351d748977d8c76a3b69734d8f9aefcc86a4b3 | /*
* Copyright (C) 2008 Apple Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... | JavaScript | profiler/ProfilesPanel.js | buglloc/ios-debug-proxy-devtools | mit | 42,236 | 1,351 | codeparrot/github-code |
fafa87bc005620b6006c41271d67b4e15c93ceff59d41cb326bd9671cbe31f09 | //=============================================================================
// Darken Region
// LAX_DarkenRegion.js
// v0.02
//=============================================================================
//=============================================================================
/*:
* @plugindesc v0.02 Use ... | JavaScript | LAX_DarkenRegion/v0.02/LAX_DarkenRegion.js | LuciusAxelrod/LAX_Plugins | mit | 6,112 | 184 | codeparrot/github-code |
61754a4513a367b30b44652b038d744621b3607ae8fe9849ffabf446d82076a6 | "use strict";
(function() {
function get_promise(endpoint) {
return function($http) {
return $http.get(endpoint);
};
}
angular.module('pagerbot-admin', ['ngRoute', 'ngTable', 'angular-loading-bar'])
.config(function ($routeProvider) {
$routeProvider
.when('/intro', {
te... | JavaScript | public/js/app.js | stripe-contrib/pagerbot | mit | 1,579 | 59 | codeparrot/github-code |
0c7905a8146d1a69916da111494fecbda1ada7a6c2d804ffdfcd04ee3ede37e7 | <?php
/**
* AAddress filter form.
*
* @package alumni
* @subpackage filter
* @author E.R. Nurwijayadi
* @version 1.0
*/
class AAddressFormFilter extends BaseAAddressFormFilter
{
/**
* @see AddressFormFilter
*/
static protected $order_by_choices = array(
null => '',
6 => 'ID',
21 => 'N... | PHP | lib/filter/doctrine/AAddressFormFilter.class.php | epsi-rns/AlumniBook-SF | mit | 2,921 | 105 | codeparrot/github-code |
ad56bab87c3890fbfe841f404bab50d7932c5911b6a11f570f680ab22fd224f0 | <?php
namespace GEPedag\EntidadesBundle\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use GEPedag\EntidadesBundle\Entity\Asi... | PHP | src/GEPedag/EntidadesBundle/Controller/AsignaturaController.php | yanpozka/management-system-symfony | mit | 4,994 | 134 | codeparrot/github-code |
1cd4871f16cc2c3a4cbaf13cc6552747c38f91046cc7bcd39f04a1c840ae67d6 | -- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "CREATE EXTENSION pg_prttn_tools" to load this file. \quit
-- Function: prttn_tools.create_child_table(
-- CHARACTER VARYING,
-- CHARACTER VARYING,
-- CHARACTER VARYING,
-- CHARACTER VARYING,
-- CHARACTER VARYING,... | SQL | sql/pg_prttn_tools--0.4.sql | alexandersamoylov/pg_prttn_tools | mit | 36,630 | 1,203 | codeparrot/github-code |
a4cdcf70aafda4d77879fc3439f66406583b425bbb14bafbae4434c999c4b078 | <!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Video Player</title>
<link rel="stylesheet" type="text/css" href="css/styles.css" />
</head>
<body>
<div class="srt"></d... | HTML | src/index.html | polesye/VideoPlayer | mit | 3,554 | 113 | codeparrot/github-code |
565e2dcb729691c74caee80492df3490a770d67afeaaf6f2c15f6fb1b9604c45 | #ifndef GAME_H
#define GAME_H
#include <array>
class Game
{
public:
//Standard Con/Destructors
Game(); //Initialize the board.
~Game(); //Not sure if I need this, but it's here in case
//Are we playing the game?
bool isRunning = true;
//The easiest way I could implement stalemate
//detection with... | C | tictactoe/game.h | JohnBobSmith/console_games | mit | 3,265 | 94 | codeparrot/github-code |
305481fb93f15f4332ef22026779470eaaa5b4b5fa75e2b2185a70f256b2991c | <!--
~ Copyright (c) 2017. MIT-license for Jari Van Melckebeke
~ Note that there was a lot of educational work in this project,
~ this project was (or is) used for an assignment from Realdolmen in Belgium.
~ Please just don't abuse my work
-->
<html>
<head>
<meta charset="utf-8">
<script ... | HTML | stageopdracht/src/main/resources/static/vendors/gentelella/vendors/echarts/test/polarScatter.html | N00bface/Real-Dolmen-Stage-Opdrachten | mit | 2,536 | 82 | codeparrot/github-code |
47a21e3a9f12fdbcc5c26e8d8b34782475df0975255d3decda3b9f6a6044740c | <?php
namespace RedMedica\ConsultasBundle\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;
use RedMedica\ConsultasBundle\Entity\Article;
use FOS\ElasticaBundle\Configuration\Search;
/**
* Category
*
* @ORM\Table(name="category")
* @ORM\Entity()
* @Search(repositoryClass=... | PHP | src/RedMedica/ConsultasBundle/Entity/Category.php | dysan1376/hospi | mit | 1,682 | 87 | codeparrot/github-code |
72c7abf0449ef74bc3b9f49020252e518c26369541a59ce9f4083a59b4967f62 | import React from "react";
import styled from 'styled-components'
import Link from './link';
const nextArrow = "/icons/next-arrow.png";
const prevArrow = "/icons/prev-arrow.png";
const PatternLink = styled.span`
width: 100%;
display: flex;
flex-direction: column;
padding: 1em;
float: ${props => props.previo... | JavaScript | src/components/next-prev-pattern.js | redfieldstefan/kibaktile.com | mit | 1,640 | 72 | codeparrot/github-code |
eabee64eda8a50ae2c3803a9f6eb7ca2f83f7d3c3ecbdce995122c1534eb1405 | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2016 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 DIGIBYTE_NET_PROCESSING_H
#define DIGIBYTE_NET_PROCESSING_H
#include "ne... | C | src/net_processing.h | DigiByte-Team/digibyte | mit | 2,633 | 64 | codeparrot/github-code |
177bcb3a5c35c564f6c6bdc967640eaab04fbd6b714252174ef7246b82a5dba4 | #!/usr/bin/node --harmony
'use strict'
const noble = require('noble'),
program = require('commander')
program
.version('0.0.1')
.option('-p, --prefix <integer>', 'Manufacturer identifier prefixed to all fan commands', parseInt)
.option('-t, --target [mac]', 'MAC address of devices to target', function(val){ ... | JavaScript | test/poc.js | zwaldowski/homebridge-satellite-fan | mit | 5,557 | 232 | codeparrot/github-code |
bf1e9527f5e7b711609320443e1535eebf001e816d381d3bf57e87cbf9eab52f | const HEX_SHORT = /^#([a-fA-F0-9]{3})$/;
const HEX = /^#([a-fA-F0-9]{6})$/;
function roundColors(obj, round) {
if (!round) return obj;
const o = {};
for (let k in obj) {
o[k] = Math.round(obj[k]);
}
return o;
}
function hasProp(obj, key) {
return obj.hasOwnProperty(key);
}
function isRgb(obj) {
re... | JavaScript | src/utils/color.js | tsuyoshiwada/color-classifier | mit | 3,342 | 142 | codeparrot/github-code |
07411b28288bcbe1c74fc78d94b4042c03e803dcaf4a07127bae8b819b9725b3 | var formMode="detail"; /*formMode 页面模式 页面有三种模式 detail add modify*/
var panelType="form"; /*panelType 面板类型 form表单 search 查询 child 从表对象*/
var editIndex = undefined; /*datagrid 编辑对象的行号*/
var dg1EditIndex = undefined;
var objName=label.objName; /*页面管理对象名称*/
var lblDetailStr=label.detailStr; /*在不同的语种下应该不同*/
var lbl... | JavaScript | web/wb/2tp/template/js/common/copy/a3.js | ldjking/wbscreen | mit | 8,606 | 298 | codeparrot/github-code |
5c5642cd5a946c47491667aee41fdc75275e3f0b914b8dd3a08437f93d6d7f8a | import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class FormLoader {
public static String connectionString = "jdbc:hsqldb:file:db-data/teamsandplayers";
static Connection con;
public static void main(String[] args) throws Exception {
try {
Class.forName("org.hsq... | Java | jframe-actionlistener-access-db-cxn/homework-start/Week13Assignment10/src/FormLoader.java | a-r-d/java-1-class-demos | mit | 788 | 43 | codeparrot/github-code |
54d65dc986e54fa0d8917a14a44c1172e9fdfdcc67dfbef66d6962382ab925c9 | <?php
namespace Memento\Test;
use Memento;
class SingleTest extends Harness
{
/** @dataProvider provideClients */
public function testStoreMethod(Memento\Client $client)
{
$success = $client->store($this->getKey(), array('foo' => 'bar'), $this->getExpires());
$this->assertTrue($success);
... | PHP | test/Memento/Test/SingleTest.php | garyr/memento | mit | 3,252 | 93 | codeparrot/github-code |
bfd641bb12ecb6d7fb85956180a1002603987b7543a43a63154fa322b32f99a1 | #!/usr/bin/env python3
"""
Categorize and analyze user sessions.
Read in ecfs_obfuscated_filtered.gz file, output some fancy results.
"""
from collections import defaultdict
from collections import Counter
import sys
import time
import os
import resource
import json
import fnmatch
from pipes import Pipes
impo... | Python | ecfs_user_sessions/src/analyze_user_sessions.py | zdvresearch/fast15-paper-extras | mit | 7,526 | 257 | codeparrot/github-code |
bd2b8ff95dee0f39042f8797039325e2653897a0f8e0bbd1947f08c144c8a191 | package esl
import (
"io"
"errors"
"unicode/utf8"
)
// Buffer ...
type buffer []byte
// MemoryReader ...
type memReader [ ]byte
// MemoryWriter ...
type memWriter [ ]byte
// ErrBufferSize indicates that memory cannot be allocated to store data in a buffer.
var ErrBufferSize = errors.New(`could not allocate memory`... | GO | src/pkg/esl/io.go | navrotskyj/acr | mit | 2,905 | 150 | codeparrot/github-code |
4de49a6ff74dcec88db3bf8a7b38154b6776123c38e9cc56c999310af055baf8 | package com.zimbra.cs.versioncheck;
import java.io.IOException;
import java.util.Iterator;
import java.util.List;
import java.util.Date;
import org.apache.commons.cli.CommandLine;
import org.apache.commons.cli.Options;
import org.apache.commons.cli.ParseException;
import com.zimbra.common.util.ZimbraLog;
import com.z... | Java | ZimbraAdminVersionCheck/src/java/com/zimbra/cs/versioncheck/VersionCheckUtil.java | nico01f/z-pec | mit | 7,334 | 186 | codeparrot/github-code |
a28b0933acfe13a4c5ed32f18af5edc0b4509def6b417acb10fb91e5c1e20fea | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@author Stephan Reith
@date 31.08.2016
This is a simple example to demonstrate how the ROS Spinnaker Interface can be used.
You will also need a ROS Listener and a ROS Talker to send and receive data.
Make sure they communicate over the same ROS topics and std_msgs.... | Python | examples/example_ros_spinnaker_interface.py | reiths/ros_spinnaker_interface | mit | 2,533 | 72 | codeparrot/github-code |
2b2ff6c14306b20c8b0a8639dfa6c13b24dc8e3e4e804dd640b20a555dedea18 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>area-method: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min... | HTML | clean/Linux-x86_64-4.07.1-2.0.6/released/8.13.1/area-method/8.5.0.html | coq-bench/coq-bench.github.io | mit | 7,586 | 170 | codeparrot/github-code |
3cbb9ea45425aa6b8e9dcf3444330cef805671b7abe7261baec75c6ec49e77b2 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ieee754: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" r... | HTML | clean/Linux-x86_64-4.05.0-2.0.6/released/8.9.1/ieee754/8.7.0.html | coq-bench/coq-bench.github.io | mit | 7,483 | 174 | codeparrot/github-code |
9d7de9689657753204ab667f90a77034a8d2d51d482d702e13e8f4b87c2eb677 | /**
* @license
* Copyright Google Inc. 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 {CompileDirectiveMetadata, CompileStylesheetMetadata, CompileTemplateMetadata, templateSourceUrl} from './com... | TypeScript | packages/compiler/src/directive_normalizer.ts | matsko/angular | mit | 12,863 | 329 | codeparrot/github-code |
efa33f35b6dc044347d4f9e94f063f2356115bc1e1bed0ef76c13fa3a1c8b079 | <?php
/* TwigBundle:Exception:error.atom.twig */
class __TwigTemplate_405349459f7f2e8922747537b1c12aa2323bb61b0265aaf549db7e51eafd66f4 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
... | PHP | app/cache/dev/twig/40/53/49459f7f2e8922747537b1c12aa2323bb61b0265aaf549db7e51eafd66f4.php | Mchichou/UEOptionnelles | mit | 1,789 | 37 | codeparrot/github-code |
4afb7df525bb79096f22107167dbfdba432816f33ef6d4c85eaacb0c3dfb3b6b | /**
* HTTP.test
*/
"use strict";
/* Node modules */
/* Third-party modules */
var steeplejack = require("steeplejack");
/* Files */
describe("HTTPError test", function () {
var HTTPError;
beforeEach(function () {
injector(function (_HTTPError_) {
HTTPError = _HTTPError_;
... | JavaScript | test/unit/errors/HTTP.test.js | riggerthegeek/steeplejack-errors | mit | 1,103 | 57 | codeparrot/github-code |
886f5846132dbc589681c87fc0a9579d4814d04ee31b1577ba230ff919e382bc | require File.join(File.dirname(__FILE__), './scribd-carrierwave/version')
require File.join(File.dirname(__FILE__), './scribd-carrierwave/config')
require 'carrierwave'
require 'rscribd'
require 'configatron'
module ScribdCarrierWave
class << self
def included(base)
base.extend ClassMethods
end
de... | Ruby | lib/scribd-carrierwave.rb | milkfarm/scribd-carrierwave | mit | 3,507 | 126 | codeparrot/github-code |
7aa6b745a3a946a7a345e60897af737822e52a752cfc4af1455f5a1431496e13 | var gulp = require('gulp');
var babel = require('gulp-babel');
var concat = require('gulp-concat');
var merge = require('merge-stream');
var stylus = require('gulp-stylus');
var rename = require("gulp-rename");
var uglify = require("gulp-uglify");
var cssmin = require("gulp-cssmin");
var ngAnnotate = require('gulp-ng-a... | JavaScript | gulpfile.js | jlowcs/angular-chatbar | mit | 1,878 | 82 | codeparrot/github-code |
c414d8288b885f6ada9ce78db1aeaeec4372a0a5eddb5e6df45798af83088d00 | package br.ufrj.g2matricula.domain;
import org.springframework.data.elasticsearch.annotations.Document;
import javax.persistence.*;
import javax.validation.constraints.*;
import java.io.Serializable;
import java.util.Objects;
import br.ufrj.g2matricula.domain.enumeration.MatriculaStatus;
/**
* A Matricula.
*/
@En... | Java | www/src/main/java/br/ufrj/g2matricula/domain/Matricula.java | DamascenoRafael/cos482-qualidade-de-software | mit | 2,535 | 114 | codeparrot/github-code |
e35ebb16d29e494aca2af842d1934621c75281997eec1c7033950ce080aaeec3 | <?php
class Admin_GeneralModel extends CI_Model {
public function GetAdminModuleCategoryList()
{
$this->db->select('CID, CategoryName');
$this->db->from('admin_module_category');
$this->db->order_by('Ordering');
$query = $this->db->get();
if($query->num_rows())
return $query;
else
return FALSE;
}
... | PHP | application/models/Admin_GeneralModel.php | dernst91/deCMS | mit | 895 | 40 | codeparrot/github-code |
9424dfe962cea483ba65f81d84429640f8e098f2fa13268d3905fab0306b516d | require 'ffi'
module ProcessShared
module Posix
module Errno
extend FFI::Library
ffi_lib FFI::Library::LIBC
attach_variable :errno, :int
# Replace methods in +syms+ with error checking wrappers that
# invoke the original method and raise a {SystemCallError} with
# the curre... | Ruby | lib/process_shared/posix/errno.rb | pmahoney/process_shared | mit | 1,066 | 41 | codeparrot/github-code |
0bfe5cadddeafb8a191fe1f5a9a0baef28760df9d5c3e8cbe29146fc2fecfc78 | 'use strict';
const _ = require('lodash');
const co = require('co');
const Promise = require('bluebird');
const AWS = require('aws-sdk');
AWS.config.region = 'us-east-1';
const cloudwatch = Promise.promisifyAll(new AWS.CloudWatch());
const Lambda = new AWS.Lambda();
const START_TI... | JavaScript | download-stats.js | theburningmonk/lambda-coldstart-comparison | mit | 2,153 | 77 | codeparrot/github-code |
b33f3a8a06a014bd7624ea24059759085abac370594db1e711558f4f4a12c82f | from __future__ import absolute_import, division, print_function, unicode_literals
import string
import urllib
try:
from urllib.parse import urlparse, urlencode, urljoin, parse_qsl, urlunparse
from urllib.request import urlopen, Request
from urllib.error import HTTPError
except ImportError:
from urlpars... | Python | oauth2lib/utils.py | VulcanTechnologies/oauth2lib | mit | 2,411 | 79 | codeparrot/github-code |
d846d012805a964a2e6b829081656a2f8c5f6c04b96dd371ca36dd3febf03e70 | /*
The MIT License (MIT)
Copyright (c) 2014 Banbury & Play-Em
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, m... | C# | Assets/SpritesAndBones/Scripts/Editor/Skin2DEditor.cs | Apelsin/UnitySpritesAndBones | mit | 8,333 | 193 | codeparrot/github-code |
fe409f522b7cb4989c11ddba84b4efa70d20c2bac3867bb40b1e31c12ebe0bf0 | // @flow
(require('../../lib/git'): any).rebaseRepoMaster = jest.fn();
import {
_clearCustomCacheDir as clearCustomCacheDir,
_setCustomCacheDir as setCustomCacheDir,
} from '../../lib/cacheRepoUtils';
import {copyDir, mkdirp} from '../../lib/fileUtils';
import {parseDirString as parseFlowDirString} from '../../... | JavaScript | cli/src/commands/__tests__/install-test.js | splodingsocks/FlowTyped | mit | 23,904 | 801 | codeparrot/github-code |
bcc3973a3ac32afe9fe4dab464218529251d74da8394aeb86ca11d0086da892c | import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { assign } from 'lodash'
import autoBind from '../utils/autoBind'
const styles = {
'ClosedPanelWrapper': {
height: '40px'
},
'PanelWrapper': {
position: 'relative'
},
'Over': {
border: '1px dashed white',
ove... | JavaScript | src/components/Panel.js | jcgertig/react-struct-editor | mit | 4,120 | 187 | codeparrot/github-code |
1607e695ebda8a27c12f98ce6a6da19c3730a79d9605d865489ed345a4e1838a | /*
---------------------------------------------------------------------------
Open Asset Import Library (assimp)
---------------------------------------------------------------------------
Copyright (c) 2006-2021, assimp team
All rights reserved.
Redistribution and use of this software in source and binary forms,... | C | src/includes/assimp/Bitmap.h | andrerogers/Enjin | mit | 4,360 | 130 | codeparrot/github-code |
929c6b90be4e15a8ce7406bef42f37b1bb7e190660b2a048e360f3772d15de98 | namespace CAAssistant.Models
{
public class ClientFileViewModel
{
public ClientFileViewModel()
{
}
public ClientFileViewModel(ClientFile clientFile)
{
Id = clientFile.Id;
FileNumber = clientFile.FileNumber;
ClientName = clientFile.Cl... | C# | CAAssistant/Models/ClientFileViewModel.cs | vishipayyallore/CAAssitant | mit | 1,129 | 43 | codeparrot/github-code |
1b2c6a3edb20db5f7d7924f892fb60d3a1066ed4be9aef4d31fb9053af325d5b | const electron = window.require('electron');
const events = window.require('events');
const {
ipcRenderer
} = electron;
const {
EventEmitter
} = events;
class Emitter extends EventEmitter {}
window.Events = new Emitter();
module.exports = () => {
let settings = window.localStorage.getItem('settings');
if (s... | JavaScript | app/js/init.js | vevix/focus | mit | 740 | 36 | codeparrot/github-code |
27274f22552270517569f95ba5f9195de4a5cc8ce31e2ca61e04c7273607cfce | /*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwar... | Java | src/main/java/org/spongepowered/common/mixin/core/server/network/MixinNetHandlerLoginServer.java | kashike/SpongeCommon | mit | 5,729 | 119 | codeparrot/github-code |
5fc67cd3eb6ee556b17cba03d1d7b51b89d348ac5acc84381cf1da1f15b4576a | from otp.ai.AIBaseGlobal import *
import DistributedCCharBaseAI
from direct.directnotify import DirectNotifyGlobal
from direct.fsm import ClassicFSM, State
from direct.fsm import State
from direct.task import Task
import random
from toontown.toonbase import ToontownGlobals
from toontown.toonbase import TTLocalizer
impo... | Python | toontown/classicchars/DistributedGoofySpeedwayAI.py | ksmit799/Toontown-Source | mit | 6,450 | 150 | codeparrot/github-code |
f17fd46c9977b9762f6ccdc9f32c2151008a5f296cdf0da16f454a20a07364fa | import React from 'react';
import {
Link
} from 'react-router';
import HotdotActions from '../actions/HotdotActions';
import HotdotObjStore from '../stores/HotdotObjStore';
import MyInfoNavbar from './MyInfoNavbar';
import Weixin from './Weixin';
class Hotdot extends React.Component {
constructor(props) {
... | JavaScript | app/m_components/Hotdot.js | kongchun/BigData-Web | mit | 5,453 | 136 | codeparrot/github-code |
f669f2ac93be308f74e55ef4a0923aea37610e0612281f61735c2b2bf18fb82d | using SolrExpress.Search.Parameter;
using System;
using System.Globalization;
using System.Linq;
using System.Text;
namespace SolrExpress.Utility
{
/// <summary>
/// Helper class used to extract information inside parameters
/// </summary>
internal static class ParameterUtil
{
/// <summary... | C# | src/SolrExpress/Utility/ParameterUtil.cs | solr-express/solr-express | mit | 4,032 | 115 | codeparrot/github-code |
3b38ce594787b2022e43e12e996a0608cc1f7fd4b9e1c4a9e4c85bd03ed0c921 | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import 'babel-polyfill';
import ReactDOM from 'react-dom';... | JavaScript | src/client.js | reicheltp/Sonic | mit | 4,371 | 138 | codeparrot/github-code |
abe89054b5a64fc42ee78a396267888aef23f46b8effdc333e9ff03f0511fe0e | var $M = require("@effectful/debugger"),
$x = $M.context,
$ret = $M.ret,
$unhandled = $M.unhandled,
$brk = $M.brk,
$lset = $M.lset,
$mcall = $M.mcall,
$m = $M.module("file.js", null, typeof module === "undefined" ? null : module, null, "$", {
__webpack_require__: typeof __webpack_require__... | JavaScript | packages/core/test/samples/simple/expr/test04-out-ds.js | awto/effectfuljs | mit | 1,801 | 73 | codeparrot/github-code |
a710e7a7c62a8077d65d558267f4fc06e29b48aedf84083c19c1c4f354e3e5e7 | import "bootstrap-slider";
import "bootstrap-switch";
export module profile {
function onInfoSubmit() {
var params: { [key: string]: string } = {};
$("#info-container .info-field").each(function() {
let name: string = this.getAttribute("name");
if (name == null) {
... | TypeScript | static/js/profile.ts | crossroads-education/eta-office | mit | 2,030 | 53 | codeparrot/github-code |
3dd366d8138d32a34aa0a6bab3b153ed61bedcfa6ff765a96d1499f4f92d13a6 | <?php
$this->load->Model('exam/Exam_manager_model');
$this->load->model('Branch/Course_model');
$exams = $this->Exam_manager_model->exam_details();
$exam_type = $this->Exam_manager_model->get_all_exam_type();
$branch = $this->Course_model->order_by_column('c_name');
?>
<div class="row">
<div class=col-lg-12>
... | PHP | application/modules/exam/views/addinternal.php | mayursn/lms_hmvc_live | mit | 10,084 | 251 | codeparrot/github-code |
c87967f4b06bb81805adbc0b5ad4b07589056ad75fa23209ff09ad471eca76bb | #include "transactiondesc.h"
#include "guiutil.h"
#include "lusocoinunits.h"
#include "main.h"
#include "wallet.h"
#include "db.h"
#include "ui_interface.h"
#include "base58.h"
#include <string>
QString TransactionDesc::FormatTxStatus(const CWalletTx& wtx)
{
if (!wtx.IsFinal())
{
if (wtx.nLockTime < ... | C++ | src/src/qt/transactiondesc.cpp | lusocoin/lusocoin | mit | 11,484 | 275 | codeparrot/github-code |
c819542a371de4545f36629dcf968fd223a4198d45cea2b3456081c0efea9e2d | <?php
/**
* Orinoco Framework - A lightweight PHP framework.
*
* Copyright (c) 2008-2015 Ryan Yonzon, http://www.ryanyonzon.com/
* Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
*/
namespace Orinoco\Framework;
use RuntimeException;
class View
{
// layout name
public... | PHP | lib/Orinoco/Framework/View.php | rawswift/orinoco-framework-php | mit | 9,496 | 316 | codeparrot/github-code |
224c31086f6ff913c188aa08d705f5d086fc21fff531c022f1222e7fe685a757 | /* ==========================================================================
Table of Contents
========================================================================== */
/*
0. Normalize
1. Icons
2. General
3. Utilities
4. General
5. Single Post
6. Tag Archive
7. Third... | CSS | assets/css/screen.css | DFieldFL/DFieldFL.github.io | mit | 37,056 | 1,792 | codeparrot/github-code |
d3442fbc4d5a44f0e867a94903ca69e544c4aa02e4f0caadf26965ad0e39f87c | package util;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
/**
* Taken from
* http://www.javaworld.com/article/2077578/learn-java/java-tip-76--an-alternative-to-the-deep-copy-technique.html
*
* @author David Miller... | Java | CS 2340 Agent Simulation/src/util/ObjectCloner.java | mokonzi131/gatech-colorwar | mit | 1,184 | 49 | codeparrot/github-code |
f11c3345c1eaeeba6a31e389b8cbb91bef6c5565b16d926491846a487d4212a2 | import { Event } from "../events/Event"
import { EventDispatcher } from "../events/EventDispatcher"
import { Browser } from "../utils/Browser"
import { Byte } from "../utils/Byte"
/**
* 连接建立成功后调度。
* @eventType Event.OPEN
* */
/*[Event(name = "open", type = "laya.events.Event")]*/
/**
* 接收到数据后调度。
* @eventType Even... | TypeScript | src/layaAir/laya/net/Socket.ts | layabox/layaair | mit | 7,940 | 283 | codeparrot/github-code |
69fcac83e27903514e0e81b16ac6e61acee1fb331c79d5e9e402699cf0e763c6 | import React from "react";
import { Link } from "@curi/react-dom";
import {
TitledPlainSection,
HashSection,
Paragraph,
CodeBlock,
Note,
IJS
} from "../../components/guide/common";
let meta = {
title: "Apollo Integration"
};
let setupMeta = {
title: "Setup",
hash: "setup"
};
let looseMeta = {
tit... | JavaScript | website/src/pages/Guides/apollo.js | pshrmn/curi | mit | 10,462 | 389 | codeparrot/github-code |
ca165dfe7dc6fd5a96a15b675724a68b72bb2659fbdc12c38586ee2aeab7244c | require 'net/http'
require 'net/https'
require 'active_merchant/billing/response'
module ActiveMerchant #:nodoc:
module Billing #:nodoc:
#
# == Description
# The Gateway class is the base class for all ActiveMerchant gateway implementations.
#
# The standard list of gateway functions that most... | Ruby | lib/active_merchant/billing/gateway.rb | raldred/active_merchant | mit | 6,376 | 168 | codeparrot/github-code |
87a39b0d8f13c3abd4487228cf600d4e6dd3537f15bc8a16f338c56a967df141 | require 'tilt/erb'
module May
class Templator
class Template
def initialize(path)
@file = File.open(path, 'r') if path
end
def path
@file.path
end
def body
return '' unless @file
@body ||= @file.read
end
end
class Generator
def ... | Ruby | lib/may/templator.rb | ainame/may | mit | 865 | 46 | codeparrot/github-code |
ba6c94278bb8d04fcbf9ac0cc88a3c4d25648d7c3d2ff73a2675b3e3614daa56 | (function($) {
var FourthWallConfiguration = function() {
this.token = localStorage.getItem('token');
this.gitlab_host = localStorage.getItem('gitlab_host');
}
FourthWallConfiguration.prototype.save = function() {
localStorage.setItem('token', this.token);
localStorage.setItem('gitlab_host', this... | JavaScript | javascript/config-form.js | dxw/fourth-wall-for-gitlab | mit | 1,883 | 64 | codeparrot/github-code |
ce627e535321224443ff0d4fe44114f80de4e0c801463e1648ac86fa7bb28def | Trace-VstsEnteringInvocation $MyInvocation
try {
. $PSScriptRoot\Get-PythonExe.ps1
$distdir = Get-VstsInput -Name "distdir" -Require
$repository = Get-VstsInput -Name "repository" -Require
$pypirc = Get-VstsInput -Name "pypirc"
$username = Get-VstsInput -Name "username"
$password = Get-VstsInpu... | PowerShell | UploadPackage/UploadPackage.ps1 | zooba/vsts-python-tasks | mit | 1,545 | 49 | codeparrot/github-code |
dbbbfe1880bed591b99ac21b63ce38fc82511bb2aeacb80443a3f06f9e5ca45c | <?php
/*
* This file is part of Composer.
*
* (c) Nils Adermann <naderman@naderman.de>
* Jordi Boggiano <j.boggiano@seld.be>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Composer\Plugin;
use Composer\Composer;
... | PHP | src/Composer/Plugin/PluginManager.php | kocsismate/composer | mit | 9,901 | 273 | codeparrot/github-code |
e0cfd7a3c33d0588600b66a06b5e616449b56910c67d9d7cc585f7bfc532e02d | ///////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2017, STEREOLABS.
//
// All rights reserved.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIE... | C++ | src/autobot/src/zed_wrapper_nodelet.cpp | atkvo/masters-bot | mit | 37,455 | 796 | codeparrot/github-code |
957e4d02aff7ea68031cabc14f9efde9e782fece3f49eae051746f33c008a0fa | module Tabulo
# @!visibility private
module Util
NEWLINE = /\r\n|\n|\r/
# @!visibility private
def self.condense_lines(lines)
join_lines(lines.reject(&:empty?))
end
# @!visibility private
def self.divides?(smaller, larger)
larger % smaller == 0
end
# @!visibility pri... | Ruby | lib/tabulo/util.rb | matt-harvey/tabulo | mit | 1,017 | 48 | codeparrot/github-code |
41e2b92b47ec95b694ba4959e5154ec3f9cfb2bf27d954c1ccd83b93cfa966e4 | var request = require('request');
var url = require('url');
var authenticate = require('./oauthentication');
var Request = function(obj){
this.obj = obj;
};
Request.prototype.mailboxes = function(method, specific_url, params, callback){
/*
* @params:
* @ param : if user wants to call specific mailbox e.g. : ... | JavaScript | lib/requests.js | slicedev/slice-node | mit | 3,323 | 97 | codeparrot/github-code |
5ccf5fe7e627dd168dce9df1a92a5eede1e5588e4d6c5ed6f29abd6a254ea422 | <?php
namespace Sasedev\Commons\SharedBundle\HtmlModel\Tags;
use Sasedev\Commons\SharedBundle\HtmlModel\Attributes\Src;
use Sasedev\Commons\SharedBundle\HtmlModel\Attributes\Type;
use Sasedev\Commons\SharedBundle\HtmlModel\Attributes\Charset;
use Sasedev\Commons\SharedBundle\HtmlModel\Attributes\Defer;
use Sasedev\Co... | PHP | src/Sasedev/Commons/SharedBundle/HtmlModel/Tags/Script.php | sasedev/commons-shared-bundle | mit | 1,621 | 74 | codeparrot/github-code |
a13c6a4f3d177c6342a424585d4b768e86a3fdfbaa4ec6443f0c37f7c62e38fa | use std::process::{Command,Output};
use std::io;
use tmux::pane::Pane;
use capture::retrieve_capture;
use serde::Serializer;
use serde::ser::Serialize;
// Come back and question the accuracy of windows without names
// that have active, or previous window designations.
static NAME_REGEX: &'static str = r":\s(\w*)[$\... | Rust | src/tmux/window.rs | brianp/muxedsnapshot | mit | 5,264 | 168 | codeparrot/github-code |
73f0359fddf583329522d6fed468199bc33381d09714fd0551ed18800ca7b9b6 | package gradebookdata;
/**
* Represents one row of the course table in the GradeBook database
*
* @author Eric Carlton
*
*/
public class Course {
private String name;
private int weight;
private int ID;
/**
* Create a course with all fields filled
*
* @param name
* name of course
* @... | Java | GradeBook/src/gradebookdata/Course.java | Eric-Carlton/GradeBook | mit | 1,062 | 66 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.