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
69faa11fbcb478ca6e642c4b3796d30fbc48c258f0191e61505f6f95c9ca5954
#include <pthread.h> #include <stdio.h> #include <stdlib.h> // compile by gcc -o syc_m syc_m.c -pthread // ./syc_m int MAX = 10; int count = 1; pthread_mutex_t mutex; void print_star(int i) { int j; pthread_mutex_lock(&mutex); for (j = 1; j <= i; j++) { printf("*"); } // printf(" %d"...
C
Recitations/Section_07/Code/recitation_11_14_code/syc_m.c
USMC1941/CS214-Rutgers
mit
1,385
72
codeparrot/github-code
65d03c48073e1073ec4bd7d470820e91f766dd7493d100a9bb8d5a5ab9b1e868
<!DOCTYPE html> <html> <head> <meta http-equiv='content-type' value='text/html;charset=utf8'> <meta name='generator' value='Ronn/v0.7.3 (http://github.com/rtomayko/ronn/tree/0.7.3)'> <title>hub(1) - git + hub = github</title> <style type='text/css' media='all'> /* style: man */ body#manpage {margin:0} .mp...
HTML
man/hub.1.html
paulcbetts/hub
mit
15,905
372
codeparrot/github-code
f5d029413334ab3902eae120b24ef7c7a8201c6f4fd8747c4ccab27f6e90095a
/* * Copyright (c) 2015 by Greg Reimer <gregreimer@gmail.com> * MIT License. See license.txt for more info. */ var stream = require('stream') , util = require('util') , co = require('co') , unresolved = require('./unresolved') // ----------------------------------------------------- function Readable(opts, ...
JavaScript
lib/readable.js
greim/eventual-pony
mit
929
38
codeparrot/github-code
854f4896405a325d3b2ac119390829fe14507159e777bc10cabc4717fec27b27
namespace Dike.Core.Mail { using Dike.Core.Configuration; using Dike.Core.Utils.Extensions; using System; /// <summary> /// Represents the e-mail sender configuration. The settings are read from the <see cref="ISettingManager"/>. /// </summary> /// <seealso cref="Dike.Core.Mail.IEmailSende...
C#
src/Dike.Core/Mail/EmailSenderConfiguration.cs
IngbertPalm/project.dike
mit
2,613
80
codeparrot/github-code
56c40706ba3a17ddab4e4440152dad39bce4019e878c695a1a54396d0f2aaf5c
/* A Bison parser, made by GNU Bison 2.3. */ /* Skeleton implementation for Bison's Yacc-like parsers in C Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of th...
C
Lab2/cdlab/y.tab.c
abhimanbhau/C-Compiler_Dummy
mit
43,315
1,621
codeparrot/github-code
1ae353c3838b9abf63f8fd3b1e476a980bf6d47f4eb55e39abd4955a68a57a15
<?php namespace JanVince\SmallContactForm\Models; use Str; use Model; use URL; use October\Rain\Router\Helper as RouterHelper; use Cms\Classes\Page as CmsPage; use Cms\Classes\Theme; use JanVince\SmallContactForm\Models\Settings; use Log; use Validator; use Mail; use Request; use Carbon\Carbon; use View; use App; use ...
PHP
models/Message.php
jan-vince/smallcontactform
mit
20,183
542
codeparrot/github-code
bd587c295eeefc84f3cf810a1501dd14abdfcc2da9b32bbdd035643c789706ec
package com.weixin.util; import java.io.IOException; import java.io.InputStream; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import org.dom4j.DocumentException; import org.dom4j.Element; import org.dom4j.io.S...
Java
src/main/java/com/weixin/util/MessageUtil.java
ScorpionJay/wechat
mit
1,810
83
codeparrot/github-code
fcb1ca21a7044fde6a5b989c942b9cb27bfe51806eacba3a0da51a4408d40a07
// Copyright (c) 2011-2015 The Gtacoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "sendcoinsentry.h" #include "ui_sendcoinsentry.h" #include "addressbookpage.h" #include "addresstablemodel.h" #incl...
C++
src/qt/sendcoinsentry.cpp
gtacoin-dev/gtacoin
mit
8,351
269
codeparrot/github-code
f644bc054a2029ef8a2d294f2472a8bac13aa00a9de38a3231a76a97e7a690f3
local console = { _LICENSE = [[ The MIT License (MIT) Copyright (c) 2014 Maciej Lopacinski Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limita...
Lua
console.lua
excessive/love-console
mit
12,939
488
codeparrot/github-code
6d0c91c19d7fc8a2fa54e39610f39e87106cbf83072abd8f230bd63ab0f16170
using Shouldly; using Specify.Samples.Domain.Atm; using TestStack.BDDfy; namespace Specify.Samples.Specs.ATM { public class CardHasBeenDisabled : ScenarioFor<Atm, AccountHolderWithdrawsCashStory> { private Card _card; public void Given_the_Card_is_disabled() { _card = new ...
C#
src/Samples/Specify.Samples/Specs/ATM/CardHasBeenDisabled.cs
mwhelan/Specify
mit
855
33
codeparrot/github-code
9582e9c347ab8a8cbad6a80564e614b107f45e7751838483360722190f75c5aa
import os,sys from trans_rot_coords import * import numpy as np from read_energy_force_new import * from grids_structures_general import DS,Grid_Quarts from orient_struct_2 import OrientDS as OrientDS_2 from orient_struct_3 import OrientDS as OrientDS_3 AU2KCAL = 23.0605*27.2116 R2D = 180.0/3.14159265358979 ## np.pi/...
Python
version2/python/calculate_energy_new_coords_general.py
sethbrin/QM
mit
32,462
827
codeparrot/github-code
2cfe462efca2ae871d5255c536b7136fd9d7c20dad6d637cda63c0e05c62399f
class AchievementsController < ApplicationController before_action :authenticate_admin! before_action :set_achievement, only: [:show, :edit, :update, :destroy] # GET /achievements # GET /achievements.json def index @achievements = Achievement.all end # GET /achievements/1 # GET /achievements/1.jso...
Ruby
app/controllers/achievements_controller.rb
jcfausto/jcfausto-rails-website
mit
2,096
76
codeparrot/github-code
72dc8c02fd382bed1532b6b3efedbd8d1044c312ae8b2e28ee4d00d49299d05d
# DistantPoints[http://community.topcoder.com/stat?c=problem_statement&pm=11077] class DistantPoints def self.solution (n, k) @max = 2 ** n + 2 points = {} p = [1, 1] (k - 1).times do points[p] = true p = nextPoint(points) end p end def self.nextPoint (points) dMax ...
Ruby
ruby/app/DistantPoints.rb
erichaase/topcoder
mit
1,107
67
codeparrot/github-code
dac0fac41644dfb6ffba21da27a94166ac22e44cd6af3e8dd39577fbee2a08f4
<?php namespace PlentymarketsAdapter\ServiceBus\QueryHandler\OrderStatus; use PlentyConnector\Connector\ServiceBus\Query\FetchTransferObjectQuery; use PlentyConnector\Connector\ServiceBus\Query\QueryInterface; use PlentyConnector\Connector\ServiceBus\QueryHandler\QueryHandlerInterface; use PlentyConnector\Connector\S...
PHP
Adapter/PlentymarketsAdapter/ServiceBus/QueryHandler/OrderStatus/FetchAllOrderStatusesQueryHandler.php
Pfabeck/plentymarkets-shopware-connector
mit
2,062
72
codeparrot/github-code
c50c993d7b8e33f522892bb96ff7d3a66f202c0b85581f9ee424c3a6b1ea3d5e
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html from scrapy.conf import settings import pymongo from datetime import datetime from .models import PQDataModel class Parliamen...
Python
parliamentsearch/pipelines.py
mthipparthi/parliament-search
mit
1,789
55
codeparrot/github-code
5a0d9d5bfc7101f9fe63b0fa98a1a87c7a1cfe647d539d9347e795b527428bae
/** * Created by TC on 2016/10/10. */ import React, { Component, } from 'react' import { Image, View, ToastAndroid, ActivityIndicator, } from 'react-native' import PixelRatio from "react-native/Libraries/Utilities/PixelRatio"; class GirlComponent extends Component { constructor(props)...
JavaScript
reactNative/reactnativelearn-master/js/GirlComponent.js
huxinmin/PracticeMakesPerfect
mit
1,719
70
codeparrot/github-code
02e617e13a9aaaf0f75eaf7394fb338109015fb4d576f4328dea927051a82fdb
# frozen_string_literal: true # :reek:UtilityFunction module RubyRabbitmqJanus module Janus module Responses # Response for RSpec initializer class RSpec # Constructor to RSpec response. # Create a fake response for testing library. def initialize(type) path = RubyR...
Ruby
lib/rrj/janus/responses/rspec.rb
dazzl-tv/ruby-rabbitmq-janus
mit
1,811
85
codeparrot/github-code
dff2ade4cb89aa0393c4e75e6eea96af156e3b4d657f8601605073ada3c32065
<!DOCTYPE HTML> <html lang="en"> <head> <title>Enactus JMI | Success</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Cache-control" content="max-age=86400"> <meta name="theme-color" content="#ffc43...
HTML
thanks.html
ajiteshr7/teamenactusjmi.github.io
mit
5,094
147
codeparrot/github-code
88af457dd51d428dddef8d2a559e43c285f32777c2c733de5365f967437c1d2b
import arrow import settings from . import misc from . import voting from . import comments from . import exceptions as exc def merge_pr(api, urn, pr, votes, total, threshold): """ merge a pull request, if possible, and use a nice detailed merge commit message """ pr_num = pr["number"] pr_title = pr[...
Python
github_api/prs.py
eukaryote31/chaos
mit
8,393
256
codeparrot/github-code
ffe0988e69d51a41507132dbfdcfb2bd9e0807ba174f61ced85ca5aefa9feef5
#!/usr/bin/env python __copyright__ = "Copyright 2013-2014, http://radical.rutgers.edu" __license__ = "MIT" import sys import radical.pilot as rp # READ: The RADICAL-Pilot documentation: # http://radicalpilot.readthedocs.org/en/latest # # Try running this example with RADICAL_PILOT_VERBOSE=debug set if # you w...
Python
examples/running_mpi_executables.py
JensTimmerman/radical.pilot
mit
5,342
152
codeparrot/github-code
b65b540222046227c38b5b18193ec67ce047b27c1a5ba34ca46e2cecd2cfd325
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <title>Coverage Report</title> <link title="Style" type="text/css" rel="stylesheet" href="css/main.css"/...
HTML
dokumentaatio/cobertura/liikkeidenmallinnus.Koreografia.html
saranas/Tanssigeneraattori
mit
21,132
212
codeparrot/github-code
f6d6ebbbbf4ac62d39cd3ce99b4b04c30932e61a58470d220f10e82cabd805ab
from riotwatcher import * from time import sleep import logging log = logging.getLogger('log') def getTeamOfSummoner( summonerId, game ): for p in game['participants']: if p['summonerId'] == summonerId: return p['teamId'] def getSummonerIdsOfOpponentTeam( summonerId, game ): teamId = getTeamOfS...
Python
friendship.py
DenBaum/lolm8guesser
mit
3,046
109
codeparrot/github-code
619e78d6037c71658c99d42e17724855755ea645d197ee7278a1c17a9e8887f0
package org.data2semantics.mustard.rdfvault; import java.util.List; import java.util.Set; import org.data2semantics.mustard.kernels.ComputationTimeTracker; import org.data2semantics.mustard.kernels.FeatureInspector; import org.data2semantics.mustard.kernels.KernelUtils; import org.data2semantics.mustard.kerne...
Java
mustard-experiments/src/main/java/org/data2semantics/mustard/rdfvault/RDFGraphListURIPrefixKernel.java
Data2Semantics/mustard
mit
2,327
62
codeparrot/github-code
0a38234cd9ef245ce4be0c9ba24ba9e1be56d3b07db497c662cc3588361056ea
#ifndef GPU_DEF #define GPU_DEF #define SHORT_NAN 32767 #define SHORT_MAX 32766 #define GL_INTEROP // Caution!! Need to clear ComputeCache if uncommented struct TsdfParams { float resolution[3]; float volume[3]; float mu; }; #ifdef _GPU_ #define NUM_BANKS 16 #define LOG_NUM_BANKS 4 #define CONFLICT_...
C
src/OpenCL/gpu_def.h
achansavang/MiroirFusion
mit
2,125
88
codeparrot/github-code
2760ad991bae8640d2d6e98c5bc3935c4db0eb731f0413dfb4242732c44f5182
const webpack = require("webpack"); const path = require("path"); const CopyWebpackPlugin = require("copy-webpack-plugin"); const MiniCssExtractPlugin = require("mini-css-extract-plugin"); const AssetsPlugin = require("assets-webpack-plugin"); module.exports = { entry: { main: path.join(__dirname, "src", "index....
JavaScript
Docs/webpack.common.js
codemeyer/ArgData
mit
1,390
60
codeparrot/github-code
89d29ba1f0bac717cc65fb46980c41dcc722ccff90e8d3f56028724fa39282a0
module Feature.DeleteSpec where import Test.Hspec import Test.Hspec.Wai import Text.Heredoc import SpecHelper import PostgREST.Types (DbStructure(..)) import qualified Hasql.Connection as H import Network.HTTP.Types spec :: DbStructure -> H.Connection -> Spec spec struct c = beforeAll resetDb . around (withApp c...
Haskell
test/Feature/DeleteSpec.hs
motiz88/postgrest
mit
1,312
42
codeparrot/github-code
9df09e2db743e383ba13eb2bc3dbb1510334dfcff0dccd05eb770d68ef45f9f2
// // This source file is part of appleseed. // Visit http://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2014-2015 Marius Avram, The appleseedhq Organization // // Permission is hereby granted, free of charge, to any person obtai...
C++
src/appleseed.studio/mainwindow/minimizebutton.cpp
Vertexwahn/appleseed
mit
2,861
98
codeparrot/github-code
7749b74e3001f5dc27f7a508d8e704062f0ac6122803d3520b881cb0990b1802
window.onload=function() { var start = document.getElementById('start'); start.onclick = function () { var name = document.getElementById('Name').value; var id = document.getElementById('Id').value; var tel = document.getElementById("Tel").value; if (name == "") { ...
JavaScript
src/main/resources/static/js/login.js
StaticWalk/exam
mit
1,328
53
codeparrot/github-code
132f490061a7c873fe78e87ffb8dfdafe9b3a014ea0553e0b97fbdfd11d4c7da
(function (){ "use strict"; (function() { var $bordered = $('.bordered'); window.setInterval(function() { var top = window.pageYOffset || document.documentElement.scrollTop; if(top > 0) { $bordered.fadeOut('fast'); } else if(top == 0 && !$bor...
JavaScript
assets/javascript.js
martinmaricak/HalmiCaffe
mit
5,205
244
codeparrot/github-code
ceb1cc17f2dd87a351f89b05eaaa284d4c7823935db31bbfda251247e9c3d55a
\hypertarget{gft__gpqueue__by__Falcao_8h}{\section{/home/pavm/programming/lib/gft/include/gft\-\_\-gpqueue\-\_\-by\-\_\-\-Falcao.h File Reference} \label{gft__gpqueue__by__Falcao_8h}\index{/home/pavm/programming/lib/gft/include/gft\-\_\-gpqueue\-\_\-by\-\_\-\-Falcao.\-h@{/home/pavm/programming/lib/gft/include/gft\-\_\-...
TeX
lib/gft/doc/latex/gft__gpqueue__by__Falcao_8h.tex
ademirtc/bandeirantes
mit
7,687
92
codeparrot/github-code
db8c23e2a2a5417514ce0eaf1d1f322c1ee622e3e61e92aea1cfdad419beb9d7
describe('$materialPopup service', function() { beforeEach(module('material.services.popup', 'ngAnimateMock')); function setup(options) { var popup; inject(function($materialPopup, $rootScope) { $materialPopup(options).then(function(p) { popup = p; }); $rootScope.$apply(); });...
JavaScript
src/common/style/sass/material/services/popup/popup.spec.js
stackmates/common.client.build
mit
1,657
64
codeparrot/github-code
943c57713f7697507302c14a9c04a48e56adc6dc78b44d44b4bfe01f95686265
/** * Created by Samuel Schmid on 23.03.14. * * Class for Database Handling * * Containing * - App Config * - Database Information * * @type {Database} */ module.exports = Database; Array.prototype.contains = function(obj) { var i = this.length; while (i--) { if (this[i] === obj) { ...
JavaScript
grunt/database/database.js
veith/restapiexpress
mit
2,478
103
codeparrot/github-code
90aeae2cf8b259e782a6a8334bc27f96d476b44154e7e527abcf3f45192e1727
import { getEmailTransport, initializeAdminApp } from './_internal'; import * as functions from 'firebase-functions'; import { District, GroupCreateInput, RepresentativeCreateInput } from '@civ/city-council'; import { createRandomString } from './utils'; const app = initializeAdminApp(); const db = app.database(); co...
TypeScript
cloud/functions/src/create-group.ts
civinomics/city-council
mit
7,829
250
codeparrot/github-code
30341c6890d2ad22904817db090f82307cdb6cfff5e9284939883322207384f4
class MeetupEvent < ActiveRecord::Base self.primary_key = "meetup_event_id" belongs_to :meetup_group, foreign_key: "meetup_group_id" class << self def enabled where(enable_sync: true) end def from_api_response(response) start_time = LocalTime.convert(response['time'].to_i) end_t...
Ruby
app/models/meetup_event.rb
swifthand/meetup-calendar-sync
mit
1,271
45
codeparrot/github-code
c35932dd491a9f5d8c47583a30917a33ec20afca4ba38c936df3e9707b29be6b
package epsi.md4.com.epsicalendar.activities; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.view.View; import android.widget.AdapterView; import ...
Java
app/src/main/java/epsi/md4/com/epsicalendar/activities/EventListActivity.java
MD4/EPSICalendar
mit
5,006
147
codeparrot/github-code
097157d4912d7ed1f8ca83eaca7d4dfd0513ab475d63731bb6354fc23959d908
package com.blamejared.compat.tcomplement.highoven; import java.util.LinkedHashMap; import java.util.LinkedList; import java.util.List; import java.util.Map; import com.blamejared.ModTweaker; import com.blamejared.compat.mantle.RecipeMatchIIngredient; import com.blamejared.compat.tcomplement.highoven.recipes.HeatReci...
Java
src/main/java/com/blamejared/compat/tcomplement/highoven/HighOven.java
jaredlll08/ModTweaker
mit
11,580
387
codeparrot/github-code
eac62d381bcb8d8f827cc92f5fde9557f9b2c40af160b0e4661ea7d7d5dd2ce3
/* * The MIT License (MIT) * * Copyright (c) 2017-2020 Yegor Bugayenko * * 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 *...
Java
src/test/java/org/cactoos/io/SlowInputStream.java
yegor256/cactoos
mit
2,637
89
codeparrot/github-code
84dfe0e59ecf20b7c941161e0de82ec064b5e0be256c6c0d78a6424c86c3af02
'use strict'; import { gl } from './Context'; import { mat4 } from 'gl-matrix'; import Camera from './Camera'; class OrthographicCamera extends Camera { constructor( { path, uniforms, background, translucence, right, top, name = 'orthographic.camera', ...
JavaScript
src/OrthographicCamera.js
allotrop3/four
mit
1,846
121
codeparrot/github-code
17be51a93c22b1b625323b3a7c10a5db2f6d20477d6085c7e40d82105172771b
#pragma once #include "unittest.h" #include <iostream> #include <vector> class PairSum : public UnitTest { public: typedef std::vector<int> IntVec; /*! * \brief hasPairSum Checks to see if there are any two integers that sum to the given value. * Assumes input vector is sorted. * \param vec T...
C
src/pairsum.h
kylegmaxwell/training
mit
1,304
41
codeparrot/github-code
c2c8fa2a5333bf7c3827bd2e7e3ad3f74206294b5fc8c22b3aec3e8b991d9845
using System; namespace East.Tool.UseCaseTranslator.WebAPI.Areas.HelpPage { /// <summary> /// This represents an image sample on the help page. There's a display template named ImageSample associated with this class. /// </summary> public class ImageSample { /// <summary> /// Initia...
C#
UseCaseTranslator.WebAPI/Areas/HelpPage/SampleGeneration/ImageSample.cs
east-pmo/UseCaseTranslator
mit
1,077
41
codeparrot/github-code
1cdd9ac148ebda263515d212b645adb094fc75d8a80068559ee668610f4668e6
package ru.otus.java_2017_04.golovnin.hw09; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Table; @Entity(name = "user") @Table(name = "users") public class User extends DataSet{ @Column(name = "name") private String name; @Column(name = "age", nullable = false...
Java
hw09/src/main/java/ru/otus/java_2017_04/golovnin/hw09/User.java
vladimir-golovnin/otus-java-2017-04-golovnin
mit
642
36
codeparrot/github-code
61ad4385ac6852834c6c71ff408d56b61392e51e8ba7a9f9a0e6fe31b344e6fc
{% extends "layout.html" %} {% block head %} {% include "includes/head.html" %} <script> $(document).ready(function() { var source = getParameterByName('source') || 'employer'; $('#source').val(source); }); function getParameterByName(name, url) { // ...
HTML
app/views/commitOne/contracts/provider-interface/add-an-apprenticeship/training-list.html
tyfairclough/das-aml-beta-ui
mit
7,458
208
codeparrot/github-code
bed43dc81ea98dda7a031b854c924ed8a9ae287710b74eb0ce8a1ae32c4448d0
package com.purvotara.airbnbmapexample.model; import android.content.Context; import com.android.volley.Request; import com.google.gson.Gson; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; import com.google.gson.reflect.TypeToken; import com.purvotara.airbnbmapexample.co...
Java
app/src/main/java/com/purvotara/airbnbmapexample/model/AddressModel.java
SkyTreasure/Airbnb-Android-Google-Map-View
mit
5,013
209
codeparrot/github-code
cb174926a9170b595fb7d90800951b735dba90d6267156f0e48a15da1bb1905a
namespace _8.ArraySymmetry { using System; using System.Linq; public class ArraySymmetry { public static void Main() { var words = Console.ReadLine().Split(' ').ToArray(); var isSymmetric = true; for (int i = 0; i < words.Length / 2; i++) ...
C#
[01]ProgrammingFundamentals/07.ExercisesArraysSimpleArrayProcessing/08.ArraySymmetry/ArraySymmetry.cs
toteva94/SoftUni
mit
715
33
codeparrot/github-code
bbd4f67958d63e9cd90c116d3538b0ea9daa4b8181298a0d22711a11edfaf396
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Books extends MY_Controller { public function __construct() { parent::__construct(); $this->loadModel('Book', 'books_model'); $this->setTitle('Bookshelf'); } public function index() { $this->setOutputData('books', $th...
PHP
application/controllers/Books.php
sixpounder/CI-WORKSHOP
mit
1,752
76
codeparrot/github-code
0fde6dfa6fa88563bc4972881be22a0342287af254c78516cc246ed8caae71eb
# https://graphics.stanford.edu/~seander/bithacks.html#NextBitPermutation def selector(values, setBits): maxBits = len(values) def select(v): out = [] for i in range(maxBits): if (v & (1 << i)): out.append(values[i]) return out v = (2 ** setBits) - 1 ...
Python
python/verkefni2/cpattern.py
asgeir/old-school-projects
mit
1,006
44
codeparrot/github-code
9166f03fdf3537eea21d3686e0032256226c5613213bd8fa7915575b9d8edc83
// FoalTS import { ValidateFunction } from 'ajv'; import { ApiParameter, ApiResponse, Context, Hook, HookDecorator, HttpResponseBadRequest, IApiHeaderParameter, OpenApi, ServiceManager } from '../../core'; import { getAjvInstance } from '../utils'; import { isFunction } from './is-function.util'; /**...
TypeScript
packages/core/src/common/hooks/validate-header.hook.ts
FoalTS/foal
mit
2,105
74
codeparrot/github-code
76aa1f203b7b5634cefad861eb8b2dc9763409b6d8f2b6c6674c2a7d129506d3
using System; using System.Collections.Generic; using Baseline; using Marten.Storage; namespace Marten.Schema.Identity.Sequences { public class IdentityKeyGeneration : IIdGeneration { private readonly HiloSettings _hiloSettings; private readonly DocumentMapping _mapping; public Identi...
C#
src/Marten/Schema/Identity/Sequences/IdentityKeyGeneration.cs
jokokko/marten
mit
1,689
63
codeparrot/github-code
70ad72a3246398889b556bbdf8af0f023b8612f5ff6a44016260bc74794dc1c8
/** * Example implementation of the dialog choice UI pattern. */ #include "dialog_choice_window.h" #include "xadow.h" static Window *s_diag_window; static TextLayer *s_label_layer; static BitmapLayer *s_icon_layer; static ActionBarLayer *s_action_bar_layer; static uint8_t resp_buffer[3]; static SmartstrapAttribute ...
C
src/dialog_choice_window.c
Seeed-Studio/Xadow_Strap
mit
5,380
157
codeparrot/github-code
bd8897bb8fd5c422cc998fb78a077716a15bb216f9ce5d95ba7598ce789beccc
import React, { PropTypes } from 'react'; import { connect } from 'react-redux'; import './PostListView.scss'; import { toastr } from 'react-redux-toastr'; import { bindActionCreators } from 'redux'; import { fetchPostsFromApi, selectPostCategory, clearPostsErrors, clearPostsMessages } from '../../../actions/ac...
JavaScript
app/src/containers/Blog/PostListView/PostListView.js
RyanCCollins/ryancollins.io
mit
4,864
180
codeparrot/github-code
2a45f43ecd5edb4f8d8fec4ce62b2a4b44965357791af8f11bec06d4f4a81fab
#include <stdlib.h> #include <sys/time.h> #include <sys/resource.h> class Timer { public: int start(); int elapsedWallclockTime (double &); int elapsedUserTime (double &); ...
C
src/timer.h
kchan049/rshell
mit
6,847
76
codeparrot/github-code
3176ef3201059373cd9c4dfce460f659e4970a9cded559a120830ac99b329ef6
using System; using System.ComponentModel; using System.ComponentModel.Design; using System.Drawing.Design; using System.Collections; using System.Diagnostics; using System.Drawing; using System.Linq; using System.Collections.Generic; using SharpGL; using SharpGL.SceneGraph.Quadrics; using SharpGL.SceneGra...
C#
source/SharpGL/Core/SharpGL.SceneGraph/Scene.cs
DanFTRX/sharpgl
mit
15,697
428
codeparrot/github-code
3aff8928b963609ee290dce5c5cc894d477a18164b07c70cc60e3ec247598f10
/** * Module dependencies. */ var util = require('sails-util'), uuid = require('node-uuid'), path = require('path'), generateSecret = require('./generateSecret'), cookie = require('express/node_modules/cookie'), parseSignedCookie = require('cookie-parser').signedCookie, ConnectSession = require('express/...
JavaScript
lib/hooks/session/index.js
mnaughto/sails
mit
14,850
399
codeparrot/github-code
dcf1368113990e8a7ab5f9cf6cd1e83ad181a145f811fdc7e94dd4d13c57538d
\hypertarget{resourcesplugin_8cpp}{}\section{/mnt/windows/data/programming/crapengine2/source/plugins/resources/source/resourcesplugin.cpp File Reference} \label{resourcesplugin_8cpp}\index{/mnt/windows/data/programming/crapengine2/source/plugins/resources/source/resourcesplugin.\+cpp@{/mnt/windows/data/programming/cra...
TeX
doc/latex/resourcesplugin_8cpp.tex
stevenblaster/crapengine
mit
2,002
35
codeparrot/github-code
e48208ab19fd7f625e7d5f6613970b13cce0a1da44c2140d46bda2737a8fa2d2
function showErrorMessage(errorMessage) { $("#authorize-prompt") .addClass("error-prompt") .removeClass("success-prompt") .html(errorMessage); } function showSuccessMessage(message) { $("#authorize-prompt") .removeClass("error-prompt") .addClass("success-prompt") ...
JavaScript
static/js/authorize.js
AndrewMontagne/alliance-auth
mit
1,462
64
codeparrot/github-code
12c0f94217174024855384b9c8d06f56c8812bda1b1fafd913fe21360db4e09c
import math import urwid from mitmproxy.tools.console import common from mitmproxy.tools.console import signals from mitmproxy.tools.console import grideditor class SimpleOverlay(urwid.Overlay): def __init__(self, master, widget, parent, width, valign="middle"): self.widget = widget self.master ...
Python
mitmproxy/tools/console/overlay.py
xaxa89/mitmproxy
mit
3,855
142
codeparrot/github-code
c9dd465c9acd78f5a33060b442ec033861c1effa5c82521007b419983309ddb5
/* * This file is part of the Turtle project * * (c) 2011 Julien Brochet <julien.brochet@etu.univ-lyon1.fr> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ package turtle.gui.panel; import java.awt.BorderLayout; import java.awt.e...
Java
src/turtle/gui/panel/TeamBehaviorPanel.java
aerialls/Turtle
mit
2,301
88
codeparrot/github-code
4a2e9ad27210e1721b55ab1ebf110fba67a3d715e915da4022b51380753207d5
// Copyright (c) 2012-2013 The Bitcoin Core developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "key.h" #include "base58.h" #include "script/script.h" #include "uint256.h" #include "util.h" #include "utilstr...
C++
src/test/key_tests.cpp
koharjidan/litecoin
mit
9,233
221
codeparrot/github-code
ec0fb2fe19a0e5c5dab871df6e133bdf006e465ab6bc05e0226a72b18334c2a8
/*=== buffer: ptr-is-NULL=0, sz=1024 buffer buffer: ptr-is-NULL=-1, sz=0 buffer buffer: ptr-is-NULL=0, sz=1024 buffer buffer: ptr-is-NULL=-1, sz=0 buffer rc=0, result=undefined rc=1, result=TypeError: not buffer rc=1, result=TypeError: not buffer rc=1, result=TypeError: not buffer ===*/ int test_1(duk_context *ctx) { ...
C
api-testcases/test-require-buffer.c
JoshEngebretson/duktape
mit
2,133
94
codeparrot/github-code
c86d96f9d5391b219115bc56734723ff811bfc28b89986040b4a6ad8fd4fda0e
<div class="container"> <div class="card-panel darken-2 z-depth-2"> <h5 class="red-text"><i class="fa fa-search-plus"></i> CONSULTA</h5> <br> <form action="<?php echo baseUrl ?>home/consultas/index" method="POST" class="col s12"> <?php echo Token::field() ?> <div class="row"> <div clas...
PHP
app/home/views/consultas/index.php
dexternidia/redcomand
mit
6,787
174
codeparrot/github-code
74e5455f822b5306af8cdae2525320d11c67e50bb746244df59c5c88cc9e92cf
package com.qiniu.android.dns.http; import com.qiniu.android.dns.Domain; import com.qiniu.android.dns.IResolver; import com.qiniu.android.dns.NetworkInfo; import com.qiniu.android.dns.Record; import java.io.IOException; import java.io.InputStream; import java.net.HttpURLConnection; import java.net.URL; /** * Create...
Java
library/src/main/java/com/qiniu/android/dns/http/DnspodFree.java
longbai/happy-dns-android
mit
1,751
57
codeparrot/github-code
dcce27c2a050c583d938e65ff8b7eef622829961d819e1c835f697057d6b4256
package test.ethereum.core; import test.ethereum.TestContext; import org.ethereum.config.SystemProperties; import org.ethereum.core.Block; import org.ethereum.core.BlockchainImpl; import org.ethereum.core.Genesis; import org.ethereum.facade.Blockchain; import org.ethereum.manager.WorldManager; import org.junit.After...
Java
ethereumj-core/src/test/java/test/ethereum/core/BlockTest.java
swaldman/ethereumj
mit
10,826
260
codeparrot/github-code
f818c49139f98d951802ec428c7533a80b59d5fc8b3cc5b025054ec39839d02f
#include "../Internal.h" #include <sys/types.h> #include <sys/wait.h> #include <Lumino/Base/ElapsedTimer.h> #include <Lumino/IO/Process.h> #if defined(LN_OS_MAC) #include <crt_externs.h> #define environ (*_NSGetEnviron()) #else extern char **environ; #endif LN_NAMESPACE_BEGIN namespace detail { //================...
C
src/IO/Process_UNIX.h
lriki/Lumino.Core
mit
5,182
230
codeparrot/github-code
9a3cb46ad4f92ea1d9254a450021f021902c5118207948ff149dbfc142d73e61
package com.wabbit.libraries; import android.content.Context; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.RandomAccessFile; import java.util.UUID; public class Installation { private static String sID = null; private static final String INSTALLATION = "INS...
Java
Wabbit/src/com/wabbit/libraries/Installation.java
DobrinAlexandru/Wabbit-Messenger---android-client
mit
1,373
43
codeparrot/github-code
00a8d14427cbd3a37dc13586550eeaf1123744126002c6b8c4486a99cde38272
//----------------------------------------------- // // This file is part of the Siv3D Engine. // // Copyright (c) 2008-2022 Ryo Suzuki // Copyright (c) 2016-2022 OpenSiv3D Project // // Licensed under the MIT License. // //----------------------------------------------- # pragma once # include "Common.hpp" # include...
C++
Siv3D/include/Siv3D/VertexShaderAssetData.hpp
Siv3D/OpenSiv3D
mit
1,969
76
codeparrot/github-code
953d79ba0ebaa5e137b56ce0add56c25e8abf2955b9fa1f032d3d7e3c08439f8
// DATA_TEMPLATE: empty_table oTest.fnStart("5396 - fnUpdate with 2D arrays for a single row"); $(document).ready(function () { $('#example thead tr').append('<th>6</th>'); $('#example thead tr').append('<th>7</th>'); $('#example thead tr').append('<th>8</th>'); $('#example thead tr').append('<th>9</th...
JavaScript
src/Project/Bundle/AceThemeBundle/Resources/public/css/themes/default/assets/advanced-datatable/media/unit_testing/tests_onhold/1_dom/5396-fnUpdate-arrays-mData.js
hedi103/projet-decision-commerciale
mit
2,728
102
codeparrot/github-code
5e892133b41717eaa09e4bf2861c77f520d6fe941b376e17f7a7dad4c71fecaf
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ShoNS.Array; using Rhino.Geometry; namespace mikity.ghComponents { public partial class Mothra2 : Grasshopper.Kernel.GH_Component { private DoubleArray[] baseFunction; priva...
C#
Mothra/Numerics.cs
mikity-mikity/Mothra2
mit
9,551
238
codeparrot/github-code
713f3aa23ca3cf28f9c950c9c7e0e879f86d0ec33e8a07e31e07943fa8d7a840
JSON = JSON[0] local function checkArg(n, have, ...) have = type(have) local function check(want, ...) if not want then return false else return have == want or check(...) end end if not check(...) then local msg = string.format("bad argument #%d (%s expected, got %s)", ...
Lua
vm/bios.lua
magik6k/OCWeb
mit
4,782
207
codeparrot/github-code
ff1368e8e03fcff91561345b12e91ddf8dfaefff49399f0f76eb6e25929022cc
using System.ComponentModel.Composition.Hosting; using System.Threading.Tasks; using LiteGuard; using Mileage.Server.Contracts.Commands; using Mileage.Server.Contracts.Commands.Mileage; using Mileage.Shared.Results; using Raven.Client; using Raven.Client.Indexes; namespace Mileage.Server.Infrastructure.Commands.Milea...
C#
src/03 Server/Mileage.Server.Infrastructure/Commands/Mileage/ResetIndexesCommandHandler.cs
haefele/Mileage
mit
1,964
55
codeparrot/github-code
a3243acfec200612deffca27c2e101958dc43f211ac1db536ec9966b316e0318
using System; using System.Diagnostics; using System.ServiceModel.Channels; using System.ServiceModel.Dispatcher; namespace SimpleNet.ServiceHost.Behaviors { public class ErrorHandler : IErrorHandler { // Provide a fault. The Message fault parameter can be replaced, or set to // null...
C#
SimpleNet.ServiceHost/Behaviors/ErrorHandler.cs
Hem/SimpleNet
mit
1,172
36
codeparrot/github-code
43a355a2cc07d935d8e80976b5bb4698adb5b438928c01c6fd2d238a18b7da8c
package core trait Card { def name: String def cost: Int } trait Actionable { } trait Treasurable { def coin: Int } trait Victoriable { def vp: Int } object Estate extends Card with Victoriable { val name = "Estate" val cost = 2 val vp = 1 } object Copper extends Card with Treasurable { val name =...
Scala
scala/powercards_actor/core/Card.scala
whence/powerlife
mit
542
39
codeparrot/github-code
6b6ceccdefc00c635c8bb60c5ef38c82d2db97458da1356a75337d29b72ea324
/* Copyright (c) 2016-2019 Xavier Leclercq and the wxCharts contributors 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 r...
C
include/wx/charts/wxmath2dplotctrl.h
wxIshiko/wxCharts
mit
3,792
95
codeparrot/github-code
b189b49f542cff055107d339b76ea3d045068c63bb9a612f7a1fd90d9f044b39
window.Boid = (function(){ function Boid(x, y, settings){ this.location = new Vector(x, y); this.acceleration = new Vector(0, 0); this.velocity = new Vector(Helper.getRandomInt(-1,1), Helper.getRandomInt(-1,1)); this.settings = settings || {}; this.show_connections = settings.show_connections || true;...
JavaScript
js/simulation/boid.js
innni/hypela
mit
7,239
265
codeparrot/github-code
221e4982aa9d2c525992c9911daff7d3c0d9760d6d5c32d3251c4c9a57302c6f
package com.aliumujib.majlis.mkan_report_app.addnew.fragments; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.aliumujib.majlis.mkan_report_app.R; import com.stepstone.stepper.VerificationError; public class SihateJismaniPart2 extends ...
Java
mkan_report_app/src/main/java/com/aliumujib/majlis/mkan_report_app/addnew/fragments/SihateJismaniPart2.java
MKA-Nigeria/MKAN-Report-Android
mit
1,164
44
codeparrot/github-code
b3f08d0bb9348d9d307cef2724d48a1972f0bfccb35686c8a3f5a2f029504116
<?php /* * WellCommerce Open-Source E-Commerce Platform * * This file is part of the WellCommerce package. * * (c) Adam Piotrowski <adam@wellcommerce.org> * * For the full copyright and license information, * please view the LICENSE file that was distributed with this source code. */ namespace WellCommerce\...
PHP
Copier/LocaleCopier.php
WellCommerce/LocaleBundle
mit
3,103
89
codeparrot/github-code
2e878006119606ded00209a5b7ff45e1863d55dc89b9bb5bb087bab20927d94f
package uk.gov.gds.ier.transaction.forces.confirmation import uk.gov.gds.ier.mustache.{MustacheData, StepMustache} import uk.gov.gds.ier.model.{HasAddressOption, WaysToVoteType, MovedHouseOption} import uk.gov.gds.ier.validation.constants.{NationalityConstants, DateOfBirthConstants} import uk.gov.gds.ier.logging.Loggi...
Scala
app/uk/gov/gds/ier/transaction/forces/confirmation/ConfirmationMustache.scala
alphagov/ier-frontend
mit
17,239
481
codeparrot/github-code
6484a9822239ce76721decd9ddd5cafe04b1f1c5e64d53e019c4469ccfe2b7b0
<!DOCTYPE html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> <head> <meta charset="utf...
HTML
app/other assets/index.html
efbey13/student-fund-me-app
mit
8,954
207
codeparrot/github-code
bb08474ae413adc4ffa9adacf70054a18e9286cb298d2cea174419f5f23d44c9
/* Simple DirectMedia Layer Copyright (C) 1997-2013 Sam Lantinga <slouken@libsdl.org> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this ...
C
jni/external/sdl/src/audio/arts/SDL_artsaudio.c
gdewald/Sputter
mit
11,070
385
codeparrot/github-code
2aa67606fc9ee783c63232c80723f019ce87c350544790ee4c323327c901c878
require 'nymphia' require 'optparse' require 'pathname' module Nymphia class CLI def self.start(argv) new(argv).run end def initialize(argv) @argv = argv.dup parser.parse!(@argv) end def run validate_args! dsl_code_file = File.open(@file_path) absolute_dsl_f...
Ruby
lib/nymphia/cli.rb
mozamimy/nymphia
mit
1,155
53
codeparrot/github-code
d40b6c24dd1042ce583e8932c2bc17017e96d53769522d99335dcc54880656dd
import MySQLdb as _mysql from collections import namedtuple import re # Only needs to compile one time so we put it here float_match = re.compile(r'[-+]?\d*\.?\d+(?:[eE][-+]?\d+)?$').match def is_number(string): return bool(float_match(string)) class MySQLDatabase(object): """ This is the driver class ...
Python
Stream-2/Back-End-Development/18.Using-Python-with-MySQL-Part-Three-Intro/3.How-to-Build-an-Update-SQL-String/database/mysql.py
GunnerJnr/_CodeInstitute
mit
7,289
235
codeparrot/github-code
ed592905da3c032aed2d5d2be9757ee0cb2fb29b3f55121d99dd853a4c115ff3
/** * The MIT License * Copyright (c) 2003 David G Jones * * 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, ...
Java
src/main/java/info/dgjones/st2x/transform/method/intra/TransformCreateCall.java
jonesd/st2x
mit
2,846
78
codeparrot/github-code
d964d596d0e20c3522d523f5a6087b88d43552cd89f6cae390a96b4ed8120d5d
package soa import ( "encoding/json" "fmt" "strconv" "time" "github.com/Shark/powerdns-consul/backend/store" ) type soaEntry struct { NameServer string EmailAddr string Sn uint32 Refresh int32 Retry int32 Expiry int32 Nx int32 } type soaRevision struct { SnModifyIndex uint6...
GO
backend/soa/generator.go
Shark/powerdns-consul
mit
3,613
170
codeparrot/github-code
d977185c8bc463a73b687a41edf6932b1dff94760b84b3e3cb165f83bbc11635
class Cd @@all_Cds = {} attr_accessor :name, :artist def initialize(attributes) @name = attributes[:album_name] @artist = attributes[:artist_name] end def self.all output_Cds = [] @@all_Cds.each_value do |album| output_Cds << album end output_Cds end def save @@all_...
Ruby
lib/cd.rb
dianedouglas/CD-Organizer
mit
897
49
codeparrot/github-code
2572c9592db93e70b0d0a8979239b59a958c7b72e377096ee3b109e238300344
/*global window*/ (function($){ 'use strict'; var Observable = function(){ this.observers = {}; }; Observable.prototype.on = function(event, observer){ (this.observers[event] = this.observers[event] || []).push(observer); }; Observable.prototype.emit = function(event){ v...
JavaScript
js/heart.js
dvberkel/rails.girls.utrecht.2015
mit
4,014
129
codeparrot/github-code
b7aec65ccc89cb91105b445bbf64c1f22b95d0df3be919d1266c6fad941194c9
# encoding: utf-8 require 'rubygems' require 'file_manager' class SeriesMonitor DEFAULT_INTERVAL = 7200 attr_accessor :interval attr_accessor :notification_callback def initialize(parser) @parser = parser end def call_notification_callback(message, link = nil) if notification_callback notification_ca...
Ruby
src/series_monitor.rb
renatorp/SeriesMonitor
mit
1,276
67
codeparrot/github-code
cd9a9727cd673d3d1878a02205025c68b8f60889975cbe69d7d3d8cdaf04d784
package taxonomy_service::taxonomy_serviceClient; use JSON::RPC::Client; use POSIX; use strict; use Data::Dumper; use URI; use Bio::KBase::Exceptions; my $get_time = sub { time, 0 }; eval { require Time::HiRes; $get_time = sub { Time::HiRes::gettimeofday() }; }; use Bio::KBase::AuthToken; # Client version sh...
Perl
lib/taxonomy_service/taxonomy_serviceClient.pm
janakagithub/taxonomy_service
mit
39,662
1,629
codeparrot/github-code
38551cb8f570a6a82c2bae43dd6ae70ca620489491fb1f8d878a5bbac6960341
package com.maximusvladimir.randomfinder; import java.awt.Cursor; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JOptionPane; import javax.swing.JTex...
Java
src/com/maximusvladimir/randomfinder/Test.java
maximusvladimir/randomfinder
mit
3,649
120
codeparrot/github-code
497e649f8b6c3251195fc7052403639c63663c887f6785ac0addbcd0e195b8d0
package com.walkertribe.ian.protocol.core.weap; import java.util.List; import org.junit.Assert; import org.junit.Test; import com.walkertribe.ian.enums.BeamFrequency; import com.walkertribe.ian.enums.Origin; import com.walkertribe.ian.protocol.AbstractPacketTester; public class SetBeamFreqPacketTest extends Abstrac...
Java
src/test/java/com/walkertribe/ian/protocol/core/weap/SetBeamFreqPacketTest.java
rjwut/ian
mit
906
37
codeparrot/github-code
c0da827adab0cfcba037dd75f4330ac8118e5fd972ed12d3c285d0c65c8b2960
<HTML><HEAD> <TITLE>Review for Priyatel pokojnika (1997)</TITLE> <LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css"> </HEAD> <BODY BGCOLOR="#FFFFFF" TEXT="#000000"> <H1 ALIGN="CENTER" CLASS="title"><A HREF="/Title?0119952">Priyatel pokojnika (1997)</A></H1><H3 ALIGN=CENTER>reviewed by<BR><A HREF="/ReviewsBy?J...
HTML
data science/machine_learning_for_the_web/chapter_4/movie/12223.html
xianjunzhengbackup/code
mit
6,744
110
codeparrot/github-code
48ae408972af2dfb12ddaea831bf18742fefadd27d4dbe189cae4099017a632a
import VueRouter from 'vue-router' import { mount } from '@vue/test-utils' import { waitNT, waitRAF } from '../../../tests/utils' import { Vue } from '../../vue' import { BPaginationNav } from './pagination-nav' Vue.use(VueRouter) // The majority of tests for the core of pagination mixin are performed // in paginatio...
JavaScript
src/components/pagination-nav/pagination-nav.spec.js
bootstrap-vue/bootstrap-vue
mit
22,231
672
codeparrot/github-code
3eb05fe3f5a0ba33321031ca478497c3cc36db6da8e4008e27e6a05f03da1df2
using System; using System.Collections.Generic; using System.Text; using System.Linq; public class Family { private List<Person> familyList; public List<Person> Names { get { return this.familyList; } set { this.familyList = value; } } public Family() { this...
C#
Exercises-Defining Classes/03.OldesFamilyMember/Family.cs
giggals/Software-University
mit
601
39
codeparrot/github-code
a6a18e003f662515f5cb97df21d2a679c89430ebe7f4edbf075fca0ffe28f57b
//proc_ace_acceptor.cpp #include <proc_mta_ace_acceptor.h> using namespace proc_mta_ace; using std::ostringstream; //---------------------------------------------------------------------------------------------------------------------------- proc_acceptor::proc_acceptor ( concurrency_t concurrency ) : concurrency_...
C++
src/proc_ace_acceptor/proc_cci_mta_acceptor.cpp
chromatic-universe/cci-stream-mta
mit
2,580
73
codeparrot/github-code
dadad6e425ff043e8af493c5721d62315de39ea983088c5105b1e51d6c522b2b
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Login Page - Photon Admin Panel Theme</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0"> <link rel="shortcut icon" href="ht...
HTML
lib/assets/images/photon/plugins/elrte/css/css_compiled/js/js/bootstrap/js/plugins/jquery.tagsinput.min.js.html
user-tony/photon-rails
mit
15,065
197
codeparrot/github-code
f0c8e4a6d5b0cad3d6d0e83b3a9e3676880ef84ce42a448630079e317d6bf0b8
namespace BatterySync { partial class Form1 { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// Clean up any resources being used. /// </summary> /// <param ...
C#
Client/BatterySync/Form1.Designer.cs
ardaozkal/BatterySync
mit
3,641
98
codeparrot/github-code
5b85f97722893d705e50898b351d19e05bfccdeaaeb18035ad2b44d4553ea067
/* * The MIT License (MIT) * * Copyright (c) 2016-2017 The Regents of the University of California * Author: Jim Robinson * * 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 res...
JavaScript
js/bam/bamReader.js
igvteam/igv.js
mit
5,347
144
codeparrot/github-code
c77f4c738fe3c0a1403b0abcbe50d0c480945990ec82866c08697d4c3d65fcfd
var should = require("should"); var Mat3x3 = require("./Mat3x3"); var Barycentric3 = require("./Barycentric3"); var Logger = require("./Logger"); (function(exports) { var verboseLogger = new Logger({ logLevel: "debug" }); ////////////////// constructor function XYZ(x, y, z, options) { ...
JavaScript
www/js/shared/XYZ.js
firepick1/firenodejs
mit
12,537
356
codeparrot/github-code
da6535c18bec2472af947c12fb6879f55c5f20d0cf0594c50cbfc9cb86de1d1f
<?php /** * Symfony REST Edition. * * @link https://github.com/Ingewikkeld/symfony-rest-edition * @copyright Copyright (c) 2013-2013 Ingewikkeld<info@ingewikkeld.net> * @license https://github.com/Ingewikkeld/symfony-rest-edition/blob/master/LICENSE MIT License */ namespace Ingewikkeld\Rest\OAuthServerBun...
PHP
src/Ingewikkeld/Rest/OAuthServerBundle/Form/ClientType.php
Ingewikkeld/oauth-server-bundle
mit
1,885
64
codeparrot/github-code
91ef473645e3009495409403e0eba9778685d8b89a0e11f4f59da4470e43855c
/* * oxAuth is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text. * * Copyright (c) 2014, Gluu */ package org.gluu.oxauth.util; import org.gluu.oxauth.model.common.ResponseMode; import org.jboss.resteasy.specimpl.ResponseBuilderImpl; import org.json.JSONException; import...
Java
Server/src/main/java/org/gluu/oxauth/util/RedirectUtil.java
GluuFederation/oxAuth
mit
2,806
77
codeparrot/github-code
07adc23345a6730da8682e8ec887694af60de8609f53bd9bbbeb8fda100395af
import config from '../components/configLoader'; import { addToDefaultPluginDOM } from '../components/helpers'; const pluginConfig = config.plugins.find(obj => obj.name === 'age'); // DOM setup const pluginId = 'js-plugin-age'; addToDefaultPluginDOM(pluginId); const ageDOM = document.getElementById(pluginId); con...
JavaScript
src/js/plugins/age.js
michaelx/Launchbot
mit
950
35
codeparrot/github-code
a2ff7624bf0e86e2c423746dca573e28179bd2c4cdd4abace04895faa7c36baa
<?php namespace Aleste\TrackerBundle\Command; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Output\OutputInterface; use Doctri...
PHP
src/Aleste/TrackerBundle/Command/AvisosCommand.php
mgroizard/Tracker
mit
1,397
52
codeparrot/github-code