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
8f07c7d4ecb19a8f26872d0a32960f2bd8bf86ba97acc4335cbe9c232abed35e
package com.winterwell.depot; import java.util.Map; import org.junit.Test; import com.winterwell.depot.merge.Merger; import com.winterwell.es.client.ESConfig; import com.winterwell.es.client.ESHttpClient; import com.winterwell.gson.FlexiGson; import com.winterwell.utils.Dep; import com.winterwell.utils.Utils; import...
Java
winterwell.depot/test/com/winterwell/depot/ESStoreTest.java
sodash/open-code
mit
1,093
39
codeparrot/github-code
d92bbdea64e0bfdeaea96ed5cb333890357e486c1b4c93372c0ea9361ffce1f4
/** * @providesModule Case */ const DOM = require('DOM'); var Case = (function () { /** * A Case is a test against an element. */ function Case (attributes) { return new Case.fn.init(attributes); } // Prototype object of the Case. Case.fn = Case.prototype = { constructor: Case, init: fun...
JavaScript
src/core/Case.js
quailjs/quail-core
mit
11,829
362
codeparrot/github-code
3eb656a3d0bc147a37d33fc75076637e589662f88215a10245b040d397ac8b4b
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import * as ts from 'typescript'; import {TypeScriptReflectionHost} from '../../metadata'; import {AbsoluteReferenc...
TypeScript
packages/compiler-cli/src/ngtsc/annotations/test/selector_scope_spec.ts
ValtoFrameworks/Angular-2
mit
5,668
167
codeparrot/github-code
d55ca14f55c9fe08d5367913b252915f838a32164eef06630a68143381cd4999
# frozen_string_literal: true module OrgAdmin class SectionsController < ApplicationController include Versionable respond_to :html after_action :verify_authorized # GET /org_admin/templates/[:template_id]/phases/[:phase_id]/sections def index authorize Section.new phase = Phase.i...
Ruby
app/controllers/org_admin/sections_controller.rb
CDLUC3/dmptool
mit
5,303
150
codeparrot/github-code
77a20755c93a7dfc6a06af0b1bf677e52f01a0fec188bbbb1eddd9492b8596e6
package bolianeducation.bolianchild.view; import android.graphics.Bitmap; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.support.annotation.Nullable; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.text....
Java
app/src/main/java/bolianeducation/bolianchild/view/ReplyActivity.java
iamlisa0526/bolianeducation-child
mit
10,782
344
codeparrot/github-code
9e4d25820cdee7fdc822034cec7bed47a2b7897157bc70c18c164b9738df0051
/*! * Vitality v2.0.0 (http://themes.startbootstrap.com/vitality-v2.0.0) * Copyright 2013-2017 Start Bootstrap * Purchase a license to use this theme at (https://wrapbootstrap.com) */ /*! * Vitality v2.0.0 (http://themes.startbootstrap.com/vitality-v2.0.0) * Copyright 2013-2017 Start Bootstrap * Purchase a licen...
JavaScript
donaction-enterprise/scripts/source/agency/vitality.js
EricRibeiro/DonactionTIS
mit
4,078
137
codeparrot/github-code
9cfab9e8373c09bed052e2feb530e52ee7d1e1f74bfb92392fa047de528a2330
import pagination from '@admin/store/modules/paginationStore' import {HTTP} from '@shared/config/api' const state = { clientList: [] } const getters = { getClientList: state => state.clientList } const mutations = { set(state, {type, value}) { state[type] = value }, delete(state, {id}) { ...
JavaScript
Vue/src/admin/store/modules/clientListStore.js
mt89vein/mvc5-vuejs
mit
2,609
98
codeparrot/github-code
6af910f3fa47ad7898853b726867c1a7e525b875cc626aa40db7a8f57f2b7ea6
import "cutaway" import { assert, report } from "tapeless" import createPlayer from "./main.js" const { ok, notOk, equal } = assert try { createPlayer() } catch (e) { ok .describe("will throw sans video input") .test(e, e.message) } const source = document.createElement("video") source.src = "" const {...
JavaScript
test.js
thewhodidthis/playah
mit
591
38
codeparrot/github-code
0c8690edb74652b57b7bdf6e0edfaf87ee4da98954e285955b8bc947e700fbd3
package com.devicehive.client.impl.rest.providers; import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.JsonParser; import com.devicehive.client.impl.Constants; import com.devicehive.client.impl.json.GsonFactory; import com.devicehive.client.impl....
Java
client/src/main/java/com/devicehive/client/impl/rest/providers/JsonRawProvider.java
lekster/devicehive-java
mit
3,161
83
codeparrot/github-code
0c72867ba07f2f79f282358743e02c1e0c2cb7d60bdc344526a9bc0682708a32
<?php namespace Craft; class FormBuilder_FieldsetService extends BaseApplicationComponent { // Properties // ========================================================================= // Public Methods // ========================================================================= /** * Save f...
PHP
formbuilder/services/FormBuilder_FieldsetService.php
owldesign/Form-Builder
mit
3,038
103
codeparrot/github-code
00cb606a84e0a87e4676482bd33ab4573422d4ade3af59f14b34cf65cb8605c6
module Arpa module Repositories module Resources class Finder include Arpa::Repositories::Base def find(id) record = repository_class.find(id) mapper_instance.map_to_entity(record) end def all repository_class.all.collect do |record| ...
Ruby
lib/arpa/repositories/resources/finder.rb
rachidcalazans/arpa
mit
756
34
codeparrot/github-code
3689c86d973bc24cc9bb7b3948a42bc03d0198b37cf4d8a44bb795d948ed6d69
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>area-method: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min...
HTML
clean/Linux-x86_64-4.02.3-2.0.6/released/8.7.1+1/area-method/8.10.0.html
coq-bench/coq-bench.github.io
mit
7,695
180
codeparrot/github-code
5e9c32c802270d365d90120df4353ed455a5f3a873d80bc68afd472cf29a3c01
<?php namespace Seahinet\Article\Listeners; use Seahinet\Article\Exception\OutOfStock; use Seahinet\Article\Model\Warehouse; use Seahinet\Lib\Listeners\ListenerInterface; class Inventory implements ListenerInterface { public function check($event) { $warehouse = new Warehouse; ...
PHP
app/code/Article/Listeners/Inventory.php
peachyang/py_website
mit
2,290
62
codeparrot/github-code
d81a6fbd3d7f8990033d5d5af2b81c0bc72dcae3fcf0526f224f232a46acd97e
package br.eti.mertz.wkhtmltopdf.wrapper.params; import java.util.ArrayList; import java.util.List; public class Params { private List<Param> params; public Params() { this.params = new ArrayList<Param>(); } public void add(Param param) { params.add(param); } public void ad...
Java
src/main/java/br/eti/mertz/wkhtmltopdf/wrapper/params/Params.java
eamonfoy/trello-to-markdown
mit
982
49
codeparrot/github-code
3970009f18caabb2ba58c010cc76745dfa38f43d454241fa06a2d74153c3b249
require 'happymapper' module RSokoban attr_accessor :levels class LevelData include HappyMapper tag 'Level' element :id, String element :copyright, String element :width, Integer element :height, Integer has_many :lines, String, :tag => 'L' end class Level attr_access...
Ruby
lib/level.rb
mstahl/rsokoban
mit
1,361
69
codeparrot/github-code
377b9b59af9083bd146fb7389196cb5eb12c6cafff32eaba7084ec01ce64532b
<!DOCTYPE html> <html lang="en-us"> <head> <link href="http://gmpg.org/xfn/11" rel="profile"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <!-- Enable responsiveness on mobile devices--> <meta name="viewport" content="width=devic...
HTML
happy-meal-vr-a-google-cardboard-hack/index.html
atechdad/atechdad.github.io
mit
7,827
224
codeparrot/github-code
4284aa4e3172b53d2cd118c65ec1bb702877168e17c593b9cdbd828dc7a682b0
/** * Created by fuzhihong on 16/10/14. */ import { Injectable } from '@angular/core'; import {Headers,Http,Response} from '@angular/http'; import {Subject} from 'rxjs/Subject'; import 'rxjs/add/operator/toPromise' import {User} from './user' @Injectable() export class UserService{ private headers=new Hea...
TypeScript
app/service/user.service.ts
fzh199410/angular2-FirstAPP
mit
1,441
48
codeparrot/github-code
85aac8711517eb50d7cb71970424be3f3e57198e4f78163eb4bf32d6727e682d
from Bio import SeqIO def get_proteins_for_db(fastafn, fastadelim, genefield): """Runs through fasta file and returns proteins accession nrs, sequences and evidence levels for storage in lookup DB. Duplicate accessions in fasta are accepted and removed by keeping only the last one. """ records = {...
Python
src/app/readers/fasta.py
glormph/msstitch
mit
4,853
132
codeparrot/github-code
37905c1a5e392ba43dd6befedbf954ef241470f84d3350f047a0a573397b0974
<?php ClassLoader::requireClassOnce( 'util/Settings' ); ClassLoader::requireClassOnce( 'util/IndexRoutingItem' ); ClassLoader::requireClassOnce( 'actions/AccessImageAction' ); /** * This class provides utility functions for formatting URLs for this application. * @author craigb */ class UrlFormatter { private s...
PHP
src/php/util/UrlFormatter.class.php
GreyMatterCatalyst/ArtJourney
mit
2,034
61
codeparrot/github-code
7bbeafb9d80a4707ffbdd384698ef9617f42912e8e62069cd5ea47274036a0fd
/* eslint-disable */ import * as Types from '../graphqlTypes.generated'; import { gql } from '@apollo/client'; import { ProjectPromotionFieldsFragmentDoc } from './queries.generated'; import * as Apollo from '@apollo/client'; const defaultOptions = {}; export type PromoteProjectMutationVariables = Types.Exact<{ proj...
TypeScript
app/javascript/ProjectPromotions/mutations.generated.ts
neinteractiveliterature/larp_library
mit
5,256
156
codeparrot/github-code
920efca2ea30d08f21316feb94b1c1cc61e22e1b5c92e98687c467e0b9b7833a
/* * Created on Apr 28, 2005 */ package jsrl.net; import java.net.SocketException; import java.net.SocketTimeoutException; import java.net.InetAddress; import java.net.UnknownHostException; import jsrl.LoadLibrary; /** * JavaPing * Java Bindings for the SRL Library's Ping Logic */ public class JavaPing implemen...
Java
java/src/jsrl/net/JavaPing.java
311labs/SRL
mit
5,558
240
codeparrot/github-code
b9e9a4992445723de293e62fbf32b33d51bdc1d1db5e0044f4bd70786fa84702
<?php namespace Abbiya\GrabberBundle\Services; /* * 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. */ /** * Description of ParseHtml * * @author seshachalam */ use Goutte\Client; use ...
PHP
src/Abbiya/GrabberBundle/Services/ParseHtml.php
mseshachalam/grabber
mit
7,572
245
codeparrot/github-code
f991d77f458fd21888410d7680dfa4892fbca051dc1bf3fee4ccbc9b0090580d
{-# LANGUAGE TupleSections #-} module Y2016.M09.D09.Solution where import Control.Arrow (first) import Control.Monad (guard, (>=>)) import Data.Function (on) import Data.List (sortBy) import Data.Map (Map) import qualified Data.Map as Map -- below import available from 1HaskellADay git repository import Control.Lis...
Haskell
exercises/HAD/Y2016/M09/D09/Solution.hs
geophf/1HaskellADay
mit
3,206
102
codeparrot/github-code
b5388fc6850397a55eff79c522a3d9054716d9f8b7cb15901fc234df89473ceb
<?php /** * Description of SectionType * * @author Birko */ namespace Jamii\UserBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilder; class UserType extends AbstractType { protected $em; public function __construct(\Doctrine\ORM\EntityManager $em) { ...
PHP
src/Jamii/UserBundle/Form/UserType.php
birko/Jamii
mit
2,074
69
codeparrot/github-code
0ce794bb76c972b659a4947f0fa800d0adfe1913c6468b4ae63b3b177307a82b
// // UINavigationMenuManager.h // Pods // // Created by Ilter Cengiz on 25/02/15. // // #import <Foundation/Foundation.h> #import "UINavigationMenuController.h" @interface UINavigationMenuManager : NSObject /** Returns a view controller for the given index that will be presented by the navigation menu controll...
C
Pod/Classes/UINavigationMenuManager.h
iltercengiz/NavigationMenuController
mit
1,779
51
codeparrot/github-code
6198299b2b37bd7e0a33233f5d29858c1da8c8ee04097281393ab8bfb700e0f3
// // Stroustrup - Programming Principles & Practice // // Chapter 21 Exercise 14 // // Write a word query program that provides information about the text in a // document. Use the text cleaner from ex13 to produce input. // #include <iostream> #include <stdexcept> #include <string> #include <map> #include <vector> ...
C++
chapter21/ex14_word_query.cpp
Chrinkus/learn-cpp
mit
3,191
126
codeparrot/github-code
5d803887eabdbca67f2701c4133955d1d3b726bb43d09832799a86b9a6e6bbfb
module Captions class Cue include Util # Text Properties supported ALIGNMENT = "alignment" COLOR = "color" POSITION = "position" # List of Text Properties TEXT_PROPERTIES = [ALIGNMENT, COLOR, POSITION] attr_accessor :number, :start_time, :end_time, :duration, :text, :p...
Ruby
lib/captions/cue.rb
navinre/captions
mit
2,887
94
codeparrot/github-code
e990461282f116d7cfd47130a8f68b29167c4fbaf0801d9a4653332d5f837679
<?php namespace Ekyna\Bundle\SurveyBundle\Entity; use Doctrine\Common\Collections\ArrayCollection; use Ekyna\Bundle\SurveyBundle\Model\AnswerInterface; use Ekyna\Bundle\SurveyBundle\Model\QuestionInterface; use Ekyna\Bundle\SurveyBundle\Model\ResultInterface; /** * Class Answer * @package Ekyna\Bundle\SurveyBundle...
PHP
Entity/Answer.php
ekyna/SurveyBundle
mit
3,138
180
codeparrot/github-code
4e212f5ee59bb86bd3ce44ef03e0eb431db3de83aab08acc38712e4c6f731437
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import { Link } from 'react-router-dom'; import _ from 'lodash'; import User from './User'; import Loading from '../../components/Icon/Loading'; import './InterestingPeople.less'; import steemAPI...
JavaScript
src/components/Sidebar/InterestingPeopleWithAPI.js
ryanbaer/busy
mit
2,712
100
codeparrot/github-code
be359c32b06baef83bc14419cc1c78c9786720547780edec5893884c3ededd0d
package com.xcode.mobile.smilealarm.alarmpointmanager; import android.content.Context; import java.io.IOException; import java.sql.Date; import java.sql.Time; import java.util.Calendar; import java.util.HashMap; import com.xcode.mobile.smilealarm.DataHelper; import com.xcode.mobile.smilealarm.DateTimeHelp...
Java
SmileAlarm/app/src/main/java/com/xcode/mobile/smilealarm/alarmpointmanager/RisingPlanHandler.java
anhnguyenbk/XCODE-MOBILE-APPS-DEV
mit
7,754
196
codeparrot/github-code
6a570ce3af56e9eca6cc5bf0ba4bdd74f4a1674450b7b75cb83ebf142e667768
package ny2.ats.model.tool; import java.util.function.BiPredicate; /** * 取引条件計算の演算子のクラスです */ public enum TradeConditionOperator { EQUAL((d1, d2) -> Double.compare(d1, d2) == 0, null, "="), LESS((d1, d2) -> d1 < d2, null, "<"), LESS_EQUAL((d1, d2) -> d1 <= d2, null, "<="), GRATER((d1, d2) -> d1 >...
Java
ats/src/main/java/ny2/ats/model/tool/TradeConditionOperator.java
Naoki-Yatsu/FX-AlgorithmTrading
mit
1,634
65
codeparrot/github-code
c2bc4bb374d8e95e034001477c710766569d50c5075855fab2fdc65dcca6b17b
#include <iostream> #include <vector> using namespace std; void separateOddsAndEvens(const vector<int>& arr, vector<int>& odds, vector<int>& evens); void printVector(const vector<int>& vec); int main() { vector<int> arrUnsplit = {1,2,3,4,5,6,7,8,9,10}; vector<int> odds, evens; cout << "main array is: " << endl; ...
C++
References/separateOddsAndEvens.cpp
playmice/cplusplus_snippets
mit
1,006
51
codeparrot/github-code
32a8df8fe499370ac78078f0a2f4eb1a5c3099bb1438ddfc9891ea4079a31522
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using System.Text; using System.Threading.Tasks; using LevelEditor.Extensibility.ReadOnlyViewModels; namespace LevelEditor.ViewModels { public class ElementToolBoxViewModel : RootedViewModel, IReadOn...
C#
LevelEditor/ViewModels/ElementToolBoxViewModel.cs
bitcraftCoLtd/level-editor
mit
2,509
75
codeparrot/github-code
37ccf306245072d02ff56be8bf78c21e71637c87f2e6129686548d0339ecadee
<?php namespace InfinityGames\InfinityBundle\Form; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolverInterface; class ReponseTopicForumType extends AbstractType { public function buildForm(FormBuilderInterface $builder, ...
PHP
src/InfinityGames/InfinityBundle/Form/ReponseTopicForumType.php
thomaschvt/Infinity-Games
mit
955
36
codeparrot/github-code
b53d89d7ef5adf4471ac15fc7f74535ce931273e0f5918bc90c30cf5064d503d
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <!-- /fasttmp/mkdist-qt-4.3.5-1211793125/qtopia-core-opensource-src-4.3.5/src/qt3support/sql/q3sqlpropertymap.cpp --> <hea...
HTML
webserver/html/q3sqlpropertymap.html
misizeji/StudyNote_201308
mit
10,971
116
codeparrot/github-code
7bc07a128c3f253b0beb70ba9dde9c16147acab3a3dc097dc9a8bd0a46f860aa
class LinkedList { public static void main(String[] a) { System.out.println(new LL().Start()); } } class Element { int Age; int Salary; boolean Married; public boolean Init(int v_Age, int v_Salary, boolean v_Married) { Age = v_Age; Salary = v_Salary; Married = v_...
Java
MiniJava/results/SamplesCorrect/LinkedList/code.java
team-compilers/compilers
mit
6,548
259
codeparrot/github-code
8b106e27aa52cde94d701d07108ed30878d07787ed0e1d7c3d2ce9d7bb57259e
#include <windows.h> #include <stdio.h> #include <psapi.h> #include <string.h> #include <time.h> #include <math.h> #define WINDOWNAME "Counter-Strike: Global Offensive" #define PLRSZ 0x18 #define SERVERDLL "server.dll" #define CLIENTDLL "client.dll" const DWORD plr_num_offset = 0x93DCF8; const DWORD plr_list_offset =...
C
esp.c
remizovm/keng_esp_hack
mit
4,536
169
codeparrot/github-code
e01f2e96dff293aa13d2652666ef8c1943354b5557882d85e740134ecec8f4b8
package me.mrdaniel.npcs.actions; import javax.annotation.Nonnull; import org.spongepowered.api.entity.living.player.Player; import org.spongepowered.api.text.Text; import org.spongepowered.api.text.action.TextActions; import org.spongepowered.api.text.format.TextColors; import me.mrdaniel.npcs.catalogtypes.actionty...
Java
src/main/java/me/mrdaniel/npcs/actions/ActionGoto.java
Daniel12321/NPCs
mit
1,403
46
codeparrot/github-code
ff3ba9a1252dd00ab0442af84524d5f6f5ab87d95128da15e0e8ad5c5300c4cc
<?php namespace Rotor\DB; class DbSchema { public static function Update($table,$definition) { //_gc($table, 'Schema Update'); $definition = static::flattenDefinition($definition); if (!self::Table_exists($table)) { self::Create_Table($table,$definition); } else { ...
PHP
Rotor/DB/DbSchema.php
andrixh/rotor
mit
4,044
127
codeparrot/github-code
145195334d267868b34a49b419e7bfd8329ad954ba20043e13a45d417f183927
using System.Collections; using System.Collections.Generic; using UnityEngine; using WaveVR_Log; using wvr; public class WaveVR_PointerCameraTracker : MonoBehaviour { private const string LOG_TAG = "WaveVR_PointerCameraTracker"; public GameObject reticleObject = null; public WVR_DeviceType type; priva...
C#
Assets/Vendors/WaveVR/Scripts/WaveVR_PointerCameraTracker.cs
demonixis/TESUnity
mit
1,377
53
codeparrot/github-code
09a8933925e1e903b6db23652fde173867d7509224a825a5ca7f3834cd6dee86
<?php namespace Kunstmaan\MediaBundle\Helper\RemoteSlide; use Kunstmaan\MediaBundle\Form\RemoteSlide\RemoteSlideType; use Kunstmaan\MediaBundle\Helper\Media\AbstractMediaHandler; use Kunstmaan\MediaBundle\Entity\Media; /** * RemoteSlideStrategy */ class RemoteSlideHandler extends AbstractMediaHandler { /** ...
PHP
src/Kunstmaan/MediaBundle/Helper/RemoteSlide/RemoteSlideHandler.php
WouterJ/KunstmaanBundlesCMS
mit
4,857
207
codeparrot/github-code
7b6adcb76bd833c1bca0837b1f303bae50f9ce4529764986622e98d5f14f1f00
import {appendHtml, combine} from './../util'; const ELEMENT_NAMES = { frameName: 'text-frame', messageName: 'text-message', indicatorName: 'text-indicator' }; let createElements = (container, names) => { const elements = '\ <div class="text-frame" id="' + names.frameName + '">\ <span class="text-me...
JavaScript
src/extensions/TextOutput.js
Parnswir/tie
mit
2,306
74
codeparrot/github-code
a8b53c96005227329a39eb0b65f7e792d804ec2ceb8efb895b42b11628389a2a
;(function() { function ToerismeApp(id, parentContainer) { this.API_URL = 'https://datatank.stad.gent/4/toerisme/visitgentevents.json'; this.id = id; this.parentContainer = parentContainer; this.loadData = function() { var that = this; var xhr = new XMLHttpRequest(); xhr.ope...
JavaScript
js/events.js
dwievane/dwievane.github.io
mit
2,650
66
codeparrot/github-code
57a0c8eb627f60896413dc9f9388e50167298e6ef9f10638f07768c3e7addc24
package raft import ( "github.com/iketheadore/raft/comm" "github.com/iketheadore/raft/logic" ) type Raft struct { localServ logic.Server listener comm.Listener sender comm.Sender logic *logic.Logic } func New(addr string) *Raft { r := &Raft{localServ: logic.Server{Addr: addr, Role: logic.Follower}, li...
GO
raft.go
iketheadore/raft
mit
685
34
codeparrot/github-code
ba6fff36a8aeb2e8e44f5cce0968eb04467a46d87794b966b6cf084cdcea6415
package main import "time" import "fmt" import "os" import "io/ioutil" import "math/rand" import "github.com/antonholmquist/jason" var LOADED *jason.Object // global var to hold the entire json object from file // loads from file into the jason.Object pointer. func LoadRollTables() (err error) { fi, err := os.Open(...
GO
main.go
jrmiller82/dm-roller
mit
3,379
144
codeparrot/github-code
d4c71262536885c3b0b5de3608c0030304b797e16f9185519309e237c455fd61
$(function () { 'use strict'; const notificationType = { success: 'Success', error: 'Error', info: 'Info' }, notificationTypeClass = { success: 'toast-success', info: 'toast-info', error: 'toast-error' }; function initSignalR...
JavaScript
DogeNews/Src/Web/DogeNews.Web/Scripts/Common/notificator.js
SuchTeam-NoJoro-MuchSad/Doge-News
mit
1,004
35
codeparrot/github-code
5617ddaf38631485c33f4e376aa205ea2faafd6ad309afdc988c5c62f2ee579f
/** * Ensures that the callback pattern is followed properly * with an Error object (or undefined or null) in the first position. */ 'use strict' // ------------------------------------------------------------------------------ // Helpers // -------------------------------------------------------------------------...
JavaScript
rules/no-callback-literal.js
xjamundx/eslint-plugin-standard
mit
2,134
78
codeparrot/github-code
015e4e6ddda5afaa7fa2f91e8142e2193efaddd0b7b65d6e4e5bb03aec26bb8e
package com.github.mikhailerofeev.scholarm.local.services; import android.app.Application; import com.github.mikhailerofeev.scholarm.api.entities.Question; import com.github.mikhailerofeev.scholarm.local.entities.QuestionImpl; import com.google.gson.Gson; import com.google.gson.reflect.TypeToken; import com.google.inj...
Java
localdb/src/main/java/com/github/mikhailerofeev/scholarm/local/services/QuestionsManager.java
Whoosh/schalarm
mit
3,530
114
codeparrot/github-code
139cfbf3f8276df4bfa3118502eeb92a8a7ba7e7c2fd20dfdea9239fc9dadd32
/* * Copyright (C) 2011-2012 Dr. John Lindsay <jlindsay@uoguelph.ca> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later vers...
Java
ghrg/Whitebox/WhiteboxGAT-linux/resources/plugins/source_files/AverageSlopeToDivide.java
jblindsay/jblindsay.github.io
mit
16,874
427
codeparrot/github-code
fd33d98ca176ded298ef1392c567addaf5c6f30bf4be7bd76ad6efe13538c697
#-*- coding: utf-8 -*- from .grant import Grant from ..endpoint import AuthorizationEndpoint class ImplicitGrant(Grant): """ The implicit grant type is used to obtain access tokens (it does not support the issuance of refresh tokens) and is optimized for public clients known to operate a particular r...
Python
django_town/oauth2/grant/implicitgrant.py
uptown/django-town
mit
2,061
58
codeparrot/github-code
eb3d9cbe289470cebe94283d32326949a6d1ff949e6fb2531cb72a3f6fc5dc29
using System; using System.Collections.Generic; using System.Linq; using System.Text; class MessagesInABottle { static void GetMessage(string input, int start, Dictionary<string, char> cipher, List<string> answers) { if (start >= input.Length) { answers.Add(input); retu...
C#
Programming/2. CSharpPartTwo/ExamCS2_07.02.2012/2. MessagesInABottle/MessagesInABottle.cs
kalinalazarova1/TelerikAcademy
mit
2,114
71
codeparrot/github-code
d29890c0fb1a47ef51a0a7f3eaa27b8f93a99385d56e1ffe99955b260e7da89a
<?xml version="1.0" ?><!DOCTYPE TS><TS language="hi_IN" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About HazeCoin</source> <translation>बिटकोइन के संबंध में</translation>...
TypeScript
src/qt/locale/bitcoin_hi_IN.ts
HazeDev/Hazecoin
mit
99,922
2,922
codeparrot/github-code
31a28601fab5ff92e6e1b2f97b76ea6ce632824d6204b1043f156bedb82f2e31
#include "bond/api/libio.h" #include "bond/io/outputstream.h" #include "bond/io/outputstreamadaptor.h" #include <cstdio> namespace Bond { void OutputStreamAdaptor::Print(const char *str) { const char *format = ((mFlags & IO::Left) != 0) ? "%-*s" : "%*s"; mStream->Print(format, mWidth, str); mWidth = 0; } void Ou...
C++
source/outputstreamadaptor.cpp
bondscripting/bond
mit
2,600
148
codeparrot/github-code
7167aca933b1fd8c339f2d710f6cd0cdbe0ce8995bb5b3d12e5821671bd89f15
module.exports = function(sails) { var Agenda = require('agenda'), util = require('util'), _ = require('lodash'), os = require("os"), agenda = new Agenda() agenda.sails = sails; var stopServer = function() { agenda.stop(function() { console.log("agenda stopped"); }); ...
JavaScript
index.js
ptphats/sails-hook-jobs
mit
4,966
163
codeparrot/github-code
0806ab8d9cc639593ba1a1e2cd9b0a5f37604fc36c21c2042553c58cc1ffd685
class Beer < ActiveRecord::Base SORTABLE_COLUMNS = %w(id name created_at updated_at).freeze include SearchableModel belongs_to :brewery belongs_to :user validates :brewery_id, presence: true validates :name, presence: true, length: { maximum: 255 } validates :description, presence: true, length...
Ruby
app/models/beer.rb
openbeerdatabase/openbeerdatabase
mit
923
38
codeparrot/github-code
901826a53991d607f6f71491b3847c4ff1eac5c0467093620e84ec530a95cc33
<!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.10.2-2.0.6/released/8.15.0/hammer/1.1+8.8.html
coq-bench/coq-bench.github.io
mit
6,853
173
codeparrot/github-code
f42fad9741e6a8db8d91e3c0055551c0ff707f47970fcd10af22441e7c8b5d62
package nl.rmokveld.wearcast.phone; import android.app.Service; import android.content.Context; import android.content.Intent; import android.os.IBinder; import android.support.annotation.Nullable; import android.support.v7.app.NotificationCompat; import nl.rmokveld.wearcast.shared.C; public class WearCastService ex...
Java
library-app/src/main/java/nl/rmokveld/wearcast/phone/WearCastService.java
remcomokveld/WearCast
mit
2,916
86
codeparrot/github-code
8a980bbbe2113ab672519d0e17fb14eb6c4c98324a69e55659721c9cb766139a
#include <z80e/ti/asic.h> #include <z80e/debugger/debugger.h> #include <z80e/disassembler/disassemble.h> #include <z80e/runloop/runloop.h> #include "tui.h" #include <z80e/debugger/commands.h> #include <z80e/log/log.h> #include <z80e/ti/hardware/t6a04.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #inclu...
C
frontends/tui/main.c
KnightOS/z80e
mit
8,311
313
codeparrot/github-code
87bbca8d5c57f225b843f9726502284db2bef1b14a2803cd1c986a388afdf8a1
var grunt = require('grunt'); var fs = require('fs'); var gruntTextReplace = require('../lib/grunt-match-replace'); var replace = function (settings) { return gruntTextReplace.replace(settings); }; exports.textReplace = { 'Test error handling': { setUp: function (done) { grunt.file.copy('test/text_f...
JavaScript
test/text-replace-error-tests.js
ebsco/grunt-translations
mit
3,366
116
codeparrot/github-code
0d7832ee8ea16c99dabc1f8a1eafb785e2455602c7917df5232d595b00e9ceee
<?php namespace Vexilo\Utilities\Models\Traits; trait SortableTrait { /** * Return an array with the sortable columns * * @param array $sort the current sort array * @return array */ public static function getSortableColums($sort = null) { $instance = new static; $...
PHP
src/Models/Traits/SortableTrait.php
vexilo/utilities
mit
2,500
85
codeparrot/github-code
e13bd79b51caa6ada6c84f117e5a5f64d4df720f5a87cc9ab34596ef3af9a0ee
using Radical.Validation; using System; using System.Windows.Data; using System.Windows.Markup; namespace Radical.Windows.Converters { [MarkupExtensionReturnType(typeof(NotConverter))] [ValueConversion(typeof(bool), typeof(bool))] public sealed class NotConverter : AbstractSingletonConverter { ...
C#
src/Radical.Windows/Converters/NotConverter.cs
RadicalFx/Radical.Windows
mit
1,419
45
codeparrot/github-code
fa172ad019b8521bf06cc526ba1567c7851f8e583f5f843c6d787c2bcea17107
require 'ebay_trading/types/shipment' require 'ebay_trading/types/variation' module EbayTrading # :nodoc: module Types # :nodoc: # == Attributes # text_node :invoice_number, 'InvoiceNumber', :optional => true # numeric_node :transaction_id, 'TransactionID', :optional => true # numeric_node :sale_r...
Ruby
lib/ebay_trading/types/selling_manager_sold_transaction.rb
plzen/ebay
mit
3,298
58
codeparrot/github-code
36f7972c3bbbddacbf9c8bceee4d6718a21402745480dbafbe1a46a591b3f548
#include "serverstatus.h" #include <sys/types.h> #include <sys/stat.h> #include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <errno.h> #include <unistd.h> #include <syslog.h> #include <string.h> #include <time.h> #include <iostream> #include <fstream> #include <limits> #include <signal.h> #include <unistd...
C++
serverstatus.cpp
Fidi/Server-Status
mit
15,505
552
codeparrot/github-code
f065f02baacab2298a437831db91c7a7a3428588547b9c65732de1e8c565b000
require 'base64' require 'bcrypt' module Passrock class PasswordDbFinder RECORD_LENGTH = 12 def self.bcrypt_hash(secret, salt) BCrypt::Engine.hash_secret(secret, "$2a$07$#{salt}") end attr_reader :password_db, :private_key def initialize(opts = {}) @password_db = opts[:password_...
Ruby
lib/passrock/password_db_finder.rb
bitium/passrock
mit
2,164
87
codeparrot/github-code
974d2e976ec1598b619c3febe9d1466a2a50eaee03ba7f20d832ef6670870ba9
using Newtonsoft.Json.Linq; using Skybrud.Essentials.Json.Extensions; using Skybrud.Essentials.Time; namespace Skybrud.Social.Slack.Models.Conversations { /// <summary> /// Class representing the topic a Slack conversation. /// </summary> public class SlackConversationTopic : SlackObject { #...
C#
src/Skybrud.Social.Slack/Models/Conversations/SlackConversationTopic.cs
abjerner/Skybrud.Social.Slack
mit
1,868
60
codeparrot/github-code
e71dc7a2574f18a53883c2096b1a0cac12abe2903f76d400d8aabc67b118fc36
package spaceinvaders.command.client; import static spaceinvaders.command.ProtocolEnum.UDP; import spaceinvaders.client.mvc.Controller; import spaceinvaders.client.mvc.View; import spaceinvaders.command.Command; /** Flush the screen. */ public class FlushScreenCommand extends Command { private transient Controller...
Java
src/main/java/spaceinvaders/command/client/FlushScreenCommand.java
apetenchea/SpaceInvaders
mit
771
34
codeparrot/github-code
fa8920b87b75089bd4f21c9eb48e04ff146b7b324d160e154c695f66d3ecb060
/** @module ember-flexberry-gis */ import Ember from 'ember'; /** Class implementing base stylization for markers. @class BaseMarkerStyle */ export default Ember.Object.extend({ /** Gets default style settings. @method getDefaultStyleSettings @return {Object} Hash containing default style settin...
JavaScript
addon/markers-styles/-private/base.js
Flexberry/ember-flexberry-gis
mit
1,493
48
codeparrot/github-code
970c1ffa2078d50fe4083f97933ea79d632cc4313f80d287402d484929cd5a29
/* * The MIT License * * Copyright 2017 michael. * * 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,...
Java
src/test/java/il/ac/bgu/cs/bp/bpjs/analysis/DfsBProgramVerifierTest.java
bThink-BGU/BPjs
mit
23,953
560
codeparrot/github-code
0b86a111f4658213b0b4adf786d1ccfc588f5091fa8b43aa870fe74667e5c234
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. namespace Microsoft.Build.Framework { public delegate void AnyEventHandler(object sender, Microsoft.Build.Framework.BuildEventArgs e); [System.Runtime.InteropSer...
C#
ref/Microsoft.Build.Framework/netstandard/Microsoft.Build.Framework.cs
rainersigwald/msbuild
mit
55,579
774
codeparrot/github-code
bb5ec698822de2768d32f84adcd36d7b0fab231f905b7855e80c18a59b187185
/* * * The MIT License * * Copyright (c) 2015, Sebastian Sdorra * * 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...
JavaScript
sample/scripts/sample-01.js
AjithVas/ACP
mit
2,096
65
codeparrot/github-code
8ae8dd1141f9c837dcdd2e303b11a76e8e52fc3ba0ed72188d717ae9effd4e06
require("lua/tracer") tracer_clear() glib_add([=[ uniform sampler2D tex_rand; uniform usampler3D tex_vox; uniform float scene_sb_offs; const vec3[] lcol = vec3[]( vec3(0.5, 0.5, 0.5), vec3(0.7, 0.4, 0.4), vec3(0.3, 0.7, 0.3), vec3(0.45, 0.45, 0.7), vec3(0.7, 0.1, 0.7) ); uint voxel_fetch(int layer, ivec3 cell)...
Lua
lua/scene/voxygen.lua
iamgreaser/ds15-rt
mit
7,165
269
codeparrot/github-code
c384b0c4ee2f94addd25b8de6fe7293d86f5661df6725fdf71c86a0728c54e92
module VirusGame { export const enum CellState { Empty, Alive, Dead }; export class BoardCell extends Phaser.Image { state: CellState = CellState.Empty; player: BoardPlayer; isPossibleToMoveTo: boolean = false; constructor(public row: number, public col: number, pub...
TypeScript
game/BoardCell.ts
asyler/virus-game
mit
3,199
81
codeparrot/github-code
5a1101a9e613d309353d55feeafced887dcf7a019c342b98325989fe52fa5cdd
#!/usr/bin/env python # # Copyright (c) 2001 - 2016 The SCons Foundation # # 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
test/Execute.py
EmanueleCannizzaro/scons
mit
4,013
120
codeparrot/github-code
e7498c4c08db46a31b40a18618c658cf5a185547457a7b09a82a50b5f4781e1b
//MIT License // //Copyright (c) 2019 Mindaugas Vinkelis // //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...
C
include/bitsery/ext/std_variant.h
fraillt/bitsery
mit
4,314
103
codeparrot/github-code
ef3ad712b39905200aaea9ab9c5aced628101fc942307e7e3e40ea0b93dc0d51
<?php namespace Yadakhov; use mikehaertl\shellcommand\Command; /** * A simple wrapper class for Tor * @package Yadakhov */ class Tor { public function __construct() { if (!$this->isRunning()) { $this->command('start'); } } /** * Execute tor command * * @...
PHP
src/Tor.php
yadakhov/tor
mit
4,631
201
codeparrot/github-code
6f16b917b846822e42e31f2d6eecd8f89e24d08f42bd669c5e34823878489ad2
// Source file for alignment utility functions // Include files #include "R3Shapes.h" // Namespace namespace gaps { R3Box R3BoundingBox(const RNArray<R3Point *>& points) { // Compute bounding box R3Box bbox = R3null_box; for (int i = 0; i < points.NEntries(); i++) { bbox.Union(*points[i]); } /...
C++
pkgs/R3Shapes/R3Align.cpp
tomfunkhouser/gaps
mit
16,484
602
codeparrot/github-code
88f945de0402e0c60a802d48c4ab3d861bdd985445daecb8e465f82f9229e2fe
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2018 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <policy/feerate.h> #include <tinyformat.h> const std::string CURRENCY_...
C++
src/policy/feerate.cpp
Bushstar/UFO-Project
mit
1,149
44
codeparrot/github-code
c05a186d0029df996d3f5b3a0a0f30a939270697ffef21c4a5d6eb52c6c68bd0
var path = require('path'); var webpack = require('webpack'); var _ = require('lodash'); var baseConfig = require('./base'); // Add needed plugins here var BowerWebpackPlugin = require('bower-webpack-plugin'); var config = _.merge({ entry: [ 'webpack-dev-server/client?http://127.0.0.1:8000', 'webpack/hot/o...
JavaScript
cfg/dev.js
rsamec/react-designer
mit
784
36
codeparrot/github-code
2aabca03766a31b4ee7ddc9eec2a8f761ca0f20ff48718bef40a7792d3a9fe4b
/*eslint-env mocha*/ /* * mochify.js * * Copyright (c) 2014 Maximilian Antoni <mail@maxantoni.de> * * @license MIT */ 'use strict'; var assert = require('assert'); var fs = require('fs'); var run = require('./fixture/run'); var sandbox = require('./fixture/sandbox'); describe('node', function () { it('passe...
JavaScript
test/node-test.js
mantoni/mochify.js
mit
11,513
377
codeparrot/github-code
48998c069989d5bc3c2f37264701e9ed8db2ba154fa9867e9943bc7708262296
// Copyright (c) 2011-2014 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "omnicoinamountfield.h" #include "omnicoinunits.h" #include "guiconstants.h" #include "qvaluecombobox.h" #include ...
C++
src/qt/omnicoinamountfield.cpp
MeshCollider/Omnicoin
mit
8,247
303
codeparrot/github-code
95209cdf99ad79e6bf4d71a601b8f934316fbe58b8eeb0ac19bb1f586cc183b6
var http = require('http') var https = require('https') var corsify = require('corsify') var collect = require('stream-collector') var pump = require('pump') var iterate = require('random-iterate') var limiter = require('size-limit-stream') var eos = require('end-of-stream') var flushHeaders = function (res) { if (r...
JavaScript
server.js
supriyantomaftuh/signalhub
mit
2,767
101
codeparrot/github-code
513c3a61fb5746b096b4b90145bfef975ed85969f34e034a68eb24305cab4229
# encoding: utf-8 require "mongoid/criterion/complex" require "mongoid/criterion/exclusion" require "mongoid/criterion/inclusion" require "mongoid/criterion/optional" module Mongoid #:nodoc: # The +Criteria+ class is the core object needed in Mongoid to retrieve # objects from the database. It is a DSL that essent...
Ruby
lib/mongoid/criteria.rb
adorr/mongoid
mit
7,764
249
codeparrot/github-code
d43246d545b36a4b18eabc250547a049a05114addc316f9a63ac9db7a0c9f4f5
/* ** functions.c for functions.c in /home/kiwi/CPool_evalexpr ** ** Made by Lyes Kaïdi ** Login <kiwi@epitech.net> ** ** Started on Fri Oct 28 17:44:44 2016 Lyes Kaïdi ** Last update Fri Oct 28 17:47:02 2016 Lyes Kaïdi */ #include "./include/calc.h" #include "./include/my_functs.h" int next_token_index = 0;...
C
functions.c
LyesKaidi/Eval_Expr
mit
2,144
110
codeparrot/github-code
45985aebe77a33345adfb0245cfd5a66d2f897cab8b5e965d43916db63725d5e
package io.picopalette.apps.event_me.Utils; import android.annotation.SuppressLint; import android.content.Context; import android.support.design.widget.CoordinatorLayout; import android.support.v7.widget.Toolbar; import android.util.AttributeSet; import android.view.View; import com.facebook.drawee.view.SimpleDrawee...
Java
app/src/main/java/io/picopalette/apps/event_me/Utils/ImageBehaviour.java
picopalette/event-me
mit
4,149
119
codeparrot/github-code
7507249147e6327b6e24bb4938a85bff31940ac837d3739f446949c5429063b7
/** * db.hpp * * Database abstraction part of Disc Data Base. * * Copyright (c) 2010-2011 Wincent Balin * * Based upon ddb.pl, created years before and serving faithfully until today. * * Uses SQLite database version 3. * * Published under MIT license. See LICENSE file for further information. */ #in...
C++
db.cpp
wincentbalin/DDB
mit
11,489
452
codeparrot/github-code
1a4c312f88202e38239c910cf2867ca9e7d606657cb7dc486488793c33c60e2b
{-# LANGUAGE RecordWildCards #-} {-# LANGUAGE OverloadedStrings #-} -- | The GhostLang.Node.Flow module is implementing the Flows - -- business logic - for the Node. module GhostLang.Node.Flow ( getHttpConfig , setHttpConfig , listPrograms , listPatternsFromProgram , runNamedPattern , runRando...
Haskell
ghost-node/src/GhostLang/Node/Flow.hs
kosmoskatten/ghost-lang
mit
8,813
219
codeparrot/github-code
1a4054657ec2276130e8b8f41f022b259d66c4f8b17a598dc1d1c382d8f52b21
use strict; use Data::Dumper; use Carp; # # This is a SAS Component # =head1 NAME get_relationship_IsContainedIn =head1 SYNOPSIS get_relationship_IsContainedIn [-c N] [-a] [--fields field-list] < ids > table.with.fields.added =head1 DESCRIPTION This relationship connects a subsystem spreadsheet cell to the featu...
Perl
scripts/get_relationship_IsContainedIn.pl
kbase/kb_seed
mit
6,112
286
codeparrot/github-code
f3f81617822afcb22e252eeaffaa0a34214276c3390e4d734bb057a11b84b25c
/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org/ Copyright (c) 2000-2012 Torus Knot Software Ltd Permission is hereby granted, free of charge, to any...
C
include/OGRE/RenderSystems/Direct3D9/OgreD3D9MultiRenderTarget.h
Oriense/orsens
mit
2,341
61
codeparrot/github-code
f152c9f8f067b5483ef8722f0d35501b976b794cf66ee3576998838ac05fbe1a
// extglyde // // Glyde Glue Plugin // (c)2015 by Cylexia, All Rights Reserved // // Version: 1.15.0625 // // MIT License var ExtGlyde = { GLUE_STOP_ACTION: -200, plane: null, // Canvas resources: null, styles: null, buttons: null, keys: null, button_sequence: [], timers: null, timer_manager:...
JavaScript
glue/extglyde.js
cylexia/glyde-chromeapp
mit
21,282
763
codeparrot/github-code
aa9861742af380c6111558369bf479e6e88248c769d92bde6b7fce3eb360f1ad
// Copyright (c) 2014 blinkbox Entertainment Limited. All rights reserved. package com.blinkboxbooks.android.authentication; import android.accounts.AbstractAccountAuthenticator; import android.accounts.Account; import android.accounts.AccountAuthenticatorResponse; import android.accounts.AccountManager; import androi...
Java
app/src/main/java/com/blinkboxbooks/android/authentication/BBBAuthenticator.java
blinkboxbooks/android-app
mit
6,858
168
codeparrot/github-code
6b196f8b5821c2e62817031586d2fec558e908b36dc6aa70156718d9afc89807
<!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....
HTML
clean/Linux-x86_64-4.02.3-2.0.6/released/8.7.1+2/hammer-tactics/1.3.1+8.13.html
coq-bench/coq-bench.github.io
mit
7,384
182
codeparrot/github-code
0e3d3f070b2f43df48a5cd80d78e74f94108d28a82e43ec7de40a6fd8269a4ff
import React, { Component, PropTypes } from 'react'; import { Image } from 'react-bootstrap'; require('./styles.scss'); class SocialBar extends Component { constructor(props) { super(props); } render() { const { icon, url } = this.props; return ( <a href={url} target="_blank"> ...
JavaScript
src/containers/ProfilePage/ProfileHeader/SocialIcon.js
sebacorrea33/todoinstitutos
mit
602
32
codeparrot/github-code
ad07d600adb5ef5339dda61e548648e575063fec9d2151fc1034ffbdea39cb90
package org.spongycastle.pqc.jcajce.provider.test; import java.security.KeyPairGenerator; import java.security.spec.AlgorithmParameterSpec; import javax.crypto.Cipher; import org.spongycastle.pqc.jcajce.spec.ECCKeyGenParameterSpec; public class McElieceKobaraImaiCipherTest extends AsymmetricHybridCipherTest { ...
Java
prov/src/test/java/org/spongycastle/pqc/jcajce/provider/test/McElieceKobaraImaiCipherTest.java
iseki-masaya/spongycastle
mit
1,060
44
codeparrot/github-code
ca26d088e3b54f3db2408f8d72b4518ef7905c95a168e4572e541f03780d01ab
from django import forms from django.core.validators import validate_email from django.db.models import Q from django.utils.translation import ugettext_lazy as _ from .utils import get_user_model class PasswordRecoveryForm(forms.Form): username_or_email = forms.CharField() error_messages = { 'not_fo...
Python
password_reset/forms.py
xsunfeng/cir
mit
4,276
120
codeparrot/github-code
9c29dab2251a4588b3206f404f8eecc13279e22a07c9bdda3b69b5858642cc52
// to be used if new modules are added to MSF. Mamoru.Sync.allModules = function(){ var moduleFixtures = { exploit: 'module.exploits', post: 'module.post', auxiliary: 'module.auxiliary', payload: 'module.payloads', encoder: 'module.encoders', nop: 'module.nops', }...
JavaScript
mamoru/server/lib/sync.js
mamoru-vm/mamoru
mit
9,615
248
codeparrot/github-code
8a76933588f6ef63e8563bf12367419f586ade7c07417bda5e16b0bdcbe1273f
require 'childprocess' require 'tempfile' require 'shellwords' require 'aruba/errors' require 'aruba/processes/basic_process' require 'aruba/platform' # Aruba module Aruba # Platforms module Processes # Spawn a process for command # # `SpawnProcess` is not meant for direct use - `SpawnProcess.new` - b...
Ruby
lib/aruba/processes/spawn_process.rb
jasnow/aruba
mit
7,406
281
codeparrot/github-code
59b7526d094f07c627aaa2b9db259a39930f614d76b946270ecf769f4b1fcd5f
<?php namespace Philsquare\LaraManager\Http\Controllers; use Illuminate\Http\Request; use Philsquare\LaraManager\Http\Requests\CreateRedirectRequest; use Philsquare\LaraManager\Http\Requests\UpdateRedirectRequest; use Philsquare\LaraManager\Models\Redirect; class RedirectsController extends Controller { protect...
PHP
src/Philsquare/LaraManager/Http/Controllers/RedirectsController.php
frodex/LaraManager
mit
2,779
114
codeparrot/github-code
9302679dd925fe3660b979f647f72ea0d4aa7c0749960f17afa914175644e3fd
module PageObjectModel require 'calabash-android/abase' require_relative '../../../features/pages/actions/common_actions' class Page < Calabash::ABase include PageOperations include UtilityObjects include PageObjectModel::PageActions def initialize(world, transition_duration = 0.5) logger....
Ruby
features/pages/model/page.rb
blinkboxbooks/android-test
mit
1,617
69
codeparrot/github-code
0a8455ce44f023c379b9b3447a89c765bb0de40646f4cb2cafd7dd3f4483fc2f
/* * Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Fou...
Java
javac/src/main/java/com/sun/source/util/TaskEvent.java
daniel-beck/sorcerer
mit
3,433
123
codeparrot/github-code
05012c8498c42a4d9719e781306c15c87f0b4d0a6cac14b1997eaa22d1f23a11
//****************************************************************************************************** // PQMarkAggregate.cs - Gbtc // // Copyright © 2017, Grid Protection Alliance. All Rights Reserved. // // Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See // ...
C#
Source/Libraries/openXDA.Model/PQMarkAggregate.cs
GridProtectionAlliance/openXDA
mit
1,812
54
codeparrot/github-code