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 |
|---|---|---|---|---|---|---|---|---|
4bbfc7c2ce6e03ed3a5e61bddee2716339dddcc367182672de9431993e812a52 | package ru.otus.kushchenko.ms.persistence.connection;
import java.io.IOException;
import java.util.Properties;
@SuppressWarnings("Duplicates")
public class ConnectionUtil {
private static final String PROPERTIES_FILE = "db-connection.properties";
private static Properties properties;
private ConnectionU... | Java | HW15-message-system/src/main/java/ru/otus/kushchenko/ms/persistence/connection/ConnectionUtil.java | ElenaKushchenko/otus-java-2017-06-kushchenko | mit | 794 | 31 | codeparrot/github-code |
a55d8539090b2853095b2bfd65d7536ee312ca52845dc713c1588675c3722400 | /*
The MIT License (MIT)
Copyright (c) 2013 devnewton <devnewton@bci.im>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use,... | Java | src/main/java/im/bci/tmxloader/TmxTileInstance.java | devnewton/libtiled-jpurexml | mit | 2,673 | 91 | codeparrot/github-code |
7579139fc0b3c29f2c919af6aac87eaea9edea8a8e83d73340cd4321bce0e153 | /*
* Copyright (c) 2012-2016 André Bargull
* Alle Rechte vorbehalten / All Rights Reserved. Use is subject to license terms.
*
* <https://github.com/anba/es6draft>
*/
const {
assertSame
} = Assert;
// 15.1.2.1: Lexical declarations should always get into a new declarative environment
// https://bugs.ecmascript... | JavaScript | src/test/scripts/suite/regress/bug1788.js | jugglinmike/es6draft | mit | 1,082 | 60 | codeparrot/github-code |
03546f0d12b60120725c4b299f5196fd9b03dda43d9ba7302317b54d9f3546b1 | package com.daviancorp.android.ui.dialog;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.view.LayoutInflater;
import and... | Java | app/src/main/java/com/daviancorp/android/ui/dialog/WishlistAddDialogFragment.java | zachdayz/MonsterHunter4UDatabase | mit | 2,085 | 58 | codeparrot/github-code |
32b1e7f628dfe10b03ddaa95d71229d1b1811e8d1a711771352dfec60c159753 | require('source-map-support').install();
var assert = require('chai').assert;
var sinon = require('sinon');
var AuctionSniper = require('../src/AuctionSniper');
var SNIPER_ID = 'sniper';
const ITEM_ID = 'item-5347';
describe('auction sniper', () => {
let mockListener;
let mockAuction;
let sniper;
let priceSource;... | JavaScript | test/sniper.spec.js | amir-arad/tdd-ws3 | mit | 2,842 | 80 | codeparrot/github-code |
5810adeea0cd099fd85e280d766fce1ec7a596dd20196ca2ab602ce7283098ea | /*global describe, it*/
"use strict";
var fs = require("fs"),
should = require("should");
require("mocha");
delete require.cache[require.resolve("../")];
var gutil = require("gulp-util"),
includer = require("../");
describe("gulp-includer", function () {
var expectedFile = new gutil.File({
path: "test/expect... | JavaScript | test/main.js | timrwood/gulp-includer | mit | 1,073 | 54 | codeparrot/github-code |
c6a22b2dbb79b290ee1fd5af98a4f882474d98a1408d756423abe892e07b9503 | (function ($, window, document) {
'use strict';
var cssTransitionSupport = function () {
var s = document.body || document.documentElement;
s = s.style;
if (s.WebkitTransition === '') {
return '-webkit-';
}
if (s.MozTransition === '') {
return '-m... | JavaScript | src/imagelightbox.js | Lochlan/imagelightbox | mit | 14,624 | 395 | codeparrot/github-code |
bbee98bbe0c9267fbb7854c60c335af7e095527996803d510c9c2dc583f51f96 |
import angular from 'angular';
import 'angular-route';
import '../style/app.css';
global.jQuery = require('jquery');
require('bootstrap-loader');
var jsonUrl = "/json/"
var jsonName = "esp-"
var app = angular.module("JsonRecordApp", ["ngRoute"]);
app.config(function($routeProvider, $locationProvider){
$routeProv... | JavaScript | src/app/app.js | xingchen19/angular-json | mit | 612 | 31 | codeparrot/github-code |
105f4bdb8b7925c97d0c2f01c8140fb225790bdd2a02eca4ef4d2696fa0e19c6 | package com.workshare.msnos.usvc.api.routing;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import java.util.ArrayList;
import java.util.List;
import org.junit.Before;
import org.junit.Test;
imp... | Java | src/test/java/com/workshare/msnos/usvc/api/routing/SkipFaultiesRoutingStrategyTest.java | workshare/ms-nos | mit | 2,449 | 87 | codeparrot/github-code |
aa69f5d3a9e358979f820ed17639a99b480e60ced956a15f3adf024c91a9ed5a | <?php
namespace Console\Commands;
use Illuminate\Console\Command;
use Symfony\Component\Process\Exception\ProcessFailedException;
use Symfony\Component\Process\Process;
/**
* Class GenerateRestApiDocumentation.
*
* @package Console\Commands
*/
class GenerateRestApiDocumentation extends Command
{
/**
* T... | PHP | app/src/console/Commands/GenerateRestApiDocumentation.php | tooleks/photo-blog | mit | 1,158 | 56 | codeparrot/github-code |
d245dea5a4e4ab835cd93df0f961ca475e9aa27933a913fb9c6a55d72bd44ad4 | var filterGitSha = require('./filterGitSha.js');
var expect = require('chai').expect;
describe('filterGitSha', function () {
var actual;
var expected;
describe('smoke tests', function () {
it('should exist', function () {
// Expected an assignment or function call and instead saw an ex... | JavaScript | source/scripts/pure-functions/filterGitSha/filterGitSha.spec.js | ericcarraway/typo-hunter | mit | 3,043 | 113 | codeparrot/github-code |
a857bac106986581f7723e35231fbf9977f94a613c261f4ae663a2e6960a6417 | //*******************************************************************
//
// License: See top level LICENSE.txt file.
//
// AUTHOR: Oscar Kramer (okramer@imagelinks.com)
//
// DESCRIPTION: Contains declaration of class ossimPolygon.
// This class provides utilities associated with N-vertex, convex
// (i.e., only t... | C | include/ossim/base/ossimPolyLine.h | ossimlabs/ossim | mit | 6,669 | 240 | codeparrot/github-code |
4751e37c9324cfb149e0fe6acd674931c78fb518936c366a7b23f7093f2cbf19 | package main
import (
"Algorithms-in-Golang/stack"
"fmt"
"strings"
)
func main() {
fmt.Println("程序开始")
s := "( ( 1 + 2 ) * ( ( 3 - 4 ) * ( 5 - 6 ) ) )"
fmt.Println(s)
r := infixToPostfix(s)
fmt.Println(r)
}
func infixToPostfix(s string) string {
strs := stack.New()
ops := stack.New()
ss := strings.Spli... | GO | Solutions/Algorithms4E/1.Fundamentals/1.3.BagsQueuesAndStacks/1.3.10/main.go | aQuaYi/Algorithms-in-Golang | mit | 663 | 42 | codeparrot/github-code |
f7b6d25fae4dd3bb8492fb60f9305789847f8299981f7b8982e558f9601ba199 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>compcert: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.cs... | HTML | clean/Linux-x86_64-4.02.3-2.0.6/released/8.6.1/compcert/2.6.0.html | coq-bench/coq-bench.github.io | mit | 7,099 | 175 | codeparrot/github-code |
25b88e843f5105a9ddd177fb73950d5ea8748da6bb9bb584dfe442361e8a3be7 | from flex.error_messages import MESSAGES
from flex.exceptions import ValidationError
from flex.constants import (
EMPTY,
INTEGER,
STRING,
)
from flex.utils import pluralize
from flex.validation.common import (
generate_object_validator,
)
from flex.decorators import (
pull_keys_from_obj,
suffix_... | Python | flex/loading/common/max_length.py | pipermerriam/flex | mit | 1,274 | 50 | codeparrot/github-code |
1eea12fd523a98cef5015a290712f4b3dc120fa1d683a9443ab8f44bc4152d5a | // Use λ for the placeholder
window.λ = function delta() {
this.version = "1";
};
λ.rebind_caf = function() {
$('.caf').each(function() {
if (typeof $._data($(this)[0], "events") === "undefined") {
$(this).on('click', function(e) {
e.preventDefault();
λ[$(this).attr('data-func')](this);
... | JavaScript | assets/js/function_api.js | aiganebraska/The-Show | mit | 5,798 | 210 | codeparrot/github-code |
6be1e6f5465e30e559970fc45761267994852f4af8517768ce8c5dd900d3e7ba | #include <stdlib.h>
#include <lua/lua.h>
#include <lua/lauxlib.h>
// we need this since we're not defining a main() function.
// if we didn't #define this, SDL would try to #define main SDL_main
// and put startup code in main and also die becasue we aren't calling main.
#define SDL_MAIN_HANDLED
#include <SDL2/SDL.h>... | C | luna.c | BeStillAsBright/luna | mit | 61,958 | 2,498 | codeparrot/github-code |
e2581c14f525eb9506fce4863daef96d7f29210c28987f301c6ba0c14504b958 | import {getMetadataArgsStorage} from "../../globals";
import {RelationMetadataArgs} from "../../metadata-args/RelationMetadataArgs";
import { ObjectType } from "../../common/ObjectType";
import { RelationOptions } from "../options/RelationOptions";
/**
* Many-to-many is a type of relationship when Entity1 can have mu... | TypeScript | src/decorator/relations/ManyToMany.ts | typeorm/typeorm | mit | 3,133 | 63 | codeparrot/github-code |
ffc89fa50ba87397d439224696644bfde89441f52ce978d359fbb86010e94eb9 | /**
* First Common Ancestor
*
* Design an algorithm and write code to find the first common ancestor of two nodes in a binary search tree.
* Avoid storing additional nodes in a data structure.
*
* NOTE: This is not necessarily a binary search tree
*
*/
const Graph = require('../../../collections/Graph');
// A... | JavaScript | src/exercises/cracking_the_coding_interview/graphs/FirstCommonAncestor.js | pbodalia/algorithms-js | mit | 2,622 | 104 | codeparrot/github-code |
161171e3403db8a8d0ba001a0151321960ccdb441769730a6c8e8cf453d83941 | require 'clitopic/utils'
require 'clitopic/topics'
module Clitopic
module Commands
class CommandFailed < RuntimeError; end
module ClassMethods
attr_accessor :binary, :current_cmd, :current_topic
def load_commands(dir)
Dir[File.join(dir, "*.rb")].each do |file|
require file
... | Ruby | lib/clitopic/commands.rb | ant31/cli-topic | mit | 3,636 | 130 | codeparrot/github-code |
f1e555fc7d7b15407392ab0c7f5f55b2cd8d966417e4b7ad73756cf53106810d | angular.module('myList',[])
.controller('ListController',function($http){
var list = this;
list.data = [];
list.getData = function(){
$http({
method: 'GET',
url: 'http://api-nivesh2.c9users.io/api/v1/fetch'
}).then(function successCallback(response){
... | JavaScript | public/list.js | nivesh2/learnMEAN | mit | 2,070 | 71 | codeparrot/github-code |
b60d0035d6b6e1578277c2c8e541e082c8f44e9d32ce9194fe3e8470fece984f | <?php
use \Michelf\MarkdownExtra;
/**
* Pico
*
* @author Gilbert Pellegrom
* @link http://pico.dev7studios.com
* @license http://opensource.org/licenses/MIT
* @version 0.7
*/
class Pico {
private $plugins;
/**
* The constructor carries out all the processing in Pico.
* Does URL routing, Markdown process... | PHP | lib/pico.php | lanacademy/lan-learn | mit | 12,098 | 378 | codeparrot/github-code |
f7d79a5646135000103e198392a2cb9df5334f6f629c11f8ca61ae8c7ee0d366 | ! function(window, angular, undefined) {
var defaultMapSettings = {
center: {
lat: 12.94206,
lng: 77.62229
},
zoom: 8
},
setMarkerFunc = undefined;
function setMarkerCurryFunc(placesMap) {
if (placesMap) {
var map = placesMap;
}
return funct... | JavaScript | src/dsMapService.js | JesselJohn/angular-direction-service | mit | 19,531 | 505 | codeparrot/github-code |
5e16b2fb5fbc9d9fe05096f563c66b2a1f0dbd0d1dfa9d8d03a5a7cfa289107e | using System;
using Affecto.IdentityManagement.Commanding.Commands;
using Affecto.IdentityManagement.Commanding.Validation;
using Affecto.IdentityManagement.Interfaces.Exceptions;
using Affecto.Patterns.Cqrs;
namespace Affecto.IdentityManagement.Commanding.CommandHandlers
{
internal class CreateRoleCommandHandler... | C# | IdentityManagement.Commanding/CommandHandlers/CreateRoleCommandHandler.cs | affecto/dotnet-IdentityManagement | mit | 1,736 | 49 | codeparrot/github-code |
3b80799426074be8eef76352e67bec9b81e485d2b0b0c19436ac6ef9d6702bfe | import React, { createContext, useState } from "react";
import { QueryClient } from 'react-query'
import { useLocalStorage } from "./hooks/useLocalStorage";
export interface Settings {
showEmotes: Setting,
showName: Setting,
showTimestamp: Setting,
twitchChatMode: Setting,
newOnBottom: Setting,
}
... | TypeScript | web/src/store.tsx | gempir/gempbotgo | mit | 4,225 | 136 | codeparrot/github-code |
71dc634ba0ceaff8442cd876d0d1dea68b64c189dd26b4e5c9f46a686fb9a650 | <?php
class WCML_Translation_Editor{
/**
* @var woocommerce_wpml
*/
private $woocommerce_wpml;
/**
* @var SitePress
*/
private $sitepress;
public function __construct( &$woocommerce_wpml, &$sitepress, &$wpdb ) {
$this->woocommerce_wpml =& $woocommerce_wpml;
$this->sitepre... | PHP | web/app/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-translation-editor.php | Kilbourne/biosphaera | mit | 13,021 | 335 | codeparrot/github-code |
8809fbcfe4f25fa3a2d23da9fa3b11c2dbb9c1e4c3ac9869f9322e32316484a4 | // Copyright 2012 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of ... | C++ | v8/src/ia32/ic-ia32.cc | bteixeira/sciborgV8 | mit | 61,214 | 1,721 | codeparrot/github-code |
68550b7274352e39e33f35d919620bec4049d1db7b88e0e4db8563faafca88b6 | module Rack
module Client
module Cache
class EntityStore
# Read body calculating the SHA1 checksum and size while
# yielding each chunk to the block. If the body responds to close,
# call it after iteration is complete. Return a two-tuple of the form:
# [ hexdigest, size ].
... | Ruby | lib/rack/client/middleware/cache/entitystore.rb | halorgium/rack-client | mit | 2,081 | 78 | codeparrot/github-code |
07a230c117b2347da544ba80f3f2e39602d5356fe92daa20773907cd4428187a | import { createClient } from 'restify';
import { contains } from 'ramda';
import { log } from './logger';
import sharp from 'sharp';
/** @ignore */
const IMAGE_MIMES = [
'image/gif',
'image/jpeg',
'image/png',
'image/svg+xml',
];
/**
* Formats an image buffer as instructed by options param
*
* _If the opti... | JavaScript | app/utils/imageUtils.js | McAllaster/emojifire | mit | 2,270 | 76 | codeparrot/github-code |
adaa07d9b6fbb01dc1a414e56049db972d8c5e8e0e493b43cb3e284da10d7739 | #if !NET45PLUS
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Diagnostics.Contracts;
using System.... | C# | System.Collections.Immutable/src/System/Collections/Immutable/SortedInt32KeyNode.cs | tunnelvisionlabs/dotnet-collections | mit | 30,147 | 802 | codeparrot/github-code |
aac8428d15b21e0da9e364f693b0cc4e76c90cfd277d7d539be0dfd230e166bb | /**
# perambulate
#### Simple parameter validation
* Author: Baz O'Mahony <the.ewok#gmail.com>
* Date: 08/20/2014
* License: MIT
**/
var isArray = require('util').isArray;
module.exports = function perambulate(for_validation) {
var current_parameter = {};
var is_valid = false;
//It had better validate ... | JavaScript | lib/perambulate.js | TheEwok/perambulate | mit | 1,047 | 42 | codeparrot/github-code |
29d6e9bf624bd3fc8c37f51d5254e8809138cb60a34f73815780bc72b82aaabb | package de.egore911.appframework.ui.dto;
public class Progress<T> {
private T result;
private int value;
private Integer max;
private String message;
private boolean completed;
private boolean success;
public T getResult() {
return result;
}
public void setResult(T result) {
this.result = result;
}
... | Java | src/main/java/de/egore911/appframework/ui/dto/Progress.java | egore/appframework | mit | 915 | 61 | codeparrot/github-code |
906de59bc5765433127c2bc7211a08c9fbce3eebe4a4c62090b3f31107a83f0e | var protoclass = require("protoclass");
/**
*/
function Fragment(children) {
this.children = children;
}
/**
*/
module.exports = protoclass(Fragment, {
/**
*/
initialize: function(template) {
if (this.children.length === 1) return this.children[0].initialize(template);
var frag = template.docum... | JavaScript | lib/template/vnode/fragment/index.js | coderangerdan/paperclip.js | mit | 570 | 34 | codeparrot/github-code |
97f15c9fb2859f6920f8dcba23d2e6d2d789e298c33161cb48f3858b7267dc89 | <?php
defined('BASEPATH') OR exit('No direct script access allowed');
class User extends CI_Controller {
public function __construct(){
parent::__construct();
$this->load->helper('url');
}
//Load Signup Page
public function signup(){
$this->load->view('header/header');
$this->load... | PHP | application/controllers/User.php | amalrajt/IBDB | mit | 3,999 | 142 | codeparrot/github-code |
cbadd0e9880b63d9e7c67bb3f2fd3ccb5019074e5fd2eb76b430010594257f6f | import Doji from './Doji';
import StockData from '../StockData';
import CandlestickFinder from './CandlestickFinder';
export default class MorningDojiStar extends CandlestickFinder {
constructor() {
super();
this.name = 'MorningDojiStar';
this.requiredCount = 3;
}
logic (data:Stock... | TypeScript | src/candlestick/MorningDojiStar.ts | anandanand84/technicalindicators | mit | 1,987 | 48 | codeparrot/github-code |
2e980ab338a60800f2c952d6c34503d6c88cbbb09ad9893e78c77ee30686044e | <?php
session_start();
require_once 'database/DatabaseMethods.php';
require_once 'libs/googleApi/Google_Client.php';
require_once 'libs/googleApi/contrib/Google_PlusService.php';
require_once 'libs/googleApi/contrib/Google_Oauth2Service.php';
const CLIENT_ID = '768165913318-s7hdmbpfrdq8h9kjlgn24m4ie3pfm4go.apps.goog... | PHP | includes/GooglePlusLogin.php | grainier/rss-reader | mit | 2,953 | 77 | codeparrot/github-code |
1239146a87cd97466377eb4305b88daa92eebfe9e442d60c414697b45e5cd3b0 | /**
* Created by Josh on 12/3/15.
*/
//file for implementing frequencies across distances in texts
//such as around a specific position, what is the most common word?
function getMaxOfArray(numArray) {
return Math.max.apply(null, numArray);
}
function getMinofArray(numArray) {
return Math.min.apply(null, nu... | JavaScript | statement_analyzer/DistanceMapping.js | jweinst1/Dragonize | mit | 1,256 | 42 | codeparrot/github-code |
1116493e8e29bd325bd5c7795b4b48aa401f54f2baddf2024401e42fde8b30c1 | package svc
import (
"bytes"
"encoding/json"
"math/rand"
"net/http"
"strings"
"sync"
"time"
"github.com/aybabtme/log"
_ "net/http/pprof"
)
const idLen = 32
var (
MaxPageLifetime = 30 * time.Second
newPath = "/new"
sinkPath = "/s/"
)
type handler struct {
files http.Handler
random *rand.Rand
sin... | GO | svc/handler.go | aybabtme/fail.run | mit | 3,268 | 162 | codeparrot/github-code |
12d0fd8d1714d507306ab79a238ec8dc031811418f0b099f2c6362b2598e8027 | package org.jsoup.nodes;
import org.jsoup.helper.StringUtil;
import org.jsoup.helper.Validate;
import org.jsoup.parser.Parser;
import org.jsoup.parser.Tag;
import org.jsoup.select.*;
import java.util.*;
import java.util.regex.Pattern;
import java.util.regex.PatternSyntaxException;
/**
* A HTML element consists of a... | Java | src/main/java/org/jsoup/nodes/Element.java | Enoro/jsoup | mit | 43,707 | 1,222 | codeparrot/github-code |
d0f319cafce4ee72b2ae25024801aa3a760f703ed209c6cc8708e5ff7bdea16d | require 'tanuki/argument/base'
require 'tanuki/argument/integer'
require 'tanuki/argument/integer_range'
require 'tanuki/argument/string'
module Tanuki
# Tanuki::Argument contains basic classes and methods for controller
# arguments.
module Argument
@assoc = {}
class << self
# Removes argument ... | Ruby | lib/tanuki/argument.rb | assistunion/tanuki | mit | 1,124 | 47 | codeparrot/github-code |
44158d233bec7cb9438c8ac8693c9bbd27a889afda05bd2024bd1ad0da6d1890 | /**
* 评论详情
* @author jackieLin <dashi_lin@163.com>
*/
'use strict';
import React, { Component, PropTypes} from 'react';
import {
StyleSheet,
Image,
Text,
View
} from 'react-native';
import v2exStyle from '../styles/v2ex';
import TimeAgo from './timeAgo';
const articleListStyles = StyleSheet.create(v2exStyl... | JavaScript | compoents/commentList.js | JackieLin/v2ex | mit | 1,749 | 61 | codeparrot/github-code |
ce8f02c68593f3719d308f089d10b17258cd719ef9d725228cd8e94a032a572a | // my-custom-environment
const http = require('http')
const getPort = require('get-port')
const seleniumServer = require('selenium-standalone')
const NodeEnvironment = require('jest-environment-node')
const {
BROWSER_NAME: browserName = 'chrome',
SKIP_LOCAL_SELENIUM_SERVER,
} = process.env
const newTabPg = `
<!DO... | JavaScript | test/jest-environment.js | flybayer/next.js | mit | 2,304 | 93 | codeparrot/github-code |
75e8d3121961f7bf16b93df8d026a2d750c99bc5c3b488e0ba71148b58411bfb | index/actions
{{--<a type="button" data-toggle="modal" data-target="#action_like_modal" class="{{ liked($item->id) }} link btn btn-blog">--}}
{{--<i class="fa fa-heart"></i>--}}
{{--</a>--}}
index/icons
{{-- <a type="button" data-toggle="modal" data-target="#action_like_modal" class="{{ $item->checkLiked() }}... | PHP | resources/views/allInOne.blade.php | znack2/new_sovpal | mit | 8,076 | 195 | codeparrot/github-code |
3a8c44c641136c7ab3b213044ea72358e1e3b882d4e7eec4754baeb02b1c9b4b | using System;
using System.Collections.Generic;
using System.Text;
using NotTetris.Graphics;
using NotTetris.Controls;
using NotTetris.GameObjects;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace NotTetris.GameScreens
{
/// <summary>
/// The settings menu screen.
/// </sum... | C# | notTetris/notTetris/GameScreens/SettingsMenu.cs | koaset/notTetris | mit | 11,396 | 314 | codeparrot/github-code |
0f8cb497fb1f50b4ac3964cabfd491d8e4b0965b14de1b314b2db1418aa302f4 | <?php
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\SecurityBundle\Sec... | PHP | app/AppKernel.php | PhotonSapiens/jobeet | mit | 1,536 | 39 | codeparrot/github-code |
925acc33068a57521c0fae771a6b5bebc05584e2e5c2b3116aed5aedbaa2e6ea | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>equations: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.c... | HTML | clean/Linux-x86_64-4.05.0-2.0.1/released/8.5.2/equations/1.2~beta+8.8.html | coq-bench/coq-bench.github.io | mit | 7,173 | 174 | codeparrot/github-code |
de244b9bf0dcb8b4eac45745887d7c97800535ea103e77968d3fe375ed1d3cb0 | #pragma once
#ifndef __DEM_L2_APP_FSM_H__
#define __DEM_L2_APP_FSM_H__
#include "StateHandler.h"
#include <Events/EventsFwd.h>
// Application state machine manages different application states and their transitions.
// Use it into your application class if app has more than one state.
namespace App
{
typedef Ptr<cla... | C | DEM/Game/src/App/AppFSM.h | niello/deusexmachina | mit | 2,237 | 83 | codeparrot/github-code |
4c3cc560a89c932d806aefe75edd32df20555cbda5e58c3bbe7a654f8987c887 | // Copyright (c) 2013-2014 Sandstorm Development Group, Inc. and contributors
// Licensed under the MIT License:
//
// 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, inc... | Rust | example/addressbook_send/addressbook_send.rs | dwrensha/capnproto-rust | mit | 4,171 | 105 | codeparrot/github-code |
d0ff6787793852548b8f31ea99471f997e4592d6a2d7648a61d61b3110a03c10 | /*****************************************************************************
*
* \file
*
* \brief 16-bit vector dot division function optimized for the avr32uc3
*
* This file contains the code of the vector dot division.
*
* Copyright (c) 2014 Atmel Corporation. All rights reserved.
*
* \asf_license_start
... | C | blinky/blinky/asf-3.21.0/avr32/services/dsp/dsplib/at32uc/basic/vectors/vect_dsp16_dotdiv_at32uc.c | femtoio/femto-usb-blink-example | mit | 8,460 | 243 | codeparrot/github-code |
83b27e2854ae6d0d91b5ad1daca6bf981aba76932402754b8fb449d8aa2ed3a3 | """Implementations of commenting abstract base class searches."""
# pylint: disable=invalid-name
# Method names comply with OSID specification.
# pylint: disable=no-init
# Abstract classes do not define __init__.
# pylint: disable=too-few-public-methods
# Some interfaces are specified as 'markers' and inclu... | Python | dlkit/abstract_osid/commenting/searches.py | mitsei/dlkit | mit | 8,401 | 231 | codeparrot/github-code |
17b3739be744f28f90e24c5babb9242d2c2fbb6d181453afaf1047150752828b | //! \file ImageYKG.cs
//! \date Thu Aug 13 22:16:30 2015
//! \brief Yuka engine images implementation.
//
// Copyright (C) 2015 by morkt
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal... | C# | ArcFormats/Yuka/ImageYKG.cs | morkt/GARbro | mit | 5,432 | 136 | codeparrot/github-code |
6ec69b150b58b6ed44746d6730f053ec5a0f3b9d3a13bb4b20f7935d98e3ebc1 | package com.sandrios.sandriosCamera.internal.ui.view;
import android.content.Context;
import android.content.pm.PackageManager;
import android.graphics.Color;
import android.os.FileObserver;
import android.os.Handler;
import android.os.Looper;
import android.util.AttributeSet;
import android.util.Log;
import android.v... | Java | sandriosCamera/src/main/java/com/sandrios/sandriosCamera/internal/ui/view/CameraControlPanel.java | sandrios/sandriosCamera | mit | 15,855 | 425 | codeparrot/github-code |
d0ce5f2384db1c7b488ca9713fcaf74a682b1bc1f8106a2ea6322c7f98a58c83 | package handlers
import (
"encoding/json"
"net/http"
"time"
"github.com/dgrijalva/jwt-go"
"github.com/beacloudgenius/k8s/app/user"
"golang.org/x/crypto/bcrypt"
)
type LoginResponse struct {
Token string `json:"token"`
}
type loginHandler struct {
secret string
users user.Users
}
func (h *loginHandler) Se... | GO | app/handlers/login.go | beacloudgenius/k8s | mit | 1,427 | 66 | codeparrot/github-code |
b432297d9a8389892eeb9f9f67147ff7a7a1f28d574dc8562fb2714bb37486c8 | import { List, Repeat } from 'immutable';
/**
* Template for semantic Relations, defining the roles (i.e. semantic function and weights) in the default order.
*/
export default class RelationTemplate {
/**
* @constructor
* @param {AssociateRole} leadingAssociate - first associate's role/weight
* @param {?Asso... | JavaScript | src/pericope/model/relationTemplate.js | scientific-tool-set/HermeneutiX-react | mit | 1,606 | 44 | codeparrot/github-code |
65e7977ab3ecdb834af83d15e411959ba35ff636ab8df2283bdc683048406052 | /**
* Created by timfulmer on 7/26/15.
*/
var passport = require('passport'),
BasicStrategy = require('passport-http').BasicStrategy,
BearerStrategy = require('passport-http-bearer').Strategy,
Promise=require('bluebird');
function initialize(options){
options=options || {};
function initializePromise(resol... | JavaScript | config/passport.js | timfulmer/techdt.la-oauth2 | mit | 3,625 | 109 | codeparrot/github-code |
71a8121b6800bb07a1b373c0e04999dfac5f58cb1950ed52e6b33950098753c2 | using System.ComponentModel.Composition;
using System.Xml.Linq;
using log4net;
using log4net.Core;
using statsd.net.Configuration;
using statsd.net.core;
using statsd.net.core.Backends;
using statsd.net.core.Messages;
using statsd.net.core.Structures;
using statsd.net.shared;
using statsd.net.shared.Blocks;
using stat... | C# | statsd.net/Backends/Statsdnet/StatsdnetBackend.cs | lukevenediger/statsd.net | mit | 3,131 | 115 | codeparrot/github-code |
e39159aa0e61dac8cbaefeb7305c8a6c7b7e42bb0b1947bb2ba884fb0410a05b | import datetime
import logging
from lxml import html
import simplejson
from . import details
from . import essay
from . import helpers
from . import looking_for
from . import util
from .question import QuestionFetcher
from .xpath import xpb
log = logging.getLogger(__name__)
class Profile(object):
"""Represent... | Python | okcupyd/profile.py | IvanMalison/okcupyd | mit | 14,154 | 386 | codeparrot/github-code |
652b3beb3bdfb4172cfd45e4906573e99ebef2af0d097781bb16f97f6f30221f | /*
Copyright (c) 2003, Xentronix
Author: Frans van Nispen (frans@xentronix.com)
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright ... | C++ | editor/ResampleWindow.cpp | HaikuArchives/HyperStudio | mit | 9,660 | 306 | codeparrot/github-code |
0bce22a8e324764f9478f017c6692b2ffe16534b533f7ff196fc663e641cb657 | class Contact
def initialize(first, last)
@first = first
@last = last
@phone = []
end
def first
@first
end
def last
@last
end
def full
"#{@first} #{@last}"
end
def add_phone(num)
@phone << num
end
def phone
... | Ruby | ruby/oo/addbook/lib/contact.rb | emersonp/epicodus | mit | 1,030 | 79 | codeparrot/github-code |
d79c3b9bbca430b92820b0f814d22e6323c3f2b4fc8fba7b17c5d802f1d6d173 | 'use strict';
//Sidemenus service used to communicate Sidemenus REST endpoints
angular.module('sidemenus').factory('Sidemenus', ['$http',
function($http){
/*
Private functions
*/
//Here the proviates functions
/*
Public functions
*/
return... | JavaScript | modules/sidemenus/client/services/sidemenus.client.service.js | Jean2bob/edge-motion | mit | 2,519 | 83 | codeparrot/github-code |
c604975f5c472bfbd1d1c13f9d208097d5c8b6091642f33ef806c1e05ada753d | <?php
/*
* This file is part of the EzCoreExtraBundle package.
*
* @copyright Jérôme Vieilledent <jerome@vieilledent.fr>
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/
namespace Lolautruche\EzCoreExtraBundle\View;
use Symfony\Component\ExpressionLan... | PHP | View/ExpressionLanguageProvider.php | lolautruche/EzCoreExtraBundle | mit | 1,620 | 43 | codeparrot/github-code |
9fdf1f1c8aa25210ddef9d2fb08551e21535d0a9564e34cde3cd9db8aedd1ae8 | #ifndef MAINWINDOW_HPP
#define MAINWINDOW_HPP
#include <memory>
#include <QMainWindow>
#include <QString>
#include <QTimer>
#include <NetworkClient/TcpClient.hpp>
#include "GameState.hpp"
//----------------------------------------------------------------------------//
namespace Ui {
class MainWindow;
}
namespace nc... | C++ | Sketches/Chat/MainWindow.hpp | tehme/outlaw | mit | 2,377 | 93 | codeparrot/github-code |
7efb5fa73ba50074dfa1c360e81f7ee50a96c3565fd9482a8b41c70c8784eefd | #!/usr/bin/env python
"""
The MIT License (MIT)
Copyright (c) 2015 Maker Musings
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... | Python | fauxmo.py | damianolombardo/fauxmo | mit | 17,632 | 521 | codeparrot/github-code |
e2c342da939f05b7bc77c1a8ccc9f9ea2901c8885918829bf165e76bd79494d6 | /* global document */
function toArray(xs) {
return Array.prototype.slice.call(xs);
}
function filterToc() {
var f = filterElement.bind(null, nameFilter.value, '');
funcs.forEach(f);
}
function filterElement(nameFilter, categoryFilter, elem) {
var name = elem.getAttribute('data-name');
var catego... | JavaScript | docs/main.js | stoeffel/ramda | mit | 1,527 | 63 | codeparrot/github-code |
883a9d303ee55dca61c1bd9920eea4eba5e2bc9796e6201974cc1e3e8cb1b54f | //
// ExtraUtilities decompiled and fixed by Robotia https://github.com/Robotia
//
package com.rwtema.extrautils.item.filters;
import net.minecraft.item.Item;
import java.util.HashSet;
import net.minecraftforge.oredict.OreDictionary;
import gnu.trove.map.hash.TIntByteHashMap;
import java.util.Iterator;
import net.m... | Java | ExtraUtilitiesBuilder/src/main/java/com/rwtema/extrautils/item/filters/Matcher.java | Robotia/ExtraUtilities | mit | 8,107 | 271 | codeparrot/github-code |
c4bedb1219d292218725dcf4c3c123ba9bdeb2543116e601959779fda99741ae | // Include standard headers
#include <stdio.h>
#include <stdlib.h>
// Include GLEW
#include <GL/glew.h>
// Include GLFW
#include <glfw3.h>
GLFWwindow* window;
// Include GLM
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
using namespace glm;
#include <common/shader.hpp>
#include <comm... | C++ | 06-KeyboardMouse/main.cpp | NelsonBilber/cg.opengltutorial | mit | 9,173 | 265 | codeparrot/github-code |
6b92475920606f9fababbb5bc366a868631fbbba586bf644db57ac20f3c7bc2f | import * as extract from 'extract-zip';
import * as fs from 'fs';
import * as path from 'path';
import { IMsg, EStateType } from '~model/message';
import { TFunc1Void } from '~type';
export function removeAllFile(dir: string): void {
if (fs.existsSync(dir)) {
fs.readdirSync(dir)
.forEach((file: st... | TypeScript | util/index.ts | Franciscowxp/BetterKonachan | mit | 2,233 | 83 | codeparrot/github-code |
7007980cabb59e970c78416d842cba4e085ce2f511acba5f83875bcdf568811d | <?php
/*
* This file is part of the Arnapou GW2 API Client package.
*
* (c) Arnaud Buathier <arnaud@arnapou.net>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Arnapou\GW2Api\Model;
/**
*
* @method string getType()
... | PHP | src/Arnapou/GW2Api/Model/GuildUpgradeCost.php | arnapou/gw2apiclient | mit | 1,128 | 55 | codeparrot/github-code |
29a40544852c995bb5d9d3586446e215f7e3fcb639f171d83f43c15beb09c8e3 | <?php
global $uncode_colors, $uncode_colors_w_transp, $uncode_post_types;
if (!isset($uncode_post_types) && function_exists('uncode_get_post_types')) $uncode_post_types = uncode_get_post_types();
if (!function_exists('uncode_get_post_types')) $uncode_post_types = array();
$uncode_index_params_second = array();
forea... | PHP | src/rumrunners/public_html/wp-content/plugins/uncode-core/vc_extend/config/uncode_map.php | civiclee/Hack4Cause2017 | mit | 81,789 | 2,768 | codeparrot/github-code |
b7ef6767d13f596cabd3915532b3af0783f5b3257c61f8b644257f7ba7c22c1c | //
// NOTES:
//
// - The service initialization is asynchronous, so there's a race condition.
// RPC.Calculator may not be ready when CalcCntl.add/subtract are called
// - This can be solved a few ways, but I didn't want to complicate the example
// with that, as it depends on how your app is actually setup... | JavaScript | examples/calc/angularjs/angular-calc.js | coopernurse/barrister-js | mit | 2,434 | 84 | codeparrot/github-code |
352a7d3ae41aa1f5e85fdf5f32061c54db75aef5540151e3de0611d0240ad42d | package main
import (
"fmt"
"log"
"net/http"
"os"
"github.com/teddywing/new-house-on-the-block/purchase"
)
func sendMoneyToSeller() error {
transaction_id, err := purchase.SendMoney(os.Getenv("COINBASE_KEY"),
os.Getenv("COINBASE_SECRET"),
"n2Qd6da1jiFgij5SSncFKh7MoFN74GdUxv",
"0.0001")
if err != nil {
... | GO | main.go | teddywing/New-House-on-the-Block | mit | 1,168 | 61 | codeparrot/github-code |
aa7dbfc332c1401cc19f2a9235a03700d46fcd1012fd3fafa72e9fb7ff1da9b3 | using Hardcodet.Wpf.TaskbarNotification;
using System.Windows.Controls;
using System.Drawing;
using System;
using System.Windows;
using WarframeMarketClient.Model;
using System.Windows.Input;
using WarframeMarketClient.Logic;
using System.ComponentModel;
using Microsoft.Win32;
using System.Windows.Media;
using MahApps... | C# | WarframeMarketClient/GUI/Tabs/Tab_Settings.xaml.cs | Versalkul/WarframeMarketClient | mit | 4,489 | 129 | codeparrot/github-code |
244bd3d93b19ac2ef0e615558b24b0f7bdea44d1cd9024d294c7cedf7999dc36 | <?php
namespace Tests\Qissues\Application\Storage;
use Qissues\Application\Storage\LocalStorage;
class LocalStorageTest extends \PHPUnit_Framework_TestCase
{
public function testExpandsTildesToHomeDirectory()
{
putenv('HOME=/oh/hai');
$filename = '~/.test';
$filesystem = $this->getMo... | PHP | test/Qissues/Application/Storage/LocalStorageTest.php | AdrianSchneider/Qissues-Legacy | mit | 4,154 | 137 | codeparrot/github-code |
1b8b1295d9fe300410cf4d43f8fac5f3c1d639dd2e52b96e1e6bdcc4bc8e340f | /*******************************************************************************
* Copyright (c) 2002 - 2006 IBM Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is avail... | Java | com.ibm.wala.core/src/com/ibm/wala/ssa/SSAGotoInstruction.java | nithinvnath/PAVProject | mit | 1,826 | 68 | codeparrot/github-code |
e4bab756d1e335956224de567800d93b1bbbf7590feb8a684d80217a797fc0a2 | import infoAddon from "@storybook/addon-info";
import { setAddon, storiesOf } from "@storybook/react";
import { action } from "@storybook/addon-actions";
import { withInfo } from "@storybook/addon-info";
import React from "react";
import styled, { ThemeProvider } from "styled-components";
import Switch from "binary-ui... | JavaScript | storybooks/web/stories/index-components-switch.js | opensource-cards/binary-ui | mit | 1,306 | 54 | codeparrot/github-code |
72f6300732c19758e967a2a4c792e3077e6d9acee22c28debb1c3397fcd27c5b | <?php
namespace Oro\Bundle\ApiBundle\Processor\Subresource\Shared;
use Doctrine\ORM\Query\Expr\Join;
use Doctrine\ORM\QueryBuilder;
use Gedmo\Tree\TreeListener;
use Oro\Bundle\ApiBundle\Processor\Subresource\SubresourceContext;
use Oro\Bundle\ApiBundle\Util\DoctrineHelper;
use Oro\Component\ChainProcessor\ContextInte... | PHP | src/Oro/Bundle/ApiBundle/Processor/Subresource/Shared/AddParentEntityIdToTreeNodePathQuery.php | orocrm/platform | mit | 2,878 | 91 | codeparrot/github-code |
6e2b66fdf506d4d9af80182986705a48a1711a65b81a34e50befef5abff6d4c4 | /******
*
* EditArea
* Developped by Christophe Dolivet
* Released under LGPL, Apache and BSD licenses (use the one you want)
*
******/
function EditArea(){
var t=this;
t.error= false; // to know if load is interrrupt
t.inlinePopup= [{popup_id: "area_search_replace", icon_id: "search"},
... | JavaScript | web2py/applications/admin/static/edit_area/edit_area.js | ccpgames/eve-metrics | mit | 17,272 | 529 | codeparrot/github-code |
e67b51eb1f15ff288ed7706759b09a87f32e09348e638640dff377fb81aa484f | <?php
/* TwigBundle:Exception:exception.css.twig */
class __TwigTemplate_d9ac3ec828a1ddefe6ddbc5d387da1317d25e315b0c8b2a710a481ddd00540ad extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = arra... | PHP | app/cache/dev/twig/d9/ac/3ec828a1ddefe6ddbc5d387da1317d25e315b0c8b2a710a481ddd00540ad.php | Ulreal/SymfoTweet | mit | 1,034 | 43 | codeparrot/github-code |
9ea2f5e0ce0e5c3bd2ec08edc6bba6b20af499962ad646ef6510549575faa71c | <?php
global $nmjson;
if(!isset($nmjson)){
$nmjson = new nmjson();
}
function nm_format_time( $seconds ) {
if ( !$seconds ) return '--:--';
$min = floor($seconds / 60);
if ( $min < 10 ) $min = '0' . $min;
$second = floor($seconds % 60);
if ( $second < 10 ) $second = '0' . $second;
... | PHP | functions/embed.php | bigfa/nm | mit | 9,323 | 173 | codeparrot/github-code |
976968d14fcc1ef9902a004e50ae0cfe98dddeb0dc5b9d3a5207770eb46294d4 | <?php
namespace App\AdminBundle\Doctrine\DBAL\Types ;
use Doctrine\DBAL\Types\Type;
use Doctrine\DBAL\Platforms\AbstractPlatform;
/**
* Description of UuidType
*
* @author loong
*/
class UuidType extends Type
{
const BINARY = 'binary' ;
public function getSqlDeclaration(array $fieldDeclaration, Abst... | PHP | src/App/AdminBundle/Doctrine/DBAL/Types/UuidType.php | symforce/symforce-standard | mit | 1,442 | 51 | codeparrot/github-code |
0ba092c02440f98560faf3b4d7c7b50f2de27c5383c347442ae2e65123e33b8f | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>continuations: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.m... | HTML | clean/Linux-x86_64-4.06.1-2.0.5/released/8.10.0/continuations/8.8.0.html | coq-bench/coq-bench.github.io | mit | 7,166 | 168 | codeparrot/github-code |
d7dd20194eb29184af7f908746fc3068b8a670b02f1b6e885f7cab7e26463468 | from os.path import join
from tempfile import TemporaryDirectory
from django.apps import AppConfig
from 臺灣言語工具.語音辨識.聲音檔 import 聲音檔
from 臺灣言語工具.系統整合.程式腳本 import 程式腳本
class 語料庫Config(AppConfig):
name = '語料庫'
def ready(self):
with TemporaryDirectory() as 資料夾:
檔名 = join(資料夾, 'audio.wav')
... | Python | 語料庫/apps.py | i3thuan5/gi2_liau7_khoo3 | mit | 896 | 31 | codeparrot/github-code |
33d17e36a574c2581649bbebf29adb32b9617176bfe193c864839abf1a5603b2 | /* Source file for the R3 surfel feature evaluation functions */
////////////////////////////////////////////////////////////////////////
// INCLUDE FILES
////////////////////////////////////////////////////////////////////////
#include "R3Surfels.h"
//////////////////////////////////////////////////////////////... | C++ | pkgs/R3Surfels/R3SurfelFeatureEvaluation.cpp | tomfunkhouser/gaps | mit | 9,637 | 333 | codeparrot/github-code |
ca9bc62350e60ef550adb4c21801184ea25d0a9562edce3d1b7a1adef6c2702c | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import {
Platform,
StyleSheet,
TextInput
} from 'react-native';
import { connect } from 'react-redux';
import config from '../../config';
import { searchSongs } from '../../redux/songs';
import { navigatorPropTypes } from '../../helpers... | JavaScript | src/components/songs/SearchTextInput.js | varmais/profitti | mit | 1,307 | 53 | codeparrot/github-code |
fadd5afa1ce698a6d37998e130d3bc06e147d976cad71c9296ef316b19320c3b | # -*- coding: utf-8 -*-
import contextlib
import json
import os
import yaml
from .._protos.public.client import Config_pb2 as _ConfigProtos
from . import _utils
# TODO: make this a named tuple, if it would help readability
CONFIG_YAML_FILENAME = "verta_config.yaml"
CONFIG_JSON_FILENAME = "verta_config.json"
CONFI... | Python | client/verta/verta/_internal_utils/_config_utils.py | mitdbg/modeldb | mit | 6,135 | 242 | codeparrot/github-code |
18c9ca9ae4c02921dfdf2af59d0e32b329bb252d6d0ec88f9e4dbab1ab89b7cc | var d3_time = require('d3-time'),
d3_timeF = require('d3-time-format'),
d3_numberF = require('d3-format'),
numberF = d3_numberF, // defaults to EN-US
timeF = d3_timeF; // defaults to EN-US
function numberLocale(l) {
var f = d3_numberF.localeFormat(l);
if (f == null) throw Error('Unrecognized lo... | JavaScript | public/bower_components/datalib/src/format.js | jeffluppes/kanomap | mit | 4,848 | 161 | codeparrot/github-code |
3332f76832ca2e3276fedd818e0d406626493dc5fb5b776feadf1ef75f613ca4 | // Copyright (c) 2020 The BitcoinCore developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef FUJICOIN_DEPLOYMENTSTATUS_H
#define FUJICOIN_DEPLOYMENTSTATUS_H
#include <chain.h>
#include <versionbits.h>
#include <lim... | C | src/deploymentstatus.h | fujicoin/fujicoin | mit | 2,110 | 56 | codeparrot/github-code |
37eee042ea170b3fcc668120b52509a9b597de0156231c7f2192d7f7c3919f70 | module GitStatistics
class Collector
attr_accessor :repo, :commits_path, :commits
def initialize(repo, limit, fresh, pretty)
@repo = repo
@commits_path = repo.workdir + '.git_statistics'
@commits = Commits.new(@commits_path, fresh, limit, pretty)
end
def collect(options = {})
... | Ruby | lib/git_statistics/collector.rb | kevinjalbert/git_statistics | mit | 2,098 | 69 | codeparrot/github-code |
24cca51bcec21e821e9d94055b236148b266932761bc1ad2dc051cb958ae7a4b | package com.thaicrave.android;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import com.android.volley.Request;
import com.android.volley.VolleyError;
import com.thaicrave.android.app.Cur... | Java | ThaiCrave/src/main/java/com/thaicrave/android/SignUpActivity.java | brianbowden/thaicrave-android | mit | 4,290 | 118 | codeparrot/github-code |
a6406db558b928ca386f985ae5802c9be0d08722fe89b799efec37af20c7e350 | //star rating
export default function(cell, onRendered, success, cancel, editorParams){
var self = this,
element = cell.getElement(),
value = cell.getValue(),
maxStars = element.getElementsByTagName("svg").length || 5,
size = element.getElementsByTagName("svg")[0] ? element.getElementsByTagName("svg")[0].getAttrib... | JavaScript | src/js/modules/Edit/defaults/editors/star.js | olifolkerd/tabulator | mit | 4,073 | 146 | codeparrot/github-code |
3f4c2a6cdb1c7a529d54b9f6e8e9021c4643a316909251f5c95cb21c603c384a | using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Newtonsoft.Json;
namespace Buzzbox_Common
{
public class CardCollection
{
public List<Card> Cards;
public CardCollection()
{
Cards = new List<Card>();
}
//Load a card... | C# | Buzzbox/Buzzbox-Common/CardCollection.cs | Xesyto/Buzzbox | mit | 2,694 | 97 | codeparrot/github-code |
0be8781d54b5457b8b5341e24c0afc68c9a561f35992c7363c093ac1ee9cd24a | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import throttle from 'lodash.throttle';
import ReactMarkedEditor, { Replacer } from '../../src/';
export default class App extends Component {
constructor(props) {
super(props);
this.handleMarkdownChange = this.handleMarkdownChange.bind(t... | JavaScript | demo/src/app.js | lonord/react-marked-editor | mit | 2,340 | 115 | codeparrot/github-code |
e62c93b6fa8a7bbdeb17f7474554ce9bccee82e14fbe9c34731024fe02a31454 | #if NETSTANDARD
//
// System.Configuration.CommaDelimitedStringCollection.cs
//
// Authors:
// Chris Toshok (toshok@ximian.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... | C# | AntData/AntData.ORM/DbEngine/System.Configuration/CommaDelimitedStringCollection.cs | yuzd/AntData.ORM | mit | 3,861 | 131 | codeparrot/github-code |
faf729de64d282695c44607a0b7c1ccde78fe53dec8b9044ec2562ca09c5732b | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Script to upload images to wikipedia.
Arguments:
-keep Keep the filename as is
-filename Target filename without the namespace prefix
-noverify Do not ask for verification of the upload description if one
is given
-abortonwarn: Abor... | Python | upload.py | eranroz/hewiktionary_checker | mit | 8,269 | 219 | codeparrot/github-code |
68650ceab9206e200b5f41ab5039f5180b4082614066a6574ddb0404f7014ad4 | import React, {Component} from 'react';
import { Form, Icon, Input, Button } from 'antd';
const FormItem = Form.Item;
import Animate from './animate';
import './login.css';
import { Http } from '../utils/http';
import {connect} from "react-redux";
import {
login,
setTags
} from '../actions/index';
class NormalLogi... | JavaScript | src/pages/login.js | ShiChao1996/BlogAdmin | mit | 3,124 | 122 | codeparrot/github-code |
ec085cb86f51ba617a6937ae7311d8e6ac351bc3f05c6e3b9e3b6bb21d813283 | <?php
/**************************************************************************
Ale API Library for EvE SkillTree/RefTypes Class legacy include file and Generic Class def
Portions Copyright (C) 2007 Kw4h
Portions Copyright (c) 2008 Thorsten Behrens
This file is part of Ale API Library for EvE.
Ale API Library ... | PHP | pos_loc/include/ale/eveapi/class.generic.php | krandor/personal | mit | 1,554 | 42 | codeparrot/github-code |
304bd03949339a632d1aa24a5086debee14815ffc6294906e48b83380b3ae94a | /*
* The MIT License (MIT)
*
* Copyright (c) 2014-2021 PikeTec GmbH
*
* 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 rig... | Java | src/main/java/com/piketec/tpt/api/properties/PropertyDecimal.java | jenkinsci/piketec-tpt-plugin | mit | 2,623 | 89 | codeparrot/github-code |
df125a502344949d98fd97f0b4acab1007f5a6a9b04f98c4f568034baacbf44c | #!/usr/bin/env python2
import distutils.dir_util
import os
import shutil
import subprocess
import sys
import tempfile
import time
DOC_ARGS = '--no-deps'
DOC_FEATURES = "conv num rustc-serialize serde"
DOC_TARGET_BRANCH = 'gh-pages'
TEMP_CHECKOUT_PREFIX = 'gh-pages-checkout-'
TEMP_OUTPUT_PREFIX = 'gh-pages-generated-'... | Python | update-docs.py | DanielKeep/rust-numeric-float | mit | 5,819 | 197 | codeparrot/github-code |
ee11170feb3cfa21e3c19edbb3376522b9f06218520f9c1334dfcafabac66dba | /*
* This file is part of PV-Star for Bukkit, licensed under the MIT License (MIT).
*
* Copyright (c) JCThePants (www.jcwhatever.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 ... | Java | src/com/jcwhatever/pvs/commands/users/JoinCommand.java | JCThePants/PV-Star | mit | 2,732 | 74 | codeparrot/github-code |
20cdf531c06ec9fcf32cb007e25a8c7bc577f9322a1866c45ff76114440364f4 | package com.goncalossilva.googlemapseverywhere.model;
import com.goncalossilva.googlemapseverywhere.R;
import com.goncalossilva.googlemapseverywhere.util.LatLngUtils;
import android.content.Context;
class MarkerBridge {
private Context mContext;
private JavaScriptBridge mJavaScriptBridge;
private int mI... | Java | GoogleMapsEverywhere/src/main/java/com/goncalossilva/googlemapseverywhere/model/MarkerBridge.java | goncalossilva/GoogleMapsEverywhere | mit | 1,421 | 47 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.