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 |
|---|---|---|---|---|---|---|---|---|
a4a96c3ea9ab65843eddc5a955c66d8c42ff4be1433af319729f398cfc83d7f1 | <?php
/**
* Author: Wing Ming Chan
* Copyright (c) 2014 Wing Ming Chan <chanw@upstate.edu>
* MIT Licensed
* Modification history:
*/
class DataDefinitionBlock extends Block
{
const DEBUG = false;
const TYPE = T::DATABLOCK;
/**
* The constructor
* @param $service the AssetOperationHandlerService... | PHP | asset_classes/DataDefinitionBlock.class.php | alynch-ece-its/php-cascade-ws | mit | 13,117 | 604 | codeparrot/github-code |
a7713f01b8b5d4c4429a0e3e1dd9edc6a4abae7cf36a78c328d2cac18b440e56 | <?php
Class extension_nested_cats extends Extension{
public function about(){
return array('name' => 'Nested Cats',
'version' => '1.0',
'release-date' => '2009-03-28',
'author' => array('name' => 'Andrey Lubinov',
'website' => 'http://las.kiev.ua',
'email' => 'andrey.... | PHP | extensions/nested_cats/extension.driver.php | bauhouse/sym-extensions | mit | 8,944 | 301 | codeparrot/github-code |
fa49add79225e321e1eb1b3b029d8097a77cce5d3727f1164fb7474473b3fa94 | const uAPI = require('../../index');
const config = require('../../test/testconfig');
const AirService = uAPI.createAirService(
{
auth: config,
debug: 2,
production: false,
}
);
const AirServiceQuiet = uAPI.createAirService(
{
auth: config,
production: false,
}
);
const requestPTC = 'ADT';... | JavaScript | examples/Air/fareRules.js | Travelport-Ukraine/uapi-json | mit | 1,202 | 62 | codeparrot/github-code |
804f2cfa44036527d6eaaf4849950493b2d9164e9a8414ba9a3f86249bca3f5b | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2013 The NovaCoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "db.h"
#include "miner.h"
#... | C++ | src/miner.cpp | Infernoman/Sembros-Next | mit | 19,473 | 574 | codeparrot/github-code |
08f32532f0dc90e7996789620d33d68071865d4dcd81f4913779931aab080c01 | #!/usr/bin/env python
# encoding: utf-8
"""
Make a grid of synths for a set of attenuations.
2015-04-30 - Created by Jonathan Sick
"""
import argparse
import numpy as np
from starfisher.pipeline import PipelineBase
from androcmd.planes import BasicPhatPlanes
from androcmd.phatpipeline import (
SolarZIsocs, Sola... | Python | scripts/dust_grid.py | jonathansick/androcmd | mit | 2,095 | 67 | codeparrot/github-code |
a4bea853df79d8c4859b05081508eb4a1f1518275e8ded80b0daa5e808f3ad84 | /*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2009-2012, Willow Garage, Inc.
* Copyright (c) 2012-, Open Perception, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are p... | C | src/io/openni2/openni2_frame_listener.h | xionluhnis/frozenpath | mit | 2,876 | 90 | codeparrot/github-code |
9cea014d432331afea806eb7a84222819ef3de819dd2c70fedbb522e2f52ec07 | package es.weso.shex
import es.weso.rdfgraph.nodes._
import es.weso.rdfgraph._
import es.weso.rdf._
import scala.util.parsing.input.Positional
case class Typing(map: Map[RDFNode, Set[RDFNode]]) {
def addType(key: RDFNode, value: RDFNode): Option[Typing] = {
if (map contains key) {
Some(Typing(map.update... | Scala | src/main/scala/es/weso/shex/Typing.scala | jorgeyp/ShExcala | mit | 1,790 | 77 | codeparrot/github-code |
ae823026524c3834ddcdbc5bdd0d6cc5c2d0d101746af6e28f17b76b500e01a4 | using ExifLibrary;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using System.Windows.Forms;
namespace ImageSort {
enum DirOpt {
NONE,
DAY,
MONTH,
YEAR
}
enum FileRule ... | C# | Source/MainForm.cs | StevenFrost/ImageSort | mit | 11,719 | 260 | codeparrot/github-code |
b5243f50bfc981f5be85ed79d4b22bc1307d183f5b310114567e19079b2f2b1c | /**
* Created by Dennis Schwartz on 16/12/15.
*/
var THREE = require('three');
var TrackballControls = require('three.trackball');
var OrthographicTrackballControls = require('three.orthographictrackball');
var Layouts = require('./layouts');
var Fixed = Layouts.connectedMultilayer;
var ForceDirectedLayered = Layout... | JavaScript | lib/graphics.js | DennisSchwartz/biojs-vis-munavi | mit | 16,458 | 488 | codeparrot/github-code |
deea1fd4390890d04b2afa2df6d574d4f20255752da3afb307a93271cb841d59 | using Parkitect.UI;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
namespace Fireworks.UI.Tracks
{
/// <summary>
/// This is the visible firework "item" that the user will drag around on the screen.
/// </summary>
public class FireworkUIData : MonoBehaviour, IBeginDragHandler, IDragHandl... | C# | UI/FireworkUIData.cs | Jay2645/Parkitect-Fireworks | mit | 3,816 | 182 | codeparrot/github-code |
0f3bebdffcbdd50de96039302128f3ad05650abefc3dc0884c7b32618e42113b | /*MIT License
Copyright (c) 2018 MTA SZTAKI
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, dist... | C | plugins/render/ogreRender/apeOgrePointCloud.h | MTASZTAKI/ApertusVR | mit | 2,156 | 75 | codeparrot/github-code |
e395e6319d624095483e41c1859b5a9d1c73bf8bed2f214a24a03d3ea037e5a3 | <html>
<head>
<title>
NLRB targets workers' rights (again)
</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<?php include "../../legacy-includes/Script.htmlf" ?>
</head>
<body bgcolor="#FFFFCC" text="000000" link="990000" vlink="660000" alink="003366" leftmargin="0" topmargin="0">
<t... | PHP | web/2006-2/608/608_15_NLRB.php | ISO-tech/sw-d8 | mit | 5,633 | 61 | codeparrot/github-code |
daf549d747b01b95a29e4c0f65d07c2c17e5b7cfe71914fca53c9b07e4b07b8d | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "irc.h"
#include "net.h"
#include "strlcpy.h"
#include "base58.h"
using ... | C++ | src/irc.cpp | elrapido80/AndroidsTokens | mit | 10,962 | 406 | codeparrot/github-code |
9db9d1d4dfe6e971fefb997dcabf3d74c97d00a124b95e73e19208f3bfa7d774 | <?php
namespace NiclasHedam;
class ColorName
{
public static $colors = [
'Acid Green' => [176, 191, 26],
'Aero' => [124, 185, 232],
'Aero Blue' => [201, 255, 229],
'African Violet' ... | PHP | src/ColorName.php | NiclasHedam/color | mit | 83,550 | 1,200 | codeparrot/github-code |
f7242e872f9929e0b7eb03bbabb0e3de95c7e7cb8ea61c4f44a51f30b286c843 | // Private array of chars to use
var CHARS = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
var ID = {};
ID.uuid = function (len, radix) {
var chars = CHARS, uuid = [], i;
radix = radix || chars.length;
if (len) {
// Compact form
for (i = 0; i < len; i++) uuid[i] = chars[0 | ... | JavaScript | src/UUID.js | blackjk3/react-form-builder | mit | 1,663 | 58 | codeparrot/github-code |
0cde5084a614ec0fb0157d0f0d6e0c121ddd716dde4c664762032b9de8413190 | // ==UserScript==
// @name mineAI
// @namespace minesAI
// @include http://minesweeperonline.com/#beginner-night
// @version 1
// @required http://localhost:8000/convnetjs.js
// @grant none
// ==/UserScript==
// Load the library.
var D = document;
var appTarg = D.getElementsByTa... | JavaScript | JS/minesweeper/minesweeperNN.js | cirquit/Personal-Repository | mit | 2,855 | 82 | codeparrot/github-code |
3399c07f6a07a863be71948962c3963094d4cd15b0c385ba6e5b52561000432a | <?php
namespace Hyperframework\Web;
use Exception;
abstract class HttpException extends Exception {
private $statusCode;
private $statusReasonPhrase;
/**
* @param string $message
* @param int $statusCode
* @param string $statusReasonPhrase
* @param Exception $previous
*/
publ... | PHP | lib/Web/HttpException.php | hyperframework/hyperframework | mit | 1,190 | 55 | codeparrot/github-code |
4b5bba86ab7161842f42baa2488cd729631c6c52fbb017818cc383b3dd07bd52 | package processing
import "github.com/gopherjs/gopherjs/js"
////////////////////////////////////////////////////////////
// COLOR
//Creating and reading:
func Color(params ...interface{}) *js.Object {
switch len(params) {
case 1:
return pG.Call("color", params[0])
case 2:
return pG.Call("color", par... | GO | Processing/colorPkg.go | bregydoc/PGoJs | mit | 3,341 | 167 | codeparrot/github-code |
9b7e2ad05018c0fc48c8bd5e55f1356914720d6aa3a35b049e0083d0610e592d | # -*- coding: utf-8 -*-
"""
@file
@brief Customer notebook exporters.
"""
import os
from textwrap import indent
from traitlets import default
from traitlets.config import Config
from jinja2 import DictLoader
from nbconvert.exporters import RSTExporter
from nbconvert.filters.pandoc import convert_pandoc
def convert_pa... | Python | src/pyquickhelper/helpgen/notebook_exporter.py | sdpython/pyquickhelper | mit | 4,770 | 138 | codeparrot/github-code |
a3c52916943eebab6d9f0c17ff36343d7ff82eb55e62cc5927b52dec52e9ab68 | define(function () { 'use strict';
({
get foo () {
console.log( 'effect' );
return {};
}
}).foo.bar;
({
get foo () {
return {};
}
}).foo.bar.baz;
({
get foo () {
console.log( 'effect' );
return () => {};
}
}).foo();
({
get foo () {
return () => console.log( 'effect' );
}
}).fo... | JavaScript | test/form/samples/getter-return-values/_expected/amd.js | corneliusweig/rollup | mit | 503 | 38 | codeparrot/github-code |
a23ab3b17784963a0b9cc55ac29e1dbc62f8d1ad9f55ce4fd6eba9ea3cfc36f0 | <?php
namespace App\Http\Controllers\MemberAuth;
use App\Address;
use App\Member;
use App\Http\Requests;
use Illuminate\Support\Facades\Hash;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\RegistersUsers;
use Illuminate\Support\Facades\Auth;
use Cornford\Googlmapper\Facades\MapperFacade as Mapper... | PHP | app/Http/Controllers/MemberAuth/RegisterController.php | mlechler/Bewerbungscoaching | mit | 2,745 | 83 | codeparrot/github-code |
83e87888488e13dffe2da4e02997242b0e9ade32405af13d7192e6e72c8213e2 | <script src="<?=base_url('assets/jwplayer7/jwplayer.js')?>"></script>
<script>jwplayer.key="<?=$this->M_setting->get_jwplayer_key()?>";</script>
<link href="<?php echo base_url(); ?>assets/css/bootstrap-combined.no-icons.min.css" rel="stylesheet">
<link href="<?php echo base_url(); ?>assets/css/style1.css" rel="stylesh... | PHP | application/views/landing/landing-page-9.php | akashbachhania/jeet99 | mit | 47,086 | 676 | codeparrot/github-code |
4f1a249cc6302e63f1f76fd73a497288f46df50fc944d57488e60a3a0206c171 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>quickchick: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.... | HTML | clean/Linux-x86_64-4.02.3-2.0.6/released/8.7.2/quickchick/1.0.2.html | coq-bench/coq-bench.github.io | mit | 7,314 | 182 | codeparrot/github-code |
7e4eed0d1e118623a3c87abf3eb05c2a46c8de7bc632af368f199214bfbb95cb | import {module, inject, createRootFactory} from '../mocks';
describe('solPopmenu directive', function () {
let $compile;
let $rootScope;
let createRoot;
let rootEl;
beforeEach(module('karma.templates'));
beforeEach(module('ui-kit'));
beforeEach(inject((_$compile_, _$rootScope_) => {
... | JavaScript | src/test/ui-kit/sol-popmenu.js | Tudmotu/solarizd | mit | 2,050 | 63 | codeparrot/github-code |
39a34202034e2a0aca806b11299e374db1f70bde07b9863bdebe0afa076469ed | <?php
/*******************************************************************************
*
* filename : Reports/FRBidSheets.php
* last change : 2003-08-30
* description : Creates a PDF with a silent auction bid sheet for every item.
******************************************************************************/
r... | PHP | src/Reports/FRBidSheets.php | ChurchCRM/CRM | mit | 3,387 | 110 | codeparrot/github-code |
7f773bbe4e7ebe56c953d602a9e0a81385c0c03ae4813e68744a4748d509474b | import React from 'react'
import Button from 'components/Button'
import Flex from 'components/Flex'
import { Explanation, TextStep, Buttons } from '../styles'
import explanation from 'images/bearing-explanation.svg'
export class Step extends React.Component {
render () {
return (
<TextStep>
<div... | JavaScript | app/containers/Steps/BearingIntroduction/index.js | nypl-spacetime/where | mit | 983 | 36 | codeparrot/github-code |
9d4b5699f71132b6e1c54722b12a74aae39a3565634e945b3dff2089ba0064e6 | <?php
class Remisiones_model
{
//status de las remisiones
protected $statusRemisionPorAutorizar = 2;
protected $statusRemisionCancelada = 3;
protected $statusRemisionRechazada = 4;
protected $statusRemisionAplicada = 5;
function aceptaRemision($remisionID,$comentarios,$contactoID,$link)
{
//cambiamos el st... | PHP | versiones/v0_8_0/ws/models/remisiones_model.php | georgesks/digirey | mit | 14,580 | 383 | codeparrot/github-code |
f5c6c91e98fbd408184a3e29fce589406b60c27a58fc3e538c20d28a188d2bd7 | # frozen_string_literal: true
require "concurrent/map"
require "active_support/core_ext/module/attribute_accessors"
require "action_view/template/resolver"
module ActionView
# = Action View Lookup Context
#
# <tt>LookupContext</tt> is the object responsible for holding all information
# required for looking u... | Ruby | actionview/lib/action_view/lookup_context.rb | shioyama/rails | mit | 9,597 | 313 | codeparrot/github-code |
5425609023149b77f5e1c12014c248c1c7b94f8ac0f48f95fbc3f0d21a42175b | # -*- coding: utf-8 -*-
import scrapy
from locations.items import GeojsonPointItem
DAYS = [
'Mo',
'Tu',
'We',
'Th',
'Fr',
'Sa',
'Su'
]
class SparNoSpider(scrapy.Spider):
name = "spar_no"
allowed_domains = ["spar.no"]
start_urls = (
'https://spar.no/Finn-butikk/',
... | Python | locations/spiders/spar_no.py | iandees/all-the-places | mit | 2,746 | 81 | codeparrot/github-code |
52a003f3c6e6dfcfc462d0e6d14b7d8735150e534ee40a6056bef732a13e625a | class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
# You should configure your model like this:
# devise :omniauthable, omniauth_providers: [:twitter]
# You should also create an action method in this controller like this:
# def twitter
# end
# More info at:
# https://github.... | Ruby | app/controllers/users/omniauth_callbacks_controller.rb | reginad1/skipdamenu | mit | 1,064 | 49 | codeparrot/github-code |
c9b9fc39bbb96491c4fd01cbdb56e7a158e1efe181e7fdd4be00d3e38609f733 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>groups: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" re... | HTML | clean/Linux-x86_64-4.05.0-2.0.6/extra-dev/8.10.0/groups/8.6.0.html | coq-bench/coq-bench.github.io | mit | 6,673 | 164 | codeparrot/github-code |
a9b17d3ef3d22c1b6152a5b41d91100b119e0cb4edd754b3654f09a43f93186c | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>shuffle: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css... | HTML | clean/Linux-x86_64-4.12.1-2.0.8/released/8.13.2/shuffle/8.7.0.html | coq-bench/coq-bench.github.io | mit | 7,003 | 165 | codeparrot/github-code |
7fca53b9df656fbb1a3742f12814e84cb40db63eec591053c09ad42a134129c1 | import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
import config.io.FolderManager;
import config.misc.GlobalIgnoreList;
import config.misc.GlobalSettings;
public class KspModuleEditor {
public static void main(String[] args){
try {
Scanner scanner = new Scanner(new File("Glob... | Java | src/KspModuleEditor.java | Brians200/KSP-Module-Adder | mit | 1,792 | 80 | codeparrot/github-code |
6031831ed119757dcce622299ae7d5db217b09e8976410c8dc8e0965133c098d | import click
from bitshares.amount import Amount
from .decorators import online, unlock
from .main import main, config
from .ui import print_tx
@main.group()
def htlc():
pass
@htlc.command()
@click.argument("to")
@click.argument("amount")
@click.argument("symbol")
@click.option(
"--type", type=click.Choice(... | Python | uptick/htlc.py | xeroc/uptick | mit | 3,974 | 133 | codeparrot/github-code |
f3629aaf268e67d7ce27b733ad2a18b758cba821054c01701aadf90de1c9dab9 | 'use-strict';
var hours = ['6:00am', '7:00am', '8:00am', '9:00am', '10:00am', '11:00am', '12:00pm', '1:00pm', '2:00pm', '3:00pm', '4:00pm', '5:00pm', '6:00pm', '7:00pm'];
var allLocations = [];
var theTable = document.getElementById('pike');
var el = document.getElementById('moreStores');
// var hourlyTotals = [];
//... | JavaScript | JS/app.js | ianwaites/fish-cookies | mit | 5,853 | 182 | codeparrot/github-code |
d699c10b8a596f0a6356984dc831ec3d6794ca0d5a93c85dbb841e88d9c1136d | // Copyright (c) 2009-2012 The Paccoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <map>
#include <openssl/ecdsa.h>
#include <openssl/obj_mac.h>
#include "key.h"
#include "util.h"
// Generate a pri... | C++ | src/key.cpp | wmcorless/paccoin-v2 | mit | 11,119 | 384 | codeparrot/github-code |
b83b7cac53c29069be31f562251345bf74bd9d7a439daa34940bfa69cd07dca2 | import os.path
import requests
import time
from bs4 import BeautifulSoup
from geotext import GeoText as gt
from string import punctuation
from collections import Counter
import re
import sys
reload(sys)
sys.setdefaultencoding("utf-8")
threats = ['loss', 'fragmentation', 'hunting', 'poaching', 'fishing', 'overfishi... | Python | arkive table analysis/parse.py | andrewedstrom/cs638project | mit | 5,243 | 187 | codeparrot/github-code |
6154b130052a2de3469027d5c0c686e48f81eccf4ed30425dc778b4f3dc9f466 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
... | HTML | Contact.html | rongshe94/CS1220HW | mit | 3,070 | 96 | codeparrot/github-code |
088565024c9552bbd270ae05a42f50ce964f02d6a2698f56e01e321fe6f03e3d | import React from 'react';
import ReactTouchPosition from '../../../dist/ReactTouchPosition';
import TouchPositionLabel from './TouchPositionLabel';
import OnPositionChangedLabel from './OnPositionChangedLabel';
import InstructionsLabel from './InstructionsLabel';
export default class extends React.Component {
c... | JavaScript | example/src/components/ShouldDecorateChildren.js | ethanselzer/react-touch-position | mit | 1,244 | 42 | codeparrot/github-code |
623e9960c69bdbe5a350a6416abc5df80c054c8ed7488e87b6c25092822bcac8 | #This will be the thread responsible for the matchmaking which operates as follows:
#There are four lists where the players are divided into based on their rank.
#List 1 is for ranks 0,1,2.
#List 2 is for ranks 3,4,5.
#List 3 is for ranks 6,7,8.
#List 4 is for ranks 9,10.
#When a player waits for a match too long, this... | Python | server/matchMakingThread.py | Shalantor/Connect4 | mit | 4,679 | 118 | codeparrot/github-code |
2d7a127e032458c82ae00a11d8a3151599c0274d1565c7decdf48aa60d33e91f | <?php
namespace App\Form;
use Symfony\Component\Form\{
AbstractType,
FormBuilderInterface
};
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Form\Extension\Core\Type\{
TextType,
TextareaType,
FileType
};
use... | PHP | src/Form/CompanyType.php | lloonnyyaa/reviews | mit | 3,177 | 103 | codeparrot/github-code |
e47c13583219d7e3acec4ad765eaa9a2fc43f3e22365ee8effa111ac2b29e14b | /**
* React Starter Kit for Firebase
* https://github.com/kriasoft/react-firebase-starter
* Copyright (c) 2015-present Kriasoft | MIT License
*/
import { graphql } from 'graphql';
import { Environment, Network, RecordSource, Store } from 'relay-runtime';
import schema from './schema';
import { Context } from './c... | JavaScript | src/server/relay.js | kriasoft/react-static-boilerplate | mit | 1,061 | 36 | codeparrot/github-code |
bf5ad49183af6c66e68ebe0c05f6ea5fd04f168510f06010d9c880c2f1b3ce98 | /**
* Copyright © 2012-2014 <a href="http://www.iwantclick.com">iWantClick</a>iwc.shop All rights reserved.
*/
package com.iwc.shop.modules.act.web;
import java.io.IOException;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;
import java.util.List;
import javax.servlet.http.HttpServletR... | Java | src/main/java/com/iwc/shop/modules/act/web/ActProcessController.java | newmann/shop | mit | 6,735 | 200 | codeparrot/github-code |
d9c4fbbb4ac669e19aa36a313110b2b6437a2af3e9eca2abccf89266983ee5d1 | import { Feature } from 'core/feature';
import * as toolkitHelper from 'helpers/toolkit';
export class TargetBalanceWarning extends Feature {
constructor() {
super();
}
shouldInvoke() {
return toolkitHelper.getCurrentRouteName().indexOf('budget') !== -1;
}
invoke() {
$('.budget-table-row.is-sub... | JavaScript | sauce/features/budget/target-balance-warning/index.js | egens/toolkit-for-ynab | mit | 1,342 | 48 | codeparrot/github-code |
9f675c0414ee306ec2d81f1cef6223f96474d2d2c7fe9dd6917d33c1b68c3458 | # coding: utf-8
from geventwebsocket.handler import WebSocketHandler
from gevent import pywsgi, sleep
import json
import MySQLdb
class JPC:
#
# 初期化
#
def __init__(self, filepath_config):
import hashlib
# 設定ファイルをロード
fp = open(filepath_config, 'r')
config = json.load(fp)
... | Python | server/JPC.py | ptr-yudai/JokenPC | mit | 9,880 | 313 | codeparrot/github-code |
45322f2890dd1fd3ce80596c26b2647da884ceb97af1982d5746dd33536ac3b9 | #include <XEEditor/IEditor.hpp>
//#include <EditorI/SelectionRectangle.h>
//#include "E:/Projekte/Src Game/_Engine/XEngine/TestXE/XETUI/GUI.h"
//#include <EditorI/TFViewport.h>
#include <XEEditor/Editor.hpp>
namespace EI {
EI::Editor* gEditor = nullptr;
//LNK2005 error Because you enabled STATIC_STD_LIBS (wh... | C++ | src/src/XEEditor/IEditor.cpp | devxkh/FrankE | mit | 7,297 | 325 | codeparrot/github-code |
8928092bf59ea0e04528aa749b6a558f8218db7212bd1a28a9000e16a57a40ef | """
download a file named filename from the atsc301 downloads directory
and save it as a local file with the same name.
command line example::
python -m a301utils.a301_readfile photon_data.csv
module example::
from a301utils.a301_readfile import download
download('photon_data.csv')
"""
import a... | Python | a301utils/a301_readfile.py | a301-teaching/a301_code | mit | 2,239 | 84 | codeparrot/github-code |
619370695fa1173dde40c3ec7eeaf78afdb9bd114427e9a4f71098f423365a18 | package collection.mutable;
import java.util.AbstractMap;
import java.util.ArrayList;
import java.util.List;
import java.util.HashMap;
import java.util.Map;
public class HashMultimap<K,V> {
Map<K, List<V>> map = new HashMap<K, List<V>>();
int total = 0;
public HashMultimap() { }
/**
* Returns t... | Java | src/main/java/collection/mutable/HashMultimap.java | zitudu/scala-like-collection-and-sort | mit | 2,578 | 103 | codeparrot/github-code |
c5a7f4546697f105bbee788e20dddbb631a149dafa6cbfd277926fcb888826ed | namespace COA.Game.UI.Controls {
partial class QuestionSelect {
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">t... | C# | Game/UI/Controls/QuestionSelect.Designer.cs | svmnotn/cuddly-octo-adventure | mit | 3,810 | 90 | codeparrot/github-code |
4326b6b36aae6b5b0d82f91b16ed97db8af8bebafc307f3b4e1ddd3270f0f01d | <?php
/**
* User: Alex Gusev <alex@flancer64.com>
*/
namespace Praxigento\App\Generic2\Cli\Test\Downline\Init\ReadCsv;
/**
* Read CSV with downline tree data exported from bonus module and return .
*/
class Downline
{
/** Add traits */
use \Praxigento\App\Generic2\Cli\Test\Traits\TReadCsv {
readCsv... | PHP | Cli/Test/Downline/Init/ReadCsv/Downline.php | praxigento/mobi_app_generic_mage2 | mit | 1,413 | 44 | codeparrot/github-code |
f7d3b6aff33eb4aa9e7c82774f1e108c636e92d6ee7b691fe39d7cc4650c765d | #ifndef SCENENODEQUEUE_H
#define SCENENODEQUEUE_H
#include "../../SDK/SceneGraph/SceneNodeBase.h"
#include "../../SDK/Platform.h"
#include <vector>
#include <set>
namespace Scene
{
class SceneNodeQueue
{
public:
/// <summary>Конструктор класса.</summary>
SceneNodeQueue(void);
/// <summary>Деструктор класс... | C | SceneGraph/Inc/SceneNodeQueue.h | victor-timoshin/SWAY-GameFramework | mit | 637 | 32 | codeparrot/github-code |
94bf03ea7d7d5585e566e2bf5743a384d1eae7429ea675463d313b0330351d14 | package framework;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
/**
* Convenience class for dealing with images.
*
* Creating a pixmap requires a filename that should ... | Java | src/framework/Pixmap.java | duke-compsci344-spring2015/jogl_jars | mit | 2,891 | 105 | codeparrot/github-code |
57dbab4f9ca6886d8eb3c55c15afdc94e56eec72ef7ad9ffee45dd1b5ae3668e | <?php
/**
* class Page
*
* @author Philippe Archambault <philippe.archambault@gmail.com>
* @since 0.1
*/
class Page extends Record
{
const TABLE_NAME = 'page';
const STATUS_DRAFT = 1;
const STATUS_REVIEWED = 50;
const STATUS_PUBLISHED = 100;
const STATUS_HIDDEN = 101;
public $t... | PHP | frog/app/models/Page.php | albertobraschi/toad | mit | 13,609 | 426 | codeparrot/github-code |
4dc58d8067f7eb1ce289e0eadba0158a8dabe9be02b71c5f4f08b8d59dd4c496 | /*
* Physical memory allocation
* Copyright (c) 2001,2003,2004 David H. Hovemeyer <daveho@cs.umd.edu>
* Copyright (c) 2003, Jeffrey K. Hollingsworth <hollings@cs.umd.edu>
* $Revision: 1.36 $
*
* This is free software. You are permitted to use,
* redistribute, and modify it as specified in the file "COPYING".
... | C | include/geekos/mem.h | sinabeuro/geekos5 | mit | 3,327 | 136 | codeparrot/github-code |
94c1184ff1f25babfa93a339a39a78b49f25b34f07f1b8ff3c8ec1e5e0575e22 | using System.Collections.Generic;
using System.Web.Mvc.Html;
using System.Text.RegularExpressions;
using System.Linq.Expressions;
namespace System.Web.Mvc
{
//www.jarrettmeyer.com/post/2995732471/nested-collection-models-in-asp-net-mvc-3
public static class HtmlHelpers
{
public static IHtmlString ... | C# | GestionFacturas.Website/Helpers/ListEditorHelper.cs | acapdevila/GestionFacturas | mit | 3,516 | 86 | codeparrot/github-code |
ef70ef701a9d034e3b7b2a4d3e186bcfd5cde392d82dcf43d37c4b68be577270 | <!DOCTYPE html><html><head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>[新聞] 英國吃派比賽又出差錯 無法選出冠軍 - 看板 Gossiping - 批踢踢實業坊</title>
<meta name="robots" content="all">
<meta name="keywords" content="Ptt BBS 批踢踢">
<meta name="description" content="
http://tinyurl.com/mjtppth
英國吃派比... | HTML | result/M.1419055301.A.58E.html | iultimatez/PTTScraper | mit | 6,748 | 142 | codeparrot/github-code |
0732165d45ff7d185a2c32f2efb3172598f6c9af516c86d0d86057da77402337 | import '../../../../css/rpt/styles.global.css';
import styles from '../../../css/rpt/styles.css';
import React, { Component, PropTypes } from 'react';
import 'react-widgets/lib/less/react-widgets.less';
import DateTimePicker from 'react-widgets/lib/DateTimePicker';
import Multiselect from 'react-widgets/lib/Multiselect... | JavaScript | app/components/rpt/production/POWithReceivers/poWithReceiversDateRange.js | robogroves/ebp | mit | 4,407 | 124 | codeparrot/github-code |
ae1bb7853fa831ec3b970e3fcf0d3b67695f384817cd4623992b904872ed78ad | using System;
using System.Buffers;
using System.Runtime.InteropServices;
namespace System.Net.Libuv
{
internal class UVBuffer
{
public readonly static UVBuffer Default = new UVBuffer();
public static UVInterop.alloc_callback_unix AllocateUnixBuffer { get; set; }
public static UVInter... | C# | src/System.Net.Libuv/System/Net/Libuv/Buffer.cs | weshaggard/corefxlab | mit | 2,049 | 75 | codeparrot/github-code |
a11e5b9eae24b04a059f3db9940752e914596e33317a7c4e643c982ae633d08f | /*
Video Core
Copyright (c) 2014 James G. Hurley
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, pu... | C | api/iOS/VCSimpleSession.h | PavlyukDev/VideoCore | mit | 6,099 | 153 | codeparrot/github-code |
bd3e4fe5e40db4edf8b6d95c3a652d909a8dacfb5da45116eb53b68d3a5f09e1 | import sublime, sublime_plugin
import os.path
import platform
def compare_file_names(x, y):
if platform.system() == 'Windows' or platform.system() == 'Darwin':
return x.lower() == y.lower()
else:
return x == y
class SwitchFileCommand(sublime_plugin.WindowCommand):
def run(self, extensions=... | Python | Data/Packages/Default/switch_file.py | koery/win-sublime | mit | 1,112 | 43 | codeparrot/github-code |
01ff0af98552ca4fe38ebab0c17a407a6e9bd867514f83f481a81866a15929c9 | /*! Pushy - v0.9.1 - 2013-9-16
* Pushy is a responsive off-canvas navigation menu using CSS transforms & transitions.
* https://github.com/christophery/pushy/
* by Christopher Yee */
$(window).load(function () {
var e = false;
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)) {
... | JavaScript | js/pushy_left.js | ChekHub/chekhub.github.io | mit | 2,897 | 104 | codeparrot/github-code |
0a73ef5c0317fbb50c19f12ec5b6b95491032dc6444108296b89db023104de9f | package si.gto76.comp
import scala.io.Source
import sys.exit
import scala.io.BufferedSource
object Assembler {
val MEMORY_LENGTH = 15
val MEMORY_WIDTH = 8
val TEST_FILE = "/fibbAsmb"
val TEST_URL = getClass.getResource(TEST_FILE)
val TEST = scala.io.Source.fromURL(TEST_URL, "UTF-8")
var binaryCode = ge... | Scala | src/main/scala/si/gto76/comp/Assembler.scala | gto76/comp | mit | 3,849 | 147 | codeparrot/github-code |
46e712b03ad25c00a65c2325d5f2786d644f90508602f8564351b05976f41549 | /*jshint browser: true, strict: true, undef: true */
/*global define: false */
( function( window ) {
'use strict';
// class helper functions from bonzo https://github.com/ded/bonzo
function classReg( className ) {
return new RegExp("(^|\\s+)" + className + "(\\s+|$)");
}
// classList support for class mana... | JavaScript | src/js/photostack.js | fauzie/fauzie.github.io | mit | 20,951 | 670 | codeparrot/github-code |
22fbebe7caf5df7e793512a44a1accdc2a2e2394f6eafd65afcf841f06c5a18f | package workspace.typeblocking;
import java.awt.Point;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.util.ArrayList;
import java.util.List;
import renderable.RenderableBlock;
import workspace.Page;
import workspac... | Java | Workspace/src/workspace/typeblocking/FocusTraversalManager.java | boubre/BayouBot | mit | 26,961 | 706 | codeparrot/github-code |
9294f9dc49acc5349f36c26836799b4d3c4327a5a6dfaa44f5b13a014bde41fa | "use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... | JavaScript | app/app.module.js | VinhNT23/Angular2Demo1 | mit | 2,170 | 37 | codeparrot/github-code |
13068a4ca6a19524181b31701a8d544e07bb2ab01bc6261c2ddd006d87f5f7fa | <link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../iron-pages/iron-pages.html">
<dom-module id="poly-tabs">
<style>
:host {
display: block;
min-width: 100%;
box-sizing: border-box;
}
paper-tabs{
... | HTML | bower_components/poly-elements/poly-tabs.html | polytipe/polytipe-projects | mit | 3,738 | 132 | codeparrot/github-code |
cf0f817a85c1ffaa39cf58196ea5e9f5ba12ac8115d2a6363fa1d0e25813e6d9 | #define printable(a) (((a) >= 32 && (a) <= 126) || (a) == '\t' || (a) == '\n')
#define MAX_PROCESSES 100
#define MAX_BURSTS 1000
#define MAX_TOKEN_LENGTH 30
#define MAX_LINE_LENGTH (1<<16)
#define NUMBER_OF_PROCESSORS 4
#define NUMBER_OF_LEVELS 3
#define COMMENT_CHAR '#'
#define COMMENT_LINE -1
typedef struct burst{... | C | helper.h | sarracini/CPU-Scheduling-Simulation | mit | 2,026 | 80 | codeparrot/github-code |
d8392ede2882b18c981b74b97271791fff70059a46396d47c11dc5008bddd3dd | from __future__ import print_function
from datetime import datetime
import inspect
import json
import logging
import os
try:
import pkg_resources
except ImportError: # pragma: no cover
pkg_resources = None
import random
import re
import subprocess
import shutil
import string
import sys
import time
import bot... | Python | slam/cli.py | miguelgrinberg/slam | mit | 28,330 | 738 | codeparrot/github-code |
c0759cbd0c9bd32547263287548326d5e34dcebe14c7284a6465c6fd34034dad | <?php
namespace Drivegal\GalleryFile;
abstract class MediaFile extends AbstractFile
{
protected $originalFilename;
protected $cameraMake;
protected $cameraModel;
public function __construct($id, $title, $thumbnailUrl, $bigThumbnailUrl)
{
$this->id = $id;
$this->title = $title;
... | PHP | src/Drivegal/GalleryFile/MediaFile.php | jasongrimes/drivegal | mit | 1,673 | 89 | codeparrot/github-code |
1cd6fadec5b0e94c4bdaf1a621a0da07c4d60114d39e9dc0b6959ed3d6007032 | package nachos.ag;
import java.util.Vector;
import nachos.machine.Lib;
import nachos.machine.Machine;
import nachos.threads.Communicator;
import nachos.threads.KThread;
import nachos.threads.RoundRobinScheduler;
import nachos.threads.ThreadedKernel;
/**
* <li>ThreadGrader2: <b>Communicator</b><br>
* <ol type=a>
* ... | Java | nachos/ag/ThreadGrader2.java | w1ndy/tripping-dangerzone | mit | 3,254 | 140 | codeparrot/github-code |
461491021f21abb4e563baafa1efa93579b3ae3b7f8f757490b8dc732e71dcd0 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Z3;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.Contracts;
namespace PreposeGestures
{
public class Validity
{
public static boo... | C# | Z3Experiments/Z3Experiments/Gestures/Analysis/Validity.cs | lsfcin/prepose | mit | 6,075 | 176 | codeparrot/github-code |
d49b3acb230fa9e516f152a562ed868c52162e3b173970b20a5b5aa2a2b823bd | /*
* The MIT License (MIT)
*
* Copyright (c) 2015 Rodrigo Quesada <rodrigoquesada.dev@gmail.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, including withou... | Java | xgen4j/src/main/java/com/rodrigodev/xgen4j/generators/ErrorClassesGenerator.java | RodrigoQuesadaDev/XGen4J | mit | 4,876 | 131 | codeparrot/github-code |
b451cb09f6e1a8699ba626e6b968170469e4a9246ceca5cf88720553bc6d2236 | #include <gbVk/Fence.hpp>
#include <gbVk/Exceptions.hpp>
#include <gbBase/Assert.hpp>
namespace GHULBUS_VULKAN_NAMESPACE
{
Fence::Fence(VkDevice logical_device, VkFence fence)
:m_fence(fence), m_device(logical_device)
{
}
Fence::~Fence()
{
if(m_fence) { vkDestroyFence(m_device, m_fence, nullptr); }
}
Fence... | C++ | src/Fence.cpp | ComicSansMS/GhulbusVulkan | mit | 1,304 | 59 | codeparrot/github-code |
2e3d07f52826d1e00914e230438f2ec251e725c0a926b6a42c59a6beea78e48d | import sys
import mechanize
import re
import json
import time
import urllib
import dogcatcher
import HTMLParser
import os
h = HTMLParser.HTMLParser()
cdir = os.path.dirname(os.path.abspath(__file__)) + "/"
tmpdir = cdir + "tmp/"
voter_state = "SC"
source = "State"
result = [("authory_name", "first_name", "last_nam... | Python | south_carolina.py | democracyworks/dog-catcher | mit | 12,842 | 331 | codeparrot/github-code |
9264148edbe3e518148951b0a95d7082424dfc4c316f7739ba6fba3ffb258c55 | import { div } from '../core/dom-api';
import { urls } from '../urls';
const commentsSort = (a, b) => {
if (a.time < b.time) return -1;
if (a.time > b.time) return 1;
return 0;
};
const commentElement = (data) => {
let replies = data && data.comments && data.comments.length && data.comments
.... | JavaScript | public/views/comments-view.js | cristianbote/hnpwa-vanilla | mit | 3,405 | 115 | codeparrot/github-code |
9a1a24e9d186aaa153d811138015404ce89deaa620b4e969f5d2f6f220854c47 | //package com.darktalker.cordova.webviewsetting;
package com.bluechatbox.android.displaysize;
import org.apache.cordova.CordovaPlugin;
import org.apache.cordova.CordovaWebView;
import org.apache.cordova.CordovaInterface;
import org.apache.cordova.CallbackContext;
import org.json.JSONArray;
import org.json.JSONExcepti... | Java | src/android/DisplaySize.java | tysjiang/displaysize | mit | 1,630 | 53 | codeparrot/github-code |
15f2821b4665e3bef62ca581b03e535c748b7e4dc9b509d8015c92e60678629e | //
// WKInterfaceObject+IRLSize.h
// IRLSize
//
// Created by Jeff Kelley on 6/29/2016.
// Copyright © 2019 Detroit Labs. All rights reserved.
//
#import <WatchKit/WatchKit.h>
#import "IRLSize.h"
NS_ASSUME_NONNULL_BEGIN
@interface WKInterfaceObject (IRLSize)
/**
Sets the physical width of the interface object... | C | Pod/Classes/watchOS/WKInterfaceObject+IRLSize.h | detroit-labs/IRLSize | mit | 1,338 | 48 | codeparrot/github-code |
e96f584c038ec0b82b9cf7c09ec9a64c6f8689febc573397ca09fe98b98e8155 | #ifndef OBJECT_MANAGER_H_
#define OBJECT_MANAGER_H_
#include <string>
#include <vector>
#include "game.h"
// TODO: Refactor/rename Object, ObjectManager, Background, Tile, Item, LevelObject, ...
class ObjectManager
{
public:
ObjectManager()
: backgrounds_(),
tiles_(),
items_()
{
}
bool load... | C | occ/game/src/object_manager.h | gurka/OpenCrystalCaves | mit | 690 | 33 | codeparrot/github-code |
9400f287007a231db4c4f4a9af0a34b1e09d54a9132fbf1ed5d400172447bad6 | /********************************************************************************
** Form generated from reading UI file 'mainwindow.ui'
**
** Created by: Qt User Interface Compiler version 5.0.2
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
****************************************... | C | build-GuiCV-Desktop-Debug/ui_mainwindow.h | atemysemicolon/GuiCV | mit | 2,476 | 78 | codeparrot/github-code |
ba6e468b1914b58e71be3bf8cf329957bae3d4e9b28e32e11876d7d0df47e56d | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int grand(int min,int max) {
int n;
n = rand();
n = n % max;
n = n + min;
return n;
}
int main(int argc,char** argv) {
int i,j,number_jobs,min_lim,max_lim,n;
if(argc != 4) {
printf("Command pattern: command \"NUMBER_OF_JOBS\" \"MIN_LIMIT\" \"MAX_LIMI... | C | job_generator.c | willilucas/JobScheduler | mit | 632 | 32 | codeparrot/github-code |
66c36d508d3394a98e7ee5f0f46e42a3b9c206dd147b6a7f29af380a85808c7f | #pragma once
//! Include the SDL2_Engine objects
#include "../__LibraryManagement.hpp"
#include "../Utilities/IGlobal.hpp"
#include "../Utilities/TypeID.hpp"
namespace SDL2_Engine {
//! Prototype the Scene Manager Initialiser object
namespace Initialisation { struct SceneManagerInitialiser; }
namespace Scenes {
... | C++ | SDL2_Engine/Projects/SDL2_Engine/src/Scenes/SceneManager.hpp | MitchCroft/SDL2_Engine | mit | 6,822 | 201 | codeparrot/github-code |
b9f152b143ee0c759e26d18e77b0bb98121fc3664c1a650c1f228f6d14b7b6aa | <?php
return array(
'number.decimals_separator' => ',',
'number.thousands_separator' => ' ',
'None' => 'Tidak satupun',
'Edit' => 'Edit',
'Remove' => 'Hapus',
'Yes' => 'Ya',
'No' => 'Tidak',
'cancel' => 'batal',
'or' => 'atau',
'Yellow' => 'Kuning',
'Blue' => 'Biru',
'Gr... | PHP | app/Locale/id_ID/translations.php | libin/kanboard | mit | 90,525 | 1,433 | codeparrot/github-code |
01436e9926d6731fd7b4acb44c68104ebae4e05e4be6deade6067049ff316287 | <?php defined('BASEPATH') OR exit('No direct script access allowed');
/**
* Class Cause
*/
class Cause extends Private_Controller
{
private $_redirect_url;
private $_uid;
/**
* Constructor
*/
function __construct()
{
parent::__construct();
// load the language file
... | PHP | application/controllers/Cause.php | tanimkg/batichalan | mit | 10,414 | 308 | codeparrot/github-code |
81eb0aee1e6f3241e0d0176fc3ec5960d93cfc534ef97129452179005700b9db | function init_map(field_id) {
//console.log(field_id);
}
/*acf.fields.address = acf.field.extend({
type: 'address',
$el: null,
$input: null,
status: '', // '', 'loading', 'ready'
geocoder: false,
map: false,
maps: {},
pending: $(),
actions: {
'ready': 'initialize'
},
initialize: funct... | JavaScript | js/acf-address.js | constlab/acf-address | mit | 12,288 | 384 | codeparrot/github-code |
1892c82d4278029a86aa6190d638426baf3711da4c2714fb7ddc00c9818b4b65 | <?php
/*
* @package YouTech Shortcodes
* @author YouTech Company http://smartaddons.com/
* @copyright Copyright (C) 2015 YouTech Company
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
*/
defined('_JEXEC') or die;
function ShowcaseYTShortcode($atts = null, $content = null) {
$atts = ytshortc... | PHP | web2/plugins/system/ytshortcodes/shortcodes/showcase/shortcode.php | yaelduckwen/lo_imaginario | mit | 8,661 | 152 | codeparrot/github-code |
8b61826101bb14bd1e0b88770fa46e91d72a00ffa489397ef04300baf5ee49bb | /*
* The MIT License
*
* Copyright 2016 Ahseya.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, ... | Java | src/main/java/com/github/horrorho/inflatabledonkey/cloud/clients/DeviceClient.java | horrorho/InflatableDonkey | mit | 3,000 | 74 | codeparrot/github-code |
9d0551c18e0008bf9d9d0d687be4ae621619e46accd05ba4f5b384703800c233 | package proxy
import (
"log"
"strconv"
"../util"
)
func (s *ProxyServer) handleGetWorkRPC(cs *Session, diff, id string) (reply []string, errorReply *ErrorReply) {
t := s.currentBlockTemplate()
if len(t.Header) == 0 {
return nil, &ErrorReply{Code: -1, Message: "Work not ready"}
}
targetHex := t.Target
if !... | GO | proxy/handlers.go | sammy007/ether-proxy | mit | 1,265 | 50 | codeparrot/github-code |
6c5fe06be8a87944d33a872463a88e6d9e0c8b0ece6d09c861085eb683c52679 | <?php
namespace Budget\Utils;
// Pimple dependencies
use \Pimple\Container;
// PSR-7 (HTTP Messaging) dependencies
use Psr\Http\Message\RequestInterface;
// PSR-3 (logger) dependencies
use \Psr\Log\LoggerAwareInterface;
use \Psr\Log\LoggerAwareTrait;
// From `charcoal-app`
// use \Charcoal\App\Template\AbstractTem... | PHP | src/Budget/Utils/CharcoalHelper.php | dominiclord/budget-app | mit | 2,226 | 85 | codeparrot/github-code |
bd0d3f12e87769c964e0ebeeb7958e15394e579a5003d582372f6c4d10983182 | <?php
namespace Coreplex\Meta\Eloquent;
use Coreplex\Meta\Contracts\Repository as Contract;
use Coreplex\Meta\Contracts\Variant;
use Coreplex\Meta\Exceptions\MetaGroupNotFoundException;
class Repository implements Contract
{
/**
* Find a meta group by it's identifier
*
* @param mixed $identifier... | PHP | src/Eloquent/Repository.php | coreplex/meta | mit | 1,335 | 47 | codeparrot/github-code |
c4d79db6f47d20dd69f2380b33c28c78c5424f2faa11bdbb4b8d8c44f5027863 | import {ActuatorRestService} from '../../../src/service/ActuatorRestService';
import {EndPointService} from '../../../src/service/EndPointService';
const request = require('supertest');
import {expect} from 'chai';
import {MetricsConstants, ProcessEndPoint, ProcessIndicator, ProcessResource} from '../../../src';
desc... | TypeScript | packages/metrics/test/unit/rest/ProcessResource.test.ts | midwayjs/pandora | mit | 1,324 | 55 | codeparrot/github-code |
bfa938bfcdb5c3061cce22f41ad5a3898e58c8f74bf666c78c2a727039448594 | <HTML><HEAD>
<TITLE>Review for Good Will Hunting (1997)</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0119217">Good Will Hunting (1997)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?Sti... | HTML | data science/machine_learning_for_the_web/chapter_4/movie/11958.html | xianjunzhengbackup/code | mit | 3,250 | 56 | codeparrot/github-code |
4cc5fdffa24d2cec8b73a2f186d82c2e8520a4de1e5686ff7afc8549b09c8d88 | const matcher = require('../lib/matcher');
describe('Matcher', () => {
describe('path', () => {
let mock;
let request;
beforeEach(() => {
mock = {
request: {
path: '/test'
}
};
request = {
originalUrl: '/test?blah=test',
path: '/test'
};
});
test('should return true if r... | JavaScript | test/matcher.spec.js | alexnaish/mockercinno | mit | 4,660 | 218 | codeparrot/github-code |
76eae5523cb88ed75d5650a0036143c2b08bf4f2839c1b59e4cf542accf7f17e | //
// NSString+YYAdd.h
// YYCategories <https://github.com/ibireme/YYCategories>
//
// Created by ibireme on 13/4/3.
// Copyright (c) 2015 ibireme.
//
// This source code is licensed under the MIT-style license found in the
// LICENSE file in the root directory of this source tree.
//
#import <UIKit/UIKit.h>
NS... | C | YYCategoriesStudy/Pods/YYCategories/YYCategories/Foundation/NSString+YYAdd.h | wangdxnum1/MyOpenSourceCodeStudyAndResearch | mit | 13,381 | 434 | codeparrot/github-code |
21795ae547f4c2efde513a1b72a62b6827689a48b0baec135ae672b8e140f5ad | <!DOCTYPE html>
<!--[if lt IE 9]><html class="no-js lt-ie9" lang="bg" dir="ltr"><![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="bg" dir="ltr">
<!--<![endif]-->
<head>
<meta charset="utf-8" />
<!-- Web Experience Toolkit (WET) / Boîte à outils de l'expérience Web (BOEW)
wet-boew.github.io/wet-boew/Lic... | HTML | tables/unmin/theme/content-nosearchlang-bg.html | TouficS/a11yppt | mit | 9,102 | 326 | codeparrot/github-code |
7656249d1c6838f9d7df873376e6a8a1f2e063d5e4472e05e4e8dc9d3cee040e | /*****************************************************************************************************************************************
Author: Michael Shoots
Email: michael.shoots@live.com
Project: Open Space 4x
License: MIT License
Notes:
***************************************************************************... | C# | Assets/Scripts/Screens/ScreenComponents/EmpireScrollList.cs | McShooterz/OpenSpace4x | mit | 2,176 | 74 | codeparrot/github-code |
20576784e4051fb0f38845b36be04613ecb657780516d30038fb69f888a427d8 | import React, { Component } from "react";
import formatter from "../formatter";
const labelStyle = { fg: "magenta", bold: true };
class RequestBreakdown extends Component {
scroll(amount) {
// nope
}
render() {
const { respTime, sqlTime, renderingTime } = this.props.data;
return (
<box top={... | JavaScript | src/components/RequestBreakdown.js | y-takey/rails-dashboard | mit | 1,341 | 31 | codeparrot/github-code |
a8ecc145426d38b86bda841155b0c43c2783d805a0850d1156a5c35504bfe0b7 | <?php
/**
* Recent Changes Block
*
* This block will print a list of recent changes
*
* phpGedView: Genealogy Viewer
* Copyright (C) 2002 to 2009 PGV Development Team. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Gener... | PHP | PhpGedView/blocks/recent_changes.php | fweber1/Annies-Ancestors | mit | 5,171 | 134 | codeparrot/github-code |
803390e5164c61bf89b4a5cf50e38716cd43dac280c00325aa4cca7f00dea83e | using System;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.DependencyInjection;
using PhoenixDiary.Utilities.AspNetCore.Middleware.EnableRequestRewind;
using PhoenixDiary.Utilities.AspNetCore.Middleware.EnableResponseReading;
namespace PhoenixDiary.Utilities.AspNe... | C# | src/PhoenixDiary.Utilities.AspNetCore/Middleware/RequestResponseLogger/RequestResponseLoggerExtensions.cs | vphoenix1972/PhoenixDiary | mit | 1,573 | 39 | codeparrot/github-code |
cbe3b0ddc0182635b915c1135cacca3739aec65d7550ec54f2f6c987f2711058 | package com.yet.spring.core.loggers;
import java.util.ArrayList;
import java.util.List;
import com.yet.spring.core.beans.Event;
public class CacheFileEventLogger extends FileEventLogger {
private int cacheSize;
private List<Event> cache;
public CacheFileEventLogger(String filename, int cacheSize) {
super(file... | Java | src/main/java/com/yet/spring/core/loggers/CacheFileEventLogger.java | yuriytkach/spring-basics-course-project | mit | 748 | 40 | codeparrot/github-code |
613bfed6d68947de0559f5902d1910aa1ef3ed3f1f65f87f8d906a3c5034caf4 | package main
import (
"flag"
"github.com/katherinealbany/rodentia/logger"
"os"
"os/exec"
)
var (
log = logger.New("main")
dir string
repo string
build string
stable string
release string
force string
push string
)
func init() {
flag.StringVar(&dir, "dir", ".", "build directory")
flag.St... | GO | main.go | katherinealbany/janus | mit | 1,230 | 57 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.