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 |
|---|---|---|---|---|---|---|---|---|
772afc082faf30a46aef8456251b94059a91d89a90492168cfff3ff9d2e0c695 | // Copyright (c) 2020 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge... | JavaScript | test/chan_drain.js | uber/tchannel-node | mit | 26,957 | 905 | codeparrot/github-code |
8a349db0fb4b6446d2acc1df92ad7d101abcd479af910fe3dd3dd7c80d27f618 | The NERD Tree
=============
Intro
-----
The NERD tree allows you to explore your filesystem and to open files and
directories. It presents the filesystem to you in the form of a tree which you
manipulate with the keyboard and/or mouse. It also allows you to perform
simple filesystem operations.
The following feature... | Markdown | config/home/vim/bundle/nerdtree/README.markdown | xbudex/phantom-talk | mit | 4,081 | 104 | codeparrot/github-code |
5e07a10b7e05d59a1bc3a738348b19c38bcc0c134efc3132037f267279d65ae6 | import {DocumentBuilder} from './Document'
import {DocumentNode} from './StructureNodes'
import {getUserDefinedStructure} from './parts/userStructure'
export interface DocumentFragmentResolveOptions {
documentId?: string
schemaType: string
}
export const getUserDefinedDefaultDocumentBuilder = (
options: Documen... | TypeScript | packages/@sanity/structure/src/userDefinedStructure.ts | sanity-io/sanity | mit | 1,137 | 37 | codeparrot/github-code |
7b277fb8d3325bbafde8daaa9479974813ca4b1b71f8ae8e65e9ac7673ec0047 | #include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
int main(int argc, char **argv) {
int score = 0;
printf("CollageBored (R) Advanced Placement Literature Grader\n");
if (argc != 2) {
printf("Usage: %s [essay]\n", argv[0]);
return 1;
}
char... | C | api/problems/binary/aplit/static/aplit.c | EasyCTF/easyctf-2015 | mit | 2,022 | 46 | codeparrot/github-code |
e43d11d28c51517bf68ed2ff01c520c81052bf53d2538d96d14c88b66d62a694 | package org.commoncrawl.rpc;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.util.LinkedList;
import org.commoncrawl.async.EventLoop;
import org.commoncrawl.async.Timer;
import org.commoncrawl.io.internal.NIOClientSocket;
import org.commoncrawl.io.internal.NIOClientTCPSocket;
import org.com... | Java | src/main/java/org/commoncrawl/rpc/RPCServerChannel.java | evertrue/commoncrawl_utils | mit | 3,802 | 169 | codeparrot/github-code |
33744a2a1c2c7d632183b174ecd525ac9324e69b84b552cdd1dc84449e01749e | namespace AgileObjects.AgileMapper.Extensions
{
using System;
using System.Reflection;
using Internal;
using NetStandardPolyfills;
using ReadableExpressions.Extensions;
/// <summary>
/// Provides mapping-related extension methods for Types. These methods support mapping, and are
/// no... | C# | AgileMapper/Extensions/PublicTypeExtensions.cs | agileobjects/AgileMapper | mit | 1,417 | 44 | codeparrot/github-code |
97916aa3ff3261b046b084a8013a749ab3c70bafdad733b211787a8a5b0d9e42 | ---
layout: post
title: "How to overcome UX obstacles while working in-house?"
excerpt: |
Being a practitioner of User Experience Design in a company isn't always an easy task. People, Time, Budget, are all sorts of factors we need to take into account to deliver a good user experience for the product...
thumbnail... | Markdown | _posts/2019-11-30-overcome-ux-obstacles-working-in-house.markdown | MathieuFortune/mathieufortune.github.io | mit | 3,481 | 53 | codeparrot/github-code |
1c2872e24afa74b2cfcc26f47bccc532178580d0a0afca0321b0655ed8594d45 | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2011-2012 Litecoin Developers
// Copyright (c) 2013 Luckycoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-licens... | C | src/uint256.h | trankienhuy/mecoin | mit | 24,986 | 766 | codeparrot/github-code |
3bf447e12c7121013a1c203e7b3463ce48c279d6848dd86e6a24b0304bb7e8b7 | package services
import (
"encoding/json"
"strconv"
)
type FBPayloadApp struct {
Name string
Bundle_identifier string
Platform string
}
type FBPayload struct {
Display_id int
Title string
Method string
Crashes_coun... | GO | services/fabric.go | PredictionGuru/webhook | mit | 1,346 | 48 | codeparrot/github-code |
4ec9dd7ea2d99fc81ab6f90d2380f9c640055d5a0aaa4ec73db70b454412a03f | #include <mirrage/ecs/entity_manager.hpp>
#include <mirrage/ecs/component.hpp>
#include <mirrage/ecs/serializer.hpp>
#include <mirrage/ecs/components/transform_comp.hpp>
#include <mirrage/utils/log.hpp>
#include <mirrage/utils/string_utils.hpp>
#include <sf2/sf2.hpp>
#include <algorithm>
#include <iostream>
#inclu... | C++ | src/mirrage/ecs/src/entity_manager.cpp | lowkey42/mirrage | mit | 5,676 | 227 | codeparrot/github-code |
545242ac836010a745f0f4029b54d2e1b227fb7c4eae339998d6ecf655b7ddfa | /**
* Created by yaoyao on 15/2/6.
*/
var express = require('express');
var router = express.Router();
var paginator = require('../node_modules/bootstrap.pagination.js/bootstrap.pagination.js');
var allItems = [];
for (var i = 0; i < 123; i++) {
allItems.push({
name: (i * i).toString(),
age: i
... | JavaScript | js-demo/layout-demo/routes/getUsers.js | plantain-00/demo-set | mit | 966 | 40 | codeparrot/github-code |
30b5e70d7731d770ec88c959f76985a9c46ae2723b0211238881a33293de9f08 | package com.citelic.utility;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import com.citelic.game.entity.player.Player;
import com.citelic.game.entity.player.content.socialization.FriendChatsManager;
public final class DisplayNames {
private static ArrayList<String> cachedNames;
p... | Java | src/com/citelic/utility/DisplayNames.java | OzanKurt/Citelic-742 | mit | 1,784 | 70 | codeparrot/github-code |
2301adfb66ff53b38a3718a8f8d94f90662f5f266ff097399967671562210481 | module PragmaticSerializer
class CollectionSerializer
class ResourceOptions
def _registered_method_pairs
@registered_method_pairs ||= []
end
def _call_each_reg_method_pair(obj)
_registered_method_pairs.each do |val|
obj.public_send(val[0], *val[1], &val[2])
end... | Ruby | lib/pragmatic_serializer/collection_serializer.rb | Pobble/pragmatic_serializer | mit | 2,624 | 99 | codeparrot/github-code |
b5e4cb88223d2ef16177003d22d01b28e93c829382f71776fdd847ceccc95e14 | using System.Reflection;
using System.Web.Http;
using Autofac;
using Autofac.Integration.WebApi;
using TestableWebApi.Core.Model;
using TestableWebApi.Infrastructure.Data;
namespace TestableWebApi.Api
{
public class AutofacContainerBuilder
{
private readonly HttpConfiguration _configuration;
... | C# | src/TestableWebApi.Api/AutofacContainerBuilder.cs | mwhelan/WebApi2Testing | mit | 1,386 | 42 | codeparrot/github-code |
66e5407c9aae7710774a7c2e68f50eb1c566f4ec2c04357b68b012b3e9885e00 | <!DOCTYPE html>
<html lang="en">
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.0/themes/smoothness/jquery-ui.css" />
<script src="http://code.jquery.com/ui/1.10.4/jquery-ui.min.js"></script>
... | HTML | lib/The Near True News/articles/december-horoscopes.html | warmiros1/theNearTrueNews | mit | 10,435 | 196 | codeparrot/github-code |
030019393a2ad98770200b9e07f4e624782a2699dd5aaad764049452f0540a77 | var should = require('should'),
getAuthorUrl = require('../../../../server/data/meta/author_url');
describe('getAuthorUrl', function () {
it('should return author url if context contains author',
function () {
var authorUrl = getAuthorUrl({
context: ['post'],
... | JavaScript | core/test/unit/data/meta/author_url_spec.js | acburdine/Ghost | mit | 2,766 | 86 | codeparrot/github-code |
c5deb28189e8059f7b5224785346fa1ec21215979b6ef2e4c58477c79d7fdcab | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from __future__ import print_function
from __future__ import absolute_import
import sys
import time
import os
import itertools
from termcolor import colored
import sys
frames = {
'tetris': ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧'... | Python | pirouette/core.py | walidsa3d/pirouette | mit | 1,700 | 60 | codeparrot/github-code |
1decdf99eaf60347022015f313f58823d86f75c1cc797d36510d32baacb9f6d4 | package com.chitu.neo4j.handler.netty;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import io.netty.handler.codec.http.FullHttpRequest;
import io.netty.handler.codec.http.HttpHeaders;
import io.netty.handler.codec.http.websocketx.*;
import org.codehaus.jackson.map... | Java | src/main/java/com/chitu/neo4j/handler/netty/WebSocketChannelHandler.java | jameswei/neo4j-kernel-extension | mit | 3,297 | 84 | codeparrot/github-code |
a2e31a861c6171d409b4819d5d19d5cf0d48d4b1601dd5d613a492394d91f40a | #!/usr/bin/python
# -*- coding: utf-8 -*-
## Add path to library (just for examples; you do not need this)
import sys, os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..'))
## This example uses a ViewBox to create a PlotWidget-like interface
#from scipy import random
import numpy as np
from pyqtg... | Python | pyqtgraph/examples/ViewBox.py | robertsj/poropy | mit | 2,670 | 101 | codeparrot/github-code |
5e10a8d024658443ebbd9dc52dd4860bab082d2c9686aff99a24c1ec4cfeda19 | // This is a generated file. Not intended for manual editing.
package io.github.josehsantos.hack.lang.psi;
import java.util.List;
import org.jetbrains.annotations.*;
import com.intellij.psi.PsiElement;
public interface HackAssignmentList extends HackPsiElement {
@Nullable
HackArrayAccessExpression getArrayAccess... | Java | gen/io/github/josehsantos/hack/lang/psi/HackAssignmentList.java | jhsx/hacklang-idea | mit | 1,166 | 47 | codeparrot/github-code |
f09b63a81e9e0b9ae9440ad7b471e53bc1518a3fd10b263ad57f4c766aff4c8f | /*!
* ResponsiveLazyVids 1.2.1
*
* Copyright 2014, Jacob Peters - http://jacobpeters.co
* Credit to:
* FitVids.js: Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com
* Intrinsic Ratio Method: Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/
* Release... | JavaScript | js/responsive-lazy-vids.js | jacobcpeters/ResponsiveLazyVids | mit | 6,769 | 151 | codeparrot/github-code |
ea098c3557f6cd21ea09e19525581284c7088f41336aceaabc04f12fbbc5b8b2 | #include <iostream>
#include <algorithm>
#include <iterator>
#include <vector>
/* The STL contains a library of algorithms that work on STL containers like
vectors, lists and maps. We illustrate a few examples of those.
*/
bool pred(int x) {
if (x >= 3)
return true;
else
return false;
}
vo... | C++ | cpp/algorithms/main.cpp | niknow/cpp-examples | mit | 1,202 | 48 | codeparrot/github-code |
a2bda8da93787a5bc7c89fe2708b7431ac1cf3aaf0a29ced5fd58a8a6f2162a3 | package com.github.gigurra.heisenberg
import java.util.logging.Logger
import com.github.gigurra.heisenberg.MapData.SourceData
import scala.language.implicitConversions
import scala.reflect.runtime.universe._
import scala.util.{Failure, Success, Try}
object Migration {
val logger = Logger.getLogger(getClass.getNa... | Scala | src/main/scala/com/github/gigurra/heisenberg/Migration.scala | GiGurra/heisenberg | mit | 2,660 | 64 | codeparrot/github-code |
e338c1839b73efa69baab84a5c35045638cd70ade77661dabf0cea21dce0a089 | (function( angular ) {
/*global window, angular */
'use strict';
var $resourceMinErr = angular.$$minErr('ngResourceIO');
/**
* Create a shallow copy of an object and clear other fields from the destination
*/
function shallowClearAndCopy(src, dst) {
dst = dst || {};
angular.... | JavaScript | src/ngResourceIO.js | RomanMinkin/ngResourceIO | mit | 22,752 | 498 | codeparrot/github-code |
d0eb8c442f9348c94e4bffcfddb3fae8d0d56919325149a3fe5be6d6a6504c9a | import React, {
PropTypes
}
from 'react';
import styles from './StaticLabelResult.css';
import withViewport from '../../decorators/withViewport';
import withStyles from '../../decorators/withStyles';
import Link from '../Link';
import PubSub from 'pubsub-js';
@
withViewport@ withStyles(styles)
class StaticLabelRes... | JavaScript | src/components/StaticLabelResult/StaticLabelResult.js | DanielHabib/HowManyBalloons | mit | 1,727 | 70 | codeparrot/github-code |
6df014b5f95457e669830ad1424ab402b069370e2846758aefca34582d482f02 | import { combineReducers } from 'redux-immutablejs'
import { ADD_ITEM, ADD_ARCHIVE, SET_ACTIVE_ARCHIVE, ARCHIVES_RECEIVED, ARCHIVES_NOT_RECEIVED, ARCHIVE_ADDED, ARCHIVE_NOT_ADDED, ITEM_ADDED, ITEM_NOT_ADDED, ITEMS_RECEIVED, ITEMS_NOT_RECEIVED, DISPLAY_ARCHIVES } from '../actions'
import { DEFAULT_ARCHIVE_ID } from '..... | JavaScript | app/redux/reducers/index.js | dxu/electric-trumpet | mit | 2,508 | 104 | codeparrot/github-code |
25efe01d44901484c3d7803e662923ec559a0593cdfb62a907bbc72053002c41 | //MIT License
//Copyright 2016-Present
//James H. Money
//Luke Kingsley
//Idaho National Laboratory
//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 lim... | C# | UniCAVE2021/Assets/UniCAVE/Scripts/UniCAVE-Core/Tools/GrabberTool.cs | livingenvironmentslab/UniCAVE | mit | 5,430 | 141 | codeparrot/github-code |
58d257f6dfa85cd33424ccd24c8bb80a78c61f1944a32f5adf9ffe6ae6bd1f1b | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>circuits: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.cs... | HTML | clean/Linux-x86_64-4.10.2-2.0.6/released/8.12.2/circuits/8.7.0.html | coq-bench/coq-bench.github.io | mit | 6,664 | 163 | codeparrot/github-code |
205571751774c10b1783f22bca3032463d2d3316ee80e6b844730d6923c75999 |
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<link rel="icon" href="/favicon.ico" type="image/x-icon"/>
<link rel="shortcut icon" href="/favicon.ico"/>
<script src="//cdnjs.cloudflare.com/ajax/libs/paper.js/0.9.9/paper.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/socket.io/0.9.16/sock... | HTML | public/index.html | paramaggarwal/eventdashboard | mit | 4,336 | 186 | codeparrot/github-code |
d9c6bb32acc5ad0a5060753069a0d561d39fc8a73759c2b4dcd5904b00583d25 | import {
AreaBump,
Bar,
Bullet,
Bump,
Calendar,
Chord,
Choropleth,
CirclePacking,
Funnel,
GeoMap,
HeatMap,
Line,
Marimekko,
Network,
ParallelCoordinates,
Pie,
Radar,
Sankey,
ScatterPlot,
Stream,
Sunburst,
SwarmPlot,
TreeMap,
Voronoi,
Waffle,
} from './charts'
import {
... | TypeScript | examples/codesandbox/src/App.tsx | plouc/nivo | mit | 3,725 | 129 | codeparrot/github-code |
8e6c23f8320f5df51421fcf3edcf109d51715760a40b892f5bfd52a142cd9d48 | package com.vies.viesmachines.client.entity.machines.flying.models.airship.component;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;
public class ModelAirshipComponent4Secondary extends ModelBase
{
ModelRenderer RopeL;
ModelRen... | Java | Vies Machines/1.12.2 - 2768/src/main/java/com/vies/viesmachines/client/entity/machines/flying/models/airship/component/ModelAirshipComponent4Secondary.java | Weisses/Ebonheart-Mods | mit | 4,753 | 124 | codeparrot/github-code |
95a59a7684592d0f80a22548f9f946667c04cd27ff5af8437ff5dc5cae5b4a56 | <?php
namespace App\Notifications;
use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Notification;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
class TestNotice extends Notification
{
use Queueable;
/**
* Create a new notification instance.
... | PHP | app/Notifications/TestNotice.php | tinythink/tms | mit | 1,304 | 62 | codeparrot/github-code |
4a5f9df7974ddb847f95d51cb974194fdff6a555f7cf2dc70f9206e0fe12f888 | # coding=utf-8
import requests
import time
from pychroner import PluginMeta, PluginType
@PluginMeta(PluginType.Thread)
def do(pluginApi):
db = pluginApi.getMongoDB().getCollection("bot")
slack = pluginApi.getSlack()
while True:
url = f"https://api.foursquare.com/v2/users/63379277/scoreboard?oauth_... | Python | plugins/SlashNephy/Swarm.py | SlashNephy/PyChroner-Bot | mit | 3,092 | 72 | codeparrot/github-code |
7da77d96a3793be8c5a3a9fec3ebcc1793d316b938be4e430cd23345093a362e | // Utility functions.
var M = module.exports = {};
M.numeric = function (a, b) {
return a - b;
};
M.toArray = function (coll) {
return Array.prototype.slice.call(coll || [], 0);
};
M.flatten = function (a) {
while (a.some(Array.isArray))
a = Array.prototype.concat.apply([], a);
return a;
};
... | JavaScript | src/lib/util.js | gebrkn/copytables | mit | 2,794 | 130 | codeparrot/github-code |
05788046e6c19d3792ad973f1bd564b0d3c29fe557587c5aadee3dcc3ed6d217 | """
Tools for dealing with drifter stuff.
Functions include:
* interpolate2d
* interpolate3d
* find_final
* convert_indices
* check_points
* seed
"""
import numpy as np
from scipy import ndimage
import time
import matplotlib.tri as mtri
# from matplotlib.mlab import Path, find
from matplotlib.path import Path
def ... | Python | tracpy/tools.py | kthyng/tracpy | mit | 18,989 | 479 | codeparrot/github-code |
5b4dbe3c47c3b494de7d4b3ece61b58e37e9694cd5d59042b5c77a76811e17a7 | module SystemHealth
module Monitors
class Base
attr_reader :error_messages
def initialize
@error_messages = []
add_error_messages
end
def error_count
error_messages.count
end
def description
raise
end
private
def add_error_... | Ruby | lib/system_health/monitors/base.rb | foraker/system_health | mit | 537 | 35 | codeparrot/github-code |
66d2061f30cf59eac9027cd4671eb9f4e90982ac6c4a2bffc16e1dbfe266e81f | /**
* @deprecated Don't use this, the latest version exists in the ux-widgets repo, and Blue Ocean also uses that now
*/
export enum Result {
success = 'success',
failure = 'failure',
running = 'running',
queued = 'queued',
paused = 'paused',
unstable = 'unstable',
aborted = 'aborted',
... | TypeScript | jenkins-design-language/src/js/components/pipeline/PipelineGraphModel.tsx | jenkinsci/blueocean-plugin | mit | 3,196 | 121 | codeparrot/github-code |
0f118dad3a9e22385e86447f7eb00780888a372eb597cbb01fa11ebb272640f9 | /*----------------------------------------------------------------
Copyright (C) 2015 Senparc
文件名:ResponseMessageVoice.cs
文件功能描述:响应回复语音消息
创建标识:Senparc - 20150211
修改标识:Senparc - 20150303
修改描述:整理接口
----------------------------------------------------------------*/
namespace S... | C# | Source/Foundation/Wechat/Senparc.Weixin.MP/Entities/Response/ResponseMessageVoice.cs | timxing1987/git-tutorial | mit | 775 | 33 | codeparrot/github-code |
9c6fbfae93324013bc63b38146976fa818a3de276dd7d9654bb6447b2e357f37 | package com.uber.nullaway.handlers.stream;
/*
* Copyright (c) 2017 Uber Technologies, Inc.
*
* 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 limita... | Java | nullaway/src/main/java/com/uber/nullaway/handlers/stream/MaplikeToFilterInstanceRecord.java | uber/nullaway | mit | 1,965 | 51 | codeparrot/github-code |
92ad7309e475959bd5c9d96b8f01f91d2e181b1b070206bcc1709519792f8d1d | <?php
namespace Webforge\ProjectStack\Test;
use Webforge\Common\String as S;
use Webforge\Common\Exception;
use Webforge\Code\Test\GuzzleTester;
use Symfony\Component\BrowserKit\Cookie;
use Symfony\Bundle\FrameworkBundle\Client as TestClient;
use Webforge\Common\Preg;
use Webforge\Common\JS\JSONConverter;
/**
* A T... | PHP | lib/Webforge/ProjectStack/Test/Helper.php | webforge-labs/webforge-project-stack | mit | 3,240 | 121 | codeparrot/github-code |
063af86c8a74d7ce5e45bc56407872b7f046ee0d75fbbb291de7d50f488b121b | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>News - Summary Extraction</title>
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="... | HTML | nodejs.html | svven/pages | mit | 24,530 | 692 | codeparrot/github-code |
fd916efec1568834553a4257ed76227b052649d64b70c5598b20b22134321f3b | //TODO: Disable buttons during validation save.
// Variables.
var app = angular.module("umbraco");
// Associate directive/controller.
app.directive("formulateValidationDesigner", directive);
app.controller("formulate.validationDesigner", controller);
// Directive.
function directive(formulateDirectives) {
return... | JavaScript | src/formulate.app/Directives/validationDesigner/designer.js | rhythmagency/formulate | mit | 4,764 | 176 | codeparrot/github-code |
f01f0371387abbd19b2503a02bfc39d252a0c4913514c515ec7e5d846ad8fe90 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from core.sessionManager.Video import Video
class Project(object):
def __init__(self, name, path):
super(Project, self).__init__()
self._name = name
self._path = path
self._videos = []
self._sketchBoardVideos = [] #/!\ Unique ... | Python | core/sessionManager/Project.py | clejeu03/EWP | mit | 3,334 | 94 | codeparrot/github-code |
2fcb9dc4508840a9a4b8e5bae7a0ca3ee5531833761428f04acbc2e35726e17c | var geotools = function($) {
var DEFAULT_PRECISION = 12;
var BITS = [16, 8, 4, 2, 1];
var BASE32_CHARS = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'j', 'k', 'm', 'n', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'];
var BASE32_DECODE_MAP = {};
for (... | JavaScript | src/geotools.js | jillesvangurp/geotools-js | mit | 35,791 | 1,069 | codeparrot/github-code |
6bff347942926bf381fbace972dc83115d73aa5e8d22e1219d6e32a25a95985d | <?php
/**
* Created by PhpStorm.
* User: Soporte
* Date: 6/11/2018
* Time: 12:12.
*/
declare(strict_types=1);
namespace Greenter\Ws\Builder;
use Greenter\Ws\Services\BaseSunat;
use Greenter\Ws\Services\WsClientInterface;
/**
* Class ServiceBuilder.
*/
class ServiceBuilder
{
/**
* @var WsClientInterf... | PHP | packages/ws/src/Ws/Builder/ServiceBuilder.php | giansalex/greenter | mit | 987 | 56 | codeparrot/github-code |
45c2dfb401ddda6c71cdad411e793e1a2a88c338bd27bc28ee0f99ecf6ca4a9f | /*!
* ajax.js
*
* Copyright (c) 2013 Yoshi
* This software is distributed under the MIT License.(../../MIT-LICENSE.txt)
*/
function getRotationArray (id, src, dst, type) {
if(typeof type === 'undefined') type = 'default';
$.ajax({
url: "../../lib/cgi/get_rotation_array.cgi?src="+src+"&dst="+dst+"&id="+id,
... | JavaScript | examples/sample10/ajax.js | gpp256/glNetViz | mit | 4,069 | 148 | codeparrot/github-code |
30176050ee957d972368ce522bb1893d976a3c3e5993b4950a59598fe48928a0 | //
// Created by Rafal Sroka
//
// License CC0.
// This is free and unencumbered software released into the public domain.
//
// Anyone is free to copy, modify, publish, use, compile, sell, or
// distribute this software, either in source code form or as a compiled
// binary, for any purpose, commercial or non-co... | C | UIKit/UIView+AnimationExtensions.h | bumaociyuan/ZXFramework | mit | 3,074 | 108 | codeparrot/github-code |
6f938100c80b218588c33ba21ad60889fd5f2844efa7ed668731b145dbd0a79f | // Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "rpcserver.h"
#include "base58.h"
#include "init.h"
#include "main.h"
#includ... | C++ | src/rpcserver.cpp | person1029/metacoin | mit | 37,667 | 982 | codeparrot/github-code |
21fe3cacb33e45e3302f3e25e03a3a17b8be0d0d3ceb5322d447f9a6d548eb18 | /**
* Java break statement with label example.
* This example shows how to use java break statement to terminate the labeled
* loop. The following example uses break to terminate the labeled loop while
* searching two dimensional int array.
*
* @author Keeyana Jones <keeyanajones@yahoo.com>
*
**/
package ja... | Java | javaProject/JavaProject/src/javaproject/breakstatement/JavaBreakWithLable.java | keeyanajones/Samples | mit | 1,169 | 38 | codeparrot/github-code |
69da735fbd7e4f525b1512b39dc834fa4ba4cd8877937b1a169d22a2d817b972 | /**
* Copyright 2011 wallet.org
*
* Licensed under the MIT license (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://opensource.org/licenses/mit-license.php
*
* Unless required by applicable law or agreed to in writing, s... | Java | src/main/java/org/wallet/viewsystem/swing/action/PasteSwatchAction.java | worldcoinproject/worldcoin-wallet-java | mit | 4,555 | 119 | codeparrot/github-code |
6d020c1ba34c2f98b19c3ee0c9a183c9f41bd1ba7428e853065a0a461e4e507a | import logging
from sen.docker_backend import DockerContainer, RootImage
from sen.exceptions import NotifyError
from sen.tui.commands.base import Command
from sen.tui.views.disk_usage import DfBufferView
from sen.tui.views.help import HelpBufferView, HelpCommandView
from sen.tui.views.main import MainListBox
from sen.... | Python | sen/tui/buffer.py | TomasTomecek/sen | mit | 10,717 | 316 | codeparrot/github-code |
45985eaee36993e5daa85ace20c31a0047213015c10432e41023ab19209901ed | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections.Generic;
using System.Security.Policy;
using System.IO;
using System.Configuration.Assembli... | C# | src/mscorlib/src/System/Reflection/Assembly.CoreCLR.cs | cmckinsey/coreclr | mit | 10,889 | 224 | codeparrot/github-code |
0c6fe80b947403bc7b97ef03fc37a5bdeb025cc62650866a980a5d0c0f83e143 | "use strict";
var grunt = require('grunt'),
_ = grunt.util._,
path = require('path');
module.exports = function(opts) {
var syntax = 'Syntax: <dest>',
args = opts.args;
if (!_.isString(args))
grunt.fail.warn('Missing arguments. ' + syntax);
var contents = opts.contents,
target = this.options.target,
out... | JavaScript | lib/parser-less.js | amekkawi/grunt-htmlbuild | mit | 1,819 | 64 | codeparrot/github-code |
966b49b1347aeacd63232ab3ffc0639549347318f33641ff9fa71ef00357cae6 | #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 | simplecash/simplecash | mit | 8,790 | 275 | codeparrot/github-code |
665259f4108de3f45b2c5cc2e0a3421a0f46002b4b508a83306934975e4c16b3 | <!doctype html>
<html class="default no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>ParsingVariable | connectwise-rest-api</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" hr... | HTML | docs/interfaces/_api_api_.parsingvariable.html | vc3/connectwise-rest-api | mit | 12,628 | 256 | codeparrot/github-code |
4efda61a4fc8ddc75ce862aad241b4d463c11cc6474a9145cc342050bbf2a8e5 | /*
emit.test.js - TelemetryEvents.emit() test
The MIT License (MIT)
Copyright (c) 2014-2019 Tristan Slominski, Leora Pearson
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,... | JavaScript | test/emit.test.js | tristanls/telemetry-events | mit | 6,098 | 222 | codeparrot/github-code |
184312736eeadbcb90a4969e9222dd0d3ce77d17b2980818c901b0a93ee27ecf | /*The MIT License (MIT)
Copyright (c) 2014 PMU Staff
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, pub... | C# | PMDToolkit/Maps/NpcSpawnData.cs | Sprinkoringo/PMD-Toolkit | mit | 1,877 | 63 | codeparrot/github-code |
9797c243774299a3d6f486381f7b9d151ed8798188458a4f4f46b0cc850474e2 | <!--
Copyright 2005-2008 Adobe Systems Incorporated
Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
or a copy at http://stlab.adobe.com/licenses.html)
Some files are held under additional license.
Please see "http://stlab.adobe.com/licenses.html" for more information.
-->... | HTML | documentation/html/structadobe_1_1poly__sequence__view.html | brycelelbach/asl | mit | 8,455 | 172 | codeparrot/github-code |
31bde6ec7b1d99edd29d4d83fcf5a970d55ebeef3917c8567a597f837896b32b | // @flow
import * as React from 'react'
export default class Drone extends React.PureComponent<{}> {
processor = new Processor()
componentDidMount() {
this.processor.generate()
}
componentWillUnmount() {
this.processor.destroy()
}
render() {
return null
}
}
/**
* Adopted from @mattdiamon... | JavaScript | packages/components/src/drone.js | langri-sha/langri-sha.github.io | mit | 2,601 | 119 | codeparrot/github-code |
a6918316e44c7c22d093eee30748e24cb6e330c48f188f9aebd1e6af0e5029b7 | // @flow
import isEvent from './isEvent'
import type { Event } from '../types'
const getSelectedValues = options => {
const result = []
if (options) {
for (let index = 0; index < options.length; index++) {
const option = options[index]
if (option.selected) {
result.push(option.value)
... | JavaScript | src/events/getValue.js | erikras/redux-form | mit | 1,139 | 50 | codeparrot/github-code |
86ce860c5e2ad0899f6a573149789bfcf4ce2253a71142a04b83cb54aad0dd30 | 'use strict';
var expect = require('chai').expect;
var ConsoleLogHandler = require('../src/ConsoleLogHandler');
var Log = require('../src/Log');
describe('ConsoleLogHandler', function() {
it('can log an alert as an error with no context', function(done) {
var log = new Log('alert', 'test');
var co... | JavaScript | test/consoleLogHandlerTest.js | justinhoward/etcher | mit | 1,966 | 66 | codeparrot/github-code |
dc88ea5f10673d03539d1e33a9e7e1696fa6ef1b7023a5c892980410e76fcc13 | import java.util.Scanner;
public class Sudoku {
int[][] puzzle;
public Sudoku(){
puzzle = new int[9][9];
printPuzzle();
}
public boolean submatrixIsValid(int row, int col) {
boolean[] hashTable = new boolean[10];
row = row/3;
col = col/3;
for(int i=row; i<row+3; ++i) {
for(int j... | Java | FunJavaPrograms/Sudoku.java | leejay-schmidt/java-libs | mit | 4,252 | 164 | codeparrot/github-code |
bca38180d5ec7a6dbed4f665ece38940aee4010367f53ae7ffa434bc58e782c5 | <?php
/*
* This file is part of the Shade project.
*
* (c) A51 doo <info@activecollab.com>. All rights reserved.
*/
namespace ActiveCollab\Shade;
use ArrayAccess, ArrayIterator, Closure, Countable, InvalidInstanceError, IteratorAggregate, JsonSerializable, NotImplementedError;
/**
* Collection of named data.
... | PHP | src/NamedList.php | activecollab/shade | mit | 9,679 | 412 | codeparrot/github-code |
bdc6d17c56b5e6e0c25d6e389159103a2c03c2adb44136d6d5fa4015dd699057 | import {
GET_ORDER,
GET_ORDERS,
CHANGE_ORDER_STATE,
CLOSE_ORDER,
ADD_ORDERLINE,
ADD_ORDERLINE_PROMO,
DELETE_ORDERLINE_PROMO,
CHANGE_STATUS_ORDERLINE_PROMO,
ADD_ORDERLINE_PRODUCT,
DELETE_ORDERLINE_PRODUCT,
CHANGE_STATUS_ORDERLINE_PRODUCT,
ADD_ORDERLINE_DISH,
DELETE_ORDERLINE_DISH,
CHANGE_STAT... | JavaScript | client/src/reducers/order.js | ungs-pp1g2/delix | mit | 4,669 | 186 | codeparrot/github-code |
e5e0adf8d64a5d34922ea04dffaa271b72863d2be8297f9d93a0a8e4bc084185 | package fishing;
import org.osbot.rs07.api.model.Entity;
import org.osbot.rs07.script.Script;
public abstract class HarpoonFisher extends Fisher {
private static final String HARPOON_ITEM_NAME = "Harpoon";
HarpoonFisher(Script script) {
super(script);
}
@Override
protected void gather() {
Entity fishingS... | Java | src/fishing/HarpoonFisher.java | Dr-Evans/gatherer-bot | mit | 715 | 38 | codeparrot/github-code |
6dc26ab09a1c33a102bc0dee37f6ac194801b427c9840356b3ecc0506a382aeb | const React = require('react')
const Component = React.Component
const klassName = require('./util/className')
const timeInputCmp = require('./high-order/timeInputCmp')
class TimeInput extends Component {
constructor(props) {
super(props);
this.handleInputChange = this.handleInputChange.bind(this)
... | JavaScript | component/TimeInput.js | jerryshew/react-component | mit | 2,449 | 83 | codeparrot/github-code |
de02c23b993db0f26030a25f4839f887c48ae625aba759a6f513ce0532ff1fd3 | # frozen_string_literal: true
class OrgsController < ApplicationController
# =====================================
# Start DMPTool Customization
# =====================================
include Dmptool::OrgsController
# =====================================
# End DMPTool Customization
# =================... | Ruby | app/controllers/orgs_controller.rb | CDLUC3/dmptool | mit | 10,536 | 276 | codeparrot/github-code |
f3a73133c37704a9fd98512a9d615bc41fa8011380bdeff7236b72e4b9585b8c | package org.dataagg.codegen.model;
import java.util.ArrayList;
import java.util.List;
import org.dataagg.util.props.PropDef;
import jodd.util.StringUtil;
/**
* Entity对象item定义
* <p>
* DataAgg
*/
public class EntityItemDef extends PropDef {
private static final long serialVersionUID = 2311828431502009131L;
publ... | Java | src/main/java/org/dataagg/codegen/model/EntityItemDef.java | DataSays/wCodeGen | mit | 3,226 | 147 | codeparrot/github-code |
12c83dec0ae96c0ee9d6a51e72fcd9b4e51cf63563645c608dd66bae05c81324 | 'use strict';
/**
* Definition for Mocha's default ("run tests") command
*
* @module
* @private
*/
const symbols = require('log-symbols');
const ansi = require('ansi-colors');
const Mocha = require('../mocha');
const {
createUnsupportedError,
createInvalidArgumentValueError,
createMissingArgumentError
} = ... | JavaScript | lib/cli/run.js | outsideris/mocha | mit | 10,571 | 368 | codeparrot/github-code |
bb9066da8f32dcf5fa8dc35303cc5b68ac65d4ca86b431ead6874d40a46427e8 | $(function () {
var hoodieAdmin = top.hoodieAdmin;
function getConfig(callback) {
hoodieAdmin.request('GET', '/app/config')
.fail(function(error) { callback(error); })
.done(function(response) { callback(null, response); })
}
function setConfig(doc, callback) {
hoodieAdmin.r... | JavaScript | admin-dashboard/assets/js/main.js | simonv3/hoodie-plugin-goodreads | mit | 2,678 | 82 | codeparrot/github-code |
fb98824756219d7d4f5141b653ae0fc85f901b92bc7d15d1f9a0263b1c5339d5 | // Import the Express module
var express = require('express');
// Import the 'path' module (packaged with Node.js)
var path = require('path');
// Create a new instance of Express
var app = express();
// Create a simple Express application
app.configure(function() {
// Turn down the logging activity
app.use(e... | JavaScript | app.js | kermis/fly.kerm.is | mit | 2,438 | 96 | codeparrot/github-code |
a69325f0d173929cab621e1b18d5988abba40de6eb09f7fa435acd29d354a500 | /* crypto/sha/sha_locl.h */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and no... | C | level1/hasher/openssl/sha_locl.h | rivol/stripe-ctf3 | mit | 15,194 | 421 | codeparrot/github-code |
ed7de9bf7de396d5458b88661457b41a4651780d8db39a726d1af45255553a71 | import { nearest } from "../nearest";
describe("nearest", () => {
it("should round correctly", () => {
expect(nearest(1, 0, 1, 1)).toBe(1);
expect(nearest(0, 0, 100, 100)).toBe(0);
expect(nearest(28, 0, 100, 10)).toBe(30);
expect(nearest(28.7, 0, 100, 10)).toBe(30);
expect(nearest(28.3, 0, 100, ... | TypeScript | packages/utils/src/__tests__/nearest.ts | mlaursen/react-md | mit | 1,869 | 49 | codeparrot/github-code |
826e7644d36e81bb9db17802c8c953afb6836791bf2a365a6c76fac4603baa24 |
<!DOCTYPE html>
<!--[if IEMobile 7 ]><html class="no-js iem7"><![endif]-->
<!--[if lt IE 9]><html class="no-js lte-ie8"><![endif]-->
<!--[if (gt IE 8)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html class="no-js" lang="en"><!--<![endif]-->
<head>
<meta charset="utf-8">
<title>Category: Object-oriented Program... | HTML | blog/categories/object-oriented-programming/index.html | countaight/countaight.github.io | mit | 5,281 | 180 | codeparrot/github-code |
93987fbb93441b70e67861639095b613b4da2641658ac7dd4332c86c3c63bb50 | import React, { Component } from 'react'
import { Menu } from 'stardust'
export default class Fitted extends Component {
state = {}
handleItemClick = (e, { name }) => this.setState({ activeItem: name })
render() {
const { activeItem } = this.state
return (
<Menu>
<Menu.Item
nam... | JavaScript | docs/app/Examples/collections/Menu/Variations/Fitted.js | jcarbo/stardust | mit | 985 | 44 | codeparrot/github-code |
dc0fedd3297c73e08e6b26733b6229a9727914935683183fe6adc41fd7ce11b3 | /*
FUSE server for zx.
In general, fuse requests are sent directly as zx requests.
*/
package zxfs
import (
"clive/bufs"
"clive/dbg"
fs "clive/fuse"
"clive/x/bazil.org/fuse"
"clive/zx"
"errors"
"fmt"
"io"
"os"
"strings"
"sync"
"time"
)
/*
Implementation of fuse FS for a zx.Tree
Keeps an in-memory ca... | GO | zx/zxfs/zxfs.go | sbinet-staging/clive | mit | 13,134 | 592 | codeparrot/github-code |
b8aea21a0c01561b7275ddbc224364016cd509245329b21b25027266fed4d358 | #include <stdlib.h>
#include <stdio.h>
struct node
{
int data;
struct node* left;
struct node* right;
};
void inorder(struct node*root)
{
if(root==NULL)
{
return;
}
else
{
inorder(root->left);
printf("%d\n",root->data);
inorder(root->right);
}
}
struct no... | C | garbage/iter_bst_insert.c | wolfdale/Spaghetti-code | mit | 1,361 | 101 | codeparrot/github-code |
68750b1d307f204ada36b578148ca1c5ecc156f7be094f72bd90d643dd6676da | <?php
/**
* This is the model class for table "oauth_session_refresh_tokens".
*
* The followings are the available columns in table 'oauth_session_refresh_tokens':
* @property string $session_access_token_id
* @property string $refresh_token
* @property string $refresh_token_expires
* @property string $client_i... | PHP | app/models/SessionRefreshTokens.php | Zazza/mediabox-storage | mit | 3,444 | 108 | codeparrot/github-code |
45774664ab34496f77f4298a38dc896e090dce77cccaa3ab621d98a08510c91f | /**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2018 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
var BuildGameObject = require('../BuildGameObject');
var BuildGameObjectAnimation = require('../BuildGameObjectAnimati... | JavaScript | src/gameobjects/sprite/SpriteCreator.js | pixelpicosean/phaser | mit | 1,911 | 56 | codeparrot/github-code |
50d70fb78c0030c5fd716579d43819e49cd3242ff7293605c480b7d3e42ff879 | (function (tj, global) {
'use strict';
var numTokensRequested = 0;
var is = require('is-simple');
var allSubscribers = {}; // event -> {token: <string>, fn: <Function>}
var getUniqueToken = (function () {
numTokensRequested += 1;
return String(numTokensRequested);
});
var... | JavaScript | tj.js | matthewoates/tj | mit | 3,217 | 115 | codeparrot/github-code |
f94bd64b3bfa83dc6c577b3de65fea8f48b7f7f2f7d43f8f59212d7043b0f0e2 | /*
* Sahat Yalkabov
* MIT Licence
* 2015
*/
var gulp = require('gulp');
var gutil = require('gulp-util');
var gulpif = require('gulp-if');
var streamify = require('gulp-streamify');
var autoprefixer = require('gulp-autoprefixer');
var cssmin = require('gulp-cssmin');
var less = require('gulp-less');
var concat = requir... | JavaScript | gulpfile.js | Mikkael3/tiea207projekti2015 | mit | 3,884 | 122 | codeparrot/github-code |
793b70a03cb7060478d6e3ecbe610b27fa4081cb9cf25312fa608a1f35420136 |
#include "buffer.h"
#include <cassert>
Buffer::Buffer() :
buffer_(1, "")
{
}
std::string Buffer::getLine(const unsigned int index) const
{
assert(index < buffer_.size());
return buffer_[index];
}
void Buffer::insert(const char c)
{
buffer_[verticalCursorPosition_].insert(horizontalCursorPosition_, 1, c);
++ho... | C++ | buffer.cpp | ahoogesteger/myvoed | mit | 534 | 32 | codeparrot/github-code |
a8a34e8066cdf3781f51a8d13e7e889e53780839eda7fd9318d04b573d209896 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
namespace Bugsnag.Payload
{
public class BatchedSessions : Dictionary<string, object>, IPayload
{
private readonly KeyValuePair<string, string>[] _headers;
private readonly IConfiguration _configuration;
public Batche... | C# | src/Bugsnag/Payload/BatchedSessions.cs | bugsnag/bugsnag-dotnet | mit | 1,831 | 54 | codeparrot/github-code |
96e06d80d8acf573f2ae5677b6b8ee2498ebc3f7f6f3e1180d38d50147e0e797 | package de.idrinth.waraddonclient.service;
import java.io.File;
import javax.swing.JFileChooser;
import javax.swing.JOptionPane;
import org.apache.commons.lang.SystemUtils;
public class FileSystem
{
private final Config config;
public FileSystem(Config config) {
this.config = config;
... | Java | src/main/java/de/idrinth/waraddonclient/service/FileSystem.java | Idrinth/WARAddonClient | mit | 2,957 | 88 | codeparrot/github-code |
ed00c7929be8c2fe7bbbacb08883aae04262d22fd2de8b25afdd6e81814ee5d2 | /*! normalize.css v1.1.3 | MIT License | git.io/normalize */
/* ==========================================================================
HTML5 display definitions
========================================================================== */
/**
* Correct `block` display not defined in IE 6/7/8/9 and Firefox 3.... | CSS | css/main.css | happycog/singularity-demo | mit | 15,839 | 692 | codeparrot/github-code |
df0faa1054383aafbd1fb38c647a049b8f331b82781740801c34679860475c72 | /*
* The MIT License (MIT)
*
* Copyright (c) 2018 Chris Magnussen and Elior Boukhobza
*
* 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 limitatio... | Java | src/main/java/com/chrisrm/idea/ui/MTTabbedPaneUI.java | mallowigi/material-theme-jetbrains | mit | 5,061 | 143 | codeparrot/github-code |
11248c0fbb0d6d129a790aa881c4c986a575672f1d3c55e8cc1459a3f3993517 | 'use strict';
// Author: Lucas Galleguillos.
// A basic stack data structure. Works with primitive types.
// Also, somewhat of clone in that it has the same methods as the one found
// in Java SE 7. Additionally, I just copied the descriptions of the
// methods in Java SE 7. See here https://docs.oracle.com/javase/7/... | JavaScript | DataStructures/Stack/stack.js | h93xV2/Miscellaneous | mit | 1,758 | 76 | codeparrot/github-code |
87c0f1c48151a7cc83dc977321d663a123aabef163ef2b24adf30399804fef74 | (function (Handsontable) {
var AutocompleteEditor = Handsontable.editors.HandsontableEditor.prototype.extend();
AutocompleteEditor.prototype.init = function () {
Handsontable.editors.HandsontableEditor.prototype.init.apply(this, arguments);
this.$htContainer.handsontable('updateSettings', {height: this.get... | JavaScript | src/editors/autocompleteEditor.js | winniefox/jquery-handsontable | mit | 6,347 | 214 | codeparrot/github-code |
bcf0402e51f9e061a9fb0642b28498084c87b0eaf33a17e36382190fec547a3b | package com.codepath.apps.restclienttemplate.activities;
import android.content.Context;
import android.content.Intent;
import android.graphics.Paint;
import android.graphics.Typeface;
import android.net.Uri;
import android.provider.ContactsContract;
import android.support.design.widget.CollapsingToolbarLayout;
import... | Java | app/src/main/java/com/codepath/apps/restclienttemplate/activities/ProfileActivity.java | ghilbing/Twitter | mit | 9,814 | 287 | codeparrot/github-code |
38b5e52cff5dc2bdc739725a98097bf9bed5fb656a47c14497f4bc659da290ee | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.core.implementation;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.Meth... | Java | sdk/core/azure-core/src/test/java/com/azure/core/implementation/ByteBufferCollectorTests.java | Azure/azure-sdk-for-java | mit | 3,397 | 87 | codeparrot/github-code |
9b4a856848239fc335184c6a13794ccd114d7a8bb2827af07ce484016ff9f116 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>float: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" ... | HTML | clean/Linux-x86_64-4.05.0-2.0.1/released/8.11.0/float/8.10.0.html | coq-bench/coq-bench.github.io | mit | 6,792 | 172 | codeparrot/github-code |
805498e5a699acc50ed16678b716e5fb3328d05bae251c434558a5c6c65af509 | using System;
using System.IO;
using System.Linq;
namespace GzsTool.Core.Crypto
{
public class Decrypt2Stream : Stream
{
private readonly Stream _input;
private readonly int _size;
private readonly uint _key;
private readonly StreamMode _streamMode;
private ... | C# | GzsTool.Core/Crypto/Decrypt2Stream.cs | Atvaark/GzsTool | mit | 4,506 | 181 | codeparrot/github-code |
e1b44df703ac40ed3e012d58c43441e70655ba96409785e9969910866209f54d | (function() {
'use strict';
angular
.module('permitmeApp')
.directive('minbytes', minbytes);
function minbytes () {
var directive = {
restrict: 'A',
require: '?ngModel',
link: linkFunc
};
return directive;
function linkF... | JavaScript | src/main/webapp/app/components/form/minbytes.directive.js | UMKC-Law/permit-matrix | mit | 1,144 | 46 | codeparrot/github-code |
11287e19a721c58c238890fa5a385c12325934aaf614f834d97f76c7e2f8c9f4 | /********************************************************************
* COPYRIGHT:
* Copyright (c) 1997-2015, International Business Machines Corporation and
* others. All Rights Reserved.
********************************************************************
* File TMSGFMT.CPP
*
* Modification History:
*
* D... | C++ | src/third_party/icu/source/test/intltest/tmsgfmt.cpp | junhuac/MQUIC | mit | 72,848 | 1,965 | codeparrot/github-code |
46e18347a32e0a6cec8b7ab920256298c2c292483813b8a2528662864b078b96 | package com.swistak.webapi.builder;
import static org.junit.Assert.assertEquals;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import com.google.common.collect.Range;
import com.swistak.webapi.Cost_delivery;
import com.swistak.webapi.model.DeliveryInfo;
import com... | Java | src-tst/com/swistak/webapi/builder/DeliveryInfoBuilderTest.java | zaza/swistak-webapi | mit | 6,923 | 177 | codeparrot/github-code |
1f2c28efd48f80cad5fc37275691239f94994626fa1fbb8e04d4ecfe5a08f2f3 | /*
* Copyright (c) 2010-2013 OTClient <https://github.com/edubart/otclient>
*
* 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... | C | src/client/houses.h | Flatlander57/TheImaginedOTClient | mit | 3,581 | 114 | codeparrot/github-code |
e5abc450314ea4a4c3f6a8779dc2bb1e9769f547608505ab84c5734083bbe546 | package com.github.simonpercic.waterfallcache.expire;
import com.github.simonpercic.waterfallcache.ObservableTestUtils;
import com.github.simonpercic.waterfallcache.cache.RxCache;
import com.github.simonpercic.waterfallcache.expire.LazyExpirableCache.TimedValue;
import com.github.simonpercic.waterfallcache.model.Simpl... | Java | waterfallcache/src/test/java/com/github/simonpercic/waterfallcache/expire/LazyExpirableCacheTest.java | simonpercic/WaterfallCache | mit | 7,677 | 203 | codeparrot/github-code |
793a581720451abd793a38e3123955e863fa64f09613774655a79987cf9d4b37 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>float: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" ... | HTML | clean/Linux-x86_64-4.07.1-2.0.6/released/8.7.1+1/float/8.8.0.html | coq-bench/coq-bench.github.io | mit | 6,733 | 168 | codeparrot/github-code |
cdef3bd70f8d4b720cb89b3c4aeccd407ee41c46c0f91387af53204142890f3f | #!/usr/bin/env python
# file: git-origdate.py
# vim:fileencoding=utf-8:fdm=marker:ft=python
#
# Copyright © 2015-2018 R.F. Smith <rsmith@xs4all.nl>.
# SPDX-License-Identifier: MIT
# Created: 2015-01-03T16:31:09+01:00
# Last modified: 2020-12-16T00:25:34+0100
"""Report when arguments were checked into git."""
import os... | Python | git-origdate.py | rsmith-nl/scripts | mit | 1,259 | 44 | codeparrot/github-code |
08e3b0c6c34ca9c2a5321c76862ed229c87fe15b88a5a138e33d4c4c51a4b19f | __author__ = 'Aaron J. Masino'
def plot_ROC(y_actual, y_scores, title='ROC'):
fpr, tpr, _ = roc_curve(y_actual, y_scores)
roc_auc = auc(fpr, tpr)
# Plot ROC curve
plt.figure()
plt.plot(fpr, tpr, label='Area = {0:0.2f}'''.format(roc_auc))
plt.grid()
plt.plot([0, 1], [0, 1], 'k--')
plt.x... | Python | learn/plotters.py | chop-dbhi/arrc | mit | 2,963 | 77 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.