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
d843c220f5e986075ddfeeefce967cffd974e64675a2f6cf3729cd6baffa51a0
'use strict'; var Resource = require('./Resource'); var Request = require('../Request'); var utils = require('../Utils'); var extend = require('extend'); var ResourceTypes = require('../constants/resourceTypes'); /** * Inputs Resource * * @param {object} options - SDK Options. * @class * @extends Resource */ fu...
JavaScript
src/resources/Inputs.js
ingest/ingest-js-sdk
mit
3,093
103
codeparrot/github-code
0b9a6051dca6565095c1704a60b83b3c57cafc804d054f3f6687212abea7f1af
package de.liebig.lighthouse.roles; import java.util.Arrays; import java.util.List; import java.util.Optional; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service public class RoleService { @Autowired p...
Java
src/main/java/de/liebig/lighthouse/roles/RoleService.java
liebig/lighthouse
mit
1,037
42
codeparrot/github-code
7ac5d6077b3321da3d702e14a39b690f47da5fbf40c40f87468430f2a62bcd5e
package redis import ( "errors" "fmt" "time" "github.com/garyburd/redigo/redis" ) type Redis struct { conn redis.Conn prefix string } var ( ErrNotFound = errors.New("not found") ErrInvalidValue = errors.New("invalid value") ) const Prefix = "go-token" func NewRedis(conf *RedisConf, prefix string) (*...
GO
redis/redis.go
canthefason/go-token
mit
2,555
146
codeparrot/github-code
f491fc34bea2da2899614cee003146cd7dd6244cfa4de7708c73efa4713c429d
import React, { Component, PropTypes } from 'react'; import { connect } from 'react-redux'; import Helmet from 'react-helmet'; import { fetchUserStarredList, loadUserStarredList, loadUserStarredListMore } from '../../actions/entry.js'; import Translated from '../../components/ui/Translated.js'; import InfiniteScroll ...
JavaScript
src/views/userProfile/UserStarred.js
yoo2001818/shellscripts
mit
2,847
92
codeparrot/github-code
99b43126a895acf7fcd337a5cbb0c2bfbbda7bf138f3aa5c0a7cf1a43f03a065
/** * Team PrintStackTrace - Copyright 2014 * @author Zachary Podbela * Date Created: 12/4/14 * Date Modified: 12/5/14 */ package sharing.twillio; import java.io.DataOutputStream; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.util.Base64; import javax.net.ssl...
Java
src/sharing/twillio/PSTTwillioCore.java
thefreshduke/voogasalad_utils
mit
4,681
136
codeparrot/github-code
8ef1816d10cde18bed72ce806c63f8066d3a4d717ee15fb6d141abed88ac591f
--- layout: page_title title: <i class="fa fa-archive fa-lg"></i> titlename: 归档 keywords: 所有文章按时间排序归档 description: 所有文章按时间排序归档 comments: false --- {% for post in site.posts %} {% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %} {% capture this_month %}{{ post.date | date: "%m" }}{% endcapture ...
HTML
pages/archive.html
angusty/angusty.github.io
mit
1,227
40
codeparrot/github-code
a211767914a68e5c182f93168104183e6e1723a02c786549f93069340b6fe741
"use strict"; var w = 780; //width var h = 400; //height var padding = { top: 40, right: 190, bottom: 40, left: 45 }; var stack = d3.layout.stack(); var colorsList = ["#000000", "#3300BB", "#1f77b4", "#2ca02c", "#999955", "#ff7f0e", "#ff0000", "#ff69b4", "#992299", "#551a8b", "#777777"]; //Easy colo...
JavaScript
live_stream/static/live_stream/js/viz-base.js
haystack/eyebrowse-server
mit
8,970
306
codeparrot/github-code
2d96bf8bd341dd01ea2af85a6e3e3730145310ba539947fbbca87eb978575b48
/* * @project YASMIJ.js, 'Yet another simplex method implementation in Javascript' * @author Larry Battle * @license MIT License <http://www.opensource.org/licenses/mit-license> */ var YASMIJ = require('./YASMIJ.base.js'); /** * Output Class * @constructor */ var Output = function (obj) { this.result = obj; t...
JavaScript
src/YASMIJ.Output.js
LarryBattle/YASMIJ.js
mit
1,107
54
codeparrot/github-code
eda3b51decdcbe6a7ec68a3b33eb53275f8cd6a0102c589ca2fee56139a88295
<?php namespace AppBundle\Controller\Front; use AppBundle\Entity\Publication; use AppBundle\Form\DefaultPublicationType; use AppBundle\Form\DefaultPublicationEditType; use Doctrine\Common\Collections\ArrayCollection; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Request; use Symf...
PHP
src/AppBundle/Controller/Front/DefaultPublicationController.php
MelanieBousquet/Projet5_Formation_web-developpeur-junior_OpenClassrooms
mit
2,298
70
codeparrot/github-code
592b1ad77bfd3110aa97c246d3dea758b232b1a33b1cf630757ae8425c7504f0
'use strict'; const { Project, Role, Tool, behaviorFactory } = require('cv-core'); const restify = require('restify'); const util = require('../util'); const getProjectBehavior = util.getBehavior(behaviorFactory.types.PROJECT); const projectSchema = { id: '/project', type: 'object', properties: { name: { ...
JavaScript
server/project.js
lvaldovinos/cv-be
mit
8,262
291
codeparrot/github-code
993251276ea0e67ca50d7937fe6dc72aa83f72f3d7b838b1914ef7fbe6ef4ff0
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>domain-theory: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.m...
HTML
clean/Linux-x86_64-4.05.0-2.0.1/released/8.8.0/domain-theory/8.5.0.html
coq-bench/coq-bench.github.io
mit
6,980
168
codeparrot/github-code
365eacb07fea0fa2423f8ff5bfb9f3208667ba2c83860ecdd4cd2b21bc657561
#include "tiles.h" const int TILE_SETS_COUNT = 1; void LoadTileSets(int tileWidth, int tileHeight) { TILE_INFO.TileWidth = tileWidth; TILE_INFO.TileHeight = tileHeight; int i; AGE_ListInit(&TILE_INFO.tileSetsList, sizeof(AGE_Sprite)); AGE_Sprite tileSet; char buffer[100]; for (i = 0; i < TILE_SETS_COUNT; ++i...
C
tiles.c
rokn/Helsys3
mit
1,061
40
codeparrot/github-code
8a718cfae9944c72d7951068b4d83602f88a059a4b5141fcedbb01b358643d98
package org.elder.sourcerer; import com.google.common.base.Preconditions; import org.jetbrains.annotations.NotNull; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.List; import java.util.Map; import java.util.UUID; import java.util.function.Function; import java.util.stream.Collectors; impor...
Java
sourcerer-core/src/main/java/org/elder/sourcerer/DefaultAggregateRepository.java
elder-oss/sourcerer
mit
9,639
217
codeparrot/github-code
c934a8a57d65d00b1a75309c7c1ba38e419c47fd557616bb085a82c79851c07b
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Race_type_model extends CI_model { protected $_table = 'race_type'; public $race_type_id; public $race_type_type; public $race_type_description; public $race_type_order; public $race_type_default_result_type_id; public $race_ty...
PHP
public/system/race/modules/race_type/models/race_type_model.php
iufer/race
mit
1,384
50
codeparrot/github-code
40c90db37b1f7d4a08577382a7a61e889c9e5929edae2718ad6edfe03ee7e889
#!/usr/bin/python import serial import time import random import sys s = None num_leds = 93 ticks = 96 sleep_time = 0.0 def flush_input(): s.flushInput() def wait_for_ack(): while s.inWaiting() <= 0: pass...
Python
python/gaydar4.py
jhogsett/linkit
mit
3,902
120
codeparrot/github-code
04a5ed6000f10a0003678694bb8b4d91b62a48a1493bd74e7db953fe845fe201
<!DOCTYPE html> <html xmlns:msxsl="urn:schemas-microsoft-com:xslt"> <head> <meta content="en-us" http-equiv="Content-Language" /> <meta content="text/html; charset=utf-16" http-equiv="Content-Type" /> <title _locid="PortabilityAnalysis0">.NET Portability Report</title> <style> ...
HTML
Reports/pr/provision.1.5.1/Provision-portable-net45%2Bnetcore45%2Bwpa81%2Bwp8%2BMonoAndroid1%2BMonoTouch1.html
kuhlenh/port-to-core
mit
11,610
285
codeparrot/github-code
936132e0bddc355c09f1eabe4329630c6adaae995ccf26a5246185332b43c52c
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import os import six import six.moves.urllib as urllib import tabulator from .resource_file import ( InlineResourceFile, LocalResourceFile, RemoteResourceFi...
Python
datapackage/resource.py
sirex/datapackage-py
mit
11,528
335
codeparrot/github-code
e98f17276d2430c5097d63475c8dfc5c39ae002438c8ff086496210b5f1c89cc
/** * Module dependencies. */ var merge = require('utils-merge') , AuthorizationError = require('../errors/authorizationerror'); /** * Handles requests to obtain a response with an access token and ID token. * * References: * - [OpenID Connect Standard 1.0 - draft 21](http://openid.net/specs/openid-connect-s...
JavaScript
lib/grant/idTokenToken.js
jaredhanson/oauth2orize-openid
mit
7,934
241
codeparrot/github-code
6e2f700ea3b7781ede519e0dcfc6039be7c0ce68313cc6a978295ed2273ef364
""" Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two elements that appear only once. For example: Given nums = [1, 2, 1, 3, 2, 5], return [3, 5]. Note: The order of the result is not important. So in the above exampl...
Python
python/260_single_number_iii.py
ufjfeng/leetcode-jf-soln
mit
1,582
60
codeparrot/github-code
97b736ae9d2f195997f322c370af4a47be93ea5d6985172e80a06117e9519c94
<?php class Planet { private $x; private $y; private $type; private $population; private $specialty; private $regular; private $controlled; private $id; private $name; function __construct($x, $y, $type, $population, $regular, $spe...
PHP
src/Planet.php
eeronomicon/spacetruckin
mit
17,256
436
codeparrot/github-code
d4a7393adbfb9fd7e075fa4e8feef544f6e5bd9cd7e9a644edc0099ab4be6a3f
import React, { Component } from 'react'; import moment from 'moment'; var embeddedScript = '<!-- TradingView Widget BEGIN -->' + ' <script type="text/javascript" src="https://d33t3vvu2t2yu5.cloudfront.net/tv.js"></script>' + ' <script type="text/javascript">' + ' new TradingView.widget({'...
JavaScript
src/components/stock/Stock.js
sebalopez111/countdown
mit
1,003
36
codeparrot/github-code
40719ddf93d2ded636bdf5fe11cb1f69298cc8de40abf810099f0527e703b8ef
#!/usr/bin/env python from gensim import matutils from gensim.models import doc2vec from gensim.models.word2vec import LineSentence from gensim.models.word2vec import Word2Vec from pymongo import MongoClient from tqdm import tqdm from sklearn.preprocessing import OneHotEncoder from scipy import sparse from models im...
Python
src/python/prot2vec.py
yotamfr/prot2vec
mit
23,941
708
codeparrot/github-code
12e7d97ad5f331fb57f718be61c82995f6e88c1c6bc91aa252a3bd350eee4007
# frozen_string_literal: true require_dependency "renalware/hd" module Renalware module HD module Scheduling class DiarySlot < ApplicationRecord self.table_name = :hd_diary_slots # Changing to_ary from private to public here is a hack required to remove a SimpleDelgator # warning i...
Ruby
app/models/renalware/hd/scheduling/diary_slot.rb
airslie/renalware-core
mit
3,626
106
codeparrot/github-code
38d9b939b0719f654b5efa7c535428f163d4cf2b7e37670ce81e1c5bee5711ca
$("body").delegate("[data-do='open-product']", "click", function(){ $.post('/catalog/ajax/get/product/', { id: $(this).data('product-id'), csrfmiddlewaretoken: '{{ csrf_token }}' }, function(data) { if ('success' == data.status){ // Заполняем базовую информацию о товаре...
JavaScript
templates/catalog/js/product.js
anodos-ru/catalog
mit
5,466
125
codeparrot/github-code
d2c6ca89a90ab9e3df1c2b2e14771eaf4ab452dc5e751e80cf65d2bca7a07779
module Tokite module ApplicationHelper def nav_list_item(name, path, controllers) if controllers.include?(params[:controller]) link_to(name, path, class: "nav-item is-tab is-active") else link_to(name, path, class: "nav-item is-tab") end end def form_text_field(form, nam...
Ruby
app/helpers/tokite/application_helper.rb
hogelog/tokite
mit
1,036
35
codeparrot/github-code
bb1320a2a8540509ae224818811d5e36513a8be7b24210aed0b3a85e4f5d7419
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "irc.h" #include "net.h" #include "strlcpy.h" #include "base58.h" using ...
C++
src/irc.cpp
Pathfinderdev/Pathfinder
mit
11,002
406
codeparrot/github-code
749c33a2911da5981fff956417fce6f9591ae39262db08dfacffebb548810ab7
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), User = mongoose.model('User'), Operation = mongoose.model('Operation'), async = require('async'), config = require('meanio').loadConfig(), crypto = require('crypto'), templates = require('../template'); /** * Auth callback */ exports...
JavaScript
packages/users/server/controllers/users.js
Alexandre-Herve/fpmoney
mit
5,723
252
codeparrot/github-code
7033c9e0f1788e7e250d3c638c999de7ede809bd83dda895e398b8861689c0c4
/* global JSON */ import {Promise} from 'es6-promise'; import xmlhttprequest from 'xmlhttprequest'; export {METADATA_KEY} from './consts.js'; import handler from './handler.js'; var _config = { endPoint: '' }; var _requestJSON = function (method, path, bodyObject) { // relative starts with '/' var url = path[...
JavaScript
lib/main.js
danjamin/fl-api-service
mit
2,152
92
codeparrot/github-code
d632bccbebbb97b5025bd3ef7350cc155fc7a7960228f5bc5d06598962f17e17
<?php namespace Banklink; use Banklink\Request\PaymentRequest; use Banklink\Request\AuthRequest; use Banklink\Protocol\ProtocolInterface; /** * General abstract class that defines public API for all banklink implementations * * @author Roman Marintsenko <inoryy@gmail.com> * @since 11.01.2012 */ abstract class...
PHP
src/Banklink/Banklink.php
insolo-r/banklink
mit
3,326
116
codeparrot/github-code
7362b62fc3e666288ca49d77f537092ee1d3779ca6f41fc40fa291b7f7bf5c67
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Net; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Diagnostics; namespace HttpServer {...
C#
HttpServer/ControlForm.cs
NotFounds/HttpServerForCompetition
mit
10,242
353
codeparrot/github-code
3b08b4f722e363c1f2843f1e2b5bb470a11245dda53ae77574159b3334e282a5
// Generated on 2014-03-14 using generator-angular 0.7.1 'use strict'; // # Globbing // for performance reasons we're only matching one level down: // 'test/spec/{,*/}*.js' // use this if you want to recursively match all subfolders: // 'test/spec/**/*.js' module.exports = function (grunt) { // Load grunt tasks au...
JavaScript
Gruntfile.js
pfryga/oauth-ng
mit
9,736
414
codeparrot/github-code
182b64341c0bee0ad36750ae0627cd1be879b382243cf230958c4d668e1c6c7a
<?php /** * This file is part of the ObjectSecurity package * * (c) InnovationGroup * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code */ namespace FivePercent\Component\ObjectSecurity\Rule\Checker\Strategy; use FivePercent\Component\O...
PHP
src/Rule/Checker/Strategy/UnanimousStrategy.php
InnoGr/FivePercent-ObjectSecurity
mit
1,498
70
codeparrot/github-code
f409121102ac2b71a09130d9803254eaa10f901893e2496c8261cca8f676ffc0
package com.easytoolsoft.concurrentprogramming.cli; import com.easytoolsoft.concurrentprogramming.ch1.ConcurrentNetAssetValue; import com.easytoolsoft.concurrentprogramming.ch1.ConcurrentPrimeFinder; import com.easytoolsoft.concurrentprogramming.ch1.SequentialNetAssetValue; import com.easytoolsoft.concurrentprogrammin...
Java
Java/src/main/java/com/easytoolsoft/concurrentprogramming/cli/Ch1CliCommand.java
xianrendzw/ConcurrentProgramming
mit
2,052
76
codeparrot/github-code
c600bcd878e780d0d6f1ca3fd4125be505b7b99007b5952b865235025ef05d2f
package ij.process; import ij.*; import ij.gui.*; import java.awt.*; import ij.plugin.filter.*; /* Best-fitting ellipse routines by: Bob Rodieck Department of Ophthalmology, RJ-10 University of Washington, Seattle, WA, 98195 Notes on best-fitting ellipse: Consider some arbitrarily shaped closed profile, ...
Java
src/ij/process/EllipseFitter.java
norbertvischer/ObjectJ
mit
9,236
347
codeparrot/github-code
f1d3fff1308c36158aefc0076b7627e16eabe200ba395afed2665dcfd6a551e2
<!DOCTYPE html> <html lang="en"> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap-theme...
HTML
app.html
jasharpe/firebase-todo
mit
11,967
386
codeparrot/github-code
49a38480a2dca6c622c7ec53511c8df2a987260cb2f74b3d1b8fa9215cf8e021
# Copyright (C) 2010-2011 Richard Lincoln # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish...
Python
CIM14/IEC61970/Dynamics/MetaBlockInput.py
rwl/PyCIM
mit
6,593
158
codeparrot/github-code
31ac4332c5479319b0c8eaefed6674626cb13906de609d392742fb3bf9b6ed71
<!DOCTYPE html> <html> <head> <!-- Standard Meta --> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"> <!-- Site Properties --> <title>Twitter-Analyzr</title> <link rel="s...
HTML
templates/index.html
wadeanthony0100/twitter-analizr
mit
7,414
260
codeparrot/github-code
b22f770cd9a82d858234cd574892848b33732a0223d40409ae2968fd01a89d63
package hid /* #cgo LDFLAGS: -L . -L/usr/local/lib -framework CoreFoundation -framework IOKit -fconstant-cfstrings #include <IOKit/hid/IOHIDManager.h> #include <CoreFoundation/CoreFoundation.h> static inline CFIndex cfstring_utf8_length(CFStringRef str, CFIndex *need) { CFIndex n, usedBufLen; CFRange rng = CFRa...
GO
hid_darwin.go
boombuler/hid
mit
9,856
329
codeparrot/github-code
53ee32277e15307c6649c7da50bcd61362368b81a729c37bc6f72d8b9babe126
''' synbiochem (c) University of Manchester 2016 synbiochem is licensed under the MIT License. To view a copy of this license, visit <http://opensource.org/licenses/MIT/>. @author: neilswainston ''' # pylint: disable=invalid-name import math import random import sys import numpy def cent_limit_theorem(tests, lng...
Python
synbiochemdev/datascience/ch6.py
neilswainston/development-py
mit
1,896
75
codeparrot/github-code
a1b24d584a81f7d492bb8064a81e0c35a86f3ad7237da77e8f92a656bb7af591
<?php /* * This file is part of the PhpMob package. * * (c) Ishmael Doss <nukboon@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace PhpMob\CmsBundle\Context; use Sylius\Component\Loca...
PHP
src/PhpMob/CmsBundle/Context/CachedCompositeLocaleContext.php
phpmob/changmin
mit
1,423
62
codeparrot/github-code
e91c9683cca39e455ac2622e6002d70190ba8cfa949bfaf09ae5601eadc56988
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading; namespace DtronixMessageQueue { /// <summary> /// Sequentially processes, balances and gathers metrics on registered actions across multiple threads. //...
C#
src/DtronixMessageQueue/ActionProcessor.cs
Dtronix/DtronixMessageQueue
mit
33,476
846
codeparrot/github-code
0cfd05010dd2c8aa742c2798a529b8f50ef984d827495a52c69c42739e01ccab
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>hammer: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css"...
HTML
clean/Linux-x86_64-4.13.1-2.0.10/released/8.13.2/hammer/1.2.1+8.11.html
coq-bench/coq-bench.github.io
mit
7,513
180
codeparrot/github-code
ab46ebab956ce0514b4706a68d17ad93bf3ae18eba2a9bd92a11a25934cadaf6
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>elpi: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" r...
HTML
clean/Linux-x86_64-4.11.2-2.0.7/released/8.11.1/elpi/1.10.2.html
coq-bench/coq-bench.github.io
mit
7,449
174
codeparrot/github-code
3a4ee5cea5a582dd2963d5fd7404cf99e29646fa6ba62f694c0b187de0784f15
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>fcsl-pcm: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.cs...
HTML
clean/Linux-x86_64-4.06.1-2.0.5/released/8.12.2/fcsl-pcm/1.1.0.html
coq-bench/coq-bench.github.io
mit
7,277
177
codeparrot/github-code
a77ee39af198a90174afff0b992c353110924c55acf6885f8924de1f283a8e35
import * as React from 'react'; import { Btn } from 'View/Ui/Index'; interface INotificationFilterStringFilterProps { stringFilters: IGitHubNotificationFilterSetStringFilter[]; className?: string; getTitle(): string; getFilterTitle(filter: IGitHubNotificationFilterSetStringFilter): string; getFilterIsAc...
TypeScript
src/js/View/Components/NotificationFilters/NotificationFilterStringFilter.tsx
harksys/HawkEye
mit
1,534
49
codeparrot/github-code
b5df7c827dc217cd89e5e01bc9dbc10795c5cc5c4d38fa30c84c504500e7eb20
// Imports import * as React from "react"; import ValidationManager from "../Validation/ValidationManager" import ErrorDisplay from "../Validation/ErrorDisplay" // Importation des règles CSS de bases -> à transformer en styled-components import "../../../../Common/theming/base.css" import UpTooltip, { Tooltip } from '...
TypeScript
src/Components/Inputs/_Common/BaseControl/BaseControl.tsx
Up-Group/react-controls
mit
5,218
154
codeparrot/github-code
721c7e12e2c6c262e1451419180e5e4b1026c0641ccfc77d21d083d025a67e2c
package provingground.induction.coarse import provingground._, HoTT._ trait Curry[Iter <: Term with Subs[Term], Total <: Term with Subs[Total], Cod <: Term with Subs[Cod]] { def curry(fn: Func[Total, Cod]): Iter def unCurry(cfn: Iter): Func[Total, Cod] } object Curry { implicit def idC...
Scala
core/src/main/scala/provingground/induction/coarse/Curry.scala
siddhartha-gadgil/ProvingGround
mit
1,331
47
codeparrot/github-code
78a62de9d084bbb2ff4ab5b726d16c1b752c120f58c8d919cad60ff7736c5668
<?php namespace Oro\Bundle\LocaleBundle\Provider; use Oro\Bundle\LocaleBundle\Entity\Localization; use Oro\Bundle\LocaleBundle\Formatter\LanguageCodeFormatter; use Oro\Bundle\LocaleBundle\Manager\LocalizationManager; use Oro\Bundle\LocaleBundle\Model\LocaleSettings; use Oro\Bundle\TranslationBundle\Provider\LanguageP...
PHP
src/Oro/Bundle/LocaleBundle/Provider/LocalizationChoicesProvider.php
orocrm/platform
mit
2,514
95
codeparrot/github-code
459232b40086f97f7a96068d2d8cf06295f06e21971ade9a54d11113dcbf7527
<?php namespace http; use utils\Utils; class HTTPUtils { protected static $my_server_name; protected static $http_request_method; protected static $query_string; protected static $user_agent; protected static $script_name; public static function getServerName() { if (self::$my_serv...
PHP
src/_classes/http/HTTPUtils.class.php
jorgepinho/Maktaba
mit
3,682
159
codeparrot/github-code
40a357c20c5c5f7fa21de5dd8d06859c275bb3cf1398b8a7762d55e68b40a93d
/** * @namespace GeometryTools * @memberof SQR * * @description Tools to work with geometries/buffers. */ SQR.GeometryTools = (function() { var geoTools = {}; var MAX_BUFFER_SIZE = 65535; /** * @method batch * @memberof SQR.GeometryTools * * @description Combines all the geometries in a tree into o...
JavaScript
html/src/extras/GeometryTools.js
drojdjou/squareroot.js
mit
2,713
101
codeparrot/github-code
d40b0afcbfce964242c30e1c2e67c032a0c7eaf05a2c46589b93007bb87c2585
angular.module('sgRequest', ['sgPersistent']) .service('RequestService', [ '$q', 'Persistent', function($q, Persistent){ /** * This is a private function to have common functionality * of request handler */ var _requestHandler = function(model, success, error, deferred){ var sucessHandler = ...
JavaScript
js/services/request-service.js
sanketmaru/product-angular
mit
1,937
73
codeparrot/github-code
a2fca3a0eafa122d3f40ce5c7ee49767cf4fe114db214ebb7470c7cce594306e
<?php /* * The MIT License * * Copyright (c) 2010 Johannes Mueller <circus2(at)web.de> * * 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...
PHP
lib/MwbExporter/Formatter/Doctrine1/Yaml/Model/Views.php
allansun/mysql-workbench-schema-exporter
mit
1,621
47
codeparrot/github-code
0fe3b6f32b8c0e4afcf46ecbe2e3198a6282064f90536fcb2225fa352fd0cdb0
/* * Copyright (c) 2014 Robert Conrad - All Rights Reserved. * Unauthorized copying of this file, via any medium is strictly prohibited. * This file is proprietary and confidential. * Last modified by rconrad, 12/24/14 4:37 PM */ package base.common.logging /** * Mixin to allow classes to write to default log w...
Scala
project-common/src/main/scala/base/common/logging/TokenLoggable.scala
robconrad/base-api
mit
1,690
57
codeparrot/github-code
867788d68e195de895e5cc2d9309d0b05c6721cb8f4a3a71d48f4f3f444c1c0b
/** * grunt/pipeline.js * * The order in which your css, javascript, and template files should be * compiled and linked from your views and static HTML files. * * (Note that you can take advantage of Grunt-style wildcard/glob/splat expressions * for matching multiple files.) */ // CSS files to inject in orde...
JavaScript
tasks/pipeline.js
nethoncho/sails-oracledb-sp-example
mit
2,117
68
codeparrot/github-code
1b56eb4e64c70cb2258db81f29d6b7b727d7f4eaab5b197f86257cfaafd24024
<?php namespace BrainExe\Core\Authentication\Command; use BrainExe\Core\Annotations\Command as CommandAnnotation; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Helper\Table; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfon...
PHP
src/Authentication/Command/ListTokens.php
brainexe/core
mit
1,421
61
codeparrot/github-code
bd02798a3ff4fe8beff3805103f6629497eb9ab183e9ac997e1e36289de19b88
<!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"> <meta name="author" content="Open Knowledge"> <meta name="description" content="The Global Open Data Index assesse...
HTML
place/haiti/2014/index.html
okfn/opendataindex-2015
mit
8,426
193
codeparrot/github-code
b4359754cd93f00378c83379b054cba7c308d7179e9eb6289d61830eea7f903c
/*! * mustache.js - Logic-less {{mustache}} templates with JavaScript * http://github.com/janl/mustache.js */ var Mustache = (typeof module !== "undefined" && module.exports) || {}; (function( exports ) { exports.name = "mustache.js"; exports.version = "0.5.0-dev"; exports.tags = ["{{", "}}"]; exports.parse = ...
JavaScript
ref/mustache.js
fredyang/via.js
mit
13,517
537
codeparrot/github-code
1ab28c1cd2570272d69732cd595135a6ca9bd093c34f99bd2e5dcc0abc1397c8
import {PatternLayout} from "../../../src/layouts/components/PatternLayout"; import {LogEvent} from "../../../src/core/LogEvent"; import {levels} from "../../../src/core/LogLevel"; import {expect} from "chai"; const os = require("os"); const dateFormat = require("date-format"); const EOL = os.EOL || "\n"; describe("...
TypeScript
packages/logger/test/layouts/components/PatternLayout.spec.ts
Romakita/ts-log-debug
mit
7,148
212
codeparrot/github-code
a36ba7a18175cb602727cb7146e887f80f803466a8405852378091156b00bbdf
<?php /* Safe sample input : get the field userData from the variable $_GET via an object, which store it in a array sanitize : none construction : use of sprintf via a %u with simple quote */ /*Copyright 2015 Bertrand STIVALET Permission is hereby granted, without written agreement or royalty fee, to use, copy,...
PHP
Injection/CWE_89/safe/CWE_89__object-Array__no_sanitizing__multiple_select-sprintf_%u_simple_quote.php
stivalet/PHP-Vulnerability-test-suite
mit
1,899
78
codeparrot/github-code
9542c9119469cad2bb5552f86477329cebd80ceefa4808f32a6e2e244efb209a
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package co.edu.uniandes.csw.turism.resources; import co.edu.uniandes.csw.auth.model.UserDTO; import co.edu.uniandes.csw.auth.service.A...
Java
turism-api/src/main/java/co/edu/uniandes/csw/turism/resources/UseResource.java
Uniandes-MISO4203/turism-201620-2
mit
2,390
63
codeparrot/github-code
a33748ac16c07148577831819b0f1a3f9ceaa5c8e44d12b45ebe63d6f653ad11
<!DOCTYPE html> <html> <head> <meta charset=utf-8> <title>34 brendan oconnor ai-2006-04-24-high irony</title> </head> <body> <p><a title="brendan_oconnor_ai" href="../brendan_oconnor_ai_home.html">brendan_oconnor_ai</a> <a title="brendan_oconnor_ai-2006" href="../home/brendan_oconnor_ai-2006_home.html">brendan_oconnor...
HTML
blog-mining/brendan_oconnor_ai/brendan_oconnor_ai-2006/brendan_oconnor_ai-2006-04-24-high_irony.html
makerhacker/makerhacker.github.io
mit
26,115
165
codeparrot/github-code
2961ddfefe89acdd2c5867b2b800ea9b016bf4aa8c2248bf2beb005d132fd370
// Copyright (c) 2014-2016 by Michael Dvorkin. All Rights Reserved. // Use of this source code is governed by a MIT-style license that can // be found in the LICENSE file. package donna // Returns a bitmask of possible Bishop moves from the given square. func (p *Position) bishopMoves(square int) Bitmask { return p....
GO
donna-master/position_targets.go
Dogacel/ChessEngine-Golang
mit
6,080
193
codeparrot/github-code
d8dc0a2fb2df676e6f6afc1a469a05514fa7fe922e18b6a17216bd0dc6319c53
/** * Abstract assertion class that will subclass all defined Chai assertions * * All assertions must implement the following api: * * - @type {function} * executeCommand * - @type {string} * elementFound * - @type {function} * elementNotFound * - @type {function} * retryCommand * - @type {string} ...
JavaScript
lib/api/expect/_baseAssertion.js
concept-plus/fda-go-automated-testcases
mit
7,314
315
codeparrot/github-code
2020ff4e59c5787dfdb1c3075f04b2083ae7b0e6f478dd5f1b26b8dd6b24197e
/** * Event emitter for JS. * * Inspired by https://github.com/component/emitter * * @author Dumitru Uzun (DUzun.Me) * @license MIT * @version 2.2.0 * @repo https://github.com/duzun/onemit */ /* Usage: * * OnEmit(obj); * The `OnEmit` may also be used as a mixin. * ...
JavaScript
onemit.js
duzun/onemit
mit
17,507
662
codeparrot/github-code
e8e0784f241882b85a31b1022d810e6736a0dc4919057c38f19c404d82bdc704
<?php declare(strict_types = 1); namespace unreal4u\TelegramAPI\Telegram\Methods; use Psr\Log\LoggerInterface; use unreal4u\TelegramAPI\Abstracts\TelegramMethods; use unreal4u\TelegramAPI\Abstracts\TelegramTypes; use unreal4u\TelegramAPI\InternalFunctionality\TelegramResponse; use unreal4u\TelegramAPI\Telegram\Types...
PHP
src/Telegram/Methods/DeleteWebhook.php
unreal4u/telegram-api
mit
932
34
codeparrot/github-code
363306d807c3d042442372e0dcdcc2c95e9ad88f9467588b2d3950be723588dc
/* * Package Import */ import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; /* * Local Import */ // Components import Form from 'src/components/Contact/Form'; // Actions import { handleInputChange } from 'src/store/ducks/form'; import { sendMessage } from 'src/store/middleware'; ...
JavaScript
app/src/containers/Contact/Form/index.js
AlexandreBourdeaudhui/abourdeaudhui.fr
mit
939
56
codeparrot/github-code
b570348fad461fcd7cc6fc552569170004f5501027aa966bedb55e8006d27f60
<?php namespace Sistema\AdminBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolverInterface; class PdcoperacionesType extends AbstractType { public function buildForm(FormBuilderInterface $builder, array $optio...
PHP
src/Sistema/AdminBundle/Form/PdcoperacionesType.php
fabilocky/pdc
mit
794
33
codeparrot/github-code
6eeab47a9976867117741bfe49ca24ebd47feb33082c2dd2018670d4bf467d82
package hudson.node_monitors; import hudson.Extension; import hudson.model.Computer; import hudson.model.TaskListener; import hudson.slaves.ComputerListener; import hudson.util.Futures; import java.io.IOException; import java.util.concurrent.Future; import java.util.concurrent.TimeUnit; import jenkins.model.Jenkins; i...
Java
core/src/main/java/hudson/node_monitors/NodeMonitorUpdater.java
ErikVerheul/jenkins
mit
1,294
45
codeparrot/github-code
df01a7ad7de13bffc07be001b684422bcd3ae552742f995b6d9d103525310b27
-- Locate the fuel tank dataerf. We will treat it as an array -- so we can operate on all tanks at once. fuel_tanks = find_dataref("sim/flightmodel/weight/m_fuel") -- Our timer func deducts 5 liter? of fuel from each tank -- each tiem it fires. function leak_some_fuel() for i=0,fuel_tanks.len-1 do fuel_tanks[i] = ...
Lua
deploy/scripts/example/example.lua
X-Plane/XLua
mit
953
36
codeparrot/github-code
1b77a74e4e45d3baffcb76e3fa033bfac7e71c05224177dd5ca090351fc02cc7
from django.shortcuts import render, HttpResponse import os # Create your views here. def status(request, task_id): from celery.result import AsyncResult task = AsyncResult(task_id); task.traceback_html = tracebackToHtml(task.traceback) return render(request, 'task/html/task_status.html', ...
Python
voxel_globe/task/views.py
andyneff/voxel-globe
mit
1,192
38
codeparrot/github-code
40b099ec92bb43b8fddb343174107f235e4ecb45cd9f3a5ba0196f03e68e51a9
/** * @fileOverview 日期控件来选择年月的部分 * @ignore */ var $ = require('jquery'),BUI = require('bui-common'), PREFIX = BUI.prefix, Component = BUI.Component, CLS_TEXT_YEAR = 'year-text', CLS_TEXT_MONTH = 'month-text', CLS_ARROW = 'x-datepicker-arrow', CLS_PREV = 'x-datepicker-prev', CLS_NEXT = 'x-datepicker...
JavaScript
spm_modules/bui-grid/1.1.5/spm_modules/bui-calendar/1.1.1/src/header.js
angrytoro/bui
mit
3,333
148
codeparrot/github-code
3694e35a37947f0d2088ec148dd0f43ba2514d11d406a67fdd1bb63eca280288
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>mtac2: 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.5.1/mtac2/1.4+8.13.html
coq-bench/coq-bench.github.io
mit
6,931
170
codeparrot/github-code
6e4314899db8882063a9b8abae23d262fac7ef683e81255e7113ae6e3fe3a1f1
define(function(require, exports, module) { var $ = require('$') var data = require('./data') var Ball = require('./ball') var initShowInters = [] var randomShowInter var youarehereInter var BaseColors = { wd: '#005A8D', ur: '#007938', id: '#795520', vd: '#B9...
JavaScript
static/sea-modules/profile/index.js
fugm/alipay-ued.com
mit
2,331
86
codeparrot/github-code
bfd33c37684f9a071bf5f2f7d924fe4ef10fcbcb90007e8073d3d36c00e8c775
<!doctype html> <html lang="en"> <head> <title>Code coverage report for lib/util/choice.js</title> <meta charset="utf-8"> <link rel="stylesheet" href="../../prettify.css"> <style> body, html { margin:0; padding: 0; } body { font-family: Helvetica Neue, H...
HTML
doc/coverage/lcov-report/lib/util/choice.js.html
tick-tack/pudding
mit
12,310
365
codeparrot/github-code
218f43cb05617cba35a207d10a510f4af5cf50a8acbb86f18e0c98d896f2be81
package com.tongjiapp.remirobert.devicecollect.deviceMapper; import android.content.Context; import android.util.Log; import java.util.UUID; import java.util.concurrent.Callable; import bolts.Continuation; import bolts.Task; import bolts.TaskCompletionSource; import io.realm.Realm; import io.realm.RealmConfiguration...
Java
app/src/main/java/com/tongjiapp/remirobert/devicecollect/deviceMapper/DeviceMapper.java
MobileMapper/Android
mit
2,582
77
codeparrot/github-code
02bbd153cc5b9ed49701036567f4775f09ea6405b8d75209be366af8f12f3ef9
'use strict'; var mongoose = require('mongoose'); var BaseSchema = require('../base/model.js'); var crypto = require('crypto'); var MemberSchema = require('../member/member.model.schema'); var Schema = mongoose.Schema; var workingDaySchema = new Schema({ active: { type: Boolean, default: false ...
JavaScript
server/api/organization/organization.model.js
spotsoftware/io-at-spot
mit
3,271
154
codeparrot/github-code
b4c3ccfe71ba353899eeffc7259bff270ed4683269f8e68f0ff43bad36ba121b
import * as React from 'react' import {observer} from 'mobx-react' import {observable, computed, action, runInAction, autorun, IReactionDisposer, reaction} from 'mobx' import {Prompt, Redirect} from 'react-router-dom' const timeago = require('timeago.js')() import { AdminLayout } from './AdminLayout' import { BindStri...
TypeScript
admin/client/TagEditPage.tsx
OurWorldInData/our-world-in-data-grapher
mit
5,723
164
codeparrot/github-code
5ece22833ee6470fb83746c62bc3bb0bfe5148ed49b95edee20a8c3a7dff5b66
/* * ***** BEGIN LICENSE BLOCK ***** * Zimbra Collaboration Suite Server * Copyright (C) 2011 Zimbra, Inc. * * The contents of this file are subject to the Zimbra Public License * Version 1.3 ("License"); you may not use this file except in * compliance with the License. You may obtain a copy of the License at ...
Java
ZimbraSoap/src/java/com/zimbra/soap/mail/message/ConvActionRequest.java
nico01f/z-pec
mit
1,980
66
codeparrot/github-code
e3ffc4f9e16267814c799769957708a510e2ec188a81d3e34a31c5c2fe98608c
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>presburger: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min....
HTML
clean/Linux-x86_64-4.06.1-2.0.5/extra-dev/8.10.dev/presburger/8.7.0.html
coq-bench/coq-bench.github.io
mit
7,102
166
codeparrot/github-code
5b1f135c8b640098e856c523f3070ae709299d29cf71e217caa13edccaf9b221
# -*- coding: utf-8 -*- """ paci Usage: paci install [--no-config] [--no-cleanup] [--reuse] [--overwrite] [--debug] <package>... paci update [--no-config] [--no-cleanup] [--reuse] [--overwrite] [--debug] <package>... paci search <package> paci refresh paci list [--installed] paci remove paci configure [-...
Python
paci/cli.py
tradebyte/paci
mit
2,016
56
codeparrot/github-code
4ad721db8ff167e6ec334f032a5661e7d99d3043284406282a822256b92438e6
<?php namespace Hip\MandrillBundle; /** * A mandrill message * * Copyright (c) 2013 Hipaway Travel GmbH, Berlin * * 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 * restrictio...
PHP
Message.php
juliencharrel/daily-hipaway-mandrill
mit
18,210
819
codeparrot/github-code
34de1d5991e564295babcf7ca8a023fa57f4f1891d43b86cebd62f741077f8e2
<?php namespace HcbStoreProductCategory\Service\Localized; use HcCore\Entity\EntityInterface; use HcCore\Service\ResourceCommandInterface; use HcbStoreProductCategory\Data\LocalizedInterface; use HcbStoreProductCategory\Entity\Category\Localized as LocalizedEntity; use Zf2Libs\Stdlib\Service\Response\Messages\Response...
PHP
src/HcbStoreProductCategory/Service/Localized/UpdateCommand.php
huskycmf/hcb-store-product-category
mit
1,036
39
codeparrot/github-code
6fd3c5f1b797b648f4e9f4f0311015b8acc0d237258a0b7bee237acea48f3460
package us.higashiyama.george.SQTrading; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import net.milkbowl.vault.VaultEco; import net.milkbowl.vault.permission.Permission; import org.bukkit.Bukkit; import org.bukkit.ChatColor; import org.bukkit.Material; import org.bukkit.block.Sign; ...
Java
Bukkit/SQTrading/src/main/java/us/higashiyama/george/SQTrading/SQTrading.java
zreed/StarQuestCode
mit
8,213
294
codeparrot/github-code
2d0ae008462aeb2e75859f9faba6751d41f0e4365b38ab43df39de33519ea139
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>stdpp: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" ...
HTML
clean/Linux-x86_64-4.10.2-2.0.6/released/8.14.1/stdpp/1.5.0.html
coq-bench/coq-bench.github.io
mit
8,047
186
codeparrot/github-code
03f335e5aebfa0201baff32c850fbfdbc83e8c1989669de14407034f3eacdf9f
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>subst: 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.0/subst/8.9.0.html
coq-bench/coq-bench.github.io
mit
7,072
177
codeparrot/github-code
18dc6c0d18fc682fa2df0a2e08410429937f2b450951f88c30f5e3152344b820
import datetime from django.conf import settings from elasticsearch import Elasticsearch instance = Elasticsearch([settings.ELASTICSEARCH_DSN]) index_prefix = 'recarguide_' def indices(): items = ['car'] return ['{}{}'.format(index_prefix, index) for index in items] def mappings(): items = { '...
Python
backend/cars/search/elastic.py
resurtm/recarguide
mit
2,295
77
codeparrot/github-code
1dd074d3b52c69d9d9368adf20b5ec1834d056e01d9d69f8401fcbcdeb69c26d
package com.balanceball.system; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.math.MathUtils; import com.badlogic.gdx.math.Vector2; import com.badlogic.gdx.physics.box2d.Box2D; import com.badlogic.gdx.physics.box2d.Contact; import com.badlogic.gdx.physics.box2d.ContactImpulse; import com.badlogic.gdx.physics.bo...
Java
core/src/com/balanceball/system/PhysicsSystem.java
tgobbens/fluffybalance
mit
5,666
163
codeparrot/github-code
2158439421312ee127021ef1b9239938cd6fff2a39b1bf066dfc30c149cebadf
import { CompileTimeConstants, CompileTimeHeap } from '../program'; import { Dict, Option } from '../core'; import { SingleBuilderOperand } from './operands'; import { NamedBlocks, HandleResult } from '../template'; import { Op, MachineOp } from '../vm-opcodes'; import * as WireFormat from './wire-format'; import { Int...
TypeScript
packages/@glimmer/interfaces/lib/compile/encoder.d.ts
tildeio/glimmer
mit
6,147
221
codeparrot/github-code
6d04a80bc003f8363e310081021ffcfa29a19fc3141f202445bf162e3f479d02
<?php namespace LireinCore\YMLParser\Offer; abstract class ABookOffer extends AExtOffer { /** * @var string */ protected $author; /** * @var string */ protected $name; /** * @var string */ protected $publisher; /** * @var string */ protected $...
PHP
src/Offer/ABookOffer.php
lireincore/ymlparser
mit
4,797
279
codeparrot/github-code
622b2b96a41a46368cc3aab5b5672c26c8fb0cbc29352d249a0c8bcad9995153
require "archie/config" module Archie module OTP module Model extend ActiveSupport::Concern included do attr_encrypted :otp_secret, :key => Archie::Config.otp_secret_encryption_key, :mode => :per_attribute_iv_and_salt unless self.attr_encrypted?(:otp_se...
Ruby
lib/archie/otp/model.rb
chetan/bixby-manager
mit
1,094
45
codeparrot/github-code
84f07e5b01deead2429d45755c85b1692eb4d772d35201a0af5a5dbb169068b1
package com.kwizzad.api; import android.content.Context; import android.os.Build; import com.kwizzad.model.Gender; import com.kwizzad.model.Model; import java.util.HashMap; import java.util.Map; /** * Created by tvsmiles on 17.08.17. */ public class QueryParams { public static String addCometQueryParams(Stri...
Java
sdk/src/main/java/com/kwizzad/api/QueryParams.java
kwizzad/kwizzad-android
mit
1,705
51
codeparrot/github-code
e78e535f4552c77396aeeba6e7bb191c86bead8c6d7b5aa6665903d94267c05e
using AyaStyle.DataServices.Clients; using Prism.Mvvm; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AyaStyle.Models { /// <summary> /// アプリケーションの設定モデル /// </summary> public class SettingModel : BindableBa...
C#
EmojiPost/Models/SettingModel.cs
mizuku/EmojiPost
mit
2,297
100
codeparrot/github-code
d706959638fc9db9e29949bfbf812a835259c67597a35e6dad02e3a84cb5c7a3
#include <iostream> #include "ErrorHandler.h" #include "Tokenizer.h" #include "Parser.h" #include <fstream> #include <sstream> using namespace efc; std::string const FILENAME = "./examples/main.ef"; bool read_file(std::string_view const fileName, std::string& output) { std::ostringstream ss{}; std::ifstream file(...
C++
efc/Main.cpp
Plasticcaz/efc
mit
821
46
codeparrot/github-code
6a2657d394dadb4f161f940de94a7878aa957bc21ed85a1ed1c8502a29f7089b
using System.Collections.Generic; using System.Drawing; using SpreadsheetLightWrapper.Core.misc; using A = DocumentFormat.OpenXml.Drawing; using C = DocumentFormat.OpenXml.Drawing.Charts; namespace SpreadsheetLightWrapper.Core.Charts { /// <summary> /// Encapsulates properties and methods for setting data...
C#
SpreadsheetLightWrapper/Core/Charts/SLDataLabelOptions.cs
rdonalson/SpreadsheetLightWrapper
mit
4,685
126
codeparrot/github-code
3fe59b80944ee9eb9c251c1780fc5bbccf6932c3d1e81c2c0a25187876a69ad8
var path = require('path'); var nock = require('nock'); var fs = require('graceful-fs'); var expect = require('expect.js'); var Logger = require('bower-logger'); var GitRemoteResolver = require('../../../lib/core/resolvers/GitRemoteResolver'); var GitHubResolver = require('../../../lib/core/resolvers/GitHubResolver'); ...
JavaScript
src/test/core/resolvers/gitHubResolver.js
hyperweb2/upt
mit
6,859
176
codeparrot/github-code
fe85c66c2e3baa61611a6eb2cef7be7de8425ba013862dffe2470b17831bf0ff
(function (){ var paths = [ 'parse.js', 'insertcode.js', 'table.js', 'charts.js', 'background.js', 'list.js', 'video.js' ]; function getUEBasePath ( docUrl, confUrl ) { return getBasePath( docUrl ...
JavaScript
client/lib/ueditor/ueditor.parse.js
haizi-zh/Tasman
mit
1,739
74
codeparrot/github-code
8327d66cb4a452ad1d8b1001ed4f383f4886c48112a87859827a88cd0e8d0bdb
using FlatRedBall.Glue.CodeGeneration; using FlatRedBall.Glue.CodeGeneration.CodeBuilder; using FlatRedBall.Glue.Elements; using FlatRedBall.Glue.SaveClasses; using GumPlugin.Managers; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace GumPlug...
C#
FRBDK/Glue/GumPlugin/GumPlugin/CodeGeneration/GumToFlatRedBallAttachmentCodeGenerator.cs
vchelaru/FlatRedBall
mit
1,757
48
codeparrot/github-code
16c5d623b4b0f31ecafea12e0cfc7b1fc29ccfeb5663e6ccef856c85ad7a5048
package net.foreworld.service.impl; import java.util.List; import java.util.UUID; import net.foreworld.model.Menu; import net.foreworld.model.ResultMap; import net.foreworld.service.MenuService; import net.foreworld.util.StringUtil; import org.springframework.stereotype.Service; import tk.mybatis.mapper.entity.Exam...
Java
original_java/src/main/java/net/foreworld/service/impl/MenuServiceImpl.java
3203317/yb
mit
2,417
120
codeparrot/github-code
3e3f90ace0864f6ffa3c5d5854e9c559c747769079a0c805dde8475f3106a15c
'use strict'; function ActivationController($state, UserService) { // ViewModel const vm = this; vm.activationError = false; vm.activationErrorText = ''; vm.activateUser = function () { var credentials = { primaryEmail: vm.emailID + "@student.bth.se", activationCo...
JavaScript
app/js/controllers/ActivationController.js
AppliedSoftwareManagement-Team8/student-shopper-fe
mit
709
31
codeparrot/github-code
b08dafb3262785cab2a31378293098b3d9374639eb0d8dcfd66cdcc596a9d5ae
var fs = require("fs"); var origPoints = JSON.parse( fs.readFileSync("./Star_points.json") ), normalizedPoints = [], max = null; var i, p, normalizedP, axis; max = origPoints[0]; for (i = 1; i < origPoints.length; i++) { p = origPoints[i]; if ( p.point[0] > max.point[0] || p.point[1] > max.point...
JavaScript
assets/normalize_star_points.js
colinsullivan/joylight
mit
743
40
codeparrot/github-code