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 |
|---|---|---|---|---|---|---|---|---|
0574da011341a4d33859514facfa4c229772e20883b870390b1fd175d397d098 | package main
import (
"log"
"os"
"golang.org/x/net/context"
"google.golang.org/grpc"
// "google.golang.org/grpc/credentials/oauth"
"google.golang.org/grpc/metadata"
m "github.com/konjoot/grpc/proto/messages"
s "github.com/konjoot/grpc/proto/sessions"
)
const sessionAddr = "localhost:50051"
const messageAddr... | GO | cmd/messages/client/main.go | konjoot/grpc | mit | 1,558 | 69 | codeparrot/github-code |
1e9a393b308866969ca72ba395afdcd4280cdc681d2184f162e34644caff6736 | 'use strict';
var _ = require('lodash');
var utils = require('../utils');
var d3 = require('d3');
var sunCalc = require('suncalc');
var geocoder = require('geocoder');
var Path = require('svg-path-generator');
var margin = {
top: 20,
right: 0,
bottom: 20,
left: 0
};
var dayOfYear = function(d) {
... | JavaScript | src/js/viz/viz.js | mathisonian/sunrise | mit | 11,928 | 490 | codeparrot/github-code |
cc39280bfa7a28b6d5fbb30c11f585f52c772944b3f93a984e9ca9c482f248fd | ///////////////////////////////////////////////////////////////////////////////
// Copyright (c) Lewis Baker
// Licenced under MIT license. See LICENSE.txt for details.
///////////////////////////////////////////////////////////////////////////////
#ifndef CPPCORO_TESTS_COUNTED_HPP_INCLUDED
#define CPPCORO_TESTS_COUNTE... | C++ | test/counted.hpp | lewissbaker/cppcoro | mit | 1,141 | 43 | codeparrot/github-code |
a081b43a8b5fc627997fad2008282308d3ea6b3e4ff087995afd16c2ae4b81e7 | #! /usr/bin/python
# -*- coding: utf-8 -*-
"""
Created on Fri Jan 27 18:31:59 2017
@author: katsuya.ishiyama
"""
from numpy import random
# Definition of module level constants
SUCCESS_CODE = 1
FAILURE_CODE = 0
class Strategy():
def __init__(self, n):
_success_probability = _generate_success_proba... | Python | strategy/strategy.py | Katsuya-Ishiyama/simulation | mit | 2,013 | 87 | codeparrot/github-code |
f309e6a57276f273bae2c45782b3a99ba1dc1cbc9ce849a9057ae884ebd35661 | package de.v13dev.designpatterns.util;
import java.util.List;
/**
* Created by stebo on 22.03.17.
*/
public class TestHelper {
public static boolean isSortedAscending(List<Integer> list) {
if(list.size() < 2) return true;
for(int i = 1; i < list.size(); i++) {
if(list.get(i - 1) > ... | Java | src/test/java/de/v13dev/designpatterns/util/TestHelper.java | ste-bo/designpatterns | mit | 705 | 33 | codeparrot/github-code |
dbcec468aabe5ba51e053f0c24cfde32b7f32de0d1724ef23a930dd3968df9d8 | <?php
namespace DTR\CrawlerBundle\Services\Crawler;
use DTR\CrawlerBundle\Services\Algorithms\PatternIdentifierInterface;
use DTR\CrawlerBundle\Services\Inspectors\ComponentInspector;
use Symfony\Component\DomCrawler\Crawler;
class MenuCrawler implements CrawlerInterface
{
/**
* @var ComponentInspector
... | PHP | src/DTR/CrawlerBundle/Services/Crawler/MenuCrawler.php | nfqakademija/dydis-turi-reiksme | mit | 5,270 | 202 | codeparrot/github-code |
b5cf540622fc1e0ae2cf79fb617ebc64ab12ec686f5c66d2b779a98399071319 | package fr.aumgn.bukkitutils.geom;
import fr.aumgn.bukkitutils.geom.direction.VectorDirection;
import fr.aumgn.bukkitutils.geom.vector.VectorIterator;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.bukkit.Location;
import org.bukkit.World;
import org.bukkit.block.Block;
import org.bukkit.entity.Ent... | Java | src/main/java/fr/aumgn/bukkitutils/geom/Vector.java | aumgn/BukkitUtils | mit | 6,906 | 297 | codeparrot/github-code |
41115be77d29694ee6da281d13d35459551d9058d0d0d220a3cfa15e0f95e2e4 | /**
* Central storage with in-memory cache
*/
const fs = require('fs');
const path = require('path');
const mkdirp = require('mkdirp');
const app = process.type === 'renderer'
? require('electron').remote.app
: require('electron').app;
const _defaultDir = path.join(app.getPath('userData'), 'data');
const _stora... | JavaScript | src/utils/storage.js | scholtzm/punk | mit | 1,642 | 80 | codeparrot/github-code |
f7baae9a00539db200a6796275146376aadc34cfbe9d96532af9fa829c2fa1c8 | <?php
header("Access-Control-Allow-Origin:*");
?>
<html>
<head>
<title>TESTS AJAX</title>
<style type="text/css">
.bouton,.obj_prec{
margin-left:4px;
color:blue;
font-size:14px;
font-weight:bold;
cursor:pointer;
}
.bouton:hover{
color:#ccc;
}
#log{
border:1px solid red... | PHP | web/tests_ajax.php | jc-miralles/WebSymfony | mit | 4,802 | 146 | codeparrot/github-code |
6a46196e82b280bf4dc388737fef2aac1c5d3404d88e6772d99b84418ef5593c | // Copyright (c) 2011-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.
#include "coincontroldialog.h"
#include "ui_coincontroldialog.h"
#include "addresstablemodel.h"
#include "bitcoinunits.h"
#i... | C++ | src/qt/coincontroldialog.cpp | trippysalmon/bitcoin | mit | 29,915 | 740 | codeparrot/github-code |
a73d5def4aa8d0aa02f3ef5f30b38ee6d279ac7d9cf86f3141d48312cb2414f6 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Ryan Hall Media | Front-end Web Designer from Madison, WI</title>
<!--mobile meta-->
<meta name="viewport" content="width=device-width,initial-scale=1,width=device-width,user-scalable=no">
<meta name="HandheldFriendly" content="true" />
... | HTML | contact.html | RyanHallMedia/newsite | mit | 12,753 | 271 | codeparrot/github-code |
0b18e60b70070fe717a610c0cdad5300c8931bb5b29c5028e155fe6ebd26aabf | <!DOCTYPE html>
<html class="h-100" lang="en">
{% include _head.htm %}
<body>
{% include _cookie_banner.htm %}
{% include _header.htm %}
<div class="min-h-80 docs-container container-fluid">
<div class="row">
<div class="col-xl-3">
<details... | HTML | _layouts/wiki.html | barton2526/Gridcoin-Site | mit | 2,158 | 51 | codeparrot/github-code |
7c774dd85040eb33ee4e4cc6794afa2ecf76cb497576bd75d23fa7be148dde92 | <?php
/******************************/
/* Submission Form Management */
/******************************/
require_once("../includes/admin_init.php");
require_once("../includes/adminAccount.class.php");
require_once("../includes/subForm.class.php");
require_once("../includes/conference.class.php");
/* Intitalize and ou... | PHP | src/admin/conference_subform.php | jakkub/Confy | mit | 3,708 | 153 | codeparrot/github-code |
79600eba96428207f341b8b2bcd595257f70860f30f4b1a2c3f56b852d78e382 | 'use strict';
/* global $: true */
/* global animation: true */
/* global boidWeights: true */
//Slider for selecting initial number of boids
//---------------------------------------------
$('#numBoidsSlider').slider({
min: 0,
max: 400,
step: 10,
value: animation.numBoids
});
$('#numBoidsVal').text(... | JavaScript | ui-components/ui.js | johhat/boids | mit | 1,965 | 90 | codeparrot/github-code |
55ebc783b31def5923cd6a4320c8221be125e4c1c7105cd87ab7ef1a09035b4d | package test;
/**
scala> map
res6: java.util.HashMap[String,java.util.List[String]] = {AAA=[BBB, CCC, EEE], CCC=[DDD]}
scala> test.Test.printCompany(map)
-AAA
-BBB
-CCC
-DDD
-EEE
*/
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
public class Test {
public static void printCompany(... | Java | careercup/company-structure.java | sadikovi/algorithms | mit | 1,233 | 57 | codeparrot/github-code |
b2f7208e953fc916861132c7f75c3c4ff2d1feb755cbe62b31b7ea8600194bd2 |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>W28770_text</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div style="margin-left: auto; margin-right: auto; width: 800px; overflow: hidden;">
... | HTML | ocr_extracted/W28770_text/page2.html | datamade/elpc_bakken | mit | 8,921 | 145 | codeparrot/github-code |
946b9f0fdc513f254ffe0a1f6383035b25ca87528f54ef8da8cdaa6ae37bda8d | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Copyright 2015 by PyCLibrary Authors, see AUTHORS for more details.
#
# Distributed under the terms of the MIT/X11 license.
#
# The full license is in the file LICENCE, distributed with this software.
# -----------... | Python | pyclibrary/c_parser.py | mrh1997/pyclibrary | mit | 62,500 | 1,746 | codeparrot/github-code |
539a43f602ce887f67d08fc184072a578493c6bfcb0663925d79ed4a86fa1831 | package com.slicer.utils;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.audio.Sound;
import com.badlogic.gdx.files.FileHandle;
import com.badlogic.gdx.graphics.Texture;
public class AssetLoader {
public static Texture bgGame, bgGameOver, bgFinish, score, soundOn, soundOff;
public static Sound gameOver... | Java | core/src/com/slicer/utils/AssetLoader.java | burakkose/libgdx-game-slicer | mit | 1,612 | 49 | codeparrot/github-code |
97b4d35e88108d838dad4daeba9615094b4cab7fea0be09068188f1b54ae2b2e | //
// SMCampaignsManager.h
// SessionM
//
// Copyright © 2018 SessionM. All rights reserved.
//
#ifndef __SM_CAMPAIGNS_MANAGER__
#define __SM_CAMPAIGNS_MANAGER__
#import "SMFeedMessage.h"
#import "SMPromotion.h"
#import "SMError.h"
#import "SMBaseDelegate.h"
NS_ASSUME_NONNULL_BEGIN
/*!
@const SM_CAMPAIGNS_MANA... | C | Pods/SessionMFramework/SessionM_iOS_v2.5.2.1/SessionMFramework.framework/Headers/SMCampaignsManager.h | sessionm/ios-smp-example | mit | 7,989 | 154 | codeparrot/github-code |
6d508d02ef487dd821fee5297278a58dab1b03e80cf13e273323f650f2e25b6b | #ifndef SIDECAR_GUI_PPIWIDGET_PATHSETTING_H // -*- C++ -*-
#define SIDECAR_GUI_PPIWIDGET_PATHSETTING_H
#include "QtWidgets/QLabel"
#include "QtWidgets/QPushButton"
#include "GUI/StringSetting.h"
namespace SideCar {
namespace GUI {
class PathSetting : public StringSetting {
Q_OBJECT
public:
PathSetting(Prese... | C | GUI/PathSetting.h | bradhowes/sidecar | mit | 626 | 31 | codeparrot/github-code |
7e0dbb81743a4194dd3454b9ca4e7d89977d23a6cb2a7aa1905d9fbb6016fe5b | # -*- coding: utf-8 -*-
from datetime import timedelta, datetime
import asyncio
import random
from .api import every, once_at, JobSchedule, default_schedule_manager
__all__ = ['every_day', 'every_week', 'every_monday', 'every_tuesday', 'every_wednesday',
'every_thursday', 'every_friday', 'every_saturday', '... | Python | aschedule/ext.py | eightnoteight/aschedule | mit | 3,564 | 81 | codeparrot/github-code |
90a0ceb1f654a14bcc032d7d366dd9df082649affe1b6bd19537502c4d1478bc | <!DOCTYPE html>
<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7"><![endif]-->
<!--[if IE 7]><html class="no-js lt-ie9 lt-ie8 ie7"><![endif]-->
<!--[if IE 8]><html class="no-js lt-ie9 ie8"><![endif]-->
<!--[if IE 9]><html class="no-js ie9"><![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js"><!--<![endif]-->... | HTML | docs/components-data-tables-data-table-with-swipe-control.html | ONSdigital/pattern-library | mit | 74,520 | 1,817 | codeparrot/github-code |
70f401b63305a735cb02f5b5b919e55454cea25bdb944ef6ced2a3acb0b94650 | public class IsUnique {
public static boolean isUnique1(String input) {
int checker = 0;
int n = input.length();
if (n <= 1) return true;
for (int i = 0; i < n; i++) {
int c = input.charAt(i) - 'a';
if ((checker & (1 << c)) > 0) return false;
checker |= (1 << c);
}
return tru... | Java | ccup/ch1/IsUnique.java | fzheng/codejam | mit | 1,234 | 44 | codeparrot/github-code |
815ea3bce654f1447d6752da525c646e9cb3ea2ff0cb3470635b5121ccb36090 | #!/bin/bash
# About
# -----
#
# This script contains some bash wrappers for swift, the command-line
# interface to Rackspace's OpenStack Storage API.
#
# To get started, you'll need to install the python-swiftclient
#
# pip install python-swiftclient
#
# It's also available on github:
# https://github.com/openstac... | Shell | swift_wrapper.sh | bradmontgomery/swift_wrapper | mit | 6,134 | 243 | codeparrot/github-code |
e0eb0306410a052126d80f059b4ab76118b3f0b39c9768f192506d86a664c36b | require_dependency "venture/application_controller"
module Venture
class ProjectsController < ApplicationController
before_action :set_project, only: [:show, :edit, :update, :destroy]
# GET /projects
def index
@projects = Project.all
end
# GET /projects/1
def show
end
# GET /... | Ruby | app/controllers/venture/projects_controller.rb | LaunchU/QuadVenture | mit | 1,365 | 62 | codeparrot/github-code |
49d9fc67f74a1510dfff23f66cb6101f6abab48b57c45a8c39fa0aaaac84ab08 |
#ifndef PANELITEM_HPP
#define PANELITEM_HPP
#include "LevelMakerPanel.hpp"
#include "Button.hpp"
#include "InputString.hpp"
#include "Text.hpp"
class PanelItem : public LevelMakerPanel {
private:
Sprite* sprite_input_mass;
Button* button_input_mass;
lalge::R2Vector input_mass_position;
bool invalid_input_mass;
... | C++ | src/PanelItem.hpp | matheuscscp/nanotrip | mit | 1,943 | 70 | codeparrot/github-code |
5ec17e36dba64425b7f65fb1ad7ff1b90bbccd6c2301c6185132a4f4d061677d | namespace StarsReloaded.Client.ViewModel.Controls
{
using System;
using System.Collections.ObjectModel;
using System.Linq;
using System.Windows;
using System.Windows.Input;
using GalaSoft.MvvmLight.CommandWpf;
using GalaSoft.MvvmLight.Messaging;
using StarsReloaded.Client.Mediation.Mes... | C# | StarsReloaded.Client.ViewModel/Controls/GalaxyMapPanelViewModel.cs | Misza13/StarsReloaded | mit | 4,359 | 146 | codeparrot/github-code |
317a7b899664ef40de718f9ea8e27ddf404305bd2bae384863a192030919cf52 | package cmd
import (
"github.com/spf13/cobra"
"github.com/topfreegames/khan/loadtest"
"github.com/topfreegames/khan/log"
"github.com/uber-go/zap"
)
var sharedClansFile string
var nGoroutines int
var loadtestCmd = &cobra.Command{
Use: "loadtest",
Short: "runs a load test against a remote Khan API",
Long: `Ru... | GO | cmd/loadtest.go | topfreegames/khan | mit | 1,802 | 76 | codeparrot/github-code |
4c273f8e9c69abbf465d4741919dc4e38c08c97d7fc5513859d3f7302bea1a1e | <?php
if(!defined('ROOT')) exit('No direct script access allowed');
$dashboard=getConfig("DASHBOARD_PAGE");
?>
<div id="workspace" style='display:none;overflow:hidden;width: 100%;height: 100%;'>
<ul>
<?php if(strlen($dashboard)>0) { ?>
<li><a href='#dashboard'>Dashboard</a></li>
<?php } ?>
</ul>
<?php if(str... | PHP | index.php | LogiksPlugins/tabbedspace | mit | 4,102 | 143 | codeparrot/github-code |
61c0368142b623092aabcefc3a5cb1ddd462a22faccf16d947858f0eded78a09 | package cn.cloudself.dao;
import cn.cloudself.model.AppJiyoujiaHeadEntity;
import cn.cloudself.model.IntegerEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.Repository;
import java.util.List;
/**
* @author HerbLuo
* @ve... | Java | src/main/java/cn/cloudself/dao/IAppJiyoujiaHeadDao.java | HerbLuo/shop-api | mit | 799 | 31 | codeparrot/github-code |
53f611859e6113f632aecf662d2cce1c89c5d5d54420402ef71d18c4e151dc97 | #include "signverifymessagedialog.h"
#include "ui_signverifymessagedialog.h"
#include "addressbookpage.h"
#include "base58.h"
#include "guiutil.h"
#include "init.h"
#include "main.h"
#include "optionsmodel.h"
#include "walletmodel.h"
#include "wallet.h"
#include <string>
#include <vector>
#include <QClipboard>
Sign... | C++ | src/qt/signverifymessagedialog.cpp | thruelios/ab180 | mit | 8,779 | 275 | codeparrot/github-code |
4eaddcce2e4108c2319db56c2dea14a649c3853ef2fd6a5d8f8c8464383b72a4 | package view;
import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JPasswordField;
import javax.swing.JButton;
import javax.swing.JTextField;
import java.awt.BorderLayout;
import java.awt.Font;
public class PasswordManagerRegistration {
JPanel regpanel;
private JTextField txtUsername;
private... | Java | src/view/PasswordManagerRegistration.java | zoltanvi/password-manager | mit | 2,435 | 86 | codeparrot/github-code |
8ce97d68ff4d430e5cbb262f884e0ef526af540998614c51d9cb7f233a2c0685 | # -*- coding: utf-8 -*-
"""
This module provides the necessary methods for a Certification Authority.
For creating the self signed Certificate for the CA, use the following command:
$ openssl req -x509 -newkey rsa:2048 -keyout ca_priv.pem -out ca_cert.pem
@author: Vasco Santos
"""
import time
from M2Crypto impo... | Python | certModule/CertAuthority.py | vasco-santos/CertificationService | mit | 6,803 | 196 | codeparrot/github-code |
5c73b64e64983714fea307ce4816f299fdefc002c8ed76628742a6f1d2c37aae | export class Power{
public id:string;
public code:string;
public url:string;
public title:string;
public explain:string;
public menuId:string;
public type:string;
public isValid:boolean;
public isChecked:boolean=false;
public operation:Array<string>=new Array<string>();
pub... | TypeScript | src/app/admin/power/shared/power.model.ts | Lslgg/admin-manager | mit | 1,410 | 59 | codeparrot/github-code |
c1aa3a206a66900c151d9586ec4b5a888e9fbc4aceb1cd01cacc6c2a3df121e7 | /* */
"format cjs";
(function(e){if("function"==typeof bootstrap)bootstrap("csv2geojson",e);else if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeCsv2geojson=e}else"undefined"!=typeof window?window.csv2ge... | JavaScript | src/jspm_packages/npm/mapbox.js@2.1.5/docs/assets/csv2geojson.js | thomjoy/turftest | mit | 5,283 | 171 | codeparrot/github-code |
f1416357070ce1091edbd6dd482f1e9d79a38d018384ce8012ef5fc1fd5b1d93 | import { Buffer } from 'buffer';
const discordmailhooksLegacyBrailleRegex = /([\u2800-\u28FF]+)(?:.)([\u2800-\u28FF]+)/;
class DiscordMailHooks {
email: string
constructor(email: string) {
this.email = email;
}
matches() {
return discordmailhooksLegacyBrailleRegex.test(this.email);
}
toWebhook()... | TypeScript | src/mail/DiscordMailHooks.ts | moustacheminer/discordmail | mit | 1,161 | 39 | codeparrot/github-code |
6c1f885a498dfde0ae3283190399a613f4c38a2712e420bdd433a21c44e1c155 | <!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Pong</title>
<style>
canvas {
position: absolute;
margin: auto;
top: 0;
bottom: 0;
left: 0;
right: 0;
... | HTML | pong.html | redxtreme/practicePong | mit | 5,793 | 177 | codeparrot/github-code |
997645bf9ed6e79a61a339a2109aa730f50998adafd3954c5e1dfc614cc47bc1 | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2020 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <util/system.h>
#ifdef ENABLE_EXTERNAL_SIGNER
#if defined(WIN32) && !de... | C++ | src/util/system.cpp | instagibbs/bitcoin | mit | 46,739 | 1,410 | codeparrot/github-code |
672707daec378c4d78d6ce83f77b6b9381c7528e8e53b9514fbc7fe290074c07 | var module = angular.module('mtg', ['ngRoute', 'timer']);
DEBUG = true;
module.controller('main', function($scope, $filter) {
$scope.matches = [];
$scope.players = [{}, {}];
var orderBy = $filter('orderBy');
$scope.importFromStorage = function() {
console.log("Importing from local storage");
tourney = JSON.... | JavaScript | mtg.js | Tethik/mtg | mit | 5,687 | 220 | codeparrot/github-code |
aa6153a4f8ee472ee3041ef656abc7b982bb74b6c096fc282fc3d32698e47f3f | <?php
class Shadowbox extends Modules {
static function __install() {
Like::install();
}
static function __uninstall($confirm) {
if ($confirm)
Like::uninstall();
}
static function admin_sb_settings($admin) {
if (!Visitor::... | PHP | modules/shadowbox/shadowbox.php | parttimenerd/chyrp_de | mit | 2,824 | 76 | codeparrot/github-code |
ecfac17c02df99966ffe55595d3aefaa0ecf54e956203e5fe5a9b106dfb724e3 | module EasySerializer
class Cacher
attr_reader :serializer, :metadata
def initialize(serializer, metadata)
@serializer = serializer
@metadata = metadata
end
def execute
CacheOutput.new(_execute)
end
private
def _execute
strategy = if metadata.is_a?(EasySerializer... | Ruby | lib/easy_serializer/cacher.rb | arturictus/easy_serializer | mit | 738 | 32 | codeparrot/github-code |
e4a170fa0d5a14858a8ae8152c5f964b8c77951186b58a2c7895b97717a26291 | # Linear function - full rank
#
# Source: Problem 32 in
# J.J. More', B.S. Garbow and K.E. Hillstrom,
# "Testing Unconstrained Optimization Software",
# ACM Transactions on Mathematical Software, vol. 7(1), pp. 17-41, 1981.
#
# See also Buckley#80 (with different N and M)
#
# classification SUR2-AN-V-0
e... | Julia | src/arglina.jl | dpo/OptimizationProblems.jl | mit | 744 | 32 | codeparrot/github-code |
79825d0723f7d712431686f144be0652ac80450d9de6ca3b7957aa3d64dfc0ff | require "pact_broker/configuration"
require "pact_broker/logging"
require "pact_broker/config/setting"
require "pact_broker/config/space_delimited_string_list"
module PactBroker
module Config
class Load
include PactBroker::Logging
def self.call runtime_configuration
new(runtime_configuratio... | Ruby | lib/pact_broker/config/load.rb | pact-foundation/pact_broker | mit | 1,624 | 56 | codeparrot/github-code |
7ecb38f21d6791dba2733e7f283080ad5ae6c0294ccde7dd7e62a32d862003fe | <?php
declare(strict_types=1);
namespace Shlinkio\Shlink\Core\Action;
use Fig\Http\Message\StatusCodeInterface;
use GuzzleHttp\Psr7\Response;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\RequestHandlerInterface;
use Shlinkio\Shlink\Core\Crawling\CrawlingHel... | PHP | module/Core/src/Action/RobotsAction.php | shlinkio/shlink | mit | 1,270 | 48 | codeparrot/github-code |
89c55b796de652b27e4f170a6c2d78af6828b80789be0621e61508b5c39489ec | package com.anji_ahni.nn.activationfunction;
/**
* Square-root function.
*
* @author Oliver Coleman
*/
public class PowerActivationFunction implements ActivationFunction, ActivationFunctionNonIntegrating {
/**
* identifying string
*/
public final static String NAME = "power";
/**
* @see Object#toString(... | Java | 17-05-2017/neuralturingmachines-master/src/com/anji_ahni/nn/activationfunction/PowerActivationFunction.java | Fumaloko92/MSc-Thesis | mit | 1,453 | 70 | codeparrot/github-code |
7f79fa9cb788def47074f59ac54190c0cea201091748bb6b6ad14107f82f476d | <?php
namespace App\Jobs\Auth;
use App\Jobs\Job;
use App\Storage\EmailConfirmation\EmailConfirmationRepository;
use Illuminate\Support\Facades\Mail;
class SendEmailChangeConfirmation extends Job
{
protected $newEmail;
/**
* Create a new job instance.
*
* @return void
*/
public functi... | PHP | app/Jobs/Auth/SendEmailChangeConfirmation.php | adiachenko/catchy_api | mit | 828 | 39 | codeparrot/github-code |
410e9b8fcf81f845804dcaab477165a4ecc0a1570a1525741ced4c5e7a3f09b6 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>error-handlers: 17 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" r... | HTML | clean/Linux-x86_64-4.06.1-2.0.5/released/8.12.1/error-handlers/1.0.0.html | coq-bench/coq-bench.github.io | mit | 6,605 | 162 | codeparrot/github-code |
4e84bf429edbfab98fa77ea004e28ef627974de7e4d4fa4e6e496aa22f916e65 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>poltac: 1 m 4 s</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="styl... | HTML | clean/Linux-x86_64-4.09.0-2.0.5/released/8.8.1/poltac/0.8.8.html | coq-bench/coq-bench.github.io | mit | 18,413 | 270 | codeparrot/github-code |
6bdef1f8b3beed4a06d37bf3bc8aafcf530729e1f3ff50860e483e963f861dfd | using System; //default
using System.Collections.Generic; //dictionary,list
using System.Linq; //because jon skeet
using NetFwTypeLib; //firewall library
using System.Net.Sockets; //protocol enum
using System.Net; //IPAddress class
namespace msf... | C# | msfw/MSFirewallRule.cs | caesarshift/msfw | mit | 34,508 | 792 | codeparrot/github-code |
7cba5e79180a407f6747f99d4d4d37e6e3224c4cc40d812552c5f82cee63673d | const
pObj=pico.export('pico/obj'),
fb=require('api/fbJSON'),
rdTrip=require('redis/trip')
return {
setup(context,cb){
cb()
},
addPickup(user,action,evt,name,next){
const text=pObj.dotchain(evt,['message','text'])
if(!text) return next(null,`fb/ask${action[action.length-1]}`)
const a=action.pop()
switch(... | JavaScript | api/addTrip.js | ldarren/mysg | mit | 1,913 | 81 | codeparrot/github-code |
7499af7317d11fa2b57f72d54734774a3d1028247d81e15a43d19ae3214ae2c5 | /*
* Property of RECAPT http://recapt.com.ec/
* Chief Developer Ing. Eduardo Alfonso Sanchez eddie.alfonso@gmail.com
*/
package com.recapt.domain;
import java.time.LocalDateTime;
/**
*
* @author Eduardo
*/
public class IssueHistory {
private String name;
private String description;
private String r... | Java | src/main/java/com/recapt/domain/IssueHistory.java | edecisions/recapt | mit | 1,356 | 74 | codeparrot/github-code |
2b2d1038e8c122cf6e8e257f951fa1edf832f35aa469339360605fccd595aa6a | Clazz.declarePackage ("J.renderspecial");
Clazz.load (["J.render.ShapeRenderer"], "J.renderspecial.PolyhedraRenderer", ["JU.P3i", "JM.Atom", "JU.C"], function () {
c$ = Clazz.decorateAsClass (function () {
this.drawEdges = 0;
this.isAll = false;
this.frontOnly = false;
this.screens = null;
this.vibs = false;
Cl... | JavaScript | jsmol/j2s/J/renderspecial/PolyhedraRenderer.js | rishiloyola/jsmol-models | mit | 3,499 | 77 | codeparrot/github-code |
d7c63aef84b38873e6b2a597d5ce0475bcacf82daf2ec6a5aad39c762d9e8616 | var taxi = require('..');
var chromedriver = require('chromedriver');
var fs = require('fs');
var user = process.env.SAUCE_USERNAME;
var accessKey = process.env.SAUCE_ACCESS_KEY;
var sauceLabsUrl = "http://" + user + ":" + accessKey + "@ondemand.saucelabs.com/wd/hub";
var tests = [
{ url:'http://localhost:9515/', c... | JavaScript | examples/stitching.js | preceptorjs/taxi | mit | 4,049 | 99 | codeparrot/github-code |
ec1d5f12a94c6cb354550145d5fe18582d27f57dd9fd669c225b1b6df187b570 | var mtd = require('mt-downloader');
var fs = require('fs');
var util = require('util');
var EventEmitter = require('events').EventEmitter;
var Download = function() {
EventEmitter.call(this);
this._reset();
this.url = '';
this.filePath = '';
this.options = {};
this.meta = {};
this._retry... | JavaScript | lib/Download.js | leeroybrun/node-mt-files-downloader | mit | 8,675 | 349 | codeparrot/github-code |
141e4d7fbfa512cf9e209e9eea5f01f8eb923e7ed6f4c8117452ee1b5369925e | import * as utils from '../../utils/utils'
import * as math from '../../math/math'
import QR from '../../math/qr'
import LMOptimizer from '../../math/lm'
import {ConstantWrapper, EqualsTo} from './constraints'
import {dog_leg} from '../../math/optim'
/** @constructor */
function Param(id, value, readOnly) {
this.res... | JavaScript | public/webcad/app/sketcher/constr/solver.js | Autodrop3d/autodrop3dServer | mit | 7,075 | 312 | codeparrot/github-code |
27850b1bcd945664638fd646041d9ef9d9287ee22cb85e0cde4fc44cb821673f | (function() {
function Base(props) {
this.id = Ambient.getID();
$.extend(this, props || {});
}
Base.extend = function(methods) {
if (typeof methods === "function") {
methods = methods();
}
methods = (methods || {});
... | JavaScript | src/Controller.js | lewie9021/ambient-js | mit | 870 | 36 | codeparrot/github-code |
4da1965435db36439d89516e475ddfbadbd7824641fcc46cc70910964b9add1d | from messenger import Skype
import keyring
import utils
token = keyring.get_password('messagesReceiver', 'skypeToken')
registrationToken = keyring.get_password('messagesReceiver', 'skypeRegistrationToken')
username = keyring.get_password('messagesReceiver', 'skypeUsername')
password = keyring.get_password('messagesRec... | Python | test.py | khapota/messages-terminal | mit | 1,064 | 34 | codeparrot/github-code |
1cf7743efd4cecca79186a6fb2255e870d17906bb809601676446aace4e362e4 | <?php
/**
* Used to implement Action Controllers for use with the Front Controller.
*
* @link Benri_Controller_Abstract.html Benri_Controller_Abstract
*/
abstract class Benri_Controller_Action extends Benri_Controller_Action_Abstract
{
/**
* Layout used by this controller.
* @var string
*/
p... | PHP | library/Benri/Controller/Action.php | douggr/benri | mit | 1,579 | 61 | codeparrot/github-code |
cf3160716ecf54bb73be051eef2199c8d01f95f174ec7aa814435b22a751d6cf | var READONLY = false
// How much labor you generate per minute
var LABORGENRATE = 2;
if (READONLY){
// This is just for setting up a display-only example of this app
Characters = new Meteor.Collection(null)
Timers = new Meteor.Collection(null)
} else {
Characters = new Meteor.Collection("characters");
Timer... | JavaScript | LaborTracker.js | OverloadUT/LaborTracker | mit | 18,428 | 544 | codeparrot/github-code |
42e147a7df0d3dfa6e0f405fcb271bf1df3686e2d1a75c1d1337bd1702ed3c4b | #!/usr/bin/env python
import os
import sys # provides interaction with the Python interpreter
from functools import partial
from PyQt4 import QtGui # provides the graphic elements
from PyQt4.QtCore import Qt # provides Qt identifiers
from PyQt4.QtGui import QPushButton
t... | Python | logsgui3.py | AlManja/logs.py | mit | 9,203 | 263 | codeparrot/github-code |
090dc7223dad06431bcaa46bb9b1380595dbf76b2fde1ecde1d671263979fa33 | import express from 'express'
import adminOnly from 'desktop/lib/admin_only'
import { buildServerApp } from 'reaction/Router'
import { routes } from './routes'
import { renderLayout } from '@artsy/stitch'
import { Meta } from './components/Meta'
const app = (module.exports = express())
app.get('/isomorphic-relay-exam... | JavaScript | src/desktop/apps/isomorphic-relay-example/server.js | kanaabe/force | mit | 1,049 | 45 | codeparrot/github-code |
b0ff0614906326034ac2d6c56382a8c7b11cb592a80b83570336c77c20ec948e | //
// Copyright (c) 2014-2015, THUNDERBEAST GAMES LLC All rights reserved
// LICENSE: Atomic Game Engine Editor and Tools EULA
// Please see LICENSE_ATOMIC_EDITOR_AND_TOOLS.md in repository root for
// license information: https://github.com/AtomicGameEngine/AtomicGameEngine
//
#pragma once
#include <Atomic/Core/Obje... | C | Source/ToolCore/JSBind/JSBEnum.h | rsredsq/AtomicGameEngine | mit | 1,111 | 59 | codeparrot/github-code |
05aae402688c328319603756dcb0d33f8187c6a0b241aabdf833695b4dbeb5dc | using System;
using System.Collections.Generic;
using System.Linq;
using JetBrains.Annotations;
namespace advent.Solutions
{
[UsedImplicitly]
internal class Day1 : Day
{
public Day1()
{
DayNumber = 1;
LoadInput();
}
#region IDay Memb... | C# | advent2019/advent/Solutions/Day1.cs | rnelson/adventofcode | mit | 1,431 | 56 | codeparrot/github-code |
1a695f14c996c005cda9c2a754ee1bc45766a298611ada66f9c2893f47315612 | <?php
require_once __DIR__ . '/fpBaseErrorNotifierDecorator.php';
/**
*
* @package fpErrorNotifier
* @subpackage decorator
*
* @author Maksim Kotlyar <mkotlar@ukr.net>
*/
class fpErrorNotifierDecoratorHtml extends fpBaseErrorNotifierDecorator
{
/**
*
* @return string
*/
public function forma... | PHP | lib/decorator/fpErrorNotifierDecoratorHtml.php | CollectorsQuest/cqErrorNotifierPlugin | mit | 2,031 | 99 | codeparrot/github-code |
e1faaf1a8d4d8ed045b43871668b310ee5d4e8411ead8fec4117b50ccf4da97f | package nineChap5_DP2;
/**
* http://www.lintcode.com/en/problem/regular-expression-matching/
* Created at 9:59 AM on 11/29/15.
*/
public class RegularExpressionMatching {
public static void main(String[] args) {
String s = "aaaab";
String p = "a*b";
boolean ans = new RegularExpressionMatching().isMatc... | Java | src/nineChap5_DP2/RegularExpressionMatching.java | vlsi1217/leetlint | mit | 2,348 | 100 | codeparrot/github-code |
c234bb9d49735bba0188ef36ecb3a2f43f12ac425ebc8503bb70b5ba81b20834 | <!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ROUTES</title>
<link rel="stylesheet" href="themes/koko2.min.css" />
<link rel="stylesheet" href="themes/jquery.mobile.icons... | HTML | backup/route.html | ans-4175/tripapp | mit | 4,335 | 103 | codeparrot/github-code |
af1d6bb8b75a09c5e1570ff38a466eb5fd5ec8f9f7b5e66ce296c6266afa34b1 | <?php
namespace DF\PHPCoverFish\Common;
/**
* Class CoverFishPHPUnitTest, wrapper for all phpUnit testClass files
*
* @package DF\PHPCoverFish
* @author Patrick Paechnatz <patrick.paechnatz@gmail.com>
* @copyright 2015 Patrick Paechnatz <patrick.paechnatz@gmail.com>
* @license http://www.opensource.org/l... | PHP | src/PHPCoverFish/Common/CoverFishPHPUnitTest.php | dunkelfrosch/phpcoverfish | mit | 5,429 | 316 | codeparrot/github-code |
469e98c02874fd9f566e29ebd235e6b9df7b7f654e77b70a782e5ebfb17fa0ee | var _ = require("underscore");
var os = require("os");
var path = require("path");
var assert = require("assert");
// All of these functions are attached to files.js for the tool;
// they live here because we need them in boot.js as well to avoid duplicating
// a lot of the code.
//
// Note that this file does NOT con... | JavaScript | tools/static-assets/server/mini-files.js | mjmasn/meteor | mit | 3,947 | 126 | codeparrot/github-code |
5086d7218dc505d293c175c18dfa81d073e4d92e2abc8e3fd6c5d1713093d1fe | <?php
/**
* Enable an Item
*/
class fleetManagerOfficeItemEnableProcessor extends modObjectProcessor {
public $objectType = 'fleetManagerItem';
public $classKey = 'fleetManagerItem';
public $languageTopics = array('fleetmanager');
//public $permission = 'save';
/**
* @return array|string
*/
public functi... | PHP | core/components/fleetmanager/processors/office/item/enable.class.php | ananimals/fleetmanager | mit | 957 | 42 | codeparrot/github-code |
f22f6e006d20a08c8e2e2cf6aae23be7383933b9f97e0005061d715e286a03a9 | <?php
/*******************************************************************************
*
* filename : PersonView.php
* last change : 2003-04-14
* description : Displays all the information about a single person
*
* http://www.infocentral.org/
* Copyright 2001-2003 Phillip Hullquist, Deane Barker, Chris G... | PHP | churchinfo/PersonView.php | focuz07/CRM | mit | 35,722 | 859 | codeparrot/github-code |
a081c3f7c3d94d5fb27269877684173e5113a2703226c14d89c05b33e7d20215 | 'use strict';
// Tasks controller
angular.module('tasks').controller('TasksController', ['$scope', '$stateParams', '$location', 'Authentication', 'Tasks',
function($scope, $stateParams, $location, Authentication, Tasks) {
$scope.authentication = Authentication;
$scope.bases = [
{name: 'Squat', lift: 'squat'}, ... | JavaScript | public/modules/tasks/controllers/tasks.client.controller.js | kyleaziz/lptrack | mit | 1,862 | 79 | codeparrot/github-code |
ab01f02887c16f42528bcea48a30aa95ada8eac8122dff45efc898e22c19c003 |
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<meta charset="utf-8">
<base href="https://wordbit.com">
<title> Technology </title>
<link rel="canonical" href="https://wordbit.com/categories/technology/">
<link rel="stylesheet" href="/css/poole.css">
<li... | HTML | public/categories/technology/index.html | wordbit/wordbit | mit | 24,938 | 544 | codeparrot/github-code |
408245b2e8adad7e87e8da835cc251e3cbb45012f295ef07df931132f1ceb40d |
<!DOCTYPE html>
<html xmlns:msxsl="urn:schemas-microsoft-com:xslt">
<head>
<meta content="en-us" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-16" http-equiv="Content-Type" />
<title _locid="PortabilityAnalysis0">.NET Portability Report</title>
<style>
... | HTML | Reports/ma/manatee.trello.restsharp.1.2.0.2/Manatee.Trello.RestSharp-net35.html | kuhlenh/port-to-core | mit | 9,663 | 240 | codeparrot/github-code |
b94c6c9dafe18d86545e0f0c664047d12f8fa5b111b6c1908f19ab4fe1ab5d34 | <?php
/* MyBlogBundle:Page1:show.html.twig */
class __TwigTemplate_08fcdadc891be1ff86c1a8975ebb45fd2499c330db77b218c31a75106267fb4f extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
// line 1
try {
$this->parent = $this-... | PHP | app/cache/dev/twig/08/fc/dadc891be1ff86c1a8975ebb45fd2499c330db77b218c31a75106267fb4f.php | ceccy13/myblog-symfony2 | mit | 2,492 | 87 | codeparrot/github-code |
5a56bd3259d6c0e053d8bbe0b1f8abb770facef83c3d0308401deca4b9abb9f5 | <?php
namespace BramR\Stack;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\HttpKernelInterface;
class Heartbeat implements HttpKernelInterface
{
const MESSAGE = 'OK';
protected $app;
protected $handler;
protected $route;... | PHP | src/Heartbeat.php | bramr/stack-heartbeat | mit | 1,394 | 56 | codeparrot/github-code |
c8e7b9cf14b5930bb0120601ab813ca5aab9937da28a2d191a1427fab2620370 | package com.flowpowered.math.imaginary;
import java.io.Serializable;
import com.flowpowered.math.GenericMath;
import com.flowpowered.math.HashFunctions;
import com.flowpowered.math.TrigMath;
import com.flowpowered.math.matrix.Matrix3f;
import com.flowpowered.math.vector.Vector3f;
/**
* Represent a quaternion of the... | Java | src/com/flowpowered/math/imaginary/Quaternionf.java | DragonSphereZ/DragonSphereZ | mit | 29,581 | 791 | codeparrot/github-code |
0c4f120b5268fad370178d28b1fb83a5625af65ec41955590a33db8229fd415d | //
// kit.cpp
// Neo4j-cpp-driver
//
// Created by skyblue on 2017/7/9.
// Copyright © 2017年 skyblue. All rights reserved.
//
#include "kit.hpp"
#include <sstream>
namespace neo4jDriver
{
//Neo4j工具包
std::string Kit::getStatusCode(std::string httpHeader)
{
size_t begin = httpHeader.find_f... | C++ | kit.cpp | skybluezx/Neo4j-cpp-driver | mit | 4,679 | 151 | codeparrot/github-code |
503b2ffefdaa4f61b8ba94e99753012b5c4523ffc9527a515e20fc536feeb1d6 | package hello;
import static org.hamcrest.Matchers.equalTo;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframewor... | Java | java/SpringBoot/BuildingAnApplicationWithSpringBoot/src/test/java/hello/HelloControllerTest.java | mikoto2000/MiscellaneousStudy | mit | 1,188 | 35 | codeparrot/github-code |
8bebddfcc1cd94e4fb0fc21e827efd696ed1f9e23bdfe9377de0c7e802186e96 | // Based on original code by Tim Kientzle, March 2009.
#include <util.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <boost/filesystem.hpp>
/* Parse an octal number, ignoring leading and trailing nonsense. */
static int
parseoct(const char *p, size_t n)
{
int i = 0;
while ((*p < '0'... | C++ | src/untar.cpp | navcoindev/navcoin-core | mit | 4,450 | 172 | codeparrot/github-code |
957cc49ad0538b2c93b5758df2e9d85df836d0c1c6a173cda0f5bdee4c3c9ba7 | """ TODO: Add docstring """
import re
import pexpect
class MediaObject(object):
"""Represents an encodable object"""
def __init__(self, input_filename, output_filename):
self.input_filename = input_filename
self.output_filename = output_filename
self.media_duration = self.get_media_d... | Python | traversme/encoder/media_object.py | thethomaseffect/travers-media-tools | mit | 2,000 | 47 | codeparrot/github-code |
3bb0f2a5cefad3821171b9aeb48c8d04dcdddbdad3ca31b88146a6940aab84dc | #pragma once
#include "p2List.h"
#include "Globals.h"
#include "Module.h"
#include "Dummy.h"
#include "ModuleWindow.h"
#include "ModuleRender.h"
#include "ModuleTextures.h"
#include "ModuleInput.h"
#include "ModuleSceneIntro.h"
class Application
{
public:
ModuleRender* renderer;
ModuleWindow* window;
ModuleTexture... | C | Application.h | d0n3val/Vertex-Box2D | mit | 659 | 41 | codeparrot/github-code |
3a84eb1b66f893bbbde08d7e8ef51b26388b289bafaf17112b0aad4327ead843 | import random
import musictheory
import filezart
import math
from pydub import AudioSegment
from pydub.playback import play
class Part:
def __init__(self, typ=None, intensity=0, size=0, gen=0, cho=0):
self._type = typ #"n1", "n2", "bg", "ch", "ge"
if intensity<0 or gen<0 or cho<0 or size<0 or inte... | Python | source/markovzart2.py | joaoperfig/mikezart | mit | 8,058 | 267 | codeparrot/github-code |
78a3c796f552761c783288085c351ff70a82503d00cf62d87934ab132de28659 | /*
setInterval(function() {
console.log(document.activeElement);
}, 1000);
*/
/*
* Notes regarding app state/modes, activeElements, focusing etc.
* ==============================================================
*
* 1) There is always exactly one item selected. All executed commands
* operate on this item.
... | JavaScript | src/app.js | sysuzhang/my-mind | mit | 3,797 | 151 | codeparrot/github-code |
8f42c13a87c0eeb47033aee9b341a2987595ef8aa4072a040cb7738fa1382013 | <?php defined('BASEPATH') OR exit('No direct script access allowed');
class MenuSettingController extends MY_Controller {
public function __construct(){
parent ::__construct();
$this->is_logged_in();
$this->load->model('menuDao');
}
publ... | PHP | application/controllers/MenuSettingController.php | didikhari/sekode | mit | 2,837 | 77 | codeparrot/github-code |
4eddaa5384f26ccb41a4ce5c631a13d415d52779a2670ed6d5c2c6588b841099 | <!DOCTYPE html>
<html lang="en">
<head>
<title>three.js webgl - materials - displacement map</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<style>
body {
background:#000;
color:#fff;
padding:0;
margi... | HTML | sierpinski-dodecahedron.html | jimparsley/ThreeExperiments | mit | 6,504 | 209 | codeparrot/github-code |
db62a480e9ba5baaf0ec34a0dd52382eced18f1fe34c8a4f67a05807d4bb941b | <!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,user-scalable=no" />
<title>无标题文档</title>
<script>
var html = document.getElementsByTagName("html")[0];
setRem();
window.addEventListener("resize",setRem,false);
window.addEventListener("orientationchange",setRem,fals... | HTML | 20160423/2_下拉加载.html | skybjf/MyTestProject | mit | 2,981 | 158 | codeparrot/github-code |
8bfd44b49173d5d6f7f3823ddaa22b37cd1f15bcddbea0668f65bfcceff32581 | package components;
import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
import org.apache.http.client.HttpClient;
import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.... | Java | src/components/HttpClientExample.java | Zippocat/JavaFX-MyVoip | mit | 2,204 | 55 | codeparrot/github-code |
332031499cff1daddcbaa07e7f1e34f444ad6715b11200949aecffdce487bebb | package demo.java.v2c03network.InetAddressTest;
import java.net.*;
/**
* This program demonstrates the InetAddress class. Supply a host name as command line argument, or
* run without command line arguments to see the address of the local host.
* @version 1.01 2001-06-26
* @author Cay Horstmann
*/
public... | Java | core/src/main/java/demo/java/v2c03network/InetAddressTest/InetAddressTest.java | myid999/javademo | mit | 918 | 35 | codeparrot/github-code |
7c092bd7594b8f26480ed245d7a896a0e395c94c89726d171cabd839666fb3de | #include <stdlib.h>
#include <limits.h>
#include <unistd.h>
#include <core/os.h>
#include <core/object.h>
#include <core/class.h>
#ifndef ENABLE
#define ENABLE NV_DEVICE_DISABLE_MMIO
#endif
#ifndef DEBUG0
#define DEBUG0 0ULL
#endif
int
main(int argc, char **argv)
{
struct nouveau_object *client;
struct nouveau_obj... | C | nouveau/bin/nv_rdfunc.h | mupuf/pdaemon_trace | mit | 2,625 | 144 | codeparrot/github-code |
d7d8a6acb929b95f49aa4e2b6aae3c99948384b6c12bfd3dcb9208944715c800 | package com.example.kb.clearsky.model.api_specific;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class WeatherDescription {
@SerializedName("id")
@Expose
private Integer weatherID;
@SerializedName("main")
@Expose
private String mainCate... | Java | app/src/main/java/com/example/kb/clearsky/model/api_specific/WeatherDescription.java | kolboch/ClearSkyApp | mit | 1,145 | 57 | codeparrot/github-code |
7e1feaf7d87472a12b744828cfcc44f6a0e95a69f506a4275338063b3dfc9a6a | // Generated on 2014-07-03 using
// generator-webapp 0.5.0-rc.1
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// If you want to recursively match all subfolders, use:
// 'test/spec/**/*.js'
module.exports = function (grunt) {
// Time how long ta... | JavaScript | Gruntfile.js | openchattanooga/chattanooga-bike-parking-locator | mit | 10,821 | 443 | codeparrot/github-code |
a7f7b832acd9166a3b2d7648ff1255e7a95f3e9fdebdd67f25eaefaff7c559d4 | package no.westerdals.eksamen.app2;
import android.content.DialogInterface;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.... | Java | Mobil utvikling eksamen/hotelapplikasjon/src/main/java/no/westerdals/eksamen/app2/LoginActivity.java | Mariusrik/schoolprojects | mit | 8,745 | 242 | codeparrot/github-code |
a782c55b4e3d2b8601e263e68e493cfc54f23b52bc20fefcdb4d45ecf570e155 | import should from 'should';
import Schema from '../../src/schema';
const SIMPEL_OBJECT = {
type: 'object',
properties: {
name: { type: 'string' }
}
};
describe('Schema', () => {
describe('#getType', () => {
it('should return string type for child', () => {
const schema = new Schema(SIMPEL_OBJEC... | JavaScript | test/schema/schema.js | surikaterna/formr | mit | 1,034 | 38 | codeparrot/github-code |
4bede3746ef8d2394eeca770fbf08b9699aa094e7a33fadf06b37c8dbeb998aa | <?php
namespace siigap\FichasBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
use siigap\FichasBundle\Form\ConsultaPersonasType;
use siigap\FichasBundle\Form\ConsultaViviendasType;
use siigap\FichasBundle\Form\ConsultaFichasType;
class Consult... | PHP | src/siigap/FichasBundle/Controller/ConsultasController.php | isabelmonterob/iframe | mit | 7,249 | 169 | codeparrot/github-code |
743be483a10124de2acfae0cc1b5b338c5f7821423976ab74d65a0a587d88099 | /******************************************************************************************
* Data Structures in C++
* ISBN: 7-302-33064-6 & 7-302-33065-3 & 7-302-29652-2 & 7-302-26883-3
* Junhui DENG, deng@tsinghua.edu.cn
* Computer Science & Technology, Tsinghua University
* Copyright (c) 2006-2013. All rig... | Java | 清华大学邓俊辉老师数据结构资料/dsa/src/_java/dsa/splaytree.java | 0704681032/Java8InAction | mit | 8,076 | 195 | codeparrot/github-code |
b3362925e332cc8935429874648f512241f1d21b6eb032951b28cb76f84970c4 | module QA
module Page
module Project
module Operations
module Kubernetes
class AddExisting < Page::Base
view 'app/views/projects/clusters/user/_form.html.haml' do
element :cluster_name, 'text_field :name'
element :api_url, 'text_field :api_url'
... | Ruby | qa/qa/page/project/operations/kubernetes/add_existing.rb | jirutka/gitlabhq | mit | 1,227 | 40 | codeparrot/github-code |
ba9fc0c690c5afeab344ed9a9269c09f5e3eecfbe0dfc4ac0b1f6b8b26d8ac0c | import { key, PLAY, PAUSE, MUTE, UNMUTE, UPDATE_VOLUME, UPDATE_TIME, SET_SONG, SET_TIME, updateTime } from './actions'
import { store } from '../store'
let audio = new Audio()
audio.addEventListener('timeupdate', event => store.dispatch(updateTime(event)))
const initialState = {
isPlaying: false,
muted: false,
... | JavaScript | app/Resources/js/player/reducer.js | shempignon/podcast-api | mit | 1,630 | 76 | codeparrot/github-code |
24d1c64acd90e70fabcc283651e253f6262f8062feeded4de88dd0f3fa86db32 | package simpl.typing;
public final class ListType extends Type {
public Type t;
public ListType(Type t) {
this.t = t;
}
@Override
public boolean isEqualityType() {
// TODO Done
return t.isEqualityType();
}
@Override
public Substitution unify(Type t) throws Ty... | Java | src/simpl/typing/ListType.java | MihawkHu/SimPl | mit | 1,105 | 55 | codeparrot/github-code |
ac6f6ce70f874392817d0356a24e8c9f9b0aa8d58495e81286fb35430211a9b1 | package com.felipecsl.gifimageview.app;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AbsListView;
import android.widget.BaseAdapter;
import android.widget.GridView;
import android.widget.ImageView;
import com.felipecsl.gifimageview.library.GifImageView... | Java | app/src/main/java/com/felipecsl/gifimageview/app/GifGridAdapter.java | felipecsl/GifImageView | mit | 1,665 | 63 | codeparrot/github-code |
2c1282006f365503df0b25d507f7578d3be2086a731562b23d1ded0b88245bd0 | /* eslint-env mocha */
import expect from 'expect';
import FunctionChecker from '../src/FunctionChecker.js';
import OptionsManager from '../src/OptionsManager.js';
import Structure from '../src/Structure.js';
describe('optionsManager', () => {
let manager;
beforeEach(() => {
manager = new OptionsManager();
... | JavaScript | test/OptionsManager.js | Jerskouille/options-manager | mit | 800 | 34 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.