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 |
|---|---|---|---|---|---|---|---|---|
0349b925fbfee9903b471f201e2b53d1aa298e3ef54fe475ff08f543feb90337 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MySql.Data.MySqlClient;
using System.Data;
namespace Kelompok1
{
class User
{
public int id_user, id_dokter;
public string username, password, level;
public DataSet LoadUser()
{
... | C# | Kelompok1/Model/User.cs | qwildz/klinik_gui | mit | 6,714 | 196 | codeparrot/github-code |
e57edae98ffa00bef40b1d65f0b96dc88259b89239d5adfcff6347b237a27d0c | exports.getFaceInfo = function getFaceInfo(imgFile,callBackFace) {
var https = require('https');
var querystring=require('querystring');
//request param
var contents = querystring.stringify({
returnFaceId: 'false',
returnFaceLandmarks: 'false',
returnFaceAttributes: 'age,gender,smile,f... | JavaScript | recognition/face/faceApi.js | MakerCollider/node-red-contrib-smartnode | mit | 2,922 | 83 | codeparrot/github-code |
e62f789405512a94ff03b7cc7b4dc687f3a73a1a68e62710eb9364a97cb6a734 | <!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width" />
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico... | HTML | docs/com/google/android/gms/drive/DriveFolder.DriveFolderResult.html | anas-ambri/androidcompat | mit | 29,242 | 1,143 | codeparrot/github-code |
247abdcda0182ad5a0a86084b63819eeb6185857d1127dccc4f9bc3cedc970d7 | package fi.ni.ifc2x3;
import fi.ni.ifc2x3.interfaces.*;
import fi.ni.*;
import java.util.*;
/*
* IFC Java class
* @author Jyrki Oraskari
* @license This work is licensed under a Creative Commons Attribution 3.0 Unported License.
* http://creativecommons.org/licenses/by/3.0/
*/
public class IfcSurfaceTexture ext... | Java | IFC_RDF/src/fi/ni/ifc2x3/IfcSurfaceTexture.java | jyrkio/Open-IFC-to-RDF-converter | mit | 1,107 | 58 | codeparrot/github-code |
b84e38ca671b13069fbe8b735261ed0827a8a9c26f6e05b414d2ee038fb4c92d | ---
author: admin
comments: true
date: 2014-05-06 06:30:46+00:00
layout: post
slug: '%e7%b3%bb%e7%bb%9f%e8%bf%9b%e7%a8%8b%e5%88%9b%e5%bb%ba%e7%ae%a1%e7%90%86%e5%91%98%e8%bf%9b%e7%a8%8b%e7%9a%84%e6%96%b9%e6%b3%95'
title: 系统进程创建管理员进程的方法
wordpress_id: 444
categories:
- Tips
---
代码如下:
{% codeblock lang:cpp %}
namespace ... | Markdown | source/_posts/2014-05-06-e7b3bbe7bb9fe8bf9be7a88be5889be5bbbae7aea1e79086e59198e8bf9be7a88be79a84e696b9e6b395.markdown | 0cch/0CChBlog | mit | 2,939 | 147 | codeparrot/github-code |
fa6e5b6fc703118de9941e3ea7470c218fb455c1d0dbad3471293a4b41e9e2c7 | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Sci blog jekyll theme">
<meta name="author" content="AIR RAYA Group">
<link href='... | HTML | linux/2018/09/13/makefile.html | xiazemin/MyBlog | mit | 41,606 | 1,120 | codeparrot/github-code |
82911e30ce3600a9b45f119685863cab4e9be63172d268ac6d84d3ae6189d260 | <?php
/**
* The home manager controller for modDevTools.
*
*/
class modDevToolsHomeManagerController extends modDevToolsMainController {
/* @var modDevTools $modDevTools */
public $modDevTools;
/**
* @param array $scriptProperties
*/
public function process(array $scriptPropertie... | PHP | core/components/moddevtools/controllers/home.class.php | raadhuis/modx-basic | mit | 1,644 | 47 | codeparrot/github-code |
b8fbc7023dfbbc7a40d5225e065a6ad59a95872ac4d5b3eda4acc6123eadaf56 | using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.AspNetCore.Authentication.OpenIdConnect;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using Microsoft.IdentityModel.Clients.ActiveDirectory;
using Microsoft.IdentityModel.Protocols.OpenIdConnect;
using System;
using System.Threa... | C# | src/BookFast/Infrastructure/Authentication/OrganizationalAuthentication.cs | dzimchuk/book-fast | mit | 3,351 | 77 | codeparrot/github-code |
8509ddfe1bc50760054bd46e090f9f08cb47df2bb394bca92b37e7cc74b9b664 | #pragma once
#include <QtCore/QUrl>
#include <QtCore/QDate>
#include <QtCore/QVector>
#include <QtCore/QAbstractListModel>
class QNetworkReply;
class QNetworkAccessManager;
class CrosswordModel: public QAbstractListModel
{
Q_OBJECT
Q_PROPERTY(QUrl source READ source WRITE setSource NOTIFY sourceChanged)
pu... | C | src/ui/CrosswordModel.h | RPG-18/yang | mit | 1,459 | 76 | codeparrot/github-code |
a4f264eb5dafd5e6dee0703ba8fabfbfe35ff29b7a94ba37a31f0962dcb82f7a | // Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Buffers;
using System.Collections.Generic;
using System.IO.Pipelines;
using System.Net;
using System.Threading;
using HtcShar... | C# | Modules/HtcSharp.HttpModule/Shared/TransportConnection.cs | jpdante/HTCSharp | mit | 2,544 | 69 | codeparrot/github-code |
7120ff70b1b78ee7c54e962871f9a3c9dd88d16340fa21432a39fe6449606de3 | <!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<meta name="description" content="Presentation">
<meta name="author" content="anondroid5">
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
<meta name="viewport" conte... | HTML | slides/2015/04/29/Suggestion/index.html | anondroid5/anondroid5.github.io | mit | 8,432 | 182 | codeparrot/github-code |
9a748812d48e1e38f6f9f44ab4332e9e52d1253ffb5a081aa5b6c35ee9d60c51 | var _ = require('underscore');
var pair = function(fst, snd) {
return {fst: fst, snd: snd};
}
var newc = function(arr) {
return {
str: arr,
out: [],
side: [],
fail: false,
val: undefined,
}
}
var arrc = function(arr) {
return arr.concat([]);
}
var copy = function(c) {
return {
str: a... | JavaScript | static/parse/parse.js | kovach/hive | mit | 3,401 | 200 | codeparrot/github-code |
49f77f7b32a63e153ba4b34089e4fb465e267f9e7f90e0ed4363e05d7e6e69e4 | from keras.layers import Input
from keras.models import Model
from keras.layers import Activation
from keras.layers import MaxPool2D
from keras.layers import Flatten
from keras.layers import Conv2D
from keras.layers import Dense
from .utils import get_initial_weights
from .layers import BilinearInterpolation
def STN... | Python | src/models/STN.py | oarriaga/spatial_transformer_networks | mit | 1,242 | 37 | codeparrot/github-code |
9233a327c65b9b7f49bcd8ba57e4dfe61a2ca55c6d5d3a61f83e10e8f9a92672 | package com.cocoduf.jscv;
import com.github.fge.jsonschema.core.exceptions.ProcessingException;
import com.google.gson.JsonObject;
import com.google.gson.JsonParseException;
import com.google.gson.JsonParser;
import java.io.*;
/**
* Created by cocoduf on 17-05-16.
*/
public class JsonValidator {
private Strin... | Java | src/main/java/com/cocoduf/jscv/JsonValidator.java | Cocoduf/json-schema-constraint-validator | mit | 3,639 | 120 | codeparrot/github-code |
a63a842f90049fb08ce380709e27ea9984e65013a86ce21be477847e2020d09d | // The chromath package provides math functions for common colorspace transformations including
// customizable RGB working space to XYZ transformations and commonly used CIE colorspaces including CIELAB, CIELUV, and their cylindrical coordinate counterparts.
// Addtionally it provides convenient and performant applica... | GO | chromath.go | jkl1337/go-chromath | mit | 5,598 | 198 | codeparrot/github-code |
24b321fa932ee3d389ce6b0ceea31a4b865d1b6d804e8d107411bed9f82260fa | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>io-system-ocaml: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.mi... | HTML | clean/Linux-x86_64-4.10.0-2.0.6/extra-dev/dev/io-system-ocaml/2.2.0.html | coq-bench/coq-bench.github.io | mit | 6,613 | 173 | codeparrot/github-code |
b05cd827a6edcf8196bab93223bcea16b3d042fc96dc3529efd31e80f8d2262b | using System.ComponentModel.Composition;
using System.Diagnostics;
using System.Windows.Controls;
using System.Windows.Navigation;
namespace TeamProjectManager.Shell.Modules.Logo
{
[Export]
public partial class LogoView : UserControl
{
public LogoView()
{
Initialize... | C# | TeamProjectManager.Shell/Modules/Logo/LogoView.xaml.cs | jelledruyts/TfsTeamProjectManager | mit | 874 | 37 | codeparrot/github-code |
33b4b1cd388d1e55c3bb17e27bca9bf04ea0a1078977dd60e4e5e478cb4d20a2 | var http = require('http');
var express = require('express');
var app = express();
var exphbs = require('express3-handlebars');
var i18n = require('../../index');
process.env.PORT = process.env.PORT || 2637;
// Initialize locale.
i18n.init({
supportedLangs: ['en-GB'],
setLang: 'en-GB'
});
app.use(i18n.helpers);
... | JavaScript | examples/nodejs/app.js | DominicTobias/i18n-simple | mit | 860 | 42 | codeparrot/github-code |
fbfc1de49ead3327658b2a4d9968deabacddbcbb5b701c202f8437904acc204a | var async = require('async');
exports.findByTaskId = function (req, res, next) {
var task_id = req.params.task_id;
req.models.Task.findById(
task_id,
function (error, task) {
if (error) return next(error);
if (!task)
return res.status(404).end();
req.task = task;
next();
}... | JavaScript | routes/task.js | rodrigo-medeiros/simple-time-tracker-api | mit | 4,453 | 184 | codeparrot/github-code |
7634da30b093f49920d64cfd2996fde25f74d6f29e6fdb31031be3bee0fe1fb1 | <?php
namespace App\Services\Validators;
abstract class Validator
{
protected $data;
public $errors;
public static $rules;
public function __construct($data = null)
{
$this->data = $data ?: \Input::all();
}
public function passes($type = 'edit')
{
if ($type === 'edit') {
$validation = \Validator::... | PHP | inkpress-cms/inkpress/app/services/validators/Validator.php | mattjgagnon/InkPress | mit | 551 | 35 | codeparrot/github-code |
9a880d51c00e304926a4440d267cb20a0d2e3dcaa2103274de3e571c5022977f | namespace SharpCompress.Compressor.PPMd.H
{
using SharpCompress;
using System;
using System.Text;
internal class FreqData : Pointer
{
internal const int Size = 6;
internal FreqData(byte[] Memory) : base(Memory)
{
}
internal int GetStats()
{
... | C# | SharpCompressForUnity3D/SharpCompress/Compressor/PPMd/H/FreqData.cs | RainsSoft/sharpcompress | mit | 1,867 | 70 | codeparrot/github-code |
a55f4a1c66d64e4618cfad4edef367b375f3b4a4bec9c4da150aececb65abd2b | package test.validator;
import java.io.IOException;
import java.io.InputStream;
import org.apache.wicket.util.io.IOUtils;
import org.junit.Assert;
import org.junit.Test;
import com.helger.ebinterface.EEbInterfaceVersion;
import at.ebinterface.validation.validator.EbInterfaceValidator;
/**
* Used to test the appli... | Java | ebinterface-web/src/test/java/test/validator/EbInterfaceStylesheetTest.java | austriapro/ebinterface-web | mit | 2,907 | 92 | codeparrot/github-code |
a65e12b431a5e7201c5b64dfebe20b56b0edf7541560bc7ed8aa867cfd858888 | <?php
namespace PhalconUtils\Transformers;
use League\Fractal\Serializer\ArraySerializer;
/**
* Class ResponseDataSerializer
* @author Adeyemi Olaoye <yemi@cottacush.com>
* @package App\Fractal
*/
class ResponseDataSerializer extends ArraySerializer
{
public function collection($resourceKey, array $data)
... | PHP | src/Transformers/ResponseDataSerializer.php | CottaCush/phalcon-utils | mit | 703 | 37 | codeparrot/github-code |
fa5bb51fbba612b327b786c00787c9485569370c5a51a0e545bd85718d3f3d93 | <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>AbstractController::Callbacks::ClassMethods</title>
<meta http-eq... | HTML | doc/api/classes/AbstractController/Callbacks/ClassMethods.html | benfreeman/yammer_training | mit | 29,009 | 837 | codeparrot/github-code |
369796b857f0411ccbdd958bb6fa47197f0cb36b2e7a029523884f39a4976eb2 | //Orc Middleware Base Test
'use strict';
const should = require('should');
const middlewareTask=require('../../lib/middleware/base').task; //Middleware Task
module.exports=function(orcClient){
describe('Base function', ()=>{
describe('Middleware Task Promise Object', ()=>{
it('Create without mi... | JavaScript | test/middleware/base.js | baka397/Orc-Engine | mit | 2,004 | 52 | codeparrot/github-code |
e837b2a291fd4a6bbd61d016dcd0dd8be2834fd59cf485e823d17bcc47185a57 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>metacoq: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css... | HTML | clean/Linux-x86_64-4.03.0-2.0.5/released/8.9.1/metacoq/1.0~beta2+8.11.html | coq-bench/coq-bench.github.io | mit | 7,647 | 179 | codeparrot/github-code |
34f77d79ed9d2d3230a159f3746ef32219bff6e544641e6ab4bdb40aa194e727 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>fermat4: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css... | HTML | clean/Linux-x86_64-4.07.1-2.0.6/extra-dev/8.10.0/fermat4/8.7.0.html | coq-bench/coq-bench.github.io | mit | 7,112 | 167 | codeparrot/github-code |
3a93b81de90a9f51d321939085166aafb83fdf3bd68b4d0e028cba89a7c8c4ab | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>coqutil: 2 m 6 s 🏆</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" rel="... | HTML | clean/Linux-x86_64-4.07.1-2.0.6/extra-dev/8.10.0/coqutil/dev.html | coq-bench/coq-bench.github.io | mit | 27,302 | 324 | codeparrot/github-code |
5ce011e0d982859063208b0128c6f518e594a143604d49f157353c3f78571744 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>reglang: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css... | HTML | clean/Linux-x86_64-4.07.1-2.0.6/released/8.13.0/reglang/1.1.1.html | coq-bench/coq-bench.github.io | mit | 7,672 | 182 | codeparrot/github-code |
cab1c8cc5f58ef9f55189a6ba69cd4711f54beb640a39c088ceee539bf6493a6 | package com.panelcomposer.components.document;
import javax.swing.text.AttributeSet;
import javax.swing.text.BadLocationException;
import javax.swing.text.DocumentFilter;
public class DateDocumentFilter extends DocumentFilter{
/**
* Maksimalni broj karaktera
*/
private int maxLength=11;
public DateDocumentF... | Java | SwingApp/src/com/panelcomposer/components/document/DateDocumentFilter.java | VladimirRadojcic/Master | mit | 1,770 | 84 | codeparrot/github-code |
65e58f0e5d7833feb44b13cee4033aca17a18b2408fb557e18e80c1ec675d6a2 | # encoding: utf-8
module Suppliers
module Api
module V1
# Контроллер операций с поставщиками
class ItemsController < ApplicationController
# ======================================================================
# Запросы пользователя
# ======================================... | Ruby | app/controllers/suppliers/api/v1/items_controller.rb | pb-pravin/suppliers | mit | 3,182 | 129 | codeparrot/github-code |
06798955e21b29fd149b918d5d6cef292f5b152d6154fa3d03cc27b0e81693f5 | package main
import (
"fmt"
"io/ioutil"
"os"
"path/filepath"
"regexp"
"github.com/dtan4/ct2stimer/crontab"
"github.com/dtan4/ct2stimer/systemd"
"github.com/pkg/errors"
flag "github.com/spf13/pflag"
)
const (
exitCodeOK = 0
exitCodeError = 1
)
var opts = struct {
after string
delete bool
dr... | GO | cli.go | dtan4/ct2stimer | mit | 4,286 | 191 | codeparrot/github-code |
3bc05f6f6b2e3cb0db6df07e8759ab192f4a57df1fe1420645ef171c28d33908 | import java.io.BufferedReader;
import java.io.FileReader;
import java.util.ArrayList;
import java.util.List;
import java.io.StringReader;
import edu.stanford.nlp.ling.Sentence;
import edu.stanford.nlp.ling.TaggedWord;
import edu.stanford.nlp.ling.HasWord;
import edu.stanford.nlp.tagger.maxent.MaxentTagger;
class posT... | Java | src/posTagging.java | newsclustering/postagging | mit | 1,031 | 41 | codeparrot/github-code |
8a8f8ecb5cc93d84ec20b931f5d70acfa608f6ed87dad1e75c265e5814149583 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# TODO(ikeda): The function "get_rotations_cart" is not appropriate for this
# module.
from __future__ import absolute_import, division, print_function
import numpy as np
from ph_analysis.fc.fc_analyzer_base import FCAnalyzerBase
from .mappings_modifier import Mapping... | Python | ph_analysis/analysis/fc_distribution_analyzer.py | yuzie007/ph_analysis | mit | 4,776 | 122 | codeparrot/github-code |
d37bbda95ad9617360136fb08c5db144aa7ecd732c9b6f0bb7f73cdcc34fb85e | var gulp = require('gulp');
var path = require('path');
var fs = require('fs');
// var bs = require('browser-sync').get('MyBS');
// Load plugins
var $ = require('gulp-load-plugins')({
pattern: ['gulp-*', 'del']
});
/**
* Compile Posts
*/
gulp.task('posts', function() {
return gulp.src(path.join(global.paths.sr... | JavaScript | tasks/posts.js | elingan/static-websites-generator | mit | 1,029 | 35 | codeparrot/github-code |
0be7ea40d9af98b3eb11ae0e2a7d4cb1b539696ab73dab3006487c824de5b1df | package controllers
import (
"net"
"[[.project]]/app/models"
"[[.project]]/app/routes"
"github.com/revel/revel"
)
type PortalController struct {
*revel.Controller
}
func (c PortalController) Index() revel.Result {
return c.RenderTemplate("index.html")
}
func (c PortalController) authorized() (interface{}, bo... | GO | templates/portal/app/controllers/base.portal.go | liujianping/scaffold | mit | 1,150 | 55 | codeparrot/github-code |
0a45b55d9630556b942d65dceddb291b5529a0ea646f1ec278074602550b1c4a | package name.arbitrary.toytcp.ppp.link;
import name.arbitrary.toytcp.Buffer;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
import static org.junit.Assert.*;
import static org.mockito.Mockito.verify;
import stati... | Java | test/name/arbitrary/toytcp/ppp/link/UnstufferTest.java | simon-frankau/toy-tcp | mit | 1,273 | 46 | codeparrot/github-code |
a07043085e2bc168384cd991fab45e1f1b8073ecc13521ee9a0ae38b17a071da | use std::fmt::{Display, Formatter};
use crate::error::NodeError;
use crate::lexer::ItemType;
use crate::utils::unquote_char;
use gtmpl_value::Value;
macro_rules! nodes {
($($node:ident, $name:ident),*) => {
#[derive(Debug)]
#[derive(Clone)]
#[derive(PartialEq)]
pub enum NodeType {... | Rust | src/node.rs | fiji-flo/gtmpl-rust | mit | 18,218 | 822 | codeparrot/github-code |
53ddd0d83a1e21211a3fc88d33cd0f72f7f16e46ee452e58164af8c694206d4b | /*!
Skin v3.4.0
Copyright 2017 eBay! Inc. All rights reserved.
Licensed under the BSD License.
https://github.com/eBay/skin/blob/master/LICENSE.txt"
*/
/**
* Loop for creating the columns of the
* grid
*/
/**
* This method will generate cells/columns postfixed with -lg, -sm, etc
*/
/**
* Base class for creating a... | CSS | docs/archive/v3.4/static/ds4/grid-full.css | eBay/skin | mit | 63,960 | 3,245 | codeparrot/github-code |
c6931be7bd2a60eda3ea230022fd5640c39a2a6371738d0e2859fe38fcfea33b | package main
import (
"bytes"
"runtime"
)
// Port of php_escape_shell_arg
// See https://github.com/php/php-src/blob/master/ext/standard/exec.c
func escapeShellArg(arg string) string {
var quotedArg bytes.Buffer
quotedArg.Grow(len(arg))
if runtime.GOOS == "windows" {
quotedArg.WriteString... | GO | escape.go | adsr/gobashd | mit | 903 | 41 | codeparrot/github-code |
a6e11ad26b3ad330f793b12aadfeb14a30f20947d0388844986d68eb5feb1075 | #region Namespaces
using System;
using Inventor;
using System.Diagnostics;
#endregion
namespace CompHoundInv
{
/// <summary>
/// Container for the family instance data to store
/// in the external database for the given component.
/// </summary>
class InstanceData
{
public string _id { ... | C# | CompHoundInv/InstanceData.cs | CompHound/CompHoundInv | mit | 2,818 | 84 | codeparrot/github-code |
36bc4de5341779b85813d9cf33d2047aaf2c1b545b9ee4e8e181c27702770cc5 | <?php defined('_LINDEX') or die('STOP in file ' . __FILE__);
/**
* @package Lotos CMS Menu
* @version 1.0
* @author Lotos CMS <support@lotos-cms.ru>
* @link http://lotos-cms.ru
* @copyright Авторские права (C) 2013-2014, Lotos CMS
* @date 01.01.2014
* @see http://wiki.lotos-cms.ru/index.p... | PHP | administrator/components/com_menus/boss_item_content/boss_item_content.menu.html.php | GoDr/lotos-cms | mit | 5,969 | 195 | codeparrot/github-code |
718b2f957af2eb29c680b8c11a3d31018c49ff4618b4da96502d8133cfd9eb52 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>metacoq-template: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstra... | HTML | clean/Linux-x86_64-4.08.1-2.0.5/released/8.11.0/metacoq-template/1.0~alpha2+8.10.html | coq-bench/coq-bench.github.io | mit | 8,117 | 191 | codeparrot/github-code |
4127f9b4f09cec96fbc69777d6e33dfd0907aafc44ffb9b75534697a3afc8c58 | import {qs, $on, debounce} from './helpers';
let instance = null;
function scrollIntoView(eleID) {
var e = qs(eleID).getBoundingClientRect();
var h = qs('#header').getBoundingClientRect();
window.scrollTo(0, e.top - h.height - 100);
}
export default class View {
constructor(template) {
if(!instance) {
... | JavaScript | assets/js/app/view.js | eivers88/responsive-css-sprite-generator | mit | 3,399 | 155 | codeparrot/github-code |
eb2a5752c7fae873455c24ba10250d87f001f944e79387f7d92fdefd2f3d7177 | $(document).ready(function() {
var introtext = document.getElementById('intro-pic');
console.log("main.js infotext");
//window.alert("KEIJOO");
//TweenMax.to(introtext, 1.35, {opacity: '100'});
});
//Script for handling the anchor scrolling
//
$('a[href*=#]:not([href=#])').click(function() {
if (location... | JavaScript | rack/js/main.js | Fairydusti/rack | mit | 2,574 | 71 | codeparrot/github-code |
187b1fccee22ca98ebbaf8bf65f21298c871d504c1d2211c1bd8118ac107b735 | <?php
namespace Deployer;
// Configuration
set('ssh_type', 'native');
set('ssh_multiplexing', true);
set('keep_releases', 2);
set('rsync_exclude', [
'.git',
'deploy.php',
'vendor/',
'tests/',
'node_modules/',
'bower_components/',
'storage/',
'.env',
'.gitignore',
'yarn.lock',
... | PHP | deploy.php | foothing/laravel-boilerplate | mit | 2,993 | 147 | codeparrot/github-code |
77ee0a40dcadf8cdebb9d011595dbcd0ec968ccd583745b3b531170507e1c85f | #include "MultiChannelWorker.h"
#include "ApkParser.h"
#include <QThread>
#include <QDebug>
#include <QUrl>
#include <QDir>
MultiChannelWorker::MultiChannelWorker(QObject* parent) :
QObject(parent)
{
qDebug() << "MultiChannelWorker constructor";
}
MultiChannelWorker::~MultiChannelWorker()
{
qDebug() << "MultiChann... | C++ | Demo/XMultiThread/MultiChannelWorker.cpp | martinkro/tutorial-qt | mit | 1,336 | 61 | codeparrot/github-code |
af88c13591887ab43e29aefa63ec5af54b84b5a4266e4776052c48c83dbe40a6 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Logging;
using OdjfsScraper.Database;
using OdjfsScraper.Fetch;
using OdjfsScraper.Models;
namespace OdjfsScraper.Synchronize
{
public class CountySynchr... | C# | src/OdjfsScraper/Synchronize/CountySynchronizer.cs | SmartRoutes/OdjfsScraper | mit | 7,569 | 187 | codeparrot/github-code |
4ed897cb15fea9fe2ce24f92a7faa832bd91158d433c3305348ae9d190c6a793 | using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Mvc;
using AutoMapper;
using HomeCinema.Data.Infrastructure;
using HomeCinema.Data.Repositories;
using HomeCinema.Entities;
using HomeCinema.Web.Infrastructure.Core;
using HomeCinema.Web.Models;
namespace Ho... | C# | HomeCinema.Web/Controllers/GenresController.cs | stewart-itopia/HomeCinema | mit | 1,369 | 44 | codeparrot/github-code |
b2f38712c729ee92faecb3125959a00bf35c9571d5702ced821792d7fd65f19c | package xyz.sebastienm4j.westacton.game.message;
/**
* Web-socket asynchronous message for console command.
*/
public class AsyncCommandMessage extends CommandMessage implements WebSocketAsyncMessage
{
private int millisDelay;
/**
* New input command message to simulate
* typed command, potential... | Java | src/main/java/xyz/sebastienm4j/westacton/game/message/AsyncCommandMessage.java | SebastienM4j/west-acton | mit | 1,154 | 48 | codeparrot/github-code |
b83df168efb728651778236a237d6c3e350aa9d8e576acc92c36701032356c00 | /*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 2.1.1
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
Copyright (c) 2013-2017 Niels Lohmann <http://nlohmann.me>.
... | C++ | backend/libs/json/test/src/unit-class_lexer.cpp | abeimler/cmdocker-tmpl | mit | 10,437 | 198 | codeparrot/github-code |
2bd2189913e8e47145dd70907f70bd7393b7ca4ad93776c97fb71168a35b8710 | # See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
class RemoveUnnecessaryIndexes < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
disable_ddl_transaction!
DOWNTIME = false
def up
remove_index :labels, co... | Ruby | db/migrate/20161128142110_remove_unnecessary_indexes.rb | LUMC/gitlabhq | mit | 1,619 | 34 | codeparrot/github-code |
70a6522edf42fbb41be035d7c1bfeef5f5de5206ba3ec518daeb4894e700cb1a | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>amm11262: Not compatible</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" ... | HTML | clean/Linux-x86_64-4.09.0-2.0.5/released/8.7.0/amm11262/8.5.0.html | coq-bench/coq-bench.github.io | mit | 6,908 | 166 | codeparrot/github-code |
71477040d9db765e5f07ae1999d4cfe14b9c6d053ca025754463056e69ecb541 | import * as React from 'react';
import { DatePicker } from '../';
import { classes } from './DatePickerWiringExample.st.css';
export const DatePickerWiringExample = class DatePickerExample extends React.Component {
state = {
value: new Date(),
};
_onChange = (date) => this.setState({ value: date });
rende... | TypeScript | packages/wix-ui-tpa/src/components/DatePicker/docs/DatePickerWiringExample.tsx | wix/wix-style-react | mit | 1,508 | 55 | codeparrot/github-code |
41c48b6d6d6a54a9a816b59a452310758e584d1144034bad9021bc8c1219f6a4 | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using Microsoft.VisualStudio.Services.Agent.Util;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Microsoft.VisualStudio.Services.Agent.Capabil... | C# | src/Microsoft.VisualStudio.Services.Agent/Capabilities/NixCapabilitiesProvider.cs | Microsoft/vsts-agent | mit | 8,254 | 195 | codeparrot/github-code |
eddac219452651a23a6b3bb9fe4c96f4fc700b9670d93a0a269652eb5d8e6996 |
<!DOCTYPE html>
<html xmlns:msxsl="urn:schemas-microsoft-com:xslt">
<head>
<meta content="en-us" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-16" http-equiv="Content-Type" />
<title _locid="PortabilityAnalysis0">.NET Portability Report</title>
<style>
... | HTML | Reports/wi/windowsuniversallogger.1.0.1/WindowsUniversalLogger.Logging-netcore451.html | kuhlenh/port-to-core | mit | 9,675 | 240 | codeparrot/github-code |
cbd4678157de8e459bdf743215c244d38401b90f3149591987018e4348f69164 | using System;
using System.Collections;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using Archaius.Utils;
namespace Archaius
{
/// <summary>
/// This class uses a ConcurrentHashMap for reading/writing a property to achieve high
/// throughput and thread safet... | C# | Archaius.Net/ConcurrentDictionaryConfiguration.cs | CH3CHO/Archaius.Net | mit | 7,936 | 212 | codeparrot/github-code |
14a3993ccb49702db23175fdc06061807943d682b483349291a9169a802b8880 |
<!DOCTYPE html>
<html xmlns:msxsl="urn:schemas-microsoft-com:xslt">
<head>
<meta content="en-us" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-16" http-equiv="Content-Type" />
<title _locid="PortabilityAnalysis0">.NET Portability Report</title>
<style>
... | HTML | Reports/vi/visualtradingapi.1.1.56.1/VisualTradingAPI-net20.html | kuhlenh/port-to-core | mit | 25,287 | 593 | codeparrot/github-code |
e7fbe089aee5f6db34a12ba4ab87eaa6474e59277ba077b9dda24d518c2f84a5 | """This module handles all API calls"""
from builtins import str
from requests import HTTPError
from requests import Session
from urllib.parse import (urlencode,
urljoin,
urlunsplit,
urlsplit)
from gobble.config import settings
from gobble.l... | Python | gobble/api.py | openspending/gobble | mit | 3,231 | 109 | codeparrot/github-code |
361f9e2deeedfbf11ea3ab234ea4c9bd194e6cd97fc0ada3b652594023147881 | package pain
import (
"encoding/xml"
"github.com/fgrid/iso20022"
)
type Document01400103 struct {
XMLName xml.Name `xml:"urn:iso:std:iso:20022:tech:xsd:pain.014.001.03 Document"`
Message *CreditorPaymentActivationRequestStatusReportV03 `xml:"CdtrPmtActvtnReqStsRpt"`
}
fun... | GO | pain/CreditorPaymentActivationRequestStatusReportV03.go | fgrid/iso20022 | mit | 2,593 | 56 | codeparrot/github-code |
9b55001f9cf9af046bae5b047628ad8fb19e45ce8b0917b0b016c2d5755917b4 |
# Some enums
enum AccessRight {
Allow
Deny
}
enum ConnectionStatus {
Connected
Disconnected
}
enum TriggerType {
Command
Event
Regex
}
enum Severity {
Success
Warning
Error
None
}
enum LogLevel {
Info = 1
Verbose = 2
Debug = 4
}
enum LogSeverity {
Normal... | PowerShell | PoshBot/Classes/Enums.ps1 | poshbotio/PoshBot | mit | 1,096 | 94 | codeparrot/github-code |
c3d056b6cf086905d34fe8654b7143c10ed6eae87d39e5ac32ba47daa2747c05 | import com.apple.eawt.Application;
import javax.imageio.ImageIO;
import javax.swing.*;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.io.InputStream;
/**
* La classe Main créee une instance de la GUI et permet de lancer le programmer
* Les quelques lignes de code servent à adapater la ... | Java | src/Main.java | Tirke/Lambda-Interpreter | mit | 1,213 | 38 | codeparrot/github-code |
bfbe29d4c3b774b269101a8952ebcd2a84b92d14965e09c004b9caa730069200 | var funnel = require('broccoli-funnel'),
findup = require('findup-sync'),
util = require('../util'),
path = require('path');
module.exports = function exportAssets( module ) {
var basename = path.basename(module, '.js').replace(/js$/, ''),
modulePath = require.resolve(module),
moduleDir = path.dirname(... | JavaScript | lib/strategies/browser.js | Bajix/broccoli-importer | mit | 911 | 33 | codeparrot/github-code |
d7ea1a2ef6cb97211b2979b6e1fde14e88fa20c12a57bf60f59cf63be7f7f228 | /*
* Copyright 2015 Adrian Thurston <thurston@colm.net>
*
* 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, mo... | C++ | src/load.cc | sota/ragel | mit | 2,278 | 89 | codeparrot/github-code |
3bd5383523b149a8a187f656d29ec9e5dfc4f63ba667e6f6d9661476fe02b617 | #!/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/TEX/TEXFLAGS.py | EmanueleCannizzaro/scons | mit | 3,365 | 120 | codeparrot/github-code |
a51e7300dd18a7ce882e678d1c67408a4a33f6dbef3512809b223b9111b562c3 | let expect = require('chai').expect;
let TestUtils = require('react-addons-test-utils');
let sinon = require('sinon');
let React = require('react');
let Rayon = require('../src/index');
describe('Rayon', function(){
it('should not render the modal if isOpen is set to false', function() {
let renderedComponent = Te... | JavaScript | test/index.js | alarner/rayon | mit | 4,686 | 154 | codeparrot/github-code |
0eb911b3de90f4395c969a6f23df30d8509823967ca0e7b42135ce1ef9f4f46a | // Firebase child's
var ref = new Firebase('https://cepatsembuh.firebaseio.com');
var puskesmas = ref.child('puskesmas'),
faskes = puskesmas.child('kelapa_gading');
function antrian(){
var ref = new Firebase('https://cepatsembuh.firebaseio.com'),
puskesmas = ref.child('puskesmas'),
faskes = puskesmas.child... | JavaScript | platforms/ios/www/js/main.js | cepatsembuh/cordova | mit | 2,324 | 86 | codeparrot/github-code |
cb6a9dd36af5ce8eabe3da59b3bb77192e6ce27b47cad9b5c33cc248480ad188 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>iris-heap-lang: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.... | HTML | clean/Linux-x86_64-4.03.0-2.0.5/released/8.7.1/iris-heap-lang/3.4.0.html | coq-bench/coq-bench.github.io | mit | 6,832 | 167 | codeparrot/github-code |
ef441754406d72513446c070c7d85fb0755948f4804015d1d0823a3d81f0f5db | using System.Collections.Generic;
using System.IO;
using System.Text;
using Umbraco.Core.IO;
using Umbraco.Core.Models;
using Umbraco.Core.Models.EntityBase;
using Umbraco.Core.Persistence.UnitOfWork;
namespace Umbraco.Core.Persistence.Repositories
{
internal abstract class FileRepository<TId, TEntity> ... | C# | src/Umbraco.Core/Persistence/Repositories/FileRepository.cs | yannisgu/Umbraco-CMS | mit | 5,685 | 194 | codeparrot/github-code |
98cf40adb288738e7a9cf02a3a5ffdc945fe93907a18bed74eff5ce93b27f87e | import subprocess
import os
INPUT_FILE = "/tmp/input"
ERROR_LOG = "/tmp/error.log"
RESULTS_FILE = "/tmp/results"
def get_command_from_first_line(line):
if line.startswith("#!"):
return line[2:]
return line
def get_program_output_from_buffer_contents(buffer_contents):
write_buffer_contents_to_file... | Python | autoload/vim_shell_executor.py | JarrodCTaylor/vim-shell-executor | mit | 1,433 | 54 | codeparrot/github-code |
296533ffd9cb3e925799018c73ae361d5399eba6c003a0226ca2c87bece4e9dd | package net.violet.platform.datamodel;
import net.violet.db.records.associations.AssoRecord;
import net.violet.platform.datamodel.factories.Factories;
public interface MessageReceived extends AssoRecord<Message, MessageReceived> {
/**
* Gets the Recipient of the message
*
* @return
*/
Messenger getRecipie... | Java | server/OS/net/violet/platform/datamodel/MessageReceived.java | sebastienhouzet/nabaztag-source-code | mit | 1,460 | 64 | codeparrot/github-code |
de6076cabd7516b01b46a363fd442174e5fb33397aacc7174dcc3dfc3123c41a | package org.sjbanerjee.urlshortener.dao;
import org.sjbanerjee.urlshortener.exception.BadRequestException;
import org.sjbanerjee.urlshortener.model.Record;
import org.springframework.stereotype.Component;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.Que... | Java | src/main/java/org/sjbanerjee/urlshortener/dao/RecordDao.java | talk2sjb/UrlShortener | mit | 1,072 | 42 | codeparrot/github-code |
abe274d6bc9bd29e2e3a3bdc8cd87414c60cc0f208ea2143640e058fb9105330 | 'use strict';
var path = require('path');
var fs = require('fs');
var program = require('commander')
var pack = require('../package.json');
var server = require('./server.js');
var privateKey = fs.readFileSync(__dirname+'/ssl-certs/server.key', 'utf8');
var certificate = fs.readFileSync(__dirname+'/ssl-certs/serv... | JavaScript | lib/httpzer.js | mcereijo/httpzer | mit | 1,461 | 54 | codeparrot/github-code |
01f3e898bdaeeb3090143924fe4d4c4a75505d51407588707fa455f670e91266 | package com.github.alexanderwe.bananaj.model.list.segment;
/**
* Created by alexanderweiss on 04.02.16.
*/
public enum SegmentType {
/**
* Saved or group segments
*/
SAVED("saved"),
/**
* Static segments are now known as tags
*/
STATIC("static"),
FUZZY("fuzzy");
private String strin... | Java | src/main/java/com/github/alexanderwe/bananaj/model/list/segment/SegmentType.java | alexanderwe/bananaj | mit | 762 | 38 | codeparrot/github-code |
3244bf7eed2c335da0ff1df0d6d87ba2effd6516584f8613a3978750cd3f7598 | using System;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using BansheeGz.BGSpline.Curve;
using UnityEditor;
namespace BansheeGz.BGSpline.Editor
{
//GUI for all points
public class BGCurveEditorPoints : BGCurveEditorTab
{
// ====================================== Static... | C# | Assets/BansheeGz/BGCurve/Scripts/Editor/Curve/BGCurveEditorPoints.cs | bansheeGz/BGCurve | mit | 25,299 | 554 | codeparrot/github-code |
dd7aa52bc87996fa82dde7f260edb137366ec04728ae3e07e3a3ae426596c7e8 | module.exports = function(grunt) {
'use strict';
require('time-grunt')(grunt);
require('load-grunt-tasks')(grunt);
var _ = require('lodash-node');
// personal stuff
var userConfig = {
kentcdodds: {
projectPath: '~/Developer/parakeet-js',
clock: 'https://docs.google.com/a/doddsfamily.us/spr... | JavaScript | Gruntfile.js | kentcdodds/kcd-ng-boilerplate | mit | 9,820 | 339 | codeparrot/github-code |
c74585a148e6cc4b330cabe5c3b24b13a99fd823d10d361d4a330b4646f81085 | # -*- coding: utf-8 -*-
"""UWEC Language Tools student corpus module
Provides functions for processing student corpus data.
"""
# Python 3 forward compatability imports.
from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
from __future__ import unicode_liter... | Python | uweclang/plain/clean.py | SkySchermer/uweclang | mit | 7,338 | 231 | codeparrot/github-code |
413895802d6a6779c930803de617678fafb9870b96a551fe8ae87d47bc855421 | using System;
using System.Collections.Generic;
using System.Linq;
namespace Yatzy
{
public class ScoreCard
{
private readonly IObjective[] _objectives;
private int[] _scores;
public IEnumerable<IObjective> Objectives => _objectives;
public int[] Scores
{
... | C# | Yatzy/Yatzy/PortableYatzy/ScoreCard.cs | simonejsing/Yatzy | mit | 2,378 | 96 | codeparrot/github-code |
61d53c052ba54a7727563aac74ddd825dfa6246c67b15559c3111bb5770b0281 | /*
* ***** BEGIN LICENSE BLOCK *****
* Zimbra Collaboration Suite Web Client
* Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Zimbra, Inc.
*
* The contents of this file are subject to the Zimbra Public License
* Version 1.3 ("License"); you may not use this file except in
* compliance with the License. ... | JavaScript | ZimbraWebClient/WebRoot/js/zimbraAdmin/common/ZaListView.js | nico01f/z-pec | mit | 23,755 | 702 | codeparrot/github-code |
ba94089d3fdbbf4bab37087589bbcd9981f690d03f26fb30bb42c3dd430f4474 | #!/usr/bin/env python
# coding: UTF-8
from __future__ import division
from util.hosvd import HOSVD, unfold, reconstruct, frobenius_norm
from util.mobility import trans, init_data, init_data2, trans2
import numpy as np
import math
import pylab
# 第一步:构建转移概率tensor
# tensor = trans(count(init_db()))
# tensor = trans(count... | Python | recommendation/no_markov_recommend.py | pengyuan/markov2tensor | mit | 6,441 | 174 | codeparrot/github-code |
04f23f02b6cc1151857a744e76171d842823e89162ba2c63873838ce9febf455 | // Copyright (c) 2012-2013 The PPCoin developers
// Copyright (c) 2014 The Vector developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <boost/assign/list_of.hpp>
#include "kernel.h"
#include "txdb.h"
using n... | C++ | src/kernel.cpp | vectorcoindev/Vector | mit | 23,581 | 496 | codeparrot/github-code |
6e9908d243e79def84f3ce0a08d5ba492f73de6b2ad828ef5e86bd0f6e5bcb48 | (function($, window, document, undefined) {
var pluginName = "intlTelInput",
defaults = {
preferredCountries: ["us", "gb"], // united states and united kingdom
initialDialCode: true,
americaMode: false,
onlyCountries: []
};
function Plugin(element, options) {
this.element = ele... | JavaScript | src/js/intlTelInput.js | econsultancy/intl-tel-input | mit | 16,075 | 449 | codeparrot/github-code |
121eaf8468e683cbe3e8c11b6b018febf4e3528252632a59cd34733dd8bf7768 | package fr.adrienbrault.idea.symfony2plugin.translation.intention;
import com.intellij.codeInsight.intention.PsiElementBaseIntentionAction;
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.Pair;
import com.intellij.psi.PsiElement;
import com.intel... | Java | src/fr/adrienbrault/idea/symfony2plugin/translation/intention/TwigTranslationKeyIntention.java | gencer/idea-php-symfony2-plugin | mit | 4,022 | 108 | codeparrot/github-code |
da0267c52a1d75a00fe321d786c28897fb4ab8c5d9e4b99f4fcd6171b7210b60 | /*-------------------------------------------------------------------------
This source file is a 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 person obtaini... | C | include/Ogre/OgreShadowTextureManager.h | Kanma/Ogre | mit | 6,309 | 157 | codeparrot/github-code |
b1d77724e40c26fb43fae02e7096e152e4e66fcbeff490cb432bbf5ded716cd4 | define([
'matreshka_dir/core/var/sym',
'matreshka_dir/matreshka.class',
'matreshka_dir/matreshka-array/processrendering',
'matreshka_dir/matreshka-array/triggermodify',
'matreshka_dir/matreshka-array/recreate',
'matreshka_dir/matreshka-array/indexof'
], function(sym, MK, processRendering, triggerModify, recreate,... | JavaScript | src/matreshka-array/custom-dynamic.js | vgrish/matreshka | mit | 4,110 | 229 | codeparrot/github-code |
f7eb2fd7706837302958198b7a8605d1157203440441a7c8a97ca9a5d985738d | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
namespace Microsoft.Rest.Generator.CSharp.Templates
{
#line 1 "ExtensionMethodTemplate.cshtml"
using System.Text
#line default
#line hidden
;
#line 2 "Extens... | C# | AutoRest/Generators/CSharp/CSharp/Templates/ExtensionMethodTemplate.cs | vasanthangel4/autorest | mit | 8,117 | 302 | codeparrot/github-code |
9f3788fb830f4db7d358e75b3dc6f7a4e449a9faa1317954311aaec3f1a29161 | #region File Description
//-----------------------------------------------------------------------------
// BackgroundScreen.cs
//
// Microsoft XNA Community Game Platform
// Copyright (C) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
... | C# | NodeHackEX/Screens/BackgroundScreen.cs | agentcox/NodeHackEX-xna | mit | 14,292 | 357 | codeparrot/github-code |
5f64e4b207cc0d09de3828b91e6d243fe5c08fa32cb8248f686acc7c0f51cc75 | //Problem: https://www.hackerrank.com/challenges/mini-max-sum
//Java 8
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class Solution {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
long min = L... | Java | Algorithms/Warmup/Mini-Max Sum/Solution.java | RyanFehr/HackerRank | mit | 915 | 36 | codeparrot/github-code |
854f83875178ebbc231b2bf6d3420fb8fac932362ac51f5ba4e7c4d858d8ab5b | import { Associative, unwrap as _unwrap, unwrapKey } from '@collectable/core';
import { BRANCH, Node, RedBlackTreeStructure, isNone } from '../internals';
export function unwrap<K, V> (tree: RedBlackTreeStructure<K, V>, target: Associative<V>): Associative<V> {
if(tree._size === 0) {
return {};
}
var stack =... | TypeScript | packages/red-black-tree/src/internals/unwrap.ts | frptools/collectable | mit | 1,183 | 42 | codeparrot/github-code |
b4795e2692b5da5b9a869ab0c0486c3dafd53270c2ae9d39931e3accb6cf9e82 | /*
* The MIT License (MIT)
*
* Copyright (c) 2007-2015 Broad Institute
*
* 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/main/java/org/broad/igv/sam/Alignment.java | amwenger/igv | mit | 3,074 | 132 | codeparrot/github-code |
fd51a8f41ad365a565be32166f53dd21b9041085d7488d0e2b4376ecb25d7a0b | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>fsets: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" ... | HTML | clean/Linux-x86_64-4.06.1-2.0.5/released/8.8.0/fsets/8.6.0.html | coq-bench/coq-bench.github.io | mit | 7,152 | 176 | codeparrot/github-code |
b31e2cbd832dfb23abbd5b46a149ffffd4fdb66819161908ceb1a100007d5dc5 | /**
*/
package com.javasimple.impl;
import com.javasimple.JavasimplePackage;
import com.javasimple.Primitive;
import com.javasimple.PrimitiveType;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
/**
* <!-- begin-user-doc... | Java | com.javasimple.model/src/main/java/com/javasimple/impl/PrimitiveTypeImpl.java | cadorca/javasimple | mit | 3,464 | 164 | codeparrot/github-code |
38854f5b56126dcf8b64cc207ea0cef077bd53a068b1bb3047676101d193c8a5 | /**
* In this file, we create a React component
* which incorporates components provided by Material-UI.
*/
import React, {Component} from 'react';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import { Provider } from 'react-redux';
imp... | JavaScript | gui/src/app/Main.js | mbonvini/LambdaSim | mit | 1,369 | 53 | codeparrot/github-code |
fbea0f49dae9b2bc05753870a76697a777891cadeb79e7e97242566f7ed7c461 | import Phaser from 'phaser'
import SimplexNoise from '../../tools/simplex'
import { getParameterByName } from '../../utils'
export default class extends Phaser.Sprite {
constructor ({ game, x, y, base_x, base_y, asset, melanosome, immortal }) {
var spriteName = "tyrosine";
var isCrazy = getParameterByName("... | JavaScript | src/resources/proteingame/src/sprites/size_activity/Tyrosine.js | concord-consortium/geniblocks | mit | 6,599 | 220 | codeparrot/github-code |
efb166b26a2d2a426d2582da6f0c4d0cf8a2d7f894bfe8e0cee8c1a289720f5c | using System;
using System.Web;
namespace SharpBrakeWeb
{
/// <summary>
/// The <see cref="IHttpModule"/> that notifies Airbrake of unhandled exceptions in the application.
/// </summary>
public class NotifierHttpModule : IHttpModule
{
private AirbrakeClient _client;
#region IHttp... | C# | src/app/SharpBrakeWeb/NotifierHttpModule.cs | kayoom/SharpBrake | mit | 1,753 | 51 | codeparrot/github-code |
629ed588b71b39f5b9e4e8f2da5ea82b9546132fa20db3e583b6cec15c53a66d | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta ... | HTML | index.html | adussaq/hcv_genie | mit | 12,010 | 273 | codeparrot/github-code |
ff2d8712f949f0624e2165737cbb8c37fe2b828ea1070d6ed36094c04242d1cf | // Copyright (c) 2016 Leszek S
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, dist... | C | LSCategories/NSDate+LSCategories.h | fins/LSCategories | mit | 13,023 | 515 | codeparrot/github-code |
12847dc5c017036405c27a3221d6e2b266276ab048f0bc7ad32c354cf5fd699d | import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
import { MapComponent } from './map/map.component';
import { Ng2MapModule} from 'ng2-map';
import {SearchComponent} from './search/search.component';
import {FormsModule,... | TypeScript | src/app/app.module.ts | kespeart/mapmarker | mit | 989 | 33 | codeparrot/github-code |
3c32d092d401043700096e2ba0b9a39e2787f32521e6eeb7499ba22a482c297f | package org.innovateuk.ifs.assessment.validator;
import org.innovateuk.ifs.application.domain.FormInputResponse;
import org.innovateuk.ifs.application.validator.BaseValidator;
import org.innovateuk.ifs.category.domain.ResearchCategory;
import org.innovateuk.ifs.category.repository.ResearchCategoryRepository;
import or... | Java | ifs-data-layer/ifs-data-service/src/main/java/org/innovateuk/ifs/assessment/validator/ResearchCategoryValidator.java | InnovateUKGitHub/innovation-funding-service | mit | 1,995 | 52 | codeparrot/github-code |
1763eaf4cb406fa7dab4c274bc985486f9eb2baf46d085162c016974c17ae822 | #include "manipulador.h"
#include "geneticoset.h"
#include <iostream>
#include <vector>
#include <io.h>
#include <math.h>
#include <qgl.h>
#include <GL/GLU.h>
using namespace std;
Manipulador::Manipulador(void)
{
alpha = 0.0f;
beta = 0.0f;
art1 = 0.0f;
art2 = 0.0f;
art3 = 0.0f;
... | C++ | src/robotics/manipulador.cpp | pcamarillor/Exploratory3D | mit | 33,675 | 1,143 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.