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 |
|---|---|---|---|---|---|---|---|---|
f0eaf096a003ba08e1aa3ab0bbaecd30e141855c1a0da6d9da29af7eaefde03a | module Interapp
module Cryptography
def self.generate_keypair
private_key = 1 + SecureRandom.random_number(group.order - 1)
public_key = group.generator.multiply_by_scalar(private_key)
public_key_binary = ECDSA::Format::PointOctetString.encode(public_key, compression: true)
return private_... | Ruby | lib/interapp/cryptography.rb | zhoutong/interapp | mit | 1,011 | 31 | codeparrot/github-code |
feb6e8f5d53a25e175086f9bb5031aa1414c9a75c066811be0995816c1d69693 | <style type="text/css">
.login{
width:800px;
height:500px;
border:1px solid #fff;
margin-left:-400px;
left:50%;
position:absolute;
top:50%;
margin-top:-300px;
background-color:#FFFFFF;
border-radius:3px;
z-index:10000;
display:none;
}
.... | PHP | ui/login.php | vczero/aissues | mit | 6,739 | 274 | codeparrot/github-code |
57d2e59b9454a0d1191b4195480db6734d75d6225029b83f368f54db9c5ae719 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace GUI.InputMethods.KeystrokEventGenerator
{
class KeyCombinations
{
/// <summary>
/// Open applicationConfiguration manager.
/// </summary>
public const int... | C# | StereoImaging/StereoImaging/KeystrokEventGenerator/KeyCombinations.cs | orlin369/StereoCamera | mit | 1,407 | 54 | codeparrot/github-code |
9d21795957818c6fa3ea7973a1ec1b2dcfbf2bcc31ada381390566ddcb403837 | var gulp = require('gulp');
var util = require('gulp-util');
var inject = require('gulp-inject');
var sass = require('gulp-sass');
var notify = require('gulp-notify');
var eslint = require('gulp-eslint');
var minifyCSS = require('gulp-minify-css');
var browserify = require('gulp-b... | JavaScript | gulpfile.js | jdinartejesus/MiniJamBerlin-Trump | mit | 3,427 | 115 | codeparrot/github-code |
97f4e918653a80190945c57ad61c305ea9febfda87921cfc1da17c201a57412f | #!/usr/bin/env node
/* This file is part of the Readability2 project.
* https://github.com/mvasilkov/readability2
* Copyright (c) 2018 Mark Vasilkov (https://github.com/mvasilkov)
* License: MIT */
const chalk = require('chalk')
const { table } = require('table')
const { Score } = require('./utils')
const PAGES_D... | JavaScript | x/report.js | mvasilkov/readability2 | mit | 1,658 | 71 | codeparrot/github-code |
f31a0c2982ddbda29b8d6bc3dc4429106bca903a30c1da5edc3cd6ccda8a44cd | <!DOCTYPE html>
<html class="pl">
<head>
<title>Pattern Lab</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width" />
<!-- Google Fonts -->
<link href='https://fonts.googleapis.com/css?family=Merriweather:400,300,300italic,400italic,700,700italic,900,900italic' rel='stylesheet' ... | HTML | public/patterns/00-atoms-02-text-06-hr/00-atoms-02-text-06-hr.html | jgunawan/patternlab-uswds | mit | 3,039 | 98 | codeparrot/github-code |
7125696ec37468f719180b79a2bda4b48d14147db3d08c04145ba0bed2dff95e | // Portfolio
(function($) {
"use strict";
var $container = $('.portfolio'),
$items = $container.find('.item'),
portfolioLayout = 'fitRows';
if( $container.hasClass('portfolio-centered') ) {
portfolioLayout = 'masonry';
}
$container.isotope({
filter: '*',
animationEngine: 'best-available',
... | JavaScript | js/custom-portfolio.js | perkisar/perkisar.github.io | mit | 1,784 | 80 | codeparrot/github-code |
530511848396ccc23ac588c3da5c28c2cf1f2971719879e846258358373a878d | import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.awt.image.*;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
public class Reading_Image {
public Reading_Image() {
try {
BufferedI... | Java | Machine_Learning/src/Reading_Image.java | nourhrJM/Machine_Learning_project | mit | 839 | 33 | codeparrot/github-code |
8d0416bad78aec76e71c048e305bb8bb629628e066799911f08d3a76af043e56 | #!/usr/bin/env bash
branch=$(git rev-parse --abbrev-ref HEAD 2> /dev/null)
function assert_feature_branch() {
if [[ "$1" == "HEAD" ]]; then
echo "You're in some detached state, please switch to a non-dirty branch."
exit 1
elif [[ "$1" == "master" ]]; then
echo "You must be on a feature branch; can't p... | Shell | push_branch.sh | Locu/chronology | mit | 1,455 | 54 | codeparrot/github-code |
3cc1b5fc2f7dfc05df1e586b536ba3130e4d37b921be56620779ef8f0ca7717c | <?php
/**
* CodeIgniter
*
* An open source application development framework for PHP
*
* This content is released under the MIT License (MIT)
*
* Copyright (c) 2014 - 2016, British Columbia Institute of Technology
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this softw... | PHP | system/libraries/Form_validation.php | szsailing/CodeIgniter-All-In-One | mit | 37,721 | 1,610 | codeparrot/github-code |
d2fcac16495a3943cace77c291fc20f18c863b489fdfcbbce063118cbcd7eb01 | using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using SuperDump.Models;
using System;
using System.Reflection;
namespace SuperDumpModels {
public class SDCombinedStackFrameConverter : JsonConverter {
public override bool CanConvert(Type objectType) {
if (objectType.GetTypeInfo().IsAssignableFrom(typeof(SDCom... | C# | src/SuperDumpModels/converter/SDCombinedStackFrameConverter.cs | Dynatrace/superdump | mit | 924 | 31 | codeparrot/github-code |
7cc6697e9ad49386a8dc42b7f01a5bdc839532531983f50233355024e55e4db3 | using System.Collections.Generic;
using System.Net.Http;
using System.Reactive.Linq;
using Akavache;
using Gitter.ViewModels;
using Gitter.Views;
using ModernHttpClient;
using ReactiveUI;
using ReactiveUI.XamForms;
using Splat;
using Xamarin.Forms;
namespace Gitter
{
public class AppBootstrapper : ReactiveObject,... | C# | Gitter/AppBootstrapper.cs | flagbug/UnofficialGitterApp | mit | 1,552 | 50 | codeparrot/github-code |
fbdf41db18c6201b2c2cfbdfedf5d4a0a9faaa01b8c9cda516aa743140e143a8 | module Bobot
# Base Facebook Messenger exception.
class Error < ::StandardError; end
class FieldFormat < ::ArgumentError
def initialize(description, value = nil)
super("#{description}#{value.present? ? " : #{value}'" : ''}")
end
end
# Forbidden Action exception
class ActionNotAllowed < Bobot... | Ruby | lib/bobot/exceptions.rb | navidemad/bobot | mit | 1,702 | 70 | codeparrot/github-code |
fca37779232f960ed610529f700081c066c78d89a98e1df0d8b4e2cbf64eeeea | package org.invitation.web.rest;
import org.invitation.model.CardInfo;
import org.invitation.service.CardService;
import org.invitation.web.model.CardInfoForm;
import org.invitation.web.model.CardPosterCrop;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.P... | Java | src/main/java/org/invitation/web/rest/CardRestController.java | silvajs/invitation | mit | 1,863 | 46 | codeparrot/github-code |
719b55a16e7af47f81d829a62c0bc0b27c5e3c81da47e4af46d80cca63de30b7 | <?php
/**
*
* @package ymkm-sql
* @author Yoann Mikami <yoann@ymkm.org>
*/
require_once(__DIR__.'/Abstract.php');
require_once(__DIR__.'/../Iface/OrderAware.php');
/**
* Abstract class which defines entities valid inside a ORDER BY part of an SQL query
*
* @package ymkm-sql
*/
abstract class YMKM_SQL_Entity... | PHP | YMKM/SQL/Entity/AbstractOrder.php | yochiro/ymkm-sql | mit | 1,634 | 72 | codeparrot/github-code |
95caab70063f5cdb6610c9906b2210cd51e0532a21dfc053ffb1d8a2179162b5 |
namespace AcademyEcosystem
{
public class Boar : Animal, IHerbivore, ICarnivore
{
private const int StartBoarSize = 4;
private const int BiteSize = 2;
public Boar(string name, Point location)
: base(name, location, StartBoarSize)
{
}
pu... | C# | C# OOP/Exam Preparation OOP/Academy Ecosystem/AcademyEcosystem/AcademyEcosystem/Boar.cs | EmilPopov/C-Sharp | mit | 848 | 38 | codeparrot/github-code |
cfc79a558e3ed1aaf3d8af90639f0c8e2979733acb80de89ceadb5129341395e | function send_vote(self, vote){
var uvote = parseInt(vote);
var row = $(self).closest("tr");
var dist = parseFloat(row.find("td#dist").text());
var text = row.find("td#text").text();
var img_url = row.find("td>img#img_url").attr("src");
var query_text = $("table>tbody>tr>td#query_text").text();... | JavaScript | webapp/app/static/js/script.js | menshikh-iv/image2pic | mit | 1,074 | 36 | codeparrot/github-code |
340069650a9bf43c313741cdf73fc144e911b7a74f44211d5460feb43a8f2528 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires"... | HTML | A2.jekyll/2014/02/15/lyonscodingbatp2.html | gerbal/mobwebdev | mit | 10,902 | 269 | codeparrot/github-code |
3156007c40bb14ab0494b5a3fad674fa0346918366d62671b4bd67944b76a49d | <!DOCTYPE html>
<html lang="en">
<head>
{% include head.html %}
<title>{% if page.title %} {{ page.title }} {% endif %} {{ site.name }}</title>
<script>
{% include data.js %}
</script>
<script>
$(document).on("pageshow",function(){
console.log("pageshow event");
var this_object = data.... | HTML | _layouts/default.html | ucsb-ccs-computing/ucsb-ccs-computing.github.io | mit | 965 | 36 | codeparrot/github-code |
e4259d071c9962ab4360503ea0edade102f9039514c0d6d9eba49d3780e42273 | import chainer
import chainer.functions as F
import chainer.links as L
class vgga(chainer.Chain):
insize = 224
def __init__(self):
super(vgga, self).__init__()
with self.init_scope():
self.conv1 = L.Convolution2D( 3, 64, 3, stride=1, pad=1)
self.conv2 = L.Convolution... | Python | chainer/vgga.py | soumith/convnet-benchmarks | mit | 1,463 | 36 | codeparrot/github-code |
07be90ae8bb736a96e1b3f2771b0501268b67895aeb6cb39601b1c0884ee6e6c | package nl.erwinvaneyk.core.logging;
import ch.qos.logback.classic.Level;
import lombok.Getter;
import nl.erwinvaneyk.communication.BasicMessage;
import nl.erwinvaneyk.core.NodeAddress;
public class LogMessage extends BasicMessage{
@Getter
private final String log;
@Getter
private final Level level;
public Lo... | Java | src/main/java/nl/erwinvaneyk/core/logging/LogMessage.java | erwinvaneyk/distributedrmi | mit | 699 | 33 | codeparrot/github-code |
5ae8ce79596d0b0fa5d659da4307e4810aa9929676e660be9a5433532d014192 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>regexp: 29 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="styl... | HTML | clean/Linux-x86_64-4.02.3-2.0.6/released/8.5.2/regexp/8.5.0.html | coq-bench/coq-bench.github.io | mit | 9,571 | 189 | codeparrot/github-code |
1ce47a42f68e57077d4c509cd8252f868863ec0ad56377d79928ae5028bfee9b | using System;
namespace Braintree
{
public class PayPalAccount : PaymentMethod
{
public virtual string Email { get; protected set; }
public virtual string BillingAgreementId { get; protected set; }
public virtual string Token { get; protected set; }
public virtual bool? IsDefaul... | C# | src/Braintree/PayPalAccount.cs | braintree/braintree_dotnet | mit | 1,892 | 45 | codeparrot/github-code |
a0f6fcae2737416c26bb4e7c5dd61ad626aac11f227ebb966c8820f71e175931 | package kvnetfilter
import (
"log"
"os/exec"
"strings"
"syscall"
)
const (
ip6tablesPath = "/usr/sbin/ip6tables"
ipsetPath = "/usr/sbin/ipset"
)
func checkTestError(err error) (bool, error) {
switch {
case err == nil:
return true, nil
case err.(*exec.ExitError).Sys().(syscall.WaitStatus).ExitStatus() ... | GO | kvnetfilter/helpers.go | 42wim/registrator-work | mit | 2,506 | 107 | codeparrot/github-code |
3f430d7c9a23ad0ef3c58a44cd4f2a0e2368bced933464d6f550d80456344e75 | 'use strict';
// Use applicaion configuration module to register a new module
ApplicationConfiguration.registerModule('scriptcam')
.directive('scriptcamera', [
function() {
return {
restrict: 'AE',
link: function(scope, element, attrs) {
var initialized = false;
... | JavaScript | public/modules/scriptcam/scriptcam.module.js | jimkast/beaglecam | mit | 4,696 | 170 | codeparrot/github-code |
299f857b0de910505d8b92aed29d21cc96d4911a1e2dd1ea4bb04c29244cc183 | /*
Script: Language.ru.js
MooTools FileManager - Language Strings in Russian
Translation:
[Ilya V. Goryachev](http://cok-studio.ru/)
*/
FileManager.Language.ru = {
more: 'Подробнее',
width: 'Ширина:',
height: 'Высота:',
ok: 'Ok',
open: 'Выбрать файл',
upload: 'Загрузка',
create: 'Создать пап... | JavaScript | Language/Language.ru.js | cpojer/mootools-filemanager | mit | 6,723 | 124 | codeparrot/github-code |
07bed1312df6057129851e6de6b12f2c93cfc8d10a241372bb37231acc8b8954 |
#pragma once
#include "base/mappable.hpp"
#include "geometry/grassmann.hpp"
#include "geometry/linear_map.hpp"
#include "geometry/quaternion.hpp"
#include "geometry/r3_element.hpp"
#include "geometry/r3x3_matrix.hpp"
#include "geometry/sign.hpp"
#include "serialization/geometry.pb.h"
namespace principia {
namespace... | C++ | geometry/rotation.hpp | Norgg/Principia | mit | 3,035 | 95 | codeparrot/github-code |
99c9f2d0cf799daa40197e02810f8c991291b3bcd3d1bdef45cbec5132fed3a4 | <?php
namespace battlekits\economy;
use onebone\economyapi\EconomyAPI;
use pocketmine\Player;
use pocketmine\plugin\PluginBase;
class Economy extends BaseEconomy{
public function give($amt, Player $player){
if(!$this->checkReady()) return false;
return ($this->getAPI()->addMoney($player, $amt) ===... | PHP | src/battlekits/economy/Economy.php | Falkirks/BattleKits | mit | 1,408 | 45 | codeparrot/github-code |
affc308174e853d68f48a3067336b2d349733edcae63bb3533ab5f2109449516 | <?php
$debut = microtime();
//ob_start();
include('require.php');
require_once($server . 'class/monster.class.php');
require_once($server . 'class/fight/Fight.class.php');
require_once($server . 'class/fight/Fighter.class.php');
$fight = new Fight($_GET['fight_id']);
$char = unserialize($_SESSION['char']);
$_SESSION[... | PHP | fight.php | xrorox/arelidon | mit | 5,509 | 144 | codeparrot/github-code |
2e4798963a165123d84d328ecc5d5f9cc97c5f50d5ae734abb099907319365b7 | package net.nemerosa.ontrack.ui.resource;
import lombok.Data;
import net.nemerosa.ontrack.model.structure.ProjectEntity;
import java.util.function.BiFunction;
import java.util.function.BiPredicate;
@Data
public class PagePathLinkDefinition<T extends ProjectEntity> implements LinkDefinition<T> {
private final St... | Java | ontrack-ui-support/src/main/java/net/nemerosa/ontrack/ui/resource/PagePathLinkDefinition.java | flesire/ontrack | mit | 837 | 31 | codeparrot/github-code |
f2c7f049c49e3195e8cd8f4b82b0d74eafa48ae6d18f757237b30dd3914539b8 | ---
layout: post
title: "Passwordless Login with Facebook Account Kit"
description: "Learn about passwordless authentication and how Facebook Account Kit can help your app become password free."
date: 2016-04-21 08:30
alias: /2016/04/21/facebook-account-kit-passwordless-authentication/
category: Technical Guide, Identi... | Markdown | _posts/2016-04-21-facebook-account-kit-passwordless-authentication.markdown | mike-casas/blog | mit | 25,486 | 562 | codeparrot/github-code |
b9ee948215b8c7a05179bc739749fac8adfc12f34a9b40ac4f01763e9fcbfe85 | /*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
... | Java | lib/lib_src/httpcomponents_source/httpcomponents-client-4.4/httpmime/src/main/java/org/apache/http/entity/mime/content/FileBody.java | byronka/xenos | mit | 4,338 | 149 | codeparrot/github-code |
63b2ccfaa61c177dc33a3c4ee1f7b5123315915c76404db8a9b76ae8467bb8bd | <?php
namespace Phoenix\Exceptions;
/**
* Phoenix framework defined Exceptions.
*
* For these exception constants must be explicitely
* defined translation relationship with Translator
* in AppConfigurator. It is convention that exceptions
* defined at this place should be an integer greater
* than 0 and lo... | PHP | Phoenix/Exceptions/FrameworkExceptions.php | mpi77/PhoenixFramework | mit | 1,639 | 55 | codeparrot/github-code |
52c6e1c0c35048cb8af424e815e8a13835bc8f559f0f0718cc61dc63c8df6ee4 | #include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <unistd.h>
#include "proto/SocketServer.h"
#include "proto/SocketConnection.h"
#include "util/Assert.h"
namespace dh
{
namespace proto
{
#define DH_LOG_CLASS "SocketServer"
... | C++ | deephome/common/source/proto/SocketServer.cpp | dmitry-root/home-automation | mit | 3,904 | 162 | codeparrot/github-code |
fc6818a45206448ac5dab1efa57d2452cbbe138da36848105785be6edac4ba31 | <?php
function adminTrans($file , $word)
{
return trans($file.'.'.$word);
}
function encodeJson($value)
{
return json_encode($value , JSON_UNESCAPED_UNICODE);
}
function getCurrentLang()
{
return \Mcamara\LaravelLocalization\Facades\LaravelLocalization::getCurrentLocale();
}
function concatenateLa... | PHP | app/Application/Helpers/lang.php | zizohassan/laraflat | mit | 6,798 | 237 | codeparrot/github-code |
d589d8acba7f73d6012bce6fe1396f5c84c8b485bc196b63dddf08476cba3b71 | using System.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Text;
using System.Web;
namespace Root.Web.JavaScript
{
public class JavaScriptObjectDictionary : IEnumerable<KeyValuePair<string, string>>
{
private OrderedDictionary _dictionary = null;
... | C# | Root.Web/JavaScript/JavaScriptObjectDictionary.cs | kolotygin/RootPosition | mit | 4,282 | 141 | codeparrot/github-code |
501b26f89bb048e4ebfb113f0853292ac148cb404d47d079a64c68b22115db7b | //
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once
#include <armnn/Types.hpp>
#include <armnn/IRuntime.hpp>
#include <armnn/Deprecated.hpp>
#include <ISubgraphViewConverter.hpp>
#include <armnn/backends/IBackendContext.hpp>
#include <armnn/backends/IMemoryManager.hp... | C++ | include/armnn/backends/IBackendInternal.hpp | ARM-software/armnn | mit | 8,721 | 216 | codeparrot/github-code |
03c301392ede195574d3f96eb75152b7cae6a6f73475aefb78c5f251e10be003 | package com.wallethub.kcomplementary.reader;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
import org.pmw.tinylog.Logger;
/**
*
* This class has the responsibility to
* create and initialize the property object,
* used to... | Java | java/kcomplementary/src/main/java/com/wallethub/kcomplementary/reader/KComplementaryReader.java | Ciriola/wallethub | mit | 1,903 | 72 | codeparrot/github-code |
31d41e7c87a3bf5646d3909e8579d64884ba55ab3c5e164fdec362654594b934 | package tk.luoxing123.corpus;
import java.io.File;
import java.io.IOException;
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.standard.StandardAnalyzer;
import org.apache.lucene.document.Document;
import org.a... | Java | src/main/java/tk/luoxing123/corpus/InferenceEngine.java | luoxing91/entityLinking | mit | 5,059 | 181 | codeparrot/github-code |
8c2ad92b53ebc492e634e1dd2206ffdf623efc6391032d8da508e17c20f8b673 | # -*- coding: utf-8 -*-
from datetime import datetime
from collections import namedtuple
import netCDF4 as nc4
import numpy as np
import pandas as pd
from pygc import great_distance
from shapely.geometry import Point, LineString
from pocean.utils import unique_justseen, normalize_array, generic_masked
from pocean.cf... | Python | pocean/dsg/profile/om.py | joefutrelle/pocean-core | mit | 7,029 | 201 | codeparrot/github-code |
7c0876dce9cce8b2bbb5fc3a471bcdc9902f51c19ee446a6fb72a70d09187afb | //
// BCLParse.c
// Basic Control Layer
//
// Created by Floris Fredrikze on 13/11/14.
// Copyright (c) 2014 MiniMind. All rights reserved.
//
// 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... | C | Code/BCLParse.c | Floris497/BCL | mit | 6,401 | 185 | codeparrot/github-code |
b31053b9b994ef0a1a4e925293ae786e81a80d1cc5ecb86735aa44e695b83b45 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Login Page - Photon Admin Panel Theme</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<link rel="shortcut icon" href="http://photonui.orangehilldev.com/css/css_comp... | HTML | lib/assets/css/css_compiled/@{photonImagePath}plugins/elrte/js/bootstrap/images/photon/js/js/plugins/jquery.countdown.js.html | user-tony/photon-rails | mit | 14,797 | 183 | codeparrot/github-code |
04c4903f0aa469dfc7a9c131031f61e20519d9ae15ebb517bc4cc98ada57aa1a | "use strict";
var zipWith = regeneratorRuntime.mark(
// zipWith :: (a -> b -> c) -> [a] -> [b] -> [c]
function zipWith(f, a, b) {
var aIterator, bIterator, aObj, bObj;
return regeneratorRuntime.wrap(function zipWith$(context$1$0) {
while (1) switch (context$1$0.prev = context$1$0.next) {
case 0:
... | JavaScript | src/es5/zipWith.js | zeusdeux/lazit | mit | 942 | 39 | codeparrot/github-code |
c6305b95a6f825fae49a99ed259157f074e25e681d1e59647290e4166e0bcfe6 | // HyperMD, copyright (c) by laobubu
// Distributed under an MIT license: http://laobubu.net/HyperMD/LICENSE
//
// DESCRIPTION: Convert content to Markdown before pasting
//
import * as CodeMirror from 'codemirror'
import { Addon, FlipFlop, suggestedEditorConfig } from '../core'
import { cm_t } from '../core/type'
/*... | TypeScript | src/addon/paste.ts | laobubu/HyperMD | mit | 3,074 | 107 | codeparrot/github-code |
55b0c10f5b70c166a26d3c4cb9701c2236ea113d1a029affd5b7c7cd55d74225 | #!/usr/bin/env node
/*
* Automate the process of farming hangout URLs using a selenium browser.
* Requires a configuration file, "farmingConf.json", which contains google
* credentials for the account which will do the farming, containing the
* following:
*
* {
* "serverUrl": "https://unhangout.media.mit.edu",... | JavaScript | bin/selenium-farmer.js | unhangout/unhangout | mit | 3,156 | 90 | codeparrot/github-code |
4ad6234b412ab08904ca69850d7dd673841238a486577c6a8c4c610392c13f41 | require 'uri_template'
require 'forwardable'
require 'active_support'
module Cetacean::Resource
extend Forwardable
def_delegators :hal, :[], :fetch
def attributes
hal.except('_links', '_embedded')
end
def embedded(rel=nil)
return hal['_embedded'] if rel.nil?
rel = rel.to_s
if (document =... | Ruby | lib/cetacean/resource.rb | benhamill/cetacean | mit | 678 | 39 | codeparrot/github-code |
31ee6f294c9ac6dcf8e139729a3425f5d40bdf6ddf7b933116bb937608d78874 | /**
*
* Smyle Developer common
*
* @author Subburajan Mayilandan
* @date February 2013
*
***************************************************************************************8***/
$2("validator", ["lang", "date-format"], function(S) {
function Base_V() {
return this;
}
Base_V.prototype... | JavaScript | src/common/js/validator.js | subburajan/DynJS | mit | 2,045 | 93 | codeparrot/github-code |
905d30b87892042b5f7743bb509ff88bc4eff3bbeeb3de0d7a90f6d39140a1c0 | app.service('softInfo',function($cookieStore,$rootScope,$http){
this.version='v1.0';
this.domain="";//"http://39.108.15.12:9966";
this.excel_url=this.domain+'/v1/exportact';//导入excel地址
this.excel_url_transfer=this.domain+'/v1/txexport';//导出自动转账excel地址
this.excel_url_transfer_single=this.domain+'/v1/txexportsingle'... | JavaScript | web_content/mined/js/service.js | mzmuer/sprite-game | mit | 4,742 | 149 | codeparrot/github-code |
2958144da98fd182420def73220ab041f332c3f8ea8a3525157af551aa55d150 | // --------------------------------------------------
var Filter = (function() {
var mulTable = [1,57,41,21,203,34,97,73,227,91,149,62,105,45,39,137,241,107,3,173,39,71,65,238,219,101,187,87,81,151,141,133,249,117,221,209,197,187,177,169,5,153,73,139,133,127,243,233,223,107,103,99,191,23,177,171,165,159,77,149,9,13... | JavaScript | experiments/common/js/filter.js | kajiyan/republic | mit | 11,159 | 415 | codeparrot/github-code |
d835c26a65cae2146a186578a1094cc81d1f883ee987d1c360e5369ec753dbcc | var J, JustJS;
((function(){
var bindList = {
object: [ 'clone', 'equal', 'at', 'debug' ],
array: [ 'clone', 'equal', 'swap', 'intersect', 'unite' ],
number: [ 'clone', 'equal' ],
string: [ 'clone', 'equal', 'removeSpace', 'holeStr' ]
};
var functionContainer = {
ob... | JavaScript | JustJs-0.1.0.js | zry656565/Game1024 | mit | 8,928 | 251 | codeparrot/github-code |
a405671bf287e60147373b59e59c7f150ac0ffafe9bb373079034d6e9da41a0c | from etl.pipeline.tableuploader import UploadTable
import etl.cleaners.clean_kippnj as clean_kippnj
import etl.db_schema.SQLtables_cols as SQLtables_cols
import config
def main():
# Student IDs
UploadTable(rawcsv_dict = { 'kipp_nj_students': config.DATA_PATH + 'kipp_nj/raw_data/students_db_jul20.csv' },
rawtoc... | Python | code/etl/uploaders/load_kippnj.py | dssg/education-college-public | mit | 3,663 | 117 | codeparrot/github-code |
f0684926f9b8bbf01cfeee69f589a7529bb1f53f25467b560c927715f2fa743f | <?php
namespace Devy\UkrBookBundle\Entity;
use DateTime;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints\Email;
use Symfony\Component\Validator\Constraints\Length;
use Symfony\Component\Validator\Constraints\NotBlank;
use Symfony\Component\Validator\Mapping\ClassMetadata;
/**
* Message
... | PHP | src/Devy/UkrBookBundle/Entity/Message.php | mkhrystunov/my_cms | mit | 4,016 | 235 | codeparrot/github-code |
12c8a4493cf0483735a1f71a3e8a63d83bafb094d43e68b21dd9000d25bc0ab9 | package com.xgimi.metro.view;
import java.util.ArrayList;
import java.util.List;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
im... | Java | android/GimiLauncher/src/com/xgimi/metro/view/BatteryIcon.java | hikelee/projector | mit | 15,155 | 391 | codeparrot/github-code |
821036f0eed3ecadde8c8ffb3fae93ebd62522a4b2c6da453c63830c91c22237 | using System;
using System.IO;
using System.Reflection;
using System.Runtime.Serialization;
namespace ARKBreedingStats
{
public static class FileService
{
private const string JsonFolder = "json";
public const string ValuesFolder = "values";
public const string ValuesJson = "values.js... | C# | ARKBreedingStats/FileService.cs | cadon/ARKStatsExtractor | mit | 10,443 | 285 | codeparrot/github-code |
587a2e3b438aaadf3c45f878aac0e22d72a1e491ab988da574c2a35cb1634283 | /**
* Created by Josh Chan on 02-12-2016.
*/
import { Component, OnInit, NgModule, Inject } from '@angular/core';
import { OT_GConstants, IGConstants } from './../../constants/GConstants';
import { Message } from 'primeng/primeng';
import globalVar = require('./../../globalVar');
@Component({
selector: 'my-set... | TypeScript | client/app/components/setting/setting.component.ts | shing1630/hk_rain | mit | 1,653 | 56 | codeparrot/github-code |
434d30d699454ebe1ee6efa26430acc327c1d62825216c0caf9cbd0b53e89e05 | import { PrintablePrimitive } from './printable_primitive.js';
import { displayNativeString, writeNativeString } from './print_native_string.js';
import { isEqual } from './equality.js';
import { hashArray } from './raw_hashing.js';
import { hashForEqual } from './hashing.js';
import { racketCoreError } from './errors.... | JavaScript | racketscript-compiler/racketscript/compiler/runtime/core/vector.js | vishesh/racketscript | mit | 2,762 | 119 | codeparrot/github-code |
3db68df71078d14b20540a15c973d4bcb0d1a89a12cdf72ceb5f7095030ad846 | package fr.minibilles.basics.sexp;
import java.util.HashMap;
import java.util.Map;
public class SMatcher {
private final SExpVisitor sCatcherSearchVisitor = new SExpVisitor.Walker() {
@Override
public void visit(SVariable toVisit) {
String name = toVisit.getName();
if ( variableMap.containsKey(name) ) {
... | Java | basics-core/src/main/java/fr/minibilles/basics/sexp/SMatcher.java | jeancharles-roger/fr.minibilles.basics | mit | 1,929 | 82 | codeparrot/github-code |
edb5d9f4b3a8fd24543f03ded489c91afeec17608ea4b68b8eff0cdcd3747601 | /* eslint-env jest */
// Mock localStorage
const globalObject = require('../../src/util/get-global')()
const localStorage = require('../mocks/local-storage')
globalObject.localStorage = localStorage
const logdown = require('../../src/browser')
describe('localStorage.debug', () => {
beforeEach(() => {
console.l... | JavaScript | test/browser/local-storage-debug-var.test.js | caiogondim/logdown.js | mit | 4,323 | 158 | codeparrot/github-code |
72e16abef8df5130127960872d02ded7a4a16e05ff4c7b1e20b4b149c6d246c7 | /*
* This file is part of the Tempo-project package http://tempo-project.org/>.
*
* (c) Mlanawo Mbechezi <mlanawo.mbechezi@ikimea.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
'use strict';
var RouterManager = require('./router.... | JavaScript | src/Tempo/Bundle/AppBundle/Resources/assets/js/app.js | tempo-project/tempo | mit | 1,333 | 51 | codeparrot/github-code |
bf7a01fbd360892975f196767e1e4f1c994fad2da503995b485b96b9da51b34e | /* $Id$ */
/* WARNING: The type of JPEG encapsulation defined by the TIFF Version 6.0
specification is now totally obsolete and deprecated for new applications and
images. This file was was created solely in order to read unconverted images
still present on some users' computer systems. It will never be exten... | C | src/libtiff/tif_ojpeg.c | kmx/mirror-im | mit | 76,652 | 2,490 | codeparrot/github-code |
9c88fe85b2a0934997f3559d6cbfe01ad226ffa5a99ec2b40816a0b109d09991 | <nav class="page-nav nav grid__item">
<h1 class="nav__title">
{{#if isCompany}}
<a href=".">{{presskit.title}}</a>
{{else}}
<a href="..">{{company.title}}</a>
{{/if}}
</h1>
<aside class="nav__subtitle">
{{#if isProduct}}
<a href="..">press kit</a>
{{else}}
<a href="{{presskit.... | HTML | assets/_includes/nav.html | pixelnest/presskit.html | mit | 2,787 | 129 | codeparrot/github-code |
7190074bad0f398ee21be0c499d6c3c8f0f4c5f8a97fda7748cfaba5d9df2bf4 | /*
* Copyright (C) 2013-2015 Sergey Kosarevsky (sk@linderdaum.com)
* Copyright (C) 2013-2015 Viktor Latypov (vl@linderdaum.com)
* Based on Linderdaum Engine http://www.linderdaum.com
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provid... | C | Chapter7/1_SDL2UI/Src/Rendering/Canvas.h | corporateshark/Mastering-Android-NDK | mit | 5,152 | 140 | codeparrot/github-code |
0e66c0238ad07fa76e26edc131adf9c4a24c4dff55fc01e30eb32ffd97bb737a | <?php
$str = file_get_contents('php://input');
$obj = json_decode($str, true);
$email = $obj['email'];
$nickname = $obj['name'];
$password = $obj['password'];
$headshot = $obj['headshot'];
$playerID;
$resObj = array();
if (! empty($email) && ! empty($nickname) && ! empty($password)) {
try {
require_once 'php_modul... | PHP | app/register_handle.php | lukewang1990/airhockey | mit | 1,874 | 64 | codeparrot/github-code |
f99b82037452ca40cf6336b1131445f14404b5bf37bd3aabcc7cfc18c911ba85 |
namespace Photon.LoadBalancing.MasterServer.ChannelLobby
{
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using ExitGames.Logging;
using Photon.LoadBalancing.Common;
using Photon.LoadBalancing.Events;
using Photon.LoadBalancing.MasterServ... | C# | Code/ShareLib/ExitGames-Photon-Server-SDK_v3-2-10-4248/src-server/Loadbalancing/LoadBalancing/MasterServer/ChannelLobby/GameChannel.cs | ShuaiPointChen/def | mit | 11,011 | 353 | codeparrot/github-code |
0ae9176af6f0281813f6784bc79e7a08804867868ff45654c0d0e23abb3ae07d | /* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
*
* Data Differential YATL (i.e. libtest) library
*
* Copyright (C) 2012 Data Differential, http://datadifferential.com/
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditi... | C++ | libmemcached-1.0.15/libtest/memcached.cc | pgaref/memcached_bench | mit | 5,534 | 245 | codeparrot/github-code |
2bf6fb920bcfba2a2f0562ffdc2de5ceab782b7f46d7a5292c0fdd13fbc23386 | using System.Collections.Generic;
using Noobot.Core.MessagingPipeline.Middleware;
using Noobot.Core.MessagingPipeline.Request;
using Noobot.Core.MessagingPipeline.Response;
using Noobot.Toolbox.Plugins;
using FlatFile.Delimited.Attributes;
using Noobot.Core.Plugins;
using System.Linq;
namespace Noobot.Toolbox.Pipelin... | C# | src/Noobot.Toolbox/Pipeline/Middleware/LearnMiddleWare.cs | SidneyAks/CapricaCoctothorpe | mit | 2,499 | 66 | codeparrot/github-code |
1fc1862f3efd6cc1925c77aa8699e79a62a175fcf867dc223ccffdf53c2d3ca8 | use crate::reflect::value::value_ref::ReflectValueMut;
use crate::reflect::ReflectValueBox;
use crate::reflect::ReflectValueRef;
use crate::reflect::RuntimeTypeBox;
#[derive(Debug, Clone)]
pub(crate) struct DynamicOptional {
elem: RuntimeTypeBox,
value: Option<ReflectValueBox>,
}
impl DynamicOptional {
pu... | Rust | protobuf/src/reflect/dynamic/optional.rs | stepancheg/rust-protobuf | mit | 987 | 37 | codeparrot/github-code |
e279f09f74de86eda8e72be505220e28f84b16765a2753764f599a9a8fec9b59 | # frozen_string_literal: true
require "timeout"
require "io/wait"
require "http/timeout/null"
module HTTP
module Timeout
class Global < Null
def initialize(*args)
super
@timeout = @time_left = options.fetch(:global_timeout)
end
# To future me: Don't remove this again, past y... | Ruby | lib/http/timeout/global.rb | httprb/http.rb | mit | 2,886 | 119 | codeparrot/github-code |
60e746555e147adc21b0a1438c09285bc65c418b49023049ccaec3702a88d719 | using System;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Security.Principal;
using System.Windows;
using System.Windows.Controls;
namespace MemoryDump
{
/// <summary>
/// Interaction logic for MainWindow.x... | C# | MainWindow.xaml.cs | torkildr/MemoryDumper | mit | 6,018 | 180 | codeparrot/github-code |
f699ea1fe30c72a681b1a1829bc6f9943815be2a629bced56c520ce43a1fcb98 | # -*- coding: utf-8 -*-
import json
from flask import request, Response
class TokenError(Exception):
pass
class OutgoingResponse(object):
ATTACHMENT_FILEDS = ('title', 'text', 'color', 'images')
def __init__(self):
self.text = None
self._attachments = []
def set_text(self, text):... | Python | flask_bearychat/bearychat.py | shonenada/flask-bearychat | mit | 2,945 | 100 | codeparrot/github-code |
7f4b844350ce852513fb63fd28049ebb8a5bb20c35b8165674e25a3b54e71920 | // Type: Highsoft.Web.Mvc.Charts.ArearangeSeriesDataEvents
using System.Collections;
using Newtonsoft.Json;
namespace Highsoft.Web.Mvc.Charts
{
public class ArearangeSeriesDataEvents : BaseObject
{
public ArearangeSeriesDataEvents()
{
this.Click = this.Click_DefaultValue = "";
... | C# | Highsoft.Web.Mvc/src/Highsoft.Web.Mvc/Charts/ArearangeSeriesDataEvents.cs | pmrozek/highcharts | mit | 3,746 | 106 | codeparrot/github-code |
b1c5cd3330a1476ca3c6549ad3205147dfa063402644b7f37f04a9aa04393328 | #!/usr/bin/env bash
echo "--------------------------------------------------------"
echo " Installation Script"
echo " Fireguard Soluções em Tecnologia Ltda"
echo " Version: 1.0.0"
echo " Author: Ronaldo Meneguite"
echo "--------------------------------------------------------"
source /vagrant/scripts/functions.sh
FI... | Shell | services/bootstrap/start.sh | fireguard/server-starter | mit | 1,774 | 56 | codeparrot/github-code |
9c246ec517a8fbfc4f2340d87e8a962f8e6b42ba8220fb47d8449e2fd627b391 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>We survived Week 1!</title>
<meta name="description" content="" />
<meta name="HandheldFriendly" content="True" />
<meta name="viewport" content="width=device-width, initial-sc... | HTML | 2015/07/17/We-survived-Week-1.html | GWCATT/gwcatt.github.io | mit | 8,221 | 180 | codeparrot/github-code |
73e31a9955b3d5db5163289d5571f3aef24e2ce1e506f19f3da561af55d88795 | from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework.status import HTTP_204_NO_CONTENT
from users.serializers import UserSerializer
from rest_framework.permissions import AllowAny
from django.contrib.auth import login, logout
from rest_framework.authentication import... | Python | users/views.py | KDD-OpenSource/fexum | mit | 1,286 | 37 | codeparrot/github-code |
98e7a4b8e1ca7b32fd0b511ad86f0b0e2c581ba849549b568c667168294da690 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Login Page - Photon Admin Panel Theme</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<link rel="shortcut icon" href="http://photonui.orangehilldev.com/css/css_comp... | HTML | lib/assets/css/css_compiled/@{photonImagePath}plugins/elrte/js/bootstrap/js/plugins/js/images/photon/login-logo@2x.png.html | user-tony/photon-rails | mit | 14,791 | 183 | codeparrot/github-code |
1a656c657422a652224a1b98bdc7f49215768b9f35c3f94592359286af7fc2fb | package cluster
import (
"context"
"net/http"
"time"
"github.com/cenkalti/backoff"
"github.com/containous/mux"
"github.com/containous/traefik/log"
"github.com/containous/traefik/old/types"
"github.com/containous/traefik/safe"
"github.com/docker/leadership"
"github.com/unrolled/render"
)
const clusterLeader... | GO | cluster/leadership.go | aantono/traefik | mit | 3,936 | 147 | codeparrot/github-code |
7e25cff0099fbcb297f4a5044ddd70adc0351dc5f71a9c5f600b1eac01ba3669 | __author__ = 'TPei'
from tkinter import *
from data.manager import *
from data.DataHandler import DataHandler
class App:
def __init__(self, master):
master.wm_title("Jawbone Visualizer")
self.button_width = 25
self.description = Label(master, text="Please choose a visualization mode:")
... | Python | main_gui.py | TPei/jawbone_visualizer | mit | 3,797 | 118 | codeparrot/github-code |
9378362b73192d06b4090857d06fb8927eee77e40f3f6e3a7a79a163c5891a89 | package advanced.datastructure.random.lc384_shuffleanarray;
import java.util.Random;
/**
* Shuffle a set of numbers without duplicates.
* Example:
* // Init an array with set 1, 2, and 3.
* int[] nums = {1,2,3};
* Solution solution = new Solution(nums);
* // Shuffle the array [1,2,3] and return its result. ... | Java | 1-algorithm/13-leetcode/java/src/advanced/datastructure/random/lc384_shuffleanarray/Solution2.java | cdai/interview | mit | 1,542 | 54 | codeparrot/github-code |
fd3f29fbf6f2ad0ff3652982e282c235cdea83c9aad4925299749f4b6a691cca | package com.chrisplus.beaconrecorder;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import android.content.Context;
import android.os.Environment;
import android.view.LayoutInflater;
impo... | Java | src/com/chrisplus/beaconrecorder/BeaconAdapter.java | Chrisplus/iBeaconRecord | mit | 3,589 | 136 | codeparrot/github-code |
1d1f17ad89e86776b37cf4904f87242cc3ceb0bfff76a5766cbe7a29b4ba8507 | const Mode = Object.freeze( { "interval":1, "timeout":2, "scheduled":3 } );
// TODO: Properly handle promise based functions
class Periodic
{
constructor( interval_ms, mode, func )
{
// Private members
this._interval = interval_ms;
this._mode = Mode[ mode ];
this._isRunni... | JavaScript | src/lib/Periodic.js | OpenROV/openrov-cockpit | mit | 2,368 | 106 | codeparrot/github-code |
d4a0a54b2f3f6a16224b943ef6f0d0bd238f0cb98f3a3d77c1c36c49ec7fc034 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>hammer-tactics: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min... | HTML | clean/Linux-x86_64-4.05.0-2.0.6/released/8.8.0/hammer-tactics/1.2+8.10.html | coq-bench/coq-bench.github.io | mit | 7,305 | 182 | codeparrot/github-code |
8119757456711a8cbeadd2ad3975ca62cfc73ceb443eea798b7e4c979312dead | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>lc: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="s... | HTML | clean/Linux-x86_64-4.10.1-2.0.6/released/8.11.1/lc/8.10.0.html | coq-bench/coq-bench.github.io | mit | 7,198 | 180 | codeparrot/github-code |
263a0c8b7b62ae3a2a39ff2d5c97798b3600ff61b5ecee8ea64a4af9c03f149e | using System.Collections.Generic;
using System.IO;
using System.Text;
namespace DbfDataReader
{
public class DbfTable : Disposable
{
private const byte Terminator = 0x0d;
private const int HeaderMetaDataSize = 33;
private const int ColumnMetaDataSize = 32;
public DbfTable(strin... | C# | src/DbfDataReader/DbfTable.cs | yellowfeather/DbfReader | mit | 4,878 | 174 | codeparrot/github-code |
96f58b709671e3b8732666be09eeaf51d7f0e7a09672cb97f5ba287f81bdb81e | #!/bin/bash
cd "$(dirname "${BASH_SOURCE[0]}")" \
&& . "../../utils.sh"
declare -r HOSTNAME="$1"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
print_in_purple "\n UI & UX\n\n"
execute "defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true && \
defaul... | Shell | scripts/os/preferences/macos/ui_and_ux.sh | evandropaes/dotfiles | mit | 4,382 | 97 | codeparrot/github-code |
9ce1d72ec92992d32eaafd946e7ab0dfec50c56fb07642b3ca93416e45306b28 |
package us.kbase.taxonomyservice;
import java.util.HashMap;
import java.util.Map;
import javax.annotation.Generated;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotatio... | Java | lib/src/us/kbase/taxonomyservice/CreateTaxonomyOut.java | janakagithub/taxonomy_service | mit | 2,021 | 79 | codeparrot/github-code |
48fcbcd5cfa9904918327d341ef1ef3a5d7ee34cfdef1b047a2ceeb7463fc789 | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
class Header extends Component {
renderSignLinks() {
if (this.props.authenticated === true) {
// show links to report, practice, and signout
return (
<div className="col-lg-7... | JavaScript | src/components/header.js | cynthiacd/capstone-factoring-app | mit | 2,148 | 83 | codeparrot/github-code |
1f696eef5dc8bf195da2e624492ae989da39689c5d69760da8d914446f641f30 | import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid1 import ImageGrid
from matplotlib.cbook import get_sample_data
def get_demo_image():
f = get_sample_data("axes_grid/bivariate_normal.npy", asfileobj=False)
# z is a numpy array of 15x15
Z = np.load(f)
return Z, (-3, 4, -4, ... | Python | 3367OS_Code/3367OS_04_Code/ch04/ch04_rec05_custom_grids.py | pletisan/python-data-viz-cookbook | mit | 1,158 | 45 | codeparrot/github-code |
ec9159cf73059d61fdf3ebe36e32ad880d8fa0ea77799c8ed8dcf8b1f9ead324 | #!/usr/bin/env python
#
# Copyright (c) 2012, JT Olds <hello@jtolds.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to us... | Python | src/ast/parse.py | jtolds/pants-lang | mit | 26,451 | 780 | codeparrot/github-code |
c326109b562872438b27d02ae643ceb57f27653155bce4387197a08c45365803 | {% extends "layouts/_block_content.html" %}
{% from "components/fieldset/_macro.njk" import onsFieldset %}
{% from "components/input/_macro.njk" import onsInput %}
{% from "components/password/_macro.njk" import onsPassword %}
{% from "components/button/_macro.njk" import onsButton %}
{% set errorType = data['error'][... | HTML | frontstage/templates/sign-in/sign-in.html | ONSdigital/ras-frontstage | mit | 5,898 | 166 | codeparrot/github-code |
2f23c5c29972f5e7bf6374ebbb45fc42d610af7d7512cb289311cbbf3556aa79 | import Ember from 'ember';
const cloudinary = Ember.$.cloudinary;
const { computed, get, merge } = Ember;
const { notEmpty } = computed;
export default Ember.Component.extend({
classNames:['CloudinaryImgView'],
classNameBindings:['hasImage'],
cloudinaryId: null,
alt: null,
height: null,
width: null,
fo... | JavaScript | addon/components/cloudinary-img-view.js | jordpo/ember-cli-cloudinary-toolkit | mit | 1,231 | 53 | codeparrot/github-code |
e14dec3754446e963b497c9cf96f4e7bf45e8adf66ed818ee6f4eb8e10450a38 | <?php
get_header(); ?>
<?php
$currentCatObj = get_queried_object();
$currentCatSlug = $currentCatObj->slug;
?>
<script>
window.currentCategory = "<?php echo $currentCatSlug; ?>";
</script>
<main class="main">
<div class="cap" data-cap>
<div class="shape--circle" data-shape-container></div>
<h2 class=... | PHP | src/category.php | dnlml/dilui | mit | 4,600 | 149 | codeparrot/github-code |
e6fe9ae1c01977f7a4187fd30af815bd9485dfb8c068e7345681897258a6f492 | using System.Diagnostics;
public static partial class GFX
{
////////////////////////////////// Macros / Defines ///////////////////////////
public static double[] DeltaTTable = { 121, 112, 103, 95, 88, 82, 77, 72, 68, 63, 60, 56, 53, 51, 48, 46, 44, 42, 40, 38, 35, 33, 31, 29, 26, 24, 22, 20, 18, 16, 14, 12, 11, ... | C# | HTML5SDK/wwtlib/AstroCalc/AADynamicalTime.cs | juoni/wwt-web-client | mit | 3,503 | 80 | codeparrot/github-code |
c074f97cccdac46ebd1c02e666d3555ad75c2462b2e2a0764b75b7c465340343 | <?php
namespace PM\MonsterBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use PM\MonsterBundle\Entity\MonsterSubType;
use PM\MonsterBundle\Form\MonsterSubTypeRegisterType;
use PM\MonsterBundle\Form\MonsterSubTypeEditType;
class MonsterSubTypeController extends Controller
{
public fun... | PHP | src/PM/MonsterBundle/Controller/MonsterSubTypeController.php | quentinl-c/Player_manager | mit | 4,980 | 127 | codeparrot/github-code |
077b687d71728b61c4d902941dc5f426524a71eb8af2dc78b52cb7631197943e | var connectDomain = require('connect-domain');
var ejs = require('ejs');
var express = require('express');
var _handlers = require('./handlers');
var partials = require('express-partials');
var fs = require('fs');
var log4js = require('log4js');
var nconf = require('nc... | JavaScript | lib/ute.js | cliffano/ute | mit | 2,101 | 75 | codeparrot/github-code |
9a576288bca0042e240da843c1cf4492d53093261eca6a34b6b7889a49601508 | <?php
namespace Kendo\UI;
class TreeView extends \Kendo\UI\Widget {
protected $ignore = array('items');
protected function name() {
return 'TreeView';
}
protected function createElement() {
$items = $this->getProperty('items');
if ($items) {
$element = new \Kendo... | PHP | application/third_party/kendo/lib/kendo/UI/TreeView.php | mehdi89/darulirfan-sb | mit | 10,535 | 326 | codeparrot/github-code |
4716d0037e8e59f84c20ec425fa6bb45c439702284fcbfa690d87338cecf7339 | /*
* Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | C++ | Boss2D/addon/webrtc-jumpingyang001_for_boss/test/fuzzers/forward_error_correction_fuzzer.cc | koobonil/Boss2D | mit | 4,201 | 115 | codeparrot/github-code |
40f642f56f6dd6155157d2e81c75c337d415cf1eac48fbf6e6df073c27ca0489 | <?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Form\Extension\Core\DataTransformer;
use Symfony\Comp... | PHP | src/Symfony/Component/Form/Extension/Core/DataTransformer/StringToFloatTransformer.php | MatTheCat/symfony | mit | 1,492 | 66 | codeparrot/github-code |
5c9181c759ccd709e827064d4cc66e563f0bfa94ac01a974c8b401b5dd66d219 | var d3 = require("d3");
var Model = require("model-js");
var ChiasmDataset = require("chiasm-dataset");
var getColumnMetadata = ChiasmDataset.getColumnMetadata;
module.exports = function scale(my, name){
var scaleName = name + "Scale";
var scaleDomain = name + "ScaleDomain";
var scaleRange = name + "Scale... | JavaScript | src/mixins/scale/scale.js | chiasm-project/chiasm-charts | mit | 2,468 | 82 | codeparrot/github-code |
6699c908229c1903dd87d8f17fa3c78f8e6adadf92b509f268c707b63767606d | 'use strict';
define([
'underscore',
'backbone',
'handlebars',
'presenter',
'collections/overallRanking',
'collections/pillarScoreRanking',
'collections/ranking-scores',
'views/federal-disclaimer',
'views/chartView',
'text!../../layouts/ranking-content.handlebars'
], function(_, Backbone, Handlebar... | JavaScript | sites/all/themes/edi/scripts/views/ranking-content.js | Vizzuality/environmental-democracy-index | mit | 4,047 | 153 | codeparrot/github-code |
a98e0cefc998fe82090e0f7575a5e64d4b2d8fd659e7b4ff9be0da11298d4500 | //
const cp = require('child_process')
const crypto = require('crypto')
const fs = require('fs')
const glob = require('glob')
const rimraf = require('rimraf')
const {join, relative} = require('path')
const {SESSION_DIR, MAX_CLONE_DURATION_MS} = require('../config')
const {store, actions} = require('./ac... | JavaScript | lib/handle_changes.js | kasbah/git-clone-server | mit | 4,408 | 141 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.