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 |
|---|---|---|---|---|---|---|---|---|
16d3af0b3e058fbfcd9649580239be5017e58030d0d8bd9c3d0aa2625c908371 | <!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>R4PairKey Class Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
<link rel="stylesheet" t... | HTML | docs/Classes/R4PairKey.html | srdanrasic/R4 | mit | 7,035 | 271 | codeparrot/github-code |
7dc486532bbc87433c773c604f84b9514139fb1ca44ad11488e3bbb5e0d4fe96 | package neoutils
import (
"github.com/Financial-Times/up-rw-app-api-go/rwapi"
"github.com/jmcvetta/neoism"
)
type TransactionalCypherRunner struct{ DB *neoism.Database }
func (cr TransactionalCypherRunner) String() string {
return cr.DB.Url
}
func (cr TransactionalCypherRunner) CypherBatch(queries []*neoism.Cyph... | GO | neoutils/transactional_cypher_runner.go | Financial-Times/neo-utils-go | mit | 676 | 31 | codeparrot/github-code |
86b99363683b9a707cdc30233a08f6c3451e27200ccd2d49212bd67ece112291 | ///<reference path="./Text.ts"/>
///<reference path="./verify.ts"/>
namespace Updraft {
export enum ColumnType {
int,
real,
bool,
text,
enum,
date,
datetime,
json,
set
}
/** A typescript enum class will have string keys resolving to the enum values */
export interface TypeScriptEnum {
[enumV... | TypeScript | src/Column.ts | arolson101/updraft | mit | 8,385 | 336 | codeparrot/github-code |
fc067eb233bb1dd8ce8780e696c4985c1f60db558f4a698c5c1e290ba10f0876 | package crat.client;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.TimeUnit;
import crat.common.*;
/**
* Objects of this type are used to communicate the i... | Java | PRC/Java RMI - Peer to Peer Chat/CRAT/src/crat/client/ConnectionBridge.java | lorandszakacs/UPT-Projects | mit | 1,443 | 46 | codeparrot/github-code |
24f2f58b4da49935b1be7dc074ad9667a02f62ce9820b0a12ca31401451b6015 | module HealthSeven::V2_5_1
class RspK31 < ::HealthSeven::Message
attribute :msh, Msh, position: "MSH", require: true
attribute :msa, Msa, position: "MSA", require: true
attribute :errs, Array[Err], position: "ERR", multiple: true
attribute :sfts, Array[Sft], position: "SFT", multiple: true
attribute :qak, Qak... | Ruby | lib/health_seven/2.5.1/messages/rsp_k31.rb | niquola/health_seven | mit | 3,558 | 66 | codeparrot/github-code |
713cf26ebefab36abbae3f977a843313bb574c711e326575c2be117186243071 | <?php
//include "connect_db.php";
function curl($url) {
$ch = curl_init(); // Initialising cURL
curl_setopt($ch, CURLOPT_URL, $url); // Setting cURL's URL option with the $url variable passed into the function
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); // Setting cURL's option to return the webpage data
$... | PHP | src/traffickarmasent/curl.php | manglakaran/TrafficKarmaSent | mit | 1,948 | 57 | codeparrot/github-code |
d95db33a839d7c907ad85b3ea59cace3c5d41e90f4ae8ed3acc171e09510907a | /**
* Width Converter
* Copyright 2017 Yanbin Ma under MIT
* https://github.com/myanbin/hwfw-convert
*/
const CODEPOINT_BASE = '\uff10'.codePointAt(0) - '0'.codePointAt(0);
const CJK_PUNCTUATIONS = [
0xff0c/* , */, 0x3002/* 。 */, 0xff01/* ! */, 0xff08/* ( */, 0xff09/* ) */, 0x3001/* 、 */, 0xff1a/* : */, 0xff1b/... | JavaScript | convert.js | myanbin/hwfw-convert | mit | 6,466 | 160 | codeparrot/github-code |
f986fbc02ef936a05bffa5748db67d4cd9b5a54943e6131917e54c7fa0a44f93 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Remote;
using System.Net;
using System.Net.Sockets;
namespace RemoteConsole
{
class Program
{
public static SOCKET.Server server;
//public static List<SOCKET.Client> clients;
public static ... | C# | RemoteConsole/Program.cs | tomes11/Remote | mit | 9,699 | 371 | codeparrot/github-code |
0ff0f6d0ca466b6424eb24d6ad4bff3234328a117df0e9802a17b41517f57c6e | import sinon from "sinon";
import {
AUTHENTICATION_RESULT, AUTHORIZATION_PENDING_RESPONSE,
DEFAULT_OPENID_CONFIG_RESPONSE,
DEVICE_CODE_EXPIRED_RESPONSE,
DEVICE_CODE_RESPONSE,
TEST_CONFIG,
TEST_DATA_CLIENT_INFO,
TEST_URIS,
TEST_POP_VALUES,
CORS_SIMPLE_REQUEST_HEADERS,
RANDOM_TEST_... | TypeScript | lib/msal-common/test/client/DeviceCodeClient.spec.ts | AzureAD/microsoft-authentication-library-for-js | mit | 18,427 | 314 | codeparrot/github-code |
939c840b4e348fbe6daa63e2d5c0fea9c3e966af009dda6801011a48ad29f632 | <!DOCTYPE html><html><head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="description">
<meta name="keywords" content="static content generator,static site generator,static site,HTML,web development,.NET,C#,Razor,Markdown,YAML">
<meta n... | HTML | docs/api/OpenTl.Schema/TUpdateDeleteMessages/1856ED59.html | OpenTl/OpenTl.Schema | mit | 10,987 | 279 | codeparrot/github-code |
922974e5e623df12987abde245155161132fa317d5c16f2605ac2df176280ae3 | "use strict";var _slicedToArray = function () {function sliceIterator(arr, i) {var _arr = [];var _n = true;var _d = false;var _e = undefined;try {for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {_arr.push(_s.value);if (i && _arr.length === i) break;}} catch (err) {_d = true;_e = err;... | JavaScript | lib/adapters/adapter_helper.js | LaxarApps/changelog-viewer-server | mit | 2,566 | 34 | codeparrot/github-code |
73e2737dc25a4e4d55735b85a1f6e0f743e3364c104387e739e2a55099d5b637 | /**
* The MIT License (MIT)
Copyright (c) 2013 Chute
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, pub... | Java | library/src/main/java/com/getchute/android/photopickerplus/util/Constants.java | chute/photo-picker-plus-android | mit | 1,982 | 43 | codeparrot/github-code |
ac05e6ee1d41f4f3107b71b7f6502238f6de05313f60eeb2249560081e9403de | import os
import json
import re
import os.path
import filecmp
import pipes
import fnmatch
import subprocess
import sublime
import sublime_plugin
import tempfile
import hashlib
from shutil import copyfile, rmtree
class SpyOnGemsCommand(sublime_plugin.WindowCommand):
def __init__(self, window):
self.setting... | Python | gem-spy.py | naiyt/gem-spy | mit | 5,667 | 176 | codeparrot/github-code |
7a0051ebe2c3eb2159d337d383df25e49e97c4c662bae3048d2357e7f6ad0a2b | extern crate graphics;
extern crate freetype as ft;
extern crate sdl2_window;
extern crate opengl_graphics;
extern crate piston;
use std::path::Path;
use sdl2_window::Sdl2Window;
use opengl_graphics::{ GlGraphics, Texture, OpenGL };
use graphics::math::Matrix2d;
use piston::window::WindowSettings;
use piston::event::*... | Rust | freetype/src/main.rs | Potpourri/piston-examples | mit | 1,967 | 68 | codeparrot/github-code |
ba70394fa135bebafac3ac2e2751f3a1064830aac11919d73196eb1fad226b41 | <?php
namespace Ibillmaker\Hub\CoreBundle\Entity;
use Sylius\Bundle\CoreBundle\Model\User as BaseUser;
use Sylius\Bundle\CoreBundle\Model\UserInterface;
class User extends BaseUser {
protected $companyName;
protected $admin;
public function __construct()
{
parent::__construct();
}
... | PHP | src/Ibillmaker/Hub/CoreBundle/Entity/User.php | ngpatel143/testibm | mit | 867 | 51 | codeparrot/github-code |
0a0a216d47497dbdf863fba8c8921c2ca4989bb321760e4c2f72483461f75d6c | #!/usr/bin/env bash
# Load settings
source /vagrant/settings.sh
# See https://github.com/smebberson/vagrant-simple-nginx-php
sudo mkdir /etc/vagrant
sudo apt-get install -y software-properties-common python-software-properties
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install -y git... | Shell | vagrant/provision.sh | mschwarzer/citolytics-demo | mit | 4,860 | 160 | codeparrot/github-code |
72df9a66b9a5fb6c3c4e355172420e19e361cfa3693d168b64d3abd01d51192a | #! /bin/sh
maybe_install_gpg() {
# Install gnupgV2 if missing
if ! gpg --version > /dev/null; then
echo "No gnupg* found. Installing gnupg2..."
apt install gnupg2
fi
}
maybe_install_conv() {
# Install conventional-changelog-cli if missing
npm list -g conventional-changelog-cli > /de... | Shell | tools/setup-release.sh | algolia/algoliasearch-client-android | mit | 3,136 | 111 | codeparrot/github-code |
6d1cb6c87455b50a2d182b2f42a785b3355aa0994ab2382a04840da1d79570d6 | {-# Language TemplateHaskell, QuasiQuotes, FlexibleContexts #-}
module Main where
import Language.F2
import Language.F2.Util
import System.IO (hFlush, stdout)
import Control.Arrow (first, second, (>>>))
import Control.Monad.State
import Text.Peggy (defaultDelimiter, peggy, parseString)
[peggy|
space :: ()
= [ \r\n... | Haskell | src/Main.hs | kagamilove0707/F2 | mit | 2,011 | 80 | codeparrot/github-code |
16b93d8096d5d3900ef9e0ccbfe3b668c36840eaabf3e9ac18ac19bf12673896 | #include <stdlib.h>
#include <string.h>
#include "core/cart/cart.h"
#include "log.h"
int core_cart_init(struct core_cart **pcart, struct core_cpu *cpu)
{
struct core_cart *cart = NULL;
cart = malloc(sizeof(*cart));
if (cart == NULL) {
LOGE("Could not allocate cart core; exiting");
return 0;
... | C | src/core/cart/cart.c | tykel/qpra | mit | 1,347 | 71 | codeparrot/github-code |
417be155fb51b37535d05d93462a7724c48dc452c61e1be99ca4b10e30dc1955 | using SaaSPro.Common.Web;
using SaaSPro.Services.Interfaces;
using SaaSPro.Services.ViewModels;
using System;
using System.Web.Mvc;
namespace SaaSPro.Web.Areas.Admin.Controllers
{
public class ReferenceListsController : AdminControllerBase
{
private readonly IReferenceListService _referenceListService... | C# | src/SaaSPro.Web/Areas/Admin/Controllers/ReferenceListsController.cs | buenadigital/SaaSPro | mit | 1,473 | 48 | codeparrot/github-code |
cf739bdf60d2b0bdf844b04cf57b2ce26528497236f3090a139a178963134ba9 | $(document).ready(function() {
function sleep(milliseconds) {
var start = new Date().getTime();
for (var i = 0; i < 1e7; i++) {
if ((new Date().getTime() - start) > milliseconds){
break;
}
}
};
var showAlert = function(message, type){
$('.alert').hide();
... | JavaScript | www/js/main.js | Tanyabel/vk-friends-cluster | mit | 3,442 | 109 | codeparrot/github-code |
941da7bf2d826755d88af431ed5f6ba9e0c59910d03895981cc62d6b53afc5f9 | #include <termox/common/u32_to_mb.hpp>
#include <stdexcept>
#include <string>
#include <string_view>
#include <vector>
#ifdef __APPLE__
# include <cwchar>
#else
# include <cuchar>
#endif
#include <esc/detail/u32_to_mb.hpp>
namespace ox {
auto u32_to_mb(char32_t c) -> std::string
{
auto [count, chars] = :... | C++ | src/common/u32_to_mb.cpp | a-n-t-h-o-n-y/CPPurses | mit | 1,177 | 47 | codeparrot/github-code |
1ab57d81dbb3499e5d2a6c2862a9e76994e981d54c529270297d0ea738774f70 | import React from 'react';
import {render} from 'react-dom';
import {StaticMap} from 'react-map-gl';
import DeckGL from '@deck.gl/react';
import {HeatmapLayer} from '@deck.gl/aggregation-layers';
const DATA_URL =
'https://raw.githubusercontent.com/visgl/deck.gl-data/master/examples/screen-grid/uber-pickup-locations.... | JavaScript | examples/website/heatmap/app.js | uber-common/deck.gl | mit | 1,209 | 51 | codeparrot/github-code |
ed7b3bb6594e3230b091d7ba37fdcb64ea4c6b8510fe4ca66d40df28e956f294 | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2013 The NovaCoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "txdb.h"
#include "miner.h... | C++ | src/miner.cpp | SyndicateLabs/SyndicateQT | mit | 20,180 | 582 | codeparrot/github-code |
ba415c07527f5720a08849de69cdddeb27442456f5fedc0f5e8429c4e8490f07 | using System;
using System.Windows.Forms;
using static Pk3DSRNGTool.FormUtil;
using static Pk3DSRNGTool.StringItem;
namespace Pk3DSRNGTool.Subforms
{
public partial class ProfileView : Form
{
private bool Edit { get; set; }
private Profiles.Profile Profile { get; set; }
public Profile... | C# | 3DSRNGTool/Subforms/ProfileView.cs | wwwwwwzx/3DSRNGTool | mit | 4,102 | 130 | codeparrot/github-code |
4116b02f52d7416b71768132f75d6760ae9b7b9f1ec682652fd27a17327bb21b | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>weak-up-to: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.... | HTML | clean/Linux-x86_64-4.05.0-2.0.1/released/8.7.2/weak-up-to/8.10.0.html | coq-bench/coq-bench.github.io | mit | 7,541 | 183 | codeparrot/github-code |
97f7169055fd100f530197c5dcc346fcc54372ece538147e781f48cbfafe055b | angular.module('admin-users-edit-uniqueEmail', ['resources.users'])
/**
* A validation directive to ensure that the model contains a unique email address
* @param Users service to provide access to the server's user database
*/
.directive('uniqueEmail', ["Users", function (Users) {
return {
require:'ng... | JavaScript | client/src/app/admin/users/uniqueEmail.js | YARSN/Melisandre | mit | 1,114 | 31 | codeparrot/github-code |
074dc2e38f18462fbdcd5804eb6373641ea2dec8f89aed1f513fcc2cf6e81e23 | \label[chap:research]
\chap Existing solutions % and Research
In this chapter we will describe the research on existing solutions for
given task (scraping and annotating data from a web). The performed search was
focused on tools directly targeting the problem, as well as libraries and
technologies that could be inclu... | TeX | report/03research.tex | kub1x/selectowl | mit | 38,816 | 796 | codeparrot/github-code |
8e450987a0ed5100389143c07820b575c25c9bcb6a6dd2145e65a031c1033d62 | /*
Copyright 1990, 1994, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in ... | C | 01_Develop/libXMFreeType/Source/pcf/pcfutil.c | mcodegeeks/OpenKODE-Framework | mit | 2,607 | 105 | codeparrot/github-code |
dd5ed6bb7dbcb57670fec7a8a80f64ab3d37d416d3b60c35444c37d1b8308a53 | <?php
/**
* Copyright (c) 2011-2015 VIETMAI Solutions Corporation
*
* Released under the MIT license (http://opensource.org/licenses/MIT)
*/
class AdminActionHelper {
static function getAdminActions($module, $screen) {
if (!Framework::hasModule('AdminAction')) {
return array();
}
... | PHP | shared/helper/AdminActionHelper.php | extremeframework/extremeframework | mit | 804 | 33 | codeparrot/github-code |
c8e673e32d27acd7a597c7d2df8cbe320924fb704f8503898e1a95571f4190e1 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
* {
margin: 0;
padding: 0;
font-size: 15px;
font-family: helvetica, sans-serif;
}
.stage {
width: 400px;
height: 400p... | HTML | sample/particles/animate_sine.html | lolocoo/lolocoo.github.io | mit | 3,040 | 115 | codeparrot/github-code |
276c0599e1a31d2789e406cd715287dc10add345d44674d07bb3fc9c07f7eafe | <?php
namespace DriveForm\View\Form;
include dirname(__FILE__).'/commons.php';
function init() {
\DriveForm\View\head();
?>
<body>
<form action="/register" method="POST" enctype="multipart/form-data">
<section id="one">
<div>
<a href="http://autonomi.... | PHP | view/form.php | PrashntS/driveform | mit | 7,429 | 156 | codeparrot/github-code |
8a6fb502ec3a1faf513c3170a365a8fb02a726bb6613ba6c768840db66890f15 | <?php
class TourGuideModel extends CI_Model {
public function getAllPlaces() {
$this->db->select('*');
$this->db->from('place');
$result = $this->db->get();
return $result;
}
public function getPlace($id) {
$this->db->select('*');
$this->db->from('place');
... | PHP | application/models/TourGuideModel.php | Savindamad/Walk_Lanka_Travels | mit | 1,737 | 64 | codeparrot/github-code |
6375adf0aa1bc237c3e2e67dbd0fc6834947685a8c612c61dcca7e107796c23a | package otherlang;
import java.awt.Container;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.net.URL;
import java.util.Stack;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import com.darwinsys.util.Debug;
/**
... | Java | data/Java Cookbook 3rd Edition/javacooksrc/javacooksrc/main/java/otherlang/ExecDemoNS.java | shashanksingh28/code-similarity | mit | 3,815 | 121 | codeparrot/github-code |
5b131e88afe162b39177b65d206ca003249b7180a335512e67374139a9715b32 | /*
* File: main.c
* Author: david
*
* Created on February 3, 2015, 7:14 PM
*/
#include <xc.h>
#include <stdio.h>
#include <stdlib.h>
// CONFIG
#pragma config FOSC = INTOSCIO // Oscillator Selection bits (INTOSCIO oscillator: I/O function on RA4/OSC2/CLKOUT pin, I/O function on RA5/OSC1/CLKIN)
#pragma config W... | C | MPLABXProjects/rgb_led.X/main.c | gladfelter/electronics | mit | 1,642 | 54 | codeparrot/github-code |
2eafece4378b92073bf17805c8d53de479543d6d44f2640bb2eb34d33520c753 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>paco: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" r... | HTML | clean/Linux-x86_64-4.06.1-2.0.5/released/8.7.1+2/paco/4.0.3.html | coq-bench/coq-bench.github.io | mit | 7,013 | 173 | codeparrot/github-code |
5c5d8ce3360f36dd566cf2db9f43a86f02339d5d9efe13dae1a16b37ecd9bbc9 | #include "cxxopts.hpp"
#include <boost/algorithm/string.hpp>
#include <boost/lexical_cast.hpp>
#include "benchmark_config.hpp"
#include "cli_config_parser.hpp"
#include "server/server.hpp"
#include "tpcc/tpcc_table_generator.hpp"
#include "tpcds/tpcds_table_generator.hpp"
#include "tpch/tpch_constants.hpp"
#include "... | C++ | src/bin/server.cpp | hyrise/hyrise | mit | 4,805 | 105 | codeparrot/github-code |
9dc1a20cc11b949fd68e711ef6331c53d6b45c1d399af1665a17508b39f7819f | var _ = require('underscore');
var deepSet = function (obj, pathString, value) {
var path = pathString.split('.');
var len = path.length;
for (var i = 0; i < len; i++) {
if (i == len - 1) {
obj[path[i]] = value;
} else {
if (!_.has(obj, path[i])) {
obj[path[i]] = {};
}
obj... | JavaScript | lib/dataManager.js | bitterulf/joist | mit | 1,129 | 55 | codeparrot/github-code |
d095dc47d38b350acc62c497a9f324a59c8c467cdb9f39fe80320d18be256aa9 |
/*
* GET team listing page.
*/
exports.display = function(req, res){
res.render('team', { title: 'Team' , user: req.user });
};
exports.list = function(req, res) {
var KRA = require('../models/reviewDocument');
var User = require('../models/user');
var Cycle = require('../models/cycle');
var teamusers = [];... | JavaScript | routes/team.js | varun1308/up-raise | mit | 1,574 | 71 | codeparrot/github-code |
d1edeb5aa5b6b62681869ae4e6be56e51ca3f49c014bb4a698f90797e2d10a9d | package com.namnn.qna.services.impl;
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import com.google.inject.Inject;
import com.namnn.qna.model.Answer;
import com.namnn.qna.services.AnswerService;
public class AnswerServiceImpl extends BaseServiceImpl<A... | Java | src/main/java/com/namnn/qna/services/impl/AnswerServiceImpl.java | namnn96/backend222 | mit | 1,072 | 45 | codeparrot/github-code |
c5544c50cc723de3c84517111ed1fd0088b9303363a33db5e544d21e0802b12e | #!/usr/bin/env ruby -wKU
# encoding: utf-8
require 'nokogiri'
require 'lettuce-android/view'
module Lettuce module Android
class UiAutomatorParser < Nokogiri::XML::SAX::Document
attr_reader :root
attr_reader :views
def initialize device, version
@device = device
@version = version... | Ruby | lib/lettuce-android/ui_automator_parser.rb | wonhoseo/lettuce-android | mit | 1,578 | 63 | codeparrot/github-code |
8f0fb3051b8a5235582c66f698aab654022778698760f5ab80a320c190bdc9fe | /**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import {Circus} from '@jest/types';
import {convertDescriptorToString} from 'jest-util';
import isGeneratorFn... | TypeScript | packages/jest-circus/src/utils.ts | ide/jest | mit | 9,651 | 357 | codeparrot/github-code |
4302faf1bae9b376d62cf1010b81bdf7bebbf0537f1a774777d1edc5bb276d0f | <?php
/**
* Benefits VC shortcode.
*
*/
// File Security Check
if ( ! defined( 'ABSPATH' ) ) { exit; }
if ( ! class_exists( 'DT_Shortcode_Benefits_Vc', false ) ) {
class DT_Shortcode_Benefits_Vc extends DT_Shortcode {
static protected $instance;
static protected $shortcodes_count = 0;
pro... | PHP | wp-content/themes/dt-the7/inc/shortcodes/includes/benefits-vc/benefits-vc.php | creative2020/cs_ial | mit | 15,497 | 501 | codeparrot/github-code |
58806596bd0e8e226ac2dbe07c80adb59f111df9ba35e65058e40bacb1f29162 | // Copyright(c) 2013 GROWTH XPARTNERS, Incorporated.
//
//
package junit.tutorial;
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TestWatcher;
public cla... | Java | src/test/java/junit/tutorial/TestWatcherExampleTest.java | hosaka893/junit-tutorial | mit | 1,624 | 69 | codeparrot/github-code |
db71665282ff291ef16b3fce7f4021eca94e8063916ec436dd78aba767686d2c |
.styleSans197.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
font-family: Sans;
font-size: 197.0pt;
font-weight: normal;
font-style: normal;
text-align: 0;
letter-spacing: 0pt;
line-height: 0pt;
}
.styleSans12000<enum PANGO_WEIGHT_NORMAL ... | CSS | ocr_extracted/W30010_text/style.css | datamade/elpc_bakken | mit | 5,225 | 210 | codeparrot/github-code |
2d07dd510a806ce60509031f3d4c280925b0e801d8232fecbc6276b929da311c | <!DOCTYPE html>
<html>
<head>
<title>MY BLOG TEMPLATE</title>
<link rel="stylesheet" type="text/css" href="week1_technical_blogpost.css">
</head>
<body>
<div id="header">
<img id="image" src="https://pbs.twimg.com/profile_images/1778152954/J-Harnoss_1.PNG"/>
<div id="name">
<p><strong>Justin Harnoss</strong... | HTML | unit2_projects/week4_technical_blog.html | harnoss/harnoss.github.io | mit | 9,493 | 169 | codeparrot/github-code |
3b986ba2471e988f5d52689c77a4d4953584eae5fe8148255eef9df4cb335535 | import React from 'react';
import {storiesOf, action} from '@kadira/storybook';
import StuffEmployeesList from './stuff-employees-list';
const items = [
{
"groupId": 1000007736672,
"employeeId": 1000007948505,
"lastName": "Бухал",
"firstName": " Д.",
"middleName": " Д.",
"locked": false
},
... | JavaScript | src/components/stuff-employees-list/stuff-employees-list.story.js | dima-bu/b2b.core | mit | 1,320 | 54 | codeparrot/github-code |
6e4497f7008d9b922c07a2507ae9b1f912fbfed34d389db1633a3540bb244ece | /**
******************************************************************************
* File Name : LCD.c
* Description : This file provides code for the configuration
* of the LCD instances.
******************************************************************************
*
... | C | STM32 Discovery/STM32L476G_Discovery_LCD/Src/lcd.c | UdayanSinha/Code_Blocks | mit | 22,812 | 605 | codeparrot/github-code |
032ebbded15d4351cac8a3f7b30f1f2274388a8c8e163fab817b09a63f51562a | // Demonstrate SequenceStream
#include "mu.h"
#include <string>
#include <iostream>
#define EXAMPLE_DIRECTORY "/Users/r/Projects/Mu/examples/sounds/"
void wait_for_input() {
std::cout << "Hit return to quit: ";
std::string s;
std::getline(std::cin, s);
}
const mu::MuTick kTicsPerBeat = 44100/4;
mu::MuTick be... | C++ | examples/mu_10.cpp | rdpoor/mu | mit | 1,858 | 60 | codeparrot/github-code |
995b60685de3d00c5853611f95f8cb88a22210c48dd99ad8d599bee9388fd46a | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>subst: Not compatible 👼</title>
<link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" />
<link href="../../../../../bootstrap.min.css" ... | HTML | clean/Linux-x86_64-4.06.1-2.0.5/released/8.11.0/subst/8.6.0.html | coq-bench/coq-bench.github.io | mit | 6,915 | 164 | codeparrot/github-code |
80b1c0e9bef682e975c3d924485c3bb1883f5fc56cd8a321d80fd1c1210c8b2b | #include <gtest/gtest.h>
#include <iostream>
using namespace std;
typedef const long long unsigned llu;
template <llu N, llu D> struct Fraction {
static llu Numerator = N;
static llu Denominator = D;
};
template <llu N, typename F> struct ScalarMultiplication {
typedef Fraction<N * F::Numerator, N * F::... | C++ | pi-c++03.cpp | szborows/codedive | mit | 2,938 | 100 | codeparrot/github-code |
4ff4dc1422cdd8fd5dac2b315873c68541db7fddca99b8653ff797e609268856 | require_dependency "nimbos/application_controller"
module Nimbos
class SessionsController < ApplicationController
def new
@user = User.new
@user.email = cookies[:socialfreight_mail].to_s
@meta_title = "Login to Modaltrans, Cloud based logistics & transportation operations management software"
... | Ruby | app/controllers/nimbos/sessions_controller.rb | farukca/nimbos | mit | 1,625 | 53 | codeparrot/github-code |
77dff1b481ae4b2f473010314e1b731301b97b5b9b418ed8d095380a80beda31 | """
This script trains a model based on different regions of chromosome 1,
and evaluates the model as the likelihood of it for the whole chromosome 2.
Useful to know whether it is sufficient to train only based on smaller data
"""
import os
import numpy as np
from config import RES_DIR
from data_provider import SeqL... | Python | src/scripts/HMMTrainRegions.py | eranroz/dnase | mit | 2,526 | 72 | codeparrot/github-code |
520d1853b662fd0a13ae7be9af36edc66f4dec4345702b2f21a2c552c6a3a15a | package org.clafer.ir;
import java.util.Arrays;
import org.clafer.common.Check;
import org.clafer.domain.BoolDomain;
/**
*
* @author jimmy
*/
public class IrSortStringsChannel extends IrAbstractBool {
private final IrIntExpr[][] strings;
private final IrIntExpr[] ints;
public IrSortStringsChannel(IrI... | Java | src/main/java/org/clafer/ir/IrSortStringsChannel.java | gsdlab/chocosolver | mit | 1,935 | 77 | codeparrot/github-code |
a38db8701f5705bb04a94aaf2002369076c19e8a9155260c46d1e0b48006ff5f | #!/usr/bin/php
<?php
spl_autoload_register(function($class) {
$file = __DIR__ .'/classes/'. strtr($class, '\\', '/') .'.php';
if ( is_readable($file) )
include $file;
});
$options = new CommandLineOptions();
$wsdlPath = $options->createOption('w', 'wsdl', 'Путь к файлу WSDL', true, true... | PHP | phpclassgen.php | anton-pribora/phpclassgen | mit | 3,768 | 124 | codeparrot/github-code |
7aad07d4a03e982d680f037eb4d47e27a727b216a01f99c233253d0e50723985 | /*global qs, qsa, $on, $parent, $live */
import $ from 'jquery';
import _ from 'lodash';
import typeahead from 'typeahead.js';
var Bloodhound = window.Bloodhound; // TODO pull global into jspm
/**
* View that abstracts away the browser's DOM completely.
* It has two simple entry points:
*
* - bind(eventName, hand... | JavaScript | public/view.js | qvm1Wak/measuring_cup | mit | 2,620 | 95 | codeparrot/github-code |
f955f06cba8d2ea64c7522754f0209f2e599d62d61d8be694acbcb391c78a2be | // These are the pages you can go to.
// They are all wrapped in the App component, which should contain the navbar etc
// See http://blog.mxstbr.com/2016/01/react-apps-with-pages for more information
// about the code splitting business
import { getAsyncInjectors } from 'utils/asyncInjectors';
const errorLoading = (e... | JavaScript | app/routes.js | Honyrik/my_msg | mit | 1,586 | 52 | codeparrot/github-code |
2b09df73822208844e241cdfa15924b17afec7b439115684e81e133c8a5bdd15 | require 'hyrax/ingest/errors'
require 'minitar'
module Hyrax
module Ingest
# A model for reading Submission Information Packages (SIPs) from a file_pathsystem.
#
# @attr_reader [String] path description of a readonly attribute
class SIP
attr_reader :path
# @param [String] path The path t... | Ruby | lib/hyrax/ingest/sip.rb | IUBLibTech/hyrax-ingest | mit | 3,620 | 92 | codeparrot/github-code |
9c1adf96057d901aa04a31e3f517a624376294441f859f7b06d46dfd50c604b7 | using ElectronicObserver.Window;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace ElectronicObserver.Notifier {
public sealed class NotifierManager {
#region Singleton
private static ... | C# | ElectronicObserver/Notifier/NotifierManager.cs | Arathi/ElectronicObserver | mit | 2,336 | 76 | codeparrot/github-code |
feaa6ab6bdfe9f914393135e29693c58180be8b88eee6a2c2a932c0da16369a2 | // @flow
'use strict';
import { Logical, Calendar, calendarBase2Date } from '../src';
import UUID from '../../ron-uuid/src';
describe('Logical', () => {
const clock = new Logical('test');
test('basic', () => {
expect(clock.time().toString()).toBe('(1+test');
expect(clock.time().toString()).toBe('(2+test')... | JavaScript | packages/clock/__tests__/clock.js | gritzko/swarm | mit | 1,161 | 41 | codeparrot/github-code |
c299beadcf1b249958f21f2a405ac2da5a09744fd7f4266642f513cd7b10660e | import HeatmapEventDispatcher from '../utilities/heatmap-event-dispatcher';
import events from '../utilities/events';
/**
* @typedef {Object} InteractiveZoneOptions
* @property {number} priority
*/
class InteractiveZone extends HeatmapEventDispatcher {
static Priorities = {
default: 1,
colorSch... | JavaScript | client/client/modules/render/heatmap/interactions/interactive-zone.js | epam/NGB | mit | 3,539 | 169 | codeparrot/github-code |
cd19fb152f4e7d89325e7869b922bdb9f70154f43170804653f42d8467d6738b | /* table for the mapping for the perfect hash */
#ifndef STANDARD
#include "standard.h"
#endif /* STANDARD */
#ifndef NPHASH
#include "npHash.h"
#endif /* NPHASH */
#ifndef LOOKUPA
#include "lookupa.h"
#endif /* LOOKUPA */
/* small adjustments to _a_ to make values distinct */
ub2 np_table[] = {
162,264,0,65,211,258,... | C | src/mphf/npHash.c | shawwwn/Direct3D8to9 | mit | 1,012 | 39 | codeparrot/github-code |
6a3325b83db2dbd9fb11b6be61880706f860f2ab82886c57745e0dd2acc6bf04 | // ESLint declarations:
/* global describe */
/* eslint one-var: 0, semi-style: 0 */
'use strict';
// -- Vendor Modules
const { execSync } = require('child_process')
;
// -- Local Modules
const jMaps = require('../index.js')
, pack = require('../package.json')
, testlib = require('./int/lib')
, ... | JavaScript | test/main.js | jclo/jmaps | mit | 1,630 | 59 | codeparrot/github-code |
8957fc6f47527c573f0bfb5c88b3f7a064e3a2f42ad80677bd0ccb523daeb33d | /*
* Copyright 2010, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... | JavaScript | webgl-utils.js | ipetkov/IslandMysteryGame | mit | 8,676 | 279 | codeparrot/github-code |
7431c7f20e8b9e821b0055fc08aee84db2bd4280d2c3b674c1657c3ade848749 | require 'active_support/deprecation'
module LightService
module Outcomes
SUCCESS = 0
FAILURE = 1
end
# rubocop:disable ClassLength
class Context < Hash
attr_accessor :message, :error_code, :current_action, :around_actions,
:organized_by
def initialize(context = {},
... | Ruby | lib/light-service/context.rb | adomokos/light-service | mit | 4,247 | 174 | codeparrot/github-code |
b3ca55c0d553260c3fd42d5d2c1bd6c578f5a40fb381392581ce0ede15a70124 | //
// GridUILayout.cpp
// ChilliSource
// Created by Scott Downie on 09/06/2014.
//
// The MIT License (MIT)
//
// Copyright (c) 2014 Tag Games Limited
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to de... | C++ | Source/ChilliSource/UI/Layout/GridUILayout.cpp | ChilliWorks/ChilliSource | mit | 12,156 | 253 | codeparrot/github-code |
e8eb8bc30e16afe454f7c8b3047b0c44c1668a605a584dd758f385cd1a19ce1e | <!doctype html>
<html>
<head>
<meta charset="utf-8" />
<meta content="IE=edge;chrome=1" http-equiv="X-UA-Compatible" />
<title>zurich4u</title>
<meta content="width=device-width, initial-scale=1" name="viewport" />
<link rel="alternate" type="application/atom+xml" title="Atom Feed" href="/feed.xm... | HTML | 2014/12/01.html | acloudburo/sosnews | mit | 8,989 | 207 | codeparrot/github-code |
6f7957ac4dfaf823412791ba3f87f78e01340f0d8c05ef4d382a427900e925f5 | package com.jjneko.jjnet.database;
import gnu.trove.map.hash.THashMap;
import gnu.trove.map.hash.TObjectIntHashMap;
import gnu.trove.map.hash.TObjectLongHashMap;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.sql.Connection;
import java.sql.PreparedStatement;
imp... | Java | src/com/jjneko/jjnet/database/DatabaseManager.java | J00nzu/jjnet | mit | 8,065 | 292 | codeparrot/github-code |
86bd41d958ac135de3f9a17c860968c07a72df3cc6941f0df722c8fc734e6204 | /** @stable */
export interface AfterContentChecked {
ngAfterContentChecked(): void;
}
/** @stable */
export interface AfterContentInit {
ngAfterContentInit(): void;
}
/** @stable */
export interface AfterViewChecked {
ngAfterViewChecked(): void;
}
/** @stable */
export interface AfterViewInit {
ngAf... | TypeScript | tools/public_api_guard/core/core.d.ts | royling/angular | mit | 34,787 | 1,136 | codeparrot/github-code |
2f1ddb15b386d988af0821bd39da25d764cbee15efcc976f01c45348f00e1cce | // A facebook graph api client in go.
// https://github.com/huandu/facebook/
//
// Copyright 2012, Huan Du
// Licensed under the MIT license
// https://github.com/huandu/facebook/blob/master/LICENSE
package facebook
import (
"crypto/hmac"
"crypto/sha256"
"encoding/base64"
"encoding/json"
"fmt"
"strings"
)
// A... | GO | app.go | huandu/facebook | mit | 7,138 | 290 | codeparrot/github-code |
ca6c6cbf0feec92fe81b1f15feb214aeb98eda2aee3e63659d4439b7a26c5d09 | var __extends = this.__extends || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
__.prototype = b.prototype;
d.prototype = new __();
};
var skins;
(function (skins) {
var simple;
(function (simple) {
var TreeItemRendererSk... | JavaScript | PlayEgg/PlayEgg/bin-debug/src/skins/simple/TreeItemRendererSkin.js | gaoyue1989/playEgg | mit | 3,224 | 69 | codeparrot/github-code |
436dad3bfac25d5cfffa3557c572b045536f48d5101da7e0b20a7908ce4256ae | import { Pipe, PipeTransform } from '@angular/core';
import { Dictionary } from '@ngrx/entity';
import { Pairing, Player } from 'app/shared/models';
@Pipe({
name: 'pairingsFilter'
})
export class PairingsFilterPipe implements PipeTransform {
transform(pairings: Pairing[], playerEntities: Dictionary<Player>, filter... | TypeScript | src/app/shared/pipes/pairings-filter.pipe.ts | sten626/mirror-match | mit | 980 | 37 | codeparrot/github-code |
5582e90e6a1b1fd6ab47a4554ead6431b701467c6b2bbba281741c54695a05fe | /*
MIT License
Copyright (c) 2022 Looker Data Sciences, Inc.
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, modi... | TypeScript | packages/filter-expressions/src/utils/number/sanitize_number.spec.ts | looker-open-source/components | mit | 3,270 | 82 | codeparrot/github-code |
ca81b6c30da621874296e2a1b198be9f93267770a0ddbc5c2ba6fa01c0daca4c | package com.aspose.pdf.examples.AsposePdfExamples.Annotations;
import com.aspose.pdf.AnnotationState;
import com.aspose.pdf.Border;
import com.aspose.pdf.Dash;
import com.aspose.pdf.DefaultAppearance;
import com.aspose.pdf.Document;
import com.aspose.pdf.FreeTextAnnotation;
import com.aspose.pdf.Rectangle;
import com.... | Java | Examples/src/main/java/com/aspose/pdf/examples/AsposePdfExamples/Annotations/AddAnnotationToPDF.java | aspose-pdf/Aspose.Pdf-for-Java | mit | 2,240 | 57 | codeparrot/github-code |
f637b628a973ef8c2b0d6b68089775b72e573ac6d1a27534f96585b2ec3ed96b | var os = require('os');
var fs = require('fs');
var path = require('path');
var webpack = require('webpack');
//var StatsPlugin = require('rjanko/src/statsPlugin');
var prod = process.env.NODE_ENV === 'production';
var configCommon = require('./webpack.config');
const nodeModules = {};
['node_modules', 'node_modules... | JavaScript | generators/app/templates/webpack.config.server.js | kompot/generator-rjanko | mit | 1,383 | 70 | codeparrot/github-code |
c52f053124f43ea8e15f63c27d19097f1cec80656b288775df180e8ca9d7cc39 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import division,print_function,absolute_import,unicode_literals
import sys
import os
if sys.version_info.major == 2:
import urllib
if sys.version_info.major == 3:
import urllib.request
import zipfile
import datetime
import re
from LTsv_time import *... | Python | LTsv/LTsv_file.py | ooblog/yonmoji_ge | mit | 29,550 | 612 | codeparrot/github-code |
071b791b425257cdd2e8175d270477333b4f93eb184f5ed63b409823136e68ea | using System;
using System.Windows.Forms;
namespace MSBD
{
static class Program
{
private static Form1 _mainForm;
[STAThread]
static void Main(string[] args)
{
if (args.Length == 0)
{
RunGui();
}
else
... | C# | C#/MSBD/MSBD/Program.cs | gonzigonz/DevOps-scripts | mit | 1,029 | 48 | codeparrot/github-code |
aa5e47b0bc7c2c6843879b2c399f5c2ebd4c0c4df56943b02f4906aadfa07969 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.ufes.sa.dao;
/**
*
* @author joever
*/
public class TipoDeAvaliacao {
private Integer codigo;
priv... | Java | SA/src/main/java/com/ufes/sa/dao/TipoDeAvaliacao.java | joever/SA | mit | 830 | 41 | codeparrot/github-code |
ede17a77654c36bebc0e0abfa757548c21ae7ee4c49dc54ef3fbc3188f2bc87e | /*
* ja, a Java-bytecode translator toolkit.
* Copyright (C) 1999- Shigeru Chiba. All Rights Reserved.
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. Alternatively, the contents of this file... | Java | src/ja/runtime/Cflow.java | Dablakbandit/CustomEntitiesAPI | mit | 1,497 | 71 | codeparrot/github-code |
c0e098b46c0fe58266e0bb4d3cbfaf178866797d7016ab8056c7cc2275db7f8e | <?php
namespace Register;
class Privilege {
public $id;
private $_error;
public $description;
public $name;
public $module;
public function __construct($id = 0) {
if (is_numeric($id) && $id > 0) {
$this->id = $id;
$this->details();
}
}
public function add($parameters = array()) {
... | PHP | classes/Register/Privilege.php | vanoden/Porkchop | mit | 4,211 | 141 | codeparrot/github-code |
124899a69bce2ef5464dae136538ef0ee0901a38c07e8a5284b57e87ace8bdb4 | import React from 'react';
import ReactDOM from 'react-dom';
import { throttle } from 'lodash';
import TabManager from './components/TabManager';
import Layout from './states/Layout';
import './styles.less';
import 'font-awesome/css/font-awesome.css'
const { ipcRenderer, remote } = window.require('electron');
// ... | JavaScript | www/windows/terminalWindow/index.js | AlmirKadric-org/exTerm-electron | mit | 3,403 | 96 | codeparrot/github-code |
e510e77ba8f2104c0fa72e6ffb6cfcc1941657314bf6bd3b982ceaf4745955dc | import {DirectoryDTO} from '../../../common/entities/DirectoryDTO';
import {DirectoryEntity} from './enitites/DirectoryEntity';
import {SQLConnection} from './SQLConnection';
import {DiskManager} from '../DiskManger';
import {PhotoEntity} from './enitites/PhotoEntity';
import {Utils} from '../../../common/Utils';
impor... | TypeScript | backend/model/sql/IndexingManager.ts | bpatrik/PiGallery2 | mit | 13,130 | 329 | codeparrot/github-code |
6e88604c6e1b0f0b31c5fc190c90380345d19f25e64982935cdca0108a1ea1f6 | #!/usr/bin/env python
import os
COV = None
if os.environ.get('FLASK_COVERAGE'):
import coverage
COV = coverage.coverage(branch=True, include='app/*')
COV.start()
from app import create_app, db
from app.models import User, Follow, Role, Permission, Post, Comment
from flask_script import Manager, Shell
from ... | Python | manage.py | itachigiotto/flasky | mit | 2,224 | 77 | codeparrot/github-code |
a11227b64929b040c87458ea0d2eeaa6fb21a3e2dc7f47dd6d6840ed225a7dc9 | /*
* PlistXMLParser
*
* $Id$
* Copyright (C) 2007 Mayuki Sawatari <mayuki@misuzilla.org>
*
* License: MIT License.
*/
// http://www.apple.com/DTDs/PropertyList-1.0.dtd
function _PlistXMLParser() {};
_PlistXMLParser.prototype = {
fromXMLDocument : function (plistXmlDoc) {
var plistChil... | JavaScript | common/js/PlistXMLParser.js | mayuki/VistaFace.gadget | mit | 2,006 | 69 | codeparrot/github-code |
37cc4504e6de5a6ffd8aff200b697715c5a46cb29c599871d3f1456bc77775ca | package edu.hm.hafner.analysis.parser;
import org.junit.jupiter.api.Test;
import edu.hm.hafner.analysis.AbstractParserTest;
import edu.hm.hafner.analysis.Report;
import edu.hm.hafner.analysis.Severity;
import edu.hm.hafner.analysis.assertions.SoftAssertions;
import static edu.hm.hafner.analysis.assertions.Assertions... | Java | src/test/java/edu/hm/hafner/analysis/parser/MavenConsoleParserTest.java | jenkinsci/analysis-model | mit | 9,458 | 195 | codeparrot/github-code |
b43c9861199a03561bada8e2d902592b7040bdd37c2349b4e1b2b0cfe9a4c21a | function PacienteBuilder() {
var nome = "Julio";
var idade = 31;
var peso = 82;
var altura = 1.72;
var clazz = {
comNome: function(valor) {
nome = valor;
return this;
},
comIdade: function(valor) {
idade = valor;
return this;
... | JavaScript | app/js/lab/PacienteBuilder.js | juliocnsouzadev/JasmineAndKarmaExemple | mit | 660 | 34 | codeparrot/github-code |
6bf5fd2b66f353583f186b1ae14935b7e3feb41dc313c62649568751bd417e9e | //=======================================================================
// Copyright (c) 2014-2020 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//==================================================================... | C++ | include/etl/impl/egblas/axpy_3.hpp | wichtounet/etl | mit | 7,051 | 202 | codeparrot/github-code |
3c73e9af5d7a071b37b60c9875c75b780ec13abd4ef0035271c3ddf1b4724936 | """Convert a Decimal Number to an Octal Number."""
import math
# Modified from:
# https://github.com/TheAlgorithms/Javascript/blob/master/Conversions/DecimalToOctal.js
def decimal_to_octal(num: int) -> str:
"""Convert a Decimal Number to an Octal Number.
>>> all(decimal_to_octal(i) == oct(i) for i
... ... | Python | conversions/decimal_to_octal.py | TheAlgorithms/Python | mit | 1,211 | 44 | codeparrot/github-code |
a05e3c50824ca0ae191095c193329c7fa540ea9f71f53c09d5bcd2ca4fb29f99 |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>W31025_text</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div style="margin-left: auto; margin-right: auto; width: 800px; overflow: hidden;">
... | HTML | ocr_extracted/W31025_text/page5.html | datamade/elpc_bakken | mit | 2,925 | 45 | codeparrot/github-code |
eac91079a1deadf12e321051429bf6c4fb2915bc022ede76c869b379a7840703 | {% if page.mediaplayer == true %}
<script>
$('audio,video').mediaelementplayer();
</script>
{% endif %}
<script src="{{ site.url }}{{ site.baseurl }}/assets/js/javascript.min.js"></script>
{% if page.header.image_fullwidth %}
<script>
$("#masthead").backstretch("{{ site.urlimg }}{{ page.header.image_fullwidth }... | HTML | _includes/_footer_scripts.html | cjamin/gudhi-website | mit | 1,704 | 60 | codeparrot/github-code |
ea82bedc25b4b651989aae04921755282cfbddf11b15ab558dde4f222ce2b949 | // Declare process array and template
var processes = [];
var processTemplate = {file:null, pname:null, me:null, process:{}};
// Function that adds a process to the processlist
function addProcess(name, file) {
console.log("Add process: " + name + " - " + file);
processes[name] = processTemplate;
processes[name].fi... | JavaScript | threadManager.js | lschans/threadmanager-nodejs | mit | 1,063 | 43 | codeparrot/github-code |
e5682da602e981a458a71bb4baa0cb814c0ba518a26eff6ad57f10d96c528439 | /*
* Copyright (c) 2016-2021 lymastee, All rights reserved.
* Contact: lymastee@hotmail.com
*
* This file is part of the gslib project.
*
* 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 t... | C++ | src/ariel/dataxchg.cpp | lymastee/gslib | mit | 6,818 | 193 | codeparrot/github-code |
5f2469e58b1e44b0d6009dddc8aaf176062ab0ecb647f8bef3cee76a41f02168 | define(['jquery'], function($) {
var zone = function(options) {
this.buttons = {};
this.options = options || {};
this.hAlign = this.options.hAlign || 'left';
this.vAlign = this.options.vAlign || 'vertical';
}
zone.prototype = {
addButton: function(button) {
this.buttons[button.getId()] = button;
}... | JavaScript | scripts/libs/forms/buttonzone.js | khaliiid/visualizer | mit | 867 | 49 | codeparrot/github-code |
8e8d9f59295d7c0adda2bfeb264facf9618ef2ec000e444598dbba2e7cd46054 | {% extends "base_nav_fluid_twocolumn.html" %}
{% load crispy_forms_tags %}
{% block title-left %}<h1>Workshop request #{{ object.pk }}</h1>{% endblock %}
{% block content-left %}
<table class="table table-striped">
<tbody>
<tr><th>Workshop type:</th>
<td>{{ object.get_workshop_type_display }}</t... | HTML | workshops/templates/workshops/eventrequest_accept.html | vahtras/amy | mit | 5,206 | 135 | codeparrot/github-code |
6e592453de7805b441080445d1a497be8ce5d65c8aeec9f83ae2ac4016e3f59e | using System;
using System.Globalization;
using System.Windows.Data;
using Put.io.Core.Models;
namespace Put.io.Core.Converters
{
public class StatusTypeIsIndeterminate : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
... | C# | Put.io.Core/Converters/StatusTypeIsIndeterminate.cs | Workshop2/Put.io.Wp | mit | 876 | 31 | codeparrot/github-code |
8e78bfb8cc22038d807eae77f5007ae4b8465d9c6ac8ed81cfdfbad80c60ebce | local K, C, L = unpack(select(2, ...))
local Module = K:NewModule("BlizzardSkin", "AceEvent-3.0")
K.SkinFuncs = {}
K.SkinFuncs["KkthnxUI"] = {}
function Module:ADDON_LOADED(event, addon)
if IsAddOnLoaded("Skinner") or IsAddOnLoaded("Aurora") then
self:UnregisterEvent("ADDON_LOADED")
return
end
for _addon, ski... | Lua | KkthnxUI/Modules/Skins/Core.lua | Kkthnx-WoW/KkthnxUI | mit | 704 | 32 | codeparrot/github-code |
6e88320f6d92358b27dc6cf9492cbfb5e22b3b7f4a90fbac7750c7557b86d84d | from django.db import models
from datetime import datetime
class Customer(models.Model):
"""
purpose: expose all customer data
author: Meg Ducharme
"""
first_name = models.CharField(max_length=55)
last_name = models.CharField(max_length=55)
date_account_created = models.CharField(max_lengt... | Python | bangazon/bangazon_api/models.py | PythonicPenguins/bangazon_api | mit | 3,851 | 126 | codeparrot/github-code |
8f971b029462d6db02696999e0d6f8e5119c380a402b63daf37a7ca5dce7d2f8 | import React, {Component, PropTypes as _} from 'react';
import {applyMiddleware, createStore, combineReducers, compose} from 'redux';
import {persistState} from 'redux-devtools';
import sagaMiddleware from 'redux-saga';
import {taskMiddleware} from '../middleware';
import DevTools from '../apps/DevTools';
import * as r... | JavaScript | src/hocs/Provide.js | pedro-iago/rack-physics | mit | 1,237 | 43 | codeparrot/github-code |
371420036d749623f749706c0ee3d6aa79b77954d7dc439523551d16d3c2a474 | <?php
class Controller_Content extends Controller_Base
{
public function action_developers()
{
Lang::load('main');
Lang::load('team');
$data = array();
if(Auth::get_profile_fields('name','') && Auth::get_profile_fields('surname',''))
{
... | PHP | fuel/app/classes/controller/content.php | AlekssGu/sacepums | mit | 5,700 | 160 | codeparrot/github-code |
b3b8be7ade490362ee419258153f64db6f191cf0cc6b87e864eaeb85ebe9b08c | package com.github.tfaga.lynx.test;
import com.github.tfaga.lynx.beans.QueryFilter;
import com.github.tfaga.lynx.beans.QueryParameters;
import com.github.tfaga.lynx.enums.FilterOperation;
import com.github.tfaga.lynx.exceptions.InvalidFieldValueException;
import com.github.tfaga.lynx.exceptions.NoSuchEntityFieldExcept... | Java | core/src/test/java/com/github/tfaga/lynx/test/JPAUtilsFiltersTest.java | TFaga/lynx | mit | 99,897 | 3,172 | codeparrot/github-code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.